orb-billing 1.0.1 → 1.19.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +61 -41
- package/dist/internal/utils/requestbody.d.ts +1 -1
- package/dist/internal/utils/requestbody.js +1 -1
- package/dist/internal/utils/retries.d.ts +2 -2
- package/dist/internal/utils/security.d.ts +5 -2
- package/dist/internal/utils/security.js +28 -28
- package/dist/sdk/availability.d.ts +3 -4
- package/dist/sdk/availability.js +80 -10
- package/dist/sdk/coupon.d.ts +16 -7
- package/dist/sdk/coupon.js +396 -35
- package/dist/sdk/credit.d.ts +111 -87
- package/dist/sdk/credit.js +573 -128
- package/dist/sdk/creditnote.d.ts +8 -5
- package/dist/sdk/creditnote.js +160 -16
- package/dist/sdk/customer.d.ts +358 -93
- package/dist/sdk/customer.js +1351 -189
- package/dist/sdk/event.d.ts +198 -103
- package/dist/sdk/event.js +906 -157
- package/dist/sdk/invoice.d.ts +39 -10
- package/dist/sdk/invoice.js +727 -47
- package/dist/sdk/item.d.ts +27 -0
- package/dist/sdk/item.js +328 -0
- package/dist/sdk/metric.d.ts +39 -0
- package/dist/sdk/metric.js +475 -0
- package/dist/sdk/models/errors/index.d.ts +1 -0
- package/dist/sdk/models/errors/index.js +20 -0
- package/dist/sdk/models/errors/sdkerror.d.ts +7 -0
- package/dist/sdk/models/errors/sdkerror.js +40 -0
- package/dist/sdk/models/operations/addeditpriceintervals.d.ts +53 -0
- package/dist/sdk/models/operations/addeditpriceintervals.js +123 -0
- package/dist/sdk/models/operations/amendevent.d.ts +35 -5
- package/dist/sdk/models/operations/amendevent.js +28 -4
- package/dist/sdk/models/operations/amendusage.d.ts +36 -15
- package/dist/sdk/models/operations/amendusage.js +31 -22
- package/dist/sdk/models/operations/amendusageexternalcustomerid.d.ts +36 -15
- package/dist/sdk/models/operations/amendusageexternalcustomerid.js +31 -22
- package/dist/sdk/models/operations/archivecoupon.d.ts +37 -0
- package/dist/sdk/models/operations/archivecoupon.js +28 -0
- package/dist/sdk/models/operations/cancelsubscription.d.ts +38 -1
- package/dist/sdk/models/operations/cancelsubscription.js +30 -2
- package/dist/sdk/models/operations/closebackfill.d.ts +37 -0
- package/dist/sdk/models/operations/closebackfill.js +28 -0
- package/dist/sdk/models/operations/createbackfill.d.ts +37 -0
- package/dist/sdk/models/operations/createbackfill.js +28 -0
- package/dist/sdk/models/operations/createcoupon.d.ts +38 -1
- package/dist/sdk/models/operations/createcoupon.js +28 -0
- package/dist/sdk/models/operations/createcustomer.d.ts +37 -0
- package/dist/sdk/models/operations/createcustomer.js +28 -0
- package/dist/sdk/models/operations/createcustomerbalancetransaction.d.ts +38 -1
- package/dist/sdk/models/operations/createcustomerbalancetransaction.js +30 -2
- package/dist/sdk/models/operations/createinvoice.d.ts +49 -0
- package/dist/sdk/models/operations/createinvoice.js +107 -0
- package/dist/sdk/models/operations/createinvoicelineitem.d.ts +37 -0
- package/dist/sdk/models/operations/createinvoicelineitem.js +28 -0
- package/dist/sdk/models/operations/createledgerentry.d.ts +40 -3
- package/dist/sdk/models/operations/createledgerentry.js +31 -3
- package/dist/sdk/models/operations/createledgerentryexternalid.d.ts +53 -0
- package/dist/sdk/models/operations/createledgerentryexternalid.js +123 -0
- package/dist/sdk/models/operations/createmetric.d.ts +49 -0
- package/dist/sdk/models/operations/createmetric.js +107 -0
- package/dist/sdk/models/operations/createplan.d.ts +49 -0
- package/dist/sdk/models/operations/createplan.js +107 -0
- package/dist/sdk/models/operations/createprice.d.ts +49 -0
- package/dist/sdk/models/operations/{addledgerentryexternalid.js → createprice.js} +37 -25
- package/dist/sdk/models/operations/createsubscription.d.ts +38 -1
- package/dist/sdk/models/operations/createsubscription.js +28 -0
- package/dist/sdk/models/operations/deletecustomer.d.ts +41 -11
- package/dist/sdk/models/operations/deletecustomer.js +57 -16
- package/dist/sdk/models/operations/deprecateevent.d.ts +35 -5
- package/dist/sdk/models/operations/deprecateevent.js +28 -4
- package/dist/sdk/models/operations/fetchbackfill.d.ts +52 -0
- package/dist/sdk/models/operations/fetchbackfill.js +119 -0
- package/dist/sdk/models/operations/fetchcoupon.d.ts +37 -0
- package/dist/sdk/models/operations/fetchcoupon.js +28 -0
- package/dist/sdk/models/operations/fetchcreditnote.d.ts +37 -3
- package/dist/sdk/models/operations/fetchcreditnote.js +28 -0
- package/dist/sdk/models/operations/fetchcustomer.d.ts +38 -4
- package/dist/sdk/models/operations/fetchcustomer.js +28 -0
- package/dist/sdk/models/operations/fetchcustomercosts.d.ts +44 -12
- package/dist/sdk/models/operations/fetchcustomercosts.js +37 -1
- package/dist/sdk/models/operations/fetchcustomercostsexternalid.d.ts +45 -10
- package/dist/sdk/models/operations/fetchcustomercostsexternalid.js +37 -1
- package/dist/sdk/models/operations/fetchcustomercredits.d.ts +37 -9
- package/dist/sdk/models/operations/fetchcustomercredits.js +31 -3
- package/dist/sdk/models/operations/fetchcustomercreditsexternalid.d.ts +39 -8
- package/dist/sdk/models/operations/fetchcustomercreditsexternalid.js +31 -3
- package/dist/sdk/models/operations/fetchcustomercreditsledger.d.ts +53 -13
- package/dist/sdk/models/operations/fetchcustomercreditsledger.js +66 -3
- package/dist/sdk/models/operations/fetchcustomercreditsledgerexternalid.d.ts +53 -13
- package/dist/sdk/models/operations/fetchcustomercreditsledgerexternalid.js +66 -3
- package/dist/sdk/models/operations/fetchcustomerexternalid.d.ts +37 -0
- package/dist/sdk/models/operations/fetchcustomerexternalid.js +28 -0
- package/dist/sdk/models/operations/fetchinvoice.d.ts +37 -0
- package/dist/sdk/models/operations/fetchinvoice.js +28 -0
- package/dist/sdk/models/operations/fetchitem.d.ts +52 -0
- package/dist/sdk/models/operations/fetchitem.js +119 -0
- package/dist/sdk/models/operations/fetchmetric.d.ts +52 -0
- package/dist/sdk/models/operations/fetchmetric.js +119 -0
- package/dist/sdk/models/operations/fetchplan.d.ts +37 -0
- package/dist/sdk/models/operations/fetchplan.js +28 -0
- package/dist/sdk/models/operations/fetchplanexternalid.d.ts +37 -0
- package/dist/sdk/models/operations/fetchplanexternalid.js +28 -0
- package/dist/sdk/models/operations/fetchprice.d.ts +52 -0
- package/dist/sdk/models/operations/fetchprice.js +119 -0
- package/dist/sdk/models/operations/fetchpriceexternalid.d.ts +52 -0
- package/dist/sdk/models/operations/fetchpriceexternalid.js +119 -0
- package/dist/sdk/models/operations/fetchsubscription.d.ts +37 -0
- package/dist/sdk/models/operations/fetchsubscription.js +28 -0
- package/dist/sdk/models/operations/fetchsubscriptioncosts.d.ts +45 -10
- package/dist/sdk/models/operations/fetchsubscriptioncosts.js +37 -1
- package/dist/sdk/models/operations/fetchsubscriptionschedule.d.ts +43 -8
- package/dist/sdk/models/operations/fetchsubscriptionschedule.js +47 -3
- package/dist/sdk/models/operations/fetchsubscriptionusage.d.ts +60 -16
- package/dist/sdk/models/operations/fetchsubscriptionusage.js +69 -2
- package/dist/sdk/models/operations/fetchupcominginvoice.d.ts +38 -1
- package/dist/sdk/models/operations/fetchupcominginvoice.js +28 -0
- package/dist/sdk/models/operations/index.d.ts +20 -2
- package/dist/sdk/models/operations/index.js +20 -2
- package/dist/sdk/models/operations/ingest.d.ts +36 -12
- package/dist/sdk/models/operations/ingest.js +31 -22
- package/dist/sdk/models/operations/issueinvoice.d.ts +35 -2
- package/dist/sdk/models/operations/issueinvoice.js +28 -4
- package/dist/sdk/models/operations/listbackfills.d.ts +37 -6
- package/dist/sdk/models/operations/listbackfills.js +29 -1
- package/dist/sdk/models/operations/listbalancetransactions.d.ts +45 -10
- package/dist/sdk/models/operations/listbalancetransactions.js +49 -5
- package/dist/sdk/models/operations/listcoupons.d.ts +35 -10
- package/dist/sdk/models/operations/listcoupons.js +29 -1
- package/dist/sdk/models/operations/listcouponsubscriptions.d.ts +39 -0
- package/dist/sdk/models/operations/listcouponsubscriptions.js +36 -0
- package/dist/sdk/models/operations/listcreditnotes.d.ts +53 -0
- package/dist/sdk/models/operations/listcreditnotes.js +123 -0
- package/dist/sdk/models/operations/listcustomers.d.ts +41 -6
- package/dist/sdk/models/operations/listcustomers.js +45 -1
- package/dist/sdk/models/operations/listinvoices.d.ts +66 -14
- package/dist/sdk/models/operations/listinvoices.js +109 -3
- package/dist/sdk/models/operations/listitems.d.ts +53 -0
- package/dist/sdk/models/operations/{listcreditnote.js → listitems.js} +46 -30
- package/dist/sdk/models/operations/listmetrics.d.ts +57 -0
- package/dist/sdk/models/operations/listmetrics.js +139 -0
- package/dist/sdk/models/operations/listplans.d.ts +53 -6
- package/dist/sdk/models/operations/listplans.js +59 -2
- package/dist/sdk/models/operations/listprices.d.ts +53 -0
- package/dist/sdk/models/operations/listprices.js +123 -0
- package/dist/sdk/models/operations/listsubscriptions.d.ts +48 -7
- package/dist/sdk/models/operations/listsubscriptions.js +56 -2
- package/dist/sdk/models/operations/markinvoiceaspaid.d.ts +53 -0
- package/dist/sdk/models/operations/markinvoiceaspaid.js +123 -0
- package/dist/sdk/models/operations/ping.d.ts +39 -2
- package/dist/sdk/models/operations/ping.js +30 -2
- package/dist/sdk/models/operations/revertbackfill.d.ts +37 -0
- package/dist/sdk/models/operations/revertbackfill.js +28 -0
- package/dist/sdk/models/operations/scheduleplanchange.d.ts +37 -0
- package/dist/sdk/models/operations/scheduleplanchange.js +28 -0
- package/dist/sdk/models/operations/searchevents.d.ts +42 -7
- package/dist/sdk/models/operations/searchevents.js +47 -3
- package/dist/sdk/models/operations/triggerphase.d.ts +53 -0
- package/dist/sdk/models/operations/triggerphase.js +123 -0
- package/dist/sdk/models/operations/unschedulecancellation.d.ts +37 -0
- package/dist/sdk/models/operations/unschedulecancellation.js +28 -0
- package/dist/sdk/models/operations/unschedulefixedfeequantity.d.ts +53 -0
- package/dist/sdk/models/operations/unschedulefixedfeequantity.js +123 -0
- package/dist/sdk/models/operations/unscheduleplanchange.d.ts +37 -0
- package/dist/sdk/models/operations/unscheduleplanchange.js +28 -0
- package/dist/sdk/models/operations/updatecustomer.d.ts +38 -4
- package/dist/sdk/models/operations/updatecustomer.js +30 -2
- package/dist/sdk/models/operations/updatecustomerexternalid.d.ts +38 -1
- package/dist/sdk/models/operations/updatecustomerexternalid.js +30 -2
- package/dist/sdk/models/operations/updatefixedfeequantity.d.ts +37 -0
- package/dist/sdk/models/operations/updatefixedfeequantity.js +28 -0
- package/dist/sdk/models/operations/updateplan.d.ts +53 -0
- package/dist/sdk/models/operations/updateplan.js +123 -0
- package/dist/sdk/models/operations/updateplanexternal.d.ts +53 -0
- package/dist/sdk/models/operations/updateplanexternal.js +123 -0
- package/dist/sdk/models/operations/voidinvoice.d.ts +36 -3
- package/dist/sdk/models/operations/voidinvoice.js +28 -4
- package/dist/sdk/models/shared/accountingprovider.d.ts +9 -0
- package/dist/sdk/models/shared/accountingprovider.js +55 -0
- package/dist/sdk/models/shared/accountingproviderconfig.d.ts +5 -0
- package/dist/sdk/models/shared/{creditblock.js → accountingproviderconfig.js} +10 -18
- package/dist/sdk/models/shared/accountingsyncconfiguration.d.ts +6 -0
- package/dist/sdk/models/shared/accountingsyncconfiguration.js +52 -0
- package/dist/sdk/models/shared/adddecrementcreditledgerentryrequestparams.d.ts +24 -0
- package/dist/sdk/models/shared/adddecrementcreditledgerentryrequestparams.js +76 -0
- package/dist/sdk/models/shared/addeditpriceintervalparams.d.ts +13 -0
- package/dist/sdk/models/shared/addeditpriceintervalparams.js +54 -0
- package/dist/sdk/models/shared/addexpirationchangecreditledgerentryrequestparams.d.ts +37 -0
- package/dist/sdk/models/shared/{newcreditledgerentry.js → addexpirationchangecreditledgerentryrequestparams.js} +25 -34
- package/dist/sdk/models/shared/addincrementcreditledgerentryrequestparams.d.ts +42 -0
- package/dist/sdk/models/shared/addincrementcreditledgerentryrequestparams.js +107 -0
- package/dist/sdk/models/shared/addpriceintervalparams.d.ts +54 -0
- package/dist/sdk/models/shared/addpriceintervalparams.js +103 -0
- package/dist/sdk/models/shared/address.d.ts +9 -0
- package/dist/sdk/models/shared/address.js +70 -0
- package/dist/sdk/models/shared/addressinput.d.ts +9 -0
- package/dist/sdk/models/shared/addressinput.js +70 -0
- package/dist/sdk/models/shared/addvoidcreditledgerentryrequestparams.d.ts +34 -0
- package/dist/sdk/models/shared/addvoidcreditledgerentryrequestparams.js +88 -0
- package/dist/sdk/models/shared/affectedblock.d.ts +6 -0
- package/dist/sdk/models/shared/{credit.js → affectedblock.js} +9 -14
- package/dist/sdk/models/shared/{subscriptioncost.d.ts → aggregatedcost.d.ts} +1 -1
- package/dist/sdk/models/shared/{customercost.js → aggregatedcost.js} +11 -11
- package/dist/sdk/models/shared/amendedusage.d.ts +2 -7
- package/dist/sdk/models/shared/amendedusage.js +2 -14
- package/dist/sdk/models/shared/amendeventresult.d.ts +1 -4
- package/dist/sdk/models/shared/amendeventresult.js +0 -3
- package/dist/sdk/models/shared/amendmentledgerentry.d.ts +27 -0
- package/dist/sdk/models/shared/amendmentledgerentry.js +120 -0
- package/dist/sdk/models/shared/amountdiscount.d.ts +15 -0
- package/dist/sdk/models/shared/amountdiscount.js +59 -0
- package/dist/sdk/models/shared/amountdiscountcreationparams.d.ts +11 -0
- package/dist/sdk/models/shared/amountdiscountcreationparams.js +54 -0
- package/dist/sdk/models/shared/amountdiscountinterval.d.ts +27 -0
- package/dist/sdk/models/shared/amountdiscountinterval.js +82 -0
- package/dist/sdk/models/shared/autocollection.d.ts +3 -6
- package/dist/sdk/models/shared/autocollection.js +0 -3
- package/dist/sdk/models/shared/backfill.d.ts +2 -2
- package/dist/sdk/models/shared/backfills.d.ts +2 -5
- package/dist/sdk/models/shared/backfills.js +0 -3
- package/dist/sdk/models/shared/billablemetric.d.ts +24 -1
- package/dist/sdk/models/shared/billablemetric.js +40 -1
- package/dist/sdk/models/shared/billablemetrics.d.ts +7 -0
- package/dist/sdk/models/shared/billablemetrics.js +54 -0
- package/dist/sdk/models/shared/billablemetricsimple.d.ts +5 -0
- package/dist/sdk/models/shared/{billablemetricminified.js → billablemetricsimple.js} +8 -8
- package/dist/sdk/models/shared/billablemetrictiny.d.ts +4 -0
- package/dist/sdk/models/shared/billablemetrictiny.js +45 -0
- package/dist/sdk/models/shared/billingcyclealignment.d.ts +8 -0
- package/dist/sdk/models/shared/billingcyclealignment.js +15 -0
- package/dist/sdk/models/shared/bpsconfig.d.ts +7 -4
- package/dist/sdk/models/shared/bpsconfig.js +1 -4
- package/dist/sdk/models/shared/bpsprice.d.ts +242 -0
- package/dist/sdk/models/shared/bpsprice.js +363 -0
- package/dist/sdk/models/shared/bpstier.d.ts +15 -3
- package/dist/sdk/models/shared/bpstier.js +1 -1
- package/dist/sdk/models/shared/bulkbpsconfig.d.ts +4 -4
- package/dist/sdk/models/shared/bulkbpsconfig.js +0 -3
- package/dist/sdk/models/shared/bulkbpsprice.d.ts +242 -0
- package/dist/sdk/models/shared/bulkbpsprice.js +363 -0
- package/dist/sdk/models/shared/bulkbpstier.d.ts +10 -1
- package/dist/sdk/models/shared/bulkbpstier.js +1 -1
- package/dist/sdk/models/shared/bulkconfig.d.ts +4 -4
- package/dist/sdk/models/shared/bulkconfig.js +0 -3
- package/dist/sdk/models/shared/bulkprice.d.ts +242 -0
- package/dist/sdk/models/shared/bulkprice.js +363 -0
- package/dist/sdk/models/shared/bulktier.d.ts +7 -1
- package/dist/sdk/models/shared/bulktier.js +1 -1
- package/dist/sdk/models/shared/cancelsubscriptionparams.d.ts +19 -0
- package/dist/sdk/models/shared/cancelsubscriptionparams.js +63 -0
- package/dist/sdk/models/shared/changeoption.d.ts +0 -3
- package/dist/sdk/models/shared/changeoption.js +0 -3
- package/dist/sdk/models/shared/coupon.d.ts +14 -10
- package/dist/sdk/models/shared/coupon.js +16 -6
- package/dist/sdk/models/shared/couponredemption.d.ts +6 -0
- package/dist/sdk/models/shared/{usageitem.js → couponredemption.js} +12 -12
- package/dist/sdk/models/shared/coupons.d.ts +2 -5
- package/dist/sdk/models/shared/coupons.js +0 -3
- package/dist/sdk/models/shared/{newinvoicelineitem.d.ts → createinvoicelineitemparams.d.ts} +5 -5
- package/dist/sdk/models/shared/{newinvoicelineitem.js → createinvoicelineitemparams.js} +13 -13
- package/dist/sdk/models/shared/createoneoffinvoiceparams.d.ts +33 -0
- package/dist/sdk/models/shared/createoneoffinvoiceparams.js +86 -0
- package/dist/sdk/models/shared/creditblockexpiryledgerentry.d.ts +27 -0
- package/dist/sdk/models/shared/creditblockexpiryledgerentry.js +120 -0
- package/dist/sdk/models/shared/creditledgerentries.d.ts +1 -5
- package/dist/sdk/models/shared/creditledgerentries.js +1 -6
- package/dist/sdk/models/shared/creditnote.d.ts +34 -22
- package/dist/sdk/models/shared/creditnote.js +44 -7
- package/dist/sdk/models/shared/creditnotelineitem.d.ts +12 -10
- package/dist/sdk/models/shared/creditnotelineitem.js +24 -10
- package/dist/sdk/models/shared/creditnoteminified.d.ts +7 -0
- package/dist/sdk/models/shared/creditnoteminified.js +45 -0
- package/dist/sdk/models/shared/creditnotes.d.ts +2 -5
- package/dist/sdk/models/shared/creditnotes.js +0 -3
- package/dist/sdk/models/shared/{sublineitem2.d.ts → creditnotesublineitem.d.ts} +1 -1
- package/dist/sdk/models/shared/{sublineitem2.js → creditnotesublineitem.js} +9 -9
- package/dist/sdk/models/shared/creditnotesummary.d.ts +9 -6
- package/dist/sdk/models/shared/customer.d.ts +30 -181
- package/dist/sdk/models/shared/customer.js +41 -223
- package/dist/sdk/models/shared/customerbalancetransaction.d.ts +13 -28
- package/dist/sdk/models/shared/customerbalancetransaction.js +18 -42
- package/dist/sdk/models/shared/{transactions.d.ts → customerbalancetransactions.d.ts} +3 -6
- package/dist/sdk/models/shared/{transactions.js → customerbalancetransactions.js} +8 -11
- package/dist/sdk/models/shared/customercosts.d.ts +2 -5
- package/dist/sdk/models/shared/customercosts.js +3 -6
- package/dist/sdk/models/shared/customercreditbalance.d.ts +7 -0
- package/dist/sdk/models/shared/customercreditbalance.js +64 -0
- package/dist/sdk/models/shared/customercreditbalances.d.ts +7 -0
- package/dist/sdk/models/shared/customercreditbalances.js +54 -0
- package/dist/sdk/models/shared/customerminified.d.ts +0 -3
- package/dist/sdk/models/shared/customerminified.js +0 -3
- package/dist/sdk/models/shared/customers.d.ts +0 -3
- package/dist/sdk/models/shared/customers.js +0 -3
- package/dist/sdk/models/shared/customertaxid.d.ts +6 -0
- package/dist/sdk/models/shared/{newtransaction.js → customertaxid.js} +12 -13
- package/dist/sdk/models/shared/debug.d.ts +2 -2
- package/dist/sdk/models/shared/decrementledgerentry.d.ts +30 -0
- package/dist/sdk/models/shared/{creditledgerentry.js → decrementledgerentry.js} +42 -51
- package/dist/sdk/models/shared/deletecustomerresponse.d.ts +3 -0
- package/dist/sdk/models/shared/deletecustomerresponse.js +30 -0
- package/dist/sdk/models/shared/deprecatedeventresult.d.ts +1 -4
- package/dist/sdk/models/shared/deprecatedeventresult.js +0 -3
- package/dist/sdk/models/shared/discount.d.ts +13 -5
- package/dist/sdk/models/shared/discount.js +13 -4
- package/dist/sdk/models/shared/duplicateconstraintviolationerror.d.ts +16 -0
- package/dist/sdk/models/shared/duplicateconstraintviolationerror.js +82 -0
- package/dist/sdk/models/shared/duplicateresourcecreationerror.d.ts +16 -0
- package/dist/sdk/models/shared/duplicateresourcecreationerror.js +82 -0
- package/dist/sdk/models/shared/editcustomer.d.ts +72 -0
- package/dist/sdk/models/shared/editcustomer.js +151 -0
- package/dist/sdk/models/shared/editplan.d.ts +10 -0
- package/dist/sdk/models/shared/editplan.js +59 -0
- package/dist/sdk/models/shared/editpriceintervalparams.d.ts +34 -0
- package/dist/sdk/models/shared/editpriceintervalparams.js +78 -0
- package/dist/sdk/models/shared/event.d.ts +11 -4
- package/dist/sdk/models/shared/event.js +14 -3
- package/dist/sdk/models/shared/{credits.d.ts → events.d.ts} +3 -6
- package/dist/sdk/models/shared/{eventsearchresults.js → events.js} +8 -11
- package/dist/sdk/models/shared/expirationchangeledgerentry.d.ts +28 -0
- package/dist/sdk/models/shared/expirationchangeledgerentry.js +129 -0
- package/dist/sdk/models/shared/featurenotavailableerror.d.ts +16 -0
- package/dist/sdk/models/shared/featurenotavailableerror.js +82 -0
- package/dist/sdk/models/shared/fivehundrederror.d.ts +13 -0
- package/dist/sdk/models/shared/fivehundrederror.js +78 -0
- package/dist/sdk/models/shared/fivetranexampleprice.d.ts +241 -0
- package/dist/sdk/models/shared/fivetranexampleprice.js +361 -0
- package/dist/sdk/models/shared/fixedfeequantitychange.d.ts +12 -5
- package/dist/sdk/models/shared/fixedfeequantitychange.js +11 -3
- package/dist/sdk/models/shared/fixedfeequantityscheduleentry.d.ts +7 -0
- package/dist/sdk/models/shared/{fixedfeequantityschedule.js → fixedfeequantityscheduleentry.js} +10 -10
- package/dist/sdk/models/shared/fixedfeequantitytransition.d.ts +6 -0
- package/dist/sdk/models/shared/fixedfeequantitytransition.js +59 -0
- package/dist/sdk/models/shared/fourhundredandoneerror.d.ts +16 -0
- package/dist/sdk/models/shared/fourhundredandoneerror.js +82 -0
- package/dist/sdk/models/shared/fourhundredandtwentynineerror.d.ts +16 -0
- package/dist/sdk/models/shared/fourhundredandtwentynineerror.js +82 -0
- package/dist/sdk/models/shared/groupedsubscriptionusage.d.ts +7 -0
- package/dist/sdk/models/shared/groupedsubscriptionusage.js +54 -0
- package/dist/sdk/models/shared/groupedsubscriptionusagerecord.d.ts +14 -0
- package/dist/sdk/models/shared/groupedsubscriptionusagerecord.js +71 -0
- package/dist/sdk/models/shared/idempotencyconflict.d.ts +16 -0
- package/dist/sdk/models/shared/idempotencyconflict.js +82 -0
- package/dist/sdk/models/shared/idempotencykeyvalidationerror.d.ts +17 -0
- package/dist/sdk/models/shared/idempotencykeyvalidationerror.js +87 -0
- package/dist/sdk/models/shared/idempotencyrequestmismatch.d.ts +16 -0
- package/dist/sdk/models/shared/idempotencyrequestmismatch.js +82 -0
- package/dist/sdk/models/shared/{invoicesettings.d.ts → incrementcreditledgerentryinvoicesettings.d.ts} +2 -2
- package/dist/sdk/models/shared/{invoicesettings.js → incrementcreditledgerentryinvoicesettings.js} +10 -10
- package/dist/sdk/models/shared/incrementledgerentry.d.ts +27 -0
- package/dist/sdk/models/shared/incrementledgerentry.js +120 -0
- package/dist/sdk/models/shared/index.d.ts +143 -54
- package/dist/sdk/models/shared/index.js +143 -54
- package/dist/sdk/models/shared/ingestevent.d.ts +32 -0
- package/dist/sdk/models/shared/ingestevent.js +86 -0
- package/dist/sdk/models/shared/ingestionresponse.d.ts +5 -5
- package/dist/sdk/models/shared/ingestionresponse.js +3 -6
- package/dist/sdk/models/shared/ingestrequestbody.d.ts +5 -0
- package/dist/sdk/models/shared/{tieredbpsconfig1.js → ingestrequestbody.js} +11 -11
- package/dist/sdk/models/shared/invoice.d.ts +46 -182
- package/dist/sdk/models/shared/invoice.js +70 -201
- package/dist/sdk/models/shared/invoicelineitem.d.ts +10 -168
- package/dist/sdk/models/shared/invoicelineitem.js +21 -303
- package/dist/sdk/models/shared/invoicelineitemparams.d.ts +27 -0
- package/dist/sdk/models/shared/invoicelineitemparams.js +90 -0
- package/dist/sdk/models/shared/invoiceminified.d.ts +7 -0
- package/dist/sdk/models/shared/invoiceminified.js +45 -0
- package/dist/sdk/models/shared/invoices.d.ts +2 -5
- package/dist/sdk/models/shared/invoices.js +0 -3
- package/dist/sdk/models/shared/item.d.ts +14 -0
- package/dist/sdk/models/shared/item.js +72 -0
- package/dist/sdk/models/shared/itemexternalconnection.d.ts +16 -0
- package/dist/sdk/models/shared/itemexternalconnection.js +63 -0
- package/dist/sdk/models/shared/items.d.ts +7 -0
- package/dist/sdk/models/shared/{credits.js → items.js} +11 -14
- package/dist/sdk/models/shared/itemslim.d.ts +5 -0
- package/dist/sdk/models/shared/itemslim.js +50 -0
- package/dist/sdk/models/shared/markaspaidrequestparams.d.ts +16 -0
- package/dist/sdk/models/shared/markaspaidrequestparams.js +60 -0
- package/dist/sdk/models/shared/matrixconfig.d.ts +12 -5
- package/dist/sdk/models/shared/matrixconfig.js +5 -3
- package/dist/sdk/models/shared/matrixprice.d.ts +242 -0
- package/dist/sdk/models/shared/matrixprice.js +363 -0
- package/dist/sdk/models/shared/matrixsublineitem.d.ts +17 -0
- package/dist/sdk/models/shared/matrixsublineitem.js +78 -0
- package/dist/sdk/models/shared/matrixvalue.d.ts +8 -1
- package/dist/sdk/models/shared/matrixvalue.js +5 -0
- package/dist/sdk/models/shared/maximum.d.ts +11 -0
- package/dist/sdk/models/shared/{subscriptionusage.js → maximum.js} +14 -14
- package/dist/sdk/models/shared/maximuminterval.d.ts +23 -0
- package/dist/sdk/models/shared/{subscriptioncost.js → maximuminterval.js} +21 -23
- package/dist/sdk/models/shared/metricgroup.d.ts +5 -0
- package/dist/sdk/models/shared/metricgroup.js +50 -0
- package/dist/sdk/models/shared/minimum.d.ts +11 -0
- package/dist/sdk/models/shared/minimum.js +50 -0
- package/dist/sdk/models/shared/minimuminterval.d.ts +23 -0
- package/dist/sdk/models/shared/minimuminterval.js +73 -0
- package/dist/sdk/models/shared/newaccountingsyncconfiguration.d.ts +6 -0
- package/dist/sdk/models/shared/newaccountingsyncconfiguration.js +52 -0
- package/dist/sdk/models/shared/newbackfill.d.ts +1 -1
- package/dist/sdk/models/shared/newbillablemetric.d.ts +28 -0
- package/dist/sdk/models/shared/newbillablemetric.js +77 -0
- package/dist/sdk/models/shared/newbpsprice.d.ts +53 -0
- package/dist/sdk/models/shared/newbpsprice.js +110 -0
- package/dist/sdk/models/shared/newbulkbpsprice.d.ts +53 -0
- package/dist/sdk/models/shared/newbulkbpsprice.js +110 -0
- package/dist/sdk/models/shared/newbulkprice.d.ts +53 -0
- package/dist/sdk/models/shared/newbulkprice.js +110 -0
- package/dist/sdk/models/shared/newcoupon.d.ts +4 -10
- package/dist/sdk/models/shared/newcoupon.js +11 -11
- package/dist/sdk/models/shared/newcustomer.d.ts +20 -154
- package/dist/sdk/models/shared/newcustomer.js +34 -206
- package/dist/sdk/models/shared/newcustomerbalancetransaction.d.ts +13 -0
- package/dist/sdk/models/shared/newcustomerbalancetransaction.js +60 -0
- package/dist/sdk/models/shared/newmatrixprice.d.ts +53 -0
- package/dist/sdk/models/shared/{sublineitem.js → newmatrixprice.js} +51 -43
- package/dist/sdk/models/shared/newpackageprice.d.ts +53 -0
- package/dist/sdk/models/shared/newpackageprice.js +110 -0
- package/dist/sdk/models/shared/newpackagewithallocationprice.d.ts +52 -0
- package/dist/sdk/models/shared/newpackagewithallocationprice.js +108 -0
- package/dist/sdk/models/shared/newplan.d.ts +26 -0
- package/dist/sdk/models/shared/newplan.js +93 -0
- package/dist/sdk/models/shared/newreportingconfiguration.d.ts +4 -0
- package/dist/sdk/models/shared/newreportingconfiguration.js +45 -0
- package/dist/sdk/models/shared/newsubscription.d.ts +18 -43
- package/dist/sdk/models/shared/newsubscription.js +50 -8
- package/dist/sdk/models/shared/newthresholdtotalamountprice.d.ts +52 -0
- package/dist/sdk/models/shared/newthresholdtotalamountprice.js +108 -0
- package/dist/sdk/models/shared/newtieredbpsprice.d.ts +53 -0
- package/dist/sdk/models/shared/newtieredbpsprice.js +110 -0
- package/dist/sdk/models/shared/newtieredpackageprice.d.ts +52 -0
- package/dist/sdk/models/shared/newtieredpackageprice.js +108 -0
- package/dist/sdk/models/shared/newtieredprice.d.ts +53 -0
- package/dist/sdk/models/shared/newtieredprice.js +110 -0
- package/dist/sdk/models/shared/newtieredwithminimumprice.d.ts +52 -0
- package/dist/sdk/models/shared/newtieredwithminimumprice.js +108 -0
- package/dist/sdk/models/shared/newunitprice.d.ts +53 -0
- package/dist/sdk/models/shared/newunitprice.js +110 -0
- package/dist/sdk/models/shared/othersublineitem.d.ts +15 -0
- package/dist/sdk/models/shared/othersublineitem.js +71 -0
- package/dist/sdk/models/shared/overridebpsprice.d.ts +27 -0
- package/dist/sdk/models/shared/{bpspriceoverride.js → overridebpsprice.js} +27 -18
- package/dist/sdk/models/shared/overridebulkbpsprice.d.ts +27 -0
- package/dist/sdk/models/shared/{bulkbpspriceoverride.js → overridebulkbpsprice.js} +27 -18
- package/dist/sdk/models/shared/overridebulkprice.d.ts +27 -0
- package/dist/sdk/models/shared/{bulkpriceoverride.js → overridebulkprice.js} +27 -18
- package/dist/sdk/models/shared/overridefivetranexampleprice.d.ts +26 -0
- package/dist/sdk/models/shared/overridefivetranexampleprice.js +81 -0
- package/dist/sdk/models/shared/overridematrixprice.d.ts +27 -0
- package/dist/sdk/models/shared/overridematrixprice.js +83 -0
- package/dist/sdk/models/shared/overridepackageprice.d.ts +27 -0
- package/dist/sdk/models/shared/{packagepriceoverride.js → overridepackageprice.js} +27 -18
- package/dist/sdk/models/shared/overridepackagewithallocationprice.d.ts +26 -0
- package/dist/sdk/models/shared/overridepackagewithallocationprice.js +81 -0
- package/dist/sdk/models/shared/overridetestratingfunctionprice.d.ts +26 -0
- package/dist/sdk/models/shared/overridetestratingfunctionprice.js +81 -0
- package/dist/sdk/models/shared/overridethresholdtotalamountprice.d.ts +26 -0
- package/dist/sdk/models/shared/overridethresholdtotalamountprice.js +81 -0
- package/dist/sdk/models/shared/overridetieredbpsprice.d.ts +27 -0
- package/dist/sdk/models/shared/{tieredbpspriceoverride.js → overridetieredbpsprice.js} +30 -21
- package/dist/sdk/models/shared/overridetieredpackageprice.d.ts +26 -0
- package/dist/sdk/models/shared/overridetieredpackageprice.js +81 -0
- package/dist/sdk/models/shared/overridetieredprice.d.ts +27 -0
- package/dist/sdk/models/shared/{tieredpriceoverride.js → overridetieredprice.js} +27 -18
- package/dist/sdk/models/shared/overridetieredwithminimumprice.d.ts +26 -0
- package/dist/sdk/models/shared/overridetieredwithminimumprice.js +81 -0
- package/dist/sdk/models/shared/overrideunitprice.d.ts +27 -0
- package/dist/sdk/models/shared/{unitpriceoverride.js → overrideunitprice.js} +27 -18
- package/dist/sdk/models/shared/packageconfig.d.ts +7 -4
- package/dist/sdk/models/shared/packageconfig.js +0 -3
- package/dist/sdk/models/shared/packageprice.d.ts +242 -0
- package/dist/sdk/models/shared/packageprice.js +363 -0
- package/dist/sdk/models/shared/packagewithallocationprice.d.ts +241 -0
- package/dist/sdk/models/shared/packagewithallocationprice.js +361 -0
- package/dist/sdk/models/shared/percentagediscount.d.ts +15 -0
- package/dist/sdk/models/shared/percentagediscount.js +59 -0
- package/dist/sdk/models/shared/percentagediscountcreationparams.d.ts +11 -0
- package/dist/sdk/models/shared/percentagediscountcreationparams.js +54 -0
- package/dist/sdk/models/shared/percentagediscountinterval.d.ts +27 -0
- package/dist/sdk/models/shared/percentagediscountinterval.js +82 -0
- package/dist/sdk/models/shared/perpricecost.d.ts +206 -6
- package/dist/sdk/models/shared/perpricecost.js +6 -6
- package/dist/sdk/models/shared/phaseoverride.d.ts +7 -30
- package/dist/sdk/models/shared/phaseoverride.js +4 -42
- package/dist/sdk/models/shared/{availability.d.ts → pingresponse.d.ts} +1 -4
- package/dist/sdk/models/shared/{availability.js → pingresponse.js} +7 -10
- package/dist/sdk/models/shared/plan.d.ts +29 -62
- package/dist/sdk/models/shared/plan.js +55 -108
- package/dist/sdk/models/shared/planminified.d.ts +6 -2
- package/dist/sdk/models/shared/planminified.js +5 -0
- package/dist/sdk/models/shared/planphase.d.ts +18 -58
- package/dist/sdk/models/shared/planphase.js +30 -86
- package/dist/sdk/models/shared/plans.d.ts +2 -5
- package/dist/sdk/models/shared/plans.js +0 -3
- package/dist/sdk/models/shared/pricegroup.d.ts +2 -2
- package/dist/sdk/models/shared/priceinterval.d.ts +239 -0
- package/dist/sdk/models/shared/priceinterval.js +104 -0
- package/dist/sdk/models/shared/priceintervalfixedfeequantitytransitionparams.d.ts +11 -0
- package/dist/sdk/models/shared/priceintervalfixedfeequantitytransitionparams.js +54 -0
- package/dist/sdk/models/shared/prices.d.ts +6 -0
- package/dist/sdk/models/shared/prices.js +52 -0
- package/dist/sdk/models/shared/reportingconfiguration.d.ts +4 -0
- package/dist/sdk/models/shared/reportingconfiguration.js +45 -0
- package/dist/sdk/models/shared/requesttoolargeerror.d.ts +16 -0
- package/dist/sdk/models/shared/requesttoolargeerror.js +82 -0
- package/dist/sdk/models/shared/requestvalidationerror.d.ts +14 -17
- package/dist/sdk/models/shared/requestvalidationerror.js +29 -7
- package/dist/sdk/models/shared/resourcenotfounderror.d.ts +16 -0
- package/dist/sdk/models/shared/resourcenotfounderror.js +82 -0
- package/dist/sdk/models/shared/resourcetoolargeerror.d.ts +16 -0
- package/dist/sdk/models/shared/resourcetoolargeerror.js +82 -0
- package/dist/sdk/models/shared/sublineitemgrouping.d.ts +8 -0
- package/dist/sdk/models/shared/{grouping.js → sublineitemgrouping.js} +8 -11
- package/dist/sdk/models/shared/sublineitemmatrixconfig.d.ts +7 -0
- package/dist/sdk/models/shared/{matrixconfig1.js → sublineitemmatrixconfig.js} +7 -10
- package/dist/sdk/models/shared/subscription.d.ts +64 -31
- package/dist/sdk/models/shared/subscription.js +61 -42
- package/dist/sdk/models/shared/subscriptioncosts.d.ts +2 -5
- package/dist/sdk/models/shared/subscriptioncosts.js +3 -6
- package/dist/sdk/models/shared/subscriptionminified.d.ts +0 -3
- package/dist/sdk/models/shared/subscriptionminified.js +0 -3
- package/dist/sdk/models/shared/subscriptionplanchange.d.ts +20 -15
- package/dist/sdk/models/shared/subscriptionplanchange.js +37 -15
- package/dist/sdk/models/shared/subscriptions.d.ts +2 -5
- package/dist/sdk/models/shared/subscriptions.js +0 -3
- package/dist/sdk/models/shared/subscriptionscheduleitem.d.ts +3 -3
- package/dist/sdk/models/shared/{subscriptionschedule.d.ts → subscriptionscheduleitems.d.ts} +3 -6
- package/dist/sdk/models/shared/{subscriptionschedule.js → subscriptionscheduleitems.js} +8 -11
- package/dist/sdk/models/shared/subscriptiontrialinfo.d.ts +4 -0
- package/dist/sdk/models/shared/{subscriptioncancellation.js → subscriptiontrialinfo.js} +8 -14
- package/dist/sdk/models/shared/testratingfunctionprice.d.ts +241 -0
- package/dist/sdk/models/shared/testratingfunctionprice.js +361 -0
- package/dist/sdk/models/shared/thresholdtotalamountprice.d.ts +241 -0
- package/dist/sdk/models/shared/thresholdtotalamountprice.js +361 -0
- package/dist/sdk/models/shared/tier.d.ts +11 -2
- package/dist/sdk/models/shared/tier.js +2 -2
- package/dist/sdk/models/shared/tierconfig.d.ts +2 -5
- package/dist/sdk/models/shared/tierconfig.js +2 -5
- package/dist/sdk/models/shared/tieredbpsconfig.d.ts +4 -4
- package/dist/sdk/models/shared/tieredbpsconfig.js +0 -3
- package/dist/sdk/models/shared/tieredbpsprice.d.ts +242 -0
- package/dist/sdk/models/shared/tieredbpsprice.js +363 -0
- package/dist/sdk/models/shared/tieredconfig.d.ts +4 -4
- package/dist/sdk/models/shared/tieredconfig.js +0 -3
- package/dist/sdk/models/shared/tieredpackageprice.d.ts +241 -0
- package/dist/sdk/models/shared/tieredpackageprice.js +361 -0
- package/dist/sdk/models/shared/tieredprice.d.ts +242 -0
- package/dist/sdk/models/shared/tieredprice.js +363 -0
- package/dist/sdk/models/shared/tieredwithminimumprice.d.ts +241 -0
- package/dist/sdk/models/shared/tieredwithminimumprice.js +361 -0
- package/dist/sdk/models/shared/tiersublineitem.d.ts +17 -0
- package/dist/sdk/models/shared/{sublineitem1.js → tiersublineitem.js} +21 -18
- package/dist/sdk/models/shared/trialconfig.d.ts +1 -1
- package/dist/sdk/models/shared/trialdiscount.d.ts +19 -0
- package/dist/sdk/models/shared/trialdiscount.js +64 -0
- package/dist/sdk/models/shared/triggersubscriptionphaseparams.d.ts +8 -0
- package/dist/sdk/models/shared/triggersubscriptionphaseparams.js +50 -0
- package/dist/sdk/models/shared/ungroupedsubscriptionusage.d.ts +5 -0
- package/dist/sdk/models/shared/ungroupedsubscriptionusage.js +47 -0
- package/dist/sdk/models/shared/ungroupedsubscriptionusagerecord.d.ts +12 -0
- package/dist/sdk/models/shared/ungroupedsubscriptionusagerecord.js +64 -0
- package/dist/sdk/models/shared/unitconfig.d.ts +8 -4
- package/dist/sdk/models/shared/unitconfig.js +5 -3
- package/dist/sdk/models/shared/unitprice.d.ts +242 -0
- package/dist/sdk/models/shared/unitprice.js +363 -0
- package/dist/sdk/models/shared/unschedulefixedfeequantitychangeparams.d.ts +7 -0
- package/dist/sdk/models/shared/unschedulefixedfeequantitychangeparams.js +45 -0
- package/dist/sdk/models/shared/upcominginvoice.d.ts +89 -54
- package/dist/sdk/models/shared/upcominginvoice.js +216 -88
- package/dist/sdk/models/shared/updateevent.d.ts +1 -1
- package/dist/sdk/models/shared/updateevent.js +5 -1
- package/dist/sdk/models/shared/urlnotfound.d.ts +16 -0
- package/dist/sdk/models/shared/urlnotfound.js +82 -0
- package/dist/sdk/models/shared/usage.d.ts +3 -10
- package/dist/sdk/models/shared/usage.js +18 -24
- package/dist/sdk/models/shared/usagediscount.d.ts +15 -0
- package/dist/sdk/models/shared/{tier7.js → usagediscount.js} +18 -19
- package/dist/sdk/models/shared/usagediscountcreationparams.d.ts +11 -0
- package/dist/sdk/models/shared/usagediscountcreationparams.js +54 -0
- package/dist/sdk/models/shared/usagediscountinterval.d.ts +27 -0
- package/dist/sdk/models/shared/usagediscountinterval.js +82 -0
- package/dist/sdk/models/shared/validationerror.d.ts +11 -0
- package/dist/sdk/models/shared/validationerror.js +50 -0
- package/dist/sdk/models/shared/voidinitiatedledgerentry.d.ts +30 -0
- package/dist/sdk/models/shared/voidinitiatedledgerentry.js +139 -0
- package/dist/sdk/models/shared/voidledgerentry.d.ts +29 -0
- package/dist/sdk/models/shared/voidledgerentry.js +130 -0
- package/dist/sdk/plan.d.ts +54 -186
- package/dist/sdk/plan.js +656 -202
- package/dist/sdk/price.d.ts +246 -0
- package/dist/sdk/price.js +790 -0
- package/dist/sdk/priceinterval.d.ts +65 -0
- package/dist/sdk/priceinterval.js +281 -0
- package/dist/sdk/sdk.d.ts +149 -58
- package/dist/sdk/sdk.js +23 -40
- package/dist/sdk/subscription.d.ts +435 -280
- package/dist/sdk/subscription.js +1516 -350
- package/docs/models/operations/addeditpriceintervalsrequest.md +9 -0
- package/docs/models/operations/addeditpriceintervalsresponse.md +18 -0
- package/docs/models/operations/amendeventrequest.md +9 -0
- package/docs/models/operations/amendeventresponse.md +18 -0
- package/docs/models/operations/amendusageexternalcustomeridrequest.md +11 -0
- package/docs/models/operations/amendusageexternalcustomeridresponse.md +18 -0
- package/docs/models/operations/amendusagerequest.md +11 -0
- package/docs/models/operations/amendusageresponse.md +18 -0
- package/docs/models/operations/archivecouponrequest.md +8 -0
- package/docs/models/operations/archivecouponresponse.md +18 -0
- package/docs/models/operations/cancelsubscriptionrequest.md +9 -0
- package/docs/models/operations/cancelsubscriptionresponse.md +18 -0
- package/docs/models/operations/closebackfillrequest.md +8 -0
- package/docs/models/operations/closebackfillresponse.md +18 -0
- package/docs/models/operations/createbackfillresponse.md +18 -0
- package/docs/models/operations/createcouponresponse.md +18 -0
- package/docs/models/operations/createcustomerbalancetransactionrequest.md +9 -0
- package/docs/models/operations/createcustomerbalancetransactionresponse.md +18 -0
- package/docs/models/operations/createcustomerresponse.md +18 -0
- package/docs/models/operations/createinvoicelineitemresponse.md +18 -0
- package/docs/models/operations/createinvoiceresponse.md +18 -0
- package/docs/models/operations/createledgerentryexternalidrequest.md +9 -0
- package/docs/models/operations/createledgerentryexternalidresponse.md +18 -0
- package/docs/models/operations/createledgerentryrequest.md +9 -0
- package/docs/models/operations/createledgerentryresponse.md +18 -0
- package/docs/models/operations/createmetricresponse.md +18 -0
- package/docs/models/operations/createplanresponse.md +18 -0
- package/docs/models/operations/createpriceresponse.md +18 -0
- package/docs/models/operations/createsubscriptionresponse.md +18 -0
- package/docs/models/operations/deletecustomerrequest.md +8 -0
- package/docs/models/operations/deletecustomerresponse.md +18 -0
- package/docs/models/operations/deprecateeventrequest.md +8 -0
- package/docs/models/operations/deprecateeventresponse.md +18 -0
- package/docs/models/operations/fetchbackfillrequest.md +8 -0
- package/docs/models/operations/fetchbackfillresponse.md +18 -0
- package/docs/models/operations/fetchcouponrequest.md +8 -0
- package/docs/models/operations/fetchcouponresponse.md +18 -0
- package/docs/models/operations/fetchcreditnoterequest.md +8 -0
- package/docs/models/operations/fetchcreditnoteresponse.md +18 -0
- package/docs/models/operations/fetchcustomercostsexternalidrequest.md +12 -0
- package/docs/models/operations/fetchcustomercostsexternalidresponse.md +18 -0
- package/docs/models/operations/fetchcustomercostsexternalidviewmodeviewmode.md +11 -0
- package/docs/models/operations/fetchcustomercostsrequest.md +12 -0
- package/docs/models/operations/fetchcustomercostsresponse.md +18 -0
- package/docs/models/operations/fetchcustomercostsviewmodeviewmode.md +11 -0
- package/docs/models/operations/fetchcustomercreditsexternalidrequest.md +10 -0
- package/docs/models/operations/fetchcustomercreditsexternalidresponse.md +18 -0
- package/docs/models/operations/fetchcustomercreditsledgerentrystatusentrystatus.md +9 -0
- package/docs/models/operations/fetchcustomercreditsledgerentrytypeentrytype.md +14 -0
- package/docs/models/operations/fetchcustomercreditsledgerexternalidentrystatusentrystatus.md +9 -0
- package/docs/models/operations/fetchcustomercreditsledgerexternalidentrytypeentrytype.md +14 -0
- package/docs/models/operations/fetchcustomercreditsledgerexternalidrequest.md +18 -0
- package/docs/models/operations/fetchcustomercreditsledgerexternalidresponse.md +18 -0
- package/docs/models/operations/fetchcustomercreditsledgerrequest.md +18 -0
- package/docs/models/operations/fetchcustomercreditsledgerresponse.md +18 -0
- package/docs/models/operations/fetchcustomercreditsrequest.md +10 -0
- package/docs/models/operations/fetchcustomercreditsresponse.md +18 -0
- package/docs/models/operations/fetchcustomerexternalidrequest.md +8 -0
- package/docs/models/operations/fetchcustomerexternalidresponse.md +18 -0
- package/docs/models/operations/fetchcustomerrequest.md +8 -0
- package/docs/models/operations/fetchcustomerresponse.md +18 -0
- package/docs/models/operations/fetchinvoicerequest.md +8 -0
- package/docs/models/operations/fetchinvoiceresponse.md +18 -0
- package/docs/models/operations/fetchitemrequest.md +8 -0
- package/docs/models/operations/fetchitemresponse.md +18 -0
- package/docs/models/operations/fetchmetricrequest.md +8 -0
- package/docs/models/operations/fetchmetricresponse.md +18 -0
- package/docs/models/operations/fetchplanexternalidrequest.md +8 -0
- package/docs/models/operations/fetchplanexternalidresponse.md +18 -0
- package/docs/models/operations/fetchplanrequest.md +8 -0
- package/docs/models/operations/fetchplanresponse.md +18 -0
- package/docs/models/operations/fetchpriceexternalidrequest.md +8 -0
- package/docs/models/operations/fetchpriceexternalidresponse.md +18 -0
- package/docs/models/operations/fetchpricerequest.md +8 -0
- package/docs/models/operations/fetchpriceresponse.md +18 -0
- package/docs/models/operations/fetchsubscriptioncostsrequest.md +12 -0
- package/docs/models/operations/fetchsubscriptioncostsresponse.md +18 -0
- package/docs/models/operations/fetchsubscriptioncostsviewmodeviewmode.md +11 -0
- package/docs/models/operations/fetchsubscriptionrequest.md +8 -0
- package/docs/models/operations/fetchsubscriptionresponse.md +18 -0
- package/docs/models/operations/fetchsubscriptionschedulerequest.md +14 -0
- package/docs/models/operations/fetchsubscriptionscheduleresponse.md +18 -0
- package/docs/models/operations/fetchsubscriptionusagegranularitygranularity.md +10 -0
- package/docs/models/operations/fetchsubscriptionusagerequest.md +20 -0
- package/docs/models/operations/fetchsubscriptionusageresponse.md +18 -0
- package/docs/models/operations/fetchsubscriptionusageviewmodeviewmode.md +11 -0
- package/docs/models/operations/fetchupcominginvoicerequest.md +8 -0
- package/docs/models/operations/fetchupcominginvoiceresponse.md +18 -0
- package/docs/models/operations/ingestrequest.md +10 -0
- package/docs/models/operations/ingestresponse.md +18 -0
- package/docs/models/operations/issueinvoicerequest.md +8 -0
- package/docs/models/operations/issueinvoiceresponse.md +18 -0
- package/docs/models/operations/listbackfillsrequest.md +9 -0
- package/docs/models/operations/listbackfillsresponse.md +18 -0
- package/docs/models/operations/listbalancetransactionsrequest.md +14 -0
- package/docs/models/operations/listbalancetransactionsresponse.md +18 -0
- package/docs/models/operations/listcouponsrequest.md +11 -0
- package/docs/models/operations/listcouponsresponse.md +18 -0
- package/docs/models/operations/listcouponsubscriptionsrequest.md +10 -0
- package/docs/models/operations/listcouponsubscriptionsresponse.md +18 -0
- package/docs/models/operations/listcreditnotesrequest.md +9 -0
- package/docs/models/operations/listcreditnotesresponse.md +18 -0
- package/docs/models/operations/listcustomersrequest.md +13 -0
- package/docs/models/operations/listcustomersresponse.md +18 -0
- package/docs/models/operations/listinvoicesdatetypedatetype.md +9 -0
- package/docs/models/operations/listinvoicesrequest.md +27 -0
- package/docs/models/operations/listinvoicesresponse.md +18 -0
- package/docs/models/operations/listinvoicesstatus.md +12 -0
- package/docs/models/operations/listinvoicesstatusstatus.md +12 -0
- package/docs/models/operations/listitemsrequest.md +9 -0
- package/docs/models/operations/listitemsresponse.md +18 -0
- package/docs/models/operations/listmetricsrequest.md +13 -0
- package/docs/models/operations/listmetricsresponse.md +18 -0
- package/docs/models/operations/listplansrequest.md +14 -0
- package/docs/models/operations/listplansresponse.md +18 -0
- package/docs/models/operations/listplansstatusstatus.md +12 -0
- package/docs/models/operations/listpricesrequest.md +9 -0
- package/docs/models/operations/listpricesresponse.md +18 -0
- package/docs/models/operations/listsubscriptionsrequest.md +16 -0
- package/docs/models/operations/listsubscriptionsresponse.md +18 -0
- package/docs/models/operations/listsubscriptionsstatusstatus.md +10 -0
- package/docs/models/operations/markinvoiceaspaidrequest.md +9 -0
- package/docs/models/operations/markinvoiceaspaidresponse.md +18 -0
- package/docs/models/operations/pingresponse.md +18 -0
- package/docs/models/operations/revertbackfillrequest.md +8 -0
- package/docs/models/operations/revertbackfillresponse.md +18 -0
- package/docs/models/operations/scheduleplanchangerequest.md +9 -0
- package/docs/models/operations/scheduleplanchangeresponse.md +18 -0
- package/docs/models/operations/searcheventsrequest.md +14 -0
- package/docs/models/operations/searcheventsresponse.md +18 -0
- package/docs/models/operations/triggerphaserequest.md +9 -0
- package/docs/models/operations/triggerphaseresponse.md +18 -0
- package/docs/models/operations/unschedulecancellationrequest.md +8 -0
- package/docs/models/operations/unschedulecancellationresponse.md +18 -0
- package/docs/models/operations/unschedulefixedfeequantityrequest.md +9 -0
- package/docs/models/operations/unschedulefixedfeequantityresponse.md +18 -0
- package/docs/models/operations/unscheduleplanchangerequest.md +8 -0
- package/docs/models/operations/unscheduleplanchangeresponse.md +18 -0
- package/docs/models/operations/updatecustomerexternalidrequest.md +9 -0
- package/docs/models/operations/updatecustomerexternalidresponse.md +18 -0
- package/docs/models/operations/updatecustomerrequest.md +9 -0
- package/docs/models/operations/updatecustomerresponse.md +18 -0
- package/docs/models/operations/updatefixedfeequantityrequest.md +9 -0
- package/docs/models/operations/updatefixedfeequantityresponse.md +18 -0
- package/docs/models/operations/updateplanexternalrequest.md +9 -0
- package/docs/models/operations/updateplanexternalresponse.md +18 -0
- package/docs/models/operations/updateplanrequest.md +9 -0
- package/docs/models/operations/updateplanresponse.md +18 -0
- package/docs/models/operations/voidinvoicerequest.md +8 -0
- package/docs/models/operations/voidinvoiceresponse.md +18 -0
- package/docs/models/shared/accountingprovider.md +9 -0
- package/docs/models/shared/accountingproviderconfig.md +9 -0
- package/docs/models/shared/accountingproviderprovidertype.md +9 -0
- package/docs/models/shared/accountingsyncconfiguration.md +9 -0
- package/docs/models/shared/adddecrementcreditledgerentryrequestparams.md +11 -0
- package/docs/models/shared/adddecrementcreditledgerentryrequestparamsentrytype.md +8 -0
- package/docs/models/shared/adddecrementcreditledgerentryrequestparamsmetadata.md +9 -0
- package/docs/models/shared/addeditpriceintervalparams.md +9 -0
- package/docs/models/shared/addexpirationchangecreditledgerentryrequestparams.md +14 -0
- package/docs/models/shared/addexpirationchangecreditledgerentryrequestparamsentrytype.md +8 -0
- package/docs/models/shared/addexpirationchangecreditledgerentryrequestparamsmetadata.md +9 -0
- package/docs/models/shared/addincrementcreditledgerentryrequestparams.md +15 -0
- package/docs/models/shared/addincrementcreditledgerentryrequestparamsentrytype.md +8 -0
- package/docs/models/shared/addincrementcreditledgerentryrequestparamsmetadata.md +9 -0
- package/docs/models/shared/addpriceintervalparams.md +16 -0
- package/docs/models/shared/addpriceintervalparamsenddateenddate.md +11 -0
- package/docs/models/shared/addpriceintervalparamsstartdatestartdate.md +11 -0
- package/docs/models/shared/address.md +13 -0
- package/docs/models/shared/addressinput.md +13 -0
- package/docs/models/shared/addvoidcreditledgerentryrequestparams.md +12 -0
- package/docs/models/shared/addvoidcreditledgerentryrequestparamsentrytype.md +8 -0
- package/docs/models/shared/addvoidcreditledgerentryrequestparamsmetadata.md +9 -0
- package/docs/models/shared/addvoidcreditledgerentryrequestparamsvoidreason.md +10 -0
- package/docs/models/shared/affectedblock.md +10 -0
- package/docs/models/shared/aggregatedcost.md +12 -0
- package/docs/models/shared/amendedevent.md +12 -0
- package/docs/models/shared/amendedeventproperties.md +9 -0
- package/docs/models/shared/amendedusage.md +9 -0
- package/docs/models/shared/amendeventresult.md +8 -0
- package/docs/models/shared/amendmentledgerentry.md +21 -0
- package/docs/models/shared/amendmentledgerentryentrystatus.md +9 -0
- package/docs/models/shared/amendmentledgerentryentrytype.md +8 -0
- package/docs/models/shared/amountdiscount.md +10 -0
- package/docs/models/shared/amountdiscountcreationparams.md +9 -0
- package/docs/models/shared/amountdiscountcreationparamsdiscounttype.md +8 -0
- package/docs/models/shared/amountdiscountdiscounttype.md +8 -0
- package/docs/models/shared/amountdiscountinterval.md +13 -0
- package/docs/models/shared/amountdiscountintervaldiscounttype.md +8 -0
- package/docs/models/shared/autocollection.md +10 -0
- package/docs/models/shared/backfill.md +17 -0
- package/docs/models/shared/backfills.md +9 -0
- package/docs/models/shared/backfillstatus.md +13 -0
- package/docs/models/shared/billablemetric.md +16 -0
- package/docs/models/shared/billablemetrics.md +9 -0
- package/docs/models/shared/billablemetricsimple.md +9 -0
- package/docs/models/shared/billablemetricstatus.md +10 -0
- package/docs/models/shared/billablemetrictiny.md +8 -0
- package/docs/models/shared/billingcyclealignment.md +12 -0
- package/docs/models/shared/bpsconfig.md +9 -0
- package/docs/models/shared/bpsprice.md +225 -0
- package/docs/models/shared/bpspricecadence.md +11 -0
- package/docs/models/shared/bpspricemodeltype.md +8 -0
- package/docs/models/shared/bpspricepricetype.md +9 -0
- package/docs/models/shared/bpstier.md +11 -0
- package/docs/models/shared/bulkbpsconfig.md +8 -0
- package/docs/models/shared/bulkbpsprice.md +225 -0
- package/docs/models/shared/bulkbpspricecadence.md +11 -0
- package/docs/models/shared/bulkbpspricemodeltype.md +8 -0
- package/docs/models/shared/bulkbpspricepricetype.md +9 -0
- package/docs/models/shared/bulkbpstier.md +10 -0
- package/docs/models/shared/bulkconfig.md +8 -0
- package/docs/models/shared/bulkprice.md +225 -0
- package/docs/models/shared/bulkpricecadence.md +11 -0
- package/docs/models/shared/bulkpricemodeltype.md +8 -0
- package/docs/models/shared/bulkpricepricetype.md +9 -0
- package/docs/models/shared/bulktier.md +9 -0
- package/docs/models/shared/cancelsubscriptionparams.md +9 -0
- package/docs/models/shared/cancelsubscriptionparamscanceloption.md +12 -0
- package/docs/models/shared/changeoption.md +10 -0
- package/docs/models/shared/coupon.md +21 -0
- package/docs/models/shared/coupondiscount.md +7 -0
- package/docs/models/shared/couponredemption.md +10 -0
- package/docs/models/shared/coupons.md +9 -0
- package/docs/models/shared/createinvoicelineitemparams.md +13 -0
- package/docs/models/shared/createoneoffinvoiceparams.md +15 -0
- package/docs/models/shared/creditblockexpiryledgerentry.md +21 -0
- package/docs/models/shared/creditblockexpiryledgerentryentrystatus.md +9 -0
- package/docs/models/shared/creditblockexpiryledgerentryentrytype.md +8 -0
- package/docs/models/shared/creditledgerentries.md +9 -0
- package/docs/models/shared/creditnote.md +26 -0
- package/docs/models/shared/creditnotediscounts.md +7 -0
- package/docs/models/shared/creditnotelineitem.md +15 -0
- package/docs/models/shared/creditnotelineitemdiscounts.md +7 -0
- package/docs/models/shared/creditnotelineitemtaxamounts.md +7 -0
- package/docs/models/shared/creditnotemaximumamountadjustment.md +9 -0
- package/docs/models/shared/creditnoteminified.md +8 -0
- package/docs/models/shared/creditnotereason.md +11 -0
- package/docs/models/shared/creditnotes.md +9 -0
- package/docs/models/shared/creditnotesublineitem.md +10 -0
- package/docs/models/shared/creditnotesummary.md +13 -0
- package/docs/models/shared/creditnotetype.md +9 -0
- package/docs/models/shared/customer.md +42 -0
- package/docs/models/shared/customerbalancetransaction.md +17 -0
- package/docs/models/shared/customerbalancetransactionaction.md +10 -0
- package/docs/models/shared/customerbalancetransactions.md +9 -0
- package/docs/models/shared/customerbalancetransactiontype.md +9 -0
- package/docs/models/shared/customercosts.md +8 -0
- package/docs/models/shared/customercreditbalance.md +11 -0
- package/docs/models/shared/customercreditbalances.md +9 -0
- package/docs/models/shared/customerminified.md +9 -0
- package/docs/models/shared/customerpaymentprovider.md +14 -0
- package/docs/models/shared/customers.md +9 -0
- package/docs/models/shared/customertaxid.md +10 -0
- package/docs/models/shared/debug.md +11 -0
- package/docs/models/shared/decrementledgerentry.md +24 -0
- package/docs/models/shared/decrementledgerentryentrystatus.md +9 -0
- package/docs/models/shared/decrementledgerentryentrytype.md +8 -0
- package/docs/models/shared/deletecustomerresponse.md +7 -0
- package/docs/models/shared/deprecatedeventresult.md +8 -0
- package/docs/models/shared/discount.md +15 -0
- package/docs/models/shared/discountdiscounttype.md +11 -0
- package/docs/models/shared/duplicateconstraintviolationerror.md +12 -0
- package/docs/models/shared/duplicateconstraintviolationerrorheaders.md +7 -0
- package/docs/models/shared/duplicateconstraintviolationerrorstatus.md +8 -0
- package/docs/models/shared/duplicateconstraintviolationerrortype.md +8 -0
- package/docs/models/shared/duplicateresourcecreationerror.md +12 -0
- package/docs/models/shared/duplicateresourcecreationerrorheaders.md +7 -0
- package/docs/models/shared/duplicateresourcecreationerrorstatus.md +8 -0
- package/docs/models/shared/duplicateresourcecreationerrortype.md +8 -0
- package/docs/models/shared/editcustomer.md +22 -0
- package/docs/models/shared/editcustomermetadata.md +9 -0
- package/docs/models/shared/editcustomerpaymentprovider.md +16 -0
- package/docs/models/shared/editplan.md +9 -0
- package/docs/models/shared/editplanmetadata.md +7 -0
- package/docs/models/shared/editpriceintervalparams.md +11 -0
- package/docs/models/shared/editpriceintervalparamsenddateenddate.md +11 -0
- package/docs/models/shared/editpriceintervalparamsstartdatestartdate.md +11 -0
- package/docs/models/shared/event.md +17 -0
- package/docs/models/shared/eventproperties.md +9 -0
- package/docs/models/shared/events.md +9 -0
- package/docs/models/shared/eventsearchcriteria.md +9 -0
- package/docs/models/shared/expirationchangeledgerentry.md +22 -0
- package/docs/models/shared/expirationchangeledgerentryentrystatus.md +9 -0
- package/docs/models/shared/expirationchangeledgerentryentrytype.md +8 -0
- package/docs/models/shared/featurenotavailableerror.md +12 -0
- package/docs/models/shared/featurenotavailableerrorheaders.md +7 -0
- package/docs/models/shared/featurenotavailableerrorstatus.md +8 -0
- package/docs/models/shared/featurenotavailableerrortype.md +8 -0
- package/docs/models/shared/fivehundrederror.md +12 -0
- package/docs/models/shared/fivehundrederrorheaders.md +7 -0
- package/docs/models/shared/fivehundrederrortype.md +8 -0
- package/docs/models/shared/fivetranexampleprice.md +225 -0
- package/docs/models/shared/fivetranexamplepricecadence.md +11 -0
- package/docs/models/shared/fivetranexamplepricemodeltype.md +8 -0
- package/docs/models/shared/fivetranexamplepricepricetype.md +9 -0
- package/docs/models/shared/fixedfeequantitychange.md +11 -0
- package/docs/models/shared/fixedfeequantitychangechangeoption.md +12 -0
- package/docs/models/shared/fixedfeequantityscheduleentry.md +11 -0
- package/docs/models/shared/fixedfeequantitytransition.md +10 -0
- package/docs/models/shared/fourhundredandoneerror.md +12 -0
- package/docs/models/shared/fourhundredandoneerrorheaders.md +7 -0
- package/docs/models/shared/fourhundredandoneerrorstatus.md +8 -0
- package/docs/models/shared/fourhundredandoneerrortype.md +8 -0
- package/docs/models/shared/fourhundredandtwentynineerror.md +12 -0
- package/docs/models/shared/fourhundredandtwentynineerrorheaders.md +7 -0
- package/docs/models/shared/fourhundredandtwentynineerrorstatus.md +8 -0
- package/docs/models/shared/fourhundredandtwentynineerrortype.md +8 -0
- package/docs/models/shared/groupedsubscriptionusage.md +9 -0
- package/docs/models/shared/groupedsubscriptionusagerecord.md +11 -0
- package/docs/models/shared/groupedsubscriptionusagerecordviewmode.md +9 -0
- package/docs/models/shared/idempotencyconflict.md +12 -0
- package/docs/models/shared/idempotencyconflictheaders.md +7 -0
- package/docs/models/shared/idempotencyconflictstatus.md +8 -0
- package/docs/models/shared/idempotencyconflicttype.md +8 -0
- package/docs/models/shared/idempotencykeyvalidationerror.md +13 -0
- package/docs/models/shared/idempotencykeyvalidationerrorheaders.md +7 -0
- package/docs/models/shared/idempotencykeyvalidationerrorstatus.md +8 -0
- package/docs/models/shared/idempotencykeyvalidationerrortype.md +8 -0
- package/docs/models/shared/idempotencyrequestmismatch.md +12 -0
- package/docs/models/shared/idempotencyrequestmismatchheaders.md +7 -0
- package/docs/models/shared/idempotencyrequestmismatchstatus.md +8 -0
- package/docs/models/shared/idempotencyrequestmismatchtype.md +8 -0
- package/docs/models/shared/incrementcreditledgerentryinvoicesettings.md +12 -0
- package/docs/models/shared/incrementledgerentry.md +21 -0
- package/docs/models/shared/incrementledgerentryentrystatus.md +9 -0
- package/docs/models/shared/incrementledgerentryentrytype.md +8 -0
- package/docs/models/shared/ingestevent.md +13 -0
- package/docs/models/shared/ingesteventproperties.md +9 -0
- package/docs/models/shared/ingestionresponse.md +9 -0
- package/docs/models/shared/ingestrequestbody.md +8 -0
- package/docs/models/shared/invoice.md +51 -0
- package/docs/models/shared/invoicelineitem.md +23 -0
- package/docs/models/shared/invoicelineitemparams.md +14 -0
- package/docs/models/shared/invoicelineitemparamsmodeltype.md +8 -0
- package/docs/models/shared/invoicemetadata.md +7 -0
- package/docs/models/shared/invoiceminified.md +8 -0
- package/docs/models/shared/invoices.md +9 -0
- package/docs/models/shared/invoicestatus.md +12 -0
- package/docs/models/shared/item.md +14 -0
- package/docs/models/shared/itemexternalconnection.md +9 -0
- package/docs/models/shared/itemexternalconnectionexternalconnectionnameexternalconnectionname.md +11 -0
- package/docs/models/shared/itemexternalconnectionexternalconnectionnameexternalconnectionname1.md +10 -0
- package/docs/models/shared/items.md +9 -0
- package/docs/models/shared/itemslim.md +9 -0
- package/docs/models/shared/markaspaidrequestparams.md +10 -0
- package/docs/models/shared/matrixconfig.md +11 -0
- package/docs/models/shared/matrixprice.md +225 -0
- package/docs/models/shared/matrixpricecadence.md +11 -0
- package/docs/models/shared/matrixpricemodeltype.md +8 -0
- package/docs/models/shared/matrixpricepricetype.md +9 -0
- package/docs/models/shared/matrixsublineitem.md +13 -0
- package/docs/models/shared/matrixsublineitemtype.md +8 -0
- package/docs/models/shared/matrixvalue.md +10 -0
- package/docs/models/shared/maximum.md +9 -0
- package/docs/models/shared/maximuminterval.md +12 -0
- package/docs/models/shared/metricgroup.md +9 -0
- package/docs/models/shared/minimum.md +9 -0
- package/docs/models/shared/minimuminterval.md +12 -0
- package/docs/models/shared/newaccountingsyncconfiguration.md +9 -0
- package/docs/models/shared/newbackfill.md +13 -0
- package/docs/models/shared/newbillablemetric.md +12 -0
- package/docs/models/shared/newbillablemetricmetadata.md +9 -0
- package/docs/models/shared/newbpsprice.md +18 -0
- package/docs/models/shared/newbpspricecadence.md +12 -0
- package/docs/models/shared/newbpspricemodeltype.md +8 -0
- package/docs/models/shared/newbulkbpsprice.md +18 -0
- package/docs/models/shared/newbulkbpspricecadence.md +12 -0
- package/docs/models/shared/newbulkbpspricemodeltype.md +8 -0
- package/docs/models/shared/newbulkprice.md +18 -0
- package/docs/models/shared/newbulkpricecadence.md +12 -0
- package/docs/models/shared/newbulkpricemodeltype.md +8 -0
- package/docs/models/shared/newcoupon.md +11 -0
- package/docs/models/shared/newcoupondiscount.md +7 -0
- package/docs/models/shared/newcustomer.md +23 -0
- package/docs/models/shared/newcustomerbalancetransaction.md +10 -0
- package/docs/models/shared/newcustomerbalancetransactiontype.md +9 -0
- package/docs/models/shared/newcustomermetadata.md +9 -0
- package/docs/models/shared/newcustomerpaymentprovider.md +14 -0
- package/docs/models/shared/newmatrixprice.md +18 -0
- package/docs/models/shared/newmatrixpricecadence.md +12 -0
- package/docs/models/shared/newmatrixpricemodeltype.md +8 -0
- package/docs/models/shared/newpackageprice.md +18 -0
- package/docs/models/shared/newpackagepricecadence.md +12 -0
- package/docs/models/shared/newpackagepricemodeltype.md +8 -0
- package/docs/models/shared/newpackagewithallocationprice.md +18 -0
- package/docs/models/shared/newpackagewithallocationpricecadence.md +12 -0
- package/docs/models/shared/newpackagewithallocationpricemodeltype.md +8 -0
- package/docs/models/shared/newplan.md +14 -0
- package/docs/models/shared/newplanmetadata.md +7 -0
- package/docs/models/shared/newplanprices.md +7 -0
- package/docs/models/shared/newreportingconfiguration.md +8 -0
- package/docs/models/shared/newsubscription.md +31 -0
- package/docs/models/shared/newsubscriptionexternalmarketplace.md +10 -0
- package/docs/models/shared/newsubscriptionmetadata.md +7 -0
- package/docs/models/shared/newthresholdtotalamountprice.md +18 -0
- package/docs/models/shared/newthresholdtotalamountpricecadence.md +12 -0
- package/docs/models/shared/newthresholdtotalamountpricemodeltype.md +8 -0
- package/docs/models/shared/newtieredbpsprice.md +18 -0
- package/docs/models/shared/newtieredbpspricecadence.md +12 -0
- package/docs/models/shared/newtieredbpspricemodeltype.md +8 -0
- package/docs/models/shared/newtieredpackageprice.md +18 -0
- package/docs/models/shared/newtieredpackagepricecadence.md +12 -0
- package/docs/models/shared/newtieredpackagepricemodeltype.md +8 -0
- package/docs/models/shared/newtieredprice.md +18 -0
- package/docs/models/shared/newtieredpricecadence.md +12 -0
- package/docs/models/shared/newtieredpricemodeltype.md +8 -0
- package/docs/models/shared/newtieredwithminimumprice.md +18 -0
- package/docs/models/shared/newtieredwithminimumpricecadence.md +12 -0
- package/docs/models/shared/newtieredwithminimumpricemodeltype.md +8 -0
- package/docs/models/shared/newunitprice.md +18 -0
- package/docs/models/shared/newunitpricecadence.md +12 -0
- package/docs/models/shared/newunitpricemodeltype.md +8 -0
- package/docs/models/shared/othersublineitem.md +12 -0
- package/docs/models/shared/othersublineitemtype.md +8 -0
- package/docs/models/shared/overridebpsprice.md +14 -0
- package/docs/models/shared/overridebpspricemodeltype.md +8 -0
- package/docs/models/shared/overridebulkbpsprice.md +14 -0
- package/docs/models/shared/overridebulkbpspricemodeltype.md +8 -0
- package/docs/models/shared/overridebulkprice.md +14 -0
- package/docs/models/shared/overridebulkpricemodeltype.md +8 -0
- package/docs/models/shared/overridefivetranexampleprice.md +14 -0
- package/docs/models/shared/overridefivetranexamplepricemodeltype.md +8 -0
- package/docs/models/shared/overridematrixprice.md +14 -0
- package/docs/models/shared/overridematrixpricemodeltype.md +8 -0
- package/docs/models/shared/overridepackageprice.md +14 -0
- package/docs/models/shared/overridepackagepricemodeltype.md +8 -0
- package/docs/models/shared/overridepackagewithallocationprice.md +14 -0
- package/docs/models/shared/overridepackagewithallocationpricemodeltype.md +8 -0
- package/docs/models/shared/overridetestratingfunctionprice.md +14 -0
- package/docs/models/shared/overridetestratingfunctionpricemodeltype.md +8 -0
- package/docs/models/shared/overridethresholdtotalamountprice.md +14 -0
- package/docs/models/shared/overridethresholdtotalamountpricemodeltype.md +8 -0
- package/docs/models/shared/overridetieredbpsprice.md +14 -0
- package/docs/models/shared/overridetieredbpspricemodeltype.md +8 -0
- package/docs/models/shared/overridetieredpackageprice.md +14 -0
- package/docs/models/shared/overridetieredpackagepricemodeltype.md +8 -0
- package/docs/models/shared/overridetieredprice.md +14 -0
- package/docs/models/shared/overridetieredpricemodeltype.md +8 -0
- package/docs/models/shared/overridetieredwithminimumprice.md +14 -0
- package/docs/models/shared/overridetieredwithminimumpricemodeltype.md +8 -0
- package/docs/models/shared/overrideunitprice.md +14 -0
- package/docs/models/shared/overrideunitpricemodeltype.md +8 -0
- package/docs/models/shared/packageconfig.md +9 -0
- package/docs/models/shared/packageprice.md +225 -0
- package/docs/models/shared/packagepricecadence.md +11 -0
- package/docs/models/shared/packagepricemodeltype.md +8 -0
- package/docs/models/shared/packagepricepricetype.md +9 -0
- package/docs/models/shared/packagewithallocationprice.md +225 -0
- package/docs/models/shared/packagewithallocationpricecadence.md +11 -0
- package/docs/models/shared/packagewithallocationpricemodeltype.md +8 -0
- package/docs/models/shared/packagewithallocationpricepricetype.md +9 -0
- package/docs/models/shared/paginationmetadata.md +9 -0
- package/docs/models/shared/percentagediscount.md +10 -0
- package/docs/models/shared/percentagediscountcreationparams.md +9 -0
- package/docs/models/shared/percentagediscountcreationparamsdiscounttype.md +8 -0
- package/docs/models/shared/percentagediscountdiscounttype.md +8 -0
- package/docs/models/shared/percentagediscountinterval.md +13 -0
- package/docs/models/shared/percentagediscountintervaldiscounttype.md +8 -0
- package/docs/models/shared/perpricecost.md +12 -0
- package/docs/models/shared/phaseoverride.md +11 -0
- package/docs/models/shared/pingresponse.md +8 -0
- package/docs/models/shared/plan.md +33 -0
- package/docs/models/shared/planmetadata.md +7 -0
- package/docs/models/shared/planminified.md +10 -0
- package/docs/models/shared/planphase.md +18 -0
- package/docs/models/shared/planphasedurationunit.md +11 -0
- package/docs/models/shared/planprices.md +7 -0
- package/docs/models/shared/plans.md +9 -0
- package/docs/models/shared/planstatus.md +10 -0
- package/docs/models/shared/pricegroup.md +12 -0
- package/docs/models/shared/priceinterval.md +18 -0
- package/docs/models/shared/priceintervalfixedfeequantitytransitionparams.md +9 -0
- package/docs/models/shared/prices.md +9 -0
- package/docs/models/shared/product.md +10 -0
- package/docs/models/shared/reportingconfiguration.md +8 -0
- package/docs/models/shared/requesttoolargeerror.md +12 -0
- package/docs/models/shared/requesttoolargeerrorheaders.md +7 -0
- package/docs/models/shared/requesttoolargeerrorstatus.md +8 -0
- package/docs/models/shared/requesttoolargeerrortype.md +8 -0
- package/docs/models/shared/requestvalidationerror.md +13 -0
- package/docs/models/shared/requestvalidationerrorheaders.md +7 -0
- package/docs/models/shared/requestvalidationerrorstatus.md +8 -0
- package/docs/models/shared/requestvalidationerrortype.md +8 -0
- package/docs/models/shared/resourcenotfounderror.md +12 -0
- package/docs/models/shared/resourcenotfounderrorheaders.md +7 -0
- package/docs/models/shared/resourcenotfounderrorstatus.md +8 -0
- package/docs/models/shared/resourcenotfounderrortype.md +8 -0
- package/docs/models/shared/resourcetoolargeerror.md +12 -0
- package/docs/models/shared/resourcetoolargeerrorheaders.md +7 -0
- package/docs/models/shared/resourcetoolargeerrorstatus.md +8 -0
- package/docs/models/shared/resourcetoolargeerrortype.md +8 -0
- package/docs/models/shared/security.md +8 -0
- package/docs/models/shared/sublineitemgrouping.md +9 -0
- package/docs/models/shared/sublineitemmatrixconfig.md +8 -0
- package/docs/models/shared/subscription.md +44 -0
- package/docs/models/shared/subscriptioncosts.md +8 -0
- package/docs/models/shared/subscriptionmetadata.md +9 -0
- package/docs/models/shared/subscriptionminified.md +8 -0
- package/docs/models/shared/subscriptionplanchange.md +23 -0
- package/docs/models/shared/subscriptions.md +9 -0
- package/docs/models/shared/subscriptionscheduleitem.md +10 -0
- package/docs/models/shared/subscriptionscheduleitems.md +9 -0
- package/docs/models/shared/subscriptionstatus.md +10 -0
- package/docs/models/shared/subscriptiontrialinfo.md +8 -0
- package/docs/models/shared/taxamount.md +10 -0
- package/docs/models/shared/testratingfunctionprice.md +225 -0
- package/docs/models/shared/testratingfunctionpricecadence.md +11 -0
- package/docs/models/shared/testratingfunctionpricemodeltype.md +8 -0
- package/docs/models/shared/testratingfunctionpricepricetype.md +9 -0
- package/docs/models/shared/thresholdtotalamountprice.md +225 -0
- package/docs/models/shared/thresholdtotalamountpricecadence.md +11 -0
- package/docs/models/shared/thresholdtotalamountpricemodeltype.md +8 -0
- package/docs/models/shared/thresholdtotalamountpricepricetype.md +9 -0
- package/docs/models/shared/tier.md +10 -0
- package/docs/models/shared/tierconfig.md +10 -0
- package/docs/models/shared/tieredbpsconfig.md +8 -0
- package/docs/models/shared/tieredbpsprice.md +225 -0
- package/docs/models/shared/tieredbpspricecadence.md +11 -0
- package/docs/models/shared/tieredbpspricemodeltype.md +8 -0
- package/docs/models/shared/tieredbpspricepricetype.md +9 -0
- package/docs/models/shared/tieredconfig.md +8 -0
- package/docs/models/shared/tieredpackageprice.md +225 -0
- package/docs/models/shared/tieredpackagepricecadence.md +11 -0
- package/docs/models/shared/tieredpackagepricemodeltype.md +8 -0
- package/docs/models/shared/tieredpackagepricepricetype.md +9 -0
- package/docs/models/shared/tieredprice.md +225 -0
- package/docs/models/shared/tieredpricecadence.md +11 -0
- package/docs/models/shared/tieredpricemodeltype.md +8 -0
- package/docs/models/shared/tieredpricepricetype.md +9 -0
- package/docs/models/shared/tieredwithminimumprice.md +225 -0
- package/docs/models/shared/tieredwithminimumpricecadence.md +11 -0
- package/docs/models/shared/tieredwithminimumpricemodeltype.md +8 -0
- package/docs/models/shared/tieredwithminimumpricepricetype.md +9 -0
- package/docs/models/shared/tiersublineitem.md +13 -0
- package/docs/models/shared/tiersublineitemtype.md +8 -0
- package/docs/models/shared/trialconfig.md +9 -0
- package/docs/models/shared/trialconfigtrialperiodunit.md +8 -0
- package/docs/models/shared/trialdiscount.md +11 -0
- package/docs/models/shared/trialdiscountdiscounttype.md +8 -0
- package/docs/models/shared/triggersubscriptionphaseparams.md +8 -0
- package/docs/models/shared/ungroupedsubscriptionusage.md +8 -0
- package/docs/models/shared/ungroupedsubscriptionusagerecord.md +10 -0
- package/docs/models/shared/ungroupedsubscriptionusagerecordviewmode.md +9 -0
- package/docs/models/shared/unitconfig.md +9 -0
- package/docs/models/shared/unitprice.md +225 -0
- package/docs/models/shared/unitpricecadence.md +11 -0
- package/docs/models/shared/unitpricemodeltype.md +8 -0
- package/docs/models/shared/unitpricepricetype.md +9 -0
- package/docs/models/shared/unschedulefixedfeequantitychangeparams.md +8 -0
- package/docs/models/shared/upcominginvoice.md +46 -0
- package/docs/models/shared/upcominginvoicemetadata.md +7 -0
- package/docs/models/shared/upcominginvoicestatus.md +12 -0
- package/docs/models/shared/updateevent.md +12 -0
- package/docs/models/shared/updateeventproperties.md +9 -0
- package/docs/models/shared/urlnotfound.md +12 -0
- package/docs/models/shared/urlnotfoundheaders.md +7 -0
- package/docs/models/shared/urlnotfoundstatus.md +8 -0
- package/docs/models/shared/urlnotfoundtype.md +8 -0
- package/docs/models/shared/usage.md +10 -0
- package/docs/models/shared/usagediscount.md +10 -0
- package/docs/models/shared/usagediscountcreationparams.md +9 -0
- package/docs/models/shared/usagediscountcreationparamsdiscounttype.md +8 -0
- package/docs/models/shared/usagediscountdiscounttype.md +8 -0
- package/docs/models/shared/usagediscountinterval.md +13 -0
- package/docs/models/shared/usagediscountintervaldiscounttype.md +8 -0
- package/docs/models/shared/validationerror.md +9 -0
- package/docs/models/shared/voidinitiatedledgerentry.md +24 -0
- package/docs/models/shared/voidinitiatedledgerentryentrystatus.md +9 -0
- package/docs/models/shared/voidinitiatedledgerentryentrytype.md +8 -0
- package/docs/models/shared/voidledgerentry.md +23 -0
- package/docs/models/shared/voidledgerentryentrystatus.md +9 -0
- package/docs/models/shared/voidledgerentryentrytype.md +8 -0
- package/docs/sdks/availability/README.md +45 -0
- package/docs/sdks/coupon/README.md +226 -0
- package/docs/sdks/credit/README.md +424 -0
- package/docs/sdks/creditnote/README.md +91 -0
- package/docs/sdks/customer/README.md +1129 -0
- package/docs/sdks/event/README.md +674 -0
- package/docs/sdks/invoice/README.md +402 -0
- package/docs/sdks/item/README.md +89 -0
- package/docs/sdks/metric/README.md +140 -0
- package/docs/sdks/orb/README.md +21 -0
- package/docs/sdks/plan/README.md +300 -0
- package/docs/sdks/price/README.md +411 -0
- package/docs/sdks/priceinterval/README.md +180 -0
- package/docs/sdks/subscription/README.md +1412 -0
- package/docs/types/rfcdate.md +11 -0
- package/package.json +2 -1
- package/dist/sdk/models/operations/addledgerentryexternalid.d.ts +0 -16
- package/dist/sdk/models/operations/listcreditnote.d.ts +0 -34
- package/dist/sdk/models/shared/action.d.ts +0 -8
- package/dist/sdk/models/shared/action.js +0 -15
- package/dist/sdk/models/shared/billablemetricminified.d.ts +0 -5
- package/dist/sdk/models/shared/bpspriceoverride.d.ts +0 -24
- package/dist/sdk/models/shared/bulkbpspriceoverride.d.ts +0 -24
- package/dist/sdk/models/shared/bulkpriceoverride.d.ts +0 -24
- package/dist/sdk/models/shared/cadence.d.ts +0 -5
- package/dist/sdk/models/shared/cadence.js +0 -12
- package/dist/sdk/models/shared/canceloption.d.ts +0 -8
- package/dist/sdk/models/shared/canceloption.js +0 -15
- package/dist/sdk/models/shared/changeoption1.d.ts +0 -8
- package/dist/sdk/models/shared/changeoption1.js +0 -15
- package/dist/sdk/models/shared/credit.d.ts +0 -16
- package/dist/sdk/models/shared/creditblock.d.ts +0 -15
- package/dist/sdk/models/shared/creditledgerentry.d.ts +0 -58
- package/dist/sdk/models/shared/creditnotetype.d.ts +0 -7
- package/dist/sdk/models/shared/creditnotetype.js +0 -14
- package/dist/sdk/models/shared/customercost.d.ts +0 -15
- package/dist/sdk/models/shared/discounttype.d.ts +0 -6
- package/dist/sdk/models/shared/discounttype.js +0 -13
- package/dist/sdk/models/shared/durationunit.d.ts +0 -8
- package/dist/sdk/models/shared/durationunit.js +0 -15
- package/dist/sdk/models/shared/entrystatus.d.ts +0 -7
- package/dist/sdk/models/shared/entrystatus.js +0 -14
- package/dist/sdk/models/shared/entrytype.d.ts +0 -9
- package/dist/sdk/models/shared/entrytype.js +0 -16
- package/dist/sdk/models/shared/eventsearchresults.d.ts +0 -10
- package/dist/sdk/models/shared/externalmarketplace.d.ts +0 -8
- package/dist/sdk/models/shared/externalmarketplace.js +0 -15
- package/dist/sdk/models/shared/fixedfeequantityschedule.d.ts +0 -7
- package/dist/sdk/models/shared/granularity.d.ts +0 -6
- package/dist/sdk/models/shared/granularity.js +0 -13
- package/dist/sdk/models/shared/grouping.d.ts +0 -8
- package/dist/sdk/models/shared/invoicestatus.d.ts +0 -10
- package/dist/sdk/models/shared/invoicestatus.js +0 -17
- package/dist/sdk/models/shared/lineitem.d.ts +0 -58
- package/dist/sdk/models/shared/lineitem.js +0 -147
- package/dist/sdk/models/shared/matrixconfig1.d.ts +0 -10
- package/dist/sdk/models/shared/modeltype.d.ts +0 -10
- package/dist/sdk/models/shared/modeltype.js +0 -17
- package/dist/sdk/models/shared/newcreditledgerentry.d.ts +0 -44
- package/dist/sdk/models/shared/newtransaction.d.ts +0 -10
- package/dist/sdk/models/shared/packagepriceoverride.d.ts +0 -24
- package/dist/sdk/models/shared/price.d.ts +0 -114
- package/dist/sdk/models/shared/price.js +0 -245
- package/dist/sdk/models/shared/reason.d.ts +0 -9
- package/dist/sdk/models/shared/reason.js +0 -16
- package/dist/sdk/models/shared/sublineitem.d.ts +0 -32
- package/dist/sdk/models/shared/sublineitem1.d.ts +0 -24
- package/dist/sdk/models/shared/subscriptioncancellation.d.ts +0 -12
- package/dist/sdk/models/shared/subscriptionstatus.d.ts +0 -5
- package/dist/sdk/models/shared/subscriptionstatus.js +0 -12
- package/dist/sdk/models/shared/subscriptionusage.d.ts +0 -8
- package/dist/sdk/models/shared/tier7.d.ts +0 -7
- package/dist/sdk/models/shared/tieredbpsconfig1.d.ts +0 -5
- package/dist/sdk/models/shared/tieredbpspriceoverride.d.ts +0 -21
- package/dist/sdk/models/shared/tieredpriceoverride.d.ts +0 -27
- package/dist/sdk/models/shared/transactiontype.d.ts +0 -4
- package/dist/sdk/models/shared/transactiontype.js +0 -11
- package/dist/sdk/models/shared/type.d.ts +0 -7
- package/dist/sdk/models/shared/type.js +0 -14
- package/dist/sdk/models/shared/unitpriceoverride.d.ts +0 -24
- package/dist/sdk/models/shared/usageitem.d.ts +0 -6
- package/dist/sdk/models/shared/validationerrors.d.ts +0 -13
- package/dist/sdk/models/shared/validationerrors.js +0 -59
- package/dist/sdk/models/shared/viewmode.d.ts +0 -7
- package/dist/sdk/models/shared/viewmode.js +0 -14
|
@@ -7,11 +7,17 @@ import { AxiosRequestConfig } from "axios";
|
|
|
7
7
|
*
|
|
8
8
|
* @remarks
|
|
9
9
|
*
|
|
10
|
-
* By default, subscriptions begin on the day that they're created and renew automatically for each billing cycle at
|
|
10
|
+
* By default, subscriptions begin on the day that they're created and renew automatically for each billing cycle at
|
|
11
|
+
* the cadence that's configured in the plan definition.
|
|
11
12
|
*
|
|
12
|
-
* Subscriptions also default to **beginning of month alignment**, which means the first invoice issued for the
|
|
13
|
+
* Subscriptions also default to **beginning of month alignment**, which means the first invoice issued for the
|
|
14
|
+
* subscription will have pro-rated charges between the `start_date` and the first of the following month. Subsequent
|
|
15
|
+
* billing periods will always start and end on a month boundary (e.g. subsequent month starts for monthly billing).
|
|
13
16
|
*
|
|
14
|
-
* Depending on the plan configuration, any _flat_ recurring fees will be billed either at the beginning (in-advance)
|
|
17
|
+
* Depending on the plan configuration, any _flat_ recurring fees will be billed either at the beginning (in-advance)
|
|
18
|
+
* or end (in-arrears) of each billing cycle. Plans default to **in-advance billing**. Usage-based fees are billed in
|
|
19
|
+
* arrears as usage is accumulated. In the normal course of events, you can expect an invoice to contain usage-based
|
|
20
|
+
* charges for the previous period, and a recurring fee for the following period.
|
|
15
21
|
*/
|
|
16
22
|
export declare class Subscription {
|
|
17
23
|
private sdkConfiguration;
|
|
@@ -20,55 +26,93 @@ export declare class Subscription {
|
|
|
20
26
|
* Cancel subscription
|
|
21
27
|
*
|
|
22
28
|
* @remarks
|
|
23
|
-
* This endpoint can be used to cancel an existing subscription. It returns the serialized subscription object with an
|
|
29
|
+
* This endpoint can be used to cancel an existing subscription. It returns the serialized subscription object with an
|
|
30
|
+
* `end_date` parameter that signifies when the subscription will transition to an ended state.
|
|
24
31
|
*
|
|
25
32
|
* The body parameter `cancel_option` determines the cancellation behavior. Orb supports three cancellation options:
|
|
26
|
-
*
|
|
27
|
-
*
|
|
28
|
-
* - Issuing this cancellation request for a monthly subscription will keep the subscription active until the start
|
|
29
|
-
*
|
|
30
|
-
*
|
|
31
|
-
* -
|
|
33
|
+
* - `end_of_subscription_term`: stops the subscription from auto-renewing. Subscriptions that have been cancelled with
|
|
34
|
+
* this option can still incur charges for the remainder of their term:
|
|
35
|
+
* - Issuing this cancellation request for a monthly subscription will keep the subscription active until the start
|
|
36
|
+
* of the subsequent month, and potentially issue an invoice for any usage charges incurred in the intervening
|
|
37
|
+
* period.
|
|
38
|
+
* - Issuing this cancellation request for a quarterly subscription will keep the subscription active until the end
|
|
39
|
+
* of the quarter and potentially issue an invoice for any usage charges incurred in the intervening period.
|
|
40
|
+
* - Issuing this cancellation request for a yearly subscription will keep the subscription active for the full
|
|
41
|
+
* year. For example, a yearly subscription starting on 2021-11-01 and cancelled on 2021-12-08 will remain active
|
|
42
|
+
* until 2022-11-01 and potentially issue charges in the intervening months for any recurring monthly usage
|
|
43
|
+
* charges in its plan.
|
|
44
|
+
* - **Note**: If a subscription's plan contains prices with difference cadences, the end of term date will be
|
|
45
|
+
* determined by the largest cadence value. For example, cancelling end of term for a subscription with a
|
|
46
|
+
* quarterly fixed fee with a monthly usage fee will result in the subscription ending at the end of the quarter.
|
|
32
47
|
*
|
|
33
48
|
* - `immediate`: ends the subscription immediately, setting the `end_date` to the current time:
|
|
34
|
-
*
|
|
35
|
-
*
|
|
36
|
-
*
|
|
37
|
-
*
|
|
38
|
-
*
|
|
39
|
-
*
|
|
40
|
-
*
|
|
49
|
+
* - Subscriptions that have been cancelled with this option will be invoiced immediately. This invoice will
|
|
50
|
+
* include any usage fees incurred in the billing period up to the cancellation, along with any prorated
|
|
51
|
+
* recurring fees for the billing period, if applicable.
|
|
52
|
+
* - **Note**: If the subscription has a recurring fee that was paid in-advance, the prorated amount for the
|
|
53
|
+
* remaining time period will be added to the [customer's balance](list-balance-transactions) upon immediate
|
|
54
|
+
* cancellation. However, if the customer is ineligible to use the customer balance, the subscription cannot be
|
|
55
|
+
* cancelled immediately.
|
|
56
|
+
*
|
|
57
|
+
* - `requested_date`: ends the subscription on a specified date, which requires a `cancellation_date` to be passed in.
|
|
58
|
+
* If no timezone is provided, the customer's timezone is used. For example, a subscription starting on January 1st
|
|
59
|
+
* with a monthly price can be set to be cancelled on the first of any month after January 1st (e.g. March 1st, April
|
|
60
|
+
* 1st, May 1st). A subscription with multiple prices with different cadences defines the "term" to be the highest
|
|
61
|
+
* cadence of the prices.
|
|
62
|
+
*
|
|
63
|
+
* Upcoming subscriptions are only eligible for immediate cancellation, which will set the `end_date` equal to the
|
|
64
|
+
* `start_date` upon cancellation.
|
|
41
65
|
*
|
|
42
66
|
* ## Backdated cancellations
|
|
43
|
-
* Orb allows you to cancel a subscription in the past as long as there are no paid invoices between the
|
|
67
|
+
* Orb allows you to cancel a subscription in the past as long as there are no paid invoices between the
|
|
68
|
+
* `requested_date` and the current time. If the cancellation is after the latest issued invoice, Orb will generate a
|
|
69
|
+
* balance refund for the current period. If the cancellation is before the most recently issued invoice, Orb will void
|
|
70
|
+
* the intervening invoice and generate a new one based on the new dates for the subscription. See the section on
|
|
71
|
+
* [cancellation behaviors](../guides/product-catalog/creating-subscriptions.md#cancellation-behaviors).
|
|
44
72
|
*/
|
|
45
73
|
cancel(req: operations.CancelSubscriptionRequest, config?: AxiosRequestConfig): Promise<operations.CancelSubscriptionResponse>;
|
|
46
74
|
/**
|
|
47
75
|
* Create subscription
|
|
48
76
|
*
|
|
49
77
|
* @remarks
|
|
50
|
-
* A subscription represents the purchase of a plan by a customer. The customer is identified by either the `customer_id`
|
|
78
|
+
* A subscription represents the purchase of a plan by a customer. The customer is identified by either the `customer_id`
|
|
79
|
+
* or the `external_customer_id`, and exactly one of these fields must be provided.
|
|
51
80
|
*
|
|
52
|
-
* By default, subscriptions begin on the day that they're created and renew automatically for each billing cycle at the
|
|
81
|
+
* By default, subscriptions begin on the day that they're created and renew automatically for each billing cycle at the
|
|
82
|
+
* cadence that's configured in the plan definition.
|
|
53
83
|
*
|
|
54
|
-
* The default configuration for subscriptions in Orb is **In-advance billing** and **Beginning of month alignment** (see
|
|
84
|
+
* The default configuration for subscriptions in Orb is **In-advance billing** and **Beginning of month alignment** (see
|
|
85
|
+
* [Subscription](../guides/concepts#subscription) for more details).
|
|
55
86
|
*
|
|
56
|
-
* In order to change the alignment behavior, Orb also supports billing subscriptions on the day of the month they are
|
|
87
|
+
* In order to change the alignment behavior, Orb also supports billing subscriptions on the day of the month they are
|
|
88
|
+
* created. If `align_billing_with_subscription_start_date = true` is specified, subscriptions have billing cycles that are
|
|
89
|
+
* aligned with their `start_date`. For example, a subscription that begins on January 15th will have a billing cycle from
|
|
90
|
+
* January 15th to February 15th. Every subsequent billing cycle will continue to start and invoice on the 15th.
|
|
57
91
|
*
|
|
58
|
-
* If the "day" value is greater than the number of days in the month, the next billing cycle will start at the end of the
|
|
92
|
+
* If the "day" value is greater than the number of days in the month, the next billing cycle will start at the end of the
|
|
93
|
+
* month. For example, if the start_date is January 31st, the next billing cycle will start on February 28th.
|
|
59
94
|
*
|
|
60
|
-
* If a customer was created with a currency, Orb only allows subscribing the customer to a plan with a matching
|
|
95
|
+
* If a customer was created with a currency, Orb only allows subscribing the customer to a plan with a matching
|
|
96
|
+
* `invoicing_currency`. If the customer does not have a currency set, on subscription creation, we set the customer's
|
|
97
|
+
* currency to be the `invoicing_currency` of the plan.
|
|
61
98
|
*
|
|
62
99
|
* ## Price overrides
|
|
63
100
|
*
|
|
64
|
-
* Price overrides are used to update some or all prices in a plan for the specific subscription being created. This is
|
|
101
|
+
* Price overrides are used to update some or all prices in a plan for the specific subscription being created. This is
|
|
102
|
+
* useful when a new customer has negotiated one or more different prices for a specific plan than the plan's default
|
|
103
|
+
* prices. Any type of price can be overridden, if the correct data is provided. The billable metric, cadence, type, and
|
|
104
|
+
* name of a price can not be overridden.
|
|
65
105
|
*
|
|
66
106
|
*
|
|
67
|
-
* To override prices, provide a list of objects with the key `price_overrides`. The price object in the list of overrides
|
|
107
|
+
* To override prices, provide a list of objects with the key `price_overrides`. The price object in the list of overrides
|
|
108
|
+
* is expected to contain the existing price id, the `model_type` and config value in the format below. The specific
|
|
109
|
+
* numerical values can be updated, but the config value and `model_type` must match the existing price that is being
|
|
110
|
+
* overridden
|
|
68
111
|
*
|
|
69
112
|
* ### Request format for price overrides
|
|
70
113
|
*
|
|
71
|
-
* Orb supports a few different pricing models out of the box. The `model_type` field determines the key for the
|
|
114
|
+
* Orb supports a few different pricing models out of the box. The `model_type` field determines the key for the
|
|
115
|
+
* configuration object that is present.
|
|
72
116
|
*
|
|
73
117
|
* ### Unit pricing
|
|
74
118
|
*
|
|
@@ -76,201 +120,230 @@ export declare class Subscription {
|
|
|
76
120
|
*
|
|
77
121
|
* ```json
|
|
78
122
|
* {
|
|
79
|
-
*
|
|
80
|
-
*
|
|
81
|
-
*
|
|
82
|
-
*
|
|
83
|
-
*
|
|
84
|
-
*
|
|
85
|
-
*
|
|
123
|
+
* ...
|
|
124
|
+
* "id": "price_id",
|
|
125
|
+
* "model_type": "unit",
|
|
126
|
+
* "unit_config": {
|
|
127
|
+
* "unit_amount": "0.50"
|
|
128
|
+
* }
|
|
129
|
+
* ...
|
|
86
130
|
* }
|
|
87
131
|
* ```
|
|
88
132
|
*
|
|
89
133
|
* ### Tiered pricing
|
|
90
134
|
*
|
|
91
|
-
* In tiered pricing, the cost of a given unit depends on the tier range that it falls into, where each tier range is
|
|
135
|
+
* In tiered pricing, the cost of a given unit depends on the tier range that it falls into, where each tier range is
|
|
136
|
+
* defined by an upper and lower bound. For example, the first ten units may cost $0.50 each and all units thereafter may
|
|
137
|
+
* cost $0.10 each. Tiered prices can be overridden with a new number of tiers or new values for `first_unit`, `last_unit`,
|
|
138
|
+
* or `unit_amount`.
|
|
92
139
|
*
|
|
93
140
|
* ```json
|
|
94
141
|
* {
|
|
95
|
-
*
|
|
96
|
-
*
|
|
97
|
-
*
|
|
98
|
-
*
|
|
99
|
-
*
|
|
100
|
-
*
|
|
101
|
-
*
|
|
102
|
-
*
|
|
103
|
-
*
|
|
104
|
-
*
|
|
105
|
-
*
|
|
106
|
-
*
|
|
107
|
-
*
|
|
108
|
-
*
|
|
109
|
-
*
|
|
110
|
-
*
|
|
111
|
-
*
|
|
112
|
-
*
|
|
142
|
+
* ...
|
|
143
|
+
* "id": "price_id",
|
|
144
|
+
* "model_type": "tiered",
|
|
145
|
+
* "tiered_config": {
|
|
146
|
+
* "tiers": [
|
|
147
|
+
* {
|
|
148
|
+
* "first_unit":"1",
|
|
149
|
+
* "last_unit": "10",
|
|
150
|
+
* "unit_amount": "0.50"
|
|
151
|
+
* },
|
|
152
|
+
* {
|
|
153
|
+
* "first_unit": "10",
|
|
154
|
+
* "last_unit": null,
|
|
155
|
+
* "unit_amount": "0.10"
|
|
156
|
+
* }
|
|
157
|
+
* ]
|
|
158
|
+
* }
|
|
159
|
+
* ...
|
|
113
160
|
* }
|
|
114
161
|
* ```
|
|
115
162
|
*
|
|
116
163
|
* ### Bulk pricing
|
|
117
164
|
*
|
|
118
|
-
* Bulk pricing applies when the number of units determine the cost of _all_ units. For example, if you've bought less than
|
|
165
|
+
* Bulk pricing applies when the number of units determine the cost of _all_ units. For example, if you've bought less than
|
|
166
|
+
* 10 units, they may each be $0.50 for a total of $5.00. Once you've bought more than 10 units, all units may now be
|
|
167
|
+
* priced at $0.40 (i.e. 101 units total would be $40.40). Bulk prices can be overridden with a new number of tiers or new
|
|
168
|
+
* values for `maximum_units`, or `unit_amount`.
|
|
119
169
|
*
|
|
120
170
|
* ```json
|
|
121
171
|
* {
|
|
122
|
-
*
|
|
123
|
-
*
|
|
124
|
-
*
|
|
125
|
-
*
|
|
126
|
-
*
|
|
127
|
-
*
|
|
128
|
-
*
|
|
129
|
-
*
|
|
130
|
-
*
|
|
131
|
-
*
|
|
132
|
-
*
|
|
133
|
-
*
|
|
134
|
-
*
|
|
135
|
-
*
|
|
136
|
-
*
|
|
137
|
-
*
|
|
172
|
+
* ...
|
|
173
|
+
* "id": "price_id",
|
|
174
|
+
* "model_type": "bulk",
|
|
175
|
+
* "bulk_config": {
|
|
176
|
+
* "tiers": [
|
|
177
|
+
* {
|
|
178
|
+
* "maximum_units": "10",
|
|
179
|
+
* "unit_amount": "0.50"
|
|
180
|
+
* },
|
|
181
|
+
* {
|
|
182
|
+
* "maximum_units": "1000",
|
|
183
|
+
* "unit_amount": "0.40"
|
|
184
|
+
* }
|
|
185
|
+
* ]
|
|
186
|
+
* }
|
|
187
|
+
* ...
|
|
138
188
|
* }
|
|
139
189
|
* ```
|
|
140
190
|
* ### Package pricing
|
|
141
191
|
*
|
|
142
|
-
* Package pricing defines the size or granularity of a unit for billing purposes. For example, if the package size is set
|
|
192
|
+
* Package pricing defines the size or granularity of a unit for billing purposes. For example, if the package size is set
|
|
193
|
+
* to 5, then 4 units will be billed as 5 and 6 units will be billed at 10.
|
|
143
194
|
*
|
|
144
195
|
* ```json
|
|
145
196
|
* {
|
|
146
|
-
*
|
|
147
|
-
*
|
|
148
|
-
*
|
|
149
|
-
*
|
|
150
|
-
*
|
|
151
|
-
*
|
|
152
|
-
*
|
|
153
|
-
*
|
|
154
|
-
*
|
|
155
|
-
*
|
|
197
|
+
* ...
|
|
198
|
+
* "id": "price_id",
|
|
199
|
+
* "model_type": "package",
|
|
200
|
+
* "package_config": {
|
|
201
|
+
* "package_amount": "0.80",
|
|
202
|
+
* "package_size": 10
|
|
203
|
+
* }
|
|
204
|
+
* ...
|
|
205
|
+
* }
|
|
206
|
+
* ```
|
|
156
207
|
* ### BPS pricing
|
|
157
208
|
*
|
|
158
|
-
* BPS pricing specifies a per-event (e.g. per-payment) rate in one hundredth of a percent (the number of basis points to
|
|
209
|
+
* BPS pricing specifies a per-event (e.g. per-payment) rate in one hundredth of a percent (the number of basis points to
|
|
210
|
+
* charge), as well as a cap per event to assess. For example, this would allow you to assess a fee of 0.25% on every
|
|
211
|
+
* payment you process, with a maximum charge of $25 per payment.
|
|
159
212
|
*
|
|
160
213
|
* ```json
|
|
161
214
|
* {
|
|
162
|
-
*
|
|
163
|
-
*
|
|
164
|
-
*
|
|
165
|
-
*
|
|
166
|
-
*
|
|
167
|
-
*
|
|
168
|
-
*
|
|
169
|
-
*
|
|
170
|
-
*
|
|
215
|
+
* ...
|
|
216
|
+
* "id": "price_id"
|
|
217
|
+
* "model_type": "bps",
|
|
218
|
+
* "bps_config": {
|
|
219
|
+
* "bps": 125,
|
|
220
|
+
* "per_event_cap": "11.00"
|
|
221
|
+
* }
|
|
222
|
+
* ...
|
|
223
|
+
* }
|
|
171
224
|
* ```
|
|
172
225
|
* ### Bulk BPS pricing
|
|
173
226
|
*
|
|
174
|
-
* Bulk BPS pricing specifies BPS parameters in a tiered manner, dependent on the total quantity across all events. Similar
|
|
227
|
+
* Bulk BPS pricing specifies BPS parameters in a tiered manner, dependent on the total quantity across all events. Similar
|
|
228
|
+
* to bulk pricing, the BPS parameters of a given event depends on the tier range that the billing period falls into. Each
|
|
229
|
+
* tier range is defined by an upper and lower bound. For example, after $1.5M of payment volume is reached, each
|
|
230
|
+
* individual payment may have a lower cap or a smaller take-rate.
|
|
175
231
|
*
|
|
176
232
|
* ```json
|
|
177
233
|
* {
|
|
178
|
-
*
|
|
179
|
-
*
|
|
180
|
-
*
|
|
181
|
-
*
|
|
182
|
-
*
|
|
183
|
-
*
|
|
184
|
-
*
|
|
185
|
-
*
|
|
186
|
-
*
|
|
187
|
-
*
|
|
188
|
-
*
|
|
189
|
-
*
|
|
190
|
-
*
|
|
191
|
-
*
|
|
192
|
-
*
|
|
193
|
-
*
|
|
194
|
-
*
|
|
195
|
-
*
|
|
196
|
-
*
|
|
197
|
-
*
|
|
198
|
-
*
|
|
234
|
+
* ...
|
|
235
|
+
* "id": "price_id"
|
|
236
|
+
* "model_type": "bulk_bps",
|
|
237
|
+
* "bulk_bps_config": {
|
|
238
|
+
* "tiers": [
|
|
239
|
+
* {
|
|
240
|
+
* "minimum_amount": "0.00",
|
|
241
|
+
* "maximum_amount": "1000000.00",
|
|
242
|
+
* "bps": 125,
|
|
243
|
+
* "per_event_cap": "19.00"
|
|
244
|
+
* },
|
|
245
|
+
* {
|
|
246
|
+
* "minimum_amount":"1000000.00",
|
|
247
|
+
* "maximum_amount": null,
|
|
248
|
+
* "bps": 115,
|
|
249
|
+
* "per_event_cap": "4.00"
|
|
250
|
+
* }
|
|
251
|
+
* ]
|
|
252
|
+
* }
|
|
253
|
+
* ...
|
|
254
|
+
* }
|
|
199
255
|
* ```
|
|
200
256
|
* ### Tiered BPS pricing
|
|
201
|
-
* Tiered BPS pricing specifies BPS parameters in a graduated manner, where an event's applicable parameter is a function
|
|
257
|
+
* Tiered BPS pricing specifies BPS parameters in a graduated manner, where an event's applicable parameter is a function
|
|
258
|
+
* of its marginal addition to the period total. Similar to tiered pricing, the BPS parameters of a given event depends on
|
|
259
|
+
* the tier range that it falls into, where each tier range is defined by an upper and lower bound. For example, the first
|
|
260
|
+
* few payments may have a 0.8 BPS take-rate and all payments after a specific volume may incur a take-rate of 0.5 BPS
|
|
261
|
+
* each.
|
|
202
262
|
*
|
|
203
263
|
* ```json
|
|
204
264
|
* {
|
|
205
|
-
*
|
|
206
|
-
*
|
|
207
|
-
*
|
|
208
|
-
*
|
|
209
|
-
*
|
|
210
|
-
*
|
|
211
|
-
*
|
|
212
|
-
*
|
|
213
|
-
*
|
|
214
|
-
*
|
|
215
|
-
*
|
|
216
|
-
*
|
|
217
|
-
*
|
|
218
|
-
*
|
|
219
|
-
*
|
|
220
|
-
*
|
|
221
|
-
*
|
|
222
|
-
*
|
|
223
|
-
*
|
|
224
|
-
*
|
|
225
|
-
*
|
|
265
|
+
* ...
|
|
266
|
+
* "id": "price_id"
|
|
267
|
+
* "model_type": "tiered_bps",
|
|
268
|
+
* "tiered_bps_config": {
|
|
269
|
+
* "tiers": [
|
|
270
|
+
* {
|
|
271
|
+
* "minimum_amount": "0.00",
|
|
272
|
+
* "maximum_amount": "1000000.00",
|
|
273
|
+
* "bps": 125,
|
|
274
|
+
* "per_event_cap": "19.00"
|
|
275
|
+
* },
|
|
276
|
+
* {
|
|
277
|
+
* "minimum_amount":"1000000",
|
|
278
|
+
* "maximum_amount": null,
|
|
279
|
+
* "bps": 115,
|
|
280
|
+
* "per_event_cap": "4.00"
|
|
281
|
+
* }
|
|
282
|
+
* ]
|
|
283
|
+
* }
|
|
284
|
+
* ...
|
|
285
|
+
* }
|
|
226
286
|
* ```
|
|
227
287
|
* ### Matrix pricing
|
|
228
|
-
* Matrix pricing defines a set of unit prices in a one or two-dimensional matrix. `dimensions` defines the two event
|
|
288
|
+
* Matrix pricing defines a set of unit prices in a one or two-dimensional matrix. `dimensions` defines the two event
|
|
289
|
+
* property values evaluated in this pricing model. In a one-dimensional matrix, the second value is `null`. Every
|
|
290
|
+
* configuration has a list of `matrix_values` which give the unit prices for specified property values. In a
|
|
291
|
+
* one-dimensional matrix, the matrix values will have `dimension_values` where the second value of the pair is null. If an
|
|
292
|
+
* event does not match any of the dimension values in the matrix, it will resort to the `default_unit_amount`.
|
|
229
293
|
* ```json
|
|
230
294
|
* ...
|
|
231
295
|
* "model_type": "matrix"
|
|
232
296
|
* "matrix_config": {
|
|
233
|
-
*
|
|
234
|
-
*
|
|
235
|
-
*
|
|
236
|
-
*
|
|
237
|
-
*
|
|
238
|
-
*
|
|
239
|
-
*
|
|
240
|
-
*
|
|
241
|
-
*
|
|
242
|
-
*
|
|
243
|
-
*
|
|
244
|
-
*
|
|
245
|
-
*
|
|
246
|
-
*
|
|
247
|
-
*
|
|
297
|
+
* "default_unit_amount": "3.00",
|
|
298
|
+
* "dimensions": [
|
|
299
|
+
* "cluster_name",
|
|
300
|
+
* "region"
|
|
301
|
+
* ],
|
|
302
|
+
* "matrix_values": [
|
|
303
|
+
* {
|
|
304
|
+
* "dimension_values": [
|
|
305
|
+
* "alpha",
|
|
306
|
+
* "west"
|
|
307
|
+
* ],
|
|
308
|
+
* "unit_amount": "2.00"
|
|
309
|
+
* },
|
|
310
|
+
* ...
|
|
311
|
+
* ]
|
|
248
312
|
* }
|
|
249
313
|
* ...
|
|
250
314
|
* ```
|
|
251
315
|
*
|
|
252
316
|
* ### Fixed fees
|
|
253
|
-
* Fixed fees follow unit pricing, and also have an additional parameter `fixed_price_quantity` that indicates how many of
|
|
317
|
+
* Fixed fees follow unit pricing, and also have an additional parameter `fixed_price_quantity` that indicates how many of
|
|
318
|
+
* a fixed fee that should be applied for a subscription. This parameter defaults to 1.
|
|
254
319
|
*
|
|
255
320
|
* ```json
|
|
256
321
|
* {
|
|
257
|
-
*
|
|
258
|
-
*
|
|
259
|
-
*
|
|
260
|
-
*
|
|
261
|
-
*
|
|
262
|
-
*
|
|
263
|
-
*
|
|
264
|
-
*
|
|
322
|
+
* ...
|
|
323
|
+
* "id": "price_id",
|
|
324
|
+
* "model_type": "unit",
|
|
325
|
+
* "unit_config": {
|
|
326
|
+
* "unit_amount": "2.00"
|
|
327
|
+
* },
|
|
328
|
+
* "fixed_price_quantity": 3.0
|
|
329
|
+
* ...
|
|
265
330
|
* }
|
|
266
331
|
* ```
|
|
267
332
|
*
|
|
268
333
|
* ## Maximums and Minimums
|
|
269
|
-
* Minimums and maximums, much like price overrides, can be useful when a new customer has negotiated a new or different
|
|
334
|
+
* Minimums and maximums, much like price overrides, can be useful when a new customer has negotiated a new or different
|
|
335
|
+
* minimum or maximum spend cap than the default for the plan. Maximums and minimums can be added to either a price or a
|
|
336
|
+
* plan. If one exists for a price or plan and null is provided for the minimum/maximum override on creation, then there
|
|
337
|
+
* will be no minimum/maximum on the new subscription. If no value is provided, then the default plan maximum or minimum is
|
|
338
|
+
* used.
|
|
270
339
|
*
|
|
271
|
-
* To add a minimum for a specific price, add `minimum_amount` to the specific price in the `price_overrides` object. To
|
|
340
|
+
* To add a minimum for a specific price, add `minimum_amount` to the specific price in the `price_overrides` object. To
|
|
341
|
+
* add a minimum to a plan, add `minimum_amount` to the base object. The value for `minimum_amount` should be a string with
|
|
342
|
+
* the minimum dollar amount in decimal format.
|
|
272
343
|
*
|
|
273
|
-
* To add a maximum for a specific price, add `maximum_amount` to the specific price in the `price_overrides` object. To
|
|
344
|
+
* To add a maximum for a specific price, add `maximum_amount` to the specific price in the `price_overrides` object. To
|
|
345
|
+
* add a maximum to a plan, add `maximum_amount` to the base object. The value for `maximum_amount` should be a string with
|
|
346
|
+
* the maximum dollar amount in decimal format.
|
|
274
347
|
*
|
|
275
348
|
*
|
|
276
349
|
* ### Minimum override example
|
|
@@ -279,14 +352,14 @@ export declare class Subscription {
|
|
|
279
352
|
*
|
|
280
353
|
* ```json
|
|
281
354
|
* {
|
|
282
|
-
*
|
|
283
|
-
*
|
|
284
|
-
*
|
|
285
|
-
*
|
|
286
|
-
*
|
|
287
|
-
*
|
|
288
|
-
*
|
|
289
|
-
*
|
|
355
|
+
* ...
|
|
356
|
+
* "id": "price_id",
|
|
357
|
+
* "model_type": "unit",
|
|
358
|
+
* "unit_config": {
|
|
359
|
+
* "unit_amount": "0.50"
|
|
360
|
+
* },
|
|
361
|
+
* "minimum_amount": "100.00"
|
|
362
|
+
* ...
|
|
290
363
|
* }
|
|
291
364
|
* ```
|
|
292
365
|
*
|
|
@@ -295,52 +368,56 @@ export declare class Subscription {
|
|
|
295
368
|
*
|
|
296
369
|
* ```json
|
|
297
370
|
* {
|
|
298
|
-
*
|
|
299
|
-
*
|
|
300
|
-
*
|
|
301
|
-
*
|
|
302
|
-
*
|
|
371
|
+
* "customer_id": "customer_id",
|
|
372
|
+
* "plan_id": "plan_id",
|
|
373
|
+
* "minimum_amount": "1000.00",
|
|
374
|
+
* "price_overrides": [ ... ]
|
|
375
|
+
* ...
|
|
303
376
|
* }
|
|
304
377
|
* ```
|
|
305
378
|
*
|
|
306
379
|
* Removing an existing minimum example
|
|
307
380
|
* ```json
|
|
308
381
|
* {
|
|
309
|
-
*
|
|
310
|
-
*
|
|
311
|
-
*
|
|
312
|
-
*
|
|
313
|
-
*
|
|
314
|
-
*
|
|
315
|
-
*
|
|
316
|
-
*
|
|
382
|
+
* ...
|
|
383
|
+
* "id": "price_id",
|
|
384
|
+
* "model_type": "unit",
|
|
385
|
+
* "unit_config": {
|
|
386
|
+
* "unit_amount": "0.50"
|
|
387
|
+
* },
|
|
388
|
+
* "minimum_amount": null
|
|
389
|
+
* ...
|
|
317
390
|
* }
|
|
318
391
|
* ```
|
|
319
392
|
*
|
|
320
393
|
* Using the plan's minimum example
|
|
321
394
|
* ```json
|
|
322
395
|
* {
|
|
323
|
-
*
|
|
324
|
-
*
|
|
325
|
-
*
|
|
326
|
-
*
|
|
327
|
-
*
|
|
328
|
-
*
|
|
329
|
-
*
|
|
396
|
+
* ...
|
|
397
|
+
* "id": "price_id",
|
|
398
|
+
* "model_type": "unit",
|
|
399
|
+
* "unit_config": {
|
|
400
|
+
* "unit_amount": "0.50"
|
|
401
|
+
* },
|
|
402
|
+
* ...
|
|
330
403
|
* }
|
|
331
404
|
* ```
|
|
332
405
|
*
|
|
333
406
|
* ## Discounts
|
|
334
|
-
* Discounts, like price overrides, can be useful when a new customer has negotiated a new or different discount than the
|
|
407
|
+
* Discounts, like price overrides, can be useful when a new customer has negotiated a new or different discount than the
|
|
408
|
+
* default for the plan. Discounts can be added to either a price or a plan, and a single plan or price can have at most
|
|
409
|
+
* one discount. If a discount exists for a price or a plan and a null discount is provided on creation, then there will be
|
|
410
|
+
* no discount on the new subscription.
|
|
335
411
|
*
|
|
336
|
-
* To add a discount for a specific price, add `discount` to the price in the `price_overrides` object. To add a discount
|
|
412
|
+
* To add a discount for a specific price, add `discount` to the price in the `price_overrides` object. To add a discount
|
|
413
|
+
* to a plan, add `discount` to the base object.
|
|
337
414
|
* Discount should be a dictionary of the format:
|
|
338
415
|
* ```json
|
|
339
416
|
* {
|
|
340
|
-
*
|
|
341
|
-
*
|
|
342
|
-
*
|
|
343
|
-
*
|
|
417
|
+
* "discount_type": "amount" | "percentage" | "usage",
|
|
418
|
+
* "amount_discount": string,
|
|
419
|
+
* "percentage_discount": string,
|
|
420
|
+
* "usage_discount": string
|
|
344
421
|
* }
|
|
345
422
|
* ```
|
|
346
423
|
* where either `amount_discount`, `percentage_discount`, or `usage_discount` is provided.
|
|
@@ -350,50 +427,56 @@ export declare class Subscription {
|
|
|
350
427
|
* Price discount example
|
|
351
428
|
* ```json
|
|
352
429
|
* {
|
|
353
|
-
*
|
|
354
|
-
*
|
|
355
|
-
*
|
|
356
|
-
*
|
|
357
|
-
*
|
|
358
|
-
*
|
|
359
|
-
*
|
|
430
|
+
* ...
|
|
431
|
+
* "id": "price_id",
|
|
432
|
+
* "model_type": "unit",
|
|
433
|
+
* "unit_config": {
|
|
434
|
+
* "unit_amount": "0.50"
|
|
435
|
+
* },
|
|
436
|
+
* "discount": {"discount_type": "amount", "amount_discount": "175"},
|
|
360
437
|
* }
|
|
361
438
|
* ```
|
|
362
439
|
*
|
|
363
440
|
* Plan discount example
|
|
364
441
|
* ```json
|
|
365
442
|
* {
|
|
366
|
-
*
|
|
367
|
-
*
|
|
368
|
-
*
|
|
369
|
-
*
|
|
370
|
-
*
|
|
443
|
+
* "customer_id": "customer_id",
|
|
444
|
+
* "plan_id": "plan_id",
|
|
445
|
+
* "discount": {"discount_type": "percentage", "percentage_discount": "12.5"},
|
|
446
|
+
* "price_overrides": [ ... ]
|
|
447
|
+
* ...
|
|
371
448
|
* }
|
|
372
449
|
* ```
|
|
373
450
|
*
|
|
374
451
|
* Removing an existing discount example
|
|
375
452
|
* ```json
|
|
376
453
|
* {
|
|
377
|
-
*
|
|
378
|
-
*
|
|
379
|
-
*
|
|
380
|
-
*
|
|
381
|
-
*
|
|
454
|
+
* "customer_id": "customer_id",
|
|
455
|
+
* "plan_id": "plan_id",
|
|
456
|
+
* "discount": null,
|
|
457
|
+
* "price_overrides": [ ... ]
|
|
458
|
+
* ...
|
|
382
459
|
* }
|
|
383
460
|
* ```
|
|
384
461
|
*
|
|
385
462
|
* Using the plan's discount example
|
|
386
463
|
* ```json
|
|
387
464
|
* {
|
|
388
|
-
*
|
|
389
|
-
*
|
|
390
|
-
*
|
|
391
|
-
*
|
|
392
|
-
*
|
|
393
|
-
*
|
|
394
|
-
*
|
|
465
|
+
* ...
|
|
466
|
+
* "id": "price_id",
|
|
467
|
+
* "model_type": "unit",
|
|
468
|
+
* "unit_config": {
|
|
469
|
+
* "unit_amount": "0.50"
|
|
470
|
+
* },
|
|
471
|
+
* ...
|
|
395
472
|
* }
|
|
396
473
|
* ```
|
|
474
|
+
*
|
|
475
|
+
* ## Threshold Billing
|
|
476
|
+
*
|
|
477
|
+
* Orb supports invoicing for a subscription when a preconfigured usage threshold is hit. To enable threshold billing, pass
|
|
478
|
+
* in an `invoicing_threshold`, which is specified in the subscription's invoicing currency, when creating a subscription.
|
|
479
|
+
* Ex. pass in `10.00` to issue an invoice when usage amounts hit $10.00 for a subscription that invoices in USD.
|
|
397
480
|
*/
|
|
398
481
|
create(req: shared.NewSubscription, config?: AxiosRequestConfig): Promise<operations.CreateSubscriptionResponse>;
|
|
399
482
|
/**
|
|
@@ -407,85 +490,114 @@ export declare class Subscription {
|
|
|
407
490
|
* Fetch subscription costs
|
|
408
491
|
*
|
|
409
492
|
* @remarks
|
|
410
|
-
* This endpoint is used to fetch a day-by-day snapshot of a subscription's costs in Orb, calculated by applying
|
|
411
|
-
*
|
|
493
|
+
* This endpoint is used to fetch a day-by-day snapshot of a subscription's costs in Orb, calculated by applying
|
|
494
|
+
* pricing information to the underlying usage (see the [subscription usage endpoint](fetch-subscription-usage) to
|
|
495
|
+
* fetch usage per metric, in usage units rather than a currency).
|
|
412
496
|
*
|
|
413
|
-
* The semantics of this endpoint exactly mirror those of [fetching a customer's costs](fetch-customer-costs). Use this
|
|
497
|
+
* The semantics of this endpoint exactly mirror those of [fetching a customer's costs](fetch-customer-costs). Use this
|
|
498
|
+
* endpoint to limit your analysis of costs to a specific subscription for the customer (e.g. to de-aggregate costs
|
|
499
|
+
* when a customer's subscription has started and stopped on the same day).
|
|
414
500
|
*/
|
|
415
501
|
fetchCosts(req: operations.FetchSubscriptionCostsRequest, config?: AxiosRequestConfig): Promise<operations.FetchSubscriptionCostsResponse>;
|
|
416
502
|
/**
|
|
417
503
|
* Fetch subscription schedule
|
|
418
504
|
*
|
|
419
505
|
* @remarks
|
|
420
|
-
* This endpoint returns a [paginated](../reference/pagination) list of all plans associated with a subscription along
|
|
506
|
+
* This endpoint returns a [paginated](../reference/pagination) list of all plans associated with a subscription along
|
|
507
|
+
* with their start and end dates. This list contains the subscription's initial plan along with past and future plan
|
|
508
|
+
* changes.
|
|
421
509
|
*/
|
|
422
510
|
fetchSchedule(req: operations.FetchSubscriptionScheduleRequest, config?: AxiosRequestConfig): Promise<operations.FetchSubscriptionScheduleResponse>;
|
|
423
511
|
/**
|
|
424
512
|
* Fetch subscription usage
|
|
425
513
|
*
|
|
426
514
|
* @remarks
|
|
427
|
-
* This endpoint is used to fetch a subscription's usage in Orb. Especially when combined with optional query
|
|
515
|
+
* This endpoint is used to fetch a subscription's usage in Orb. Especially when combined with optional query
|
|
516
|
+
* parameters, this endpoint is a powerful way to build visualizations on top of Orb's event data and metrics.
|
|
428
517
|
*
|
|
429
|
-
* With no query parameters specified, this endpoint returns usage for the subscription's _current billing period_
|
|
518
|
+
* With no query parameters specified, this endpoint returns usage for the subscription's _current billing period_
|
|
519
|
+
* across each billable metric that participates in the subscription. Usage quantities returned are the result of
|
|
520
|
+
* evaluating the metric definition for the entirety of the customer's billing period.
|
|
430
521
|
*
|
|
431
522
|
* ### Default response shape
|
|
523
|
+
* Orb returns a `data` array with an object corresponding to each billable metric. Nested within this object is a
|
|
524
|
+
* `usage` array which has a `quantity` value and a corresponding `timeframe_start` and `timeframe_end`. The `quantity`
|
|
525
|
+
* value represents the calculated usage value for the billable metric over the specified timeframe (inclusive of the
|
|
526
|
+
* `timeframe_start` timestamp and exclusive of the `timeframe_end` timestamp).
|
|
432
527
|
*
|
|
433
|
-
* Orb
|
|
434
|
-
*
|
|
435
|
-
*
|
|
528
|
+
* Orb will include _every_ window in the response starting from the beginning of the billing period, even when there
|
|
529
|
+
* were no events (and therefore no usage) in the window. This increases the size of the response but prevents the caller
|
|
530
|
+
* from filling in gaps and handling cumbersome time-based logic.
|
|
436
531
|
*
|
|
437
|
-
* The query parameters in this endpoint serve to override this behavior and provide some key functionality, as listed
|
|
532
|
+
* The query parameters in this endpoint serve to override this behavior and provide some key functionality, as listed
|
|
533
|
+
* below. Note that this functionality can also be used _in conjunction_ with each other, e.g. to display grouped usage
|
|
534
|
+
* on a custom timeframe.
|
|
438
535
|
*
|
|
439
536
|
* ## Custom timeframe
|
|
440
|
-
*
|
|
441
|
-
*
|
|
537
|
+
* In order to view usage for a custom timeframe rather than the current billing period, specify a `timeframe_start` and
|
|
538
|
+
* `timeframe_end`. This will calculate quantities for usage incurred between timeframe_start (inclusive) and timeframe_end
|
|
539
|
+
* (exclusive), i.e. `[timeframe_start, timeframe_end)`.
|
|
442
540
|
*
|
|
443
541
|
* Note:
|
|
444
542
|
* - These timestamps must be specified in ISO 8601 format and UTC timezone, e.g. `2022-02-01T05:00:00Z`.
|
|
445
543
|
* - Both parameters must be specified if either is specified.
|
|
446
544
|
*
|
|
447
545
|
* ## Grouping by custom attributes
|
|
448
|
-
* In order to view a single metric grouped by a specific _attribute_ that each event is tagged with (e.g. `cluster`), you
|
|
546
|
+
* In order to view a single metric grouped by a specific _attribute_ that each event is tagged with (e.g. `cluster`), you
|
|
547
|
+
* must additionally specify a `billable_metric_id` and a `group_by` key. The `group_by` key denotes the event property on
|
|
548
|
+
* which to group.
|
|
549
|
+
*
|
|
550
|
+
* When returning grouped usage, only usage for `billable_metric_id` is returned, and a separate object in the `data` array
|
|
551
|
+
* is returned for each value of the `group_by` key present in your events. The `quantity` value is the result of evaluating
|
|
552
|
+
* the billable metric for events filtered to a single value of the `group_by` key.
|
|
449
553
|
*
|
|
450
|
-
*
|
|
554
|
+
* Orb expects that events that match the billable metric will contain values in the `properties` dictionary that correspond
|
|
555
|
+
* to the `group_by` key specified. By default, Orb will not return a `null` group (i.e. events that match the metric but
|
|
556
|
+
* do not have the key set). Currently, it is only possible to view usage grouped by a single attribute at a time.
|
|
451
557
|
*
|
|
452
|
-
*
|
|
558
|
+
* When viewing grouped usage, Orb uses pagination to limit the response size to 1000 groups by default. If there are more
|
|
559
|
+
* groups for a given subscription, pagination metadata in the response can be used to fetch all of the data.
|
|
453
560
|
*
|
|
454
|
-
* The following example shows usage for an "API Requests" billable metric grouped by `region`. Note the extra `metric_group`
|
|
561
|
+
* The following example shows usage for an "API Requests" billable metric grouped by `region`. Note the extra `metric_group`
|
|
562
|
+
* dictionary in the response, which provides metadata about the group:
|
|
455
563
|
*
|
|
456
564
|
* ```json
|
|
457
565
|
* {
|
|
458
|
-
*
|
|
459
|
-
* {
|
|
460
|
-
* "usage": [
|
|
566
|
+
* "data": [
|
|
461
567
|
* {
|
|
462
|
-
*
|
|
463
|
-
*
|
|
464
|
-
*
|
|
568
|
+
* "usage": [
|
|
569
|
+
* {
|
|
570
|
+
* "quantity": 0.19291,
|
|
571
|
+
* "timeframe_start": "2021-10-01T07:00:00Z",
|
|
572
|
+
* "timeframe_end": "2021-10-02T07:00:00Z",
|
|
573
|
+
* },
|
|
574
|
+
* ...
|
|
575
|
+
* ],
|
|
576
|
+
* "metric_group": {
|
|
577
|
+
* "property_key": "region",
|
|
578
|
+
* "property_value": "asia/pacific"
|
|
579
|
+
* },
|
|
580
|
+
* "billable_metric": {
|
|
581
|
+
* "id": "Fe9pbpMk86xpwdGB",
|
|
582
|
+
* "name": "API Requests"
|
|
583
|
+
* },
|
|
584
|
+
* "view_mode": "periodic"
|
|
465
585
|
* },
|
|
466
586
|
* ...
|
|
467
|
-
*
|
|
468
|
-
* “metric_group”: {
|
|
469
|
-
* “property_key”: “region”,
|
|
470
|
-
* “property_value”: “asia/pacific”
|
|
471
|
-
* },
|
|
472
|
-
* "billable_metric": {
|
|
473
|
-
* "id": "Fe9pbpMk86xpwdGB",
|
|
474
|
-
* "name": "API Requests"
|
|
475
|
-
* },
|
|
476
|
-
* "view_mode": "periodic"
|
|
477
|
-
* },
|
|
478
|
-
* ...
|
|
479
|
-
* ]
|
|
587
|
+
* ]
|
|
480
588
|
* }
|
|
481
589
|
* ```
|
|
482
590
|
*
|
|
591
|
+
*
|
|
483
592
|
* ## Windowed usage
|
|
484
|
-
* The `granularity` parameter can be used to _window_ the usage `quantity` value into periods. When not specified, usage
|
|
593
|
+
* The `granularity` parameter can be used to _window_ the usage `quantity` value into periods. When not specified, usage
|
|
594
|
+
* is returned for the entirety of the time range.
|
|
485
595
|
*
|
|
486
|
-
* When `granularity = day` is specified with a timeframe longer than a day, Orb will return a `quantity` value for each
|
|
596
|
+
* When `granularity = day` is specified with a timeframe longer than a day, Orb will return a `quantity` value for each
|
|
597
|
+
* full day between `timeframe_start` and `timeframe_end`. Note that the days are demarcated by the _customer's local midnight_.
|
|
487
598
|
*
|
|
488
|
-
* For example, with `timeframe_start = 2022-02-01T05:00:00Z`, `timeframe_end = 2022-02-04T01:00:00Z` and `granularity=day`,
|
|
599
|
+
* For example, with `timeframe_start = 2022-02-01T05:00:00Z`, `timeframe_end = 2022-02-04T01:00:00Z` and `granularity=day`,
|
|
600
|
+
* the following windows will be returned for a customer in the `America/Los_Angeles` timezone since local midnight is `08:00` UTC:
|
|
489
601
|
* - `[2022-02-01T05:00:00Z, 2022-02-01T08:00:00Z)`
|
|
490
602
|
* - `[2022-02-01T08:00:00, 2022-02-02T08:00:00Z)`
|
|
491
603
|
* - `[2022-02-02T08:00:00, 2022-02-03T08:00:00Z)`
|
|
@@ -506,6 +618,7 @@ export declare class Subscription {
|
|
|
506
618
|
* "timeframe_start": "2022-02-01T05:00:00+00:00"
|
|
507
619
|
* },
|
|
508
620
|
* {
|
|
621
|
+
*
|
|
509
622
|
* "quantity": 0,
|
|
510
623
|
* "timeframe_end": "2022-02-02T08:00:00+00:00",
|
|
511
624
|
* "timeframe_start": "2022-02-01T08:00:00+00:00"
|
|
@@ -529,18 +642,27 @@ export declare class Subscription {
|
|
|
529
642
|
* ```
|
|
530
643
|
*
|
|
531
644
|
* ## Decomposable vs. non-decomposable metrics
|
|
532
|
-
* Billable metrics fall into one of two categories: decomposable and non-decomposable. A decomposable billable metric, such as
|
|
645
|
+
* Billable metrics fall into one of two categories: decomposable and non-decomposable. A decomposable billable metric, such as
|
|
646
|
+
* a sum or a count, can be displayed and aggregated across arbitrary timescales. On the other hand, a non-decomposable metric
|
|
647
|
+
* is not meaningful when only a slice of the billing window is considered.
|
|
533
648
|
*
|
|
534
|
-
* As an example, if we have a billable metric that's defined to count unique users, displaying a graph of unique users for each
|
|
649
|
+
* As an example, if we have a billable metric that's defined to count unique users, displaying a graph of unique users for each
|
|
650
|
+
* day is not representative of the billable metric value over the month (days could have an overlapping set of 'unique' users).
|
|
651
|
+
* Instead, what's useful for any given day is the number of unique users in the billing period so far, which are the
|
|
652
|
+
* _cumulative_ unique users.
|
|
535
653
|
*
|
|
536
654
|
* Accordingly, this endpoint returns treats these two types of metrics differently when `group_by` is specified:
|
|
537
655
|
* - Decomposable metrics can be grouped by any event property.
|
|
538
|
-
* - Non-decomposable metrics can only be grouped by the corresponding price's invoice grouping key. If no invoice grouping key
|
|
656
|
+
* - Non-decomposable metrics can only be grouped by the corresponding price's invoice grouping key. If no invoice grouping key
|
|
657
|
+
* is present, the metric does not support `group_by`.
|
|
539
658
|
*
|
|
540
659
|
* ## Matrix prices
|
|
541
|
-
* When a billable metric is attached to a price that uses matrix pricing, it's important to view usage grouped by those matrix
|
|
660
|
+
* When a billable metric is attached to a price that uses matrix pricing, it's important to view usage grouped by those matrix
|
|
661
|
+
* dimensions. In this case, use the query parameters `first_dimension_key`, `first_dimension_value` and `second_dimension_key`,
|
|
662
|
+
* `second_dimension_value` while filtering to a specific `billable_metric_id`.
|
|
542
663
|
*
|
|
543
|
-
* For example, if your compute metric has a separate unit price (i.e. a matrix pricing model) per `region` and `provider`,
|
|
664
|
+
* For example, if your compute metric has a separate unit price (i.e. a matrix pricing model) per `region` and `provider`,
|
|
665
|
+
* your request might provide the following parameters:
|
|
544
666
|
*
|
|
545
667
|
* - `first_dimension_key`: `region`
|
|
546
668
|
* - `first_dimension_value`: `us-east-1`
|
|
@@ -552,45 +674,74 @@ export declare class Subscription {
|
|
|
552
674
|
* List subscriptions
|
|
553
675
|
*
|
|
554
676
|
* @remarks
|
|
555
|
-
* This endpoint returns a list of all subscriptions for an account as a [paginated](../reference/pagination) list,
|
|
677
|
+
* This endpoint returns a list of all subscriptions for an account as a [paginated](../reference/pagination) list,
|
|
678
|
+
* ordered starting from the most recently created subscription. For a full discussion of the subscription resource,
|
|
679
|
+
* see [Subscription](../guides/concepts#subscription).
|
|
556
680
|
*
|
|
557
|
-
* Subscriptions can be filtered to a single customer by
|
|
681
|
+
* Subscriptions can be filtered to a single customer by
|
|
682
|
+
* passing in the `customer_id` query parameter or the `external_customer_id` query parameter.
|
|
558
683
|
*/
|
|
559
684
|
list(req: operations.ListSubscriptionsRequest, config?: AxiosRequestConfig): Promise<operations.ListSubscriptionsResponse>;
|
|
560
685
|
/**
|
|
561
686
|
* Schedule plan change
|
|
562
687
|
*
|
|
563
688
|
* @remarks
|
|
564
|
-
* This endpoint can be used to change the plan on an existing subscription. It returns the serialized updated
|
|
689
|
+
* This endpoint can be used to change the plan on an existing subscription. It returns the serialized updated
|
|
690
|
+
* subscription object.
|
|
565
691
|
*
|
|
566
692
|
* The body parameter `change_option` determines the timing of the plan change. Orb supports three options:
|
|
567
|
-
*
|
|
568
693
|
* - `end_of_subscription_term`: changes the plan at the end of the existing plan's term.
|
|
569
|
-
* - Issuing this plan change request for a monthly subscription will keep the existing plan active until the start
|
|
570
|
-
*
|
|
571
|
-
*
|
|
572
|
-
*
|
|
573
|
-
*
|
|
574
|
-
* - `
|
|
694
|
+
* - Issuing this plan change request for a monthly subscription will keep the existing plan active until the start
|
|
695
|
+
* of the subsequent month, and potentially issue an invoice for any usage charges incurred in the intervening
|
|
696
|
+
* period.
|
|
697
|
+
* - Issuing this plan change request for a yearly subscription will keep the existing plan active for the full
|
|
698
|
+
* year.
|
|
699
|
+
* - `immediate`: changes the plan immediately. Subscriptions that have their plan changed with this option will be
|
|
700
|
+
* invoiced immediately. This invoice will include any usage fees incurred in the billing period up to the change,
|
|
701
|
+
* along with any prorated recurring fees for the billing period, if applicable.
|
|
702
|
+
* - `requested_date`: changes the plan on the requested date (`change_date`). If no timezone is provided, the
|
|
703
|
+
* customer's timezone is used. The `change_date` body parameter is required if this option is chosen.
|
|
575
704
|
*
|
|
576
705
|
* Note that one of `plan_id` or `external_plan_id` is required in the request body for this operation.
|
|
577
706
|
*
|
|
578
707
|
* ## Price overrides, maximums, and minimums
|
|
579
|
-
* Price overrides are used to update some or all prices in the target plan. Minimums and maximums, much like price
|
|
708
|
+
* Price overrides are used to update some or all prices in the target plan. Minimums and maximums, much like price
|
|
709
|
+
* overrides, can be useful when a new customer has negotiated a new or different minimum or maximum spend cap than the
|
|
710
|
+
* default for the plan. The request format for price overrides, maximums, and minimums are the same as those in
|
|
711
|
+
* [subscription creation](create-subscription).
|
|
580
712
|
*
|
|
581
713
|
* ## Prorations for in-advance fees
|
|
582
|
-
* By default, Orb calculates the prorated difference in any fixed fees when making a plan change, adjusting the
|
|
714
|
+
* By default, Orb calculates the prorated difference in any fixed fees when making a plan change, adjusting the
|
|
715
|
+
* customer balance as needed. For details on this behavior, see
|
|
716
|
+
* [Modifying subscriptions](../guides/product-catalog/modifying-subscriptions.md#prorations-for-in-advance-fees).
|
|
583
717
|
*/
|
|
584
718
|
schedulePlanChange(req: operations.SchedulePlanChangeRequest, config?: AxiosRequestConfig): Promise<operations.SchedulePlanChangeResponse>;
|
|
719
|
+
/**
|
|
720
|
+
* Trigger phase
|
|
721
|
+
*
|
|
722
|
+
* @remarks
|
|
723
|
+
* Manually trigger a phase, effective the given date (or the current time, if not specified).
|
|
724
|
+
*/
|
|
725
|
+
triggerPhase(req: operations.TriggerPhaseRequest, config?: AxiosRequestConfig): Promise<operations.TriggerPhaseResponse>;
|
|
585
726
|
/**
|
|
586
727
|
* Unschedule subscription cancellation
|
|
587
728
|
*
|
|
588
729
|
* @remarks
|
|
589
730
|
* This endpoint can be used to unschedule any pending cancellations for a subscription.
|
|
590
731
|
*
|
|
591
|
-
* To be eligible, the subscription must currently be active and have a future cancellation. This operation will turn
|
|
732
|
+
* To be eligible, the subscription must currently be active and have a future cancellation. This operation will turn
|
|
733
|
+
* on auto-renew, ensuring that the subscription does not end at the currently scheduled cancellation time.
|
|
592
734
|
*/
|
|
593
735
|
unscheduleCancellation(req: operations.UnscheduleCancellationRequest, config?: AxiosRequestConfig): Promise<operations.UnscheduleCancellationResponse>;
|
|
736
|
+
/**
|
|
737
|
+
* Unschedule fixed fee quantity updates
|
|
738
|
+
*
|
|
739
|
+
* @remarks
|
|
740
|
+
* This endpoint can be used to clear scheduled updates to the quantity for a fixed fee.
|
|
741
|
+
*
|
|
742
|
+
* If there are no updates scheduled, this endpoint is a no-op.
|
|
743
|
+
*/
|
|
744
|
+
unscheduleFixedFeeQuantity(req: operations.UnscheduleFixedFeeQuantityRequest, config?: AxiosRequestConfig): Promise<operations.UnscheduleFixedFeeQuantityResponse>;
|
|
594
745
|
/**
|
|
595
746
|
* Unschedule plan change
|
|
596
747
|
*
|
|
@@ -604,11 +755,15 @@ export declare class Subscription {
|
|
|
604
755
|
* @remarks
|
|
605
756
|
* This endpoint can be used to update the quantity for a fixed fee.
|
|
606
757
|
*
|
|
607
|
-
* To be eligible, the subscription must currently be active and the price specified must be a fixed fee (not
|
|
758
|
+
* To be eligible, the subscription must currently be active and the price specified must be a fixed fee (not
|
|
759
|
+
* usage-based). This operation will immediately update the quantity for the fee, or if a `effective_date` is passed
|
|
760
|
+
* in, will update the quantity on the requested date at midnight in the customer's timezone.
|
|
608
761
|
*
|
|
609
|
-
* In order to change the fixed fee quantity as of the next draft invoice for this subscription, pass
|
|
762
|
+
* In order to change the fixed fee quantity as of the next draft invoice for this subscription, pass
|
|
763
|
+
* `change_option=upcoming_invoice` without an `effective_date` specified.
|
|
610
764
|
*
|
|
611
|
-
* If the fee is an in-advance fixed fee, it will also issue an immediate invoice for the difference for the remainder
|
|
765
|
+
* If the fee is an in-advance fixed fee, it will also issue an immediate invoice for the difference for the remainder
|
|
766
|
+
* of the billing period.
|
|
612
767
|
*/
|
|
613
768
|
updateFixedFeeQuantity(req: operations.UpdateFixedFeeQuantityRequest, config?: AxiosRequestConfig): Promise<operations.UpdateFixedFeeQuantityResponse>;
|
|
614
769
|
}
|