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(invoice-preview): Add invoice preview with simulated termination date on subscription #3257

Open
wants to merge 4 commits into
base: feat-invoice-preview-three
Choose a base branch
from

Conversation

floganz
Copy link
Contributor

@floganz floganz commented Feb 26, 2025

Context

Allow to simulate subscription termination for invoice preview. This part only accepts new param and prepare correct subscription object for PreviewService which responsible for all invoice generation.

Description

Add support for terminated_at timestamp.
Add validation that only 1 subscription could be terminated.
Add validation for provided timestamp (valid + not in past).
Extract subscription building logic into dedicated class for better separation of concerns.

@floganz floganz requested a review from lovrocolic February 26, 2025 10:27
@floganz floganz self-assigned this Feb 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant