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
package/index.d.ts
ADDED
|
@@ -0,0 +1,210 @@
|
|
|
1
|
+
import * as Core from "./core.js";
|
|
2
|
+
import * as Pagination from "./pagination.js";
|
|
3
|
+
import * as Errors from "./error.js";
|
|
4
|
+
import { type Agent } from "./_shims/index.js";
|
|
5
|
+
import * as Uploads from "./uploads.js";
|
|
6
|
+
import * as API from 'orb-billing/resources/index';
|
|
7
|
+
export interface ClientOptions {
|
|
8
|
+
/**
|
|
9
|
+
* Defaults to process.env['ORB_API_KEY'].
|
|
10
|
+
*/
|
|
11
|
+
apiKey?: string;
|
|
12
|
+
/**
|
|
13
|
+
* Override the default base URL for the API, e.g., "https://api.example.com/v2/"
|
|
14
|
+
*/
|
|
15
|
+
baseURL?: string;
|
|
16
|
+
/**
|
|
17
|
+
* The maximum amount of time (in milliseconds) that the client should wait for a response
|
|
18
|
+
* from the server before timing out a single request.
|
|
19
|
+
*
|
|
20
|
+
* Note that request timeouts are retried by default, so in a worst-case scenario you may wait
|
|
21
|
+
* much longer than this timeout before the promise succeeds or fails.
|
|
22
|
+
*/
|
|
23
|
+
timeout?: number;
|
|
24
|
+
/**
|
|
25
|
+
* An HTTP agent used to manage HTTP(S) connections.
|
|
26
|
+
*
|
|
27
|
+
* If not provided, an agent will be constructed by default in the Node.js environment,
|
|
28
|
+
* otherwise no agent is used.
|
|
29
|
+
*/
|
|
30
|
+
httpAgent?: Agent;
|
|
31
|
+
/**
|
|
32
|
+
* Specify a custom `fetch` function implementation.
|
|
33
|
+
*
|
|
34
|
+
* If not provided, we use `node-fetch` on Node.js and otherwise expect that `fetch` is
|
|
35
|
+
* defined globally.
|
|
36
|
+
*/
|
|
37
|
+
fetch?: Core.Fetch | undefined;
|
|
38
|
+
/**
|
|
39
|
+
* The maximum number of times that the client will retry a request in case of a
|
|
40
|
+
* temporary failure, like a network error or a 5XX error from the server.
|
|
41
|
+
*
|
|
42
|
+
* @default 2
|
|
43
|
+
*/
|
|
44
|
+
maxRetries?: number;
|
|
45
|
+
/**
|
|
46
|
+
* Default headers to include with every request to the API.
|
|
47
|
+
*
|
|
48
|
+
* These can be removed in individual requests by explicitly setting the
|
|
49
|
+
* header to `undefined` or `null` in request options.
|
|
50
|
+
*/
|
|
51
|
+
defaultHeaders?: Core.Headers;
|
|
52
|
+
/**
|
|
53
|
+
* Default query parameters to include with every request to the API.
|
|
54
|
+
*
|
|
55
|
+
* These can be removed in individual requests by explicitly setting the
|
|
56
|
+
* param to `undefined` in request options.
|
|
57
|
+
*/
|
|
58
|
+
defaultQuery?: Core.DefaultQuery;
|
|
59
|
+
}
|
|
60
|
+
/** API Client for interfacing with the Orb API. */
|
|
61
|
+
export declare class Orb extends Core.APIClient {
|
|
62
|
+
apiKey: string;
|
|
63
|
+
private _options;
|
|
64
|
+
/**
|
|
65
|
+
* API Client for interfacing with the Orb API.
|
|
66
|
+
*
|
|
67
|
+
* @param {string} [opts.apiKey==process.env['ORB_API_KEY'] ?? undefined]
|
|
68
|
+
* @param {string} [opts.baseURL] - Override the default base URL for the API.
|
|
69
|
+
* @param {number} [opts.timeout=1 minute] - The maximum amount of time (in milliseconds) the client will wait for a response before timing out.
|
|
70
|
+
* @param {number} [opts.httpAgent] - An HTTP agent used to manage HTTP(s) connections.
|
|
71
|
+
* @param {Core.Fetch} [opts.fetch] - Specify a custom `fetch` function implementation.
|
|
72
|
+
* @param {number} [opts.maxRetries=2] - The maximum number of times the client will retry a request.
|
|
73
|
+
* @param {Core.Headers} opts.defaultHeaders - Default headers to include with every request to the API.
|
|
74
|
+
* @param {Core.DefaultQuery} opts.defaultQuery - Default query parameters to include with every request to the API.
|
|
75
|
+
*/
|
|
76
|
+
constructor({ apiKey, ...opts }?: ClientOptions);
|
|
77
|
+
topLevel: API.TopLevel;
|
|
78
|
+
coupons: API.Coupons;
|
|
79
|
+
creditNotes: API.CreditNotes;
|
|
80
|
+
customers: API.Customers;
|
|
81
|
+
events: API.Events;
|
|
82
|
+
invoiceLineItems: API.InvoiceLineItems;
|
|
83
|
+
invoices: API.Invoices;
|
|
84
|
+
items: API.Items;
|
|
85
|
+
metrics: API.Metrics;
|
|
86
|
+
plans: API.Plans;
|
|
87
|
+
prices: API.Prices;
|
|
88
|
+
subscriptions: API.Subscriptions;
|
|
89
|
+
protected defaultQuery(): Core.DefaultQuery | undefined;
|
|
90
|
+
protected defaultHeaders(opts: Core.FinalRequestOptions): Core.Headers;
|
|
91
|
+
protected authHeaders(opts: Core.FinalRequestOptions): Core.Headers;
|
|
92
|
+
static Orb: typeof Orb;
|
|
93
|
+
static OrbError: typeof Errors.OrbError;
|
|
94
|
+
static APIError: typeof Errors.APIError;
|
|
95
|
+
static APIConnectionError: typeof Errors.APIConnectionError;
|
|
96
|
+
static APIConnectionTimeoutError: typeof Errors.APIConnectionTimeoutError;
|
|
97
|
+
static APIUserAbortError: typeof Errors.APIUserAbortError;
|
|
98
|
+
static URLNotFound: typeof Errors.URLNotFound;
|
|
99
|
+
static NotFoundError: typeof Errors.NotFoundError;
|
|
100
|
+
static ConflictError: typeof Errors.ConflictError;
|
|
101
|
+
static RateLimitError: typeof Errors.RateLimitError;
|
|
102
|
+
static BadRequestError: typeof Errors.BadRequestError;
|
|
103
|
+
static RequestTooLarge: typeof Errors.RequestTooLarge;
|
|
104
|
+
static TooManyRequests: typeof Errors.TooManyRequests;
|
|
105
|
+
static ResourceNotFound: typeof Errors.ResourceNotFound;
|
|
106
|
+
static ResourceConflict: typeof Errors.ResourceConflict;
|
|
107
|
+
static ResourceTooLarge: typeof Errors.ResourceTooLarge;
|
|
108
|
+
static AuthenticationError: typeof Errors.AuthenticationError;
|
|
109
|
+
static InternalServerError: typeof Errors.InternalServerError;
|
|
110
|
+
static FeatureNotAvailable: typeof Errors.FeatureNotAvailable;
|
|
111
|
+
static PermissionDeniedError: typeof Errors.PermissionDeniedError;
|
|
112
|
+
static OrbAuthenticationError: typeof Errors.OrbAuthenticationError;
|
|
113
|
+
static OrbInternalServerError: typeof Errors.OrbInternalServerError;
|
|
114
|
+
static RequestValidationErrors: typeof Errors.RequestValidationErrors;
|
|
115
|
+
static UnprocessableEntityError: typeof Errors.UnprocessableEntityError;
|
|
116
|
+
static DuplicateResourceCreation: typeof Errors.DuplicateResourceCreation;
|
|
117
|
+
}
|
|
118
|
+
export declare const OrbError: typeof Errors.OrbError, APIError: typeof Errors.APIError, APIConnectionError: typeof Errors.APIConnectionError, APIConnectionTimeoutError: typeof Errors.APIConnectionTimeoutError, APIUserAbortError: typeof Errors.APIUserAbortError, URLNotFound: typeof Errors.URLNotFound, NotFoundError: typeof Errors.NotFoundError, ConflictError: typeof Errors.ConflictError, RateLimitError: typeof Errors.RateLimitError, BadRequestError: typeof Errors.BadRequestError, RequestTooLarge: typeof Errors.RequestTooLarge, TooManyRequests: typeof Errors.TooManyRequests, ResourceNotFound: typeof Errors.ResourceNotFound, ResourceConflict: typeof Errors.ResourceConflict, ResourceTooLarge: typeof Errors.ResourceTooLarge, AuthenticationError: typeof Errors.AuthenticationError, InternalServerError: typeof Errors.InternalServerError, FeatureNotAvailable: typeof Errors.FeatureNotAvailable, PermissionDeniedError: typeof Errors.PermissionDeniedError, OrbAuthenticationError: typeof Errors.OrbAuthenticationError, OrbInternalServerError: typeof Errors.OrbInternalServerError, RequestValidationErrors: typeof Errors.RequestValidationErrors, UnprocessableEntityError: typeof Errors.UnprocessableEntityError, DuplicateResourceCreation: typeof Errors.DuplicateResourceCreation;
|
|
119
|
+
export import toFile = Uploads.toFile;
|
|
120
|
+
export import fileFromPath = Uploads.fileFromPath;
|
|
121
|
+
export declare namespace Orb {
|
|
122
|
+
export import toFile = Uploads.toFile;
|
|
123
|
+
export import fileFromPath = Uploads.fileFromPath;
|
|
124
|
+
export import RequestOptions = Core.RequestOptions;
|
|
125
|
+
export import Page = Pagination.Page;
|
|
126
|
+
export import PageParams = Pagination.PageParams;
|
|
127
|
+
export import PageResponse = Pagination.PageResponse;
|
|
128
|
+
export import TopLevel = API.TopLevel;
|
|
129
|
+
export import TopLevelPingResponse = API.TopLevelPingResponse;
|
|
130
|
+
export import Coupons = API.Coupons;
|
|
131
|
+
export import Coupon = API.Coupon;
|
|
132
|
+
export import CouponsPage = API.CouponsPage;
|
|
133
|
+
export import CouponCreateParams = API.CouponCreateParams;
|
|
134
|
+
export import CouponListParams = API.CouponListParams;
|
|
135
|
+
export import CreditNotes = API.CreditNotes;
|
|
136
|
+
export import CreditNote = API.CreditNote;
|
|
137
|
+
export import CreditNotesPage = API.CreditNotesPage;
|
|
138
|
+
export import CreditNoteListParams = API.CreditNoteListParams;
|
|
139
|
+
export import Customers = API.Customers;
|
|
140
|
+
export import Customer = API.Customer;
|
|
141
|
+
export import CustomersPage = API.CustomersPage;
|
|
142
|
+
export import CustomerCreateParams = API.CustomerCreateParams;
|
|
143
|
+
export import CustomerUpdateParams = API.CustomerUpdateParams;
|
|
144
|
+
export import CustomerListParams = API.CustomerListParams;
|
|
145
|
+
export import CustomerUpdateByExternalIDParams = API.CustomerUpdateByExternalIDParams;
|
|
146
|
+
export import Events = API.Events;
|
|
147
|
+
export import EventUpdateResponse = API.EventUpdateResponse;
|
|
148
|
+
export import EventDeprecateResponse = API.EventDeprecateResponse;
|
|
149
|
+
export import EventIngestResponse = API.EventIngestResponse;
|
|
150
|
+
export import EventSearchResponse = API.EventSearchResponse;
|
|
151
|
+
export import EventUpdateParams = API.EventUpdateParams;
|
|
152
|
+
export import EventIngestParams = API.EventIngestParams;
|
|
153
|
+
export import EventSearchParams = API.EventSearchParams;
|
|
154
|
+
export import InvoiceLineItems = API.InvoiceLineItems;
|
|
155
|
+
export import InvoiceLineItemCreateResponse = API.InvoiceLineItemCreateResponse;
|
|
156
|
+
export import InvoiceLineItemCreateParams = API.InvoiceLineItemCreateParams;
|
|
157
|
+
export import Invoices = API.Invoices;
|
|
158
|
+
export import Invoice = API.Invoice;
|
|
159
|
+
export import InvoiceDiscount = API.InvoiceDiscount;
|
|
160
|
+
export import InvoiceFetchUpcomingResponse = API.InvoiceFetchUpcomingResponse;
|
|
161
|
+
export import InvoicesPage = API.InvoicesPage;
|
|
162
|
+
export import InvoiceCreateParams = API.InvoiceCreateParams;
|
|
163
|
+
export import InvoiceListParams = API.InvoiceListParams;
|
|
164
|
+
export import InvoiceFetchUpcomingParams = API.InvoiceFetchUpcomingParams;
|
|
165
|
+
export import InvoiceMarkPaidParams = API.InvoiceMarkPaidParams;
|
|
166
|
+
export import Items = API.Items;
|
|
167
|
+
export import ItemListResponse = API.ItemListResponse;
|
|
168
|
+
export import ItemFetchResponse = API.ItemFetchResponse;
|
|
169
|
+
export import ItemListResponsesPage = API.ItemListResponsesPage;
|
|
170
|
+
export import ItemListParams = API.ItemListParams;
|
|
171
|
+
export import Metrics = API.Metrics;
|
|
172
|
+
export import MetricCreateResponse = API.MetricCreateResponse;
|
|
173
|
+
export import MetricListResponse = API.MetricListResponse;
|
|
174
|
+
export import MetricFetchResponse = API.MetricFetchResponse;
|
|
175
|
+
export import MetricListResponsesPage = API.MetricListResponsesPage;
|
|
176
|
+
export import MetricCreateParams = API.MetricCreateParams;
|
|
177
|
+
export import MetricListParams = API.MetricListParams;
|
|
178
|
+
export import Plans = API.Plans;
|
|
179
|
+
export import Plan = API.Plan;
|
|
180
|
+
export import PlansPage = API.PlansPage;
|
|
181
|
+
export import PlanCreateParams = API.PlanCreateParams;
|
|
182
|
+
export import PlanUpdateParams = API.PlanUpdateParams;
|
|
183
|
+
export import PlanListParams = API.PlanListParams;
|
|
184
|
+
export import Prices = API.Prices;
|
|
185
|
+
export import Discount = API.Discount;
|
|
186
|
+
export import Price = API.Price;
|
|
187
|
+
export import PricesPage = API.PricesPage;
|
|
188
|
+
export import PriceCreateParams = API.PriceCreateParams;
|
|
189
|
+
export import PriceListParams = API.PriceListParams;
|
|
190
|
+
export import Subscriptions = API.Subscriptions;
|
|
191
|
+
export import Subscription = API.Subscription;
|
|
192
|
+
export import SubscriptionUsage = API.SubscriptionUsage;
|
|
193
|
+
export import SubscriptionFetchCostsResponse = API.SubscriptionFetchCostsResponse;
|
|
194
|
+
export import SubscriptionFetchScheduleResponse = API.SubscriptionFetchScheduleResponse;
|
|
195
|
+
export import SubscriptionsPage = API.SubscriptionsPage;
|
|
196
|
+
export import SubscriptionFetchScheduleResponsesPage = API.SubscriptionFetchScheduleResponsesPage;
|
|
197
|
+
export import SubscriptionCreateParams = API.SubscriptionCreateParams;
|
|
198
|
+
export import SubscriptionListParams = API.SubscriptionListParams;
|
|
199
|
+
export import SubscriptionCancelParams = API.SubscriptionCancelParams;
|
|
200
|
+
export import SubscriptionFetchCostsParams = API.SubscriptionFetchCostsParams;
|
|
201
|
+
export import SubscriptionFetchScheduleParams = API.SubscriptionFetchScheduleParams;
|
|
202
|
+
export import SubscriptionFetchUsageParams = API.SubscriptionFetchUsageParams;
|
|
203
|
+
export import SubscriptionPriceIntervalsParams = API.SubscriptionPriceIntervalsParams;
|
|
204
|
+
export import SubscriptionSchedulePlanChangeParams = API.SubscriptionSchedulePlanChangeParams;
|
|
205
|
+
export import SubscriptionTriggerPhaseParams = API.SubscriptionTriggerPhaseParams;
|
|
206
|
+
export import SubscriptionUnscheduleFixedFeeQuantityUpdatesParams = API.SubscriptionUnscheduleFixedFeeQuantityUpdatesParams;
|
|
207
|
+
export import SubscriptionUpdateFixedFeeQuantityParams = API.SubscriptionUpdateFixedFeeQuantityParams;
|
|
208
|
+
}
|
|
209
|
+
export default Orb;
|
|
210
|
+
//# sourceMappingURL=index.d.ts.map
|
package/index.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["src/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,IAAI,MAAM,QAAQ,CAAC;AAC/B,OAAO,KAAK,UAAU,MAAM,cAAc,CAAC;AAC3C,OAAO,KAAK,MAAM,MAAM,SAAS,CAAC;AAClC,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,KAAK,OAAO,MAAM,WAAW,CAAC;AACrC,OAAO,KAAK,GAAG,MAAM,6BAA6B,CAAC;AAEnD,MAA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AAG,GAAG,CAAC,4BAA4B,CAAC;IAC9E,MAAM,QAAQ,+BAA+B,GAAG,GAAG,CAAC,+BAA+B,CAAC;IACpF,MAAM,QAAQ,4BAA4B,GAAG,GAAG,CAAC,4BAA4B,CAAC;IAC9E,MAAM,QAAQ,gCAAgC,GAAG,GAAG,CAAC,gCAAgC,CAAC;IACtF,MAAM,QAAQ,oCAAoC,GAAG,GAAG,CAAC,oCAAoC,CAAC;IAC9F,MAAM,QAAQ,8BAA8B,GAAG,GAAG,CAAC,8BAA8B,CAAC;IAClF,MAAM,QAAQ,mDAAmD,GAAG,GAAG,CAAC,mDAAmD,CAAC;IAC5H,MAAM,QAAQ,wCAAwC,GAAG,GAAG,CAAC,wCAAwC,CAAC;CACvG;AAED,eAAe,GAAG,CAAC"}
|
package/index.js
ADDED
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless.
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
+
}) : function(o, v) {
|
|
17
|
+
o["default"] = v;
|
|
18
|
+
});
|
|
19
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
20
|
+
if (mod && mod.__esModule) return mod;
|
|
21
|
+
var result = {};
|
|
22
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
23
|
+
__setModuleDefault(result, mod);
|
|
24
|
+
return result;
|
|
25
|
+
};
|
|
26
|
+
var _a;
|
|
27
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
+
exports.fileFromPath = exports.toFile = exports.DuplicateResourceCreation = exports.UnprocessableEntityError = exports.RequestValidationErrors = exports.OrbInternalServerError = exports.OrbAuthenticationError = exports.PermissionDeniedError = exports.FeatureNotAvailable = exports.InternalServerError = exports.AuthenticationError = exports.ResourceTooLarge = exports.ResourceConflict = exports.ResourceNotFound = exports.TooManyRequests = exports.RequestTooLarge = exports.BadRequestError = exports.RateLimitError = exports.ConflictError = exports.NotFoundError = exports.URLNotFound = exports.APIUserAbortError = exports.APIConnectionTimeoutError = exports.APIConnectionError = exports.APIError = exports.OrbError = exports.Orb = void 0;
|
|
29
|
+
const Core = __importStar(require("./core.js"));
|
|
30
|
+
const Pagination = __importStar(require("./pagination.js"));
|
|
31
|
+
const Errors = __importStar(require("./error.js"));
|
|
32
|
+
const Uploads = __importStar(require("./uploads.js"));
|
|
33
|
+
const API = __importStar(require("orb-billing/resources/index"));
|
|
34
|
+
/** API Client for interfacing with the Orb API. */
|
|
35
|
+
class Orb extends Core.APIClient {
|
|
36
|
+
/**
|
|
37
|
+
* API Client for interfacing with the Orb API.
|
|
38
|
+
*
|
|
39
|
+
* @param {string} [opts.apiKey==process.env['ORB_API_KEY'] ?? undefined]
|
|
40
|
+
* @param {string} [opts.baseURL] - Override the default base URL for the API.
|
|
41
|
+
* @param {number} [opts.timeout=1 minute] - The maximum amount of time (in milliseconds) the client will wait for a response before timing out.
|
|
42
|
+
* @param {number} [opts.httpAgent] - An HTTP agent used to manage HTTP(s) connections.
|
|
43
|
+
* @param {Core.Fetch} [opts.fetch] - Specify a custom `fetch` function implementation.
|
|
44
|
+
* @param {number} [opts.maxRetries=2] - The maximum number of times the client will retry a request.
|
|
45
|
+
* @param {Core.Headers} opts.defaultHeaders - Default headers to include with every request to the API.
|
|
46
|
+
* @param {Core.DefaultQuery} opts.defaultQuery - Default query parameters to include with every request to the API.
|
|
47
|
+
*/
|
|
48
|
+
constructor({ apiKey = Core.readEnv('ORB_API_KEY'), ...opts } = {}) {
|
|
49
|
+
if (apiKey === undefined) {
|
|
50
|
+
throw new Errors.OrbError("The ORB_API_KEY environment variable is missing or empty; either provide it, or instantiate the Orb client with an apiKey option, like new Orb({ apiKey: 'My API Key' }).");
|
|
51
|
+
}
|
|
52
|
+
const options = {
|
|
53
|
+
apiKey,
|
|
54
|
+
...opts,
|
|
55
|
+
baseURL: opts.baseURL ?? `https://api.withorb.com/v1`,
|
|
56
|
+
};
|
|
57
|
+
super({
|
|
58
|
+
baseURL: options.baseURL,
|
|
59
|
+
timeout: options.timeout ?? 60000 /* 1 minute */,
|
|
60
|
+
httpAgent: options.httpAgent,
|
|
61
|
+
maxRetries: options.maxRetries,
|
|
62
|
+
fetch: options.fetch,
|
|
63
|
+
});
|
|
64
|
+
this.topLevel = new API.TopLevel(this);
|
|
65
|
+
this.coupons = new API.Coupons(this);
|
|
66
|
+
this.creditNotes = new API.CreditNotes(this);
|
|
67
|
+
this.customers = new API.Customers(this);
|
|
68
|
+
this.events = new API.Events(this);
|
|
69
|
+
this.invoiceLineItems = new API.InvoiceLineItems(this);
|
|
70
|
+
this.invoices = new API.Invoices(this);
|
|
71
|
+
this.items = new API.Items(this);
|
|
72
|
+
this.metrics = new API.Metrics(this);
|
|
73
|
+
this.plans = new API.Plans(this);
|
|
74
|
+
this.prices = new API.Prices(this);
|
|
75
|
+
this.subscriptions = new API.Subscriptions(this);
|
|
76
|
+
this._options = options;
|
|
77
|
+
this.idempotencyHeader = 'Idempotency-Key';
|
|
78
|
+
this.apiKey = apiKey;
|
|
79
|
+
}
|
|
80
|
+
defaultQuery() {
|
|
81
|
+
return this._options.defaultQuery;
|
|
82
|
+
}
|
|
83
|
+
defaultHeaders(opts) {
|
|
84
|
+
return {
|
|
85
|
+
...super.defaultHeaders(opts),
|
|
86
|
+
...this._options.defaultHeaders,
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
authHeaders(opts) {
|
|
90
|
+
return { Authorization: `Bearer ${this.apiKey}` };
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
exports.Orb = Orb;
|
|
94
|
+
_a = Orb;
|
|
95
|
+
Orb.Orb = _a;
|
|
96
|
+
Orb.OrbError = Errors.OrbError;
|
|
97
|
+
Orb.APIError = Errors.APIError;
|
|
98
|
+
Orb.APIConnectionError = Errors.APIConnectionError;
|
|
99
|
+
Orb.APIConnectionTimeoutError = Errors.APIConnectionTimeoutError;
|
|
100
|
+
Orb.APIUserAbortError = Errors.APIUserAbortError;
|
|
101
|
+
Orb.URLNotFound = Errors.URLNotFound;
|
|
102
|
+
Orb.NotFoundError = Errors.NotFoundError;
|
|
103
|
+
Orb.ConflictError = Errors.ConflictError;
|
|
104
|
+
Orb.RateLimitError = Errors.RateLimitError;
|
|
105
|
+
Orb.BadRequestError = Errors.BadRequestError;
|
|
106
|
+
Orb.RequestTooLarge = Errors.RequestTooLarge;
|
|
107
|
+
Orb.TooManyRequests = Errors.TooManyRequests;
|
|
108
|
+
Orb.ResourceNotFound = Errors.ResourceNotFound;
|
|
109
|
+
Orb.ResourceConflict = Errors.ResourceConflict;
|
|
110
|
+
Orb.ResourceTooLarge = Errors.ResourceTooLarge;
|
|
111
|
+
Orb.AuthenticationError = Errors.AuthenticationError;
|
|
112
|
+
Orb.InternalServerError = Errors.InternalServerError;
|
|
113
|
+
Orb.FeatureNotAvailable = Errors.FeatureNotAvailable;
|
|
114
|
+
Orb.PermissionDeniedError = Errors.PermissionDeniedError;
|
|
115
|
+
Orb.OrbAuthenticationError = Errors.OrbAuthenticationError;
|
|
116
|
+
Orb.OrbInternalServerError = Errors.OrbInternalServerError;
|
|
117
|
+
Orb.RequestValidationErrors = Errors.RequestValidationErrors;
|
|
118
|
+
Orb.UnprocessableEntityError = Errors.UnprocessableEntityError;
|
|
119
|
+
Orb.DuplicateResourceCreation = Errors.DuplicateResourceCreation;
|
|
120
|
+
exports.OrbError = Errors.OrbError, exports.APIError = Errors.APIError, exports.APIConnectionError = Errors.APIConnectionError, exports.APIConnectionTimeoutError = Errors.APIConnectionTimeoutError, exports.APIUserAbortError = Errors.APIUserAbortError, exports.URLNotFound = Errors.URLNotFound, exports.NotFoundError = Errors.NotFoundError, exports.ConflictError = Errors.ConflictError, exports.RateLimitError = Errors.RateLimitError, exports.BadRequestError = Errors.BadRequestError, exports.RequestTooLarge = Errors.RequestTooLarge, exports.TooManyRequests = Errors.TooManyRequests, exports.ResourceNotFound = Errors.ResourceNotFound, exports.ResourceConflict = Errors.ResourceConflict, exports.ResourceTooLarge = Errors.ResourceTooLarge, exports.AuthenticationError = Errors.AuthenticationError, exports.InternalServerError = Errors.InternalServerError, exports.FeatureNotAvailable = Errors.FeatureNotAvailable, exports.PermissionDeniedError = Errors.PermissionDeniedError, exports.OrbAuthenticationError = Errors.OrbAuthenticationError, exports.OrbInternalServerError = Errors.OrbInternalServerError, exports.RequestValidationErrors = Errors.RequestValidationErrors, exports.UnprocessableEntityError = Errors.UnprocessableEntityError, exports.DuplicateResourceCreation = Errors.DuplicateResourceCreation;
|
|
121
|
+
exports.toFile = Uploads.toFile;
|
|
122
|
+
exports.fileFromPath = Uploads.fileFromPath;
|
|
123
|
+
(function (Orb) {
|
|
124
|
+
// Helper functions
|
|
125
|
+
Orb.toFile = Uploads.toFile;
|
|
126
|
+
Orb.fileFromPath = Uploads.fileFromPath;
|
|
127
|
+
Orb.Page = Pagination.Page;
|
|
128
|
+
Orb.TopLevel = API.TopLevel;
|
|
129
|
+
Orb.Coupons = API.Coupons;
|
|
130
|
+
Orb.CouponsPage = API.CouponsPage;
|
|
131
|
+
Orb.CreditNotes = API.CreditNotes;
|
|
132
|
+
Orb.CreditNotesPage = API.CreditNotesPage;
|
|
133
|
+
Orb.Customers = API.Customers;
|
|
134
|
+
Orb.CustomersPage = API.CustomersPage;
|
|
135
|
+
Orb.Events = API.Events;
|
|
136
|
+
Orb.InvoiceLineItems = API.InvoiceLineItems;
|
|
137
|
+
Orb.Invoices = API.Invoices;
|
|
138
|
+
Orb.InvoicesPage = API.InvoicesPage;
|
|
139
|
+
Orb.Items = API.Items;
|
|
140
|
+
Orb.ItemListResponsesPage = API.ItemListResponsesPage;
|
|
141
|
+
Orb.Metrics = API.Metrics;
|
|
142
|
+
Orb.MetricListResponsesPage = API.MetricListResponsesPage;
|
|
143
|
+
Orb.Plans = API.Plans;
|
|
144
|
+
Orb.PlansPage = API.PlansPage;
|
|
145
|
+
Orb.Prices = API.Prices;
|
|
146
|
+
Orb.PricesPage = API.PricesPage;
|
|
147
|
+
Orb.Subscriptions = API.Subscriptions;
|
|
148
|
+
Orb.SubscriptionsPage = API.SubscriptionsPage;
|
|
149
|
+
Orb.SubscriptionFetchScheduleResponsesPage = API.SubscriptionFetchScheduleResponsesPage;
|
|
150
|
+
})(Orb = exports.Orb || (exports.Orb = {}));
|
|
151
|
+
exports = module.exports = Orb;
|
|
152
|
+
exports.default = Orb;
|
|
153
|
+
//# sourceMappingURL=index.js.map
|
package/index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["src/index.ts"],"names":[],"mappings":";AAAA,qDAAqD;;;;;;;;;;;;;;;;;;;;;;;;;;;AAErD,gDAA+B;AAC/B,4DAA2C;AAC3C,mDAAkC;AAElC,sDAAqC;AACrC,iEAAmD;AA+DnD,mDAAmD;AACnD,MAAa,GAAI,SAAQ,IAAI,CAAC,SAAS;IAKrC;;;;;;;;;;;OAWG;IACH,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,EAAE,GAAG,IAAI,KAAoB,EAAE;QAC/E,IAAI,MAAM,KAAK,SAAS,EAAE;YACxB,MA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125 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless.
|
|
2
|
+
var _a;
|
|
3
|
+
import * as Core from "./core.mjs";
|
|
4
|
+
import * as Pagination from "./pagination.mjs";
|
|
5
|
+
import * as Errors from "./error.mjs";
|
|
6
|
+
import * as Uploads from "./uploads.mjs";
|
|
7
|
+
import * as API from 'orb-billing/resources/index';
|
|
8
|
+
/** API Client for interfacing with the Orb API. */
|
|
9
|
+
export class Orb extends Core.APIClient {
|
|
10
|
+
/**
|
|
11
|
+
* API Client for interfacing with the Orb API.
|
|
12
|
+
*
|
|
13
|
+
* @param {string} [opts.apiKey==process.env['ORB_API_KEY'] ?? undefined]
|
|
14
|
+
* @param {string} [opts.baseURL] - Override the default base URL for the API.
|
|
15
|
+
* @param {number} [opts.timeout=1 minute] - The maximum amount of time (in milliseconds) the client will wait for a response before timing out.
|
|
16
|
+
* @param {number} [opts.httpAgent] - An HTTP agent used to manage HTTP(s) connections.
|
|
17
|
+
* @param {Core.Fetch} [opts.fetch] - Specify a custom `fetch` function implementation.
|
|
18
|
+
* @param {number} [opts.maxRetries=2] - The maximum number of times the client will retry a request.
|
|
19
|
+
* @param {Core.Headers} opts.defaultHeaders - Default headers to include with every request to the API.
|
|
20
|
+
* @param {Core.DefaultQuery} opts.defaultQuery - Default query parameters to include with every request to the API.
|
|
21
|
+
*/
|
|
22
|
+
constructor({ apiKey = Core.readEnv('ORB_API_KEY'), ...opts } = {}) {
|
|
23
|
+
if (apiKey === undefined) {
|
|
24
|
+
throw new Errors.OrbError("The ORB_API_KEY environment variable is missing or empty; either provide it, or instantiate the Orb client with an apiKey option, like new Orb({ apiKey: 'My API Key' }).");
|
|
25
|
+
}
|
|
26
|
+
const options = {
|
|
27
|
+
apiKey,
|
|
28
|
+
...opts,
|
|
29
|
+
baseURL: opts.baseURL ?? `https://api.withorb.com/v1`,
|
|
30
|
+
};
|
|
31
|
+
super({
|
|
32
|
+
baseURL: options.baseURL,
|
|
33
|
+
timeout: options.timeout ?? 60000 /* 1 minute */,
|
|
34
|
+
httpAgent: options.httpAgent,
|
|
35
|
+
maxRetries: options.maxRetries,
|
|
36
|
+
fetch: options.fetch,
|
|
37
|
+
});
|
|
38
|
+
this.topLevel = new API.TopLevel(this);
|
|
39
|
+
this.coupons = new API.Coupons(this);
|
|
40
|
+
this.creditNotes = new API.CreditNotes(this);
|
|
41
|
+
this.customers = new API.Customers(this);
|
|
42
|
+
this.events = new API.Events(this);
|
|
43
|
+
this.invoiceLineItems = new API.InvoiceLineItems(this);
|
|
44
|
+
this.invoices = new API.Invoices(this);
|
|
45
|
+
this.items = new API.Items(this);
|
|
46
|
+
this.metrics = new API.Metrics(this);
|
|
47
|
+
this.plans = new API.Plans(this);
|
|
48
|
+
this.prices = new API.Prices(this);
|
|
49
|
+
this.subscriptions = new API.Subscriptions(this);
|
|
50
|
+
this._options = options;
|
|
51
|
+
this.idempotencyHeader = 'Idempotency-Key';
|
|
52
|
+
this.apiKey = apiKey;
|
|
53
|
+
}
|
|
54
|
+
defaultQuery() {
|
|
55
|
+
return this._options.defaultQuery;
|
|
56
|
+
}
|
|
57
|
+
defaultHeaders(opts) {
|
|
58
|
+
return {
|
|
59
|
+
...super.defaultHeaders(opts),
|
|
60
|
+
...this._options.defaultHeaders,
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
authHeaders(opts) {
|
|
64
|
+
return { Authorization: `Bearer ${this.apiKey}` };
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
_a = Orb;
|
|
68
|
+
Orb.Orb = _a;
|
|
69
|
+
Orb.OrbError = Errors.OrbError;
|
|
70
|
+
Orb.APIError = Errors.APIError;
|
|
71
|
+
Orb.APIConnectionError = Errors.APIConnectionError;
|
|
72
|
+
Orb.APIConnectionTimeoutError = Errors.APIConnectionTimeoutError;
|
|
73
|
+
Orb.APIUserAbortError = Errors.APIUserAbortError;
|
|
74
|
+
Orb.URLNotFound = Errors.URLNotFound;
|
|
75
|
+
Orb.NotFoundError = Errors.NotFoundError;
|
|
76
|
+
Orb.ConflictError = Errors.ConflictError;
|
|
77
|
+
Orb.RateLimitError = Errors.RateLimitError;
|
|
78
|
+
Orb.BadRequestError = Errors.BadRequestError;
|
|
79
|
+
Orb.RequestTooLarge = Errors.RequestTooLarge;
|
|
80
|
+
Orb.TooManyRequests = Errors.TooManyRequests;
|
|
81
|
+
Orb.ResourceNotFound = Errors.ResourceNotFound;
|
|
82
|
+
Orb.ResourceConflict = Errors.ResourceConflict;
|
|
83
|
+
Orb.ResourceTooLarge = Errors.ResourceTooLarge;
|
|
84
|
+
Orb.AuthenticationError = Errors.AuthenticationError;
|
|
85
|
+
Orb.InternalServerError = Errors.InternalServerError;
|
|
86
|
+
Orb.FeatureNotAvailable = Errors.FeatureNotAvailable;
|
|
87
|
+
Orb.PermissionDeniedError = Errors.PermissionDeniedError;
|
|
88
|
+
Orb.OrbAuthenticationError = Errors.OrbAuthenticationError;
|
|
89
|
+
Orb.OrbInternalServerError = Errors.OrbInternalServerError;
|
|
90
|
+
Orb.RequestValidationErrors = Errors.RequestValidationErrors;
|
|
91
|
+
Orb.UnprocessableEntityError = Errors.UnprocessableEntityError;
|
|
92
|
+
Orb.DuplicateResourceCreation = Errors.DuplicateResourceCreation;
|
|
93
|
+
export const { OrbError, APIError, APIConnectionError, APIConnectionTimeoutError, APIUserAbortError, URLNotFound, NotFoundError, ConflictError, RateLimitError, BadRequestError, RequestTooLarge, TooManyRequests, ResourceNotFound, ResourceConflict, ResourceTooLarge, AuthenticationError, InternalServerError, FeatureNotAvailable, PermissionDeniedError, OrbAuthenticationError, OrbInternalServerError, RequestValidationErrors, UnprocessableEntityError, DuplicateResourceCreation, } = Errors;
|
|
94
|
+
export var toFile = Uploads.toFile;
|
|
95
|
+
export var fileFromPath = Uploads.fileFromPath;
|
|
96
|
+
(function (Orb) {
|
|
97
|
+
// Helper functions
|
|
98
|
+
Orb.toFile = Uploads.toFile;
|
|
99
|
+
Orb.fileFromPath = Uploads.fileFromPath;
|
|
100
|
+
Orb.Page = Pagination.Page;
|
|
101
|
+
Orb.TopLevel = API.TopLevel;
|
|
102
|
+
Orb.Coupons = API.Coupons;
|
|
103
|
+
Orb.CouponsPage = API.CouponsPage;
|
|
104
|
+
Orb.CreditNotes = API.CreditNotes;
|
|
105
|
+
Orb.CreditNotesPage = API.CreditNotesPage;
|
|
106
|
+
Orb.Customers = API.Customers;
|
|
107
|
+
Orb.CustomersPage = API.CustomersPage;
|
|
108
|
+
Orb.Events = API.Events;
|
|
109
|
+
Orb.InvoiceLineItems = API.InvoiceLineItems;
|
|
110
|
+
Orb.Invoices = API.Invoices;
|
|
111
|
+
Orb.InvoicesPage = API.InvoicesPage;
|
|
112
|
+
Orb.Items = API.Items;
|
|
113
|
+
Orb.ItemListResponsesPage = API.ItemListResponsesPage;
|
|
114
|
+
Orb.Metrics = API.Metrics;
|
|
115
|
+
Orb.MetricListResponsesPage = API.MetricListResponsesPage;
|
|
116
|
+
Orb.Plans = API.Plans;
|
|
117
|
+
Orb.PlansPage = API.PlansPage;
|
|
118
|
+
Orb.Prices = API.Prices;
|
|
119
|
+
Orb.PricesPage = API.PricesPage;
|
|
120
|
+
Orb.Subscriptions = API.Subscriptions;
|
|
121
|
+
Orb.SubscriptionsPage = API.SubscriptionsPage;
|
|
122
|
+
Orb.SubscriptionFetchScheduleResponsesPage = API.SubscriptionFetchScheduleResponsesPage;
|
|
123
|
+
})(Orb || (Orb = {}));
|
|
124
|
+
export default Orb;
|
|
125
|
+
//# sourceMappingURL=index.mjs.map
|
package/index.mjs.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["src/index.ts"],"names":[],"mappings":"AAAA,qDAAqD;;OAE9C,KAAK,IAAI;OACT,KAAK,UAAU;OACf,KAAK,MAAM;OAEX,KAAK,OAAO;OACZ,KAAK,GAAG,MAAM,6BAA6B;AA+DlD,mDAAmD;AACnD,MAAM,OAAO,GAAI,SAAQ,IAA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author": "Orb <team@withorb.com>",
|
|
6
|
+
"types": "./index.d.ts",
|
|
7
|
+
"main": "./index.js",
|
|
8
|
+
"type": "commonjs",
|
|
9
|
+
"repository": "github:orbcorp/orb-node",
|
|
10
|
+
"license": "Apache-2.0",
|
|
11
|
+
"private": false,
|
|
12
|
+
"sideEffects": [
|
|
13
|
+
"./_shims/index.js",
|
|
14
|
+
"./_shims/index.mjs",
|
|
15
|
+
"./shims/node.js",
|
|
16
|
+
"./shims/node.mjs",
|
|
17
|
+
"./shims/web.js",
|
|
18
|
+
"./shims/web.mjs"
|
|
19
|
+
],
|
|
20
|
+
"exports": {
|
|
21
|
+
"./_shims/auto/*": {
|
|
22
|
+
"deno": {
|
|
23
|
+
"types": "./_shims/auto/*.d.ts",
|
|
24
|
+
"require": "./_shims/auto/*.js",
|
|
25
|
+
"default": "./_shims/auto/*.mjs"
|
|
26
|
+
},
|
|
27
|
+
"bun": {
|
|
28
|
+
"types": "./_shims/auto/*.d.ts",
|
|
29
|
+
"require": "./_shims/auto/*-bun.js",
|
|
30
|
+
"default": "./_shims/auto/*-bun.mjs"
|
|
31
|
+
},
|
|
32
|
+
"browser": {
|
|
33
|
+
"types": "./_shims/auto/*.d.ts",
|
|
34
|
+
"require": "./_shims/auto/*.js",
|
|
35
|
+
"default": "./_shims/auto/*.mjs"
|
|
36
|
+
},
|
|
37
|
+
"worker": {
|
|
38
|
+
"types": "./_shims/auto/*.d.ts",
|
|
39
|
+
"require": "./_shims/auto/*.js",
|
|
40
|
+
"default": "./_shims/auto/*.mjs"
|
|
41
|
+
},
|
|
42
|
+
"workerd": {
|
|
43
|
+
"types": "./_shims/auto/*.d.ts",
|
|
44
|
+
"require": "./_shims/auto/*.js",
|
|
45
|
+
"default": "./_shims/auto/*.mjs"
|
|
46
|
+
},
|
|
47
|
+
"node": {
|
|
48
|
+
"types": "./_shims/auto/*-node.d.ts",
|
|
49
|
+
"require": "./_shims/auto/*-node.js",
|
|
50
|
+
"default": "./_shims/auto/*-node.mjs"
|
|
51
|
+
},
|
|
52
|
+
"types": "./_shims/auto/*.d.ts",
|
|
53
|
+
"require": "./_shims/auto/*.js",
|
|
54
|
+
"default": "./_shims/auto/*.mjs"
|
|
55
|
+
},
|
|
56
|
+
".": {
|
|
57
|
+
"require": {
|
|
58
|
+
"types": "./index.d.ts",
|
|
59
|
+
"default": "./index.js"
|
|
60
|
+
},
|
|
61
|
+
"types": "./index.d.mts",
|
|
62
|
+
"default": "./index.mjs"
|
|
63
|
+
},
|
|
64
|
+
"./*.mjs": {
|
|
65
|
+
"types": "./*.d.ts",
|
|
66
|
+
"default": "./*.mjs"
|
|
67
|
+
},
|
|
68
|
+
"./*.js": {
|
|
69
|
+
"types": "./*.d.ts",
|
|
70
|
+
"default": "./*.js"
|
|
71
|
+
},
|
|
72
|
+
"./*": {
|
|
73
|
+
"types": "./*.d.ts",
|
|
74
|
+
"require": "./*.js",
|
|
75
|
+
"default": "./*.mjs"
|
|
76
|
+
}
|
|
77
|
+
},
|
|
5
78
|
"scripts": {
|
|
6
|
-
"
|
|
79
|
+
"test": "bin/check-test-server && yarn jest",
|
|
80
|
+
"build": "bash ./build",
|
|
81
|
+
"format": "prettier --write --cache --cache-strategy metadata . !dist",
|
|
82
|
+
"tsn": "ts-node -r tsconfig-paths/register",
|
|
83
|
+
"lint": "eslint --ext ts,js .",
|
|
84
|
+
"fix": "eslint --fix --ext ts,js ."
|
|
7
85
|
},
|
|
8
86
|
"dependencies": {
|
|
9
|
-
"
|
|
10
|
-
"
|
|
11
|
-
"
|
|
12
|
-
"
|
|
13
|
-
"
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
"
|
|
17
|
-
"
|
|
18
|
-
"typescript": "^4.8.4",
|
|
19
|
-
"@typescript-eslint/eslint-plugin": "^5.56.0",
|
|
20
|
-
"@typescript-eslint/parser": "^5.56.0",
|
|
21
|
-
"eslint": "^8.36.0"
|
|
22
|
-
},
|
|
23
|
-
"main": "dist/index.js",
|
|
24
|
-
"files": [
|
|
25
|
-
"dist",
|
|
26
|
-
"docs",
|
|
27
|
-
"README.md"
|
|
28
|
-
],
|
|
29
|
-
"repository": {
|
|
30
|
-
"type": "git",
|
|
31
|
-
"url": "https://github.com/orbcorp/orb-billing-typescript-sdk.git",
|
|
32
|
-
"directory": "."
|
|
87
|
+
"@types/node": "^18.11.18",
|
|
88
|
+
"@types/node-fetch": "^2.6.4",
|
|
89
|
+
"abort-controller": "^3.0.0",
|
|
90
|
+
"agentkeepalive": "^4.2.1",
|
|
91
|
+
"digest-fetch": "^1.3.0",
|
|
92
|
+
"form-data-encoder": "1.7.2",
|
|
93
|
+
"formdata-node": "^4.3.2",
|
|
94
|
+
"node-fetch": "^2.6.7",
|
|
95
|
+
"web-streams-polyfill": "^3.2.1"
|
|
33
96
|
}
|
|
34
97
|
}
|