frontier
frontier copied to clipboard
feat: generate invoice for overdraft credits
It's necessary to configure the product name to calculate per unit price before the overdraft credits can be invoiced in billing.customer.credit_overdraft_product. If not set, invoice reconcilation and creation is skipped.
If there is already an open(unpaid) invoice for overdraft credits, no new invoice will be created for that customer. Reconciliation of these invoice happens on same cadence as invoices gets synced from the billing provider.
The latest updates on your projects. Learn more about Vercel for Git ↗︎
| Name | Status | Preview | Comments | Updated (UTC) |
|---|---|---|---|---|
| frontier | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Dec 4, 2024 7:05am |
Pull Request Test Coverage Report for Build 12154689030
Details
- 37 of 518 (7.14%) changed or added relevant lines in 13 files are covered.
- 5 unchanged lines in 1 file lost coverage.
- Overall coverage decreased (-0.4%) to 30.423%
| Changes Missing Coverage | Covered Lines | Changed/Added Lines | % |
|---|---|---|---|
| billing/usage/service.go | 0 | 1 | 0.0% |
| cmd/serve.go | 0 | 2 | 0.0% |
| billing/credit/credit.go | 0 | 3 | 0.0% |
| billing/credit/service.go | 0 | 3 | 0.0% |
| pkg/server/interceptors/authorization.go | 0 | 3 | 0.0% |
| billing/invoice/invoice.go | 0 | 6 | 0.0% |
| internal/api/v1beta1/billing_invoice.go | 0 | 7 | 0.0% |
| pkg/utils/pointers.go | 0 | 8 | 0.0% |
| pkg/db/db.go | 24 | 41 | 58.54% |
| internal/store/postgres/billing_invoice_repository.go | 0 | 32 | 0.0% |
| <!-- | Total: | 37 | 518 |
| Files with Coverage Reduction | New Missed Lines | % |
|---|---|---|
| billing/invoice/service.go | 5 | 1.36% |
| <!-- | Total: | 5 |
| Totals | |
|---|---|
| Change from base Build 12153549585: | -0.4% |
| Covered Lines: | 7667 |
| Relevant Lines: | 25201 |