orb-billing 1.21.0 → 1.22.0
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/CHANGELOG.md +19 -0
- package/LICENSE +201 -0
- package/README.md +196 -192
- package/_shims/MultipartBody.d.ts +9 -0
- package/_shims/MultipartBody.d.ts.map +1 -0
- package/_shims/MultipartBody.js +16 -0
- package/_shims/MultipartBody.js.map +1 -0
- package/_shims/MultipartBody.mjs +12 -0
- package/_shims/MultipartBody.mjs.map +1 -0
- package/_shims/README.md +46 -0
- package/_shims/auto/runtime-bun.d.ts +5 -0
- package/_shims/auto/runtime-bun.d.ts.map +1 -0
- package/_shims/auto/runtime-bun.js +21 -0
- package/_shims/auto/runtime-bun.js.map +1 -0
- package/_shims/auto/runtime-bun.mjs +2 -0
- package/_shims/auto/runtime-bun.mjs.map +1 -0
- package/_shims/auto/runtime-node.d.ts +5 -0
- package/_shims/auto/runtime-node.d.ts.map +1 -0
- package/_shims/auto/runtime-node.js +21 -0
- package/_shims/auto/runtime-node.js.map +1 -0
- package/_shims/auto/runtime-node.mjs +2 -0
- package/_shims/auto/runtime-node.mjs.map +1 -0
- package/_shims/auto/runtime.d.ts +5 -0
- package/_shims/auto/runtime.d.ts.map +1 -0
- package/_shims/auto/runtime.js +21 -0
- package/_shims/auto/runtime.js.map +1 -0
- package/_shims/auto/runtime.mjs +2 -0
- package/_shims/auto/runtime.mjs.map +1 -0
- package/_shims/auto/types-node.d.ts +5 -0
- package/_shims/auto/types-node.d.ts.map +1 -0
- package/_shims/auto/types-node.js +21 -0
- package/_shims/auto/types-node.js.map +1 -0
- package/_shims/auto/types-node.mjs +2 -0
- package/_shims/auto/types-node.mjs.map +1 -0
- package/_shims/auto/types.d.ts +101 -0
- package/_shims/auto/types.js +3 -0
- package/_shims/auto/types.mjs +3 -0
- package/_shims/bun-runtime.d.ts +6 -0
- package/_shims/bun-runtime.d.ts.map +1 -0
- package/_shims/bun-runtime.js +14 -0
- package/_shims/bun-runtime.js.map +1 -0
- package/_shims/bun-runtime.mjs +10 -0
- package/_shims/bun-runtime.mjs.map +1 -0
- package/_shims/index.d.ts +81 -0
- package/_shims/index.js +13 -0
- package/_shims/index.mjs +7 -0
- package/_shims/manual-types.d.ts +12 -0
- package/_shims/manual-types.js +3 -0
- package/_shims/manual-types.mjs +3 -0
- package/_shims/node-runtime.d.ts +3 -0
- package/_shims/node-runtime.d.ts.map +1 -0
- package/_shims/node-runtime.js +90 -0
- package/_shims/node-runtime.js.map +1 -0
- package/_shims/node-runtime.mjs +56 -0
- package/_shims/node-runtime.mjs.map +1 -0
- package/_shims/node-types.d.ts +42 -0
- package/_shims/node-types.js +3 -0
- package/_shims/node-types.mjs +3 -0
- package/_shims/registry.d.ts +37 -0
- package/_shims/registry.d.ts.map +1 -0
- package/_shims/registry.js +41 -0
- package/_shims/registry.js.map +1 -0
- package/_shims/registry.mjs +37 -0
- package/_shims/registry.mjs.map +1 -0
- package/_shims/web-runtime.d.ts +5 -0
- package/_shims/web-runtime.d.ts.map +1 -0
- package/_shims/web-runtime.js +78 -0
- package/_shims/web-runtime.js.map +1 -0
- package/_shims/web-runtime.mjs +71 -0
- package/_shims/web-runtime.mjs.map +1 -0
- package/_shims/web-types.d.ts +83 -0
- package/_shims/web-types.js +3 -0
- package/_shims/web-types.mjs +3 -0
- package/core.d.ts +239 -0
- package/core.d.ts.map +1 -0
- package/core.js +832 -0
- package/core.js.map +1 -0
- package/core.mjs +801 -0
- package/core.mjs.map +1 -0
- package/error.d.ts +131 -0
- package/error.d.ts.map +1 -0
- package/error.js +298 -0
- package/error.js.map +1 -0
- package/error.mjs +271 -0
- package/error.mjs.map +1 -0
- package/index.d.mts +210 -0
- package/index.d.ts +210 -0
- package/index.d.ts.map +1 -0
- package/index.js +153 -0
- package/index.js.map +1 -0
- package/index.mjs +125 -0
- package/index.mjs.map +1 -0
- package/package.json +90 -27
- package/pagination.d.ts +31 -0
- package/pagination.d.ts.map +1 -0
- package/pagination.js +34 -0
- package/pagination.js.map +1 -0
- package/pagination.mjs +30 -0
- package/pagination.mjs.map +1 -0
- package/resource.d.ts +12 -0
- package/resource.d.ts.map +1 -0
- package/resource.js +17 -0
- package/resource.js.map +1 -0
- package/resource.mjs +13 -0
- package/resource.mjs.map +1 -0
- package/resources/coupons/coupons.d.ts +114 -0
- package/resources/coupons/coupons.d.ts.map +1 -0
- package/resources/coupons/coupons.js +76 -0
- package/resources/coupons/coupons.js.map +1 -0
- package/resources/coupons/coupons.mjs +48 -0
- package/resources/coupons/coupons.mjs.map +1 -0
- package/resources/coupons/index.d.ts +3 -0
- package/resources/coupons/index.d.ts.map +1 -0
- package/resources/coupons/index.js +10 -0
- package/resources/coupons/index.js.map +1 -0
- package/resources/coupons/index.mjs +4 -0
- package/resources/coupons/index.mjs.map +1 -0
- package/resources/coupons/subscriptions.d.ts +23 -0
- package/resources/coupons/subscriptions.d.ts.map +1 -0
- package/resources/coupons/subscriptions.js +20 -0
- package/resources/coupons/subscriptions.js.map +1 -0
- package/resources/coupons/subscriptions.mjs +16 -0
- package/resources/coupons/subscriptions.mjs.map +1 -0
- package/resources/credit-notes.d.ts +136 -0
- package/resources/credit-notes.d.ts.map +1 -0
- package/resources/credit-notes.js +54 -0
- package/resources/credit-notes.js.map +1 -0
- package/resources/credit-notes.mjs +26 -0
- package/resources/credit-notes.mjs.map +1 -0
- package/resources/customers/balance-transactions.d.ts +159 -0
- package/resources/customers/balance-transactions.d.ts.map +1 -0
- package/resources/customers/balance-transactions.js +54 -0
- package/resources/customers/balance-transactions.js.map +1 -0
- package/resources/customers/balance-transactions.mjs +26 -0
- package/resources/customers/balance-transactions.mjs.map +1 -0
- package/resources/customers/costs.d.ts +915 -0
- package/resources/customers/costs.d.ts.map +1 -0
- package/resources/customers/costs.js +24 -0
- package/resources/customers/costs.js.map +1 -0
- package/resources/customers/costs.mjs +20 -0
- package/resources/customers/costs.mjs.map +1 -0
- package/resources/customers/credits/credits.d.ts +58 -0
- package/resources/customers/credits/credits.d.ts.map +1 -0
- package/resources/customers/credits/credits.js +68 -0
- package/resources/customers/credits/credits.js.map +1 -0
- package/resources/customers/credits/credits.mjs +39 -0
- package/resources/customers/credits/credits.mjs.map +1 -0
- package/resources/customers/credits/index.d.ts +3 -0
- package/resources/customers/credits/index.d.ts.map +1 -0
- package/resources/customers/credits/index.js +13 -0
- package/resources/customers/credits/index.js.map +1 -0
- package/resources/customers/credits/index.mjs +4 -0
- package/resources/customers/credits/index.mjs.map +1 -0
- package/resources/customers/credits/ledger.d.ts +1537 -0
- package/resources/customers/credits/ledger.d.ts.map +1 -0
- package/resources/customers/credits/ledger.js +291 -0
- package/resources/customers/credits/ledger.js.map +1 -0
- package/resources/customers/credits/ledger.mjs +262 -0
- package/resources/customers/credits/ledger.mjs.map +1 -0
- package/resources/customers/customers.d.ts +524 -0
- package/resources/customers/customers.d.ts.map +1 -0
- package/resources/customers/customers.js +135 -0
- package/resources/customers/customers.js.map +1 -0
- package/resources/customers/customers.mjs +107 -0
- package/resources/customers/customers.mjs.map +1 -0
- package/resources/customers/index.d.ts +6 -0
- package/resources/customers/index.d.ts.map +1 -0
- package/resources/customers/index.js +19 -0
- package/resources/customers/index.js.map +1 -0
- package/resources/customers/index.mjs +7 -0
- package/resources/customers/index.mjs.map +1 -0
- package/resources/customers/usage.d.ts +306 -0
- package/resources/customers/usage.d.ts.map +1 -0
- package/resources/customers/usage.js +223 -0
- package/resources/customers/usage.js.map +1 -0
- package/resources/customers/usage.mjs +219 -0
- package/resources/customers/usage.mjs.map +1 -0
- package/resources/events/backfills.d.ts +250 -0
- package/resources/events/backfills.d.ts.map +1 -0
- package/resources/events/backfills.js +104 -0
- package/resources/events/backfills.js.map +1 -0
- package/resources/events/backfills.mjs +76 -0
- package/resources/events/backfills.mjs.map +1 -0
- package/resources/events/events.d.ts +547 -0
- package/resources/events/events.d.ts.map +1 -0
- package/resources/events/events.js +354 -0
- package/resources/events/events.js.map +1 -0
- package/resources/events/events.mjs +327 -0
- package/resources/events/events.mjs.map +1 -0
- package/resources/events/index.d.ts +3 -0
- package/resources/events/index.d.ts.map +1 -0
- package/resources/events/index.js +10 -0
- package/resources/events/index.js.map +1 -0
- package/resources/events/index.mjs +4 -0
- package/resources/events/index.mjs.map +1 -0
- package/resources/index.d.ts +13 -0
- package/resources/index.d.ts.map +1 -0
- package/resources/index.js +39 -0
- package/resources/index.js.map +1 -0
- package/resources/index.mjs +14 -0
- package/resources/index.mjs.map +1 -0
- package/resources/invoice-line-items.d.ts +434 -0
- package/resources/invoice-line-items.d.ts.map +1 -0
- package/resources/invoice-line-items.js +18 -0
- package/resources/invoice-line-items.js.map +1 -0
- package/resources/invoice-line-items.mjs +14 -0
- package/resources/invoice-line-items.mjs.map +1 -0
- package/resources/invoices.d.ts +1541 -0
- package/resources/invoices.d.ts.map +1 -0
- package/resources/invoices.js +96 -0
- package/resources/invoices.js.map +1 -0
- package/resources/invoices.mjs +68 -0
- package/resources/invoices.mjs.map +1 -0
- package/resources/items.d.ts +61 -0
- package/resources/items.d.ts.map +1 -0
- package/resources/items.js +53 -0
- package/resources/items.js.map +1 -0
- package/resources/items.mjs +25 -0
- package/resources/items.mjs.map +1 -0
- package/resources/metrics.d.ts +176 -0
- package/resources/metrics.d.ts.map +1 -0
- package/resources/metrics.js +63 -0
- package/resources/metrics.js.map +1 -0
- package/resources/metrics.mjs +35 -0
- package/resources/metrics.mjs.map +1 -0
- package/resources/plans/external-plan-id.d.ts +50 -0
- package/resources/plans/external-plan-id.d.ts.map +1 -0
- package/resources/plans/external-plan-id.js +35 -0
- package/resources/plans/external-plan-id.js.map +1 -0
- package/resources/plans/external-plan-id.mjs +31 -0
- package/resources/plans/external-plan-id.mjs.map +1 -0
- package/resources/plans/index.d.ts +3 -0
- package/resources/plans/index.d.ts.map +1 -0
- package/resources/plans/index.js +10 -0
- package/resources/plans/index.js.map +1 -0
- package/resources/plans/index.mjs +4 -0
- package/resources/plans/index.mjs.map +1 -0
- package/resources/plans/plans.d.ts +256 -0
- package/resources/plans/plans.d.ts.map +1 -0
- package/resources/plans/plans.js +87 -0
- package/resources/plans/plans.js.map +1 -0
- package/resources/plans/plans.mjs +59 -0
- package/resources/plans/plans.mjs.map +1 -0
- package/resources/prices/external-price-id.d.ts +12 -0
- package/resources/prices/external-price-id.d.ts.map +1 -0
- package/resources/prices/external-price-id.js +17 -0
- package/resources/prices/external-price-id.js.map +1 -0
- package/resources/prices/external-price-id.mjs +13 -0
- package/resources/prices/external-price-id.mjs.map +1 -0
- package/resources/prices/index.d.ts +3 -0
- package/resources/prices/index.d.ts.map +1 -0
- package/resources/prices/index.js +10 -0
- package/resources/prices/index.js.map +1 -0
- package/resources/prices/index.mjs +4 -0
- package/resources/prices/index.mjs.map +1 -0
- package/resources/prices/prices.d.ts +1872 -0
- package/resources/prices/prices.d.ts.map +1 -0
- package/resources/prices/prices.js +74 -0
- package/resources/prices/prices.js.map +1 -0
- package/resources/prices/prices.mjs +46 -0
- package/resources/prices/prices.mjs.map +1 -0
- package/resources/subscriptions.d.ts +3752 -0
- package/resources/subscriptions.d.ts.map +1 -0
- package/resources/subscriptions.js +254 -0
- package/resources/subscriptions.js.map +1 -0
- package/resources/subscriptions.mjs +225 -0
- package/resources/subscriptions.mjs.map +1 -0
- package/resources/top-level.d.ts +21 -0
- package/resources/top-level.d.ts.map +1 -0
- package/resources/top-level.js +22 -0
- package/resources/top-level.js.map +1 -0
- package/resources/top-level.mjs +18 -0
- package/resources/top-level.mjs.map +1 -0
- package/shims/node.d.ts +29 -0
- package/shims/node.d.ts.map +1 -0
- package/shims/node.js +31 -0
- package/shims/node.js.map +1 -0
- package/shims/node.mjs +5 -0
- package/shims/node.mjs.map +1 -0
- package/shims/web.d.ts +26 -0
- package/shims/web.d.ts.map +1 -0
- package/shims/web.js +31 -0
- package/shims/web.js.map +1 -0
- package/shims/web.mjs +5 -0
- package/shims/web.mjs.map +1 -0
- package/src/_shims/MultipartBody.ts +9 -0
- package/src/_shims/README.md +46 -0
- package/src/_shims/auto/runtime-bun.ts +4 -0
- package/src/_shims/auto/runtime-node.ts +4 -0
- package/src/_shims/auto/runtime.ts +4 -0
- package/src/_shims/auto/types-node.ts +4 -0
- package/src/_shims/auto/types.d.ts +101 -0
- package/src/_shims/auto/types.js +3 -0
- package/src/_shims/auto/types.mjs +3 -0
- package/src/_shims/bun-runtime.ts +14 -0
- package/src/_shims/index.d.ts +81 -0
- package/src/_shims/index.js +13 -0
- package/src/_shims/index.mjs +7 -0
- package/src/_shims/manual-types.d.ts +12 -0
- package/src/_shims/manual-types.js +3 -0
- package/src/_shims/manual-types.mjs +3 -0
- package/src/_shims/node-runtime.ts +83 -0
- package/src/_shims/node-types.d.ts +42 -0
- package/src/_shims/node-types.js +3 -0
- package/src/_shims/node-types.mjs +3 -0
- package/src/_shims/registry.ts +67 -0
- package/src/_shims/web-runtime.ts +103 -0
- package/src/_shims/web-types.d.ts +83 -0
- package/src/_shims/web-types.js +3 -0
- package/src/_shims/web-types.mjs +3 -0
- package/src/core.ts +1103 -0
- package/src/error.ts +469 -0
- package/src/index.ts +305 -0
- package/src/pagination.ts +63 -0
- package/src/resource.ts +24 -0
- package/src/resources/coupons/coupons.ts +150 -0
- package/src/resources/coupons/index.ts +4 -0
- package/src/resources/coupons/subscriptions.ts +45 -0
- package/src/resources/credit-notes.ts +184 -0
- package/src/resources/customers/balance-transactions.ts +222 -0
- package/src/resources/customers/costs.ts +991 -0
- package/src/resources/customers/credits/credits.ts +113 -0
- package/src/resources/customers/credits/index.ts +24 -0
- package/src/resources/customers/credits/ledger.ts +2254 -0
- package/src/resources/customers/customers.ts +734 -0
- package/src/resources/customers/index.ts +42 -0
- package/src/resources/customers/usage.ts +350 -0
- package/src/resources/events/backfills.ts +324 -0
- package/src/resources/events/events.ts +635 -0
- package/src/resources/events/index.ts +23 -0
- package/src/resources/index.ts +72 -0
- package/src/resources/invoice-line-items.ts +502 -0
- package/src/resources/invoices.ts +1906 -0
- package/src/resources/items.ts +106 -0
- package/src/resources/metrics.ts +264 -0
- package/src/resources/plans/external-plan-id.ts +73 -0
- package/src/resources/plans/index.ts +4 -0
- package/src/resources/plans/plans.ts +350 -0
- package/src/resources/prices/external-price-id.ts +16 -0
- package/src/resources/prices/index.ts +4 -0
- package/src/resources/prices/prices.ts +2466 -0
- package/src/resources/subscriptions.ts +4590 -0
- package/src/resources/top-level.ts +27 -0
- package/src/shims/node.ts +50 -0
- package/src/shims/web.ts +50 -0
- package/src/tsconfig.json +11 -0
- package/src/uploads.ts +246 -0
- package/src/version.ts +1 -0
- package/uploads.d.ts +75 -0
- package/uploads.d.ts.map +1 -0
- package/uploads.js +162 -0
- package/uploads.js.map +1 -0
- package/uploads.mjs +149 -0
- package/uploads.mjs.map +1 -0
- package/version.d.ts +2 -0
- package/version.d.ts.map +1 -0
- package/version.js +5 -0
- package/version.js.map +1 -0
- package/version.mjs +2 -0
- package/version.mjs.map +1 -0
- package/LICENSE.md +0 -21
- package/dist/index.d.ts +0 -1
- package/dist/index.js +0 -20
- package/dist/internal/utils/contenttype.d.ts +0 -1
- package/dist/internal/utils/contenttype.js +0 -33
- package/dist/internal/utils/headers.d.ts +0 -4
- package/dist/internal/utils/headers.js +0 -92
- package/dist/internal/utils/index.d.ts +0 -8
- package/dist/internal/utils/index.js +0 -27
- package/dist/internal/utils/pathparams.d.ts +0 -2
- package/dist/internal/utils/pathparams.js +0 -53
- package/dist/internal/utils/queryparams.d.ts +0 -2
- package/dist/internal/utils/queryparams.js +0 -178
- package/dist/internal/utils/requestbody.d.ts +0 -2
- package/dist/internal/utils/requestbody.js +0 -318
- package/dist/internal/utils/retries.d.ts +0 -20
- package/dist/internal/utils/retries.js +0 -250
- package/dist/internal/utils/security.d.ts +0 -5
- package/dist/internal/utils/security.js +0 -188
- package/dist/internal/utils/utils.d.ts +0 -37
- package/dist/internal/utils/utils.js +0 -370
- package/dist/sdk/availability.d.ts +0 -18
- package/dist/sdk/availability.js +0 -186
- package/dist/sdk/coupon.d.ts +0 -62
- package/dist/sdk/coupon.js +0 -629
- package/dist/sdk/credit.d.ts +0 -348
- package/dist/sdk/credit.js +0 -1020
- package/dist/sdk/creditnote.d.ts +0 -29
- package/dist/sdk/creditnote.js +0 -293
- package/dist/sdk/customer.d.ts +0 -529
- package/dist/sdk/customer.js +0 -1882
- package/dist/sdk/event.d.ts +0 -353
- package/dist/sdk/event.js +0 -1314
- package/dist/sdk/index.d.ts +0 -1
- package/dist/sdk/index.js +0 -20
- package/dist/sdk/invoice.d.ts +0 -89
- package/dist/sdk/invoice.js +0 -945
- package/dist/sdk/item.d.ts +0 -27
- package/dist/sdk/item.js +0 -291
- package/dist/sdk/metric.d.ts +0 -39
- package/dist/sdk/metric.js +0 -418
- package/dist/sdk/models/errors/fivehundrederror.d.ts +0 -11
- package/dist/sdk/models/errors/fivehundrederror.js +0 -88
- package/dist/sdk/models/errors/fourhundredandoneerror.d.ts +0 -11
- package/dist/sdk/models/errors/fourhundredandoneerror.js +0 -88
- package/dist/sdk/models/errors/fourhundredandtwentynineerror.d.ts +0 -11
- package/dist/sdk/models/errors/fourhundredandtwentynineerror.js +0 -88
- package/dist/sdk/models/errors/index.d.ts +0 -4
- package/dist/sdk/models/errors/index.js +0 -23
- package/dist/sdk/models/errors/sdkerror.d.ts +0 -7
- package/dist/sdk/models/errors/sdkerror.js +0 -40
- package/dist/sdk/models/operations/addeditpriceintervals.d.ts +0 -25
- package/dist/sdk/models/operations/addeditpriceintervals.js +0 -95
- package/dist/sdk/models/operations/amendevent.d.ts +0 -25
- package/dist/sdk/models/operations/amendevent.js +0 -95
- package/dist/sdk/models/operations/amendusage.d.ts +0 -27
- package/dist/sdk/models/operations/amendusage.js +0 -103
- package/dist/sdk/models/operations/amendusageexternalcustomerid.d.ts +0 -27
- package/dist/sdk/models/operations/amendusageexternalcustomerid.js +0 -103
- package/dist/sdk/models/operations/archivecoupon.d.ts +0 -24
- package/dist/sdk/models/operations/archivecoupon.js +0 -91
- package/dist/sdk/models/operations/cancelsubscription.d.ts +0 -25
- package/dist/sdk/models/operations/cancelsubscription.js +0 -95
- package/dist/sdk/models/operations/closebackfill.d.ts +0 -24
- package/dist/sdk/models/operations/closebackfill.js +0 -91
- package/dist/sdk/models/operations/createbackfill.d.ts +0 -21
- package/dist/sdk/models/operations/createbackfill.js +0 -79
- package/dist/sdk/models/operations/createcoupon.d.ts +0 -21
- package/dist/sdk/models/operations/createcoupon.js +0 -79
- package/dist/sdk/models/operations/createcustomer.d.ts +0 -21
- package/dist/sdk/models/operations/createcustomer.js +0 -79
- package/dist/sdk/models/operations/createcustomerbalancetransaction.d.ts +0 -25
- package/dist/sdk/models/operations/createcustomerbalancetransaction.js +0 -95
- package/dist/sdk/models/operations/createinvoice.d.ts +0 -21
- package/dist/sdk/models/operations/createinvoice.js +0 -79
- package/dist/sdk/models/operations/createinvoicelineitem.d.ts +0 -21
- package/dist/sdk/models/operations/createinvoicelineitem.js +0 -79
- package/dist/sdk/models/operations/createledgerentry.d.ts +0 -24
- package/dist/sdk/models/operations/createledgerentry.js +0 -71
- package/dist/sdk/models/operations/createledgerentryexternalid.d.ts +0 -24
- package/dist/sdk/models/operations/createledgerentryexternalid.js +0 -71
- package/dist/sdk/models/operations/createmetric.d.ts +0 -21
- package/dist/sdk/models/operations/createmetric.js +0 -79
- package/dist/sdk/models/operations/createplan.d.ts +0 -21
- package/dist/sdk/models/operations/createplan.js +0 -79
- package/dist/sdk/models/operations/createprice.d.ts +0 -20
- package/dist/sdk/models/operations/createprice.js +0 -55
- package/dist/sdk/models/operations/createsubscription.d.ts +0 -21
- package/dist/sdk/models/operations/createsubscription.js +0 -79
- package/dist/sdk/models/operations/deletecustomer.d.ts +0 -24
- package/dist/sdk/models/operations/deletecustomer.js +0 -91
- package/dist/sdk/models/operations/deprecateevent.d.ts +0 -24
- package/dist/sdk/models/operations/deprecateevent.js +0 -91
- package/dist/sdk/models/operations/fetchbackfill.d.ts +0 -24
- package/dist/sdk/models/operations/fetchbackfill.js +0 -91
- package/dist/sdk/models/operations/fetchcoupon.d.ts +0 -24
- package/dist/sdk/models/operations/fetchcoupon.js +0 -91
- package/dist/sdk/models/operations/fetchcreditnote.d.ts +0 -24
- package/dist/sdk/models/operations/fetchcreditnote.js +0 -91
- package/dist/sdk/models/operations/fetchcustomer.d.ts +0 -24
- package/dist/sdk/models/operations/fetchcustomer.js +0 -91
- package/dist/sdk/models/operations/fetchcustomercosts.d.ts +0 -38
- package/dist/sdk/models/operations/fetchcustomercosts.js +0 -115
- package/dist/sdk/models/operations/fetchcustomercostsexternalid.d.ts +0 -38
- package/dist/sdk/models/operations/fetchcustomercostsexternalid.js +0 -115
- package/dist/sdk/models/operations/fetchcustomercredits.d.ts +0 -26
- package/dist/sdk/models/operations/fetchcustomercredits.js +0 -99
- package/dist/sdk/models/operations/fetchcustomercreditsexternalid.d.ts +0 -26
- package/dist/sdk/models/operations/fetchcustomercreditsexternalid.js +0 -99
- package/dist/sdk/models/operations/fetchcustomercreditsledger.d.ts +0 -47
- package/dist/sdk/models/operations/fetchcustomercreditsledger.js +0 -146
- package/dist/sdk/models/operations/fetchcustomercreditsledgerexternalid.d.ts +0 -47
- package/dist/sdk/models/operations/fetchcustomercreditsledgerexternalid.js +0 -146
- package/dist/sdk/models/operations/fetchcustomerexternalid.d.ts +0 -24
- package/dist/sdk/models/operations/fetchcustomerexternalid.js +0 -91
- package/dist/sdk/models/operations/fetchinvoice.d.ts +0 -24
- package/dist/sdk/models/operations/fetchinvoice.js +0 -91
- package/dist/sdk/models/operations/fetchitem.d.ts +0 -24
- package/dist/sdk/models/operations/fetchitem.js +0 -91
- package/dist/sdk/models/operations/fetchmetric.d.ts +0 -24
- package/dist/sdk/models/operations/fetchmetric.js +0 -91
- package/dist/sdk/models/operations/fetchplan.d.ts +0 -24
- package/dist/sdk/models/operations/fetchplan.js +0 -91
- package/dist/sdk/models/operations/fetchplanexternalid.d.ts +0 -24
- package/dist/sdk/models/operations/fetchplanexternalid.js +0 -91
- package/dist/sdk/models/operations/fetchprice.d.ts +0 -23
- package/dist/sdk/models/operations/fetchprice.js +0 -67
- package/dist/sdk/models/operations/fetchpriceexternalid.d.ts +0 -23
- package/dist/sdk/models/operations/fetchpriceexternalid.js +0 -67
- package/dist/sdk/models/operations/fetchsubscription.d.ts +0 -24
- package/dist/sdk/models/operations/fetchsubscription.js +0 -91
- package/dist/sdk/models/operations/fetchsubscriptioncosts.d.ts +0 -38
- package/dist/sdk/models/operations/fetchsubscriptioncosts.js +0 -115
- package/dist/sdk/models/operations/fetchsubscriptionschedule.d.ts +0 -30
- package/dist/sdk/models/operations/fetchsubscriptionschedule.js +0 -115
- package/dist/sdk/models/operations/fetchsubscriptionusage.d.ts +0 -54
- package/dist/sdk/models/operations/fetchsubscriptionusage.js +0 -130
- package/dist/sdk/models/operations/fetchupcominginvoice.d.ts +0 -24
- package/dist/sdk/models/operations/fetchupcominginvoice.js +0 -91
- package/dist/sdk/models/operations/index.d.ts +0 -73
- package/dist/sdk/models/operations/index.js +0 -92
- package/dist/sdk/models/operations/ingest.d.ts +0 -26
- package/dist/sdk/models/operations/ingest.js +0 -99
- package/dist/sdk/models/operations/issueinvoice.d.ts +0 -24
- package/dist/sdk/models/operations/issueinvoice.js +0 -91
- package/dist/sdk/models/operations/listbackfills.d.ts +0 -25
- package/dist/sdk/models/operations/listbackfills.js +0 -95
- package/dist/sdk/models/operations/listbalancetransactions.d.ts +0 -30
- package/dist/sdk/models/operations/listbalancetransactions.js +0 -115
- package/dist/sdk/models/operations/listcoupons.d.ts +0 -27
- package/dist/sdk/models/operations/listcoupons.js +0 -103
- package/dist/sdk/models/operations/listcouponsubscriptions.d.ts +0 -26
- package/dist/sdk/models/operations/listcouponsubscriptions.js +0 -99
- package/dist/sdk/models/operations/listcreditnotes.d.ts +0 -25
- package/dist/sdk/models/operations/listcreditnotes.js +0 -95
- package/dist/sdk/models/operations/listcustomers.d.ts +0 -29
- package/dist/sdk/models/operations/listcustomers.js +0 -111
- package/dist/sdk/models/operations/listinvoices.d.ts +0 -62
- package/dist/sdk/models/operations/listinvoices.js +0 -189
- package/dist/sdk/models/operations/listitems.d.ts +0 -25
- package/dist/sdk/models/operations/listitems.js +0 -95
- package/dist/sdk/models/operations/listmetrics.d.ts +0 -29
- package/dist/sdk/models/operations/listmetrics.js +0 -111
- package/dist/sdk/models/operations/listplans.d.ts +0 -41
- package/dist/sdk/models/operations/listplans.js +0 -124
- package/dist/sdk/models/operations/listprices.d.ts +0 -25
- package/dist/sdk/models/operations/listprices.js +0 -95
- package/dist/sdk/models/operations/listsubscriptions.d.ts +0 -37
- package/dist/sdk/models/operations/listsubscriptions.js +0 -129
- package/dist/sdk/models/operations/markinvoiceaspaid.d.ts +0 -25
- package/dist/sdk/models/operations/markinvoiceaspaid.js +0 -95
- package/dist/sdk/models/operations/ping.d.ts +0 -21
- package/dist/sdk/models/operations/ping.js +0 -79
- package/dist/sdk/models/operations/revertbackfill.d.ts +0 -24
- package/dist/sdk/models/operations/revertbackfill.js +0 -91
- package/dist/sdk/models/operations/scheduleplanchange.d.ts +0 -25
- package/dist/sdk/models/operations/scheduleplanchange.js +0 -95
- package/dist/sdk/models/operations/searchevents.d.ts +0 -30
- package/dist/sdk/models/operations/searchevents.js +0 -115
- package/dist/sdk/models/operations/triggerphase.d.ts +0 -25
- package/dist/sdk/models/operations/triggerphase.js +0 -95
- package/dist/sdk/models/operations/unschedulecancellation.d.ts +0 -24
- package/dist/sdk/models/operations/unschedulecancellation.js +0 -91
- package/dist/sdk/models/operations/unschedulefixedfeequantity.d.ts +0 -25
- package/dist/sdk/models/operations/unschedulefixedfeequantity.js +0 -95
- package/dist/sdk/models/operations/unscheduleplanchange.d.ts +0 -24
- package/dist/sdk/models/operations/unscheduleplanchange.js +0 -91
- package/dist/sdk/models/operations/updatecustomer.d.ts +0 -25
- package/dist/sdk/models/operations/updatecustomer.js +0 -95
- package/dist/sdk/models/operations/updatecustomerexternalid.d.ts +0 -25
- package/dist/sdk/models/operations/updatecustomerexternalid.js +0 -95
- package/dist/sdk/models/operations/updatefixedfeequantity.d.ts +0 -25
- package/dist/sdk/models/operations/updatefixedfeequantity.js +0 -95
- package/dist/sdk/models/operations/updateplan.d.ts +0 -25
- package/dist/sdk/models/operations/updateplan.js +0 -95
- package/dist/sdk/models/operations/updateplanexternal.d.ts +0 -25
- package/dist/sdk/models/operations/updateplanexternal.js +0 -95
- package/dist/sdk/models/operations/voidinvoice.d.ts +0 -24
- package/dist/sdk/models/operations/voidinvoice.js +0 -91
- package/dist/sdk/models/shared/accountingprovider.d.ts +0 -9
- package/dist/sdk/models/shared/accountingprovider.js +0 -55
- package/dist/sdk/models/shared/accountingproviderconfig.d.ts +0 -5
- package/dist/sdk/models/shared/accountingproviderconfig.js +0 -50
- package/dist/sdk/models/shared/accountingsyncconfiguration.d.ts +0 -6
- package/dist/sdk/models/shared/accountingsyncconfiguration.js +0 -52
- package/dist/sdk/models/shared/addeditpriceintervalparams.d.ts +0 -13
- package/dist/sdk/models/shared/addeditpriceintervalparams.js +0 -54
- package/dist/sdk/models/shared/addpriceintervalparams.d.ts +0 -40
- package/dist/sdk/models/shared/addpriceintervalparams.js +0 -87
- package/dist/sdk/models/shared/address.d.ts +0 -9
- package/dist/sdk/models/shared/address.js +0 -70
- package/dist/sdk/models/shared/addressinput.d.ts +0 -9
- package/dist/sdk/models/shared/addressinput.js +0 -70
- package/dist/sdk/models/shared/aggregatedcost.d.ts +0 -15
- package/dist/sdk/models/shared/aggregatedcost.js +0 -75
- package/dist/sdk/models/shared/amendedevent.d.ts +0 -28
- package/dist/sdk/models/shared/amendedevent.js +0 -81
- package/dist/sdk/models/shared/amendedusage.d.ts +0 -11
- package/dist/sdk/models/shared/amendedusage.js +0 -50
- package/dist/sdk/models/shared/amendeventresult.d.ts +0 -7
- package/dist/sdk/models/shared/amendeventresult.js +0 -45
- package/dist/sdk/models/shared/autocollection.d.ts +0 -15
- package/dist/sdk/models/shared/autocollection.js +0 -63
- package/dist/sdk/models/shared/backfill.d.ts +0 -27
- package/dist/sdk/models/shared/backfill.js +0 -104
- package/dist/sdk/models/shared/backfills.d.ts +0 -7
- package/dist/sdk/models/shared/backfills.js +0 -54
- package/dist/sdk/models/shared/backfillstatus.d.ts +0 -9
- package/dist/sdk/models/shared/backfillstatus.js +0 -16
- package/dist/sdk/models/shared/billablemetric.d.ts +0 -27
- package/dist/sdk/models/shared/billablemetric.js +0 -84
- package/dist/sdk/models/shared/billablemetrics.d.ts +0 -7
- package/dist/sdk/models/shared/billablemetrics.js +0 -54
- package/dist/sdk/models/shared/billingcyclealignment.d.ts +0 -8
- package/dist/sdk/models/shared/billingcyclealignment.js +0 -15
- package/dist/sdk/models/shared/cancelsubscriptionparams.d.ts +0 -19
- package/dist/sdk/models/shared/cancelsubscriptionparams.js +0 -63
- package/dist/sdk/models/shared/changeoption.d.ts +0 -5
- package/dist/sdk/models/shared/changeoption.js +0 -12
- package/dist/sdk/models/shared/coupon.d.ts +0 -40
- package/dist/sdk/models/shared/coupon.js +0 -98
- package/dist/sdk/models/shared/couponredemption.d.ts +0 -6
- package/dist/sdk/models/shared/couponredemption.js +0 -63
- package/dist/sdk/models/shared/coupons.d.ts +0 -7
- package/dist/sdk/models/shared/coupons.js +0 -54
- package/dist/sdk/models/shared/createinvoicelineitemparams.d.ts +0 -28
- package/dist/sdk/models/shared/createinvoicelineitemparams.js +0 -81
- package/dist/sdk/models/shared/createoneoffinvoiceparams.d.ts +0 -33
- package/dist/sdk/models/shared/createoneoffinvoiceparams.js +0 -86
- package/dist/sdk/models/shared/creditledgerentries.d.ts +0 -6
- package/dist/sdk/models/shared/creditledgerentries.js +0 -52
- package/dist/sdk/models/shared/creditnote.d.ts +0 -83
- package/dist/sdk/models/shared/creditnote.js +0 -171
- package/dist/sdk/models/shared/creditnotelineitem.d.ts +0 -40
- package/dist/sdk/models/shared/creditnotelineitem.js +0 -100
- package/dist/sdk/models/shared/creditnoteminified.d.ts +0 -7
- package/dist/sdk/models/shared/creditnoteminified.js +0 -45
- package/dist/sdk/models/shared/creditnotes.d.ts +0 -7
- package/dist/sdk/models/shared/creditnotes.js +0 -54
- package/dist/sdk/models/shared/creditnotesublineitem.d.ts +0 -6
- package/dist/sdk/models/shared/creditnotesublineitem.js +0 -55
- package/dist/sdk/models/shared/creditnotesummary.d.ts +0 -12
- package/dist/sdk/models/shared/creditnotesummary.js +0 -74
- package/dist/sdk/models/shared/customer.d.ts +0 -76
- package/dist/sdk/models/shared/customer.js +0 -182
- package/dist/sdk/models/shared/customerbalancetransaction.d.ts +0 -42
- package/dist/sdk/models/shared/customerbalancetransaction.js +0 -109
- package/dist/sdk/models/shared/customerbalancetransactions.d.ts +0 -7
- package/dist/sdk/models/shared/customerbalancetransactions.js +0 -54
- package/dist/sdk/models/shared/customercosts.d.ts +0 -5
- package/dist/sdk/models/shared/customercosts.js +0 -47
- package/dist/sdk/models/shared/customercreditbalance.d.ts +0 -7
- package/dist/sdk/models/shared/customercreditbalance.js +0 -64
- package/dist/sdk/models/shared/customercreditbalances.d.ts +0 -7
- package/dist/sdk/models/shared/customercreditbalances.js +0 -54
- package/dist/sdk/models/shared/customerminified.d.ts +0 -5
- package/dist/sdk/models/shared/customerminified.js +0 -50
- package/dist/sdk/models/shared/customers.d.ts +0 -7
- package/dist/sdk/models/shared/customers.js +0 -54
- package/dist/sdk/models/shared/customertaxid.d.ts +0 -6
- package/dist/sdk/models/shared/customertaxid.js +0 -55
- package/dist/sdk/models/shared/debug.d.ts +0 -8
- package/dist/sdk/models/shared/debug.js +0 -53
- package/dist/sdk/models/shared/deletecustomerresponse.d.ts +0 -3
- package/dist/sdk/models/shared/deletecustomerresponse.js +0 -30
- package/dist/sdk/models/shared/deprecatedeventresult.d.ts +0 -7
- package/dist/sdk/models/shared/deprecatedeventresult.js +0 -45
- package/dist/sdk/models/shared/discount.d.ts +0 -33
- package/dist/sdk/models/shared/discount.js +0 -80
- package/dist/sdk/models/shared/editcustomer.d.ts +0 -72
- package/dist/sdk/models/shared/editcustomer.js +0 -151
- package/dist/sdk/models/shared/editplan.d.ts +0 -10
- package/dist/sdk/models/shared/editplan.js +0 -59
- package/dist/sdk/models/shared/editpriceintervalparams.d.ts +0 -20
- package/dist/sdk/models/shared/editpriceintervalparams.js +0 -62
- package/dist/sdk/models/shared/event.d.ts +0 -39
- package/dist/sdk/models/shared/event.js +0 -93
- package/dist/sdk/models/shared/events.d.ts +0 -7
- package/dist/sdk/models/shared/events.js +0 -54
- package/dist/sdk/models/shared/eventsearchcriteria.d.ts +0 -11
- package/dist/sdk/models/shared/eventsearchcriteria.js +0 -50
- package/dist/sdk/models/shared/fixedfeequantitychange.d.ts +0 -25
- package/dist/sdk/models/shared/fixedfeequantitychange.js +0 -75
- package/dist/sdk/models/shared/fixedfeequantityscheduleentry.d.ts +0 -7
- package/dist/sdk/models/shared/fixedfeequantityscheduleentry.js +0 -68
- package/dist/sdk/models/shared/fixedfeequantitytransition.d.ts +0 -6
- package/dist/sdk/models/shared/fixedfeequantitytransition.js +0 -59
- package/dist/sdk/models/shared/index.d.ts +0 -109
- package/dist/sdk/models/shared/index.js +0 -128
- package/dist/sdk/models/shared/ingestevent.d.ts +0 -32
- package/dist/sdk/models/shared/ingestevent.js +0 -86
- package/dist/sdk/models/shared/ingestionresponse.d.ts +0 -13
- package/dist/sdk/models/shared/ingestionresponse.js +0 -54
- package/dist/sdk/models/shared/ingestrequestbody.d.ts +0 -5
- package/dist/sdk/models/shared/ingestrequestbody.js +0 -47
- package/dist/sdk/models/shared/invoice.d.ts +0 -138
- package/dist/sdk/models/shared/invoice.js +0 -329
- package/dist/sdk/models/shared/invoicelineitem.d.ts +0 -49
- package/dist/sdk/models/shared/invoicelineitem.js +0 -134
- package/dist/sdk/models/shared/invoicelineitemparams.d.ts +0 -26
- package/dist/sdk/models/shared/invoicelineitemparams.js +0 -90
- package/dist/sdk/models/shared/invoiceminified.d.ts +0 -7
- package/dist/sdk/models/shared/invoiceminified.js +0 -45
- package/dist/sdk/models/shared/invoices.d.ts +0 -7
- package/dist/sdk/models/shared/invoices.js +0 -54
- package/dist/sdk/models/shared/item.d.ts +0 -14
- package/dist/sdk/models/shared/item.js +0 -72
- package/dist/sdk/models/shared/itemexternalconnection.d.ts +0 -5
- package/dist/sdk/models/shared/itemexternalconnection.js +0 -50
- package/dist/sdk/models/shared/items.d.ts +0 -7
- package/dist/sdk/models/shared/items.js +0 -54
- package/dist/sdk/models/shared/markaspaidrequestparams.d.ts +0 -16
- package/dist/sdk/models/shared/markaspaidrequestparams.js +0 -61
- package/dist/sdk/models/shared/maximum.d.ts +0 -11
- package/dist/sdk/models/shared/maximum.js +0 -50
- package/dist/sdk/models/shared/maximuminterval.d.ts +0 -23
- package/dist/sdk/models/shared/maximuminterval.js +0 -73
- package/dist/sdk/models/shared/minimum.d.ts +0 -11
- package/dist/sdk/models/shared/minimum.js +0 -50
- package/dist/sdk/models/shared/minimuminterval.d.ts +0 -23
- package/dist/sdk/models/shared/minimuminterval.js +0 -73
- package/dist/sdk/models/shared/newaccountingsyncconfiguration.d.ts +0 -6
- package/dist/sdk/models/shared/newaccountingsyncconfiguration.js +0 -52
- package/dist/sdk/models/shared/newbackfill.d.ts +0 -27
- package/dist/sdk/models/shared/newbackfill.js +0 -82
- package/dist/sdk/models/shared/newbillablemetric.d.ts +0 -28
- package/dist/sdk/models/shared/newbillablemetric.js +0 -77
- package/dist/sdk/models/shared/newcoupon.d.ts +0 -18
- package/dist/sdk/models/shared/newcoupon.js +0 -69
- package/dist/sdk/models/shared/newcustomer.d.ts +0 -68
- package/dist/sdk/models/shared/newcustomer.js +0 -152
- package/dist/sdk/models/shared/newcustomerbalancetransaction.d.ts +0 -13
- package/dist/sdk/models/shared/newcustomerbalancetransaction.js +0 -60
- package/dist/sdk/models/shared/newplan.d.ts +0 -26
- package/dist/sdk/models/shared/newplan.js +0 -93
- package/dist/sdk/models/shared/newreportingconfiguration.d.ts +0 -4
- package/dist/sdk/models/shared/newreportingconfiguration.js +0 -45
- package/dist/sdk/models/shared/newsubscription.d.ts +0 -54
- package/dist/sdk/models/shared/newsubscription.js +0 -187
- package/dist/sdk/models/shared/paginationmetadata.d.ts +0 -5
- package/dist/sdk/models/shared/paginationmetadata.js +0 -50
- package/dist/sdk/models/shared/perpricecost.d.ts +0 -224
- package/dist/sdk/models/shared/perpricecost.js +0 -67
- package/dist/sdk/models/shared/phaseoverride.d.ts +0 -17
- package/dist/sdk/models/shared/phaseoverride.js +0 -62
- package/dist/sdk/models/shared/pingresponse.d.ts +0 -4
- package/dist/sdk/models/shared/pingresponse.js +0 -45
- package/dist/sdk/models/shared/plan.d.ts +0 -66
- package/dist/sdk/models/shared/plan.js +0 -188
- package/dist/sdk/models/shared/planminified.d.ts +0 -9
- package/dist/sdk/models/shared/planminified.js +0 -55
- package/dist/sdk/models/shared/planphase.d.ts +0 -28
- package/dist/sdk/models/shared/planphase.js +0 -106
- package/dist/sdk/models/shared/plans.d.ts +0 -7
- package/dist/sdk/models/shared/plans.js +0 -54
- package/dist/sdk/models/shared/pricegroup.d.ts +0 -17
- package/dist/sdk/models/shared/pricegroup.js +0 -65
- package/dist/sdk/models/shared/priceinterval.d.ts +0 -239
- package/dist/sdk/models/shared/priceinterval.js +0 -104
- package/dist/sdk/models/shared/priceintervalfixedfeequantitytransitionparams.d.ts +0 -11
- package/dist/sdk/models/shared/priceintervalfixedfeequantitytransitionparams.js +0 -54
- package/dist/sdk/models/shared/prices.d.ts +0 -6
- package/dist/sdk/models/shared/prices.js +0 -52
- package/dist/sdk/models/shared/product.d.ts +0 -6
- package/dist/sdk/models/shared/product.js +0 -59
- package/dist/sdk/models/shared/reportingconfiguration.d.ts +0 -4
- package/dist/sdk/models/shared/reportingconfiguration.js +0 -45
- package/dist/sdk/models/shared/security.d.ts +0 -4
- package/dist/sdk/models/shared/security.js +0 -45
- package/dist/sdk/models/shared/subscription.d.ts +0 -128
- package/dist/sdk/models/shared/subscription.js +0 -226
- package/dist/sdk/models/shared/subscriptioncosts.d.ts +0 -5
- package/dist/sdk/models/shared/subscriptioncosts.js +0 -47
- package/dist/sdk/models/shared/subscriptionminified.d.ts +0 -4
- package/dist/sdk/models/shared/subscriptionminified.js +0 -45
- package/dist/sdk/models/shared/subscriptionplanchange.d.ts +0 -59
- package/dist/sdk/models/shared/subscriptionplanchange.js +0 -126
- package/dist/sdk/models/shared/subscriptions.d.ts +0 -7
- package/dist/sdk/models/shared/subscriptions.js +0 -54
- package/dist/sdk/models/shared/subscriptionscheduleitem.d.ts +0 -7
- package/dist/sdk/models/shared/subscriptionscheduleitem.js +0 -65
- package/dist/sdk/models/shared/subscriptionscheduleitems.d.ts +0 -7
- package/dist/sdk/models/shared/subscriptionscheduleitems.js +0 -54
- package/dist/sdk/models/shared/subscriptiontrialinfo.d.ts +0 -4
- package/dist/sdk/models/shared/subscriptiontrialinfo.js +0 -49
- package/dist/sdk/models/shared/taxamount.d.ts +0 -15
- package/dist/sdk/models/shared/taxamount.js +0 -55
- package/dist/sdk/models/shared/trialconfig.d.ts +0 -8
- package/dist/sdk/models/shared/trialconfig.js +0 -54
- package/dist/sdk/models/shared/triggersubscriptionphaseparams.d.ts +0 -8
- package/dist/sdk/models/shared/triggersubscriptionphaseparams.js +0 -51
- package/dist/sdk/models/shared/unschedulefixedfeequantitychangeparams.d.ts +0 -7
- package/dist/sdk/models/shared/unschedulefixedfeequantitychangeparams.js +0 -45
- package/dist/sdk/models/shared/upcominginvoice.d.ts +0 -130
- package/dist/sdk/models/shared/upcominginvoice.js +0 -321
- package/dist/sdk/models/shared/updateevent.d.ts +0 -28
- package/dist/sdk/models/shared/updateevent.js +0 -81
- package/dist/sdk/models/shared/validationerror.d.ts +0 -11
- package/dist/sdk/models/shared/validationerror.js +0 -50
- package/dist/sdk/plan.d.ts +0 -90
- package/dist/sdk/plan.js +0 -764
- package/dist/sdk/price.d.ts +0 -246
- package/dist/sdk/price.js +0 -715
- package/dist/sdk/priceinterval.d.ts +0 -66
- package/dist/sdk/priceinterval.js +0 -263
- package/dist/sdk/sdk.d.ts +0 -389
- package/dist/sdk/sdk.js +0 -93
- package/dist/sdk/subscription.d.ts +0 -769
- package/dist/sdk/subscription.js +0 -2116
- package/dist/sdk/types/index.d.ts +0 -1
- package/dist/sdk/types/index.js +0 -20
- package/dist/sdk/types/rfcdate.d.ts +0 -9
- package/dist/sdk/types/rfcdate.js +0 -59
- package/docs/models/errors/fivehundrederror.md +0 -12
- package/docs/models/errors/fivehundrederrorheaders.md +0 -7
- package/docs/models/errors/fourhundredandoneerror.md +0 -12
- package/docs/models/errors/fourhundredandoneerrorheaders.md +0 -7
- package/docs/models/errors/fourhundredandtwentynineerror.md +0 -12
- package/docs/models/errors/fourhundredandtwentynineerrorheaders.md +0 -7
- package/docs/models/operations/addeditpriceintervalsrequest.md +0 -9
- package/docs/models/operations/addeditpriceintervalsresponse.md +0 -11
- package/docs/models/operations/amendeventrequest.md +0 -9
- package/docs/models/operations/amendeventresponse.md +0 -11
- package/docs/models/operations/amendusageexternalcustomeridrequest.md +0 -11
- package/docs/models/operations/amendusageexternalcustomeridresponse.md +0 -11
- package/docs/models/operations/amendusagerequest.md +0 -11
- package/docs/models/operations/amendusageresponse.md +0 -11
- package/docs/models/operations/archivecouponrequest.md +0 -8
- package/docs/models/operations/archivecouponresponse.md +0 -11
- package/docs/models/operations/cancelsubscriptionrequest.md +0 -9
- package/docs/models/operations/cancelsubscriptionresponse.md +0 -11
- package/docs/models/operations/closebackfillrequest.md +0 -8
- package/docs/models/operations/closebackfillresponse.md +0 -11
- package/docs/models/operations/createbackfillresponse.md +0 -11
- package/docs/models/operations/createcouponresponse.md +0 -11
- package/docs/models/operations/createcustomerbalancetransactionrequest.md +0 -9
- package/docs/models/operations/createcustomerbalancetransactionresponse.md +0 -11
- package/docs/models/operations/createcustomerresponse.md +0 -11
- package/docs/models/operations/createinvoicelineitemresponse.md +0 -11
- package/docs/models/operations/createinvoiceresponse.md +0 -11
- package/docs/models/operations/createledgerentryexternalidrequest.md +0 -9
- package/docs/models/operations/createledgerentryexternalidresponse.md +0 -11
- package/docs/models/operations/createledgerentryrequest.md +0 -9
- package/docs/models/operations/createledgerentryresponse.md +0 -11
- package/docs/models/operations/createmetricresponse.md +0 -11
- package/docs/models/operations/createplanresponse.md +0 -11
- package/docs/models/operations/createpriceresponse.md +0 -11
- package/docs/models/operations/createsubscriptionresponse.md +0 -11
- package/docs/models/operations/deletecustomerrequest.md +0 -8
- package/docs/models/operations/deletecustomerresponse.md +0 -11
- package/docs/models/operations/deprecateeventrequest.md +0 -8
- package/docs/models/operations/deprecateeventresponse.md +0 -11
- package/docs/models/operations/fetchbackfillrequest.md +0 -8
- package/docs/models/operations/fetchbackfillresponse.md +0 -11
- package/docs/models/operations/fetchcouponrequest.md +0 -8
- package/docs/models/operations/fetchcouponresponse.md +0 -11
- package/docs/models/operations/fetchcreditnoterequest.md +0 -8
- package/docs/models/operations/fetchcreditnoteresponse.md +0 -11
- package/docs/models/operations/fetchcustomercostsexternalidrequest.md +0 -12
- package/docs/models/operations/fetchcustomercostsexternalidresponse.md +0 -11
- package/docs/models/operations/fetchcustomercostsexternalidviewmodeviewmode.md +0 -11
- package/docs/models/operations/fetchcustomercostsrequest.md +0 -12
- package/docs/models/operations/fetchcustomercostsresponse.md +0 -11
- package/docs/models/operations/fetchcustomercostsviewmodeviewmode.md +0 -11
- package/docs/models/operations/fetchcustomercreditsexternalidrequest.md +0 -10
- package/docs/models/operations/fetchcustomercreditsexternalidresponse.md +0 -11
- package/docs/models/operations/fetchcustomercreditsledgerentrystatusentrystatus.md +0 -9
- package/docs/models/operations/fetchcustomercreditsledgerentrytypeentrytype.md +0 -14
- package/docs/models/operations/fetchcustomercreditsledgerexternalidentrystatusentrystatus.md +0 -9
- package/docs/models/operations/fetchcustomercreditsledgerexternalidentrytypeentrytype.md +0 -14
- package/docs/models/operations/fetchcustomercreditsledgerexternalidrequest.md +0 -18
- package/docs/models/operations/fetchcustomercreditsledgerexternalidresponse.md +0 -11
- package/docs/models/operations/fetchcustomercreditsledgerrequest.md +0 -18
- package/docs/models/operations/fetchcustomercreditsledgerresponse.md +0 -11
- package/docs/models/operations/fetchcustomercreditsrequest.md +0 -10
- package/docs/models/operations/fetchcustomercreditsresponse.md +0 -11
- package/docs/models/operations/fetchcustomerexternalidrequest.md +0 -8
- package/docs/models/operations/fetchcustomerexternalidresponse.md +0 -11
- package/docs/models/operations/fetchcustomerrequest.md +0 -8
- package/docs/models/operations/fetchcustomerresponse.md +0 -11
- package/docs/models/operations/fetchinvoicerequest.md +0 -8
- package/docs/models/operations/fetchinvoiceresponse.md +0 -11
- package/docs/models/operations/fetchitemrequest.md +0 -8
- package/docs/models/operations/fetchitemresponse.md +0 -11
- package/docs/models/operations/fetchmetricrequest.md +0 -8
- package/docs/models/operations/fetchmetricresponse.md +0 -11
- package/docs/models/operations/fetchplanexternalidrequest.md +0 -8
- package/docs/models/operations/fetchplanexternalidresponse.md +0 -11
- package/docs/models/operations/fetchplanrequest.md +0 -8
- package/docs/models/operations/fetchplanresponse.md +0 -11
- package/docs/models/operations/fetchpriceexternalidrequest.md +0 -8
- package/docs/models/operations/fetchpriceexternalidresponse.md +0 -11
- package/docs/models/operations/fetchpricerequest.md +0 -8
- package/docs/models/operations/fetchpriceresponse.md +0 -11
- package/docs/models/operations/fetchsubscriptioncostsrequest.md +0 -12
- package/docs/models/operations/fetchsubscriptioncostsresponse.md +0 -11
- package/docs/models/operations/fetchsubscriptioncostsviewmodeviewmode.md +0 -11
- package/docs/models/operations/fetchsubscriptionrequest.md +0 -8
- package/docs/models/operations/fetchsubscriptionresponse.md +0 -11
- package/docs/models/operations/fetchsubscriptionschedulerequest.md +0 -14
- package/docs/models/operations/fetchsubscriptionscheduleresponse.md +0 -11
- package/docs/models/operations/fetchsubscriptionusagegranularitygranularity.md +0 -10
- package/docs/models/operations/fetchsubscriptionusagerequest.md +0 -20
- package/docs/models/operations/fetchsubscriptionusageresponse.md +0 -11
- package/docs/models/operations/fetchsubscriptionusageviewmodeviewmode.md +0 -11
- package/docs/models/operations/fetchupcominginvoicerequest.md +0 -8
- package/docs/models/operations/fetchupcominginvoiceresponse.md +0 -11
- package/docs/models/operations/ingestrequest.md +0 -10
- package/docs/models/operations/ingestresponse.md +0 -11
- package/docs/models/operations/issueinvoicerequest.md +0 -8
- package/docs/models/operations/issueinvoiceresponse.md +0 -11
- package/docs/models/operations/listbackfillsrequest.md +0 -9
- package/docs/models/operations/listbackfillsresponse.md +0 -11
- package/docs/models/operations/listbalancetransactionsrequest.md +0 -14
- package/docs/models/operations/listbalancetransactionsresponse.md +0 -11
- package/docs/models/operations/listcouponsrequest.md +0 -11
- package/docs/models/operations/listcouponsresponse.md +0 -11
- package/docs/models/operations/listcouponsubscriptionsrequest.md +0 -10
- package/docs/models/operations/listcouponsubscriptionsresponse.md +0 -11
- package/docs/models/operations/listcreditnotesrequest.md +0 -9
- package/docs/models/operations/listcreditnotesresponse.md +0 -11
- package/docs/models/operations/listcustomersrequest.md +0 -13
- package/docs/models/operations/listcustomersresponse.md +0 -11
- package/docs/models/operations/listinvoicesdatetypedatetype.md +0 -9
- package/docs/models/operations/listinvoicesrequest.md +0 -27
- package/docs/models/operations/listinvoicesresponse.md +0 -11
- package/docs/models/operations/listinvoicesstatus.md +0 -12
- package/docs/models/operations/listinvoicesstatusstatus.md +0 -12
- package/docs/models/operations/listitemsrequest.md +0 -9
- package/docs/models/operations/listitemsresponse.md +0 -11
- package/docs/models/operations/listmetricsrequest.md +0 -13
- package/docs/models/operations/listmetricsresponse.md +0 -11
- package/docs/models/operations/listplansrequest.md +0 -14
- package/docs/models/operations/listplansresponse.md +0 -11
- package/docs/models/operations/listplansstatusstatus.md +0 -12
- package/docs/models/operations/listpricesrequest.md +0 -9
- package/docs/models/operations/listpricesresponse.md +0 -11
- package/docs/models/operations/listsubscriptionsrequest.md +0 -16
- package/docs/models/operations/listsubscriptionsresponse.md +0 -11
- package/docs/models/operations/listsubscriptionsstatusstatus.md +0 -10
- package/docs/models/operations/markinvoiceaspaidrequest.md +0 -9
- package/docs/models/operations/markinvoiceaspaidresponse.md +0 -11
- package/docs/models/operations/pingresponse.md +0 -11
- package/docs/models/operations/revertbackfillrequest.md +0 -8
- package/docs/models/operations/revertbackfillresponse.md +0 -11
- package/docs/models/operations/scheduleplanchangerequest.md +0 -9
- package/docs/models/operations/scheduleplanchangeresponse.md +0 -11
- package/docs/models/operations/searcheventsrequest.md +0 -14
- package/docs/models/operations/searcheventsresponse.md +0 -11
- package/docs/models/operations/triggerphaserequest.md +0 -9
- package/docs/models/operations/triggerphaseresponse.md +0 -11
- package/docs/models/operations/unschedulecancellationrequest.md +0 -8
- package/docs/models/operations/unschedulecancellationresponse.md +0 -11
- package/docs/models/operations/unschedulefixedfeequantityrequest.md +0 -9
- package/docs/models/operations/unschedulefixedfeequantityresponse.md +0 -11
- package/docs/models/operations/unscheduleplanchangerequest.md +0 -8
- package/docs/models/operations/unscheduleplanchangeresponse.md +0 -11
- package/docs/models/operations/updatecustomerexternalidrequest.md +0 -9
- package/docs/models/operations/updatecustomerexternalidresponse.md +0 -11
- package/docs/models/operations/updatecustomerrequest.md +0 -9
- package/docs/models/operations/updatecustomerresponse.md +0 -11
- package/docs/models/operations/updatefixedfeequantityrequest.md +0 -9
- package/docs/models/operations/updatefixedfeequantityresponse.md +0 -11
- package/docs/models/operations/updateplanexternalrequest.md +0 -9
- package/docs/models/operations/updateplanexternalresponse.md +0 -11
- package/docs/models/operations/updateplanrequest.md +0 -9
- package/docs/models/operations/updateplanresponse.md +0 -11
- package/docs/models/operations/voidinvoicerequest.md +0 -8
- package/docs/models/operations/voidinvoiceresponse.md +0 -11
- package/docs/models/shared/accountingprovider.md +0 -9
- package/docs/models/shared/accountingproviderconfig.md +0 -9
- package/docs/models/shared/accountingproviderprovidertype.md +0 -9
- package/docs/models/shared/accountingsyncconfiguration.md +0 -9
- package/docs/models/shared/addeditpriceintervalparams.md +0 -9
- package/docs/models/shared/addpriceintervalparams.md +0 -16
- package/docs/models/shared/address.md +0 -13
- package/docs/models/shared/addressinput.md +0 -13
- package/docs/models/shared/aggregatedcost.md +0 -12
- package/docs/models/shared/amendedevent.md +0 -12
- package/docs/models/shared/amendedeventproperties.md +0 -9
- package/docs/models/shared/amendedusage.md +0 -9
- package/docs/models/shared/amendeventresult.md +0 -8
- package/docs/models/shared/autocollection.md +0 -10
- package/docs/models/shared/backfill.md +0 -17
- package/docs/models/shared/backfills.md +0 -9
- package/docs/models/shared/backfillstatus.md +0 -13
- package/docs/models/shared/billablemetric.md +0 -16
- package/docs/models/shared/billablemetrics.md +0 -9
- package/docs/models/shared/billablemetricstatus.md +0 -10
- package/docs/models/shared/billingcyclealignment.md +0 -12
- package/docs/models/shared/cancelsubscriptionparams.md +0 -9
- package/docs/models/shared/cancelsubscriptionparamscanceloption.md +0 -12
- package/docs/models/shared/changeoption.md +0 -10
- package/docs/models/shared/coupon.md +0 -21
- package/docs/models/shared/coupondiscount.md +0 -7
- package/docs/models/shared/couponredemption.md +0 -10
- package/docs/models/shared/coupons.md +0 -9
- package/docs/models/shared/createinvoicelineitemparams.md +0 -13
- package/docs/models/shared/createoneoffinvoiceparams.md +0 -15
- package/docs/models/shared/creditledgerentries.md +0 -9
- package/docs/models/shared/creditnote.md +0 -26
- package/docs/models/shared/creditnotediscounts.md +0 -7
- package/docs/models/shared/creditnotelineitem.md +0 -15
- package/docs/models/shared/creditnotelineitemdiscounts.md +0 -7
- package/docs/models/shared/creditnotelineitemtaxamounts.md +0 -7
- package/docs/models/shared/creditnotemaximumamountadjustment.md +0 -9
- package/docs/models/shared/creditnoteminified.md +0 -8
- package/docs/models/shared/creditnotereason.md +0 -11
- package/docs/models/shared/creditnotes.md +0 -9
- package/docs/models/shared/creditnotesublineitem.md +0 -10
- package/docs/models/shared/creditnotesummary.md +0 -13
- package/docs/models/shared/creditnotetype.md +0 -9
- package/docs/models/shared/customer.md +0 -42
- package/docs/models/shared/customerbalancetransaction.md +0 -17
- package/docs/models/shared/customerbalancetransactionaction.md +0 -10
- package/docs/models/shared/customerbalancetransactions.md +0 -9
- package/docs/models/shared/customerbalancetransactiontype.md +0 -9
- package/docs/models/shared/customercosts.md +0 -8
- package/docs/models/shared/customercreditbalance.md +0 -11
- package/docs/models/shared/customercreditbalances.md +0 -9
- package/docs/models/shared/customerminified.md +0 -9
- package/docs/models/shared/customerpaymentprovider.md +0 -14
- package/docs/models/shared/customers.md +0 -9
- package/docs/models/shared/customertaxid.md +0 -10
- package/docs/models/shared/debug.md +0 -11
- package/docs/models/shared/deletecustomerresponse.md +0 -7
- package/docs/models/shared/deprecatedeventresult.md +0 -8
- package/docs/models/shared/discount.md +0 -15
- package/docs/models/shared/discountdiscounttype.md +0 -11
- package/docs/models/shared/editcustomer.md +0 -22
- package/docs/models/shared/editcustomermetadata.md +0 -9
- package/docs/models/shared/editcustomerpaymentprovider.md +0 -16
- package/docs/models/shared/editplan.md +0 -9
- package/docs/models/shared/editplanmetadata.md +0 -7
- package/docs/models/shared/editpriceintervalparams.md +0 -11
- package/docs/models/shared/event.md +0 -17
- package/docs/models/shared/eventproperties.md +0 -9
- package/docs/models/shared/events.md +0 -9
- package/docs/models/shared/eventsearchcriteria.md +0 -9
- package/docs/models/shared/fixedfeequantitychange.md +0 -11
- package/docs/models/shared/fixedfeequantitychangechangeoption.md +0 -12
- package/docs/models/shared/fixedfeequantityscheduleentry.md +0 -11
- package/docs/models/shared/fixedfeequantitytransition.md +0 -10
- package/docs/models/shared/ingestevent.md +0 -13
- package/docs/models/shared/ingesteventproperties.md +0 -9
- package/docs/models/shared/ingestionresponse.md +0 -9
- package/docs/models/shared/ingestrequestbody.md +0 -8
- package/docs/models/shared/invoice.md +0 -51
- package/docs/models/shared/invoicelineitem.md +0 -23
- package/docs/models/shared/invoicelineitemparams.md +0 -14
- package/docs/models/shared/invoicelineitemparamsmodeltype.md +0 -8
- package/docs/models/shared/invoicemetadata.md +0 -7
- package/docs/models/shared/invoiceminified.md +0 -8
- package/docs/models/shared/invoices.md +0 -9
- package/docs/models/shared/invoicestatus.md +0 -12
- package/docs/models/shared/item.md +0 -14
- package/docs/models/shared/itemexternalconnection.md +0 -9
- package/docs/models/shared/items.md +0 -9
- package/docs/models/shared/markaspaidrequestparams.md +0 -10
- package/docs/models/shared/maximum.md +0 -9
- package/docs/models/shared/maximuminterval.md +0 -12
- package/docs/models/shared/minimum.md +0 -9
- package/docs/models/shared/minimuminterval.md +0 -12
- package/docs/models/shared/newaccountingsyncconfiguration.md +0 -9
- package/docs/models/shared/newbackfill.md +0 -13
- package/docs/models/shared/newbillablemetric.md +0 -12
- package/docs/models/shared/newbillablemetricmetadata.md +0 -9
- package/docs/models/shared/newcoupon.md +0 -11
- package/docs/models/shared/newcoupondiscount.md +0 -7
- package/docs/models/shared/newcustomer.md +0 -23
- package/docs/models/shared/newcustomerbalancetransaction.md +0 -10
- package/docs/models/shared/newcustomerbalancetransactiontype.md +0 -9
- package/docs/models/shared/newcustomermetadata.md +0 -9
- package/docs/models/shared/newcustomerpaymentprovider.md +0 -14
- package/docs/models/shared/newplan.md +0 -14
- package/docs/models/shared/newplanmetadata.md +0 -7
- package/docs/models/shared/newplanprices.md +0 -7
- package/docs/models/shared/newreportingconfiguration.md +0 -8
- package/docs/models/shared/newsubscription.md +0 -31
- package/docs/models/shared/newsubscriptionexternalmarketplace.md +0 -10
- package/docs/models/shared/newsubscriptionmetadata.md +0 -7
- package/docs/models/shared/paginationmetadata.md +0 -9
- package/docs/models/shared/perpricecost.md +0 -12
- package/docs/models/shared/phaseoverride.md +0 -11
- package/docs/models/shared/pingresponse.md +0 -8
- package/docs/models/shared/plan.md +0 -33
- package/docs/models/shared/planmetadata.md +0 -7
- package/docs/models/shared/planminified.md +0 -10
- package/docs/models/shared/planphase.md +0 -18
- package/docs/models/shared/planphasedurationunit.md +0 -11
- package/docs/models/shared/plans.md +0 -9
- package/docs/models/shared/planstatus.md +0 -10
- package/docs/models/shared/pricegroup.md +0 -12
- package/docs/models/shared/priceinterval.md +0 -18
- package/docs/models/shared/priceintervalfixedfeequantitytransitionparams.md +0 -9
- package/docs/models/shared/prices.md +0 -9
- package/docs/models/shared/product.md +0 -10
- package/docs/models/shared/reportingconfiguration.md +0 -8
- package/docs/models/shared/security.md +0 -8
- package/docs/models/shared/subscription.md +0 -44
- package/docs/models/shared/subscriptioncosts.md +0 -8
- package/docs/models/shared/subscriptionmetadata.md +0 -9
- package/docs/models/shared/subscriptionminified.md +0 -8
- package/docs/models/shared/subscriptionplanchange.md +0 -23
- package/docs/models/shared/subscriptions.md +0 -9
- package/docs/models/shared/subscriptionscheduleitem.md +0 -10
- package/docs/models/shared/subscriptionscheduleitems.md +0 -9
- package/docs/models/shared/subscriptionstatus.md +0 -10
- package/docs/models/shared/subscriptiontrialinfo.md +0 -8
- package/docs/models/shared/taxamount.md +0 -10
- package/docs/models/shared/trialconfig.md +0 -9
- package/docs/models/shared/trialconfigtrialperiodunit.md +0 -8
- package/docs/models/shared/triggersubscriptionphaseparams.md +0 -8
- package/docs/models/shared/unschedulefixedfeequantitychangeparams.md +0 -8
- package/docs/models/shared/upcominginvoice.md +0 -46
- package/docs/models/shared/upcominginvoicemetadata.md +0 -7
- package/docs/models/shared/upcominginvoicestatus.md +0 -12
- package/docs/models/shared/updateevent.md +0 -12
- package/docs/models/shared/updateeventproperties.md +0 -9
- package/docs/models/shared/validationerror.md +0 -9
- package/docs/sdks/availability/README.md +0 -46
- package/docs/sdks/coupon/README.md +0 -235
- package/docs/sdks/credit/README.md +0 -565
- package/docs/sdks/creditnote/README.md +0 -94
- package/docs/sdks/customer/README.md +0 -1080
- package/docs/sdks/event/README.md +0 -674
- package/docs/sdks/invoice/README.md +0 -388
- package/docs/sdks/item/README.md +0 -92
- package/docs/sdks/metric/README.md +0 -136
- package/docs/sdks/orb/README.md +0 -21
- package/docs/sdks/plan/README.md +0 -298
- package/docs/sdks/price/README.md +0 -375
- package/docs/sdks/priceinterval/README.md +0 -137
- package/docs/sdks/subscription/README.md +0 -1306
- package/docs/types/rfcdate.md +0 -11
|
@@ -1,769 +0,0 @@
|
|
|
1
|
-
import * as operations from "./models/operations";
|
|
2
|
-
import * as shared from "./models/shared";
|
|
3
|
-
import { SDKConfiguration } from "./sdk";
|
|
4
|
-
import { AxiosRequestConfig } from "axios";
|
|
5
|
-
/**
|
|
6
|
-
* A [subscription](../guides/core-concepts.mdx#subscription) represents the purchase of a plan by a customer.
|
|
7
|
-
*
|
|
8
|
-
* @remarks
|
|
9
|
-
*
|
|
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.
|
|
12
|
-
*
|
|
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).
|
|
16
|
-
*
|
|
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.
|
|
21
|
-
*/
|
|
22
|
-
export declare class Subscription {
|
|
23
|
-
private sdkConfiguration;
|
|
24
|
-
constructor(sdkConfig: SDKConfiguration);
|
|
25
|
-
/**
|
|
26
|
-
* Cancel subscription
|
|
27
|
-
*
|
|
28
|
-
* @remarks
|
|
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.
|
|
31
|
-
*
|
|
32
|
-
* The body parameter `cancel_option` determines the cancellation behavior. Orb supports three cancellation options:
|
|
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.
|
|
47
|
-
*
|
|
48
|
-
* - `immediate`: ends the subscription immediately, setting the `end_date` to the current time:
|
|
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.
|
|
65
|
-
*
|
|
66
|
-
* ## Backdated cancellations
|
|
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).
|
|
72
|
-
*/
|
|
73
|
-
cancel(subscriptionId: string, cancelSubscriptionParams?: shared.CancelSubscriptionParams, config?: AxiosRequestConfig): Promise<operations.CancelSubscriptionResponse>;
|
|
74
|
-
/**
|
|
75
|
-
* Create subscription
|
|
76
|
-
*
|
|
77
|
-
* @remarks
|
|
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.
|
|
80
|
-
*
|
|
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.
|
|
83
|
-
*
|
|
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).
|
|
86
|
-
*
|
|
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.
|
|
91
|
-
*
|
|
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.
|
|
94
|
-
*
|
|
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.
|
|
98
|
-
*
|
|
99
|
-
* ## Price overrides
|
|
100
|
-
*
|
|
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.
|
|
105
|
-
*
|
|
106
|
-
*
|
|
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
|
|
111
|
-
*
|
|
112
|
-
* ### Request format for price overrides
|
|
113
|
-
*
|
|
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.
|
|
116
|
-
*
|
|
117
|
-
* ### Unit pricing
|
|
118
|
-
*
|
|
119
|
-
* With unit pricing, each unit costs a fixed amount.
|
|
120
|
-
*
|
|
121
|
-
* ```json
|
|
122
|
-
* {
|
|
123
|
-
* ...
|
|
124
|
-
* "id": "price_id",
|
|
125
|
-
* "model_type": "unit",
|
|
126
|
-
* "unit_config": {
|
|
127
|
-
* "unit_amount": "0.50"
|
|
128
|
-
* }
|
|
129
|
-
* ...
|
|
130
|
-
* }
|
|
131
|
-
* ```
|
|
132
|
-
*
|
|
133
|
-
* ### Tiered pricing
|
|
134
|
-
*
|
|
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`.
|
|
139
|
-
*
|
|
140
|
-
* ```json
|
|
141
|
-
* {
|
|
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
|
-
* ...
|
|
160
|
-
* }
|
|
161
|
-
* ```
|
|
162
|
-
*
|
|
163
|
-
* ### Bulk pricing
|
|
164
|
-
*
|
|
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`.
|
|
169
|
-
*
|
|
170
|
-
* ```json
|
|
171
|
-
* {
|
|
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
|
-
* ...
|
|
188
|
-
* }
|
|
189
|
-
* ```
|
|
190
|
-
* ### Package pricing
|
|
191
|
-
*
|
|
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.
|
|
194
|
-
*
|
|
195
|
-
* ```json
|
|
196
|
-
* {
|
|
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
|
-
* ```
|
|
207
|
-
* ### BPS pricing
|
|
208
|
-
*
|
|
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.
|
|
212
|
-
*
|
|
213
|
-
* ```json
|
|
214
|
-
* {
|
|
215
|
-
* ...
|
|
216
|
-
* "id": "price_id"
|
|
217
|
-
* "model_type": "bps",
|
|
218
|
-
* "bps_config": {
|
|
219
|
-
* "bps": 125,
|
|
220
|
-
* "per_event_cap": "11.00"
|
|
221
|
-
* }
|
|
222
|
-
* ...
|
|
223
|
-
* }
|
|
224
|
-
* ```
|
|
225
|
-
* ### Bulk BPS pricing
|
|
226
|
-
*
|
|
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.
|
|
231
|
-
*
|
|
232
|
-
* ```json
|
|
233
|
-
* {
|
|
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
|
-
* }
|
|
255
|
-
* ```
|
|
256
|
-
* ### Tiered BPS pricing
|
|
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.
|
|
262
|
-
*
|
|
263
|
-
* ```json
|
|
264
|
-
* {
|
|
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
|
-
* }
|
|
286
|
-
* ```
|
|
287
|
-
* ### Matrix pricing
|
|
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`.
|
|
293
|
-
* ```json
|
|
294
|
-
* ...
|
|
295
|
-
* "model_type": "matrix"
|
|
296
|
-
* "matrix_config": {
|
|
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
|
-
* ]
|
|
312
|
-
* }
|
|
313
|
-
* ...
|
|
314
|
-
* ```
|
|
315
|
-
*
|
|
316
|
-
* ### Fixed fees
|
|
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.
|
|
319
|
-
*
|
|
320
|
-
* ```json
|
|
321
|
-
* {
|
|
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
|
-
* ...
|
|
330
|
-
* }
|
|
331
|
-
* ```
|
|
332
|
-
*
|
|
333
|
-
* ## Maximums and Minimums
|
|
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.
|
|
339
|
-
*
|
|
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.
|
|
343
|
-
*
|
|
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.
|
|
347
|
-
*
|
|
348
|
-
*
|
|
349
|
-
* ### Minimum override example
|
|
350
|
-
*
|
|
351
|
-
* Price minimum override example:
|
|
352
|
-
*
|
|
353
|
-
* ```json
|
|
354
|
-
* {
|
|
355
|
-
* ...
|
|
356
|
-
* "id": "price_id",
|
|
357
|
-
* "model_type": "unit",
|
|
358
|
-
* "unit_config": {
|
|
359
|
-
* "unit_amount": "0.50"
|
|
360
|
-
* },
|
|
361
|
-
* "minimum_amount": "100.00"
|
|
362
|
-
* ...
|
|
363
|
-
* }
|
|
364
|
-
* ```
|
|
365
|
-
*
|
|
366
|
-
*
|
|
367
|
-
* Plan minimum override example:
|
|
368
|
-
*
|
|
369
|
-
* ```json
|
|
370
|
-
* {
|
|
371
|
-
* "customer_id": "customer_id",
|
|
372
|
-
* "plan_id": "plan_id",
|
|
373
|
-
* "minimum_amount": "1000.00",
|
|
374
|
-
* "price_overrides": [ ... ]
|
|
375
|
-
* ...
|
|
376
|
-
* }
|
|
377
|
-
* ```
|
|
378
|
-
*
|
|
379
|
-
* Removing an existing minimum example
|
|
380
|
-
* ```json
|
|
381
|
-
* {
|
|
382
|
-
* ...
|
|
383
|
-
* "id": "price_id",
|
|
384
|
-
* "model_type": "unit",
|
|
385
|
-
* "unit_config": {
|
|
386
|
-
* "unit_amount": "0.50"
|
|
387
|
-
* },
|
|
388
|
-
* "minimum_amount": null
|
|
389
|
-
* ...
|
|
390
|
-
* }
|
|
391
|
-
* ```
|
|
392
|
-
*
|
|
393
|
-
* Using the plan's minimum example
|
|
394
|
-
* ```json
|
|
395
|
-
* {
|
|
396
|
-
* ...
|
|
397
|
-
* "id": "price_id",
|
|
398
|
-
* "model_type": "unit",
|
|
399
|
-
* "unit_config": {
|
|
400
|
-
* "unit_amount": "0.50"
|
|
401
|
-
* },
|
|
402
|
-
* ...
|
|
403
|
-
* }
|
|
404
|
-
* ```
|
|
405
|
-
*
|
|
406
|
-
* ## Discounts
|
|
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.
|
|
411
|
-
*
|
|
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.
|
|
414
|
-
* Discount should be a dictionary of the format:
|
|
415
|
-
* ```json
|
|
416
|
-
* {
|
|
417
|
-
* "discount_type": "amount" | "percentage" | "usage",
|
|
418
|
-
* "amount_discount": string,
|
|
419
|
-
* "percentage_discount": string,
|
|
420
|
-
* "usage_discount": string
|
|
421
|
-
* }
|
|
422
|
-
* ```
|
|
423
|
-
* where either `amount_discount`, `percentage_discount`, or `usage_discount` is provided.
|
|
424
|
-
*
|
|
425
|
-
* The `usage` type discount can only be created on individual prices and not on the plan.
|
|
426
|
-
*
|
|
427
|
-
* Price discount example
|
|
428
|
-
* ```json
|
|
429
|
-
* {
|
|
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"},
|
|
437
|
-
* }
|
|
438
|
-
* ```
|
|
439
|
-
*
|
|
440
|
-
* Plan discount example
|
|
441
|
-
* ```json
|
|
442
|
-
* {
|
|
443
|
-
* "customer_id": "customer_id",
|
|
444
|
-
* "plan_id": "plan_id",
|
|
445
|
-
* "discount": {"discount_type": "percentage", "percentage_discount": "12.5"},
|
|
446
|
-
* "price_overrides": [ ... ]
|
|
447
|
-
* ...
|
|
448
|
-
* }
|
|
449
|
-
* ```
|
|
450
|
-
*
|
|
451
|
-
* Removing an existing discount example
|
|
452
|
-
* ```json
|
|
453
|
-
* {
|
|
454
|
-
* "customer_id": "customer_id",
|
|
455
|
-
* "plan_id": "plan_id",
|
|
456
|
-
* "discount": null,
|
|
457
|
-
* "price_overrides": [ ... ]
|
|
458
|
-
* ...
|
|
459
|
-
* }
|
|
460
|
-
* ```
|
|
461
|
-
*
|
|
462
|
-
* Using the plan's discount example
|
|
463
|
-
* ```json
|
|
464
|
-
* {
|
|
465
|
-
* ...
|
|
466
|
-
* "id": "price_id",
|
|
467
|
-
* "model_type": "unit",
|
|
468
|
-
* "unit_config": {
|
|
469
|
-
* "unit_amount": "0.50"
|
|
470
|
-
* },
|
|
471
|
-
* ...
|
|
472
|
-
* }
|
|
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.
|
|
480
|
-
*/
|
|
481
|
-
create(req: shared.NewSubscription, config?: AxiosRequestConfig): Promise<operations.CreateSubscriptionResponse>;
|
|
482
|
-
/**
|
|
483
|
-
* Fetch subscription
|
|
484
|
-
*
|
|
485
|
-
* @remarks
|
|
486
|
-
* This endpoint is used to fetch a [Subscription](../guides/concepts#subscription) given an identifier.
|
|
487
|
-
*/
|
|
488
|
-
fetch(subscriptionId: string, config?: AxiosRequestConfig): Promise<operations.FetchSubscriptionResponse>;
|
|
489
|
-
/**
|
|
490
|
-
* Fetch subscription costs
|
|
491
|
-
*
|
|
492
|
-
* @remarks
|
|
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).
|
|
496
|
-
*
|
|
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).
|
|
500
|
-
*/
|
|
501
|
-
fetchCosts(req: operations.FetchSubscriptionCostsRequest, config?: AxiosRequestConfig): Promise<operations.FetchSubscriptionCostsResponse>;
|
|
502
|
-
/**
|
|
503
|
-
* Fetch subscription schedule
|
|
504
|
-
*
|
|
505
|
-
* @remarks
|
|
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.
|
|
509
|
-
*/
|
|
510
|
-
fetchSchedule(req: operations.FetchSubscriptionScheduleRequest, config?: AxiosRequestConfig): Promise<operations.FetchSubscriptionScheduleResponse>;
|
|
511
|
-
/**
|
|
512
|
-
* Fetch subscription usage
|
|
513
|
-
*
|
|
514
|
-
* @remarks
|
|
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.
|
|
517
|
-
*
|
|
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.
|
|
521
|
-
*
|
|
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).
|
|
527
|
-
*
|
|
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.
|
|
531
|
-
*
|
|
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.
|
|
535
|
-
*
|
|
536
|
-
* ## Custom timeframe
|
|
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)`.
|
|
540
|
-
*
|
|
541
|
-
* Note:
|
|
542
|
-
* - These timestamps must be specified in ISO 8601 format and UTC timezone, e.g. `2022-02-01T05:00:00Z`.
|
|
543
|
-
* - Both parameters must be specified if either is specified.
|
|
544
|
-
*
|
|
545
|
-
* ## Grouping by custom attributes
|
|
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.
|
|
553
|
-
*
|
|
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.
|
|
557
|
-
*
|
|
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.
|
|
560
|
-
*
|
|
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:
|
|
563
|
-
*
|
|
564
|
-
* ```json
|
|
565
|
-
* {
|
|
566
|
-
* "data": [
|
|
567
|
-
* {
|
|
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"
|
|
585
|
-
* },
|
|
586
|
-
* ...
|
|
587
|
-
* ]
|
|
588
|
-
* }
|
|
589
|
-
* ```
|
|
590
|
-
*
|
|
591
|
-
*
|
|
592
|
-
* ## Windowed 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.
|
|
595
|
-
*
|
|
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_.
|
|
598
|
-
*
|
|
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:
|
|
601
|
-
* - `[2022-02-01T05:00:00Z, 2022-02-01T08:00:00Z)`
|
|
602
|
-
* - `[2022-02-01T08:00:00, 2022-02-02T08:00:00Z)`
|
|
603
|
-
* - `[2022-02-02T08:00:00, 2022-02-03T08:00:00Z)`
|
|
604
|
-
* - `[2022-02-03T08:00:00, 2022-02-04T01:00:00Z)`
|
|
605
|
-
*
|
|
606
|
-
* ```json
|
|
607
|
-
* {
|
|
608
|
-
* "data": [
|
|
609
|
-
* {
|
|
610
|
-
* "billable_metric": {
|
|
611
|
-
* "id": "Q8w89wjTtBdejXKsm",
|
|
612
|
-
* "name": "API Requests"
|
|
613
|
-
* },
|
|
614
|
-
* "usage": [
|
|
615
|
-
* {
|
|
616
|
-
* "quantity": 0,
|
|
617
|
-
* "timeframe_end": "2022-02-01T08:00:00+00:00",
|
|
618
|
-
* "timeframe_start": "2022-02-01T05:00:00+00:00"
|
|
619
|
-
* },
|
|
620
|
-
* {
|
|
621
|
-
*
|
|
622
|
-
* "quantity": 0,
|
|
623
|
-
* "timeframe_end": "2022-02-02T08:00:00+00:00",
|
|
624
|
-
* "timeframe_start": "2022-02-01T08:00:00+00:00"
|
|
625
|
-
* },
|
|
626
|
-
* {
|
|
627
|
-
* "quantity": 0,
|
|
628
|
-
* "timeframe_end": "2022-02-03T08:00:00+00:00",
|
|
629
|
-
* "timeframe_start": "2022-02-02T08:00:00+00:00"
|
|
630
|
-
* },
|
|
631
|
-
* {
|
|
632
|
-
* "quantity": 0,
|
|
633
|
-
* "timeframe_end": "2022-02-04T01:00:00+00:00",
|
|
634
|
-
* "timeframe_start": "2022-02-03T08:00:00+00:00"
|
|
635
|
-
* }
|
|
636
|
-
* ],
|
|
637
|
-
* "view_mode": "periodic"
|
|
638
|
-
* },
|
|
639
|
-
* ...
|
|
640
|
-
* ]
|
|
641
|
-
* }
|
|
642
|
-
* ```
|
|
643
|
-
*
|
|
644
|
-
* ## Decomposable vs. non-decomposable metrics
|
|
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.
|
|
648
|
-
*
|
|
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.
|
|
653
|
-
*
|
|
654
|
-
* Accordingly, this endpoint returns treats these two types of metrics differently when `group_by` is specified:
|
|
655
|
-
* - Decomposable metrics can be grouped by any event property.
|
|
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`.
|
|
658
|
-
*
|
|
659
|
-
* ## Matrix prices
|
|
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`.
|
|
663
|
-
*
|
|
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:
|
|
666
|
-
*
|
|
667
|
-
* - `first_dimension_key`: `region`
|
|
668
|
-
* - `first_dimension_value`: `us-east-1`
|
|
669
|
-
* - `second_dimension_key`: `provider`
|
|
670
|
-
* - `second_dimension_value`: `aws`
|
|
671
|
-
*/
|
|
672
|
-
fetchUsage(req: operations.FetchSubscriptionUsageRequest, config?: AxiosRequestConfig): Promise<operations.FetchSubscriptionUsageResponse>;
|
|
673
|
-
/**
|
|
674
|
-
* List subscriptions
|
|
675
|
-
*
|
|
676
|
-
* @remarks
|
|
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).
|
|
680
|
-
*
|
|
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.
|
|
683
|
-
*/
|
|
684
|
-
list(req: operations.ListSubscriptionsRequest, config?: AxiosRequestConfig): Promise<operations.ListSubscriptionsResponse>;
|
|
685
|
-
/**
|
|
686
|
-
* Schedule plan change
|
|
687
|
-
*
|
|
688
|
-
* @remarks
|
|
689
|
-
* This endpoint can be used to change the plan on an existing subscription. It returns the serialized updated
|
|
690
|
-
* subscription object.
|
|
691
|
-
*
|
|
692
|
-
* The body parameter `change_option` determines the timing of the plan change. Orb supports three options:
|
|
693
|
-
* - `end_of_subscription_term`: changes the plan at the end of the existing plan's term.
|
|
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.
|
|
704
|
-
*
|
|
705
|
-
* Note that one of `plan_id` or `external_plan_id` is required in the request body for this operation.
|
|
706
|
-
*
|
|
707
|
-
* ## Price overrides, maximums, and minimums
|
|
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).
|
|
712
|
-
*
|
|
713
|
-
* ## Prorations for in-advance fees
|
|
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).
|
|
717
|
-
*/
|
|
718
|
-
schedulePlanChange(subscriptionId: string, subscriptionPlanChange?: shared.SubscriptionPlanChange, 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(subscriptionId: string, triggerSubscriptionPhaseParams?: shared.TriggerSubscriptionPhaseParams, config?: AxiosRequestConfig): Promise<operations.TriggerPhaseResponse>;
|
|
726
|
-
/**
|
|
727
|
-
* Unschedule subscription cancellation
|
|
728
|
-
*
|
|
729
|
-
* @remarks
|
|
730
|
-
* This endpoint can be used to unschedule any pending cancellations for a subscription.
|
|
731
|
-
*
|
|
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.
|
|
734
|
-
*/
|
|
735
|
-
unscheduleCancellation(subscriptionId: string, 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(subscriptionId: string, unscheduleFixedFeeQuantityChangeParams?: shared.UnscheduleFixedFeeQuantityChangeParams, config?: AxiosRequestConfig): Promise<operations.UnscheduleFixedFeeQuantityResponse>;
|
|
745
|
-
/**
|
|
746
|
-
* Unschedule plan change
|
|
747
|
-
*
|
|
748
|
-
* @remarks
|
|
749
|
-
* This endpoint can be used to unschedule any pending plan changes on an existing subscription.
|
|
750
|
-
*/
|
|
751
|
-
unschedulePlanChange(subscriptionId: string, config?: AxiosRequestConfig): Promise<operations.UnschedulePlanChangeResponse>;
|
|
752
|
-
/**
|
|
753
|
-
* Update price quantity
|
|
754
|
-
*
|
|
755
|
-
* @remarks
|
|
756
|
-
* This endpoint can be used to update the quantity for a fixed fee.
|
|
757
|
-
*
|
|
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.
|
|
761
|
-
*
|
|
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.
|
|
764
|
-
*
|
|
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.
|
|
767
|
-
*/
|
|
768
|
-
updateFixedFeeQuantity(subscriptionId: string, fixedFeeQuantityChange?: shared.FixedFeeQuantityChange, config?: AxiosRequestConfig): Promise<operations.UpdateFixedFeeQuantityResponse>;
|
|
769
|
-
}
|