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(charges): Add regroup_paid_fees to Charge #2232

Merged
merged 3 commits into from
Jul 4, 2024

Conversation

julienbourdeau
Copy link
Contributor

@julienbourdeau julienbourdeau commented Jul 1, 2024

Context

When your charge is pay in advance but not invoiceable, the fees are created but not attached to any invoice.
This adds an options so at the end of the period, you get a new invoice showing all PAID fees. unpaid fees are ignored.

See also #2171

Description

We're dropping the idea of invoice_strategy because it turned out to be a bad idea. Instead we're adding regroup_paid_fees attribute that takes only one value today invoice.

@julienbourdeau julienbourdeau self-assigned this Jul 1, 2024
@julienbourdeau julienbourdeau changed the title Feat statement bool feat(charges): Add regroup_paid_fees to Charge Jul 2, 2024
Base automatically changed from feat-regroup-fees to main July 4, 2024 08:34
@julienbourdeau julienbourdeau force-pushed the feat-statement-bool branch 3 times, most recently from 1e2e109 to 534c89f Compare July 4, 2024 10:02
@julienbourdeau julienbourdeau marked this pull request as ready for review July 4, 2024 10:13
@julienbourdeau julienbourdeau merged commit 340e9e6 into main Jul 4, 2024
6 checks passed
@julienbourdeau julienbourdeau deleted the feat-statement-bool branch July 4, 2024 15:59
ancorcruz pushed a commit that referenced this pull request Jul 7, 2024
When your charge is pay in advance but not invoiceable, the fees are
created but not attached to any invoice.
This adds an options so at the end of the period, you get a new invoice
showing all PAID fees. unpaid fees are ignored.

See also #2171

We're dropping the idea of `invoice_strategy` because it turned out to
be a bad idea. Instead we're adding `regroup_paid_fees` attribute that
takes only one value today `invoice`.
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.

2 participants