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

feat: Use date service for invoice bounds #389

Merged
merged 19 commits into from
Aug 22, 2022

Conversation

vincent-pochet
Copy link
Collaborator

@vincent-pochet vincent-pochet commented Aug 18, 2022

Context

We want to add the ability to choose to bill users at subscription date anniversary and not only on a calendar basis.

Description

This pull request is the last one for this feature.
It uses the previously introduce Subscriptions::DatesService into the invoice and fees creation logic in order to make it easier to understand and to allow the usage of the anniversary billing time.

All date management is removed from Invoices::CreateService, Fees::SubscriptionService, Fees::ChargeService and Invoices::CustomerUsageService and delegated to the Subscriptions::DatesService and its subclasses

Related Task

It should be merged before #365 and #364

How Has This Been Tested?

A huge QA will be performed on a staging branch before merging this branch

@vincent-pochet vincent-pochet added Subscription Relation to the Subscriptions Invoice Related to Invoices labels Aug 18, 2022
@vincent-pochet vincent-pochet self-assigned this Aug 18, 2022
@vincent-pochet vincent-pochet marked this pull request as ready for review August 18, 2022 14:07
Copy link
Contributor

@jdenquin jdenquin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📆 🕐 ⚡

@vincent-pochet vincent-pochet force-pushed the feature/use-subscription-date-service branch from 68f584d to 956def0 Compare August 22, 2022 14:57
@vincent-pochet vincent-pochet merged commit 082076a into main Aug 22, 2022
@vincent-pochet vincent-pochet deleted the feature/use-subscription-date-service branch August 22, 2022 14:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Invoice Related to Invoices Subscription Relation to the Subscriptions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants