This PR adds functionality to automatically assign a free subscription plan to a user at the point of user creation.
Closes #issue_number_here
Changes proposed
What were you told to do?
The task was to implement the feature of adding a free subscription to a user during their creation process. This ensures that every new user has an initial subscription plan without requiring manual setup.
What did you do?
Introduced the SubscribeFreePlanResponse record to capture the details of the free subscription.
Added logic to the user creation workflow to include a free subscription assignment.
Implementation Details
The SubscribeFreePlanResponse record includes the following properties:
SubscriptionId (Guid): A unique identifier for the subscription.
UserId (Guid?): The unique identifier of the user to whom the subscription is assigned.
OrganizationId (Guid?): The unique identifier of the organization associated with the subscription, if applicable.
Plan (string): The name or identifier of the subscription plan.
Amount (decimal): The cost of the subscription, which should be 0 for a free plan.
Frequency (string): The billing frequency of the subscription (e.g., monthly, yearly).
IsActive (bool): A flag indicating whether the subscription is active.
StartDate (DateTime?): The date when the subscription becomes active.
This structure allows for clear and concise management of the subscription details associated with a newly created user.
Description
This PR adds functionality to automatically assign a free subscription plan to a user at the point of user creation.
Closes #issue_number_here
Changes proposed
What were you told to do?
The task was to implement the feature of adding a free subscription to a user during their creation process. This ensures that every new user has an initial subscription plan without requiring manual setup.
What did you do?
Introduced the SubscribeFreePlanResponse record to capture the details of the free subscription.
Added logic to the user creation workflow to include a free subscription assignment.
Implementation Details
The SubscribeFreePlanResponse record includes the following properties:
SubscriptionId (Guid): A unique identifier for the subscription.
UserId (Guid?): The unique identifier of the user to whom the subscription is assigned.
OrganizationId (Guid?): The unique identifier of the organization associated with the subscription, if applicable.
Plan (string): The name or identifier of the subscription plan.
Amount (decimal): The cost of the subscription, which should be 0 for a free plan.
Frequency (string): The billing frequency of the subscription (e.g., monthly, yearly).
IsActive (bool): A flag indicating whether the subscription is active.
StartDate (DateTime?): The date when the subscription becomes active.
This structure allows for clear and concise management of the subscription details associated with a newly created user.
Check List (Check all the applicable boxes)
🚨Please review the contribution guideline for this repository.
Screenshots/Videos