orb-billing 1.21.0 → 1.23.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 +32 -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 +830 -0
- package/core.js.map +1 -0
- package/core.mjs +799 -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 +1099 -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
|
@@ -0,0 +1,2466 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless.
|
|
2
|
+
|
|
3
|
+
import * as Core from "../../core";
|
|
4
|
+
import { APIResource } from "../../resource";
|
|
5
|
+
import { isRequestOptions } from "../../core";
|
|
6
|
+
import * as PricesAPI from "./prices";
|
|
7
|
+
import * as InvoicesAPI from "../invoices";
|
|
8
|
+
import * as ExternalPriceIDAPI from "./external-price-id";
|
|
9
|
+
import { Page, type PageParams } from "../../pagination";
|
|
10
|
+
|
|
11
|
+
export class Prices extends APIResource {
|
|
12
|
+
externalPriceId: ExternalPriceIDAPI.ExternalPriceID = new ExternalPriceIDAPI.ExternalPriceID(this.client);
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* This endpoint is used to create a [price](../reference/price). A price created
|
|
16
|
+
* using this endpoint is always an add-on, meaning that it’s not associated with a
|
|
17
|
+
* specific plan and can instead be individually added to subscriptions, including
|
|
18
|
+
* subscriptions on different plans.
|
|
19
|
+
*
|
|
20
|
+
* An `external_price_id` can be optionally specified as an alias to allow
|
|
21
|
+
* ergonomic interaction with prices in the Orb API.
|
|
22
|
+
*
|
|
23
|
+
* See the [Price resource](../reference/price) for the specification of different
|
|
24
|
+
* price model configurations possible in this endpoint.
|
|
25
|
+
*/
|
|
26
|
+
create(body: PriceCreateParams, options?: Core.RequestOptions): Core.APIPromise<Price> {
|
|
27
|
+
return this.post('/prices', { body, ...options });
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* This endpoint is used to list all add-on prices created using the
|
|
32
|
+
* [price creation endpoint](../reference/create-price).
|
|
33
|
+
*/
|
|
34
|
+
list(query?: PriceListParams, options?: Core.RequestOptions): Core.PagePromise<PricesPage, Price>;
|
|
35
|
+
list(options?: Core.RequestOptions): Core.PagePromise<PricesPage, Price>;
|
|
36
|
+
list(
|
|
37
|
+
query: PriceListParams | Core.RequestOptions = {},
|
|
38
|
+
options?: Core.RequestOptions,
|
|
39
|
+
): Core.PagePromise<PricesPage, Price> {
|
|
40
|
+
if (isRequestOptions(query)) {
|
|
41
|
+
return this.list({}, query);
|
|
42
|
+
}
|
|
43
|
+
return this.getAPIList('/prices', PricesPage, { query, ...options });
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* This endpoint returns a price given an identifier.
|
|
48
|
+
*/
|
|
49
|
+
fetch(priceId: string, options?: Core.RequestOptions): Core.APIPromise<Price> {
|
|
50
|
+
return this.get(`/prices/${priceId}`, options);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export class PricesPage extends Page<Price> {}
|
|
55
|
+
|
|
56
|
+
export interface Discount {
|
|
57
|
+
discount_type: 'percentage' | 'trial' | 'usage' | 'amount';
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* Only available if discount_type is `amount`.
|
|
61
|
+
*/
|
|
62
|
+
amount_discount?: string | null;
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* List of price_ids that this discount applies to. For plan/plan phase discounts,
|
|
66
|
+
* this can be a subset of prices.
|
|
67
|
+
*/
|
|
68
|
+
applies_to_price_ids?: Array<string> | null;
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* Only available if discount_type is `percentage`. This is a number between 0
|
|
72
|
+
* and 1.
|
|
73
|
+
*/
|
|
74
|
+
percentage_discount?: number | null;
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* Only available if discount_type is `trial`
|
|
78
|
+
*/
|
|
79
|
+
trial_amount_discount?: string | null;
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* Only available if discount_type is `usage`. Number of usage units that this
|
|
83
|
+
* discount is for
|
|
84
|
+
*/
|
|
85
|
+
usage_discount?: number | null;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* The Price resource represents a price that can be billed on a subscription,
|
|
90
|
+
* resulting in a charge on an invoice in the form of an invoice line item. Prices
|
|
91
|
+
* take a quantity and determine an amount to bill.
|
|
92
|
+
*
|
|
93
|
+
* Orb supports a few different pricing models out of the box. Each of these models
|
|
94
|
+
* is serialized differently in a given Price object. The model_type field
|
|
95
|
+
* determines the key for the configuration object that is present.
|
|
96
|
+
*
|
|
97
|
+
* ## Unit pricing
|
|
98
|
+
*
|
|
99
|
+
* With unit pricing, each unit costs a fixed amount.
|
|
100
|
+
*
|
|
101
|
+
* ```json
|
|
102
|
+
* {
|
|
103
|
+
* ...
|
|
104
|
+
* "model_type": "unit",
|
|
105
|
+
* "unit_config": {
|
|
106
|
+
* "unit_amount": "0.50"
|
|
107
|
+
* }
|
|
108
|
+
* ...
|
|
109
|
+
* }
|
|
110
|
+
* ```
|
|
111
|
+
*
|
|
112
|
+
* ## Tiered pricing
|
|
113
|
+
*
|
|
114
|
+
* In tiered pricing, the cost of a given unit depends on the tier range that it
|
|
115
|
+
* falls into, where each tier range is defined by an upper and lower bound. For
|
|
116
|
+
* example, the first ten units may cost $0.50 each and all units thereafter may
|
|
117
|
+
* cost $0.10 each.
|
|
118
|
+
*
|
|
119
|
+
* ```json
|
|
120
|
+
* {
|
|
121
|
+
* ...
|
|
122
|
+
* "model_type": "tiered",
|
|
123
|
+
* "tiered_config": {
|
|
124
|
+
* "tiers": [
|
|
125
|
+
* {
|
|
126
|
+
* "first_unit": 1,
|
|
127
|
+
* "last_unit": 10,
|
|
128
|
+
* "unit_amount": "0.50"
|
|
129
|
+
* },
|
|
130
|
+
* {
|
|
131
|
+
* "first_unit": 11,
|
|
132
|
+
* "last_unit": null,
|
|
133
|
+
* "unit_amount": "0.10"
|
|
134
|
+
* }
|
|
135
|
+
* ]
|
|
136
|
+
* }
|
|
137
|
+
* ...
|
|
138
|
+
* ```
|
|
139
|
+
*
|
|
140
|
+
* ## Bulk pricing
|
|
141
|
+
*
|
|
142
|
+
* Bulk pricing applies when the number of units determine the cost of all units.
|
|
143
|
+
* For example, if you've bought less than 10 units, they may each be $0.50 for a
|
|
144
|
+
* total of $5.00. Once you've bought more than 10 units, all units may now be
|
|
145
|
+
* priced at $0.40 (i.e. 101 units total would be $40.40).
|
|
146
|
+
*
|
|
147
|
+
* ```json
|
|
148
|
+
* {
|
|
149
|
+
* ...
|
|
150
|
+
* "model_type": "bulk",
|
|
151
|
+
* "bulk_config": {
|
|
152
|
+
* "tiers": [
|
|
153
|
+
* {
|
|
154
|
+
* "maximum_units": 10,
|
|
155
|
+
* "unit_amount": "0.50"
|
|
156
|
+
* },
|
|
157
|
+
* {
|
|
158
|
+
* "maximum_units": 1000,
|
|
159
|
+
* "unit_amount": "0.40"
|
|
160
|
+
* }
|
|
161
|
+
* ]
|
|
162
|
+
* }
|
|
163
|
+
* ...
|
|
164
|
+
* }
|
|
165
|
+
* ```
|
|
166
|
+
*
|
|
167
|
+
* ## Package pricing
|
|
168
|
+
*
|
|
169
|
+
* Package pricing defines the size or granularity of a unit for billing purposes.
|
|
170
|
+
* For example, if the package size is set to 5, then 4 units will be billed as 5
|
|
171
|
+
* and 6 units will be billed at 10.
|
|
172
|
+
*
|
|
173
|
+
* ```json
|
|
174
|
+
* {
|
|
175
|
+
* ...
|
|
176
|
+
* "model_type": "package",
|
|
177
|
+
* "package_config": {
|
|
178
|
+
* "package_amount": "0.80",
|
|
179
|
+
* "package_size": 10
|
|
180
|
+
* }
|
|
181
|
+
* ...
|
|
182
|
+
* }
|
|
183
|
+
* ```
|
|
184
|
+
*
|
|
185
|
+
* ## BPS pricing
|
|
186
|
+
*
|
|
187
|
+
* BPS pricing specifies a per-event (e.g. per-payment) rate in one hundredth of a
|
|
188
|
+
* percent (the number of basis points to charge), as well as a cap per event to
|
|
189
|
+
* assess. For example, this would allow you to assess a fee of 0.25% on every
|
|
190
|
+
* payment you process, with a maximum charge of $25 per payment.
|
|
191
|
+
*
|
|
192
|
+
* ```json
|
|
193
|
+
* {
|
|
194
|
+
* ...
|
|
195
|
+
* "model_type": "bps",
|
|
196
|
+
* "bps_config": {
|
|
197
|
+
* "bps": 125,
|
|
198
|
+
* "per_unit_maximum": "11.00"
|
|
199
|
+
* }
|
|
200
|
+
* ...
|
|
201
|
+
* }
|
|
202
|
+
* ```
|
|
203
|
+
*
|
|
204
|
+
* ## Bulk BPS pricing
|
|
205
|
+
*
|
|
206
|
+
* Bulk BPS pricing specifies BPS parameters in a tiered manner, dependent on the
|
|
207
|
+
* total quantity across all events. Similar to bulk pricing, the BPS parameters of
|
|
208
|
+
* a given event depends on the tier range that the billing period falls into. Each
|
|
209
|
+
* tier range is defined by an upper bound. For example, after $1.5M of payment
|
|
210
|
+
* volume is reached, each individual payment may have a lower cap or a smaller
|
|
211
|
+
* take-rate.
|
|
212
|
+
*
|
|
213
|
+
* ```json
|
|
214
|
+
* ...
|
|
215
|
+
* "model_type": "bulk_bps",
|
|
216
|
+
* "bulk_bps_config": {
|
|
217
|
+
* "tiers": [
|
|
218
|
+
* {
|
|
219
|
+
* "maximum_amount": "1000000.00",
|
|
220
|
+
* "bps": 125,
|
|
221
|
+
* "per_unit_maximum": "19.00"
|
|
222
|
+
* },
|
|
223
|
+
* {
|
|
224
|
+
* "maximum_amount": null,
|
|
225
|
+
* "bps": 115,
|
|
226
|
+
* "per_unit_maximum": "4.00"
|
|
227
|
+
* }
|
|
228
|
+
* ]
|
|
229
|
+
* }
|
|
230
|
+
* ...
|
|
231
|
+
* }
|
|
232
|
+
* ```
|
|
233
|
+
*
|
|
234
|
+
* ## Tiered BPS pricing
|
|
235
|
+
*
|
|
236
|
+
* Tiered BPS pricing specifies BPS parameters in a graduated manner, where an
|
|
237
|
+
* event's applicable parameter is a function of its marginal addition to the
|
|
238
|
+
* period total. Similar to tiered pricing, the BPS parameters of a given event
|
|
239
|
+
* depends on the tier range that it falls into, where each tier range is defined
|
|
240
|
+
* by an upper and lower bound. For example, the first few payments may have a 0.8
|
|
241
|
+
* BPS take-rate and all payments after a specific volume may incur a take-rate of
|
|
242
|
+
* 0.5 BPS each.
|
|
243
|
+
*
|
|
244
|
+
* ```json
|
|
245
|
+
* ...
|
|
246
|
+
* "model_type": "tiered_bps",
|
|
247
|
+
* "tiered_bps_config": {
|
|
248
|
+
* "tiers": [
|
|
249
|
+
* {
|
|
250
|
+
* "minimum_amount": "0",
|
|
251
|
+
* "maximum_amount": "1000000.00",
|
|
252
|
+
* "bps": 125,
|
|
253
|
+
* "per_unit_maximum": "19.00"
|
|
254
|
+
* },
|
|
255
|
+
* {
|
|
256
|
+
* "minimum_amount": "1000000.00",
|
|
257
|
+
* "maximum_amount": null,
|
|
258
|
+
* "bps": 115,
|
|
259
|
+
* "per_unit_maximum": "4.00"
|
|
260
|
+
* }
|
|
261
|
+
* ]
|
|
262
|
+
* }
|
|
263
|
+
* ...
|
|
264
|
+
* }
|
|
265
|
+
* ```
|
|
266
|
+
*
|
|
267
|
+
* ## Matrix pricing
|
|
268
|
+
*
|
|
269
|
+
* Matrix pricing defines a set of unit prices in a one or two-dimensional matrix.
|
|
270
|
+
* `dimensions` defines the two event property values evaluated in this pricing
|
|
271
|
+
* model. In a one-dimensional matrix, the second value is `null`. Every
|
|
272
|
+
* configuration has a list of `matrix_values` which give the unit prices for
|
|
273
|
+
* specified property values. In a one-dimensional matrix, the matrix values will
|
|
274
|
+
* have `dimension_values` where the second value of the pair is null. If an event
|
|
275
|
+
* does not match any of the dimension values in the matrix, it will resort to the
|
|
276
|
+
* `default_unit_amount`.
|
|
277
|
+
*
|
|
278
|
+
* ```json
|
|
279
|
+
* {
|
|
280
|
+
* "model_type": "matrix"
|
|
281
|
+
* "matrix_config": {
|
|
282
|
+
* "default_unit_amount": "3.00",
|
|
283
|
+
* "dimensions": [
|
|
284
|
+
* "cluster_name",
|
|
285
|
+
* "region"
|
|
286
|
+
* ],
|
|
287
|
+
* "matrix_values": [
|
|
288
|
+
* {
|
|
289
|
+
* "dimension_values": [
|
|
290
|
+
* "alpha",
|
|
291
|
+
* "west"
|
|
292
|
+
* ],
|
|
293
|
+
* "unit_amount": "2.00"
|
|
294
|
+
* },
|
|
295
|
+
* ...
|
|
296
|
+
* ]
|
|
297
|
+
* }
|
|
298
|
+
* }
|
|
299
|
+
* ```
|
|
300
|
+
*
|
|
301
|
+
* ### Fixed fees
|
|
302
|
+
*
|
|
303
|
+
* Fixed fees are prices that are applied independent of usage quantities, and
|
|
304
|
+
* follow unit pricing. They also have an additional parameter
|
|
305
|
+
* `fixed_price_quantity`. If the Price represents a fixed cost, this represents
|
|
306
|
+
* the quantity of units applied.
|
|
307
|
+
*
|
|
308
|
+
* ```json
|
|
309
|
+
* {
|
|
310
|
+
* ...
|
|
311
|
+
* "id": "price_id",
|
|
312
|
+
* "model_type": "unit",
|
|
313
|
+
* "unit_config": {
|
|
314
|
+
* "unit_amount": "2.00"
|
|
315
|
+
* },
|
|
316
|
+
* "fixed_price_quantity": 3.0
|
|
317
|
+
* ...
|
|
318
|
+
* }
|
|
319
|
+
* ```
|
|
320
|
+
*/
|
|
321
|
+
export type Price =
|
|
322
|
+
| Price.UnitPrice
|
|
323
|
+
| Price.PackagePrice
|
|
324
|
+
| Price.MatrixPrice
|
|
325
|
+
| Price.TieredPrice
|
|
326
|
+
| Price.TieredBpsPrice
|
|
327
|
+
| Price.BpsPrice
|
|
328
|
+
| Price.BulkBpsPrice
|
|
329
|
+
| Price.BulkPrice
|
|
330
|
+
| Price.TestRatingFunctionPrice
|
|
331
|
+
| Price.FivetranExamplePrice
|
|
332
|
+
| Price.ThresholdTotalAmountPrice
|
|
333
|
+
| Price.TieredPackagePrice
|
|
334
|
+
| Price.TieredWithMinimumPrice
|
|
335
|
+
| Price.PackageWithAllocationPrice;
|
|
336
|
+
|
|
337
|
+
export namespace Price {
|
|
338
|
+
export interface UnitPrice {
|
|
339
|
+
id: string;
|
|
340
|
+
|
|
341
|
+
billable_metric: UnitPrice.BillableMetric | null;
|
|
342
|
+
|
|
343
|
+
cadence: 'one_time' | 'monthly' | 'quarterly' | 'annual';
|
|
344
|
+
|
|
345
|
+
created_at: string;
|
|
346
|
+
|
|
347
|
+
currency: string;
|
|
348
|
+
|
|
349
|
+
external_price_id: string | null;
|
|
350
|
+
|
|
351
|
+
fixed_price_quantity: number | null;
|
|
352
|
+
|
|
353
|
+
item: UnitPrice.Item;
|
|
354
|
+
|
|
355
|
+
model_type: 'unit';
|
|
356
|
+
|
|
357
|
+
name: string;
|
|
358
|
+
|
|
359
|
+
plan_phase_order: number | null;
|
|
360
|
+
|
|
361
|
+
price_type: 'usage_price' | 'fixed_price';
|
|
362
|
+
|
|
363
|
+
unit_config: UnitPrice.UnitConfig;
|
|
364
|
+
|
|
365
|
+
discount?: InvoicesAPI.InvoiceDiscount | null;
|
|
366
|
+
|
|
367
|
+
maximum?: UnitPrice.Maximum | null;
|
|
368
|
+
|
|
369
|
+
maximum_amount?: string | null;
|
|
370
|
+
|
|
371
|
+
minimum?: UnitPrice.Minimum | null;
|
|
372
|
+
|
|
373
|
+
minimum_amount?: string | null;
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
export namespace UnitPrice {
|
|
377
|
+
export interface BillableMetric {
|
|
378
|
+
id: string;
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
export interface Item {
|
|
382
|
+
id: string;
|
|
383
|
+
|
|
384
|
+
name: string;
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
export interface UnitConfig {
|
|
388
|
+
/**
|
|
389
|
+
* Rate per unit of usage
|
|
390
|
+
*/
|
|
391
|
+
unit_amount: string;
|
|
392
|
+
|
|
393
|
+
/**
|
|
394
|
+
* Multiplier to scale rated quantity by
|
|
395
|
+
*/
|
|
396
|
+
scaling_factor?: number | null;
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
export interface Maximum {
|
|
400
|
+
/**
|
|
401
|
+
* List of price_ids that this maximum amount applies to. For plan/plan phase
|
|
402
|
+
* maximums, this can be a subset of prices.
|
|
403
|
+
*/
|
|
404
|
+
applies_to_price_ids: Array<string>;
|
|
405
|
+
|
|
406
|
+
/**
|
|
407
|
+
* Maximum amount applied
|
|
408
|
+
*/
|
|
409
|
+
maximum_amount: string;
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
export interface Minimum {
|
|
413
|
+
/**
|
|
414
|
+
* List of price_ids that this minimum amount applies to. For plan/plan phase
|
|
415
|
+
* minimums, this can be a subset of prices.
|
|
416
|
+
*/
|
|
417
|
+
applies_to_price_ids: Array<string>;
|
|
418
|
+
|
|
419
|
+
/**
|
|
420
|
+
* Minimum amount applied
|
|
421
|
+
*/
|
|
422
|
+
minimum_amount: string;
|
|
423
|
+
}
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
export interface PackagePrice {
|
|
427
|
+
id: string;
|
|
428
|
+
|
|
429
|
+
billable_metric: PackagePrice.BillableMetric | null;
|
|
430
|
+
|
|
431
|
+
cadence: 'one_time' | 'monthly' | 'quarterly' | 'annual';
|
|
432
|
+
|
|
433
|
+
created_at: string;
|
|
434
|
+
|
|
435
|
+
currency: string;
|
|
436
|
+
|
|
437
|
+
external_price_id: string | null;
|
|
438
|
+
|
|
439
|
+
fixed_price_quantity: number | null;
|
|
440
|
+
|
|
441
|
+
item: PackagePrice.Item;
|
|
442
|
+
|
|
443
|
+
model_type: 'package';
|
|
444
|
+
|
|
445
|
+
name: string;
|
|
446
|
+
|
|
447
|
+
package_config: PackagePrice.PackageConfig;
|
|
448
|
+
|
|
449
|
+
plan_phase_order: number | null;
|
|
450
|
+
|
|
451
|
+
price_type: 'usage_price' | 'fixed_price';
|
|
452
|
+
|
|
453
|
+
discount?: InvoicesAPI.InvoiceDiscount | null;
|
|
454
|
+
|
|
455
|
+
maximum?: PackagePrice.Maximum | null;
|
|
456
|
+
|
|
457
|
+
maximum_amount?: string | null;
|
|
458
|
+
|
|
459
|
+
minimum?: PackagePrice.Minimum | null;
|
|
460
|
+
|
|
461
|
+
minimum_amount?: string | null;
|
|
462
|
+
}
|
|
463
|
+
|
|
464
|
+
export namespace PackagePrice {
|
|
465
|
+
export interface BillableMetric {
|
|
466
|
+
id: string;
|
|
467
|
+
}
|
|
468
|
+
|
|
469
|
+
export interface Item {
|
|
470
|
+
id: string;
|
|
471
|
+
|
|
472
|
+
name: string;
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
export interface PackageConfig {
|
|
476
|
+
/**
|
|
477
|
+
* A currency amount to rate usage by
|
|
478
|
+
*/
|
|
479
|
+
package_amount: string;
|
|
480
|
+
|
|
481
|
+
/**
|
|
482
|
+
* An integer amount to represent package size. For example, 1000 here would divide
|
|
483
|
+
* usage by 1000 before multiplying by package_amount in rating
|
|
484
|
+
*/
|
|
485
|
+
package_size?: number | null;
|
|
486
|
+
}
|
|
487
|
+
|
|
488
|
+
export interface Maximum {
|
|
489
|
+
/**
|
|
490
|
+
* List of price_ids that this maximum amount applies to. For plan/plan phase
|
|
491
|
+
* maximums, this can be a subset of prices.
|
|
492
|
+
*/
|
|
493
|
+
applies_to_price_ids: Array<string>;
|
|
494
|
+
|
|
495
|
+
/**
|
|
496
|
+
* Maximum amount applied
|
|
497
|
+
*/
|
|
498
|
+
maximum_amount: string;
|
|
499
|
+
}
|
|
500
|
+
|
|
501
|
+
export interface Minimum {
|
|
502
|
+
/**
|
|
503
|
+
* List of price_ids that this minimum amount applies to. For plan/plan phase
|
|
504
|
+
* minimums, this can be a subset of prices.
|
|
505
|
+
*/
|
|
506
|
+
applies_to_price_ids: Array<string>;
|
|
507
|
+
|
|
508
|
+
/**
|
|
509
|
+
* Minimum amount applied
|
|
510
|
+
*/
|
|
511
|
+
minimum_amount: string;
|
|
512
|
+
}
|
|
513
|
+
}
|
|
514
|
+
|
|
515
|
+
export interface MatrixPrice {
|
|
516
|
+
id: string;
|
|
517
|
+
|
|
518
|
+
billable_metric: MatrixPrice.BillableMetric | null;
|
|
519
|
+
|
|
520
|
+
cadence: 'one_time' | 'monthly' | 'quarterly' | 'annual';
|
|
521
|
+
|
|
522
|
+
created_at: string;
|
|
523
|
+
|
|
524
|
+
currency: string;
|
|
525
|
+
|
|
526
|
+
external_price_id: string | null;
|
|
527
|
+
|
|
528
|
+
fixed_price_quantity: number | null;
|
|
529
|
+
|
|
530
|
+
item: MatrixPrice.Item;
|
|
531
|
+
|
|
532
|
+
matrix_config: MatrixPrice.MatrixConfig;
|
|
533
|
+
|
|
534
|
+
model_type: 'matrix';
|
|
535
|
+
|
|
536
|
+
name: string;
|
|
537
|
+
|
|
538
|
+
plan_phase_order: number | null;
|
|
539
|
+
|
|
540
|
+
price_type: 'usage_price' | 'fixed_price';
|
|
541
|
+
|
|
542
|
+
discount?: InvoicesAPI.InvoiceDiscount | null;
|
|
543
|
+
|
|
544
|
+
maximum?: MatrixPrice.Maximum | null;
|
|
545
|
+
|
|
546
|
+
maximum_amount?: string | null;
|
|
547
|
+
|
|
548
|
+
minimum?: MatrixPrice.Minimum | null;
|
|
549
|
+
|
|
550
|
+
minimum_amount?: string | null;
|
|
551
|
+
}
|
|
552
|
+
|
|
553
|
+
export namespace MatrixPrice {
|
|
554
|
+
export interface BillableMetric {
|
|
555
|
+
id: string;
|
|
556
|
+
}
|
|
557
|
+
|
|
558
|
+
export interface Item {
|
|
559
|
+
id: string;
|
|
560
|
+
|
|
561
|
+
name: string;
|
|
562
|
+
}
|
|
563
|
+
|
|
564
|
+
export interface MatrixConfig {
|
|
565
|
+
/**
|
|
566
|
+
* Default per unit rate for any usage not bucketed into a specified matrix_value
|
|
567
|
+
*/
|
|
568
|
+
default_unit_amount: string;
|
|
569
|
+
|
|
570
|
+
/**
|
|
571
|
+
* One or two event property values to evaluate matrix groups by
|
|
572
|
+
*/
|
|
573
|
+
dimensions: Array<string | null>;
|
|
574
|
+
|
|
575
|
+
/**
|
|
576
|
+
* Matrix values for specified matrix grouping keys
|
|
577
|
+
*/
|
|
578
|
+
matrix_values: Array<MatrixConfig.MatrixValue>;
|
|
579
|
+
|
|
580
|
+
/**
|
|
581
|
+
* Default optional multiplier to scale rated quantities that fall into the default
|
|
582
|
+
* bucket by
|
|
583
|
+
*/
|
|
584
|
+
scaling_factor?: number | null;
|
|
585
|
+
}
|
|
586
|
+
|
|
587
|
+
export namespace MatrixConfig {
|
|
588
|
+
export interface MatrixValue {
|
|
589
|
+
/**
|
|
590
|
+
* One or two matrix keys to filter usage to this Matrix value by. For example,
|
|
591
|
+
* ["region", "tier"] could be used to filter cloud usage by a cloud region and an
|
|
592
|
+
* instance tier.
|
|
593
|
+
*/
|
|
594
|
+
dimension_values: Array<string | null>;
|
|
595
|
+
|
|
596
|
+
/**
|
|
597
|
+
* Unit price for the specified dimension_values
|
|
598
|
+
*/
|
|
599
|
+
unit_amount: string;
|
|
600
|
+
|
|
601
|
+
/**
|
|
602
|
+
* Optional multiplier to scale rated quantities by
|
|
603
|
+
*/
|
|
604
|
+
scaling_factor?: number | null;
|
|
605
|
+
}
|
|
606
|
+
}
|
|
607
|
+
|
|
608
|
+
export interface Maximum {
|
|
609
|
+
/**
|
|
610
|
+
* List of price_ids that this maximum amount applies to. For plan/plan phase
|
|
611
|
+
* maximums, this can be a subset of prices.
|
|
612
|
+
*/
|
|
613
|
+
applies_to_price_ids: Array<string>;
|
|
614
|
+
|
|
615
|
+
/**
|
|
616
|
+
* Maximum amount applied
|
|
617
|
+
*/
|
|
618
|
+
maximum_amount: string;
|
|
619
|
+
}
|
|
620
|
+
|
|
621
|
+
export interface Minimum {
|
|
622
|
+
/**
|
|
623
|
+
* List of price_ids that this minimum amount applies to. For plan/plan phase
|
|
624
|
+
* minimums, this can be a subset of prices.
|
|
625
|
+
*/
|
|
626
|
+
applies_to_price_ids: Array<string>;
|
|
627
|
+
|
|
628
|
+
/**
|
|
629
|
+
* Minimum amount applied
|
|
630
|
+
*/
|
|
631
|
+
minimum_amount: string;
|
|
632
|
+
}
|
|
633
|
+
}
|
|
634
|
+
|
|
635
|
+
export interface TieredPrice {
|
|
636
|
+
id: string;
|
|
637
|
+
|
|
638
|
+
billable_metric: TieredPrice.BillableMetric | null;
|
|
639
|
+
|
|
640
|
+
cadence: 'one_time' | 'monthly' | 'quarterly' | 'annual';
|
|
641
|
+
|
|
642
|
+
created_at: string;
|
|
643
|
+
|
|
644
|
+
currency: string;
|
|
645
|
+
|
|
646
|
+
external_price_id: string | null;
|
|
647
|
+
|
|
648
|
+
fixed_price_quantity: number | null;
|
|
649
|
+
|
|
650
|
+
item: TieredPrice.Item;
|
|
651
|
+
|
|
652
|
+
model_type: 'tiered';
|
|
653
|
+
|
|
654
|
+
name: string;
|
|
655
|
+
|
|
656
|
+
plan_phase_order: number | null;
|
|
657
|
+
|
|
658
|
+
price_type: 'usage_price' | 'fixed_price';
|
|
659
|
+
|
|
660
|
+
tiered_config: TieredPrice.TieredConfig;
|
|
661
|
+
|
|
662
|
+
discount?: InvoicesAPI.InvoiceDiscount | null;
|
|
663
|
+
|
|
664
|
+
maximum?: TieredPrice.Maximum | null;
|
|
665
|
+
|
|
666
|
+
maximum_amount?: string | null;
|
|
667
|
+
|
|
668
|
+
minimum?: TieredPrice.Minimum | null;
|
|
669
|
+
|
|
670
|
+
minimum_amount?: string | null;
|
|
671
|
+
}
|
|
672
|
+
|
|
673
|
+
export namespace TieredPrice {
|
|
674
|
+
export interface BillableMetric {
|
|
675
|
+
id: string;
|
|
676
|
+
}
|
|
677
|
+
|
|
678
|
+
export interface Item {
|
|
679
|
+
id: string;
|
|
680
|
+
|
|
681
|
+
name: string;
|
|
682
|
+
}
|
|
683
|
+
|
|
684
|
+
export interface TieredConfig {
|
|
685
|
+
/**
|
|
686
|
+
* Tiers for rating based on total usage quantities into the specified tier
|
|
687
|
+
*/
|
|
688
|
+
tiers: Array<TieredConfig.Tier>;
|
|
689
|
+
}
|
|
690
|
+
|
|
691
|
+
export namespace TieredConfig {
|
|
692
|
+
export interface Tier {
|
|
693
|
+
/**
|
|
694
|
+
* Inclusive tier starting value
|
|
695
|
+
*/
|
|
696
|
+
first_unit: number;
|
|
697
|
+
|
|
698
|
+
/**
|
|
699
|
+
* Amount per unit
|
|
700
|
+
*/
|
|
701
|
+
unit_amount: string;
|
|
702
|
+
|
|
703
|
+
/**
|
|
704
|
+
* Exclusive tier ending value. If null, this is treated as the last tier
|
|
705
|
+
*/
|
|
706
|
+
last_unit?: number | null;
|
|
707
|
+
}
|
|
708
|
+
}
|
|
709
|
+
|
|
710
|
+
export interface Maximum {
|
|
711
|
+
/**
|
|
712
|
+
* List of price_ids that this maximum amount applies to. For plan/plan phase
|
|
713
|
+
* maximums, this can be a subset of prices.
|
|
714
|
+
*/
|
|
715
|
+
applies_to_price_ids: Array<string>;
|
|
716
|
+
|
|
717
|
+
/**
|
|
718
|
+
* Maximum amount applied
|
|
719
|
+
*/
|
|
720
|
+
maximum_amount: string;
|
|
721
|
+
}
|
|
722
|
+
|
|
723
|
+
export interface Minimum {
|
|
724
|
+
/**
|
|
725
|
+
* List of price_ids that this minimum amount applies to. For plan/plan phase
|
|
726
|
+
* minimums, this can be a subset of prices.
|
|
727
|
+
*/
|
|
728
|
+
applies_to_price_ids: Array<string>;
|
|
729
|
+
|
|
730
|
+
/**
|
|
731
|
+
* Minimum amount applied
|
|
732
|
+
*/
|
|
733
|
+
minimum_amount: string;
|
|
734
|
+
}
|
|
735
|
+
}
|
|
736
|
+
|
|
737
|
+
export interface TieredBpsPrice {
|
|
738
|
+
id: string;
|
|
739
|
+
|
|
740
|
+
billable_metric: TieredBpsPrice.BillableMetric | null;
|
|
741
|
+
|
|
742
|
+
cadence: 'one_time' | 'monthly' | 'quarterly' | 'annual';
|
|
743
|
+
|
|
744
|
+
created_at: string;
|
|
745
|
+
|
|
746
|
+
currency: string;
|
|
747
|
+
|
|
748
|
+
external_price_id: string | null;
|
|
749
|
+
|
|
750
|
+
fixed_price_quantity: number | null;
|
|
751
|
+
|
|
752
|
+
item: TieredBpsPrice.Item;
|
|
753
|
+
|
|
754
|
+
model_type: 'tiered_bps';
|
|
755
|
+
|
|
756
|
+
name: string;
|
|
757
|
+
|
|
758
|
+
plan_phase_order: number | null;
|
|
759
|
+
|
|
760
|
+
price_type: 'usage_price' | 'fixed_price';
|
|
761
|
+
|
|
762
|
+
tiered_bps_config: TieredBpsPrice.TieredBpsConfig;
|
|
763
|
+
|
|
764
|
+
discount?: InvoicesAPI.InvoiceDiscount | null;
|
|
765
|
+
|
|
766
|
+
maximum?: TieredBpsPrice.Maximum | null;
|
|
767
|
+
|
|
768
|
+
maximum_amount?: string | null;
|
|
769
|
+
|
|
770
|
+
minimum?: TieredBpsPrice.Minimum | null;
|
|
771
|
+
|
|
772
|
+
minimum_amount?: string | null;
|
|
773
|
+
}
|
|
774
|
+
|
|
775
|
+
export namespace TieredBpsPrice {
|
|
776
|
+
export interface BillableMetric {
|
|
777
|
+
id: string;
|
|
778
|
+
}
|
|
779
|
+
|
|
780
|
+
export interface Item {
|
|
781
|
+
id: string;
|
|
782
|
+
|
|
783
|
+
name: string;
|
|
784
|
+
}
|
|
785
|
+
|
|
786
|
+
export interface TieredBpsConfig {
|
|
787
|
+
/**
|
|
788
|
+
* Tiers for a Graduated BPS pricing model, where usage is bucketed into specified
|
|
789
|
+
* tiers
|
|
790
|
+
*/
|
|
791
|
+
tiers: Array<TieredBpsConfig.Tier>;
|
|
792
|
+
}
|
|
793
|
+
|
|
794
|
+
export namespace TieredBpsConfig {
|
|
795
|
+
export interface Tier {
|
|
796
|
+
/**
|
|
797
|
+
* Per-event basis point rate
|
|
798
|
+
*/
|
|
799
|
+
bps: number;
|
|
800
|
+
|
|
801
|
+
/**
|
|
802
|
+
* Inclusive tier starting value
|
|
803
|
+
*/
|
|
804
|
+
minimum_amount: string;
|
|
805
|
+
|
|
806
|
+
/**
|
|
807
|
+
* Exclusive tier ending value
|
|
808
|
+
*/
|
|
809
|
+
maximum_amount?: string | null;
|
|
810
|
+
|
|
811
|
+
/**
|
|
812
|
+
* Per unit maximum to charge
|
|
813
|
+
*/
|
|
814
|
+
per_unit_maximum?: string | null;
|
|
815
|
+
}
|
|
816
|
+
}
|
|
817
|
+
|
|
818
|
+
export interface Maximum {
|
|
819
|
+
/**
|
|
820
|
+
* List of price_ids that this maximum amount applies to. For plan/plan phase
|
|
821
|
+
* maximums, this can be a subset of prices.
|
|
822
|
+
*/
|
|
823
|
+
applies_to_price_ids: Array<string>;
|
|
824
|
+
|
|
825
|
+
/**
|
|
826
|
+
* Maximum amount applied
|
|
827
|
+
*/
|
|
828
|
+
maximum_amount: string;
|
|
829
|
+
}
|
|
830
|
+
|
|
831
|
+
export interface Minimum {
|
|
832
|
+
/**
|
|
833
|
+
* List of price_ids that this minimum amount applies to. For plan/plan phase
|
|
834
|
+
* minimums, this can be a subset of prices.
|
|
835
|
+
*/
|
|
836
|
+
applies_to_price_ids: Array<string>;
|
|
837
|
+
|
|
838
|
+
/**
|
|
839
|
+
* Minimum amount applied
|
|
840
|
+
*/
|
|
841
|
+
minimum_amount: string;
|
|
842
|
+
}
|
|
843
|
+
}
|
|
844
|
+
|
|
845
|
+
export interface BpsPrice {
|
|
846
|
+
id: string;
|
|
847
|
+
|
|
848
|
+
billable_metric: BpsPrice.BillableMetric | null;
|
|
849
|
+
|
|
850
|
+
bps_config: BpsPrice.BpsConfig;
|
|
851
|
+
|
|
852
|
+
cadence: 'one_time' | 'monthly' | 'quarterly' | 'annual';
|
|
853
|
+
|
|
854
|
+
created_at: string;
|
|
855
|
+
|
|
856
|
+
currency: string;
|
|
857
|
+
|
|
858
|
+
external_price_id: string | null;
|
|
859
|
+
|
|
860
|
+
fixed_price_quantity: number | null;
|
|
861
|
+
|
|
862
|
+
item: BpsPrice.Item;
|
|
863
|
+
|
|
864
|
+
model_type: 'bps';
|
|
865
|
+
|
|
866
|
+
name: string;
|
|
867
|
+
|
|
868
|
+
plan_phase_order: number | null;
|
|
869
|
+
|
|
870
|
+
price_type: 'usage_price' | 'fixed_price';
|
|
871
|
+
|
|
872
|
+
discount?: InvoicesAPI.InvoiceDiscount | null;
|
|
873
|
+
|
|
874
|
+
maximum?: BpsPrice.Maximum | null;
|
|
875
|
+
|
|
876
|
+
maximum_amount?: string | null;
|
|
877
|
+
|
|
878
|
+
minimum?: BpsPrice.Minimum | null;
|
|
879
|
+
|
|
880
|
+
minimum_amount?: string | null;
|
|
881
|
+
}
|
|
882
|
+
|
|
883
|
+
export namespace BpsPrice {
|
|
884
|
+
export interface BillableMetric {
|
|
885
|
+
id: string;
|
|
886
|
+
}
|
|
887
|
+
|
|
888
|
+
export interface BpsConfig {
|
|
889
|
+
/**
|
|
890
|
+
* Basis point take rate per event
|
|
891
|
+
*/
|
|
892
|
+
bps: number;
|
|
893
|
+
|
|
894
|
+
/**
|
|
895
|
+
* Optional currency amount maximum to cap spend per event
|
|
896
|
+
*/
|
|
897
|
+
per_unit_maximum?: string | null;
|
|
898
|
+
}
|
|
899
|
+
|
|
900
|
+
export interface Item {
|
|
901
|
+
id: string;
|
|
902
|
+
|
|
903
|
+
name: string;
|
|
904
|
+
}
|
|
905
|
+
|
|
906
|
+
export interface Maximum {
|
|
907
|
+
/**
|
|
908
|
+
* List of price_ids that this maximum amount applies to. For plan/plan phase
|
|
909
|
+
* maximums, this can be a subset of prices.
|
|
910
|
+
*/
|
|
911
|
+
applies_to_price_ids: Array<string>;
|
|
912
|
+
|
|
913
|
+
/**
|
|
914
|
+
* Maximum amount applied
|
|
915
|
+
*/
|
|
916
|
+
maximum_amount: string;
|
|
917
|
+
}
|
|
918
|
+
|
|
919
|
+
export interface Minimum {
|
|
920
|
+
/**
|
|
921
|
+
* List of price_ids that this minimum amount applies to. For plan/plan phase
|
|
922
|
+
* minimums, this can be a subset of prices.
|
|
923
|
+
*/
|
|
924
|
+
applies_to_price_ids: Array<string>;
|
|
925
|
+
|
|
926
|
+
/**
|
|
927
|
+
* Minimum amount applied
|
|
928
|
+
*/
|
|
929
|
+
minimum_amount: string;
|
|
930
|
+
}
|
|
931
|
+
}
|
|
932
|
+
|
|
933
|
+
export interface BulkBpsPrice {
|
|
934
|
+
id: string;
|
|
935
|
+
|
|
936
|
+
billable_metric: BulkBpsPrice.BillableMetric | null;
|
|
937
|
+
|
|
938
|
+
bulk_bps_config: BulkBpsPrice.BulkBpsConfig;
|
|
939
|
+
|
|
940
|
+
cadence: 'one_time' | 'monthly' | 'quarterly' | 'annual';
|
|
941
|
+
|
|
942
|
+
created_at: string;
|
|
943
|
+
|
|
944
|
+
currency: string;
|
|
945
|
+
|
|
946
|
+
external_price_id: string | null;
|
|
947
|
+
|
|
948
|
+
fixed_price_quantity: number | null;
|
|
949
|
+
|
|
950
|
+
item: BulkBpsPrice.Item;
|
|
951
|
+
|
|
952
|
+
model_type: 'bulk_bps';
|
|
953
|
+
|
|
954
|
+
name: string;
|
|
955
|
+
|
|
956
|
+
plan_phase_order: number | null;
|
|
957
|
+
|
|
958
|
+
price_type: 'usage_price' | 'fixed_price';
|
|
959
|
+
|
|
960
|
+
discount?: InvoicesAPI.InvoiceDiscount | null;
|
|
961
|
+
|
|
962
|
+
maximum?: BulkBpsPrice.Maximum | null;
|
|
963
|
+
|
|
964
|
+
maximum_amount?: string | null;
|
|
965
|
+
|
|
966
|
+
minimum?: BulkBpsPrice.Minimum | null;
|
|
967
|
+
|
|
968
|
+
minimum_amount?: string | null;
|
|
969
|
+
}
|
|
970
|
+
|
|
971
|
+
export namespace BulkBpsPrice {
|
|
972
|
+
export interface BillableMetric {
|
|
973
|
+
id: string;
|
|
974
|
+
}
|
|
975
|
+
|
|
976
|
+
export interface BulkBpsConfig {
|
|
977
|
+
/**
|
|
978
|
+
* Tiers for a bulk BPS pricing model where all usage is aggregated to a single
|
|
979
|
+
* tier based on total volume
|
|
980
|
+
*/
|
|
981
|
+
tiers: Array<BulkBpsConfig.Tier>;
|
|
982
|
+
}
|
|
983
|
+
|
|
984
|
+
export namespace BulkBpsConfig {
|
|
985
|
+
export interface Tier {
|
|
986
|
+
/**
|
|
987
|
+
* Basis points to rate on
|
|
988
|
+
*/
|
|
989
|
+
bps: number;
|
|
990
|
+
|
|
991
|
+
/**
|
|
992
|
+
* Upper bound for tier
|
|
993
|
+
*/
|
|
994
|
+
maximum_amount?: string | null;
|
|
995
|
+
|
|
996
|
+
/**
|
|
997
|
+
* The maximum amount to charge for any one event
|
|
998
|
+
*/
|
|
999
|
+
per_unit_maximum?: string | null;
|
|
1000
|
+
}
|
|
1001
|
+
}
|
|
1002
|
+
|
|
1003
|
+
export interface Item {
|
|
1004
|
+
id: string;
|
|
1005
|
+
|
|
1006
|
+
name: string;
|
|
1007
|
+
}
|
|
1008
|
+
|
|
1009
|
+
export interface Maximum {
|
|
1010
|
+
/**
|
|
1011
|
+
* List of price_ids that this maximum amount applies to. For plan/plan phase
|
|
1012
|
+
* maximums, this can be a subset of prices.
|
|
1013
|
+
*/
|
|
1014
|
+
applies_to_price_ids: Array<string>;
|
|
1015
|
+
|
|
1016
|
+
/**
|
|
1017
|
+
* Maximum amount applied
|
|
1018
|
+
*/
|
|
1019
|
+
maximum_amount: string;
|
|
1020
|
+
}
|
|
1021
|
+
|
|
1022
|
+
export interface Minimum {
|
|
1023
|
+
/**
|
|
1024
|
+
* List of price_ids that this minimum amount applies to. For plan/plan phase
|
|
1025
|
+
* minimums, this can be a subset of prices.
|
|
1026
|
+
*/
|
|
1027
|
+
applies_to_price_ids: Array<string>;
|
|
1028
|
+
|
|
1029
|
+
/**
|
|
1030
|
+
* Minimum amount applied
|
|
1031
|
+
*/
|
|
1032
|
+
minimum_amount: string;
|
|
1033
|
+
}
|
|
1034
|
+
}
|
|
1035
|
+
|
|
1036
|
+
export interface BulkPrice {
|
|
1037
|
+
id: string;
|
|
1038
|
+
|
|
1039
|
+
billable_metric: BulkPrice.BillableMetric | null;
|
|
1040
|
+
|
|
1041
|
+
bulk_config: BulkPrice.BulkConfig;
|
|
1042
|
+
|
|
1043
|
+
cadence: 'one_time' | 'monthly' | 'quarterly' | 'annual';
|
|
1044
|
+
|
|
1045
|
+
created_at: string;
|
|
1046
|
+
|
|
1047
|
+
currency: string;
|
|
1048
|
+
|
|
1049
|
+
external_price_id: string | null;
|
|
1050
|
+
|
|
1051
|
+
fixed_price_quantity: number | null;
|
|
1052
|
+
|
|
1053
|
+
item: BulkPrice.Item;
|
|
1054
|
+
|
|
1055
|
+
model_type: 'bulk';
|
|
1056
|
+
|
|
1057
|
+
name: string;
|
|
1058
|
+
|
|
1059
|
+
plan_phase_order: number | null;
|
|
1060
|
+
|
|
1061
|
+
price_type: 'usage_price' | 'fixed_price';
|
|
1062
|
+
|
|
1063
|
+
discount?: InvoicesAPI.InvoiceDiscount | null;
|
|
1064
|
+
|
|
1065
|
+
maximum?: BulkPrice.Maximum | null;
|
|
1066
|
+
|
|
1067
|
+
maximum_amount?: string | null;
|
|
1068
|
+
|
|
1069
|
+
minimum?: BulkPrice.Minimum | null;
|
|
1070
|
+
|
|
1071
|
+
minimum_amount?: string | null;
|
|
1072
|
+
}
|
|
1073
|
+
|
|
1074
|
+
export namespace BulkPrice {
|
|
1075
|
+
export interface BillableMetric {
|
|
1076
|
+
id: string;
|
|
1077
|
+
}
|
|
1078
|
+
|
|
1079
|
+
export interface BulkConfig {
|
|
1080
|
+
/**
|
|
1081
|
+
* Bulk tiers for rating based on total usage volume
|
|
1082
|
+
*/
|
|
1083
|
+
tiers: Array<BulkConfig.Tier>;
|
|
1084
|
+
}
|
|
1085
|
+
|
|
1086
|
+
export namespace BulkConfig {
|
|
1087
|
+
export interface Tier {
|
|
1088
|
+
/**
|
|
1089
|
+
* Amount per unit
|
|
1090
|
+
*/
|
|
1091
|
+
unit_amount: string;
|
|
1092
|
+
|
|
1093
|
+
/**
|
|
1094
|
+
* Upper bound for this tier
|
|
1095
|
+
*/
|
|
1096
|
+
maximum_units?: number | null;
|
|
1097
|
+
}
|
|
1098
|
+
}
|
|
1099
|
+
|
|
1100
|
+
export interface Item {
|
|
1101
|
+
id: string;
|
|
1102
|
+
|
|
1103
|
+
name: string;
|
|
1104
|
+
}
|
|
1105
|
+
|
|
1106
|
+
export interface Maximum {
|
|
1107
|
+
/**
|
|
1108
|
+
* List of price_ids that this maximum amount applies to. For plan/plan phase
|
|
1109
|
+
* maximums, this can be a subset of prices.
|
|
1110
|
+
*/
|
|
1111
|
+
applies_to_price_ids: Array<string>;
|
|
1112
|
+
|
|
1113
|
+
/**
|
|
1114
|
+
* Maximum amount applied
|
|
1115
|
+
*/
|
|
1116
|
+
maximum_amount: string;
|
|
1117
|
+
}
|
|
1118
|
+
|
|
1119
|
+
export interface Minimum {
|
|
1120
|
+
/**
|
|
1121
|
+
* List of price_ids that this minimum amount applies to. For plan/plan phase
|
|
1122
|
+
* minimums, this can be a subset of prices.
|
|
1123
|
+
*/
|
|
1124
|
+
applies_to_price_ids: Array<string>;
|
|
1125
|
+
|
|
1126
|
+
/**
|
|
1127
|
+
* Minimum amount applied
|
|
1128
|
+
*/
|
|
1129
|
+
minimum_amount: string;
|
|
1130
|
+
}
|
|
1131
|
+
}
|
|
1132
|
+
|
|
1133
|
+
export interface TestRatingFunctionPrice {
|
|
1134
|
+
id: string;
|
|
1135
|
+
|
|
1136
|
+
billable_metric: TestRatingFunctionPrice.BillableMetric | null;
|
|
1137
|
+
|
|
1138
|
+
cadence: 'one_time' | 'monthly' | 'quarterly' | 'annual';
|
|
1139
|
+
|
|
1140
|
+
created_at: string;
|
|
1141
|
+
|
|
1142
|
+
currency: string;
|
|
1143
|
+
|
|
1144
|
+
external_price_id: string | null;
|
|
1145
|
+
|
|
1146
|
+
fixed_price_quantity: number | null;
|
|
1147
|
+
|
|
1148
|
+
item: TestRatingFunctionPrice.Item;
|
|
1149
|
+
|
|
1150
|
+
model_type: 'test_rating_function';
|
|
1151
|
+
|
|
1152
|
+
name: string;
|
|
1153
|
+
|
|
1154
|
+
plan_phase_order: number | null;
|
|
1155
|
+
|
|
1156
|
+
price_type: 'usage_price' | 'fixed_price';
|
|
1157
|
+
|
|
1158
|
+
test_rating_function_config: Record<string, unknown>;
|
|
1159
|
+
|
|
1160
|
+
discount?: InvoicesAPI.InvoiceDiscount | null;
|
|
1161
|
+
|
|
1162
|
+
maximum?: TestRatingFunctionPrice.Maximum | null;
|
|
1163
|
+
|
|
1164
|
+
maximum_amount?: string | null;
|
|
1165
|
+
|
|
1166
|
+
minimum?: TestRatingFunctionPrice.Minimum | null;
|
|
1167
|
+
|
|
1168
|
+
minimum_amount?: string | null;
|
|
1169
|
+
}
|
|
1170
|
+
|
|
1171
|
+
export namespace TestRatingFunctionPrice {
|
|
1172
|
+
export interface BillableMetric {
|
|
1173
|
+
id: string;
|
|
1174
|
+
}
|
|
1175
|
+
|
|
1176
|
+
export interface Item {
|
|
1177
|
+
id: string;
|
|
1178
|
+
|
|
1179
|
+
name: string;
|
|
1180
|
+
}
|
|
1181
|
+
|
|
1182
|
+
export interface Maximum {
|
|
1183
|
+
/**
|
|
1184
|
+
* List of price_ids that this maximum amount applies to. For plan/plan phase
|
|
1185
|
+
* maximums, this can be a subset of prices.
|
|
1186
|
+
*/
|
|
1187
|
+
applies_to_price_ids: Array<string>;
|
|
1188
|
+
|
|
1189
|
+
/**
|
|
1190
|
+
* Maximum amount applied
|
|
1191
|
+
*/
|
|
1192
|
+
maximum_amount: string;
|
|
1193
|
+
}
|
|
1194
|
+
|
|
1195
|
+
export interface Minimum {
|
|
1196
|
+
/**
|
|
1197
|
+
* List of price_ids that this minimum amount applies to. For plan/plan phase
|
|
1198
|
+
* minimums, this can be a subset of prices.
|
|
1199
|
+
*/
|
|
1200
|
+
applies_to_price_ids: Array<string>;
|
|
1201
|
+
|
|
1202
|
+
/**
|
|
1203
|
+
* Minimum amount applied
|
|
1204
|
+
*/
|
|
1205
|
+
minimum_amount: string;
|
|
1206
|
+
}
|
|
1207
|
+
}
|
|
1208
|
+
|
|
1209
|
+
export interface FivetranExamplePrice {
|
|
1210
|
+
id: string;
|
|
1211
|
+
|
|
1212
|
+
billable_metric: FivetranExamplePrice.BillableMetric | null;
|
|
1213
|
+
|
|
1214
|
+
cadence: 'one_time' | 'monthly' | 'quarterly' | 'annual';
|
|
1215
|
+
|
|
1216
|
+
created_at: string;
|
|
1217
|
+
|
|
1218
|
+
currency: string;
|
|
1219
|
+
|
|
1220
|
+
external_price_id: string | null;
|
|
1221
|
+
|
|
1222
|
+
fivetran_example_config: Record<string, unknown>;
|
|
1223
|
+
|
|
1224
|
+
fixed_price_quantity: number | null;
|
|
1225
|
+
|
|
1226
|
+
item: FivetranExamplePrice.Item;
|
|
1227
|
+
|
|
1228
|
+
model_type: 'fivetran_example';
|
|
1229
|
+
|
|
1230
|
+
name: string;
|
|
1231
|
+
|
|
1232
|
+
plan_phase_order: number | null;
|
|
1233
|
+
|
|
1234
|
+
price_type: 'usage_price' | 'fixed_price';
|
|
1235
|
+
|
|
1236
|
+
discount?: InvoicesAPI.InvoiceDiscount | null;
|
|
1237
|
+
|
|
1238
|
+
maximum?: FivetranExamplePrice.Maximum | null;
|
|
1239
|
+
|
|
1240
|
+
maximum_amount?: string | null;
|
|
1241
|
+
|
|
1242
|
+
minimum?: FivetranExamplePrice.Minimum | null;
|
|
1243
|
+
|
|
1244
|
+
minimum_amount?: string | null;
|
|
1245
|
+
}
|
|
1246
|
+
|
|
1247
|
+
export namespace FivetranExamplePrice {
|
|
1248
|
+
export interface BillableMetric {
|
|
1249
|
+
id: string;
|
|
1250
|
+
}
|
|
1251
|
+
|
|
1252
|
+
export interface Item {
|
|
1253
|
+
id: string;
|
|
1254
|
+
|
|
1255
|
+
name: string;
|
|
1256
|
+
}
|
|
1257
|
+
|
|
1258
|
+
export interface Maximum {
|
|
1259
|
+
/**
|
|
1260
|
+
* List of price_ids that this maximum amount applies to. For plan/plan phase
|
|
1261
|
+
* maximums, this can be a subset of prices.
|
|
1262
|
+
*/
|
|
1263
|
+
applies_to_price_ids: Array<string>;
|
|
1264
|
+
|
|
1265
|
+
/**
|
|
1266
|
+
* Maximum amount applied
|
|
1267
|
+
*/
|
|
1268
|
+
maximum_amount: string;
|
|
1269
|
+
}
|
|
1270
|
+
|
|
1271
|
+
export interface Minimum {
|
|
1272
|
+
/**
|
|
1273
|
+
* List of price_ids that this minimum amount applies to. For plan/plan phase
|
|
1274
|
+
* minimums, this can be a subset of prices.
|
|
1275
|
+
*/
|
|
1276
|
+
applies_to_price_ids: Array<string>;
|
|
1277
|
+
|
|
1278
|
+
/**
|
|
1279
|
+
* Minimum amount applied
|
|
1280
|
+
*/
|
|
1281
|
+
minimum_amount: string;
|
|
1282
|
+
}
|
|
1283
|
+
}
|
|
1284
|
+
|
|
1285
|
+
export interface ThresholdTotalAmountPrice {
|
|
1286
|
+
id: string;
|
|
1287
|
+
|
|
1288
|
+
billable_metric: ThresholdTotalAmountPrice.BillableMetric | null;
|
|
1289
|
+
|
|
1290
|
+
cadence: 'one_time' | 'monthly' | 'quarterly' | 'annual';
|
|
1291
|
+
|
|
1292
|
+
created_at: string;
|
|
1293
|
+
|
|
1294
|
+
currency: string;
|
|
1295
|
+
|
|
1296
|
+
external_price_id: string | null;
|
|
1297
|
+
|
|
1298
|
+
fixed_price_quantity: number | null;
|
|
1299
|
+
|
|
1300
|
+
item: ThresholdTotalAmountPrice.Item;
|
|
1301
|
+
|
|
1302
|
+
model_type: 'threshold_total_amount';
|
|
1303
|
+
|
|
1304
|
+
name: string;
|
|
1305
|
+
|
|
1306
|
+
plan_phase_order: number | null;
|
|
1307
|
+
|
|
1308
|
+
price_type: 'usage_price' | 'fixed_price';
|
|
1309
|
+
|
|
1310
|
+
threshold_total_amount_config: Record<string, unknown>;
|
|
1311
|
+
|
|
1312
|
+
discount?: InvoicesAPI.InvoiceDiscount | null;
|
|
1313
|
+
|
|
1314
|
+
maximum?: ThresholdTotalAmountPrice.Maximum | null;
|
|
1315
|
+
|
|
1316
|
+
maximum_amount?: string | null;
|
|
1317
|
+
|
|
1318
|
+
minimum?: ThresholdTotalAmountPrice.Minimum | null;
|
|
1319
|
+
|
|
1320
|
+
minimum_amount?: string | null;
|
|
1321
|
+
}
|
|
1322
|
+
|
|
1323
|
+
export namespace ThresholdTotalAmountPrice {
|
|
1324
|
+
export interface BillableMetric {
|
|
1325
|
+
id: string;
|
|
1326
|
+
}
|
|
1327
|
+
|
|
1328
|
+
export interface Item {
|
|
1329
|
+
id: string;
|
|
1330
|
+
|
|
1331
|
+
name: string;
|
|
1332
|
+
}
|
|
1333
|
+
|
|
1334
|
+
export interface Maximum {
|
|
1335
|
+
/**
|
|
1336
|
+
* List of price_ids that this maximum amount applies to. For plan/plan phase
|
|
1337
|
+
* maximums, this can be a subset of prices.
|
|
1338
|
+
*/
|
|
1339
|
+
applies_to_price_ids: Array<string>;
|
|
1340
|
+
|
|
1341
|
+
/**
|
|
1342
|
+
* Maximum amount applied
|
|
1343
|
+
*/
|
|
1344
|
+
maximum_amount: string;
|
|
1345
|
+
}
|
|
1346
|
+
|
|
1347
|
+
export interface Minimum {
|
|
1348
|
+
/**
|
|
1349
|
+
* List of price_ids that this minimum amount applies to. For plan/plan phase
|
|
1350
|
+
* minimums, this can be a subset of prices.
|
|
1351
|
+
*/
|
|
1352
|
+
applies_to_price_ids: Array<string>;
|
|
1353
|
+
|
|
1354
|
+
/**
|
|
1355
|
+
* Minimum amount applied
|
|
1356
|
+
*/
|
|
1357
|
+
minimum_amount: string;
|
|
1358
|
+
}
|
|
1359
|
+
}
|
|
1360
|
+
|
|
1361
|
+
export interface TieredPackagePrice {
|
|
1362
|
+
id: string;
|
|
1363
|
+
|
|
1364
|
+
billable_metric: TieredPackagePrice.BillableMetric | null;
|
|
1365
|
+
|
|
1366
|
+
cadence: 'one_time' | 'monthly' | 'quarterly' | 'annual';
|
|
1367
|
+
|
|
1368
|
+
created_at: string;
|
|
1369
|
+
|
|
1370
|
+
currency: string;
|
|
1371
|
+
|
|
1372
|
+
external_price_id: string | null;
|
|
1373
|
+
|
|
1374
|
+
fixed_price_quantity: number | null;
|
|
1375
|
+
|
|
1376
|
+
item: TieredPackagePrice.Item;
|
|
1377
|
+
|
|
1378
|
+
model_type: 'tiered_package';
|
|
1379
|
+
|
|
1380
|
+
name: string;
|
|
1381
|
+
|
|
1382
|
+
plan_phase_order: number | null;
|
|
1383
|
+
|
|
1384
|
+
price_type: 'usage_price' | 'fixed_price';
|
|
1385
|
+
|
|
1386
|
+
tiered_package_config: Record<string, unknown>;
|
|
1387
|
+
|
|
1388
|
+
discount?: InvoicesAPI.InvoiceDiscount | null;
|
|
1389
|
+
|
|
1390
|
+
maximum?: TieredPackagePrice.Maximum | null;
|
|
1391
|
+
|
|
1392
|
+
maximum_amount?: string | null;
|
|
1393
|
+
|
|
1394
|
+
minimum?: TieredPackagePrice.Minimum | null;
|
|
1395
|
+
|
|
1396
|
+
minimum_amount?: string | null;
|
|
1397
|
+
}
|
|
1398
|
+
|
|
1399
|
+
export namespace TieredPackagePrice {
|
|
1400
|
+
export interface BillableMetric {
|
|
1401
|
+
id: string;
|
|
1402
|
+
}
|
|
1403
|
+
|
|
1404
|
+
export interface Item {
|
|
1405
|
+
id: string;
|
|
1406
|
+
|
|
1407
|
+
name: string;
|
|
1408
|
+
}
|
|
1409
|
+
|
|
1410
|
+
export interface Maximum {
|
|
1411
|
+
/**
|
|
1412
|
+
* List of price_ids that this maximum amount applies to. For plan/plan phase
|
|
1413
|
+
* maximums, this can be a subset of prices.
|
|
1414
|
+
*/
|
|
1415
|
+
applies_to_price_ids: Array<string>;
|
|
1416
|
+
|
|
1417
|
+
/**
|
|
1418
|
+
* Maximum amount applied
|
|
1419
|
+
*/
|
|
1420
|
+
maximum_amount: string;
|
|
1421
|
+
}
|
|
1422
|
+
|
|
1423
|
+
export interface Minimum {
|
|
1424
|
+
/**
|
|
1425
|
+
* List of price_ids that this minimum amount applies to. For plan/plan phase
|
|
1426
|
+
* minimums, this can be a subset of prices.
|
|
1427
|
+
*/
|
|
1428
|
+
applies_to_price_ids: Array<string>;
|
|
1429
|
+
|
|
1430
|
+
/**
|
|
1431
|
+
* Minimum amount applied
|
|
1432
|
+
*/
|
|
1433
|
+
minimum_amount: string;
|
|
1434
|
+
}
|
|
1435
|
+
}
|
|
1436
|
+
|
|
1437
|
+
export interface TieredWithMinimumPrice {
|
|
1438
|
+
id: string;
|
|
1439
|
+
|
|
1440
|
+
billable_metric: TieredWithMinimumPrice.BillableMetric | null;
|
|
1441
|
+
|
|
1442
|
+
cadence: 'one_time' | 'monthly' | 'quarterly' | 'annual';
|
|
1443
|
+
|
|
1444
|
+
created_at: string;
|
|
1445
|
+
|
|
1446
|
+
currency: string;
|
|
1447
|
+
|
|
1448
|
+
external_price_id: string | null;
|
|
1449
|
+
|
|
1450
|
+
fixed_price_quantity: number | null;
|
|
1451
|
+
|
|
1452
|
+
item: TieredWithMinimumPrice.Item;
|
|
1453
|
+
|
|
1454
|
+
model_type: 'tiered_with_minimum';
|
|
1455
|
+
|
|
1456
|
+
name: string;
|
|
1457
|
+
|
|
1458
|
+
plan_phase_order: number | null;
|
|
1459
|
+
|
|
1460
|
+
price_type: 'usage_price' | 'fixed_price';
|
|
1461
|
+
|
|
1462
|
+
tiered_with_minimum_config: Record<string, unknown>;
|
|
1463
|
+
|
|
1464
|
+
discount?: InvoicesAPI.InvoiceDiscount | null;
|
|
1465
|
+
|
|
1466
|
+
maximum?: TieredWithMinimumPrice.Maximum | null;
|
|
1467
|
+
|
|
1468
|
+
maximum_amount?: string | null;
|
|
1469
|
+
|
|
1470
|
+
minimum?: TieredWithMinimumPrice.Minimum | null;
|
|
1471
|
+
|
|
1472
|
+
minimum_amount?: string | null;
|
|
1473
|
+
}
|
|
1474
|
+
|
|
1475
|
+
export namespace TieredWithMinimumPrice {
|
|
1476
|
+
export interface BillableMetric {
|
|
1477
|
+
id: string;
|
|
1478
|
+
}
|
|
1479
|
+
|
|
1480
|
+
export interface Item {
|
|
1481
|
+
id: string;
|
|
1482
|
+
|
|
1483
|
+
name: string;
|
|
1484
|
+
}
|
|
1485
|
+
|
|
1486
|
+
export interface Maximum {
|
|
1487
|
+
/**
|
|
1488
|
+
* List of price_ids that this maximum amount applies to. For plan/plan phase
|
|
1489
|
+
* maximums, this can be a subset of prices.
|
|
1490
|
+
*/
|
|
1491
|
+
applies_to_price_ids: Array<string>;
|
|
1492
|
+
|
|
1493
|
+
/**
|
|
1494
|
+
* Maximum amount applied
|
|
1495
|
+
*/
|
|
1496
|
+
maximum_amount: string;
|
|
1497
|
+
}
|
|
1498
|
+
|
|
1499
|
+
export interface Minimum {
|
|
1500
|
+
/**
|
|
1501
|
+
* List of price_ids that this minimum amount applies to. For plan/plan phase
|
|
1502
|
+
* minimums, this can be a subset of prices.
|
|
1503
|
+
*/
|
|
1504
|
+
applies_to_price_ids: Array<string>;
|
|
1505
|
+
|
|
1506
|
+
/**
|
|
1507
|
+
* Minimum amount applied
|
|
1508
|
+
*/
|
|
1509
|
+
minimum_amount: string;
|
|
1510
|
+
}
|
|
1511
|
+
}
|
|
1512
|
+
|
|
1513
|
+
export interface PackageWithAllocationPrice {
|
|
1514
|
+
id: string;
|
|
1515
|
+
|
|
1516
|
+
billable_metric: PackageWithAllocationPrice.BillableMetric | null;
|
|
1517
|
+
|
|
1518
|
+
cadence: 'one_time' | 'monthly' | 'quarterly' | 'annual';
|
|
1519
|
+
|
|
1520
|
+
created_at: string;
|
|
1521
|
+
|
|
1522
|
+
currency: string;
|
|
1523
|
+
|
|
1524
|
+
external_price_id: string | null;
|
|
1525
|
+
|
|
1526
|
+
fixed_price_quantity: number | null;
|
|
1527
|
+
|
|
1528
|
+
item: PackageWithAllocationPrice.Item;
|
|
1529
|
+
|
|
1530
|
+
model_type: 'package_with_allocation';
|
|
1531
|
+
|
|
1532
|
+
name: string;
|
|
1533
|
+
|
|
1534
|
+
package_with_allocation_config: Record<string, unknown>;
|
|
1535
|
+
|
|
1536
|
+
plan_phase_order: number | null;
|
|
1537
|
+
|
|
1538
|
+
price_type: 'usage_price' | 'fixed_price';
|
|
1539
|
+
|
|
1540
|
+
discount?: InvoicesAPI.InvoiceDiscount | null;
|
|
1541
|
+
|
|
1542
|
+
maximum?: PackageWithAllocationPrice.Maximum | null;
|
|
1543
|
+
|
|
1544
|
+
maximum_amount?: string | null;
|
|
1545
|
+
|
|
1546
|
+
minimum?: PackageWithAllocationPrice.Minimum | null;
|
|
1547
|
+
|
|
1548
|
+
minimum_amount?: string | null;
|
|
1549
|
+
}
|
|
1550
|
+
|
|
1551
|
+
export namespace PackageWithAllocationPrice {
|
|
1552
|
+
export interface BillableMetric {
|
|
1553
|
+
id: string;
|
|
1554
|
+
}
|
|
1555
|
+
|
|
1556
|
+
export interface Item {
|
|
1557
|
+
id: string;
|
|
1558
|
+
|
|
1559
|
+
name: string;
|
|
1560
|
+
}
|
|
1561
|
+
|
|
1562
|
+
export interface Maximum {
|
|
1563
|
+
/**
|
|
1564
|
+
* List of price_ids that this maximum amount applies to. For plan/plan phase
|
|
1565
|
+
* maximums, this can be a subset of prices.
|
|
1566
|
+
*/
|
|
1567
|
+
applies_to_price_ids: Array<string>;
|
|
1568
|
+
|
|
1569
|
+
/**
|
|
1570
|
+
* Maximum amount applied
|
|
1571
|
+
*/
|
|
1572
|
+
maximum_amount: string;
|
|
1573
|
+
}
|
|
1574
|
+
|
|
1575
|
+
export interface Minimum {
|
|
1576
|
+
/**
|
|
1577
|
+
* List of price_ids that this minimum amount applies to. For plan/plan phase
|
|
1578
|
+
* minimums, this can be a subset of prices.
|
|
1579
|
+
*/
|
|
1580
|
+
applies_to_price_ids: Array<string>;
|
|
1581
|
+
|
|
1582
|
+
/**
|
|
1583
|
+
* Minimum amount applied
|
|
1584
|
+
*/
|
|
1585
|
+
minimum_amount: string;
|
|
1586
|
+
}
|
|
1587
|
+
}
|
|
1588
|
+
}
|
|
1589
|
+
|
|
1590
|
+
export type PriceCreateParams =
|
|
1591
|
+
| PriceCreateParams.NewUnitPrice
|
|
1592
|
+
| PriceCreateParams.NewPackagePrice
|
|
1593
|
+
| PriceCreateParams.NewMatrixPrice
|
|
1594
|
+
| PriceCreateParams.NewTieredPrice
|
|
1595
|
+
| PriceCreateParams.NewTieredBpsPrice
|
|
1596
|
+
| PriceCreateParams.NewBpsPrice
|
|
1597
|
+
| PriceCreateParams.NewBulkBpsPrice
|
|
1598
|
+
| PriceCreateParams.NewBulkPrice
|
|
1599
|
+
| PriceCreateParams.NewThresholdTotalAmountPrice
|
|
1600
|
+
| PriceCreateParams.NewTieredPackagePrice
|
|
1601
|
+
| PriceCreateParams.NewTieredWithMinimumPrice
|
|
1602
|
+
| PriceCreateParams.NewPackageWithAllocationPrice;
|
|
1603
|
+
|
|
1604
|
+
export namespace PriceCreateParams {
|
|
1605
|
+
export interface NewUnitPrice {
|
|
1606
|
+
/**
|
|
1607
|
+
* The cadence to bill for this price on.
|
|
1608
|
+
*/
|
|
1609
|
+
cadence: 'annual' | 'monthly' | 'quarterly';
|
|
1610
|
+
|
|
1611
|
+
/**
|
|
1612
|
+
* An ISO 4217 currency string for which this price is billed in.
|
|
1613
|
+
*/
|
|
1614
|
+
currency: string;
|
|
1615
|
+
|
|
1616
|
+
/**
|
|
1617
|
+
* The id of the item the plan will be associated with.
|
|
1618
|
+
*/
|
|
1619
|
+
item_id: string;
|
|
1620
|
+
|
|
1621
|
+
model_type: 'unit';
|
|
1622
|
+
|
|
1623
|
+
/**
|
|
1624
|
+
* The name of the price.
|
|
1625
|
+
*/
|
|
1626
|
+
name: string;
|
|
1627
|
+
|
|
1628
|
+
unit_config: PriceCreateParams.NewUnitPrice.UnitConfig;
|
|
1629
|
+
|
|
1630
|
+
/**
|
|
1631
|
+
* The id of the billable metric for the price. Only needed if the price is
|
|
1632
|
+
* usage-based.
|
|
1633
|
+
*/
|
|
1634
|
+
billable_metric_id?: string | null;
|
|
1635
|
+
|
|
1636
|
+
/**
|
|
1637
|
+
* If the Price represents a fixed cost, the price will be billed in-advance if
|
|
1638
|
+
* this is true, and in-arrears if this is false.
|
|
1639
|
+
*/
|
|
1640
|
+
billed_in_advance?: boolean | null;
|
|
1641
|
+
|
|
1642
|
+
/**
|
|
1643
|
+
* An alias for the price.
|
|
1644
|
+
*/
|
|
1645
|
+
external_price_id?: string | null;
|
|
1646
|
+
|
|
1647
|
+
/**
|
|
1648
|
+
* If the Price represents a fixed cost, this represents the quantity of units
|
|
1649
|
+
* applied.
|
|
1650
|
+
*/
|
|
1651
|
+
fixed_price_quantity?: number | null;
|
|
1652
|
+
|
|
1653
|
+
/**
|
|
1654
|
+
* The property used to group this price on an invoice
|
|
1655
|
+
*/
|
|
1656
|
+
invoice_grouping_key?: string | null;
|
|
1657
|
+
}
|
|
1658
|
+
|
|
1659
|
+
export namespace NewUnitPrice {
|
|
1660
|
+
export interface UnitConfig {
|
|
1661
|
+
/**
|
|
1662
|
+
* Rate per unit of usage
|
|
1663
|
+
*/
|
|
1664
|
+
unit_amount: string;
|
|
1665
|
+
|
|
1666
|
+
/**
|
|
1667
|
+
* Multiplier to scale rated quantity by
|
|
1668
|
+
*/
|
|
1669
|
+
scaling_factor?: number | null;
|
|
1670
|
+
}
|
|
1671
|
+
}
|
|
1672
|
+
|
|
1673
|
+
export interface NewPackagePrice {
|
|
1674
|
+
/**
|
|
1675
|
+
* The cadence to bill for this price on.
|
|
1676
|
+
*/
|
|
1677
|
+
cadence: 'annual' | 'monthly' | 'quarterly';
|
|
1678
|
+
|
|
1679
|
+
/**
|
|
1680
|
+
* An ISO 4217 currency string for which this price is billed in.
|
|
1681
|
+
*/
|
|
1682
|
+
currency: string;
|
|
1683
|
+
|
|
1684
|
+
/**
|
|
1685
|
+
* The id of the item the plan will be associated with.
|
|
1686
|
+
*/
|
|
1687
|
+
item_id: string;
|
|
1688
|
+
|
|
1689
|
+
model_type: 'package';
|
|
1690
|
+
|
|
1691
|
+
/**
|
|
1692
|
+
* The name of the price.
|
|
1693
|
+
*/
|
|
1694
|
+
name: string;
|
|
1695
|
+
|
|
1696
|
+
package_config: PriceCreateParams.NewPackagePrice.PackageConfig;
|
|
1697
|
+
|
|
1698
|
+
/**
|
|
1699
|
+
* The id of the billable metric for the price. Only needed if the price is
|
|
1700
|
+
* usage-based.
|
|
1701
|
+
*/
|
|
1702
|
+
billable_metric_id?: string | null;
|
|
1703
|
+
|
|
1704
|
+
/**
|
|
1705
|
+
* If the Price represents a fixed cost, the price will be billed in-advance if
|
|
1706
|
+
* this is true, and in-arrears if this is false.
|
|
1707
|
+
*/
|
|
1708
|
+
billed_in_advance?: boolean | null;
|
|
1709
|
+
|
|
1710
|
+
/**
|
|
1711
|
+
* An alias for the price.
|
|
1712
|
+
*/
|
|
1713
|
+
external_price_id?: string | null;
|
|
1714
|
+
|
|
1715
|
+
/**
|
|
1716
|
+
* If the Price represents a fixed cost, this represents the quantity of units
|
|
1717
|
+
* applied.
|
|
1718
|
+
*/
|
|
1719
|
+
fixed_price_quantity?: number | null;
|
|
1720
|
+
|
|
1721
|
+
/**
|
|
1722
|
+
* The property used to group this price on an invoice
|
|
1723
|
+
*/
|
|
1724
|
+
invoice_grouping_key?: string | null;
|
|
1725
|
+
}
|
|
1726
|
+
|
|
1727
|
+
export namespace NewPackagePrice {
|
|
1728
|
+
export interface PackageConfig {
|
|
1729
|
+
/**
|
|
1730
|
+
* A currency amount to rate usage by
|
|
1731
|
+
*/
|
|
1732
|
+
package_amount: string;
|
|
1733
|
+
|
|
1734
|
+
/**
|
|
1735
|
+
* An integer amount to represent package size. For example, 1000 here would divide
|
|
1736
|
+
* usage by 1000 before multiplying by package_amount in rating
|
|
1737
|
+
*/
|
|
1738
|
+
package_size?: number | null;
|
|
1739
|
+
}
|
|
1740
|
+
}
|
|
1741
|
+
|
|
1742
|
+
export interface NewMatrixPrice {
|
|
1743
|
+
/**
|
|
1744
|
+
* The cadence to bill for this price on.
|
|
1745
|
+
*/
|
|
1746
|
+
cadence: 'annual' | 'monthly' | 'quarterly';
|
|
1747
|
+
|
|
1748
|
+
/**
|
|
1749
|
+
* An ISO 4217 currency string for which this price is billed in.
|
|
1750
|
+
*/
|
|
1751
|
+
currency: string;
|
|
1752
|
+
|
|
1753
|
+
/**
|
|
1754
|
+
* The id of the item the plan will be associated with.
|
|
1755
|
+
*/
|
|
1756
|
+
item_id: string;
|
|
1757
|
+
|
|
1758
|
+
matrix_config: PriceCreateParams.NewMatrixPrice.MatrixConfig;
|
|
1759
|
+
|
|
1760
|
+
model_type: 'matrix';
|
|
1761
|
+
|
|
1762
|
+
/**
|
|
1763
|
+
* The name of the price.
|
|
1764
|
+
*/
|
|
1765
|
+
name: string;
|
|
1766
|
+
|
|
1767
|
+
/**
|
|
1768
|
+
* The id of the billable metric for the price. Only needed if the price is
|
|
1769
|
+
* usage-based.
|
|
1770
|
+
*/
|
|
1771
|
+
billable_metric_id?: string | null;
|
|
1772
|
+
|
|
1773
|
+
/**
|
|
1774
|
+
* If the Price represents a fixed cost, the price will be billed in-advance if
|
|
1775
|
+
* this is true, and in-arrears if this is false.
|
|
1776
|
+
*/
|
|
1777
|
+
billed_in_advance?: boolean | null;
|
|
1778
|
+
|
|
1779
|
+
/**
|
|
1780
|
+
* An alias for the price.
|
|
1781
|
+
*/
|
|
1782
|
+
external_price_id?: string | null;
|
|
1783
|
+
|
|
1784
|
+
/**
|
|
1785
|
+
* If the Price represents a fixed cost, this represents the quantity of units
|
|
1786
|
+
* applied.
|
|
1787
|
+
*/
|
|
1788
|
+
fixed_price_quantity?: number | null;
|
|
1789
|
+
|
|
1790
|
+
/**
|
|
1791
|
+
* The property used to group this price on an invoice
|
|
1792
|
+
*/
|
|
1793
|
+
invoice_grouping_key?: string | null;
|
|
1794
|
+
}
|
|
1795
|
+
|
|
1796
|
+
export namespace NewMatrixPrice {
|
|
1797
|
+
export interface MatrixConfig {
|
|
1798
|
+
/**
|
|
1799
|
+
* Default per unit rate for any usage not bucketed into a specified matrix_value
|
|
1800
|
+
*/
|
|
1801
|
+
default_unit_amount: string;
|
|
1802
|
+
|
|
1803
|
+
/**
|
|
1804
|
+
* One or two event property values to evaluate matrix groups by
|
|
1805
|
+
*/
|
|
1806
|
+
dimensions: Array<string | null>;
|
|
1807
|
+
|
|
1808
|
+
/**
|
|
1809
|
+
* Matrix values for specified matrix grouping keys
|
|
1810
|
+
*/
|
|
1811
|
+
matrix_values: Array<MatrixConfig.MatrixValue>;
|
|
1812
|
+
|
|
1813
|
+
/**
|
|
1814
|
+
* Default optional multiplier to scale rated quantities that fall into the default
|
|
1815
|
+
* bucket by
|
|
1816
|
+
*/
|
|
1817
|
+
scaling_factor?: number | null;
|
|
1818
|
+
}
|
|
1819
|
+
|
|
1820
|
+
export namespace MatrixConfig {
|
|
1821
|
+
export interface MatrixValue {
|
|
1822
|
+
/**
|
|
1823
|
+
* One or two matrix keys to filter usage to this Matrix value by. For example,
|
|
1824
|
+
* ["region", "tier"] could be used to filter cloud usage by a cloud region and an
|
|
1825
|
+
* instance tier.
|
|
1826
|
+
*/
|
|
1827
|
+
dimension_values: Array<string | null>;
|
|
1828
|
+
|
|
1829
|
+
/**
|
|
1830
|
+
* Unit price for the specified dimension_values
|
|
1831
|
+
*/
|
|
1832
|
+
unit_amount: string;
|
|
1833
|
+
|
|
1834
|
+
/**
|
|
1835
|
+
* Optional multiplier to scale rated quantities by
|
|
1836
|
+
*/
|
|
1837
|
+
scaling_factor?: number | null;
|
|
1838
|
+
}
|
|
1839
|
+
}
|
|
1840
|
+
}
|
|
1841
|
+
|
|
1842
|
+
export interface NewTieredPrice {
|
|
1843
|
+
/**
|
|
1844
|
+
* The cadence to bill for this price on.
|
|
1845
|
+
*/
|
|
1846
|
+
cadence: 'annual' | 'monthly' | 'quarterly';
|
|
1847
|
+
|
|
1848
|
+
/**
|
|
1849
|
+
* An ISO 4217 currency string for which this price is billed in.
|
|
1850
|
+
*/
|
|
1851
|
+
currency: string;
|
|
1852
|
+
|
|
1853
|
+
/**
|
|
1854
|
+
* The id of the item the plan will be associated with.
|
|
1855
|
+
*/
|
|
1856
|
+
item_id: string;
|
|
1857
|
+
|
|
1858
|
+
model_type: 'tiered';
|
|
1859
|
+
|
|
1860
|
+
/**
|
|
1861
|
+
* The name of the price.
|
|
1862
|
+
*/
|
|
1863
|
+
name: string;
|
|
1864
|
+
|
|
1865
|
+
tiered_config: PriceCreateParams.NewTieredPrice.TieredConfig;
|
|
1866
|
+
|
|
1867
|
+
/**
|
|
1868
|
+
* The id of the billable metric for the price. Only needed if the price is
|
|
1869
|
+
* usage-based.
|
|
1870
|
+
*/
|
|
1871
|
+
billable_metric_id?: string | null;
|
|
1872
|
+
|
|
1873
|
+
/**
|
|
1874
|
+
* If the Price represents a fixed cost, the price will be billed in-advance if
|
|
1875
|
+
* this is true, and in-arrears if this is false.
|
|
1876
|
+
*/
|
|
1877
|
+
billed_in_advance?: boolean | null;
|
|
1878
|
+
|
|
1879
|
+
/**
|
|
1880
|
+
* An alias for the price.
|
|
1881
|
+
*/
|
|
1882
|
+
external_price_id?: string | null;
|
|
1883
|
+
|
|
1884
|
+
/**
|
|
1885
|
+
* If the Price represents a fixed cost, this represents the quantity of units
|
|
1886
|
+
* applied.
|
|
1887
|
+
*/
|
|
1888
|
+
fixed_price_quantity?: number | null;
|
|
1889
|
+
|
|
1890
|
+
/**
|
|
1891
|
+
* The property used to group this price on an invoice
|
|
1892
|
+
*/
|
|
1893
|
+
invoice_grouping_key?: string | null;
|
|
1894
|
+
}
|
|
1895
|
+
|
|
1896
|
+
export namespace NewTieredPrice {
|
|
1897
|
+
export interface TieredConfig {
|
|
1898
|
+
/**
|
|
1899
|
+
* Tiers for rating based on total usage quantities into the specified tier
|
|
1900
|
+
*/
|
|
1901
|
+
tiers: Array<TieredConfig.Tier>;
|
|
1902
|
+
}
|
|
1903
|
+
|
|
1904
|
+
export namespace TieredConfig {
|
|
1905
|
+
export interface Tier {
|
|
1906
|
+
/**
|
|
1907
|
+
* Inclusive tier starting value
|
|
1908
|
+
*/
|
|
1909
|
+
first_unit: number;
|
|
1910
|
+
|
|
1911
|
+
/**
|
|
1912
|
+
* Amount per unit
|
|
1913
|
+
*/
|
|
1914
|
+
unit_amount: string;
|
|
1915
|
+
|
|
1916
|
+
/**
|
|
1917
|
+
* Exclusive tier ending value. If null, this is treated as the last tier
|
|
1918
|
+
*/
|
|
1919
|
+
last_unit?: number | null;
|
|
1920
|
+
}
|
|
1921
|
+
}
|
|
1922
|
+
}
|
|
1923
|
+
|
|
1924
|
+
export interface NewTieredBpsPrice {
|
|
1925
|
+
/**
|
|
1926
|
+
* The cadence to bill for this price on.
|
|
1927
|
+
*/
|
|
1928
|
+
cadence: 'annual' | 'monthly' | 'quarterly';
|
|
1929
|
+
|
|
1930
|
+
/**
|
|
1931
|
+
* An ISO 4217 currency string for which this price is billed in.
|
|
1932
|
+
*/
|
|
1933
|
+
currency: string;
|
|
1934
|
+
|
|
1935
|
+
/**
|
|
1936
|
+
* The id of the item the plan will be associated with.
|
|
1937
|
+
*/
|
|
1938
|
+
item_id: string;
|
|
1939
|
+
|
|
1940
|
+
model_type: 'tiered_bps';
|
|
1941
|
+
|
|
1942
|
+
/**
|
|
1943
|
+
* The name of the price.
|
|
1944
|
+
*/
|
|
1945
|
+
name: string;
|
|
1946
|
+
|
|
1947
|
+
tiered_bps_config: PriceCreateParams.NewTieredBpsPrice.TieredBpsConfig;
|
|
1948
|
+
|
|
1949
|
+
/**
|
|
1950
|
+
* The id of the billable metric for the price. Only needed if the price is
|
|
1951
|
+
* usage-based.
|
|
1952
|
+
*/
|
|
1953
|
+
billable_metric_id?: string | null;
|
|
1954
|
+
|
|
1955
|
+
/**
|
|
1956
|
+
* If the Price represents a fixed cost, the price will be billed in-advance if
|
|
1957
|
+
* this is true, and in-arrears if this is false.
|
|
1958
|
+
*/
|
|
1959
|
+
billed_in_advance?: boolean | null;
|
|
1960
|
+
|
|
1961
|
+
/**
|
|
1962
|
+
* An alias for the price.
|
|
1963
|
+
*/
|
|
1964
|
+
external_price_id?: string | null;
|
|
1965
|
+
|
|
1966
|
+
/**
|
|
1967
|
+
* If the Price represents a fixed cost, this represents the quantity of units
|
|
1968
|
+
* applied.
|
|
1969
|
+
*/
|
|
1970
|
+
fixed_price_quantity?: number | null;
|
|
1971
|
+
|
|
1972
|
+
/**
|
|
1973
|
+
* The property used to group this price on an invoice
|
|
1974
|
+
*/
|
|
1975
|
+
invoice_grouping_key?: string | null;
|
|
1976
|
+
}
|
|
1977
|
+
|
|
1978
|
+
export namespace NewTieredBpsPrice {
|
|
1979
|
+
export interface TieredBpsConfig {
|
|
1980
|
+
/**
|
|
1981
|
+
* Tiers for a Graduated BPS pricing model, where usage is bucketed into specified
|
|
1982
|
+
* tiers
|
|
1983
|
+
*/
|
|
1984
|
+
tiers: Array<TieredBpsConfig.Tier>;
|
|
1985
|
+
}
|
|
1986
|
+
|
|
1987
|
+
export namespace TieredBpsConfig {
|
|
1988
|
+
export interface Tier {
|
|
1989
|
+
/**
|
|
1990
|
+
* Per-event basis point rate
|
|
1991
|
+
*/
|
|
1992
|
+
bps: number;
|
|
1993
|
+
|
|
1994
|
+
/**
|
|
1995
|
+
* Inclusive tier starting value
|
|
1996
|
+
*/
|
|
1997
|
+
minimum_amount: string;
|
|
1998
|
+
|
|
1999
|
+
/**
|
|
2000
|
+
* Exclusive tier ending value
|
|
2001
|
+
*/
|
|
2002
|
+
maximum_amount?: string | null;
|
|
2003
|
+
|
|
2004
|
+
/**
|
|
2005
|
+
* Per unit maximum to charge
|
|
2006
|
+
*/
|
|
2007
|
+
per_unit_maximum?: string | null;
|
|
2008
|
+
}
|
|
2009
|
+
}
|
|
2010
|
+
}
|
|
2011
|
+
|
|
2012
|
+
export interface NewBpsPrice {
|
|
2013
|
+
bps_config: PriceCreateParams.NewBpsPrice.BpsConfig;
|
|
2014
|
+
|
|
2015
|
+
/**
|
|
2016
|
+
* The cadence to bill for this price on.
|
|
2017
|
+
*/
|
|
2018
|
+
cadence: 'annual' | 'monthly' | 'quarterly';
|
|
2019
|
+
|
|
2020
|
+
/**
|
|
2021
|
+
* An ISO 4217 currency string for which this price is billed in.
|
|
2022
|
+
*/
|
|
2023
|
+
currency: string;
|
|
2024
|
+
|
|
2025
|
+
/**
|
|
2026
|
+
* The id of the item the plan will be associated with.
|
|
2027
|
+
*/
|
|
2028
|
+
item_id: string;
|
|
2029
|
+
|
|
2030
|
+
model_type: 'bps';
|
|
2031
|
+
|
|
2032
|
+
/**
|
|
2033
|
+
* The name of the price.
|
|
2034
|
+
*/
|
|
2035
|
+
name: string;
|
|
2036
|
+
|
|
2037
|
+
/**
|
|
2038
|
+
* The id of the billable metric for the price. Only needed if the price is
|
|
2039
|
+
* usage-based.
|
|
2040
|
+
*/
|
|
2041
|
+
billable_metric_id?: string | null;
|
|
2042
|
+
|
|
2043
|
+
/**
|
|
2044
|
+
* If the Price represents a fixed cost, the price will be billed in-advance if
|
|
2045
|
+
* this is true, and in-arrears if this is false.
|
|
2046
|
+
*/
|
|
2047
|
+
billed_in_advance?: boolean | null;
|
|
2048
|
+
|
|
2049
|
+
/**
|
|
2050
|
+
* An alias for the price.
|
|
2051
|
+
*/
|
|
2052
|
+
external_price_id?: string | null;
|
|
2053
|
+
|
|
2054
|
+
/**
|
|
2055
|
+
* If the Price represents a fixed cost, this represents the quantity of units
|
|
2056
|
+
* applied.
|
|
2057
|
+
*/
|
|
2058
|
+
fixed_price_quantity?: number | null;
|
|
2059
|
+
|
|
2060
|
+
/**
|
|
2061
|
+
* The property used to group this price on an invoice
|
|
2062
|
+
*/
|
|
2063
|
+
invoice_grouping_key?: string | null;
|
|
2064
|
+
}
|
|
2065
|
+
|
|
2066
|
+
export namespace NewBpsPrice {
|
|
2067
|
+
export interface BpsConfig {
|
|
2068
|
+
/**
|
|
2069
|
+
* Basis point take rate per event
|
|
2070
|
+
*/
|
|
2071
|
+
bps: number;
|
|
2072
|
+
|
|
2073
|
+
/**
|
|
2074
|
+
* Optional currency amount maximum to cap spend per event
|
|
2075
|
+
*/
|
|
2076
|
+
per_unit_maximum?: string | null;
|
|
2077
|
+
}
|
|
2078
|
+
}
|
|
2079
|
+
|
|
2080
|
+
export interface NewBulkBpsPrice {
|
|
2081
|
+
bulk_bps_config: PriceCreateParams.NewBulkBpsPrice.BulkBpsConfig;
|
|
2082
|
+
|
|
2083
|
+
/**
|
|
2084
|
+
* The cadence to bill for this price on.
|
|
2085
|
+
*/
|
|
2086
|
+
cadence: 'annual' | 'monthly' | 'quarterly';
|
|
2087
|
+
|
|
2088
|
+
/**
|
|
2089
|
+
* An ISO 4217 currency string for which this price is billed in.
|
|
2090
|
+
*/
|
|
2091
|
+
currency: string;
|
|
2092
|
+
|
|
2093
|
+
/**
|
|
2094
|
+
* The id of the item the plan will be associated with.
|
|
2095
|
+
*/
|
|
2096
|
+
item_id: string;
|
|
2097
|
+
|
|
2098
|
+
model_type: 'bulk_bps';
|
|
2099
|
+
|
|
2100
|
+
/**
|
|
2101
|
+
* The name of the price.
|
|
2102
|
+
*/
|
|
2103
|
+
name: string;
|
|
2104
|
+
|
|
2105
|
+
/**
|
|
2106
|
+
* The id of the billable metric for the price. Only needed if the price is
|
|
2107
|
+
* usage-based.
|
|
2108
|
+
*/
|
|
2109
|
+
billable_metric_id?: string | null;
|
|
2110
|
+
|
|
2111
|
+
/**
|
|
2112
|
+
* If the Price represents a fixed cost, the price will be billed in-advance if
|
|
2113
|
+
* this is true, and in-arrears if this is false.
|
|
2114
|
+
*/
|
|
2115
|
+
billed_in_advance?: boolean | null;
|
|
2116
|
+
|
|
2117
|
+
/**
|
|
2118
|
+
* An alias for the price.
|
|
2119
|
+
*/
|
|
2120
|
+
external_price_id?: string | null;
|
|
2121
|
+
|
|
2122
|
+
/**
|
|
2123
|
+
* If the Price represents a fixed cost, this represents the quantity of units
|
|
2124
|
+
* applied.
|
|
2125
|
+
*/
|
|
2126
|
+
fixed_price_quantity?: number | null;
|
|
2127
|
+
|
|
2128
|
+
/**
|
|
2129
|
+
* The property used to group this price on an invoice
|
|
2130
|
+
*/
|
|
2131
|
+
invoice_grouping_key?: string | null;
|
|
2132
|
+
}
|
|
2133
|
+
|
|
2134
|
+
export namespace NewBulkBpsPrice {
|
|
2135
|
+
export interface BulkBpsConfig {
|
|
2136
|
+
/**
|
|
2137
|
+
* Tiers for a bulk BPS pricing model where all usage is aggregated to a single
|
|
2138
|
+
* tier based on total volume
|
|
2139
|
+
*/
|
|
2140
|
+
tiers: Array<BulkBpsConfig.Tier>;
|
|
2141
|
+
}
|
|
2142
|
+
|
|
2143
|
+
export namespace BulkBpsConfig {
|
|
2144
|
+
export interface Tier {
|
|
2145
|
+
/**
|
|
2146
|
+
* Basis points to rate on
|
|
2147
|
+
*/
|
|
2148
|
+
bps: number;
|
|
2149
|
+
|
|
2150
|
+
/**
|
|
2151
|
+
* Upper bound for tier
|
|
2152
|
+
*/
|
|
2153
|
+
maximum_amount?: string | null;
|
|
2154
|
+
|
|
2155
|
+
/**
|
|
2156
|
+
* The maximum amount to charge for any one event
|
|
2157
|
+
*/
|
|
2158
|
+
per_unit_maximum?: string | null;
|
|
2159
|
+
}
|
|
2160
|
+
}
|
|
2161
|
+
}
|
|
2162
|
+
|
|
2163
|
+
export interface NewBulkPrice {
|
|
2164
|
+
bulk_config: PriceCreateParams.NewBulkPrice.BulkConfig;
|
|
2165
|
+
|
|
2166
|
+
/**
|
|
2167
|
+
* The cadence to bill for this price on.
|
|
2168
|
+
*/
|
|
2169
|
+
cadence: 'annual' | 'monthly' | 'quarterly';
|
|
2170
|
+
|
|
2171
|
+
/**
|
|
2172
|
+
* An ISO 4217 currency string for which this price is billed in.
|
|
2173
|
+
*/
|
|
2174
|
+
currency: string;
|
|
2175
|
+
|
|
2176
|
+
/**
|
|
2177
|
+
* The id of the item the plan will be associated with.
|
|
2178
|
+
*/
|
|
2179
|
+
item_id: string;
|
|
2180
|
+
|
|
2181
|
+
model_type: 'bulk';
|
|
2182
|
+
|
|
2183
|
+
/**
|
|
2184
|
+
* The name of the price.
|
|
2185
|
+
*/
|
|
2186
|
+
name: string;
|
|
2187
|
+
|
|
2188
|
+
/**
|
|
2189
|
+
* The id of the billable metric for the price. Only needed if the price is
|
|
2190
|
+
* usage-based.
|
|
2191
|
+
*/
|
|
2192
|
+
billable_metric_id?: string | null;
|
|
2193
|
+
|
|
2194
|
+
/**
|
|
2195
|
+
* If the Price represents a fixed cost, the price will be billed in-advance if
|
|
2196
|
+
* this is true, and in-arrears if this is false.
|
|
2197
|
+
*/
|
|
2198
|
+
billed_in_advance?: boolean | null;
|
|
2199
|
+
|
|
2200
|
+
/**
|
|
2201
|
+
* An alias for the price.
|
|
2202
|
+
*/
|
|
2203
|
+
external_price_id?: string | null;
|
|
2204
|
+
|
|
2205
|
+
/**
|
|
2206
|
+
* If the Price represents a fixed cost, this represents the quantity of units
|
|
2207
|
+
* applied.
|
|
2208
|
+
*/
|
|
2209
|
+
fixed_price_quantity?: number | null;
|
|
2210
|
+
|
|
2211
|
+
/**
|
|
2212
|
+
* The property used to group this price on an invoice
|
|
2213
|
+
*/
|
|
2214
|
+
invoice_grouping_key?: string | null;
|
|
2215
|
+
}
|
|
2216
|
+
|
|
2217
|
+
export namespace NewBulkPrice {
|
|
2218
|
+
export interface BulkConfig {
|
|
2219
|
+
/**
|
|
2220
|
+
* Bulk tiers for rating based on total usage volume
|
|
2221
|
+
*/
|
|
2222
|
+
tiers: Array<BulkConfig.Tier>;
|
|
2223
|
+
}
|
|
2224
|
+
|
|
2225
|
+
export namespace BulkConfig {
|
|
2226
|
+
export interface Tier {
|
|
2227
|
+
/**
|
|
2228
|
+
* Amount per unit
|
|
2229
|
+
*/
|
|
2230
|
+
unit_amount: string;
|
|
2231
|
+
|
|
2232
|
+
/**
|
|
2233
|
+
* Upper bound for this tier
|
|
2234
|
+
*/
|
|
2235
|
+
maximum_units?: number | null;
|
|
2236
|
+
}
|
|
2237
|
+
}
|
|
2238
|
+
}
|
|
2239
|
+
|
|
2240
|
+
export interface NewThresholdTotalAmountPrice {
|
|
2241
|
+
/**
|
|
2242
|
+
* The cadence to bill for this price on.
|
|
2243
|
+
*/
|
|
2244
|
+
cadence: 'annual' | 'monthly' | 'quarterly';
|
|
2245
|
+
|
|
2246
|
+
/**
|
|
2247
|
+
* An ISO 4217 currency string for which this price is billed in.
|
|
2248
|
+
*/
|
|
2249
|
+
currency: string;
|
|
2250
|
+
|
|
2251
|
+
/**
|
|
2252
|
+
* The id of the item the plan will be associated with.
|
|
2253
|
+
*/
|
|
2254
|
+
item_id: string;
|
|
2255
|
+
|
|
2256
|
+
model_type: 'threshold_total_amount';
|
|
2257
|
+
|
|
2258
|
+
/**
|
|
2259
|
+
* The name of the price.
|
|
2260
|
+
*/
|
|
2261
|
+
name: string;
|
|
2262
|
+
|
|
2263
|
+
threshold_total_amount_config: Record<string, unknown>;
|
|
2264
|
+
|
|
2265
|
+
/**
|
|
2266
|
+
* The id of the billable metric for the price. Only needed if the price is
|
|
2267
|
+
* usage-based.
|
|
2268
|
+
*/
|
|
2269
|
+
billable_metric_id?: string | null;
|
|
2270
|
+
|
|
2271
|
+
/**
|
|
2272
|
+
* If the Price represents a fixed cost, the price will be billed in-advance if
|
|
2273
|
+
* this is true, and in-arrears if this is false.
|
|
2274
|
+
*/
|
|
2275
|
+
billed_in_advance?: boolean | null;
|
|
2276
|
+
|
|
2277
|
+
/**
|
|
2278
|
+
* An alias for the price.
|
|
2279
|
+
*/
|
|
2280
|
+
external_price_id?: string | null;
|
|
2281
|
+
|
|
2282
|
+
/**
|
|
2283
|
+
* If the Price represents a fixed cost, this represents the quantity of units
|
|
2284
|
+
* applied.
|
|
2285
|
+
*/
|
|
2286
|
+
fixed_price_quantity?: number | null;
|
|
2287
|
+
|
|
2288
|
+
/**
|
|
2289
|
+
* The property used to group this price on an invoice
|
|
2290
|
+
*/
|
|
2291
|
+
invoice_grouping_key?: string | null;
|
|
2292
|
+
}
|
|
2293
|
+
|
|
2294
|
+
export interface NewTieredPackagePrice {
|
|
2295
|
+
/**
|
|
2296
|
+
* The cadence to bill for this price on.
|
|
2297
|
+
*/
|
|
2298
|
+
cadence: 'annual' | 'monthly' | 'quarterly';
|
|
2299
|
+
|
|
2300
|
+
/**
|
|
2301
|
+
* An ISO 4217 currency string for which this price is billed in.
|
|
2302
|
+
*/
|
|
2303
|
+
currency: string;
|
|
2304
|
+
|
|
2305
|
+
/**
|
|
2306
|
+
* The id of the item the plan will be associated with.
|
|
2307
|
+
*/
|
|
2308
|
+
item_id: string;
|
|
2309
|
+
|
|
2310
|
+
model_type: 'tiered_package';
|
|
2311
|
+
|
|
2312
|
+
/**
|
|
2313
|
+
* The name of the price.
|
|
2314
|
+
*/
|
|
2315
|
+
name: string;
|
|
2316
|
+
|
|
2317
|
+
tiered_package_config: Record<string, unknown>;
|
|
2318
|
+
|
|
2319
|
+
/**
|
|
2320
|
+
* The id of the billable metric for the price. Only needed if the price is
|
|
2321
|
+
* usage-based.
|
|
2322
|
+
*/
|
|
2323
|
+
billable_metric_id?: string | null;
|
|
2324
|
+
|
|
2325
|
+
/**
|
|
2326
|
+
* If the Price represents a fixed cost, the price will be billed in-advance if
|
|
2327
|
+
* this is true, and in-arrears if this is false.
|
|
2328
|
+
*/
|
|
2329
|
+
billed_in_advance?: boolean | null;
|
|
2330
|
+
|
|
2331
|
+
/**
|
|
2332
|
+
* An alias for the price.
|
|
2333
|
+
*/
|
|
2334
|
+
external_price_id?: string | null;
|
|
2335
|
+
|
|
2336
|
+
/**
|
|
2337
|
+
* If the Price represents a fixed cost, this represents the quantity of units
|
|
2338
|
+
* applied.
|
|
2339
|
+
*/
|
|
2340
|
+
fixed_price_quantity?: number | null;
|
|
2341
|
+
|
|
2342
|
+
/**
|
|
2343
|
+
* The property used to group this price on an invoice
|
|
2344
|
+
*/
|
|
2345
|
+
invoice_grouping_key?: string | null;
|
|
2346
|
+
}
|
|
2347
|
+
|
|
2348
|
+
export interface NewTieredWithMinimumPrice {
|
|
2349
|
+
/**
|
|
2350
|
+
* The cadence to bill for this price on.
|
|
2351
|
+
*/
|
|
2352
|
+
cadence: 'annual' | 'monthly' | 'quarterly';
|
|
2353
|
+
|
|
2354
|
+
/**
|
|
2355
|
+
* An ISO 4217 currency string for which this price is billed in.
|
|
2356
|
+
*/
|
|
2357
|
+
currency: string;
|
|
2358
|
+
|
|
2359
|
+
/**
|
|
2360
|
+
* The id of the item the plan will be associated with.
|
|
2361
|
+
*/
|
|
2362
|
+
item_id: string;
|
|
2363
|
+
|
|
2364
|
+
model_type: 'tiered_with_minimum';
|
|
2365
|
+
|
|
2366
|
+
/**
|
|
2367
|
+
* The name of the price.
|
|
2368
|
+
*/
|
|
2369
|
+
name: string;
|
|
2370
|
+
|
|
2371
|
+
tiered_with_minimum_config: Record<string, unknown>;
|
|
2372
|
+
|
|
2373
|
+
/**
|
|
2374
|
+
* The id of the billable metric for the price. Only needed if the price is
|
|
2375
|
+
* usage-based.
|
|
2376
|
+
*/
|
|
2377
|
+
billable_metric_id?: string | null;
|
|
2378
|
+
|
|
2379
|
+
/**
|
|
2380
|
+
* If the Price represents a fixed cost, the price will be billed in-advance if
|
|
2381
|
+
* this is true, and in-arrears if this is false.
|
|
2382
|
+
*/
|
|
2383
|
+
billed_in_advance?: boolean | null;
|
|
2384
|
+
|
|
2385
|
+
/**
|
|
2386
|
+
* An alias for the price.
|
|
2387
|
+
*/
|
|
2388
|
+
external_price_id?: string | null;
|
|
2389
|
+
|
|
2390
|
+
/**
|
|
2391
|
+
* If the Price represents a fixed cost, this represents the quantity of units
|
|
2392
|
+
* applied.
|
|
2393
|
+
*/
|
|
2394
|
+
fixed_price_quantity?: number | null;
|
|
2395
|
+
|
|
2396
|
+
/**
|
|
2397
|
+
* The property used to group this price on an invoice
|
|
2398
|
+
*/
|
|
2399
|
+
invoice_grouping_key?: string | null;
|
|
2400
|
+
}
|
|
2401
|
+
|
|
2402
|
+
export interface NewPackageWithAllocationPrice {
|
|
2403
|
+
/**
|
|
2404
|
+
* The cadence to bill for this price on.
|
|
2405
|
+
*/
|
|
2406
|
+
cadence: 'annual' | 'monthly' | 'quarterly';
|
|
2407
|
+
|
|
2408
|
+
/**
|
|
2409
|
+
* An ISO 4217 currency string for which this price is billed in.
|
|
2410
|
+
*/
|
|
2411
|
+
currency: string;
|
|
2412
|
+
|
|
2413
|
+
/**
|
|
2414
|
+
* The id of the item the plan will be associated with.
|
|
2415
|
+
*/
|
|
2416
|
+
item_id: string;
|
|
2417
|
+
|
|
2418
|
+
model_type: 'package_with_allocation';
|
|
2419
|
+
|
|
2420
|
+
/**
|
|
2421
|
+
* The name of the price.
|
|
2422
|
+
*/
|
|
2423
|
+
name: string;
|
|
2424
|
+
|
|
2425
|
+
package_with_allocation_config: Record<string, unknown>;
|
|
2426
|
+
|
|
2427
|
+
/**
|
|
2428
|
+
* The id of the billable metric for the price. Only needed if the price is
|
|
2429
|
+
* usage-based.
|
|
2430
|
+
*/
|
|
2431
|
+
billable_metric_id?: string | null;
|
|
2432
|
+
|
|
2433
|
+
/**
|
|
2434
|
+
* If the Price represents a fixed cost, the price will be billed in-advance if
|
|
2435
|
+
* this is true, and in-arrears if this is false.
|
|
2436
|
+
*/
|
|
2437
|
+
billed_in_advance?: boolean | null;
|
|
2438
|
+
|
|
2439
|
+
/**
|
|
2440
|
+
* An alias for the price.
|
|
2441
|
+
*/
|
|
2442
|
+
external_price_id?: string | null;
|
|
2443
|
+
|
|
2444
|
+
/**
|
|
2445
|
+
* If the Price represents a fixed cost, this represents the quantity of units
|
|
2446
|
+
* applied.
|
|
2447
|
+
*/
|
|
2448
|
+
fixed_price_quantity?: number | null;
|
|
2449
|
+
|
|
2450
|
+
/**
|
|
2451
|
+
* The property used to group this price on an invoice
|
|
2452
|
+
*/
|
|
2453
|
+
invoice_grouping_key?: string | null;
|
|
2454
|
+
}
|
|
2455
|
+
}
|
|
2456
|
+
|
|
2457
|
+
export interface PriceListParams extends PageParams {}
|
|
2458
|
+
|
|
2459
|
+
export namespace Prices {
|
|
2460
|
+
export import Discount = PricesAPI.Discount;
|
|
2461
|
+
export import Price = PricesAPI.Price;
|
|
2462
|
+
export import PricesPage = PricesAPI.PricesPage;
|
|
2463
|
+
export import PriceCreateParams = PricesAPI.PriceCreateParams;
|
|
2464
|
+
export import PriceListParams = PricesAPI.PriceListParams;
|
|
2465
|
+
export import ExternalPriceID = ExternalPriceIDAPI.ExternalPriceID;
|
|
2466
|
+
}
|