Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

If an offerGroup already has a subscription, the lib must forbid explicit start dates as it cannot handle a list of interrupted subscriptions #3

Open
ziedHamdi opened this issue Dec 4, 2023 · 0 comments
Assignees
Labels
verify A claim that shloud be double checked

Comments

@ziedHamdi
Copy link
Owner

IUserCredits.offers holds a list of active offerGroups with a start and expiry date each. When a customer purchases an offer from 1st to 2nd january, then buys in the same offerGroup another with a delayed start date from 30 to 31 december, the order would be saved as from 1st january to 31 december.

So delayed orders must be forbidden at creation IService.createOrder and payment time IService.payOrder if an order from the same offerGroup is active. Otherwise, each offerGroup in orders should contain a list of future active subscriptions.

@ziedHamdi ziedHamdi added the verify A claim that shloud be double checked label Dec 18, 2023
@ziedHamdi ziedHamdi self-assigned this Dec 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
verify A claim that shloud be double checked
Projects
None yet
Development

No branches or pull requests

1 participant