orb-billing 1.21.0 → 1.22.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +19 -0
- package/LICENSE +201 -0
- package/README.md +196 -192
- package/_shims/MultipartBody.d.ts +9 -0
- package/_shims/MultipartBody.d.ts.map +1 -0
- package/_shims/MultipartBody.js +16 -0
- package/_shims/MultipartBody.js.map +1 -0
- package/_shims/MultipartBody.mjs +12 -0
- package/_shims/MultipartBody.mjs.map +1 -0
- package/_shims/README.md +46 -0
- package/_shims/auto/runtime-bun.d.ts +5 -0
- package/_shims/auto/runtime-bun.d.ts.map +1 -0
- package/_shims/auto/runtime-bun.js +21 -0
- package/_shims/auto/runtime-bun.js.map +1 -0
- package/_shims/auto/runtime-bun.mjs +2 -0
- package/_shims/auto/runtime-bun.mjs.map +1 -0
- package/_shims/auto/runtime-node.d.ts +5 -0
- package/_shims/auto/runtime-node.d.ts.map +1 -0
- package/_shims/auto/runtime-node.js +21 -0
- package/_shims/auto/runtime-node.js.map +1 -0
- package/_shims/auto/runtime-node.mjs +2 -0
- package/_shims/auto/runtime-node.mjs.map +1 -0
- package/_shims/auto/runtime.d.ts +5 -0
- package/_shims/auto/runtime.d.ts.map +1 -0
- package/_shims/auto/runtime.js +21 -0
- package/_shims/auto/runtime.js.map +1 -0
- package/_shims/auto/runtime.mjs +2 -0
- package/_shims/auto/runtime.mjs.map +1 -0
- package/_shims/auto/types-node.d.ts +5 -0
- package/_shims/auto/types-node.d.ts.map +1 -0
- package/_shims/auto/types-node.js +21 -0
- package/_shims/auto/types-node.js.map +1 -0
- package/_shims/auto/types-node.mjs +2 -0
- package/_shims/auto/types-node.mjs.map +1 -0
- package/_shims/auto/types.d.ts +101 -0
- package/_shims/auto/types.js +3 -0
- package/_shims/auto/types.mjs +3 -0
- package/_shims/bun-runtime.d.ts +6 -0
- package/_shims/bun-runtime.d.ts.map +1 -0
- package/_shims/bun-runtime.js +14 -0
- package/_shims/bun-runtime.js.map +1 -0
- package/_shims/bun-runtime.mjs +10 -0
- package/_shims/bun-runtime.mjs.map +1 -0
- package/_shims/index.d.ts +81 -0
- package/_shims/index.js +13 -0
- package/_shims/index.mjs +7 -0
- package/_shims/manual-types.d.ts +12 -0
- package/_shims/manual-types.js +3 -0
- package/_shims/manual-types.mjs +3 -0
- package/_shims/node-runtime.d.ts +3 -0
- package/_shims/node-runtime.d.ts.map +1 -0
- package/_shims/node-runtime.js +90 -0
- package/_shims/node-runtime.js.map +1 -0
- package/_shims/node-runtime.mjs +56 -0
- package/_shims/node-runtime.mjs.map +1 -0
- package/_shims/node-types.d.ts +42 -0
- package/_shims/node-types.js +3 -0
- package/_shims/node-types.mjs +3 -0
- package/_shims/registry.d.ts +37 -0
- package/_shims/registry.d.ts.map +1 -0
- package/_shims/registry.js +41 -0
- package/_shims/registry.js.map +1 -0
- package/_shims/registry.mjs +37 -0
- package/_shims/registry.mjs.map +1 -0
- package/_shims/web-runtime.d.ts +5 -0
- package/_shims/web-runtime.d.ts.map +1 -0
- package/_shims/web-runtime.js +78 -0
- package/_shims/web-runtime.js.map +1 -0
- package/_shims/web-runtime.mjs +71 -0
- package/_shims/web-runtime.mjs.map +1 -0
- package/_shims/web-types.d.ts +83 -0
- package/_shims/web-types.js +3 -0
- package/_shims/web-types.mjs +3 -0
- package/core.d.ts +239 -0
- package/core.d.ts.map +1 -0
- package/core.js +832 -0
- package/core.js.map +1 -0
- package/core.mjs +801 -0
- package/core.mjs.map +1 -0
- package/error.d.ts +131 -0
- package/error.d.ts.map +1 -0
- package/error.js +298 -0
- package/error.js.map +1 -0
- package/error.mjs +271 -0
- package/error.mjs.map +1 -0
- package/index.d.mts +210 -0
- package/index.d.ts +210 -0
- package/index.d.ts.map +1 -0
- package/index.js +153 -0
- package/index.js.map +1 -0
- package/index.mjs +125 -0
- package/index.mjs.map +1 -0
- package/package.json +90 -27
- package/pagination.d.ts +31 -0
- package/pagination.d.ts.map +1 -0
- package/pagination.js +34 -0
- package/pagination.js.map +1 -0
- package/pagination.mjs +30 -0
- package/pagination.mjs.map +1 -0
- package/resource.d.ts +12 -0
- package/resource.d.ts.map +1 -0
- package/resource.js +17 -0
- package/resource.js.map +1 -0
- package/resource.mjs +13 -0
- package/resource.mjs.map +1 -0
- package/resources/coupons/coupons.d.ts +114 -0
- package/resources/coupons/coupons.d.ts.map +1 -0
- package/resources/coupons/coupons.js +76 -0
- package/resources/coupons/coupons.js.map +1 -0
- package/resources/coupons/coupons.mjs +48 -0
- package/resources/coupons/coupons.mjs.map +1 -0
- package/resources/coupons/index.d.ts +3 -0
- package/resources/coupons/index.d.ts.map +1 -0
- package/resources/coupons/index.js +10 -0
- package/resources/coupons/index.js.map +1 -0
- package/resources/coupons/index.mjs +4 -0
- package/resources/coupons/index.mjs.map +1 -0
- package/resources/coupons/subscriptions.d.ts +23 -0
- package/resources/coupons/subscriptions.d.ts.map +1 -0
- package/resources/coupons/subscriptions.js +20 -0
- package/resources/coupons/subscriptions.js.map +1 -0
- package/resources/coupons/subscriptions.mjs +16 -0
- package/resources/coupons/subscriptions.mjs.map +1 -0
- package/resources/credit-notes.d.ts +136 -0
- package/resources/credit-notes.d.ts.map +1 -0
- package/resources/credit-notes.js +54 -0
- package/resources/credit-notes.js.map +1 -0
- package/resources/credit-notes.mjs +26 -0
- package/resources/credit-notes.mjs.map +1 -0
- package/resources/customers/balance-transactions.d.ts +159 -0
- package/resources/customers/balance-transactions.d.ts.map +1 -0
- package/resources/customers/balance-transactions.js +54 -0
- package/resources/customers/balance-transactions.js.map +1 -0
- package/resources/customers/balance-transactions.mjs +26 -0
- package/resources/customers/balance-transactions.mjs.map +1 -0
- package/resources/customers/costs.d.ts +915 -0
- package/resources/customers/costs.d.ts.map +1 -0
- package/resources/customers/costs.js +24 -0
- package/resources/customers/costs.js.map +1 -0
- package/resources/customers/costs.mjs +20 -0
- package/resources/customers/costs.mjs.map +1 -0
- package/resources/customers/credits/credits.d.ts +58 -0
- package/resources/customers/credits/credits.d.ts.map +1 -0
- package/resources/customers/credits/credits.js +68 -0
- package/resources/customers/credits/credits.js.map +1 -0
- package/resources/customers/credits/credits.mjs +39 -0
- package/resources/customers/credits/credits.mjs.map +1 -0
- package/resources/customers/credits/index.d.ts +3 -0
- package/resources/customers/credits/index.d.ts.map +1 -0
- package/resources/customers/credits/index.js +13 -0
- package/resources/customers/credits/index.js.map +1 -0
- package/resources/customers/credits/index.mjs +4 -0
- package/resources/customers/credits/index.mjs.map +1 -0
- package/resources/customers/credits/ledger.d.ts +1537 -0
- package/resources/customers/credits/ledger.d.ts.map +1 -0
- package/resources/customers/credits/ledger.js +291 -0
- package/resources/customers/credits/ledger.js.map +1 -0
- package/resources/customers/credits/ledger.mjs +262 -0
- package/resources/customers/credits/ledger.mjs.map +1 -0
- package/resources/customers/customers.d.ts +524 -0
- package/resources/customers/customers.d.ts.map +1 -0
- package/resources/customers/customers.js +135 -0
- package/resources/customers/customers.js.map +1 -0
- package/resources/customers/customers.mjs +107 -0
- package/resources/customers/customers.mjs.map +1 -0
- package/resources/customers/index.d.ts +6 -0
- package/resources/customers/index.d.ts.map +1 -0
- package/resources/customers/index.js +19 -0
- package/resources/customers/index.js.map +1 -0
- package/resources/customers/index.mjs +7 -0
- package/resources/customers/index.mjs.map +1 -0
- package/resources/customers/usage.d.ts +306 -0
- package/resources/customers/usage.d.ts.map +1 -0
- package/resources/customers/usage.js +223 -0
- package/resources/customers/usage.js.map +1 -0
- package/resources/customers/usage.mjs +219 -0
- package/resources/customers/usage.mjs.map +1 -0
- package/resources/events/backfills.d.ts +250 -0
- package/resources/events/backfills.d.ts.map +1 -0
- package/resources/events/backfills.js +104 -0
- package/resources/events/backfills.js.map +1 -0
- package/resources/events/backfills.mjs +76 -0
- package/resources/events/backfills.mjs.map +1 -0
- package/resources/events/events.d.ts +547 -0
- package/resources/events/events.d.ts.map +1 -0
- package/resources/events/events.js +354 -0
- package/resources/events/events.js.map +1 -0
- package/resources/events/events.mjs +327 -0
- package/resources/events/events.mjs.map +1 -0
- package/resources/events/index.d.ts +3 -0
- package/resources/events/index.d.ts.map +1 -0
- package/resources/events/index.js +10 -0
- package/resources/events/index.js.map +1 -0
- package/resources/events/index.mjs +4 -0
- package/resources/events/index.mjs.map +1 -0
- package/resources/index.d.ts +13 -0
- package/resources/index.d.ts.map +1 -0
- package/resources/index.js +39 -0
- package/resources/index.js.map +1 -0
- package/resources/index.mjs +14 -0
- package/resources/index.mjs.map +1 -0
- package/resources/invoice-line-items.d.ts +434 -0
- package/resources/invoice-line-items.d.ts.map +1 -0
- package/resources/invoice-line-items.js +18 -0
- package/resources/invoice-line-items.js.map +1 -0
- package/resources/invoice-line-items.mjs +14 -0
- package/resources/invoice-line-items.mjs.map +1 -0
- package/resources/invoices.d.ts +1541 -0
- package/resources/invoices.d.ts.map +1 -0
- package/resources/invoices.js +96 -0
- package/resources/invoices.js.map +1 -0
- package/resources/invoices.mjs +68 -0
- package/resources/invoices.mjs.map +1 -0
- package/resources/items.d.ts +61 -0
- package/resources/items.d.ts.map +1 -0
- package/resources/items.js +53 -0
- package/resources/items.js.map +1 -0
- package/resources/items.mjs +25 -0
- package/resources/items.mjs.map +1 -0
- package/resources/metrics.d.ts +176 -0
- package/resources/metrics.d.ts.map +1 -0
- package/resources/metrics.js +63 -0
- package/resources/metrics.js.map +1 -0
- package/resources/metrics.mjs +35 -0
- package/resources/metrics.mjs.map +1 -0
- package/resources/plans/external-plan-id.d.ts +50 -0
- package/resources/plans/external-plan-id.d.ts.map +1 -0
- package/resources/plans/external-plan-id.js +35 -0
- package/resources/plans/external-plan-id.js.map +1 -0
- package/resources/plans/external-plan-id.mjs +31 -0
- package/resources/plans/external-plan-id.mjs.map +1 -0
- package/resources/plans/index.d.ts +3 -0
- package/resources/plans/index.d.ts.map +1 -0
- package/resources/plans/index.js +10 -0
- package/resources/plans/index.js.map +1 -0
- package/resources/plans/index.mjs +4 -0
- package/resources/plans/index.mjs.map +1 -0
- package/resources/plans/plans.d.ts +256 -0
- package/resources/plans/plans.d.ts.map +1 -0
- package/resources/plans/plans.js +87 -0
- package/resources/plans/plans.js.map +1 -0
- package/resources/plans/plans.mjs +59 -0
- package/resources/plans/plans.mjs.map +1 -0
- package/resources/prices/external-price-id.d.ts +12 -0
- package/resources/prices/external-price-id.d.ts.map +1 -0
- package/resources/prices/external-price-id.js +17 -0
- package/resources/prices/external-price-id.js.map +1 -0
- package/resources/prices/external-price-id.mjs +13 -0
- package/resources/prices/external-price-id.mjs.map +1 -0
- package/resources/prices/index.d.ts +3 -0
- package/resources/prices/index.d.ts.map +1 -0
- package/resources/prices/index.js +10 -0
- package/resources/prices/index.js.map +1 -0
- package/resources/prices/index.mjs +4 -0
- package/resources/prices/index.mjs.map +1 -0
- package/resources/prices/prices.d.ts +1872 -0
- package/resources/prices/prices.d.ts.map +1 -0
- package/resources/prices/prices.js +74 -0
- package/resources/prices/prices.js.map +1 -0
- package/resources/prices/prices.mjs +46 -0
- package/resources/prices/prices.mjs.map +1 -0
- package/resources/subscriptions.d.ts +3752 -0
- package/resources/subscriptions.d.ts.map +1 -0
- package/resources/subscriptions.js +254 -0
- package/resources/subscriptions.js.map +1 -0
- package/resources/subscriptions.mjs +225 -0
- package/resources/subscriptions.mjs.map +1 -0
- package/resources/top-level.d.ts +21 -0
- package/resources/top-level.d.ts.map +1 -0
- package/resources/top-level.js +22 -0
- package/resources/top-level.js.map +1 -0
- package/resources/top-level.mjs +18 -0
- package/resources/top-level.mjs.map +1 -0
- package/shims/node.d.ts +29 -0
- package/shims/node.d.ts.map +1 -0
- package/shims/node.js +31 -0
- package/shims/node.js.map +1 -0
- package/shims/node.mjs +5 -0
- package/shims/node.mjs.map +1 -0
- package/shims/web.d.ts +26 -0
- package/shims/web.d.ts.map +1 -0
- package/shims/web.js +31 -0
- package/shims/web.js.map +1 -0
- package/shims/web.mjs +5 -0
- package/shims/web.mjs.map +1 -0
- package/src/_shims/MultipartBody.ts +9 -0
- package/src/_shims/README.md +46 -0
- package/src/_shims/auto/runtime-bun.ts +4 -0
- package/src/_shims/auto/runtime-node.ts +4 -0
- package/src/_shims/auto/runtime.ts +4 -0
- package/src/_shims/auto/types-node.ts +4 -0
- package/src/_shims/auto/types.d.ts +101 -0
- package/src/_shims/auto/types.js +3 -0
- package/src/_shims/auto/types.mjs +3 -0
- package/src/_shims/bun-runtime.ts +14 -0
- package/src/_shims/index.d.ts +81 -0
- package/src/_shims/index.js +13 -0
- package/src/_shims/index.mjs +7 -0
- package/src/_shims/manual-types.d.ts +12 -0
- package/src/_shims/manual-types.js +3 -0
- package/src/_shims/manual-types.mjs +3 -0
- package/src/_shims/node-runtime.ts +83 -0
- package/src/_shims/node-types.d.ts +42 -0
- package/src/_shims/node-types.js +3 -0
- package/src/_shims/node-types.mjs +3 -0
- package/src/_shims/registry.ts +67 -0
- package/src/_shims/web-runtime.ts +103 -0
- package/src/_shims/web-types.d.ts +83 -0
- package/src/_shims/web-types.js +3 -0
- package/src/_shims/web-types.mjs +3 -0
- package/src/core.ts +1103 -0
- package/src/error.ts +469 -0
- package/src/index.ts +305 -0
- package/src/pagination.ts +63 -0
- package/src/resource.ts +24 -0
- package/src/resources/coupons/coupons.ts +150 -0
- package/src/resources/coupons/index.ts +4 -0
- package/src/resources/coupons/subscriptions.ts +45 -0
- package/src/resources/credit-notes.ts +184 -0
- package/src/resources/customers/balance-transactions.ts +222 -0
- package/src/resources/customers/costs.ts +991 -0
- package/src/resources/customers/credits/credits.ts +113 -0
- package/src/resources/customers/credits/index.ts +24 -0
- package/src/resources/customers/credits/ledger.ts +2254 -0
- package/src/resources/customers/customers.ts +734 -0
- package/src/resources/customers/index.ts +42 -0
- package/src/resources/customers/usage.ts +350 -0
- package/src/resources/events/backfills.ts +324 -0
- package/src/resources/events/events.ts +635 -0
- package/src/resources/events/index.ts +23 -0
- package/src/resources/index.ts +72 -0
- package/src/resources/invoice-line-items.ts +502 -0
- package/src/resources/invoices.ts +1906 -0
- package/src/resources/items.ts +106 -0
- package/src/resources/metrics.ts +264 -0
- package/src/resources/plans/external-plan-id.ts +73 -0
- package/src/resources/plans/index.ts +4 -0
- package/src/resources/plans/plans.ts +350 -0
- package/src/resources/prices/external-price-id.ts +16 -0
- package/src/resources/prices/index.ts +4 -0
- package/src/resources/prices/prices.ts +2466 -0
- package/src/resources/subscriptions.ts +4590 -0
- package/src/resources/top-level.ts +27 -0
- package/src/shims/node.ts +50 -0
- package/src/shims/web.ts +50 -0
- package/src/tsconfig.json +11 -0
- package/src/uploads.ts +246 -0
- package/src/version.ts +1 -0
- package/uploads.d.ts +75 -0
- package/uploads.d.ts.map +1 -0
- package/uploads.js +162 -0
- package/uploads.js.map +1 -0
- package/uploads.mjs +149 -0
- package/uploads.mjs.map +1 -0
- package/version.d.ts +2 -0
- package/version.d.ts.map +1 -0
- package/version.js +5 -0
- package/version.js.map +1 -0
- package/version.mjs +2 -0
- package/version.mjs.map +1 -0
- package/LICENSE.md +0 -21
- package/dist/index.d.ts +0 -1
- package/dist/index.js +0 -20
- package/dist/internal/utils/contenttype.d.ts +0 -1
- package/dist/internal/utils/contenttype.js +0 -33
- package/dist/internal/utils/headers.d.ts +0 -4
- package/dist/internal/utils/headers.js +0 -92
- package/dist/internal/utils/index.d.ts +0 -8
- package/dist/internal/utils/index.js +0 -27
- package/dist/internal/utils/pathparams.d.ts +0 -2
- package/dist/internal/utils/pathparams.js +0 -53
- package/dist/internal/utils/queryparams.d.ts +0 -2
- package/dist/internal/utils/queryparams.js +0 -178
- package/dist/internal/utils/requestbody.d.ts +0 -2
- package/dist/internal/utils/requestbody.js +0 -318
- package/dist/internal/utils/retries.d.ts +0 -20
- package/dist/internal/utils/retries.js +0 -250
- package/dist/internal/utils/security.d.ts +0 -5
- package/dist/internal/utils/security.js +0 -188
- package/dist/internal/utils/utils.d.ts +0 -37
- package/dist/internal/utils/utils.js +0 -370
- package/dist/sdk/availability.d.ts +0 -18
- package/dist/sdk/availability.js +0 -186
- package/dist/sdk/coupon.d.ts +0 -62
- package/dist/sdk/coupon.js +0 -629
- package/dist/sdk/credit.d.ts +0 -348
- package/dist/sdk/credit.js +0 -1020
- package/dist/sdk/creditnote.d.ts +0 -29
- package/dist/sdk/creditnote.js +0 -293
- package/dist/sdk/customer.d.ts +0 -529
- package/dist/sdk/customer.js +0 -1882
- package/dist/sdk/event.d.ts +0 -353
- package/dist/sdk/event.js +0 -1314
- package/dist/sdk/index.d.ts +0 -1
- package/dist/sdk/index.js +0 -20
- package/dist/sdk/invoice.d.ts +0 -89
- package/dist/sdk/invoice.js +0 -945
- package/dist/sdk/item.d.ts +0 -27
- package/dist/sdk/item.js +0 -291
- package/dist/sdk/metric.d.ts +0 -39
- package/dist/sdk/metric.js +0 -418
- package/dist/sdk/models/errors/fivehundrederror.d.ts +0 -11
- package/dist/sdk/models/errors/fivehundrederror.js +0 -88
- package/dist/sdk/models/errors/fourhundredandoneerror.d.ts +0 -11
- package/dist/sdk/models/errors/fourhundredandoneerror.js +0 -88
- package/dist/sdk/models/errors/fourhundredandtwentynineerror.d.ts +0 -11
- package/dist/sdk/models/errors/fourhundredandtwentynineerror.js +0 -88
- package/dist/sdk/models/errors/index.d.ts +0 -4
- package/dist/sdk/models/errors/index.js +0 -23
- package/dist/sdk/models/errors/sdkerror.d.ts +0 -7
- package/dist/sdk/models/errors/sdkerror.js +0 -40
- package/dist/sdk/models/operations/addeditpriceintervals.d.ts +0 -25
- package/dist/sdk/models/operations/addeditpriceintervals.js +0 -95
- package/dist/sdk/models/operations/amendevent.d.ts +0 -25
- package/dist/sdk/models/operations/amendevent.js +0 -95
- package/dist/sdk/models/operations/amendusage.d.ts +0 -27
- package/dist/sdk/models/operations/amendusage.js +0 -103
- package/dist/sdk/models/operations/amendusageexternalcustomerid.d.ts +0 -27
- package/dist/sdk/models/operations/amendusageexternalcustomerid.js +0 -103
- package/dist/sdk/models/operations/archivecoupon.d.ts +0 -24
- package/dist/sdk/models/operations/archivecoupon.js +0 -91
- package/dist/sdk/models/operations/cancelsubscription.d.ts +0 -25
- package/dist/sdk/models/operations/cancelsubscription.js +0 -95
- package/dist/sdk/models/operations/closebackfill.d.ts +0 -24
- package/dist/sdk/models/operations/closebackfill.js +0 -91
- package/dist/sdk/models/operations/createbackfill.d.ts +0 -21
- package/dist/sdk/models/operations/createbackfill.js +0 -79
- package/dist/sdk/models/operations/createcoupon.d.ts +0 -21
- package/dist/sdk/models/operations/createcoupon.js +0 -79
- package/dist/sdk/models/operations/createcustomer.d.ts +0 -21
- package/dist/sdk/models/operations/createcustomer.js +0 -79
- package/dist/sdk/models/operations/createcustomerbalancetransaction.d.ts +0 -25
- package/dist/sdk/models/operations/createcustomerbalancetransaction.js +0 -95
- package/dist/sdk/models/operations/createinvoice.d.ts +0 -21
- package/dist/sdk/models/operations/createinvoice.js +0 -79
- package/dist/sdk/models/operations/createinvoicelineitem.d.ts +0 -21
- package/dist/sdk/models/operations/createinvoicelineitem.js +0 -79
- package/dist/sdk/models/operations/createledgerentry.d.ts +0 -24
- package/dist/sdk/models/operations/createledgerentry.js +0 -71
- package/dist/sdk/models/operations/createledgerentryexternalid.d.ts +0 -24
- package/dist/sdk/models/operations/createledgerentryexternalid.js +0 -71
- package/dist/sdk/models/operations/createmetric.d.ts +0 -21
- package/dist/sdk/models/operations/createmetric.js +0 -79
- package/dist/sdk/models/operations/createplan.d.ts +0 -21
- package/dist/sdk/models/operations/createplan.js +0 -79
- package/dist/sdk/models/operations/createprice.d.ts +0 -20
- package/dist/sdk/models/operations/createprice.js +0 -55
- package/dist/sdk/models/operations/createsubscription.d.ts +0 -21
- package/dist/sdk/models/operations/createsubscription.js +0 -79
- package/dist/sdk/models/operations/deletecustomer.d.ts +0 -24
- package/dist/sdk/models/operations/deletecustomer.js +0 -91
- package/dist/sdk/models/operations/deprecateevent.d.ts +0 -24
- package/dist/sdk/models/operations/deprecateevent.js +0 -91
- package/dist/sdk/models/operations/fetchbackfill.d.ts +0 -24
- package/dist/sdk/models/operations/fetchbackfill.js +0 -91
- package/dist/sdk/models/operations/fetchcoupon.d.ts +0 -24
- package/dist/sdk/models/operations/fetchcoupon.js +0 -91
- package/dist/sdk/models/operations/fetchcreditnote.d.ts +0 -24
- package/dist/sdk/models/operations/fetchcreditnote.js +0 -91
- package/dist/sdk/models/operations/fetchcustomer.d.ts +0 -24
- package/dist/sdk/models/operations/fetchcustomer.js +0 -91
- package/dist/sdk/models/operations/fetchcustomercosts.d.ts +0 -38
- package/dist/sdk/models/operations/fetchcustomercosts.js +0 -115
- package/dist/sdk/models/operations/fetchcustomercostsexternalid.d.ts +0 -38
- package/dist/sdk/models/operations/fetchcustomercostsexternalid.js +0 -115
- package/dist/sdk/models/operations/fetchcustomercredits.d.ts +0 -26
- package/dist/sdk/models/operations/fetchcustomercredits.js +0 -99
- package/dist/sdk/models/operations/fetchcustomercreditsexternalid.d.ts +0 -26
- package/dist/sdk/models/operations/fetchcustomercreditsexternalid.js +0 -99
- package/dist/sdk/models/operations/fetchcustomercreditsledger.d.ts +0 -47
- package/dist/sdk/models/operations/fetchcustomercreditsledger.js +0 -146
- package/dist/sdk/models/operations/fetchcustomercreditsledgerexternalid.d.ts +0 -47
- package/dist/sdk/models/operations/fetchcustomercreditsledgerexternalid.js +0 -146
- package/dist/sdk/models/operations/fetchcustomerexternalid.d.ts +0 -24
- package/dist/sdk/models/operations/fetchcustomerexternalid.js +0 -91
- package/dist/sdk/models/operations/fetchinvoice.d.ts +0 -24
- package/dist/sdk/models/operations/fetchinvoice.js +0 -91
- package/dist/sdk/models/operations/fetchitem.d.ts +0 -24
- package/dist/sdk/models/operations/fetchitem.js +0 -91
- package/dist/sdk/models/operations/fetchmetric.d.ts +0 -24
- package/dist/sdk/models/operations/fetchmetric.js +0 -91
- package/dist/sdk/models/operations/fetchplan.d.ts +0 -24
- package/dist/sdk/models/operations/fetchplan.js +0 -91
- package/dist/sdk/models/operations/fetchplanexternalid.d.ts +0 -24
- package/dist/sdk/models/operations/fetchplanexternalid.js +0 -91
- package/dist/sdk/models/operations/fetchprice.d.ts +0 -23
- package/dist/sdk/models/operations/fetchprice.js +0 -67
- package/dist/sdk/models/operations/fetchpriceexternalid.d.ts +0 -23
- package/dist/sdk/models/operations/fetchpriceexternalid.js +0 -67
- package/dist/sdk/models/operations/fetchsubscription.d.ts +0 -24
- package/dist/sdk/models/operations/fetchsubscription.js +0 -91
- package/dist/sdk/models/operations/fetchsubscriptioncosts.d.ts +0 -38
- package/dist/sdk/models/operations/fetchsubscriptioncosts.js +0 -115
- package/dist/sdk/models/operations/fetchsubscriptionschedule.d.ts +0 -30
- package/dist/sdk/models/operations/fetchsubscriptionschedule.js +0 -115
- package/dist/sdk/models/operations/fetchsubscriptionusage.d.ts +0 -54
- package/dist/sdk/models/operations/fetchsubscriptionusage.js +0 -130
- package/dist/sdk/models/operations/fetchupcominginvoice.d.ts +0 -24
- package/dist/sdk/models/operations/fetchupcominginvoice.js +0 -91
- package/dist/sdk/models/operations/index.d.ts +0 -73
- package/dist/sdk/models/operations/index.js +0 -92
- package/dist/sdk/models/operations/ingest.d.ts +0 -26
- package/dist/sdk/models/operations/ingest.js +0 -99
- package/dist/sdk/models/operations/issueinvoice.d.ts +0 -24
- package/dist/sdk/models/operations/issueinvoice.js +0 -91
- package/dist/sdk/models/operations/listbackfills.d.ts +0 -25
- package/dist/sdk/models/operations/listbackfills.js +0 -95
- package/dist/sdk/models/operations/listbalancetransactions.d.ts +0 -30
- package/dist/sdk/models/operations/listbalancetransactions.js +0 -115
- package/dist/sdk/models/operations/listcoupons.d.ts +0 -27
- package/dist/sdk/models/operations/listcoupons.js +0 -103
- package/dist/sdk/models/operations/listcouponsubscriptions.d.ts +0 -26
- package/dist/sdk/models/operations/listcouponsubscriptions.js +0 -99
- package/dist/sdk/models/operations/listcreditnotes.d.ts +0 -25
- package/dist/sdk/models/operations/listcreditnotes.js +0 -95
- package/dist/sdk/models/operations/listcustomers.d.ts +0 -29
- package/dist/sdk/models/operations/listcustomers.js +0 -111
- package/dist/sdk/models/operations/listinvoices.d.ts +0 -62
- package/dist/sdk/models/operations/listinvoices.js +0 -189
- package/dist/sdk/models/operations/listitems.d.ts +0 -25
- package/dist/sdk/models/operations/listitems.js +0 -95
- package/dist/sdk/models/operations/listmetrics.d.ts +0 -29
- package/dist/sdk/models/operations/listmetrics.js +0 -111
- package/dist/sdk/models/operations/listplans.d.ts +0 -41
- package/dist/sdk/models/operations/listplans.js +0 -124
- package/dist/sdk/models/operations/listprices.d.ts +0 -25
- package/dist/sdk/models/operations/listprices.js +0 -95
- package/dist/sdk/models/operations/listsubscriptions.d.ts +0 -37
- package/dist/sdk/models/operations/listsubscriptions.js +0 -129
- package/dist/sdk/models/operations/markinvoiceaspaid.d.ts +0 -25
- package/dist/sdk/models/operations/markinvoiceaspaid.js +0 -95
- package/dist/sdk/models/operations/ping.d.ts +0 -21
- package/dist/sdk/models/operations/ping.js +0 -79
- package/dist/sdk/models/operations/revertbackfill.d.ts +0 -24
- package/dist/sdk/models/operations/revertbackfill.js +0 -91
- package/dist/sdk/models/operations/scheduleplanchange.d.ts +0 -25
- package/dist/sdk/models/operations/scheduleplanchange.js +0 -95
- package/dist/sdk/models/operations/searchevents.d.ts +0 -30
- package/dist/sdk/models/operations/searchevents.js +0 -115
- package/dist/sdk/models/operations/triggerphase.d.ts +0 -25
- package/dist/sdk/models/operations/triggerphase.js +0 -95
- package/dist/sdk/models/operations/unschedulecancellation.d.ts +0 -24
- package/dist/sdk/models/operations/unschedulecancellation.js +0 -91
- package/dist/sdk/models/operations/unschedulefixedfeequantity.d.ts +0 -25
- package/dist/sdk/models/operations/unschedulefixedfeequantity.js +0 -95
- package/dist/sdk/models/operations/unscheduleplanchange.d.ts +0 -24
- package/dist/sdk/models/operations/unscheduleplanchange.js +0 -91
- package/dist/sdk/models/operations/updatecustomer.d.ts +0 -25
- package/dist/sdk/models/operations/updatecustomer.js +0 -95
- package/dist/sdk/models/operations/updatecustomerexternalid.d.ts +0 -25
- package/dist/sdk/models/operations/updatecustomerexternalid.js +0 -95
- package/dist/sdk/models/operations/updatefixedfeequantity.d.ts +0 -25
- package/dist/sdk/models/operations/updatefixedfeequantity.js +0 -95
- package/dist/sdk/models/operations/updateplan.d.ts +0 -25
- package/dist/sdk/models/operations/updateplan.js +0 -95
- package/dist/sdk/models/operations/updateplanexternal.d.ts +0 -25
- package/dist/sdk/models/operations/updateplanexternal.js +0 -95
- package/dist/sdk/models/operations/voidinvoice.d.ts +0 -24
- package/dist/sdk/models/operations/voidinvoice.js +0 -91
- package/dist/sdk/models/shared/accountingprovider.d.ts +0 -9
- package/dist/sdk/models/shared/accountingprovider.js +0 -55
- package/dist/sdk/models/shared/accountingproviderconfig.d.ts +0 -5
- package/dist/sdk/models/shared/accountingproviderconfig.js +0 -50
- package/dist/sdk/models/shared/accountingsyncconfiguration.d.ts +0 -6
- package/dist/sdk/models/shared/accountingsyncconfiguration.js +0 -52
- package/dist/sdk/models/shared/addeditpriceintervalparams.d.ts +0 -13
- package/dist/sdk/models/shared/addeditpriceintervalparams.js +0 -54
- package/dist/sdk/models/shared/addpriceintervalparams.d.ts +0 -40
- package/dist/sdk/models/shared/addpriceintervalparams.js +0 -87
- package/dist/sdk/models/shared/address.d.ts +0 -9
- package/dist/sdk/models/shared/address.js +0 -70
- package/dist/sdk/models/shared/addressinput.d.ts +0 -9
- package/dist/sdk/models/shared/addressinput.js +0 -70
- package/dist/sdk/models/shared/aggregatedcost.d.ts +0 -15
- package/dist/sdk/models/shared/aggregatedcost.js +0 -75
- package/dist/sdk/models/shared/amendedevent.d.ts +0 -28
- package/dist/sdk/models/shared/amendedevent.js +0 -81
- package/dist/sdk/models/shared/amendedusage.d.ts +0 -11
- package/dist/sdk/models/shared/amendedusage.js +0 -50
- package/dist/sdk/models/shared/amendeventresult.d.ts +0 -7
- package/dist/sdk/models/shared/amendeventresult.js +0 -45
- package/dist/sdk/models/shared/autocollection.d.ts +0 -15
- package/dist/sdk/models/shared/autocollection.js +0 -63
- package/dist/sdk/models/shared/backfill.d.ts +0 -27
- package/dist/sdk/models/shared/backfill.js +0 -104
- package/dist/sdk/models/shared/backfills.d.ts +0 -7
- package/dist/sdk/models/shared/backfills.js +0 -54
- package/dist/sdk/models/shared/backfillstatus.d.ts +0 -9
- package/dist/sdk/models/shared/backfillstatus.js +0 -16
- package/dist/sdk/models/shared/billablemetric.d.ts +0 -27
- package/dist/sdk/models/shared/billablemetric.js +0 -84
- package/dist/sdk/models/shared/billablemetrics.d.ts +0 -7
- package/dist/sdk/models/shared/billablemetrics.js +0 -54
- package/dist/sdk/models/shared/billingcyclealignment.d.ts +0 -8
- package/dist/sdk/models/shared/billingcyclealignment.js +0 -15
- package/dist/sdk/models/shared/cancelsubscriptionparams.d.ts +0 -19
- package/dist/sdk/models/shared/cancelsubscriptionparams.js +0 -63
- package/dist/sdk/models/shared/changeoption.d.ts +0 -5
- package/dist/sdk/models/shared/changeoption.js +0 -12
- package/dist/sdk/models/shared/coupon.d.ts +0 -40
- package/dist/sdk/models/shared/coupon.js +0 -98
- package/dist/sdk/models/shared/couponredemption.d.ts +0 -6
- package/dist/sdk/models/shared/couponredemption.js +0 -63
- package/dist/sdk/models/shared/coupons.d.ts +0 -7
- package/dist/sdk/models/shared/coupons.js +0 -54
- package/dist/sdk/models/shared/createinvoicelineitemparams.d.ts +0 -28
- package/dist/sdk/models/shared/createinvoicelineitemparams.js +0 -81
- package/dist/sdk/models/shared/createoneoffinvoiceparams.d.ts +0 -33
- package/dist/sdk/models/shared/createoneoffinvoiceparams.js +0 -86
- package/dist/sdk/models/shared/creditledgerentries.d.ts +0 -6
- package/dist/sdk/models/shared/creditledgerentries.js +0 -52
- package/dist/sdk/models/shared/creditnote.d.ts +0 -83
- package/dist/sdk/models/shared/creditnote.js +0 -171
- package/dist/sdk/models/shared/creditnotelineitem.d.ts +0 -40
- package/dist/sdk/models/shared/creditnotelineitem.js +0 -100
- package/dist/sdk/models/shared/creditnoteminified.d.ts +0 -7
- package/dist/sdk/models/shared/creditnoteminified.js +0 -45
- package/dist/sdk/models/shared/creditnotes.d.ts +0 -7
- package/dist/sdk/models/shared/creditnotes.js +0 -54
- package/dist/sdk/models/shared/creditnotesublineitem.d.ts +0 -6
- package/dist/sdk/models/shared/creditnotesublineitem.js +0 -55
- package/dist/sdk/models/shared/creditnotesummary.d.ts +0 -12
- package/dist/sdk/models/shared/creditnotesummary.js +0 -74
- package/dist/sdk/models/shared/customer.d.ts +0 -76
- package/dist/sdk/models/shared/customer.js +0 -182
- package/dist/sdk/models/shared/customerbalancetransaction.d.ts +0 -42
- package/dist/sdk/models/shared/customerbalancetransaction.js +0 -109
- package/dist/sdk/models/shared/customerbalancetransactions.d.ts +0 -7
- package/dist/sdk/models/shared/customerbalancetransactions.js +0 -54
- package/dist/sdk/models/shared/customercosts.d.ts +0 -5
- package/dist/sdk/models/shared/customercosts.js +0 -47
- package/dist/sdk/models/shared/customercreditbalance.d.ts +0 -7
- package/dist/sdk/models/shared/customercreditbalance.js +0 -64
- package/dist/sdk/models/shared/customercreditbalances.d.ts +0 -7
- package/dist/sdk/models/shared/customercreditbalances.js +0 -54
- package/dist/sdk/models/shared/customerminified.d.ts +0 -5
- package/dist/sdk/models/shared/customerminified.js +0 -50
- package/dist/sdk/models/shared/customers.d.ts +0 -7
- package/dist/sdk/models/shared/customers.js +0 -54
- package/dist/sdk/models/shared/customertaxid.d.ts +0 -6
- package/dist/sdk/models/shared/customertaxid.js +0 -55
- package/dist/sdk/models/shared/debug.d.ts +0 -8
- package/dist/sdk/models/shared/debug.js +0 -53
- package/dist/sdk/models/shared/deletecustomerresponse.d.ts +0 -3
- package/dist/sdk/models/shared/deletecustomerresponse.js +0 -30
- package/dist/sdk/models/shared/deprecatedeventresult.d.ts +0 -7
- package/dist/sdk/models/shared/deprecatedeventresult.js +0 -45
- package/dist/sdk/models/shared/discount.d.ts +0 -33
- package/dist/sdk/models/shared/discount.js +0 -80
- package/dist/sdk/models/shared/editcustomer.d.ts +0 -72
- package/dist/sdk/models/shared/editcustomer.js +0 -151
- package/dist/sdk/models/shared/editplan.d.ts +0 -10
- package/dist/sdk/models/shared/editplan.js +0 -59
- package/dist/sdk/models/shared/editpriceintervalparams.d.ts +0 -20
- package/dist/sdk/models/shared/editpriceintervalparams.js +0 -62
- package/dist/sdk/models/shared/event.d.ts +0 -39
- package/dist/sdk/models/shared/event.js +0 -93
- package/dist/sdk/models/shared/events.d.ts +0 -7
- package/dist/sdk/models/shared/events.js +0 -54
- package/dist/sdk/models/shared/eventsearchcriteria.d.ts +0 -11
- package/dist/sdk/models/shared/eventsearchcriteria.js +0 -50
- package/dist/sdk/models/shared/fixedfeequantitychange.d.ts +0 -25
- package/dist/sdk/models/shared/fixedfeequantitychange.js +0 -75
- package/dist/sdk/models/shared/fixedfeequantityscheduleentry.d.ts +0 -7
- package/dist/sdk/models/shared/fixedfeequantityscheduleentry.js +0 -68
- package/dist/sdk/models/shared/fixedfeequantitytransition.d.ts +0 -6
- package/dist/sdk/models/shared/fixedfeequantitytransition.js +0 -59
- package/dist/sdk/models/shared/index.d.ts +0 -109
- package/dist/sdk/models/shared/index.js +0 -128
- package/dist/sdk/models/shared/ingestevent.d.ts +0 -32
- package/dist/sdk/models/shared/ingestevent.js +0 -86
- package/dist/sdk/models/shared/ingestionresponse.d.ts +0 -13
- package/dist/sdk/models/shared/ingestionresponse.js +0 -54
- package/dist/sdk/models/shared/ingestrequestbody.d.ts +0 -5
- package/dist/sdk/models/shared/ingestrequestbody.js +0 -47
- package/dist/sdk/models/shared/invoice.d.ts +0 -138
- package/dist/sdk/models/shared/invoice.js +0 -329
- package/dist/sdk/models/shared/invoicelineitem.d.ts +0 -49
- package/dist/sdk/models/shared/invoicelineitem.js +0 -134
- package/dist/sdk/models/shared/invoicelineitemparams.d.ts +0 -26
- package/dist/sdk/models/shared/invoicelineitemparams.js +0 -90
- package/dist/sdk/models/shared/invoiceminified.d.ts +0 -7
- package/dist/sdk/models/shared/invoiceminified.js +0 -45
- package/dist/sdk/models/shared/invoices.d.ts +0 -7
- package/dist/sdk/models/shared/invoices.js +0 -54
- package/dist/sdk/models/shared/item.d.ts +0 -14
- package/dist/sdk/models/shared/item.js +0 -72
- package/dist/sdk/models/shared/itemexternalconnection.d.ts +0 -5
- package/dist/sdk/models/shared/itemexternalconnection.js +0 -50
- package/dist/sdk/models/shared/items.d.ts +0 -7
- package/dist/sdk/models/shared/items.js +0 -54
- package/dist/sdk/models/shared/markaspaidrequestparams.d.ts +0 -16
- package/dist/sdk/models/shared/markaspaidrequestparams.js +0 -61
- package/dist/sdk/models/shared/maximum.d.ts +0 -11
- package/dist/sdk/models/shared/maximum.js +0 -50
- package/dist/sdk/models/shared/maximuminterval.d.ts +0 -23
- package/dist/sdk/models/shared/maximuminterval.js +0 -73
- package/dist/sdk/models/shared/minimum.d.ts +0 -11
- package/dist/sdk/models/shared/minimum.js +0 -50
- package/dist/sdk/models/shared/minimuminterval.d.ts +0 -23
- package/dist/sdk/models/shared/minimuminterval.js +0 -73
- package/dist/sdk/models/shared/newaccountingsyncconfiguration.d.ts +0 -6
- package/dist/sdk/models/shared/newaccountingsyncconfiguration.js +0 -52
- package/dist/sdk/models/shared/newbackfill.d.ts +0 -27
- package/dist/sdk/models/shared/newbackfill.js +0 -82
- package/dist/sdk/models/shared/newbillablemetric.d.ts +0 -28
- package/dist/sdk/models/shared/newbillablemetric.js +0 -77
- package/dist/sdk/models/shared/newcoupon.d.ts +0 -18
- package/dist/sdk/models/shared/newcoupon.js +0 -69
- package/dist/sdk/models/shared/newcustomer.d.ts +0 -68
- package/dist/sdk/models/shared/newcustomer.js +0 -152
- package/dist/sdk/models/shared/newcustomerbalancetransaction.d.ts +0 -13
- package/dist/sdk/models/shared/newcustomerbalancetransaction.js +0 -60
- package/dist/sdk/models/shared/newplan.d.ts +0 -26
- package/dist/sdk/models/shared/newplan.js +0 -93
- package/dist/sdk/models/shared/newreportingconfiguration.d.ts +0 -4
- package/dist/sdk/models/shared/newreportingconfiguration.js +0 -45
- package/dist/sdk/models/shared/newsubscription.d.ts +0 -54
- package/dist/sdk/models/shared/newsubscription.js +0 -187
- package/dist/sdk/models/shared/paginationmetadata.d.ts +0 -5
- package/dist/sdk/models/shared/paginationmetadata.js +0 -50
- package/dist/sdk/models/shared/perpricecost.d.ts +0 -224
- package/dist/sdk/models/shared/perpricecost.js +0 -67
- package/dist/sdk/models/shared/phaseoverride.d.ts +0 -17
- package/dist/sdk/models/shared/phaseoverride.js +0 -62
- package/dist/sdk/models/shared/pingresponse.d.ts +0 -4
- package/dist/sdk/models/shared/pingresponse.js +0 -45
- package/dist/sdk/models/shared/plan.d.ts +0 -66
- package/dist/sdk/models/shared/plan.js +0 -188
- package/dist/sdk/models/shared/planminified.d.ts +0 -9
- package/dist/sdk/models/shared/planminified.js +0 -55
- package/dist/sdk/models/shared/planphase.d.ts +0 -28
- package/dist/sdk/models/shared/planphase.js +0 -106
- package/dist/sdk/models/shared/plans.d.ts +0 -7
- package/dist/sdk/models/shared/plans.js +0 -54
- package/dist/sdk/models/shared/pricegroup.d.ts +0 -17
- package/dist/sdk/models/shared/pricegroup.js +0 -65
- package/dist/sdk/models/shared/priceinterval.d.ts +0 -239
- package/dist/sdk/models/shared/priceinterval.js +0 -104
- package/dist/sdk/models/shared/priceintervalfixedfeequantitytransitionparams.d.ts +0 -11
- package/dist/sdk/models/shared/priceintervalfixedfeequantitytransitionparams.js +0 -54
- package/dist/sdk/models/shared/prices.d.ts +0 -6
- package/dist/sdk/models/shared/prices.js +0 -52
- package/dist/sdk/models/shared/product.d.ts +0 -6
- package/dist/sdk/models/shared/product.js +0 -59
- package/dist/sdk/models/shared/reportingconfiguration.d.ts +0 -4
- package/dist/sdk/models/shared/reportingconfiguration.js +0 -45
- package/dist/sdk/models/shared/security.d.ts +0 -4
- package/dist/sdk/models/shared/security.js +0 -45
- package/dist/sdk/models/shared/subscription.d.ts +0 -128
- package/dist/sdk/models/shared/subscription.js +0 -226
- package/dist/sdk/models/shared/subscriptioncosts.d.ts +0 -5
- package/dist/sdk/models/shared/subscriptioncosts.js +0 -47
- package/dist/sdk/models/shared/subscriptionminified.d.ts +0 -4
- package/dist/sdk/models/shared/subscriptionminified.js +0 -45
- package/dist/sdk/models/shared/subscriptionplanchange.d.ts +0 -59
- package/dist/sdk/models/shared/subscriptionplanchange.js +0 -126
- package/dist/sdk/models/shared/subscriptions.d.ts +0 -7
- package/dist/sdk/models/shared/subscriptions.js +0 -54
- package/dist/sdk/models/shared/subscriptionscheduleitem.d.ts +0 -7
- package/dist/sdk/models/shared/subscriptionscheduleitem.js +0 -65
- package/dist/sdk/models/shared/subscriptionscheduleitems.d.ts +0 -7
- package/dist/sdk/models/shared/subscriptionscheduleitems.js +0 -54
- package/dist/sdk/models/shared/subscriptiontrialinfo.d.ts +0 -4
- package/dist/sdk/models/shared/subscriptiontrialinfo.js +0 -49
- package/dist/sdk/models/shared/taxamount.d.ts +0 -15
- package/dist/sdk/models/shared/taxamount.js +0 -55
- package/dist/sdk/models/shared/trialconfig.d.ts +0 -8
- package/dist/sdk/models/shared/trialconfig.js +0 -54
- package/dist/sdk/models/shared/triggersubscriptionphaseparams.d.ts +0 -8
- package/dist/sdk/models/shared/triggersubscriptionphaseparams.js +0 -51
- package/dist/sdk/models/shared/unschedulefixedfeequantitychangeparams.d.ts +0 -7
- package/dist/sdk/models/shared/unschedulefixedfeequantitychangeparams.js +0 -45
- package/dist/sdk/models/shared/upcominginvoice.d.ts +0 -130
- package/dist/sdk/models/shared/upcominginvoice.js +0 -321
- package/dist/sdk/models/shared/updateevent.d.ts +0 -28
- package/dist/sdk/models/shared/updateevent.js +0 -81
- package/dist/sdk/models/shared/validationerror.d.ts +0 -11
- package/dist/sdk/models/shared/validationerror.js +0 -50
- package/dist/sdk/plan.d.ts +0 -90
- package/dist/sdk/plan.js +0 -764
- package/dist/sdk/price.d.ts +0 -246
- package/dist/sdk/price.js +0 -715
- package/dist/sdk/priceinterval.d.ts +0 -66
- package/dist/sdk/priceinterval.js +0 -263
- package/dist/sdk/sdk.d.ts +0 -389
- package/dist/sdk/sdk.js +0 -93
- package/dist/sdk/subscription.d.ts +0 -769
- package/dist/sdk/subscription.js +0 -2116
- package/dist/sdk/types/index.d.ts +0 -1
- package/dist/sdk/types/index.js +0 -20
- package/dist/sdk/types/rfcdate.d.ts +0 -9
- package/dist/sdk/types/rfcdate.js +0 -59
- package/docs/models/errors/fivehundrederror.md +0 -12
- package/docs/models/errors/fivehundrederrorheaders.md +0 -7
- package/docs/models/errors/fourhundredandoneerror.md +0 -12
- package/docs/models/errors/fourhundredandoneerrorheaders.md +0 -7
- package/docs/models/errors/fourhundredandtwentynineerror.md +0 -12
- package/docs/models/errors/fourhundredandtwentynineerrorheaders.md +0 -7
- package/docs/models/operations/addeditpriceintervalsrequest.md +0 -9
- package/docs/models/operations/addeditpriceintervalsresponse.md +0 -11
- package/docs/models/operations/amendeventrequest.md +0 -9
- package/docs/models/operations/amendeventresponse.md +0 -11
- package/docs/models/operations/amendusageexternalcustomeridrequest.md +0 -11
- package/docs/models/operations/amendusageexternalcustomeridresponse.md +0 -11
- package/docs/models/operations/amendusagerequest.md +0 -11
- package/docs/models/operations/amendusageresponse.md +0 -11
- package/docs/models/operations/archivecouponrequest.md +0 -8
- package/docs/models/operations/archivecouponresponse.md +0 -11
- package/docs/models/operations/cancelsubscriptionrequest.md +0 -9
- package/docs/models/operations/cancelsubscriptionresponse.md +0 -11
- package/docs/models/operations/closebackfillrequest.md +0 -8
- package/docs/models/operations/closebackfillresponse.md +0 -11
- package/docs/models/operations/createbackfillresponse.md +0 -11
- package/docs/models/operations/createcouponresponse.md +0 -11
- package/docs/models/operations/createcustomerbalancetransactionrequest.md +0 -9
- package/docs/models/operations/createcustomerbalancetransactionresponse.md +0 -11
- package/docs/models/operations/createcustomerresponse.md +0 -11
- package/docs/models/operations/createinvoicelineitemresponse.md +0 -11
- package/docs/models/operations/createinvoiceresponse.md +0 -11
- package/docs/models/operations/createledgerentryexternalidrequest.md +0 -9
- package/docs/models/operations/createledgerentryexternalidresponse.md +0 -11
- package/docs/models/operations/createledgerentryrequest.md +0 -9
- package/docs/models/operations/createledgerentryresponse.md +0 -11
- package/docs/models/operations/createmetricresponse.md +0 -11
- package/docs/models/operations/createplanresponse.md +0 -11
- package/docs/models/operations/createpriceresponse.md +0 -11
- package/docs/models/operations/createsubscriptionresponse.md +0 -11
- package/docs/models/operations/deletecustomerrequest.md +0 -8
- package/docs/models/operations/deletecustomerresponse.md +0 -11
- package/docs/models/operations/deprecateeventrequest.md +0 -8
- package/docs/models/operations/deprecateeventresponse.md +0 -11
- package/docs/models/operations/fetchbackfillrequest.md +0 -8
- package/docs/models/operations/fetchbackfillresponse.md +0 -11
- package/docs/models/operations/fetchcouponrequest.md +0 -8
- package/docs/models/operations/fetchcouponresponse.md +0 -11
- package/docs/models/operations/fetchcreditnoterequest.md +0 -8
- package/docs/models/operations/fetchcreditnoteresponse.md +0 -11
- package/docs/models/operations/fetchcustomercostsexternalidrequest.md +0 -12
- package/docs/models/operations/fetchcustomercostsexternalidresponse.md +0 -11
- package/docs/models/operations/fetchcustomercostsexternalidviewmodeviewmode.md +0 -11
- package/docs/models/operations/fetchcustomercostsrequest.md +0 -12
- package/docs/models/operations/fetchcustomercostsresponse.md +0 -11
- package/docs/models/operations/fetchcustomercostsviewmodeviewmode.md +0 -11
- package/docs/models/operations/fetchcustomercreditsexternalidrequest.md +0 -10
- package/docs/models/operations/fetchcustomercreditsexternalidresponse.md +0 -11
- package/docs/models/operations/fetchcustomercreditsledgerentrystatusentrystatus.md +0 -9
- package/docs/models/operations/fetchcustomercreditsledgerentrytypeentrytype.md +0 -14
- package/docs/models/operations/fetchcustomercreditsledgerexternalidentrystatusentrystatus.md +0 -9
- package/docs/models/operations/fetchcustomercreditsledgerexternalidentrytypeentrytype.md +0 -14
- package/docs/models/operations/fetchcustomercreditsledgerexternalidrequest.md +0 -18
- package/docs/models/operations/fetchcustomercreditsledgerexternalidresponse.md +0 -11
- package/docs/models/operations/fetchcustomercreditsledgerrequest.md +0 -18
- package/docs/models/operations/fetchcustomercreditsledgerresponse.md +0 -11
- package/docs/models/operations/fetchcustomercreditsrequest.md +0 -10
- package/docs/models/operations/fetchcustomercreditsresponse.md +0 -11
- package/docs/models/operations/fetchcustomerexternalidrequest.md +0 -8
- package/docs/models/operations/fetchcustomerexternalidresponse.md +0 -11
- package/docs/models/operations/fetchcustomerrequest.md +0 -8
- package/docs/models/operations/fetchcustomerresponse.md +0 -11
- package/docs/models/operations/fetchinvoicerequest.md +0 -8
- package/docs/models/operations/fetchinvoiceresponse.md +0 -11
- package/docs/models/operations/fetchitemrequest.md +0 -8
- package/docs/models/operations/fetchitemresponse.md +0 -11
- package/docs/models/operations/fetchmetricrequest.md +0 -8
- package/docs/models/operations/fetchmetricresponse.md +0 -11
- package/docs/models/operations/fetchplanexternalidrequest.md +0 -8
- package/docs/models/operations/fetchplanexternalidresponse.md +0 -11
- package/docs/models/operations/fetchplanrequest.md +0 -8
- package/docs/models/operations/fetchplanresponse.md +0 -11
- package/docs/models/operations/fetchpriceexternalidrequest.md +0 -8
- package/docs/models/operations/fetchpriceexternalidresponse.md +0 -11
- package/docs/models/operations/fetchpricerequest.md +0 -8
- package/docs/models/operations/fetchpriceresponse.md +0 -11
- package/docs/models/operations/fetchsubscriptioncostsrequest.md +0 -12
- package/docs/models/operations/fetchsubscriptioncostsresponse.md +0 -11
- package/docs/models/operations/fetchsubscriptioncostsviewmodeviewmode.md +0 -11
- package/docs/models/operations/fetchsubscriptionrequest.md +0 -8
- package/docs/models/operations/fetchsubscriptionresponse.md +0 -11
- package/docs/models/operations/fetchsubscriptionschedulerequest.md +0 -14
- package/docs/models/operations/fetchsubscriptionscheduleresponse.md +0 -11
- package/docs/models/operations/fetchsubscriptionusagegranularitygranularity.md +0 -10
- package/docs/models/operations/fetchsubscriptionusagerequest.md +0 -20
- package/docs/models/operations/fetchsubscriptionusageresponse.md +0 -11
- package/docs/models/operations/fetchsubscriptionusageviewmodeviewmode.md +0 -11
- package/docs/models/operations/fetchupcominginvoicerequest.md +0 -8
- package/docs/models/operations/fetchupcominginvoiceresponse.md +0 -11
- package/docs/models/operations/ingestrequest.md +0 -10
- package/docs/models/operations/ingestresponse.md +0 -11
- package/docs/models/operations/issueinvoicerequest.md +0 -8
- package/docs/models/operations/issueinvoiceresponse.md +0 -11
- package/docs/models/operations/listbackfillsrequest.md +0 -9
- package/docs/models/operations/listbackfillsresponse.md +0 -11
- package/docs/models/operations/listbalancetransactionsrequest.md +0 -14
- package/docs/models/operations/listbalancetransactionsresponse.md +0 -11
- package/docs/models/operations/listcouponsrequest.md +0 -11
- package/docs/models/operations/listcouponsresponse.md +0 -11
- package/docs/models/operations/listcouponsubscriptionsrequest.md +0 -10
- package/docs/models/operations/listcouponsubscriptionsresponse.md +0 -11
- package/docs/models/operations/listcreditnotesrequest.md +0 -9
- package/docs/models/operations/listcreditnotesresponse.md +0 -11
- package/docs/models/operations/listcustomersrequest.md +0 -13
- package/docs/models/operations/listcustomersresponse.md +0 -11
- package/docs/models/operations/listinvoicesdatetypedatetype.md +0 -9
- package/docs/models/operations/listinvoicesrequest.md +0 -27
- package/docs/models/operations/listinvoicesresponse.md +0 -11
- package/docs/models/operations/listinvoicesstatus.md +0 -12
- package/docs/models/operations/listinvoicesstatusstatus.md +0 -12
- package/docs/models/operations/listitemsrequest.md +0 -9
- package/docs/models/operations/listitemsresponse.md +0 -11
- package/docs/models/operations/listmetricsrequest.md +0 -13
- package/docs/models/operations/listmetricsresponse.md +0 -11
- package/docs/models/operations/listplansrequest.md +0 -14
- package/docs/models/operations/listplansresponse.md +0 -11
- package/docs/models/operations/listplansstatusstatus.md +0 -12
- package/docs/models/operations/listpricesrequest.md +0 -9
- package/docs/models/operations/listpricesresponse.md +0 -11
- package/docs/models/operations/listsubscriptionsrequest.md +0 -16
- package/docs/models/operations/listsubscriptionsresponse.md +0 -11
- package/docs/models/operations/listsubscriptionsstatusstatus.md +0 -10
- package/docs/models/operations/markinvoiceaspaidrequest.md +0 -9
- package/docs/models/operations/markinvoiceaspaidresponse.md +0 -11
- package/docs/models/operations/pingresponse.md +0 -11
- package/docs/models/operations/revertbackfillrequest.md +0 -8
- package/docs/models/operations/revertbackfillresponse.md +0 -11
- package/docs/models/operations/scheduleplanchangerequest.md +0 -9
- package/docs/models/operations/scheduleplanchangeresponse.md +0 -11
- package/docs/models/operations/searcheventsrequest.md +0 -14
- package/docs/models/operations/searcheventsresponse.md +0 -11
- package/docs/models/operations/triggerphaserequest.md +0 -9
- package/docs/models/operations/triggerphaseresponse.md +0 -11
- package/docs/models/operations/unschedulecancellationrequest.md +0 -8
- package/docs/models/operations/unschedulecancellationresponse.md +0 -11
- package/docs/models/operations/unschedulefixedfeequantityrequest.md +0 -9
- package/docs/models/operations/unschedulefixedfeequantityresponse.md +0 -11
- package/docs/models/operations/unscheduleplanchangerequest.md +0 -8
- package/docs/models/operations/unscheduleplanchangeresponse.md +0 -11
- package/docs/models/operations/updatecustomerexternalidrequest.md +0 -9
- package/docs/models/operations/updatecustomerexternalidresponse.md +0 -11
- package/docs/models/operations/updatecustomerrequest.md +0 -9
- package/docs/models/operations/updatecustomerresponse.md +0 -11
- package/docs/models/operations/updatefixedfeequantityrequest.md +0 -9
- package/docs/models/operations/updatefixedfeequantityresponse.md +0 -11
- package/docs/models/operations/updateplanexternalrequest.md +0 -9
- package/docs/models/operations/updateplanexternalresponse.md +0 -11
- package/docs/models/operations/updateplanrequest.md +0 -9
- package/docs/models/operations/updateplanresponse.md +0 -11
- package/docs/models/operations/voidinvoicerequest.md +0 -8
- package/docs/models/operations/voidinvoiceresponse.md +0 -11
- package/docs/models/shared/accountingprovider.md +0 -9
- package/docs/models/shared/accountingproviderconfig.md +0 -9
- package/docs/models/shared/accountingproviderprovidertype.md +0 -9
- package/docs/models/shared/accountingsyncconfiguration.md +0 -9
- package/docs/models/shared/addeditpriceintervalparams.md +0 -9
- package/docs/models/shared/addpriceintervalparams.md +0 -16
- package/docs/models/shared/address.md +0 -13
- package/docs/models/shared/addressinput.md +0 -13
- package/docs/models/shared/aggregatedcost.md +0 -12
- package/docs/models/shared/amendedevent.md +0 -12
- package/docs/models/shared/amendedeventproperties.md +0 -9
- package/docs/models/shared/amendedusage.md +0 -9
- package/docs/models/shared/amendeventresult.md +0 -8
- package/docs/models/shared/autocollection.md +0 -10
- package/docs/models/shared/backfill.md +0 -17
- package/docs/models/shared/backfills.md +0 -9
- package/docs/models/shared/backfillstatus.md +0 -13
- package/docs/models/shared/billablemetric.md +0 -16
- package/docs/models/shared/billablemetrics.md +0 -9
- package/docs/models/shared/billablemetricstatus.md +0 -10
- package/docs/models/shared/billingcyclealignment.md +0 -12
- package/docs/models/shared/cancelsubscriptionparams.md +0 -9
- package/docs/models/shared/cancelsubscriptionparamscanceloption.md +0 -12
- package/docs/models/shared/changeoption.md +0 -10
- package/docs/models/shared/coupon.md +0 -21
- package/docs/models/shared/coupondiscount.md +0 -7
- package/docs/models/shared/couponredemption.md +0 -10
- package/docs/models/shared/coupons.md +0 -9
- package/docs/models/shared/createinvoicelineitemparams.md +0 -13
- package/docs/models/shared/createoneoffinvoiceparams.md +0 -15
- package/docs/models/shared/creditledgerentries.md +0 -9
- package/docs/models/shared/creditnote.md +0 -26
- package/docs/models/shared/creditnotediscounts.md +0 -7
- package/docs/models/shared/creditnotelineitem.md +0 -15
- package/docs/models/shared/creditnotelineitemdiscounts.md +0 -7
- package/docs/models/shared/creditnotelineitemtaxamounts.md +0 -7
- package/docs/models/shared/creditnotemaximumamountadjustment.md +0 -9
- package/docs/models/shared/creditnoteminified.md +0 -8
- package/docs/models/shared/creditnotereason.md +0 -11
- package/docs/models/shared/creditnotes.md +0 -9
- package/docs/models/shared/creditnotesublineitem.md +0 -10
- package/docs/models/shared/creditnotesummary.md +0 -13
- package/docs/models/shared/creditnotetype.md +0 -9
- package/docs/models/shared/customer.md +0 -42
- package/docs/models/shared/customerbalancetransaction.md +0 -17
- package/docs/models/shared/customerbalancetransactionaction.md +0 -10
- package/docs/models/shared/customerbalancetransactions.md +0 -9
- package/docs/models/shared/customerbalancetransactiontype.md +0 -9
- package/docs/models/shared/customercosts.md +0 -8
- package/docs/models/shared/customercreditbalance.md +0 -11
- package/docs/models/shared/customercreditbalances.md +0 -9
- package/docs/models/shared/customerminified.md +0 -9
- package/docs/models/shared/customerpaymentprovider.md +0 -14
- package/docs/models/shared/customers.md +0 -9
- package/docs/models/shared/customertaxid.md +0 -10
- package/docs/models/shared/debug.md +0 -11
- package/docs/models/shared/deletecustomerresponse.md +0 -7
- package/docs/models/shared/deprecatedeventresult.md +0 -8
- package/docs/models/shared/discount.md +0 -15
- package/docs/models/shared/discountdiscounttype.md +0 -11
- package/docs/models/shared/editcustomer.md +0 -22
- package/docs/models/shared/editcustomermetadata.md +0 -9
- package/docs/models/shared/editcustomerpaymentprovider.md +0 -16
- package/docs/models/shared/editplan.md +0 -9
- package/docs/models/shared/editplanmetadata.md +0 -7
- package/docs/models/shared/editpriceintervalparams.md +0 -11
- package/docs/models/shared/event.md +0 -17
- package/docs/models/shared/eventproperties.md +0 -9
- package/docs/models/shared/events.md +0 -9
- package/docs/models/shared/eventsearchcriteria.md +0 -9
- package/docs/models/shared/fixedfeequantitychange.md +0 -11
- package/docs/models/shared/fixedfeequantitychangechangeoption.md +0 -12
- package/docs/models/shared/fixedfeequantityscheduleentry.md +0 -11
- package/docs/models/shared/fixedfeequantitytransition.md +0 -10
- package/docs/models/shared/ingestevent.md +0 -13
- package/docs/models/shared/ingesteventproperties.md +0 -9
- package/docs/models/shared/ingestionresponse.md +0 -9
- package/docs/models/shared/ingestrequestbody.md +0 -8
- package/docs/models/shared/invoice.md +0 -51
- package/docs/models/shared/invoicelineitem.md +0 -23
- package/docs/models/shared/invoicelineitemparams.md +0 -14
- package/docs/models/shared/invoicelineitemparamsmodeltype.md +0 -8
- package/docs/models/shared/invoicemetadata.md +0 -7
- package/docs/models/shared/invoiceminified.md +0 -8
- package/docs/models/shared/invoices.md +0 -9
- package/docs/models/shared/invoicestatus.md +0 -12
- package/docs/models/shared/item.md +0 -14
- package/docs/models/shared/itemexternalconnection.md +0 -9
- package/docs/models/shared/items.md +0 -9
- package/docs/models/shared/markaspaidrequestparams.md +0 -10
- package/docs/models/shared/maximum.md +0 -9
- package/docs/models/shared/maximuminterval.md +0 -12
- package/docs/models/shared/minimum.md +0 -9
- package/docs/models/shared/minimuminterval.md +0 -12
- package/docs/models/shared/newaccountingsyncconfiguration.md +0 -9
- package/docs/models/shared/newbackfill.md +0 -13
- package/docs/models/shared/newbillablemetric.md +0 -12
- package/docs/models/shared/newbillablemetricmetadata.md +0 -9
- package/docs/models/shared/newcoupon.md +0 -11
- package/docs/models/shared/newcoupondiscount.md +0 -7
- package/docs/models/shared/newcustomer.md +0 -23
- package/docs/models/shared/newcustomerbalancetransaction.md +0 -10
- package/docs/models/shared/newcustomerbalancetransactiontype.md +0 -9
- package/docs/models/shared/newcustomermetadata.md +0 -9
- package/docs/models/shared/newcustomerpaymentprovider.md +0 -14
- package/docs/models/shared/newplan.md +0 -14
- package/docs/models/shared/newplanmetadata.md +0 -7
- package/docs/models/shared/newplanprices.md +0 -7
- package/docs/models/shared/newreportingconfiguration.md +0 -8
- package/docs/models/shared/newsubscription.md +0 -31
- package/docs/models/shared/newsubscriptionexternalmarketplace.md +0 -10
- package/docs/models/shared/newsubscriptionmetadata.md +0 -7
- package/docs/models/shared/paginationmetadata.md +0 -9
- package/docs/models/shared/perpricecost.md +0 -12
- package/docs/models/shared/phaseoverride.md +0 -11
- package/docs/models/shared/pingresponse.md +0 -8
- package/docs/models/shared/plan.md +0 -33
- package/docs/models/shared/planmetadata.md +0 -7
- package/docs/models/shared/planminified.md +0 -10
- package/docs/models/shared/planphase.md +0 -18
- package/docs/models/shared/planphasedurationunit.md +0 -11
- package/docs/models/shared/plans.md +0 -9
- package/docs/models/shared/planstatus.md +0 -10
- package/docs/models/shared/pricegroup.md +0 -12
- package/docs/models/shared/priceinterval.md +0 -18
- package/docs/models/shared/priceintervalfixedfeequantitytransitionparams.md +0 -9
- package/docs/models/shared/prices.md +0 -9
- package/docs/models/shared/product.md +0 -10
- package/docs/models/shared/reportingconfiguration.md +0 -8
- package/docs/models/shared/security.md +0 -8
- package/docs/models/shared/subscription.md +0 -44
- package/docs/models/shared/subscriptioncosts.md +0 -8
- package/docs/models/shared/subscriptionmetadata.md +0 -9
- package/docs/models/shared/subscriptionminified.md +0 -8
- package/docs/models/shared/subscriptionplanchange.md +0 -23
- package/docs/models/shared/subscriptions.md +0 -9
- package/docs/models/shared/subscriptionscheduleitem.md +0 -10
- package/docs/models/shared/subscriptionscheduleitems.md +0 -9
- package/docs/models/shared/subscriptionstatus.md +0 -10
- package/docs/models/shared/subscriptiontrialinfo.md +0 -8
- package/docs/models/shared/taxamount.md +0 -10
- package/docs/models/shared/trialconfig.md +0 -9
- package/docs/models/shared/trialconfigtrialperiodunit.md +0 -8
- package/docs/models/shared/triggersubscriptionphaseparams.md +0 -8
- package/docs/models/shared/unschedulefixedfeequantitychangeparams.md +0 -8
- package/docs/models/shared/upcominginvoice.md +0 -46
- package/docs/models/shared/upcominginvoicemetadata.md +0 -7
- package/docs/models/shared/upcominginvoicestatus.md +0 -12
- package/docs/models/shared/updateevent.md +0 -12
- package/docs/models/shared/updateeventproperties.md +0 -9
- package/docs/models/shared/validationerror.md +0 -9
- package/docs/sdks/availability/README.md +0 -46
- package/docs/sdks/coupon/README.md +0 -235
- package/docs/sdks/credit/README.md +0 -565
- package/docs/sdks/creditnote/README.md +0 -94
- package/docs/sdks/customer/README.md +0 -1080
- package/docs/sdks/event/README.md +0 -674
- package/docs/sdks/invoice/README.md +0 -388
- package/docs/sdks/item/README.md +0 -92
- package/docs/sdks/metric/README.md +0 -136
- package/docs/sdks/orb/README.md +0 -21
- package/docs/sdks/plan/README.md +0 -298
- package/docs/sdks/price/README.md +0 -375
- package/docs/sdks/priceinterval/README.md +0 -137
- package/docs/sdks/subscription/README.md +0 -1306
- package/docs/types/rfcdate.md +0 -11
|
@@ -0,0 +1,915 @@
|
|
|
1
|
+
import * as Core from 'orb-billing/core';
|
|
2
|
+
import { APIResource } from 'orb-billing/resource';
|
|
3
|
+
import * as CostsAPI from 'orb-billing/resources/customers/costs';
|
|
4
|
+
import * as PricesAPI from 'orb-billing/resources/prices/prices';
|
|
5
|
+
export declare class Costs extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* This endpoint is used to fetch a day-by-day snapshot of a customer's costs in
|
|
8
|
+
* Orb, calculated by applying pricing information to the underlying usage (see the
|
|
9
|
+
* [subscription usage endpoint](fetch-subscription-usage.api.mdx) to fetch usage
|
|
10
|
+
* per metric, in usage units rather than a currency).
|
|
11
|
+
*
|
|
12
|
+
* This endpoint can be leveraged for internal tooling and to provide a more
|
|
13
|
+
* transparent billing experience for your end users:
|
|
14
|
+
*
|
|
15
|
+
* 1. Understand the cost breakdown per line item historically and in real-time for
|
|
16
|
+
* the current billing period.
|
|
17
|
+
* 2. Provide customer visibility into how different services are contributing to
|
|
18
|
+
* the overall invoice with a per-day timeseries (as compared to the
|
|
19
|
+
* [upcoming invoice](fetch-upcoming-invoice) resource, which represents a
|
|
20
|
+
* snapshot for the current period).
|
|
21
|
+
* 3. Assess how minimums and discounts affect your customers by teasing apart
|
|
22
|
+
* costs directly as a result of usage, as opposed to minimums and discounts at
|
|
23
|
+
* the plan and price level.
|
|
24
|
+
* 4. Gain insight into key customer health metrics, such as the percent
|
|
25
|
+
* utilization of the minimum committed spend.
|
|
26
|
+
*
|
|
27
|
+
* ## Fetching subscriptions
|
|
28
|
+
*
|
|
29
|
+
* By default, this endpoint fetches the currently active subscription for the
|
|
30
|
+
* customer, and returns cost information for the subscription's current billing
|
|
31
|
+
* period, broken down by each participating price. If there are no currently
|
|
32
|
+
* active subscriptions, this will instead default to the most recently active
|
|
33
|
+
* subscription or return an empty series if none are found. For example, if your
|
|
34
|
+
* plan charges for compute hours, job runs, and data syncs, then this endpoint
|
|
35
|
+
* would provide a daily breakdown of your customer's cost for each of those axes.
|
|
36
|
+
*
|
|
37
|
+
* If timeframe bounds are specified, Orb fetches all subscriptions that were
|
|
38
|
+
* active in that timeframe. If two subscriptions overlap on a single day, costs
|
|
39
|
+
* from each price will be summed, and prices for both subscriptions will be
|
|
40
|
+
* included in the breakdown.
|
|
41
|
+
*
|
|
42
|
+
* ## Prepaid plans
|
|
43
|
+
*
|
|
44
|
+
* For plans that include prices which deduct credits rather than accrue in-arrears
|
|
45
|
+
* charges in a billable currency, this endpoint will return the total deduction
|
|
46
|
+
* amount, in credits, for the specified timeframe.
|
|
47
|
+
*
|
|
48
|
+
* ## Cumulative subtotals and totals
|
|
49
|
+
*
|
|
50
|
+
* Since the subtotal and total must factor in any billing-period level discounts
|
|
51
|
+
* and minimums, it's most meaningful to consider costs relative to the start of
|
|
52
|
+
* the subscription's billing period. As a result, by default this endpoint returns
|
|
53
|
+
* cumulative totals since the beginning of the billing period. In particular, the
|
|
54
|
+
* `timeframe_start` of a returned timeframe window is _always_ the beginning of
|
|
55
|
+
* the billing period and `timeframe_end` is incremented one day at a time to build
|
|
56
|
+
* the result.
|
|
57
|
+
*
|
|
58
|
+
* A customer that uses a few API calls a day but has a minimum commitment might
|
|
59
|
+
* exhibit the following pattern for their subtotal and total in the first few days
|
|
60
|
+
* of the month. Here, we assume that each API call is $2.50, the customer's plan
|
|
61
|
+
* has a monthly minimum of $50 for this price, and that the subscription's billing
|
|
62
|
+
* period bounds are aligned to the first of the month:
|
|
63
|
+
*
|
|
64
|
+
* | timeframe_start | timeframe_end | Cumulative usage | Subtotal | Total (incl. commitment) |
|
|
65
|
+
* | --------------- | ------------- | ---------------- | -------- | ------------------------ |
|
|
66
|
+
* | 2023-02-01 | 2023-02-02 | 9 | $22.50 | $50.00 |
|
|
67
|
+
* | 2023-02-01 | 2023-02-03 | 19 | $47.50 | $50.00 |
|
|
68
|
+
* | 2023-02-01 | 2023-02-04 | 20 | $50.00 | $50.00 |
|
|
69
|
+
* | 2023-02-01 | 2023-02-05 | 28 | $70.00 | $70.00 |
|
|
70
|
+
* | 2023-02-01 | 2023-02-06 | 36 | $90.00 | $90.00 |
|
|
71
|
+
*
|
|
72
|
+
* ### Periodic values
|
|
73
|
+
*
|
|
74
|
+
* When the query parameter `view_mode=periodic` is specified, Orb will return an
|
|
75
|
+
* incremental day-by-day view of costs. In this case, there will always be a
|
|
76
|
+
* one-day difference between `timeframe_start` and `timeframe_end` for the
|
|
77
|
+
* timeframes returned. This is a transform on top of the cumulative costs,
|
|
78
|
+
* calculated by taking the difference of each timeframe with the last. Note that
|
|
79
|
+
* in the above example, the `Total` value would be 0 for the second two data
|
|
80
|
+
* points, since the minimum commitment has not yet been hit and each day is not
|
|
81
|
+
* contributing anything to the total cost.
|
|
82
|
+
*
|
|
83
|
+
* ## Timeframe bounds
|
|
84
|
+
*
|
|
85
|
+
* If no timeframe bounds are specified, the response will default to the current
|
|
86
|
+
* billing period for the customer's subscription. For subscriptions that have
|
|
87
|
+
* ended, this will be the billing period when they were last active. If the
|
|
88
|
+
* subscription starts or ends within the timeframe, the response will only include
|
|
89
|
+
* windows where the subscription is active.
|
|
90
|
+
*
|
|
91
|
+
* As noted above, `timeframe_start` for a given cumulative datapoint is always the
|
|
92
|
+
* beginning of the billing period, and `timeframe_end` is incremented one day at a
|
|
93
|
+
* time to construct the response. When a timeframe is passed in that is not
|
|
94
|
+
* aligned to the current subscription's billing period, the response will contain
|
|
95
|
+
* cumulative totals from multiple billing periods.
|
|
96
|
+
*
|
|
97
|
+
* Suppose the queried customer has a subscription aligned to the 15th of every
|
|
98
|
+
* month. If this endpoint is queried with the date range `2023-06-01` -
|
|
99
|
+
* `2023-07-01`, the first data point will represent about half a billing period's
|
|
100
|
+
* worth of costs, accounting for accruals from the start of the billing period and
|
|
101
|
+
* inclusive of the first day of the timeframe
|
|
102
|
+
* (`timeframe_start = 2023-05-15 00:00:00`, `timeframe_end = 2023-06-02 00:00:00`)
|
|
103
|
+
*
|
|
104
|
+
* | datapoint index | timeframe_start | timeframe_end |
|
|
105
|
+
* | --------------- | --------------- | ------------- |
|
|
106
|
+
* | 0 | 2023-05-15 | 2023-06-02 |
|
|
107
|
+
* | 1 | 2023-05-15 | 2023-06-03 |
|
|
108
|
+
* | 2 | ... | ... |
|
|
109
|
+
* | 3 | 2023-05-15 | 2023-06-14 |
|
|
110
|
+
* | 4 | 2023-06-15 | 2023-06-16 |
|
|
111
|
+
* | 5 | 2023-06-15 | 2023-06-17 |
|
|
112
|
+
* | 6 | ... | ... |
|
|
113
|
+
* | 7 | 2023-06-15 | 2023-07-01 |
|
|
114
|
+
*
|
|
115
|
+
* You can see this sliced timeframe visualized
|
|
116
|
+
* [here](https://i.imgur.com/TXhYgme.png).
|
|
117
|
+
*
|
|
118
|
+
* ## Grouping by custom attributes
|
|
119
|
+
*
|
|
120
|
+
* In order to view costs grouped by a specific _attribute_ that each event is
|
|
121
|
+
* tagged with (i.e. `cluster`), you can additionally specify a `group_by` key. The
|
|
122
|
+
* `group_by` key denotes the event property on which to group.
|
|
123
|
+
*
|
|
124
|
+
* When returning grouped costs, a separate `price_group` object in the
|
|
125
|
+
* `per_price_costs` array is returned for each value of the `group_by` key present
|
|
126
|
+
* in your events. The `subtotal` value of the `per_price_costs` object is the sum
|
|
127
|
+
* of each `price_group`'s total.
|
|
128
|
+
*
|
|
129
|
+
* Orb expects events will contain values in the `properties` dictionary that
|
|
130
|
+
* correspond to the `group_by` key specified. By default, Orb will return a `null`
|
|
131
|
+
* group (i.e. events that match the metric but do not have the key set).
|
|
132
|
+
* Currently, it is only possible to view costs grouped by a single attribute at a
|
|
133
|
+
* time.
|
|
134
|
+
*
|
|
135
|
+
* ### Matrix prices
|
|
136
|
+
*
|
|
137
|
+
* When a price uses matrix pricing, it's important to view costs grouped by those
|
|
138
|
+
* matrix dimensions. Orb will return `price_groups` with the `grouping_key` and
|
|
139
|
+
* `secondary_grouping_key` based on the matrix price definition, for each
|
|
140
|
+
* `grouping_value` and `secondary_grouping_value` available.
|
|
141
|
+
*/
|
|
142
|
+
list(customerId: string | null, query?: CostListParams, options?: Core.RequestOptions): Core.APIPromise<CostListResponse>;
|
|
143
|
+
list(customerId: string | null, options?: Core.RequestOptions): Core.APIPromise<CostListResponse>;
|
|
144
|
+
/**
|
|
145
|
+
* This endpoint is used to fetch a day-by-day snapshot of a customer's costs in
|
|
146
|
+
* Orb, calculated by applying pricing information to the underlying usage (see the
|
|
147
|
+
* [subscription usage endpoint](fetch-subscription-usage.api.mdx) to fetch usage
|
|
148
|
+
* per metric, in usage units rather than a currency).
|
|
149
|
+
*
|
|
150
|
+
* This endpoint can be leveraged for internal tooling and to provide a more
|
|
151
|
+
* transparent billing experience for your end users:
|
|
152
|
+
*
|
|
153
|
+
* 1. Understand the cost breakdown per line item historically and in real-time for
|
|
154
|
+
* the current billing period.
|
|
155
|
+
* 2. Provide customer visibility into how different services are contributing to
|
|
156
|
+
* the overall invoice with a per-day timeseries (as compared to the
|
|
157
|
+
* [upcoming invoice](fetch-upcoming-invoice) resource, which represents a
|
|
158
|
+
* snapshot for the current period).
|
|
159
|
+
* 3. Assess how minimums and discounts affect your customers by teasing apart
|
|
160
|
+
* costs directly as a result of usage, as opposed to minimums and discounts at
|
|
161
|
+
* the plan and price level.
|
|
162
|
+
* 4. Gain insight into key customer health metrics, such as the percent
|
|
163
|
+
* utilization of the minimum committed spend.
|
|
164
|
+
*
|
|
165
|
+
* ## Fetching subscriptions
|
|
166
|
+
*
|
|
167
|
+
* By default, this endpoint fetches the currently active subscription for the
|
|
168
|
+
* customer, and returns cost information for the subscription's current billing
|
|
169
|
+
* period, broken down by each participating price. If there are no currently
|
|
170
|
+
* active subscriptions, this will instead default to the most recently active
|
|
171
|
+
* subscription or return an empty series if none are found. For example, if your
|
|
172
|
+
* plan charges for compute hours, job runs, and data syncs, then this endpoint
|
|
173
|
+
* would provide a daily breakdown of your customer's cost for each of those axes.
|
|
174
|
+
*
|
|
175
|
+
* If timeframe bounds are specified, Orb fetches all subscriptions that were
|
|
176
|
+
* active in that timeframe. If two subscriptions overlap on a single day, costs
|
|
177
|
+
* from each price will be summed, and prices for both subscriptions will be
|
|
178
|
+
* included in the breakdown.
|
|
179
|
+
*
|
|
180
|
+
* ## Prepaid plans
|
|
181
|
+
*
|
|
182
|
+
* For plans that include prices which deduct credits rather than accrue in-arrears
|
|
183
|
+
* charges in a billable currency, this endpoint will return the total deduction
|
|
184
|
+
* amount, in credits, for the specified timeframe.
|
|
185
|
+
*
|
|
186
|
+
* ## Cumulative subtotals and totals
|
|
187
|
+
*
|
|
188
|
+
* Since the subtotal and total must factor in any billing-period level discounts
|
|
189
|
+
* and minimums, it's most meaningful to consider costs relative to the start of
|
|
190
|
+
* the subscription's billing period. As a result, by default this endpoint returns
|
|
191
|
+
* cumulative totals since the beginning of the billing period. In particular, the
|
|
192
|
+
* `timeframe_start` of a returned timeframe window is _always_ the beginning of
|
|
193
|
+
* the billing period and `timeframe_end` is incremented one day at a time to build
|
|
194
|
+
* the result.
|
|
195
|
+
*
|
|
196
|
+
* A customer that uses a few API calls a day but has a minimum commitment might
|
|
197
|
+
* exhibit the following pattern for their subtotal and total in the first few days
|
|
198
|
+
* of the month. Here, we assume that each API call is $2.50, the customer's plan
|
|
199
|
+
* has a monthly minimum of $50 for this price, and that the subscription's billing
|
|
200
|
+
* period bounds are aligned to the first of the month:
|
|
201
|
+
*
|
|
202
|
+
* | timeframe_start | timeframe_end | Cumulative usage | Subtotal | Total (incl. commitment) |
|
|
203
|
+
* | --------------- | ------------- | ---------------- | -------- | ------------------------ |
|
|
204
|
+
* | 2023-02-01 | 2023-02-02 | 9 | $22.50 | $50.00 |
|
|
205
|
+
* | 2023-02-01 | 2023-02-03 | 19 | $47.50 | $50.00 |
|
|
206
|
+
* | 2023-02-01 | 2023-02-04 | 20 | $50.00 | $50.00 |
|
|
207
|
+
* | 2023-02-01 | 2023-02-05 | 28 | $70.00 | $70.00 |
|
|
208
|
+
* | 2023-02-01 | 2023-02-06 | 36 | $90.00 | $90.00 |
|
|
209
|
+
*
|
|
210
|
+
* ### Periodic values
|
|
211
|
+
*
|
|
212
|
+
* When the query parameter `view_mode=periodic` is specified, Orb will return an
|
|
213
|
+
* incremental day-by-day view of costs. In this case, there will always be a
|
|
214
|
+
* one-day difference between `timeframe_start` and `timeframe_end` for the
|
|
215
|
+
* timeframes returned. This is a transform on top of the cumulative costs,
|
|
216
|
+
* calculated by taking the difference of each timeframe with the last. Note that
|
|
217
|
+
* in the above example, the `Total` value would be 0 for the second two data
|
|
218
|
+
* points, since the minimum commitment has not yet been hit and each day is not
|
|
219
|
+
* contributing anything to the total cost.
|
|
220
|
+
*
|
|
221
|
+
* ## Timeframe bounds
|
|
222
|
+
*
|
|
223
|
+
* If no timeframe bounds are specified, the response will default to the current
|
|
224
|
+
* billing period for the customer's subscription. For subscriptions that have
|
|
225
|
+
* ended, this will be the billing period when they were last active. If the
|
|
226
|
+
* subscription starts or ends within the timeframe, the response will only include
|
|
227
|
+
* windows where the subscription is active.
|
|
228
|
+
*
|
|
229
|
+
* As noted above, `timeframe_start` for a given cumulative datapoint is always the
|
|
230
|
+
* beginning of the billing period, and `timeframe_end` is incremented one day at a
|
|
231
|
+
* time to construct the response. When a timeframe is passed in that is not
|
|
232
|
+
* aligned to the current subscription's billing period, the response will contain
|
|
233
|
+
* cumulative totals from multiple billing periods.
|
|
234
|
+
*
|
|
235
|
+
* Suppose the queried customer has a subscription aligned to the 15th of every
|
|
236
|
+
* month. If this endpoint is queried with the date range `2023-06-01` -
|
|
237
|
+
* `2023-07-01`, the first data point will represent about half a billing period's
|
|
238
|
+
* worth of costs, accounting for accruals from the start of the billing period and
|
|
239
|
+
* inclusive of the first day of the timeframe
|
|
240
|
+
* (`timeframe_start = 2023-05-15 00:00:00`, `timeframe_end = 2023-06-02 00:00:00`)
|
|
241
|
+
*
|
|
242
|
+
* | datapoint index | timeframe_start | timeframe_end |
|
|
243
|
+
* | --------------- | --------------- | ------------- |
|
|
244
|
+
* | 0 | 2023-05-15 | 2023-06-02 |
|
|
245
|
+
* | 1 | 2023-05-15 | 2023-06-03 |
|
|
246
|
+
* | 2 | ... | ... |
|
|
247
|
+
* | 3 | 2023-05-15 | 2023-06-14 |
|
|
248
|
+
* | 4 | 2023-06-15 | 2023-06-16 |
|
|
249
|
+
* | 5 | 2023-06-15 | 2023-06-17 |
|
|
250
|
+
* | 6 | ... | ... |
|
|
251
|
+
* | 7 | 2023-06-15 | 2023-07-01 |
|
|
252
|
+
*
|
|
253
|
+
* You can see this sliced timeframe visualized
|
|
254
|
+
* [here](https://i.imgur.com/TXhYgme.png).
|
|
255
|
+
*
|
|
256
|
+
* ## Grouping by custom attributes
|
|
257
|
+
*
|
|
258
|
+
* In order to view costs grouped by a specific _attribute_ that each event is
|
|
259
|
+
* tagged with (i.e. `cluster`), you can additionally specify a `group_by` key. The
|
|
260
|
+
* `group_by` key denotes the event property on which to group.
|
|
261
|
+
*
|
|
262
|
+
* When returning grouped costs, a separate `price_group` object in the
|
|
263
|
+
* `per_price_costs` array is returned for each value of the `group_by` key present
|
|
264
|
+
* in your events. The `subtotal` value of the `per_price_costs` object is the sum
|
|
265
|
+
* of each `price_group`'s total.
|
|
266
|
+
*
|
|
267
|
+
* Orb expects events will contain values in the `properties` dictionary that
|
|
268
|
+
* correspond to the `group_by` key specified. By default, Orb will return a `null`
|
|
269
|
+
* group (i.e. events that match the metric but do not have the key set).
|
|
270
|
+
* Currently, it is only possible to view costs grouped by a single attribute at a
|
|
271
|
+
* time.
|
|
272
|
+
*
|
|
273
|
+
* ### Matrix prices
|
|
274
|
+
*
|
|
275
|
+
* When a price uses matrix pricing, it's important to view costs grouped by those
|
|
276
|
+
* matrix dimensions. Orb will return `price_groups` with the `grouping_key` and
|
|
277
|
+
* `secondary_grouping_key` based on the matrix price definition, for each
|
|
278
|
+
* `grouping_value` and `secondary_grouping_value` available.
|
|
279
|
+
*/
|
|
280
|
+
listByExternalId(externalCustomerId: string | null, query?: CostListByExternalIDParams, options?: Core.RequestOptions): Core.APIPromise<CostListByExternalIDResponse>;
|
|
281
|
+
listByExternalId(externalCustomerId: string | null, options?: Core.RequestOptions): Core.APIPromise<CostListByExternalIDResponse>;
|
|
282
|
+
}
|
|
283
|
+
export interface CostListResponse {
|
|
284
|
+
data: Array<CostListResponse.Data>;
|
|
285
|
+
}
|
|
286
|
+
export declare namespace CostListResponse {
|
|
287
|
+
interface Data {
|
|
288
|
+
per_price_costs: Array<Data.PerPriceCost>;
|
|
289
|
+
/**
|
|
290
|
+
* Total costs for the timeframe, excluding any minimums and discounts.
|
|
291
|
+
*/
|
|
292
|
+
subtotal: string;
|
|
293
|
+
timeframe_end: string;
|
|
294
|
+
timeframe_start: string;
|
|
295
|
+
/**
|
|
296
|
+
* Total costs for the timeframe, including any minimums and discounts.
|
|
297
|
+
*/
|
|
298
|
+
total: string;
|
|
299
|
+
}
|
|
300
|
+
namespace Data {
|
|
301
|
+
interface PerPriceCost {
|
|
302
|
+
/**
|
|
303
|
+
* The Price resource represents a price that can be billed on a subscription,
|
|
304
|
+
* resulting in a charge on an invoice in the form of an invoice line item. Prices
|
|
305
|
+
* take a quantity and determine an amount to bill.
|
|
306
|
+
*
|
|
307
|
+
* Orb supports a few different pricing models out of the box. Each of these models
|
|
308
|
+
* is serialized differently in a given Price object. The model_type field
|
|
309
|
+
* determines the key for the configuration object that is present.
|
|
310
|
+
*
|
|
311
|
+
* ## Unit pricing
|
|
312
|
+
*
|
|
313
|
+
* With unit pricing, each unit costs a fixed amount.
|
|
314
|
+
*
|
|
315
|
+
* ```json
|
|
316
|
+
* {
|
|
317
|
+
* ...
|
|
318
|
+
* "model_type": "unit",
|
|
319
|
+
* "unit_config": {
|
|
320
|
+
* "unit_amount": "0.50"
|
|
321
|
+
* }
|
|
322
|
+
* ...
|
|
323
|
+
* }
|
|
324
|
+
* ```
|
|
325
|
+
*
|
|
326
|
+
* ## Tiered pricing
|
|
327
|
+
*
|
|
328
|
+
* In tiered pricing, the cost of a given unit depends on the tier range that it
|
|
329
|
+
* falls into, where each tier range is defined by an upper and lower bound. For
|
|
330
|
+
* example, the first ten units may cost $0.50 each and all units thereafter may
|
|
331
|
+
* cost $0.10 each.
|
|
332
|
+
*
|
|
333
|
+
* ```json
|
|
334
|
+
* {
|
|
335
|
+
* ...
|
|
336
|
+
* "model_type": "tiered",
|
|
337
|
+
* "tiered_config": {
|
|
338
|
+
* "tiers": [
|
|
339
|
+
* {
|
|
340
|
+
* "first_unit": 1,
|
|
341
|
+
* "last_unit": 10,
|
|
342
|
+
* "unit_amount": "0.50"
|
|
343
|
+
* },
|
|
344
|
+
* {
|
|
345
|
+
* "first_unit": 11,
|
|
346
|
+
* "last_unit": null,
|
|
347
|
+
* "unit_amount": "0.10"
|
|
348
|
+
* }
|
|
349
|
+
* ]
|
|
350
|
+
* }
|
|
351
|
+
* ...
|
|
352
|
+
* ```
|
|
353
|
+
*
|
|
354
|
+
* ## Bulk pricing
|
|
355
|
+
*
|
|
356
|
+
* Bulk pricing applies when the number of units determine the cost of all units.
|
|
357
|
+
* For example, if you've bought less than 10 units, they may each be $0.50 for a
|
|
358
|
+
* total of $5.00. Once you've bought more than 10 units, all units may now be
|
|
359
|
+
* priced at $0.40 (i.e. 101 units total would be $40.40).
|
|
360
|
+
*
|
|
361
|
+
* ```json
|
|
362
|
+
* {
|
|
363
|
+
* ...
|
|
364
|
+
* "model_type": "bulk",
|
|
365
|
+
* "bulk_config": {
|
|
366
|
+
* "tiers": [
|
|
367
|
+
* {
|
|
368
|
+
* "maximum_units": 10,
|
|
369
|
+
* "unit_amount": "0.50"
|
|
370
|
+
* },
|
|
371
|
+
* {
|
|
372
|
+
* "maximum_units": 1000,
|
|
373
|
+
* "unit_amount": "0.40"
|
|
374
|
+
* }
|
|
375
|
+
* ]
|
|
376
|
+
* }
|
|
377
|
+
* ...
|
|
378
|
+
* }
|
|
379
|
+
* ```
|
|
380
|
+
*
|
|
381
|
+
* ## Package pricing
|
|
382
|
+
*
|
|
383
|
+
* Package pricing defines the size or granularity of a unit for billing purposes.
|
|
384
|
+
* For example, if the package size is set to 5, then 4 units will be billed as 5
|
|
385
|
+
* and 6 units will be billed at 10.
|
|
386
|
+
*
|
|
387
|
+
* ```json
|
|
388
|
+
* {
|
|
389
|
+
* ...
|
|
390
|
+
* "model_type": "package",
|
|
391
|
+
* "package_config": {
|
|
392
|
+
* "package_amount": "0.80",
|
|
393
|
+
* "package_size": 10
|
|
394
|
+
* }
|
|
395
|
+
* ...
|
|
396
|
+
* }
|
|
397
|
+
* ```
|
|
398
|
+
*
|
|
399
|
+
* ## BPS pricing
|
|
400
|
+
*
|
|
401
|
+
* BPS pricing specifies a per-event (e.g. per-payment) rate in one hundredth of a
|
|
402
|
+
* percent (the number of basis points to charge), as well as a cap per event to
|
|
403
|
+
* assess. For example, this would allow you to assess a fee of 0.25% on every
|
|
404
|
+
* payment you process, with a maximum charge of $25 per payment.
|
|
405
|
+
*
|
|
406
|
+
* ```json
|
|
407
|
+
* {
|
|
408
|
+
* ...
|
|
409
|
+
* "model_type": "bps",
|
|
410
|
+
* "bps_config": {
|
|
411
|
+
* "bps": 125,
|
|
412
|
+
* "per_unit_maximum": "11.00"
|
|
413
|
+
* }
|
|
414
|
+
* ...
|
|
415
|
+
* }
|
|
416
|
+
* ```
|
|
417
|
+
*
|
|
418
|
+
* ## Bulk BPS pricing
|
|
419
|
+
*
|
|
420
|
+
* Bulk BPS pricing specifies BPS parameters in a tiered manner, dependent on the
|
|
421
|
+
* total quantity across all events. Similar to bulk pricing, the BPS parameters of
|
|
422
|
+
* a given event depends on the tier range that the billing period falls into. Each
|
|
423
|
+
* tier range is defined by an upper bound. For example, after $1.5M of payment
|
|
424
|
+
* volume is reached, each individual payment may have a lower cap or a smaller
|
|
425
|
+
* take-rate.
|
|
426
|
+
*
|
|
427
|
+
* ```json
|
|
428
|
+
* ...
|
|
429
|
+
* "model_type": "bulk_bps",
|
|
430
|
+
* "bulk_bps_config": {
|
|
431
|
+
* "tiers": [
|
|
432
|
+
* {
|
|
433
|
+
* "maximum_amount": "1000000.00",
|
|
434
|
+
* "bps": 125,
|
|
435
|
+
* "per_unit_maximum": "19.00"
|
|
436
|
+
* },
|
|
437
|
+
* {
|
|
438
|
+
* "maximum_amount": null,
|
|
439
|
+
* "bps": 115,
|
|
440
|
+
* "per_unit_maximum": "4.00"
|
|
441
|
+
* }
|
|
442
|
+
* ]
|
|
443
|
+
* }
|
|
444
|
+
* ...
|
|
445
|
+
* }
|
|
446
|
+
* ```
|
|
447
|
+
*
|
|
448
|
+
* ## Tiered BPS pricing
|
|
449
|
+
*
|
|
450
|
+
* Tiered BPS pricing specifies BPS parameters in a graduated manner, where an
|
|
451
|
+
* event's applicable parameter is a function of its marginal addition to the
|
|
452
|
+
* period total. Similar to tiered pricing, the BPS parameters of a given event
|
|
453
|
+
* depends on the tier range that it falls into, where each tier range is defined
|
|
454
|
+
* by an upper and lower bound. For example, the first few payments may have a 0.8
|
|
455
|
+
* BPS take-rate and all payments after a specific volume may incur a take-rate of
|
|
456
|
+
* 0.5 BPS each.
|
|
457
|
+
*
|
|
458
|
+
* ```json
|
|
459
|
+
* ...
|
|
460
|
+
* "model_type": "tiered_bps",
|
|
461
|
+
* "tiered_bps_config": {
|
|
462
|
+
* "tiers": [
|
|
463
|
+
* {
|
|
464
|
+
* "minimum_amount": "0",
|
|
465
|
+
* "maximum_amount": "1000000.00",
|
|
466
|
+
* "bps": 125,
|
|
467
|
+
* "per_unit_maximum": "19.00"
|
|
468
|
+
* },
|
|
469
|
+
* {
|
|
470
|
+
* "minimum_amount": "1000000.00",
|
|
471
|
+
* "maximum_amount": null,
|
|
472
|
+
* "bps": 115,
|
|
473
|
+
* "per_unit_maximum": "4.00"
|
|
474
|
+
* }
|
|
475
|
+
* ]
|
|
476
|
+
* }
|
|
477
|
+
* ...
|
|
478
|
+
* }
|
|
479
|
+
* ```
|
|
480
|
+
*
|
|
481
|
+
* ## Matrix pricing
|
|
482
|
+
*
|
|
483
|
+
* Matrix pricing defines a set of unit prices in a one or two-dimensional matrix.
|
|
484
|
+
* `dimensions` defines the two event property values evaluated in this pricing
|
|
485
|
+
* model. In a one-dimensional matrix, the second value is `null`. Every
|
|
486
|
+
* configuration has a list of `matrix_values` which give the unit prices for
|
|
487
|
+
* specified property values. In a one-dimensional matrix, the matrix values will
|
|
488
|
+
* have `dimension_values` where the second value of the pair is null. If an event
|
|
489
|
+
* does not match any of the dimension values in the matrix, it will resort to the
|
|
490
|
+
* `default_unit_amount`.
|
|
491
|
+
*
|
|
492
|
+
* ```json
|
|
493
|
+
* {
|
|
494
|
+
* "model_type": "matrix"
|
|
495
|
+
* "matrix_config": {
|
|
496
|
+
* "default_unit_amount": "3.00",
|
|
497
|
+
* "dimensions": [
|
|
498
|
+
* "cluster_name",
|
|
499
|
+
* "region"
|
|
500
|
+
* ],
|
|
501
|
+
* "matrix_values": [
|
|
502
|
+
* {
|
|
503
|
+
* "dimension_values": [
|
|
504
|
+
* "alpha",
|
|
505
|
+
* "west"
|
|
506
|
+
* ],
|
|
507
|
+
* "unit_amount": "2.00"
|
|
508
|
+
* },
|
|
509
|
+
* ...
|
|
510
|
+
* ]
|
|
511
|
+
* }
|
|
512
|
+
* }
|
|
513
|
+
* ```
|
|
514
|
+
*
|
|
515
|
+
* ### Fixed fees
|
|
516
|
+
*
|
|
517
|
+
* Fixed fees are prices that are applied independent of usage quantities, and
|
|
518
|
+
* follow unit pricing. They also have an additional parameter
|
|
519
|
+
* `fixed_price_quantity`. If the Price represents a fixed cost, this represents
|
|
520
|
+
* the quantity of units applied.
|
|
521
|
+
*
|
|
522
|
+
* ```json
|
|
523
|
+
* {
|
|
524
|
+
* ...
|
|
525
|
+
* "id": "price_id",
|
|
526
|
+
* "model_type": "unit",
|
|
527
|
+
* "unit_config": {
|
|
528
|
+
* "unit_amount": "2.00"
|
|
529
|
+
* },
|
|
530
|
+
* "fixed_price_quantity": 3.0
|
|
531
|
+
* ...
|
|
532
|
+
* }
|
|
533
|
+
* ```
|
|
534
|
+
*/
|
|
535
|
+
price: PricesAPI.Price;
|
|
536
|
+
/**
|
|
537
|
+
* Price's contributions for the timeframe, excluding any minimums and discounts.
|
|
538
|
+
*/
|
|
539
|
+
subtotal: string;
|
|
540
|
+
/**
|
|
541
|
+
* Price's contributions for the timeframe, including minimums and discounts.
|
|
542
|
+
*/
|
|
543
|
+
total: string;
|
|
544
|
+
/**
|
|
545
|
+
* If a `group_by` attribute is passed in, array of costs per `grouping_key`,
|
|
546
|
+
* `grouping_value` or `secondary_grouping_key`, `secondary_grouping_value`.
|
|
547
|
+
*/
|
|
548
|
+
price_groups?: Array<PerPriceCost.PriceGroup> | null;
|
|
549
|
+
/**
|
|
550
|
+
* The price's quantity for the timeframe
|
|
551
|
+
*/
|
|
552
|
+
quantity?: number | null;
|
|
553
|
+
}
|
|
554
|
+
namespace PerPriceCost {
|
|
555
|
+
interface PriceGroup {
|
|
556
|
+
/**
|
|
557
|
+
* Grouping key to break down a single price's costs
|
|
558
|
+
*/
|
|
559
|
+
grouping_key: string;
|
|
560
|
+
grouping_value: string | null;
|
|
561
|
+
/**
|
|
562
|
+
* If the price is a matrix price, this is the second dimension key
|
|
563
|
+
*/
|
|
564
|
+
secondary_grouping_key: string | null;
|
|
565
|
+
secondary_grouping_value: string | null;
|
|
566
|
+
/**
|
|
567
|
+
* Total costs for this group for the timeframe. Note that this does not account
|
|
568
|
+
* for any minimums or discounts.
|
|
569
|
+
*/
|
|
570
|
+
total: string;
|
|
571
|
+
}
|
|
572
|
+
}
|
|
573
|
+
}
|
|
574
|
+
}
|
|
575
|
+
export interface CostListByExternalIDResponse {
|
|
576
|
+
data: Array<CostListByExternalIDResponse.Data>;
|
|
577
|
+
}
|
|
578
|
+
export declare namespace CostListByExternalIDResponse {
|
|
579
|
+
interface Data {
|
|
580
|
+
per_price_costs: Array<Data.PerPriceCost>;
|
|
581
|
+
/**
|
|
582
|
+
* Total costs for the timeframe, excluding any minimums and discounts.
|
|
583
|
+
*/
|
|
584
|
+
subtotal: string;
|
|
585
|
+
timeframe_end: string;
|
|
586
|
+
timeframe_start: string;
|
|
587
|
+
/**
|
|
588
|
+
* Total costs for the timeframe, including any minimums and discounts.
|
|
589
|
+
*/
|
|
590
|
+
total: string;
|
|
591
|
+
}
|
|
592
|
+
namespace Data {
|
|
593
|
+
interface PerPriceCost {
|
|
594
|
+
/**
|
|
595
|
+
* The Price resource represents a price that can be billed on a subscription,
|
|
596
|
+
* resulting in a charge on an invoice in the form of an invoice line item. Prices
|
|
597
|
+
* take a quantity and determine an amount to bill.
|
|
598
|
+
*
|
|
599
|
+
* Orb supports a few different pricing models out of the box. Each of these models
|
|
600
|
+
* is serialized differently in a given Price object. The model_type field
|
|
601
|
+
* determines the key for the configuration object that is present.
|
|
602
|
+
*
|
|
603
|
+
* ## Unit pricing
|
|
604
|
+
*
|
|
605
|
+
* With unit pricing, each unit costs a fixed amount.
|
|
606
|
+
*
|
|
607
|
+
* ```json
|
|
608
|
+
* {
|
|
609
|
+
* ...
|
|
610
|
+
* "model_type": "unit",
|
|
611
|
+
* "unit_config": {
|
|
612
|
+
* "unit_amount": "0.50"
|
|
613
|
+
* }
|
|
614
|
+
* ...
|
|
615
|
+
* }
|
|
616
|
+
* ```
|
|
617
|
+
*
|
|
618
|
+
* ## Tiered pricing
|
|
619
|
+
*
|
|
620
|
+
* In tiered pricing, the cost of a given unit depends on the tier range that it
|
|
621
|
+
* falls into, where each tier range is defined by an upper and lower bound. For
|
|
622
|
+
* example, the first ten units may cost $0.50 each and all units thereafter may
|
|
623
|
+
* cost $0.10 each.
|
|
624
|
+
*
|
|
625
|
+
* ```json
|
|
626
|
+
* {
|
|
627
|
+
* ...
|
|
628
|
+
* "model_type": "tiered",
|
|
629
|
+
* "tiered_config": {
|
|
630
|
+
* "tiers": [
|
|
631
|
+
* {
|
|
632
|
+
* "first_unit": 1,
|
|
633
|
+
* "last_unit": 10,
|
|
634
|
+
* "unit_amount": "0.50"
|
|
635
|
+
* },
|
|
636
|
+
* {
|
|
637
|
+
* "first_unit": 11,
|
|
638
|
+
* "last_unit": null,
|
|
639
|
+
* "unit_amount": "0.10"
|
|
640
|
+
* }
|
|
641
|
+
* ]
|
|
642
|
+
* }
|
|
643
|
+
* ...
|
|
644
|
+
* ```
|
|
645
|
+
*
|
|
646
|
+
* ## Bulk pricing
|
|
647
|
+
*
|
|
648
|
+
* Bulk pricing applies when the number of units determine the cost of all units.
|
|
649
|
+
* For example, if you've bought less than 10 units, they may each be $0.50 for a
|
|
650
|
+
* total of $5.00. Once you've bought more than 10 units, all units may now be
|
|
651
|
+
* priced at $0.40 (i.e. 101 units total would be $40.40).
|
|
652
|
+
*
|
|
653
|
+
* ```json
|
|
654
|
+
* {
|
|
655
|
+
* ...
|
|
656
|
+
* "model_type": "bulk",
|
|
657
|
+
* "bulk_config": {
|
|
658
|
+
* "tiers": [
|
|
659
|
+
* {
|
|
660
|
+
* "maximum_units": 10,
|
|
661
|
+
* "unit_amount": "0.50"
|
|
662
|
+
* },
|
|
663
|
+
* {
|
|
664
|
+
* "maximum_units": 1000,
|
|
665
|
+
* "unit_amount": "0.40"
|
|
666
|
+
* }
|
|
667
|
+
* ]
|
|
668
|
+
* }
|
|
669
|
+
* ...
|
|
670
|
+
* }
|
|
671
|
+
* ```
|
|
672
|
+
*
|
|
673
|
+
* ## Package pricing
|
|
674
|
+
*
|
|
675
|
+
* Package pricing defines the size or granularity of a unit for billing purposes.
|
|
676
|
+
* For example, if the package size is set to 5, then 4 units will be billed as 5
|
|
677
|
+
* and 6 units will be billed at 10.
|
|
678
|
+
*
|
|
679
|
+
* ```json
|
|
680
|
+
* {
|
|
681
|
+
* ...
|
|
682
|
+
* "model_type": "package",
|
|
683
|
+
* "package_config": {
|
|
684
|
+
* "package_amount": "0.80",
|
|
685
|
+
* "package_size": 10
|
|
686
|
+
* }
|
|
687
|
+
* ...
|
|
688
|
+
* }
|
|
689
|
+
* ```
|
|
690
|
+
*
|
|
691
|
+
* ## BPS pricing
|
|
692
|
+
*
|
|
693
|
+
* BPS pricing specifies a per-event (e.g. per-payment) rate in one hundredth of a
|
|
694
|
+
* percent (the number of basis points to charge), as well as a cap per event to
|
|
695
|
+
* assess. For example, this would allow you to assess a fee of 0.25% on every
|
|
696
|
+
* payment you process, with a maximum charge of $25 per payment.
|
|
697
|
+
*
|
|
698
|
+
* ```json
|
|
699
|
+
* {
|
|
700
|
+
* ...
|
|
701
|
+
* "model_type": "bps",
|
|
702
|
+
* "bps_config": {
|
|
703
|
+
* "bps": 125,
|
|
704
|
+
* "per_unit_maximum": "11.00"
|
|
705
|
+
* }
|
|
706
|
+
* ...
|
|
707
|
+
* }
|
|
708
|
+
* ```
|
|
709
|
+
*
|
|
710
|
+
* ## Bulk BPS pricing
|
|
711
|
+
*
|
|
712
|
+
* Bulk BPS pricing specifies BPS parameters in a tiered manner, dependent on the
|
|
713
|
+
* total quantity across all events. Similar to bulk pricing, the BPS parameters of
|
|
714
|
+
* a given event depends on the tier range that the billing period falls into. Each
|
|
715
|
+
* tier range is defined by an upper bound. For example, after $1.5M of payment
|
|
716
|
+
* volume is reached, each individual payment may have a lower cap or a smaller
|
|
717
|
+
* take-rate.
|
|
718
|
+
*
|
|
719
|
+
* ```json
|
|
720
|
+
* ...
|
|
721
|
+
* "model_type": "bulk_bps",
|
|
722
|
+
* "bulk_bps_config": {
|
|
723
|
+
* "tiers": [
|
|
724
|
+
* {
|
|
725
|
+
* "maximum_amount": "1000000.00",
|
|
726
|
+
* "bps": 125,
|
|
727
|
+
* "per_unit_maximum": "19.00"
|
|
728
|
+
* },
|
|
729
|
+
* {
|
|
730
|
+
* "maximum_amount": null,
|
|
731
|
+
* "bps": 115,
|
|
732
|
+
* "per_unit_maximum": "4.00"
|
|
733
|
+
* }
|
|
734
|
+
* ]
|
|
735
|
+
* }
|
|
736
|
+
* ...
|
|
737
|
+
* }
|
|
738
|
+
* ```
|
|
739
|
+
*
|
|
740
|
+
* ## Tiered BPS pricing
|
|
741
|
+
*
|
|
742
|
+
* Tiered BPS pricing specifies BPS parameters in a graduated manner, where an
|
|
743
|
+
* event's applicable parameter is a function of its marginal addition to the
|
|
744
|
+
* period total. Similar to tiered pricing, the BPS parameters of a given event
|
|
745
|
+
* depends on the tier range that it falls into, where each tier range is defined
|
|
746
|
+
* by an upper and lower bound. For example, the first few payments may have a 0.8
|
|
747
|
+
* BPS take-rate and all payments after a specific volume may incur a take-rate of
|
|
748
|
+
* 0.5 BPS each.
|
|
749
|
+
*
|
|
750
|
+
* ```json
|
|
751
|
+
* ...
|
|
752
|
+
* "model_type": "tiered_bps",
|
|
753
|
+
* "tiered_bps_config": {
|
|
754
|
+
* "tiers": [
|
|
755
|
+
* {
|
|
756
|
+
* "minimum_amount": "0",
|
|
757
|
+
* "maximum_amount": "1000000.00",
|
|
758
|
+
* "bps": 125,
|
|
759
|
+
* "per_unit_maximum": "19.00"
|
|
760
|
+
* },
|
|
761
|
+
* {
|
|
762
|
+
* "minimum_amount": "1000000.00",
|
|
763
|
+
* "maximum_amount": null,
|
|
764
|
+
* "bps": 115,
|
|
765
|
+
* "per_unit_maximum": "4.00"
|
|
766
|
+
* }
|
|
767
|
+
* ]
|
|
768
|
+
* }
|
|
769
|
+
* ...
|
|
770
|
+
* }
|
|
771
|
+
* ```
|
|
772
|
+
*
|
|
773
|
+
* ## Matrix pricing
|
|
774
|
+
*
|
|
775
|
+
* Matrix pricing defines a set of unit prices in a one or two-dimensional matrix.
|
|
776
|
+
* `dimensions` defines the two event property values evaluated in this pricing
|
|
777
|
+
* model. In a one-dimensional matrix, the second value is `null`. Every
|
|
778
|
+
* configuration has a list of `matrix_values` which give the unit prices for
|
|
779
|
+
* specified property values. In a one-dimensional matrix, the matrix values will
|
|
780
|
+
* have `dimension_values` where the second value of the pair is null. If an event
|
|
781
|
+
* does not match any of the dimension values in the matrix, it will resort to the
|
|
782
|
+
* `default_unit_amount`.
|
|
783
|
+
*
|
|
784
|
+
* ```json
|
|
785
|
+
* {
|
|
786
|
+
* "model_type": "matrix"
|
|
787
|
+
* "matrix_config": {
|
|
788
|
+
* "default_unit_amount": "3.00",
|
|
789
|
+
* "dimensions": [
|
|
790
|
+
* "cluster_name",
|
|
791
|
+
* "region"
|
|
792
|
+
* ],
|
|
793
|
+
* "matrix_values": [
|
|
794
|
+
* {
|
|
795
|
+
* "dimension_values": [
|
|
796
|
+
* "alpha",
|
|
797
|
+
* "west"
|
|
798
|
+
* ],
|
|
799
|
+
* "unit_amount": "2.00"
|
|
800
|
+
* },
|
|
801
|
+
* ...
|
|
802
|
+
* ]
|
|
803
|
+
* }
|
|
804
|
+
* }
|
|
805
|
+
* ```
|
|
806
|
+
*
|
|
807
|
+
* ### Fixed fees
|
|
808
|
+
*
|
|
809
|
+
* Fixed fees are prices that are applied independent of usage quantities, and
|
|
810
|
+
* follow unit pricing. They also have an additional parameter
|
|
811
|
+
* `fixed_price_quantity`. If the Price represents a fixed cost, this represents
|
|
812
|
+
* the quantity of units applied.
|
|
813
|
+
*
|
|
814
|
+
* ```json
|
|
815
|
+
* {
|
|
816
|
+
* ...
|
|
817
|
+
* "id": "price_id",
|
|
818
|
+
* "model_type": "unit",
|
|
819
|
+
* "unit_config": {
|
|
820
|
+
* "unit_amount": "2.00"
|
|
821
|
+
* },
|
|
822
|
+
* "fixed_price_quantity": 3.0
|
|
823
|
+
* ...
|
|
824
|
+
* }
|
|
825
|
+
* ```
|
|
826
|
+
*/
|
|
827
|
+
price: PricesAPI.Price;
|
|
828
|
+
/**
|
|
829
|
+
* Price's contributions for the timeframe, excluding any minimums and discounts.
|
|
830
|
+
*/
|
|
831
|
+
subtotal: string;
|
|
832
|
+
/**
|
|
833
|
+
* Price's contributions for the timeframe, including minimums and discounts.
|
|
834
|
+
*/
|
|
835
|
+
total: string;
|
|
836
|
+
/**
|
|
837
|
+
* If a `group_by` attribute is passed in, array of costs per `grouping_key`,
|
|
838
|
+
* `grouping_value` or `secondary_grouping_key`, `secondary_grouping_value`.
|
|
839
|
+
*/
|
|
840
|
+
price_groups?: Array<PerPriceCost.PriceGroup> | null;
|
|
841
|
+
/**
|
|
842
|
+
* The price's quantity for the timeframe
|
|
843
|
+
*/
|
|
844
|
+
quantity?: number | null;
|
|
845
|
+
}
|
|
846
|
+
namespace PerPriceCost {
|
|
847
|
+
interface PriceGroup {
|
|
848
|
+
/**
|
|
849
|
+
* Grouping key to break down a single price's costs
|
|
850
|
+
*/
|
|
851
|
+
grouping_key: string;
|
|
852
|
+
grouping_value: string | null;
|
|
853
|
+
/**
|
|
854
|
+
* If the price is a matrix price, this is the second dimension key
|
|
855
|
+
*/
|
|
856
|
+
secondary_grouping_key: string | null;
|
|
857
|
+
secondary_grouping_value: string | null;
|
|
858
|
+
/**
|
|
859
|
+
* Total costs for this group for the timeframe. Note that this does not account
|
|
860
|
+
* for any minimums or discounts.
|
|
861
|
+
*/
|
|
862
|
+
total: string;
|
|
863
|
+
}
|
|
864
|
+
}
|
|
865
|
+
}
|
|
866
|
+
}
|
|
867
|
+
export interface CostListParams {
|
|
868
|
+
/**
|
|
869
|
+
* Groups per-price costs by the key provided.
|
|
870
|
+
*/
|
|
871
|
+
group_by?: string | null;
|
|
872
|
+
/**
|
|
873
|
+
* Costs returned are exclusive of `timeframe_end`.
|
|
874
|
+
*/
|
|
875
|
+
timeframe_end?: string | null;
|
|
876
|
+
/**
|
|
877
|
+
* Costs returned are inclusive of `timeframe_start`.
|
|
878
|
+
*/
|
|
879
|
+
timeframe_start?: string | null;
|
|
880
|
+
/**
|
|
881
|
+
* Controls whether Orb returns cumulative costs since the start of the billing
|
|
882
|
+
* period, or incremental day-by-day costs. If your customer has minimums or
|
|
883
|
+
* discounts, it's strongly recommended that you use the default cumulative
|
|
884
|
+
* behavior.
|
|
885
|
+
*/
|
|
886
|
+
view_mode?: 'periodic' | 'cumulative' | null;
|
|
887
|
+
}
|
|
888
|
+
export interface CostListByExternalIDParams {
|
|
889
|
+
/**
|
|
890
|
+
* Groups per-price costs by the key provided.
|
|
891
|
+
*/
|
|
892
|
+
group_by?: string | null;
|
|
893
|
+
/**
|
|
894
|
+
* Costs returned are exclusive of `timeframe_end`.
|
|
895
|
+
*/
|
|
896
|
+
timeframe_end?: string | null;
|
|
897
|
+
/**
|
|
898
|
+
* Costs returned are inclusive of `timeframe_start`.
|
|
899
|
+
*/
|
|
900
|
+
timeframe_start?: string | null;
|
|
901
|
+
/**
|
|
902
|
+
* Controls whether Orb returns cumulative costs since the start of the billing
|
|
903
|
+
* period, or incremental day-by-day costs. If your customer has minimums or
|
|
904
|
+
* discounts, it's strongly recommended that you use the default cumulative
|
|
905
|
+
* behavior.
|
|
906
|
+
*/
|
|
907
|
+
view_mode?: 'periodic' | 'cumulative' | null;
|
|
908
|
+
}
|
|
909
|
+
export declare namespace Costs {
|
|
910
|
+
export import CostListResponse = CostsAPI.CostListResponse;
|
|
911
|
+
export import CostListByExternalIDResponse = CostsAPI.CostListByExternalIDResponse;
|
|
912
|
+
export import CostListParams = CostsAPI.CostListParams;
|
|
913
|
+
export import CostListByExternalIDParams = CostsAPI.CostListByExternalIDParams;
|
|
914
|
+
}
|
|
915
|
+
//# sourceMappingURL=costs.d.ts.map
|