feat(customcurrency): support custom currency subscriptions#4744
feat(customcurrency): support custom currency subscriptions#4744GAlexIHU wants to merge 1 commit into
Conversation
|
Too many files changed for review. ( Bypass the limit by tagging |
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
d6b8deb to
8e4110f
Compare
cc @chrisgacsal @turip — this is the semantic cutover in a three-PR stack.
stack and rollout
Subscription.InvoiceCurrencyis the invoice FIAT; each priced subscription item carries its actual FIAT or managed custom currency.Deployed environments should roll out #4742 first, backfill existing priced items, verify none remain without currency, then deploy this PR. OSS has the same requirement documented in the migration guide; this PR is intentionally breaking for upgrades that skip it.
product behavior
invoiceCurrencycredit_onlysubscriptions do not require a cost basiscredit_then_invoicesubscriptions require each custom → invoice-FIAT pairinvoiceCurrency; v1 keeps its existingcurrencycompatibility surfaceActual billing conversion is still outside this PR. Until it lands, automatic subscription sync skips custom-currency subscriptions and explicit sync fails before creating billing artifacts. Dynamic conversion will resolve at the charge FSP start; pinned subscriptions will use their stored pair.