Description
User Story
As a business user registering on the platform,
I want to provide my monthly transaction volume, website URL, and business description during signup
So that the platform can verify my business legitimacy and provide appropriate service tiers.
Acceptance Criteria
-
GIVEN a user registers with any business scope (sender/provider)
WHEN they submit the registration form
THEN they must provide a positive monthly volume value -
GIVEN a user registers with sender scope
WHEN they submit optional business details
THEN the system should validate website URLs and text length limits -
GIVEN a user submits invalid business information
WHEN the registration is attempted
THEN clear validation errors should appear before form submission -
GIVEN a successful registration
WHEN the profile is created
THEN all business information should persist in the correct profile type
Tech Details
-
Database Migrations:
- Add optional monthly_volume column to both profile tables
- Add optional columns for sender-specific fields
-
Validation Rules:
- Monthly volume: decimal > 0
- Business website: optional valid URL
- Nature of business: optional 255 char limit
-
API Changes:
- Extend RegisterPayload struct with new fields
- Modify profile creation handlers
Notes/Assumptions
- Existing users will be grandfathered in with null/zero values
- All new business registrations require monthly volume disclosure
- Sender profiles get enhanced with optional business details