AI companies want their users to pay before the end of a period if usage skyrockets. The problem being that self-serve companies can overuse their API without paying, triggering lots of costs on their side.
Description
This PR adds:
New ProgressiveBillingCreditAmountCents attribute to Invoice struct
New InvoiceCreditItemType values (invoice and credit_note)
New UsageThreshold and UsageThresholdInput structs
New UsageThreshold attribute to Plan and PlanInput structs
Context
AI companies want their users to pay before the end of a period if usage skyrockets. The problem being that self-serve companies can overuse their API without paying, triggering lots of costs on their side.
Description
This PR adds:
ProgressiveBillingCreditAmountCents
attribute toInvoice
structInvoiceCreditItemType
values (invoice
andcredit_note
)UsageThreshold
andUsageThresholdInput
structsUsageThreshold
attribute toPlan
andPlanInput
structs