dodopayments 1.53.2 → 2.0.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 +10 -0
- package/README.md +114 -44
- package/api-promise.d.mts +2 -0
- package/api-promise.d.mts.map +1 -0
- package/api-promise.d.ts +2 -0
- package/api-promise.d.ts.map +1 -0
- package/api-promise.js +6 -0
- package/api-promise.js.map +1 -0
- package/api-promise.mjs +2 -0
- package/api-promise.mjs.map +1 -0
- package/bin/cli +53 -0
- package/bin/migration-config.json +6 -0
- package/client.d.mts +259 -0
- package/client.d.mts.map +1 -0
- package/client.d.ts +259 -0
- package/client.d.ts.map +1 -0
- package/client.js +536 -0
- package/client.js.map +1 -0
- package/client.mjs +532 -0
- package/client.mjs.map +1 -0
- package/core/api-promise.d.mts +46 -0
- package/core/api-promise.d.mts.map +1 -0
- package/core/api-promise.d.ts +46 -0
- package/core/api-promise.d.ts.map +1 -0
- package/core/api-promise.js +74 -0
- package/core/api-promise.js.map +1 -0
- package/core/api-promise.mjs +70 -0
- package/core/api-promise.mjs.map +1 -0
- package/core/error.d.mts +46 -0
- package/core/error.d.mts.map +1 -0
- package/core/error.d.ts +46 -0
- package/core/error.d.ts.map +1 -0
- package/core/error.js +113 -0
- package/core/error.js.map +1 -0
- package/core/error.mjs +97 -0
- package/core/error.mjs.map +1 -0
- package/core/pagination.d.mts +70 -0
- package/core/pagination.d.mts.map +1 -0
- package/core/pagination.d.ts +70 -0
- package/core/pagination.d.ts.map +1 -0
- package/core/pagination.js +129 -0
- package/core/pagination.js.map +1 -0
- package/core/pagination.mjs +122 -0
- package/core/pagination.mjs.map +1 -0
- package/core/resource.d.mts +6 -0
- package/core/resource.d.mts.map +1 -0
- package/core/resource.d.ts +6 -0
- package/core/resource.d.ts.map +1 -0
- package/core/resource.js +11 -0
- package/core/resource.js.map +1 -0
- package/core/resource.mjs +7 -0
- package/core/resource.mjs.map +1 -0
- package/core/uploads.d.mts +3 -0
- package/core/uploads.d.mts.map +1 -0
- package/core/uploads.d.ts +3 -0
- package/core/uploads.d.ts.map +1 -0
- package/core/uploads.js +6 -0
- package/core/uploads.js.map +1 -0
- package/core/uploads.mjs +2 -0
- package/core/uploads.mjs.map +1 -0
- package/error.d.mts +2 -0
- package/error.d.mts.map +1 -0
- package/error.d.ts +1 -46
- package/error.d.ts.map +1 -1
- package/error.js +3 -110
- package/error.js.map +1 -1
- package/error.mjs +1 -96
- package/error.mjs.map +1 -1
- package/index.d.mts +7 -190
- package/index.d.mts.map +1 -0
- package/index.d.ts +6 -189
- package/index.d.ts.map +1 -1
- package/index.js +14 -195
- package/index.js.map +1 -1
- package/index.mjs +6 -168
- package/index.mjs.map +1 -1
- package/internal/builtin-types.d.mts +73 -0
- package/internal/builtin-types.d.mts.map +1 -0
- package/internal/builtin-types.d.ts +73 -0
- package/internal/builtin-types.d.ts.map +1 -0
- package/internal/builtin-types.js +4 -0
- package/internal/builtin-types.js.map +1 -0
- package/internal/builtin-types.mjs +3 -0
- package/internal/builtin-types.mjs.map +1 -0
- package/internal/detect-platform.d.mts +15 -0
- package/internal/detect-platform.d.mts.map +1 -0
- package/internal/detect-platform.d.ts +15 -0
- package/internal/detect-platform.d.ts.map +1 -0
- package/internal/detect-platform.js +162 -0
- package/internal/detect-platform.js.map +1 -0
- package/internal/detect-platform.mjs +157 -0
- package/internal/detect-platform.mjs.map +1 -0
- package/internal/errors.d.mts +3 -0
- package/internal/errors.d.mts.map +1 -0
- package/internal/errors.d.ts +3 -0
- package/internal/errors.d.ts.map +1 -0
- package/internal/errors.js +41 -0
- package/internal/errors.js.map +1 -0
- package/internal/errors.mjs +36 -0
- package/internal/errors.mjs.map +1 -0
- package/internal/headers.d.mts +20 -0
- package/internal/headers.d.mts.map +1 -0
- package/internal/headers.d.ts +20 -0
- package/internal/headers.d.ts.map +1 -0
- package/internal/headers.js +79 -0
- package/internal/headers.js.map +1 -0
- package/internal/headers.mjs +74 -0
- package/internal/headers.mjs.map +1 -0
- package/internal/parse.d.mts +12 -0
- package/internal/parse.d.mts.map +1 -0
- package/internal/parse.d.ts +12 -0
- package/internal/parse.d.ts.map +1 -0
- package/internal/parse.js +35 -0
- package/internal/parse.js.map +1 -0
- package/internal/parse.mjs +32 -0
- package/internal/parse.mjs.map +1 -0
- package/internal/request-options.d.mts +75 -0
- package/internal/request-options.d.mts.map +1 -0
- package/internal/request-options.d.ts +75 -0
- package/internal/request-options.d.ts.map +1 -0
- package/internal/request-options.js +14 -0
- package/internal/request-options.js.map +1 -0
- package/internal/request-options.mjs +10 -0
- package/internal/request-options.mjs.map +1 -0
- package/internal/shim-types.d.mts +17 -0
- package/internal/shim-types.d.mts.map +1 -0
- package/internal/shim-types.d.ts +17 -0
- package/internal/shim-types.d.ts.map +1 -0
- package/internal/shim-types.js +4 -0
- package/internal/shim-types.js.map +1 -0
- package/internal/shim-types.mjs +3 -0
- package/internal/shim-types.mjs.map +1 -0
- package/internal/shims.d.mts +20 -0
- package/internal/shims.d.mts.map +1 -0
- package/internal/shims.d.ts +20 -0
- package/internal/shims.d.ts.map +1 -0
- package/internal/shims.js +92 -0
- package/internal/shims.js.map +1 -0
- package/internal/shims.mjs +85 -0
- package/internal/shims.mjs.map +1 -0
- package/internal/to-file.d.mts +45 -0
- package/internal/to-file.d.mts.map +1 -0
- package/internal/to-file.d.ts +45 -0
- package/internal/to-file.d.ts.map +1 -0
- package/internal/to-file.js +91 -0
- package/internal/to-file.js.map +1 -0
- package/internal/to-file.mjs +88 -0
- package/internal/to-file.mjs.map +1 -0
- package/internal/tslib.js +81 -0
- package/internal/tslib.mjs +17 -0
- package/internal/types.d.mts +69 -0
- package/internal/types.d.mts.map +1 -0
- package/internal/types.d.ts +69 -0
- package/internal/types.d.ts.map +1 -0
- package/internal/types.js +4 -0
- package/internal/types.js.map +1 -0
- package/internal/types.mjs +3 -0
- package/internal/types.mjs.map +1 -0
- package/internal/uploads.d.mts +42 -0
- package/internal/uploads.d.mts.map +1 -0
- package/internal/uploads.d.ts +42 -0
- package/internal/uploads.d.ts.map +1 -0
- package/internal/uploads.js +141 -0
- package/internal/uploads.js.map +1 -0
- package/internal/uploads.mjs +131 -0
- package/internal/uploads.mjs.map +1 -0
- package/internal/utils/base64.d.mts +3 -0
- package/internal/utils/base64.d.mts.map +1 -0
- package/internal/utils/base64.d.ts +3 -0
- package/internal/utils/base64.d.ts.map +1 -0
- package/internal/utils/base64.js +38 -0
- package/internal/utils/base64.js.map +1 -0
- package/internal/utils/base64.mjs +33 -0
- package/internal/utils/base64.mjs.map +1 -0
- package/internal/utils/bytes.d.mts +4 -0
- package/internal/utils/bytes.d.mts.map +1 -0
- package/internal/utils/bytes.d.ts +4 -0
- package/internal/utils/bytes.d.ts.map +1 -0
- package/internal/utils/bytes.js +31 -0
- package/internal/utils/bytes.js.map +1 -0
- package/internal/utils/bytes.mjs +26 -0
- package/internal/utils/bytes.mjs.map +1 -0
- package/internal/utils/env.d.mts +9 -0
- package/internal/utils/env.d.mts.map +1 -0
- package/internal/utils/env.d.ts +9 -0
- package/internal/utils/env.d.ts.map +1 -0
- package/internal/utils/env.js +22 -0
- package/internal/utils/env.js.map +1 -0
- package/internal/utils/env.mjs +18 -0
- package/internal/utils/env.mjs.map +1 -0
- package/internal/utils/log.d.mts +37 -0
- package/internal/utils/log.d.mts.map +1 -0
- package/internal/utils/log.d.ts +37 -0
- package/internal/utils/log.d.ts.map +1 -0
- package/internal/utils/log.js +85 -0
- package/internal/utils/log.js.map +1 -0
- package/internal/utils/log.mjs +79 -0
- package/internal/utils/log.mjs.map +1 -0
- package/internal/utils/path.d.mts +15 -0
- package/internal/utils/path.d.mts.map +1 -0
- package/internal/utils/path.d.ts +15 -0
- package/internal/utils/path.d.ts.map +1 -0
- package/internal/utils/path.js +79 -0
- package/internal/utils/path.js.map +1 -0
- package/internal/utils/path.mjs +74 -0
- package/internal/utils/path.mjs.map +1 -0
- package/internal/utils/sleep.d.mts +2 -0
- package/internal/utils/sleep.d.mts.map +1 -0
- package/internal/utils/sleep.d.ts +2 -0
- package/internal/utils/sleep.d.ts.map +1 -0
- package/internal/utils/sleep.js +7 -0
- package/internal/utils/sleep.js.map +1 -0
- package/internal/utils/sleep.mjs +3 -0
- package/internal/utils/sleep.mjs.map +1 -0
- package/internal/utils/uuid.d.mts +5 -0
- package/internal/utils/uuid.d.mts.map +1 -0
- package/internal/utils/uuid.d.ts +5 -0
- package/internal/utils/uuid.d.ts.map +1 -0
- package/internal/utils/uuid.js +19 -0
- package/internal/utils/uuid.js.map +1 -0
- package/internal/utils/uuid.mjs +15 -0
- package/internal/utils/uuid.mjs.map +1 -0
- package/internal/utils/values.d.mts +18 -0
- package/internal/utils/values.d.mts.map +1 -0
- package/internal/utils/values.d.ts +18 -0
- package/internal/utils/values.d.ts.map +1 -0
- package/internal/utils/values.js +112 -0
- package/internal/utils/values.js.map +1 -0
- package/internal/utils/values.mjs +94 -0
- package/internal/utils/values.mjs.map +1 -0
- package/internal/utils.d.mts +7 -0
- package/internal/utils.d.mts.map +1 -0
- package/internal/utils.d.ts +7 -0
- package/internal/utils.d.ts.map +1 -0
- package/internal/utils.js +11 -0
- package/internal/utils.js.map +1 -0
- package/internal/utils.mjs +8 -0
- package/internal/utils.mjs.map +1 -0
- package/package.json +115 -66
- package/pagination.d.mts +2 -0
- package/pagination.d.mts.map +1 -0
- package/pagination.d.ts +1 -34
- package/pagination.d.ts.map +1 -1
- package/pagination.js +3 -71
- package/pagination.js.map +1 -1
- package/pagination.mjs +1 -68
- package/pagination.mjs.map +1 -1
- package/resource.d.mts +2 -0
- package/resource.d.mts.map +1 -0
- package/resource.d.ts +1 -5
- package/resource.d.ts.map +1 -1
- package/resource.js +3 -8
- package/resource.js.map +1 -1
- package/resource.mjs +1 -6
- package/resource.mjs.map +1 -1
- package/resources/addons.d.mts +113 -0
- package/resources/addons.d.mts.map +1 -0
- package/resources/addons.d.ts +11 -12
- package/resources/addons.d.ts.map +1 -1
- package/resources/addons.js +8 -15
- package/resources/addons.js.map +1 -1
- package/resources/addons.mjs +7 -13
- package/resources/addons.mjs.map +1 -1
- package/resources/brands.d.mts +66 -0
- package/resources/brands.d.mts.map +1 -0
- package/resources/brands.d.ts +8 -7
- package/resources/brands.d.ts.map +1 -1
- package/resources/brands.js +5 -4
- package/resources/brands.js.map +1 -1
- package/resources/brands.mjs +5 -4
- package/resources/brands.mjs.map +1 -1
- package/resources/checkout-sessions.d.mts +349 -0
- package/resources/checkout-sessions.d.mts.map +1 -0
- package/resources/checkout-sessions.d.ts +4 -3
- package/resources/checkout-sessions.d.ts.map +1 -1
- package/resources/checkout-sessions.js +1 -1
- package/resources/checkout-sessions.js.map +1 -1
- package/resources/checkout-sessions.mjs +1 -1
- package/resources/checkout-sessions.mjs.map +1 -1
- package/resources/customers/customer-portal.d.mts +17 -0
- package/resources/customers/customer-portal.d.mts.map +1 -0
- package/resources/customers/customer-portal.d.ts +4 -4
- package/resources/customers/customer-portal.d.ts.map +1 -1
- package/resources/customers/customer-portal.js +5 -8
- package/resources/customers/customer-portal.js.map +1 -1
- package/resources/customers/customer-portal.mjs +5 -8
- package/resources/customers/customer-portal.mjs.map +1 -1
- package/resources/customers/customers.d.mts +49 -0
- package/resources/customers/customers.d.mts.map +1 -0
- package/resources/customers/customers.d.ts +10 -11
- package/resources/customers/customers.d.ts.map +1 -1
- package/resources/customers/customers.js +15 -41
- package/resources/customers/customers.js.map +1 -1
- package/resources/customers/customers.mjs +11 -14
- package/resources/customers/customers.mjs.map +1 -1
- package/resources/customers/index.d.mts +4 -0
- package/resources/customers/index.d.mts.map +1 -0
- package/resources/customers/index.d.ts +1 -1
- package/resources/customers/index.d.ts.map +1 -1
- package/resources/customers/index.js +1 -2
- package/resources/customers/index.js.map +1 -1
- package/resources/customers/index.mjs +1 -1
- package/resources/customers/index.mjs.map +1 -1
- package/resources/customers/wallets/index.d.mts +3 -0
- package/resources/customers/wallets/index.d.mts.map +1 -0
- package/resources/customers/wallets/index.d.ts +1 -1
- package/resources/customers/wallets/index.d.ts.map +1 -1
- package/resources/customers/wallets/index.js +1 -2
- package/resources/customers/wallets/index.js.map +1 -1
- package/resources/customers/wallets/index.mjs +1 -1
- package/resources/customers/wallets/index.mjs.map +1 -1
- package/resources/customers/wallets/ledger-entries.d.mts +51 -0
- package/resources/customers/wallets/ledger-entries.d.mts.map +1 -0
- package/resources/customers/wallets/ledger-entries.d.ts +8 -9
- package/resources/customers/wallets/ledger-entries.d.ts.map +1 -1
- package/resources/customers/wallets/ledger-entries.js +8 -16
- package/resources/customers/wallets/ledger-entries.js.map +1 -1
- package/resources/customers/wallets/ledger-entries.mjs +7 -14
- package/resources/customers/wallets/ledger-entries.mjs.map +1 -1
- package/resources/customers/wallets/wallets.d.mts +29 -0
- package/resources/customers/wallets/wallets.d.mts.map +1 -0
- package/resources/customers/wallets/wallets.d.ts +5 -4
- package/resources/customers/wallets/wallets.d.ts.map +1 -1
- package/resources/customers/wallets/wallets.js +6 -29
- package/resources/customers/wallets/wallets.js.map +1 -1
- package/resources/customers/wallets/wallets.mjs +5 -6
- package/resources/customers/wallets/wallets.mjs.map +1 -1
- package/resources/customers/wallets.d.mts +2 -0
- package/resources/customers/wallets.d.mts.map +1 -0
- package/resources/customers/wallets.d.ts.map +1 -1
- package/resources/customers/wallets.js +2 -15
- package/resources/customers/wallets.js.map +1 -1
- package/resources/customers.d.mts +2 -0
- package/resources/customers.d.mts.map +1 -0
- package/resources/customers.d.ts.map +1 -1
- package/resources/customers.js +2 -15
- package/resources/customers.js.map +1 -1
- package/resources/discounts.d.mts +168 -0
- package/resources/discounts.d.mts.map +1 -0
- package/resources/discounts.d.ts +11 -12
- package/resources/discounts.d.ts.map +1 -1
- package/resources/discounts.js +19 -19
- package/resources/discounts.js.map +1 -1
- package/resources/discounts.mjs +18 -17
- package/resources/discounts.mjs.map +1 -1
- package/resources/disputes.d.mts +159 -0
- package/resources/disputes.d.mts.map +1 -0
- package/resources/disputes.d.ts +8 -9
- package/resources/disputes.d.ts.map +1 -1
- package/resources/disputes.js +7 -14
- package/resources/disputes.js.map +1 -1
- package/resources/disputes.mjs +6 -12
- package/resources/disputes.mjs.map +1 -1
- package/resources/index.d.mts +21 -0
- package/resources/index.d.mts.map +1 -0
- package/resources/index.d.ts +14 -14
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +5 -20
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +14 -14
- package/resources/index.mjs.map +1 -1
- package/resources/invoices/index.d.mts +3 -0
- package/resources/invoices/index.d.mts.map +1 -0
- package/resources/invoices/index.d.ts.map +1 -1
- package/resources/invoices/invoices.d.mts +10 -0
- package/resources/invoices/invoices.d.mts.map +1 -0
- package/resources/invoices/invoices.d.ts +1 -1
- package/resources/invoices/invoices.d.ts.map +1 -1
- package/resources/invoices/invoices.js +3 -25
- package/resources/invoices/invoices.js.map +1 -1
- package/resources/invoices/invoices.mjs +1 -1
- package/resources/invoices/payments.d.mts +8 -0
- package/resources/invoices/payments.d.mts.map +1 -0
- package/resources/invoices/payments.d.ts +5 -5
- package/resources/invoices/payments.d.ts.map +1 -1
- package/resources/invoices/payments.js +9 -7
- package/resources/invoices/payments.js.map +1 -1
- package/resources/invoices/payments.mjs +9 -7
- package/resources/invoices/payments.mjs.map +1 -1
- package/resources/invoices.d.mts +2 -0
- package/resources/invoices.d.mts.map +1 -0
- package/resources/invoices.d.ts.map +1 -1
- package/resources/invoices.js +2 -15
- package/resources/invoices.js.map +1 -1
- package/resources/license-key-instances.d.mts +55 -0
- package/resources/license-key-instances.d.mts.map +1 -0
- package/resources/license-key-instances.d.ts +9 -10
- package/resources/license-key-instances.d.ts.map +1 -1
- package/resources/license-key-instances.js +16 -18
- package/resources/license-key-instances.js.map +1 -1
- package/resources/license-key-instances.mjs +15 -16
- package/resources/license-key-instances.mjs.map +1 -1
- package/resources/license-keys.d.mts +122 -0
- package/resources/license-keys.d.mts.map +1 -0
- package/resources/license-keys.d.ts +9 -10
- package/resources/license-keys.d.ts.map +1 -1
- package/resources/license-keys.js +16 -14
- package/resources/license-keys.js.map +1 -1
- package/resources/license-keys.mjs +15 -12
- package/resources/license-keys.mjs.map +1 -1
- package/resources/licenses.d.mts +99 -0
- package/resources/licenses.d.mts.map +1 -0
- package/resources/licenses.d.ts +6 -5
- package/resources/licenses.d.ts.map +1 -1
- package/resources/licenses.js +3 -2
- package/resources/licenses.js.map +1 -1
- package/resources/licenses.mjs +3 -2
- package/resources/licenses.mjs.map +1 -1
- package/resources/meters.d.mts +191 -0
- package/resources/meters.d.mts.map +1 -0
- package/resources/meters.d.ts +11 -12
- package/resources/meters.d.ts.map +1 -1
- package/resources/meters.js +11 -17
- package/resources/meters.js.map +1 -1
- package/resources/meters.mjs +10 -15
- package/resources/meters.mjs.map +1 -1
- package/resources/misc.d.mts +21 -0
- package/resources/misc.d.mts.map +1 -0
- package/resources/misc.d.ts +4 -3
- package/resources/misc.d.ts.map +1 -1
- package/resources/misc.js +1 -1
- package/resources/misc.js.map +1 -1
- package/resources/misc.mjs +1 -1
- package/resources/misc.mjs.map +1 -1
- package/resources/payments.d.mts +420 -0
- package/resources/payments.d.mts.map +1 -0
- package/resources/payments.d.ts +10 -11
- package/resources/payments.d.ts.map +1 -1
- package/resources/payments.js +9 -16
- package/resources/payments.js.map +1 -1
- package/resources/payments.mjs +8 -14
- package/resources/payments.mjs.map +1 -1
- package/resources/payouts.d.mts +76 -0
- package/resources/payouts.d.mts.map +1 -0
- package/resources/payouts.d.ts +6 -8
- package/resources/payouts.d.ts.map +1 -1
- package/resources/payouts.js +4 -12
- package/resources/payouts.js.map +1 -1
- package/resources/payouts.mjs +3 -10
- package/resources/payouts.mjs.map +1 -1
- package/resources/products/images.d.mts +17 -0
- package/resources/products/images.d.mts.map +1 -0
- package/resources/products/images.d.ts +4 -4
- package/resources/products/images.d.ts.map +1 -1
- package/resources/products/images.js +4 -7
- package/resources/products/images.js.map +1 -1
- package/resources/products/images.mjs +4 -7
- package/resources/products/images.mjs.map +1 -1
- package/resources/products/index.d.mts +3 -0
- package/resources/products/index.d.mts.map +1 -0
- package/resources/products/index.d.ts +1 -1
- package/resources/products/index.d.ts.map +1 -1
- package/resources/products/index.js +1 -2
- package/resources/products/index.js.map +1 -1
- package/resources/products/index.mjs +1 -1
- package/resources/products/index.mjs.map +1 -1
- package/resources/products/products.d.mts +535 -0
- package/resources/products/products.d.mts.map +1 -0
- package/resources/products/products.d.ts +13 -14
- package/resources/products/products.d.ts.map +1 -1
- package/resources/products/products.js +16 -44
- package/resources/products/products.js.map +1 -1
- package/resources/products/products.mjs +13 -18
- package/resources/products/products.mjs.map +1 -1
- package/resources/products.d.mts +2 -0
- package/resources/products.d.mts.map +1 -0
- package/resources/products.d.ts.map +1 -1
- package/resources/products.js +2 -15
- package/resources/products.js.map +1 -1
- package/resources/refunds.d.mts +145 -0
- package/resources/refunds.d.mts.map +1 -0
- package/resources/refunds.d.ts +9 -10
- package/resources/refunds.d.ts.map +1 -1
- package/resources/refunds.js +7 -14
- package/resources/refunds.js.map +1 -1
- package/resources/refunds.mjs +6 -12
- package/resources/refunds.mjs.map +1 -1
- package/resources/subscriptions.d.mts +626 -0
- package/resources/subscriptions.d.mts.map +1 -0
- package/resources/subscriptions.d.ts +14 -17
- package/resources/subscriptions.d.ts.map +1 -1
- package/resources/subscriptions.js +61 -32
- package/resources/subscriptions.js.map +1 -1
- package/resources/subscriptions.mjs +60 -29
- package/resources/subscriptions.mjs.map +1 -1
- package/resources/usage-events.d.mts +192 -0
- package/resources/usage-events.d.mts.map +1 -0
- package/resources/usage-events.d.ts +9 -10
- package/resources/usage-events.d.ts.map +1 -1
- package/resources/usage-events.js +42 -14
- package/resources/usage-events.js.map +1 -1
- package/resources/usage-events.mjs +41 -12
- package/resources/usage-events.mjs.map +1 -1
- package/resources/webhook-events.d.mts +52 -0
- package/resources/webhook-events.d.mts.map +1 -0
- package/resources/webhook-events.d.ts +1 -1
- package/resources/webhook-events.d.ts.map +1 -1
- package/resources/webhook-events.js +1 -1
- package/resources/webhook-events.js.map +1 -1
- package/resources/webhook-events.mjs +1 -1
- package/resources/webhooks/headers.d.mts +42 -0
- package/resources/webhooks/headers.d.mts.map +1 -0
- package/resources/webhooks/headers.d.ts +5 -4
- package/resources/webhooks/headers.d.ts.map +1 -1
- package/resources/webhooks/headers.js +8 -6
- package/resources/webhooks/headers.js.map +1 -1
- package/resources/webhooks/headers.mjs +8 -6
- package/resources/webhooks/headers.mjs.map +1 -1
- package/resources/webhooks/index.d.mts +3 -0
- package/resources/webhooks/index.d.mts.map +1 -0
- package/resources/webhooks/index.d.ts +1 -1
- package/resources/webhooks/index.d.ts.map +1 -1
- package/resources/webhooks/index.js +1 -2
- package/resources/webhooks/index.js.map +1 -1
- package/resources/webhooks/index.mjs +1 -1
- package/resources/webhooks/index.mjs.map +1 -1
- package/resources/webhooks/webhooks.d.mts +155 -0
- package/resources/webhooks/webhooks.d.mts.map +1 -0
- package/resources/webhooks/webhooks.d.ts +12 -13
- package/resources/webhooks/webhooks.d.ts.map +1 -1
- package/resources/webhooks/webhooks.js +20 -45
- package/resources/webhooks/webhooks.js.map +1 -1
- package/resources/webhooks/webhooks.mjs +17 -19
- package/resources/webhooks/webhooks.mjs.map +1 -1
- package/resources/webhooks.d.mts +2 -0
- package/resources/webhooks.d.mts.map +1 -0
- package/resources/webhooks.d.ts.map +1 -1
- package/resources/webhooks.js +2 -15
- package/resources/webhooks.js.map +1 -1
- package/resources.d.mts +2 -0
- package/resources.d.mts.map +1 -0
- package/resources.d.ts.map +1 -1
- package/resources.js +2 -15
- package/resources.js.map +1 -1
- package/src/api-promise.ts +2 -0
- package/src/client.ts +1206 -0
- package/src/core/README.md +3 -0
- package/src/core/api-promise.ts +92 -0
- package/src/core/error.ts +130 -0
- package/src/core/pagination.ts +218 -0
- package/src/core/resource.ts +11 -0
- package/src/core/uploads.ts +2 -0
- package/src/error.ts +2 -130
- package/src/index.ts +6 -658
- package/src/internal/README.md +3 -0
- package/src/internal/builtin-types.ts +93 -0
- package/src/internal/detect-platform.ts +196 -0
- package/src/internal/errors.ts +33 -0
- package/src/internal/headers.ts +97 -0
- package/src/internal/parse.ts +50 -0
- package/src/internal/request-options.ts +91 -0
- package/src/internal/shim-types.ts +26 -0
- package/src/internal/shims.ts +107 -0
- package/src/internal/to-file.ts +154 -0
- package/src/internal/types.ts +95 -0
- package/src/internal/uploads.ts +187 -0
- package/src/internal/utils/base64.ts +40 -0
- package/src/internal/utils/bytes.ts +32 -0
- package/src/internal/utils/env.ts +18 -0
- package/src/internal/utils/log.ts +126 -0
- package/src/internal/utils/path.ts +88 -0
- package/src/internal/utils/sleep.ts +3 -0
- package/src/internal/utils/uuid.ts +17 -0
- package/src/internal/utils/values.ts +105 -0
- package/src/internal/utils.ts +8 -0
- package/src/pagination.ts +2 -125
- package/src/resource.ts +2 -11
- package/src/resources/addons.ts +23 -30
- package/src/resources/brands.ts +12 -10
- package/src/resources/checkout-sessions.ts +7 -9
- package/src/resources/customers/customer-portal.ts +11 -22
- package/src/resources/customers/customers.ts +27 -32
- package/src/resources/customers/index.ts +4 -4
- package/src/resources/customers/wallets/index.ts +3 -3
- package/src/resources/customers/wallets/ledger-entries.ts +24 -33
- package/src/resources/customers/wallets/wallets.ts +10 -10
- package/src/resources/customers/wallets.ts +1 -1
- package/src/resources/customers.ts +1 -1
- package/src/resources/discounts.ts +27 -32
- package/src/resources/disputes.ts +19 -25
- package/src/resources/index.ts +42 -42
- package/src/resources/invoices/index.ts +2 -2
- package/src/resources/invoices/invoices.ts +3 -3
- package/src/resources/invoices/payments.ts +11 -9
- package/src/resources/invoices.ts +1 -1
- package/src/resources/license-key-instances.ts +24 -31
- package/src/resources/license-keys.ts +19 -28
- package/src/resources/licenses.ts +9 -13
- package/src/resources/meters.ts +25 -29
- package/src/resources/misc.ts +4 -3
- package/src/resources/payments.ts +26 -32
- package/src/resources/payouts.ts +14 -23
- package/src/resources/products/images.ts +9 -17
- package/src/resources/products/index.ts +3 -3
- package/src/resources/products/products.ts +37 -41
- package/src/resources/products.ts +1 -1
- package/src/resources/refunds.ts +20 -27
- package/src/resources/subscriptions.ts +44 -72
- package/src/resources/usage-events.ts +18 -26
- package/src/resources/webhook-events.ts +6 -6
- package/src/resources/webhooks/headers.ts +10 -7
- package/src/resources/webhooks/index.ts +3 -3
- package/src/resources/webhooks/webhooks.ts +25 -39
- package/src/resources/webhooks.ts +1 -1
- package/src/resources.ts +1 -1
- package/src/tsconfig.json +2 -2
- package/src/uploads.ts +2 -255
- package/src/version.ts +1 -1
- package/uploads.d.mts +2 -0
- package/uploads.d.mts.map +1 -0
- package/uploads.d.ts +1 -74
- package/uploads.d.ts.map +1 -1
- package/uploads.js +3 -168
- package/uploads.js.map +1 -1
- package/uploads.mjs +1 -157
- package/uploads.mjs.map +1 -1
- package/version.d.mts +2 -0
- package/version.d.mts.map +1 -0
- package/version.d.ts +1 -1
- package/version.d.ts.map +1 -1
- package/version.js +1 -1
- package/version.js.map +1 -1
- package/version.mjs +1 -1
- package/version.mjs.map +1 -1
- package/_shims/MultipartBody.d.ts +0 -9
- package/_shims/MultipartBody.d.ts.map +0 -1
- package/_shims/MultipartBody.js +0 -16
- package/_shims/MultipartBody.js.map +0 -1
- package/_shims/MultipartBody.mjs +0 -12
- package/_shims/MultipartBody.mjs.map +0 -1
- package/_shims/README.md +0 -46
- package/_shims/auto/runtime-bun.d.ts +0 -5
- package/_shims/auto/runtime-bun.d.ts.map +0 -1
- package/_shims/auto/runtime-bun.js +0 -21
- package/_shims/auto/runtime-bun.js.map +0 -1
- package/_shims/auto/runtime-bun.mjs +0 -2
- package/_shims/auto/runtime-bun.mjs.map +0 -1
- package/_shims/auto/runtime-node.d.ts +0 -5
- package/_shims/auto/runtime-node.d.ts.map +0 -1
- package/_shims/auto/runtime-node.js +0 -21
- package/_shims/auto/runtime-node.js.map +0 -1
- package/_shims/auto/runtime-node.mjs +0 -2
- package/_shims/auto/runtime-node.mjs.map +0 -1
- package/_shims/auto/runtime.d.ts +0 -5
- package/_shims/auto/runtime.d.ts.map +0 -1
- package/_shims/auto/runtime.js +0 -21
- package/_shims/auto/runtime.js.map +0 -1
- package/_shims/auto/runtime.mjs +0 -2
- package/_shims/auto/runtime.mjs.map +0 -1
- package/_shims/auto/types-node.d.ts +0 -5
- package/_shims/auto/types-node.d.ts.map +0 -1
- package/_shims/auto/types-node.js +0 -21
- package/_shims/auto/types-node.js.map +0 -1
- package/_shims/auto/types-node.mjs +0 -2
- package/_shims/auto/types-node.mjs.map +0 -1
- package/_shims/auto/types.d.ts +0 -101
- package/_shims/auto/types.js +0 -3
- package/_shims/auto/types.mjs +0 -3
- package/_shims/bun-runtime.d.ts +0 -6
- package/_shims/bun-runtime.d.ts.map +0 -1
- package/_shims/bun-runtime.js +0 -14
- package/_shims/bun-runtime.js.map +0 -1
- package/_shims/bun-runtime.mjs +0 -10
- package/_shims/bun-runtime.mjs.map +0 -1
- package/_shims/index.d.ts +0 -83
- package/_shims/index.js +0 -17
- package/_shims/index.mjs +0 -11
- package/_shims/manual-types.d.ts +0 -12
- package/_shims/manual-types.js +0 -3
- package/_shims/manual-types.mjs +0 -3
- package/_shims/node-runtime.d.ts +0 -3
- package/_shims/node-runtime.d.ts.map +0 -1
- package/_shims/node-runtime.js +0 -89
- package/_shims/node-runtime.js.map +0 -1
- package/_shims/node-runtime.mjs +0 -56
- package/_shims/node-runtime.mjs.map +0 -1
- package/_shims/node-types.d.ts +0 -42
- package/_shims/node-types.js +0 -3
- package/_shims/node-types.mjs +0 -3
- package/_shims/registry.d.ts +0 -37
- package/_shims/registry.d.ts.map +0 -1
- package/_shims/registry.js +0 -41
- package/_shims/registry.js.map +0 -1
- package/_shims/registry.mjs +0 -37
- package/_shims/registry.mjs.map +0 -1
- package/_shims/web-runtime.d.ts +0 -5
- package/_shims/web-runtime.d.ts.map +0 -1
- package/_shims/web-runtime.js +0 -78
- package/_shims/web-runtime.js.map +0 -1
- package/_shims/web-runtime.mjs +0 -71
- package/_shims/web-runtime.mjs.map +0 -1
- package/_shims/web-types.d.ts +0 -83
- package/_shims/web-types.js +0 -3
- package/_shims/web-types.mjs +0 -3
- package/core.d.ts +0 -255
- package/core.d.ts.map +0 -1
- package/core.js +0 -924
- package/core.js.map +0 -1
- package/core.mjs +0 -892
- package/core.mjs.map +0 -1
- package/shims/node.d.ts +0 -30
- package/shims/node.d.ts.map +0 -1
- package/shims/node.js +0 -31
- package/shims/node.js.map +0 -1
- package/shims/node.mjs +0 -5
- package/shims/node.mjs.map +0 -1
- package/shims/web.d.ts +0 -26
- package/shims/web.d.ts.map +0 -1
- package/shims/web.js +0 -31
- package/shims/web.js.map +0 -1
- package/shims/web.mjs +0 -5
- package/shims/web.mjs.map +0 -1
- package/src/_shims/MultipartBody.ts +0 -9
- package/src/_shims/README.md +0 -46
- package/src/_shims/auto/runtime-bun.ts +0 -4
- package/src/_shims/auto/runtime-node.ts +0 -4
- package/src/_shims/auto/runtime.ts +0 -4
- package/src/_shims/auto/types-node.ts +0 -4
- package/src/_shims/auto/types.d.ts +0 -101
- package/src/_shims/auto/types.js +0 -3
- package/src/_shims/auto/types.mjs +0 -3
- package/src/_shims/bun-runtime.ts +0 -14
- package/src/_shims/index.d.ts +0 -83
- package/src/_shims/index.js +0 -17
- package/src/_shims/index.mjs +0 -11
- package/src/_shims/manual-types.d.ts +0 -12
- package/src/_shims/manual-types.js +0 -3
- package/src/_shims/manual-types.mjs +0 -3
- package/src/_shims/node-runtime.ts +0 -81
- package/src/_shims/node-types.d.ts +0 -42
- package/src/_shims/node-types.js +0 -3
- package/src/_shims/node-types.mjs +0 -3
- package/src/_shims/registry.ts +0 -67
- package/src/_shims/web-runtime.ts +0 -103
- package/src/_shims/web-types.d.ts +0 -83
- package/src/_shims/web-types.js +0 -3
- package/src/_shims/web-types.mjs +0 -3
- package/src/core.ts +0 -1237
- package/src/shims/node.ts +0 -50
- package/src/shims/web.ts +0 -50
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"invoices.js","sourceRoot":"","sources":["../../src/resources/invoices/invoices.ts"],"names":[],"mappings":";AAAA,sFAAsF
|
|
1
|
+
{"version":3,"file":"invoices.js","sourceRoot":"","sources":["../../src/resources/invoices/invoices.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAClD,mEAA0C;AAC1C,4CAAsC;AAEtC,MAAa,QAAS,SAAQ,sBAAW;IAAzC;;QACE,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC1E,CAAC;CAAA;AAFD,4BAEC;AAED,QAAQ,CAAC,QAAQ,GAAG,mBAAQ,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
import { APIResource } from "../../resource.mjs";
|
|
2
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
3
3
|
import * as PaymentsAPI from "./payments.mjs";
|
|
4
4
|
import { Payments } from "./payments.mjs";
|
|
5
5
|
export class Invoices extends APIResource {
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
2
|
+
import { APIPromise } from "../../core/api-promise.mjs";
|
|
3
|
+
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
4
|
+
export declare class Payments extends APIResource {
|
|
5
|
+
retrieve(paymentID: string, options?: RequestOptions): APIPromise<Response>;
|
|
6
|
+
retrieveRefund(refundID: string, options?: RequestOptions): APIPromise<Response>;
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=payments.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payments.d.mts","sourceRoot":"","sources":["../../src/resources/invoices/payments.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB,qBAAa,QAAS,SAAQ,WAAW;IACvC,QAAQ,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,QAAQ,CAAC;IAQ3E,cAAc,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,QAAQ,CAAC;CAOjF"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { APIResource } from "../../resource.js";
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
1
|
+
import { APIResource } from "../../core/resource.js";
|
|
2
|
+
import { APIPromise } from "../../core/api-promise.js";
|
|
3
|
+
import { RequestOptions } from "../../internal/request-options.js";
|
|
4
4
|
export declare class Payments extends APIResource {
|
|
5
|
-
retrieve(
|
|
6
|
-
retrieveRefund(
|
|
5
|
+
retrieve(paymentID: string, options?: RequestOptions): APIPromise<Response>;
|
|
6
|
+
retrieveRefund(refundID: string, options?: RequestOptions): APIPromise<Response>;
|
|
7
7
|
}
|
|
8
8
|
//# sourceMappingURL=payments.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payments.d.ts","sourceRoot":"","sources":["../../src/resources/invoices/payments.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"payments.d.ts","sourceRoot":"","sources":["../../src/resources/invoices/payments.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB,qBAAa,QAAS,SAAQ,WAAW;IACvC,QAAQ,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,QAAQ,CAAC;IAQ3E,cAAc,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,QAAQ,CAAC;CAOjF"}
|
|
@@ -2,19 +2,21 @@
|
|
|
2
2
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.Payments = void 0;
|
|
5
|
-
const resource_1 = require("../../resource.js");
|
|
5
|
+
const resource_1 = require("../../core/resource.js");
|
|
6
|
+
const headers_1 = require("../../internal/headers.js");
|
|
7
|
+
const path_1 = require("../../internal/utils/path.js");
|
|
6
8
|
class Payments extends resource_1.APIResource {
|
|
7
|
-
retrieve(
|
|
8
|
-
return this._client.get(`/invoices/payments/${
|
|
9
|
+
retrieve(paymentID, options) {
|
|
10
|
+
return this._client.get((0, path_1.path) `/invoices/payments/${paymentID}`, {
|
|
9
11
|
...options,
|
|
10
|
-
headers: { Accept: 'application/pdf',
|
|
12
|
+
headers: (0, headers_1.buildHeaders)([{ Accept: 'application/pdf' }, options?.headers]),
|
|
11
13
|
__binaryResponse: true,
|
|
12
14
|
});
|
|
13
15
|
}
|
|
14
|
-
retrieveRefund(
|
|
15
|
-
return this._client.get(`/invoices/refunds/${
|
|
16
|
+
retrieveRefund(refundID, options) {
|
|
17
|
+
return this._client.get((0, path_1.path) `/invoices/refunds/${refundID}`, {
|
|
16
18
|
...options,
|
|
17
|
-
headers: { Accept: 'application/pdf',
|
|
19
|
+
headers: (0, headers_1.buildHeaders)([{ Accept: 'application/pdf' }, options?.headers]),
|
|
18
20
|
__binaryResponse: true,
|
|
19
21
|
});
|
|
20
22
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payments.js","sourceRoot":"","sources":["../../src/resources/invoices/payments.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,
|
|
1
|
+
{"version":3,"file":"payments.js","sourceRoot":"","sources":["../../src/resources/invoices/payments.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAElD,uDAAsD;AAEtD,uDAAiD;AAEjD,MAAa,QAAS,SAAQ,sBAAW;IACvC,QAAQ,CAAC,SAAiB,EAAE,OAAwB;QAClD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,sBAAsB,SAAS,EAAE,EAAE;YAC7D,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,iBAAiB,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;YACxE,gBAAgB,EAAE,IAAI;SACvB,CAAC,CAAC;IACL,CAAC;IAED,cAAc,CAAC,QAAgB,EAAE,OAAwB;QACvD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,qBAAqB,QAAQ,EAAE,EAAE;YAC3D,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,iBAAiB,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;YACxE,gBAAgB,EAAE,IAAI;SACvB,CAAC,CAAC;IACL,CAAC;CACF;AAhBD,4BAgBC"}
|
|
@@ -1,17 +1,19 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
import { APIResource } from "../../resource.mjs";
|
|
2
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
3
|
+
import { buildHeaders } from "../../internal/headers.mjs";
|
|
4
|
+
import { path } from "../../internal/utils/path.mjs";
|
|
3
5
|
export class Payments extends APIResource {
|
|
4
|
-
retrieve(
|
|
5
|
-
return this._client.get(`/invoices/payments/${
|
|
6
|
+
retrieve(paymentID, options) {
|
|
7
|
+
return this._client.get(path `/invoices/payments/${paymentID}`, {
|
|
6
8
|
...options,
|
|
7
|
-
headers: { Accept: 'application/pdf',
|
|
9
|
+
headers: buildHeaders([{ Accept: 'application/pdf' }, options?.headers]),
|
|
8
10
|
__binaryResponse: true,
|
|
9
11
|
});
|
|
10
12
|
}
|
|
11
|
-
retrieveRefund(
|
|
12
|
-
return this._client.get(`/invoices/refunds/${
|
|
13
|
+
retrieveRefund(refundID, options) {
|
|
14
|
+
return this._client.get(path `/invoices/refunds/${refundID}`, {
|
|
13
15
|
...options,
|
|
14
|
-
headers: { Accept: 'application/pdf',
|
|
16
|
+
headers: buildHeaders([{ Accept: 'application/pdf' }, options?.headers]),
|
|
15
17
|
__binaryResponse: true,
|
|
16
18
|
});
|
|
17
19
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payments.mjs","sourceRoot":"","sources":["../../src/resources/invoices/payments.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;
|
|
1
|
+
{"version":3,"file":"payments.mjs","sourceRoot":"","sources":["../../src/resources/invoices/payments.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAAE,YAAY,EAAE;OAEhB,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,QAAS,SAAQ,WAAW;IACvC,QAAQ,CAAC,SAAiB,EAAE,OAAwB;QAClD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,sBAAsB,SAAS,EAAE,EAAE;YAC7D,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,iBAAiB,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;YACxE,gBAAgB,EAAE,IAAI;SACvB,CAAC,CAAC;IACL,CAAC;IAED,cAAc,CAAC,QAAgB,EAAE,OAAwB;QACvD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,qBAAqB,QAAQ,EAAE,EAAE;YAC3D,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,iBAAiB,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;YACxE,gBAAgB,EAAE,IAAI;SACvB,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"invoices.d.mts","sourceRoot":"","sources":["../src/resources/invoices.ts"],"names":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"invoices.d.ts","sourceRoot":"","sources":["../src/resources/invoices.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"invoices.d.ts","sourceRoot":"","sources":["../src/resources/invoices.ts"],"names":[],"mappings":""}
|
package/resources/invoices.js
CHANGED
|
@@ -1,19 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
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 __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
15
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
16
|
-
};
|
|
17
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
|
|
4
|
+
const tslib_1 = require("../internal/tslib.js");
|
|
5
|
+
tslib_1.__exportStar(require("./invoices/index.js"), exports);
|
|
19
6
|
//# sourceMappingURL=invoices.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"invoices.js","sourceRoot":"","sources":["../src/resources/invoices.ts"],"names":[],"mappings":";AAAA,sFAAsF
|
|
1
|
+
{"version":3,"file":"invoices.js","sourceRoot":"","sources":["../src/resources/invoices.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,8DAAiC"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.mjs";
|
|
2
|
+
import { APIPromise } from "../core/api-promise.mjs";
|
|
3
|
+
import { DefaultPageNumberPagination, type DefaultPageNumberPaginationParams, PagePromise } from "../core/pagination.mjs";
|
|
4
|
+
import { RequestOptions } from "../internal/request-options.mjs";
|
|
5
|
+
export declare class LicenseKeyInstances extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* @example
|
|
8
|
+
* ```ts
|
|
9
|
+
* const licenseKeyInstance =
|
|
10
|
+
* await client.licenseKeyInstances.retrieve('lki_123');
|
|
11
|
+
* ```
|
|
12
|
+
*/
|
|
13
|
+
retrieve(id: string, options?: RequestOptions): APIPromise<LicenseKeyInstance>;
|
|
14
|
+
/**
|
|
15
|
+
* @example
|
|
16
|
+
* ```ts
|
|
17
|
+
* const licenseKeyInstance =
|
|
18
|
+
* await client.licenseKeyInstances.update('lki_123', {
|
|
19
|
+
* name: 'name',
|
|
20
|
+
* });
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
update(id: string, body: LicenseKeyInstanceUpdateParams, options?: RequestOptions): APIPromise<LicenseKeyInstance>;
|
|
24
|
+
/**
|
|
25
|
+
* @example
|
|
26
|
+
* ```ts
|
|
27
|
+
* // Automatically fetches more pages as needed.
|
|
28
|
+
* for await (const licenseKeyInstance of client.licenseKeyInstances.list()) {
|
|
29
|
+
* // ...
|
|
30
|
+
* }
|
|
31
|
+
* ```
|
|
32
|
+
*/
|
|
33
|
+
list(query?: LicenseKeyInstanceListParams | null | undefined, options?: RequestOptions): PagePromise<LicenseKeyInstancesDefaultPageNumberPagination, LicenseKeyInstance>;
|
|
34
|
+
}
|
|
35
|
+
export type LicenseKeyInstancesDefaultPageNumberPagination = DefaultPageNumberPagination<LicenseKeyInstance>;
|
|
36
|
+
export interface LicenseKeyInstance {
|
|
37
|
+
id: string;
|
|
38
|
+
business_id: string;
|
|
39
|
+
created_at: string;
|
|
40
|
+
license_key_id: string;
|
|
41
|
+
name: string;
|
|
42
|
+
}
|
|
43
|
+
export interface LicenseKeyInstanceUpdateParams {
|
|
44
|
+
name: string;
|
|
45
|
+
}
|
|
46
|
+
export interface LicenseKeyInstanceListParams extends DefaultPageNumberPaginationParams {
|
|
47
|
+
/**
|
|
48
|
+
* Filter by license key ID
|
|
49
|
+
*/
|
|
50
|
+
license_key_id?: string | null;
|
|
51
|
+
}
|
|
52
|
+
export declare namespace LicenseKeyInstances {
|
|
53
|
+
export { type LicenseKeyInstance as LicenseKeyInstance, type LicenseKeyInstancesDefaultPageNumberPagination as LicenseKeyInstancesDefaultPageNumberPagination, type LicenseKeyInstanceUpdateParams as LicenseKeyInstanceUpdateParams, type LicenseKeyInstanceListParams as LicenseKeyInstanceListParams, };
|
|
54
|
+
}
|
|
55
|
+
//# sourceMappingURL=license-key-instances.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"license-key-instances.d.mts","sourceRoot":"","sources":["../src/resources/license-key-instances.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EACL,2BAA2B,EAC3B,KAAK,iCAAiC,EACtC,WAAW,EACZ;OACM,EAAE,cAAc,EAAE;AAGzB,qBAAa,mBAAoB,SAAQ,WAAW;IAClD;;;;;;OAMG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,kBAAkB,CAAC;IAI9E;;;;;;;;OAQG;IACH,MAAM,CACJ,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,8BAA8B,EACpC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,kBAAkB,CAAC;IAIjC;;;;;;;;OAQG;IACH,IAAI,CACF,KAAK,GAAE,4BAA4B,GAAG,IAAI,GAAG,SAAc,EAC3D,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,8CAA8C,EAAE,kBAAkB,CAAC;CAOnF;AAED,MAAM,MAAM,8CAA8C,GAAG,2BAA2B,CAAC,kBAAkB,CAAC,CAAC;AAE7G,MAAM,WAAW,kBAAkB;IACjC,EAAE,EAAE,MAAM,CAAC;IAEX,WAAW,EAAE,MAAM,CAAC;IAEpB,UAAU,EAAE,MAAM,CAAC;IAEnB,cAAc,EAAE,MAAM,CAAC;IAEvB,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,8BAA8B;IAC7C,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,4BAA6B,SAAQ,iCAAiC;IACrF;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAChC;AAED,MAAM,CAAC,OAAO,WAAW,mBAAmB,CAAC;IAC3C,OAAO,EACL,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,8CAA8C,IAAI,8CAA8C,EACrG,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,4BAA4B,IAAI,4BAA4B,GAClE,CAAC;CACH"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { APIResource } from "../resource.js";
|
|
2
|
-
import
|
|
3
|
-
import { DefaultPageNumberPagination, type DefaultPageNumberPaginationParams } from "../pagination.js";
|
|
1
|
+
import { APIResource } from "../core/resource.js";
|
|
2
|
+
import { APIPromise } from "../core/api-promise.js";
|
|
3
|
+
import { DefaultPageNumberPagination, type DefaultPageNumberPaginationParams, PagePromise } from "../core/pagination.js";
|
|
4
|
+
import { RequestOptions } from "../internal/request-options.js";
|
|
4
5
|
export declare class LicenseKeyInstances extends APIResource {
|
|
5
6
|
/**
|
|
6
7
|
* @example
|
|
@@ -9,7 +10,7 @@ export declare class LicenseKeyInstances extends APIResource {
|
|
|
9
10
|
* await client.licenseKeyInstances.retrieve('lki_123');
|
|
10
11
|
* ```
|
|
11
12
|
*/
|
|
12
|
-
retrieve(id: string, options?:
|
|
13
|
+
retrieve(id: string, options?: RequestOptions): APIPromise<LicenseKeyInstance>;
|
|
13
14
|
/**
|
|
14
15
|
* @example
|
|
15
16
|
* ```ts
|
|
@@ -19,7 +20,7 @@ export declare class LicenseKeyInstances extends APIResource {
|
|
|
19
20
|
* });
|
|
20
21
|
* ```
|
|
21
22
|
*/
|
|
22
|
-
update(id: string, body: LicenseKeyInstanceUpdateParams, options?:
|
|
23
|
+
update(id: string, body: LicenseKeyInstanceUpdateParams, options?: RequestOptions): APIPromise<LicenseKeyInstance>;
|
|
23
24
|
/**
|
|
24
25
|
* @example
|
|
25
26
|
* ```ts
|
|
@@ -29,11 +30,9 @@ export declare class LicenseKeyInstances extends APIResource {
|
|
|
29
30
|
* }
|
|
30
31
|
* ```
|
|
31
32
|
*/
|
|
32
|
-
list(query?: LicenseKeyInstanceListParams, options?:
|
|
33
|
-
list(options?: Core.RequestOptions): Core.PagePromise<LicenseKeyInstancesDefaultPageNumberPagination, LicenseKeyInstance>;
|
|
34
|
-
}
|
|
35
|
-
export declare class LicenseKeyInstancesDefaultPageNumberPagination extends DefaultPageNumberPagination<LicenseKeyInstance> {
|
|
33
|
+
list(query?: LicenseKeyInstanceListParams | null | undefined, options?: RequestOptions): PagePromise<LicenseKeyInstancesDefaultPageNumberPagination, LicenseKeyInstance>;
|
|
36
34
|
}
|
|
35
|
+
export type LicenseKeyInstancesDefaultPageNumberPagination = DefaultPageNumberPagination<LicenseKeyInstance>;
|
|
37
36
|
export interface LicenseKeyInstance {
|
|
38
37
|
id: string;
|
|
39
38
|
business_id: string;
|
|
@@ -51,6 +50,6 @@ export interface LicenseKeyInstanceListParams extends DefaultPageNumberPaginatio
|
|
|
51
50
|
license_key_id?: string | null;
|
|
52
51
|
}
|
|
53
52
|
export declare namespace LicenseKeyInstances {
|
|
54
|
-
export { type LicenseKeyInstance as LicenseKeyInstance, LicenseKeyInstancesDefaultPageNumberPagination as LicenseKeyInstancesDefaultPageNumberPagination, type LicenseKeyInstanceUpdateParams as LicenseKeyInstanceUpdateParams, type LicenseKeyInstanceListParams as LicenseKeyInstanceListParams, };
|
|
53
|
+
export { type LicenseKeyInstance as LicenseKeyInstance, type LicenseKeyInstancesDefaultPageNumberPagination as LicenseKeyInstancesDefaultPageNumberPagination, type LicenseKeyInstanceUpdateParams as LicenseKeyInstanceUpdateParams, type LicenseKeyInstanceListParams as LicenseKeyInstanceListParams, };
|
|
55
54
|
}
|
|
56
55
|
//# sourceMappingURL=license-key-instances.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"license-key-instances.d.ts","sourceRoot":"","sources":["../src/resources/license-key-instances.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"license-key-instances.d.ts","sourceRoot":"","sources":["../src/resources/license-key-instances.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EACL,2BAA2B,EAC3B,KAAK,iCAAiC,EACtC,WAAW,EACZ;OACM,EAAE,cAAc,EAAE;AAGzB,qBAAa,mBAAoB,SAAQ,WAAW;IAClD;;;;;;OAMG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,kBAAkB,CAAC;IAI9E;;;;;;;;OAQG;IACH,MAAM,CACJ,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,8BAA8B,EACpC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,kBAAkB,CAAC;IAIjC;;;;;;;;OAQG;IACH,IAAI,CACF,KAAK,GAAE,4BAA4B,GAAG,IAAI,GAAG,SAAc,EAC3D,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,8CAA8C,EAAE,kBAAkB,CAAC;CAOnF;AAED,MAAM,MAAM,8CAA8C,GAAG,2BAA2B,CAAC,kBAAkB,CAAC,CAAC;AAE7G,MAAM,WAAW,kBAAkB;IACjC,EAAE,EAAE,MAAM,CAAC;IAEX,WAAW,EAAE,MAAM,CAAC;IAEpB,UAAU,EAAE,MAAM,CAAC;IAEnB,cAAc,EAAE,MAAM,CAAC;IAEvB,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,8BAA8B;IAC7C,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,4BAA6B,SAAQ,iCAAiC;IACrF;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAChC;AAED,MAAM,CAAC,OAAO,WAAW,mBAAmB,CAAC;IAC3C,OAAO,EACL,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,8CAA8C,IAAI,8CAA8C,EACrG,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,4BAA4B,IAAI,4BAA4B,GAClE,CAAC;CACH"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.
|
|
5
|
-
const resource_1 = require("../resource.js");
|
|
6
|
-
const
|
|
7
|
-
const
|
|
4
|
+
exports.LicenseKeyInstances = void 0;
|
|
5
|
+
const resource_1 = require("../core/resource.js");
|
|
6
|
+
const pagination_1 = require("../core/pagination.js");
|
|
7
|
+
const path_1 = require("../internal/utils/path.js");
|
|
8
8
|
class LicenseKeyInstances extends resource_1.APIResource {
|
|
9
9
|
/**
|
|
10
10
|
* @example
|
|
@@ -14,7 +14,7 @@ class LicenseKeyInstances extends resource_1.APIResource {
|
|
|
14
14
|
* ```
|
|
15
15
|
*/
|
|
16
16
|
retrieve(id, options) {
|
|
17
|
-
return this._client.get(`/license_key_instances/${id}`, options);
|
|
17
|
+
return this._client.get((0, path_1.path) `/license_key_instances/${id}`, options);
|
|
18
18
|
}
|
|
19
19
|
/**
|
|
20
20
|
* @example
|
|
@@ -26,22 +26,20 @@ class LicenseKeyInstances extends resource_1.APIResource {
|
|
|
26
26
|
* ```
|
|
27
27
|
*/
|
|
28
28
|
update(id, body, options) {
|
|
29
|
-
return this._client.patch(`/license_key_instances/${id}`, { body, ...options });
|
|
29
|
+
return this._client.patch((0, path_1.path) `/license_key_instances/${id}`, { body, ...options });
|
|
30
30
|
}
|
|
31
|
+
/**
|
|
32
|
+
* @example
|
|
33
|
+
* ```ts
|
|
34
|
+
* // Automatically fetches more pages as needed.
|
|
35
|
+
* for await (const licenseKeyInstance of client.licenseKeyInstances.list()) {
|
|
36
|
+
* // ...
|
|
37
|
+
* }
|
|
38
|
+
* ```
|
|
39
|
+
*/
|
|
31
40
|
list(query = {}, options) {
|
|
32
|
-
|
|
33
|
-
return this.list({}, query);
|
|
34
|
-
}
|
|
35
|
-
return this._client.getAPIList('/license_key_instances', LicenseKeyInstancesDefaultPageNumberPagination, {
|
|
36
|
-
query,
|
|
37
|
-
...options,
|
|
38
|
-
});
|
|
41
|
+
return this._client.getAPIList('/license_key_instances', (pagination_1.DefaultPageNumberPagination), { query, ...options });
|
|
39
42
|
}
|
|
40
43
|
}
|
|
41
44
|
exports.LicenseKeyInstances = LicenseKeyInstances;
|
|
42
|
-
class LicenseKeyInstancesDefaultPageNumberPagination extends pagination_1.DefaultPageNumberPagination {
|
|
43
|
-
}
|
|
44
|
-
exports.LicenseKeyInstancesDefaultPageNumberPagination = LicenseKeyInstancesDefaultPageNumberPagination;
|
|
45
|
-
LicenseKeyInstances.LicenseKeyInstancesDefaultPageNumberPagination =
|
|
46
|
-
LicenseKeyInstancesDefaultPageNumberPagination;
|
|
47
45
|
//# sourceMappingURL=license-key-instances.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"license-key-instances.js","sourceRoot":"","sources":["../src/resources/license-key-instances.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,
|
|
1
|
+
{"version":3,"file":"license-key-instances.js","sourceRoot":"","sources":["../src/resources/license-key-instances.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAE/C,sDAI4B;AAE5B,oDAA8C;AAE9C,MAAa,mBAAoB,SAAQ,sBAAW;IAClD;;;;;;OAMG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,0BAA0B,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACvE,CAAC;IAED;;;;;;;;OAQG;IACH,MAAM,CACJ,EAAU,EACV,IAAoC,EACpC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAA,WAAI,EAAA,0BAA0B,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtF,CAAC;IAED;;;;;;;;OAQG;IACH,IAAI,CACF,QAAyD,EAAE,EAC3D,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAC5B,wBAAwB,EACxB,CAAA,wCAA+C,CAAA,EAC/C,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CACtB,CAAC;IACJ,CAAC;CACF;AAhDD,kDAgDC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
import { APIResource } from "../resource.mjs";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
2
|
+
import { APIResource } from "../core/resource.mjs";
|
|
3
|
+
import { DefaultPageNumberPagination, } from "../core/pagination.mjs";
|
|
4
|
+
import { path } from "../internal/utils/path.mjs";
|
|
5
5
|
export class LicenseKeyInstances extends APIResource {
|
|
6
6
|
/**
|
|
7
7
|
* @example
|
|
@@ -11,7 +11,7 @@ export class LicenseKeyInstances extends APIResource {
|
|
|
11
11
|
* ```
|
|
12
12
|
*/
|
|
13
13
|
retrieve(id, options) {
|
|
14
|
-
return this._client.get(`/license_key_instances/${id}`, options);
|
|
14
|
+
return this._client.get(path `/license_key_instances/${id}`, options);
|
|
15
15
|
}
|
|
16
16
|
/**
|
|
17
17
|
* @example
|
|
@@ -23,20 +23,19 @@ export class LicenseKeyInstances extends APIResource {
|
|
|
23
23
|
* ```
|
|
24
24
|
*/
|
|
25
25
|
update(id, body, options) {
|
|
26
|
-
return this._client.patch(`/license_key_instances/${id}`, { body, ...options });
|
|
26
|
+
return this._client.patch(path `/license_key_instances/${id}`, { body, ...options });
|
|
27
27
|
}
|
|
28
|
+
/**
|
|
29
|
+
* @example
|
|
30
|
+
* ```ts
|
|
31
|
+
* // Automatically fetches more pages as needed.
|
|
32
|
+
* for await (const licenseKeyInstance of client.licenseKeyInstances.list()) {
|
|
33
|
+
* // ...
|
|
34
|
+
* }
|
|
35
|
+
* ```
|
|
36
|
+
*/
|
|
28
37
|
list(query = {}, options) {
|
|
29
|
-
|
|
30
|
-
return this.list({}, query);
|
|
31
|
-
}
|
|
32
|
-
return this._client.getAPIList('/license_key_instances', LicenseKeyInstancesDefaultPageNumberPagination, {
|
|
33
|
-
query,
|
|
34
|
-
...options,
|
|
35
|
-
});
|
|
38
|
+
return this._client.getAPIList('/license_key_instances', (DefaultPageNumberPagination), { query, ...options });
|
|
36
39
|
}
|
|
37
40
|
}
|
|
38
|
-
export class LicenseKeyInstancesDefaultPageNumberPagination extends DefaultPageNumberPagination {
|
|
39
|
-
}
|
|
40
|
-
LicenseKeyInstances.LicenseKeyInstancesDefaultPageNumberPagination =
|
|
41
|
-
LicenseKeyInstancesDefaultPageNumberPagination;
|
|
42
41
|
//# sourceMappingURL=license-key-instances.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"license-key-instances.mjs","sourceRoot":"","sources":["../src/resources/license-key-instances.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;
|
|
1
|
+
{"version":3,"file":"license-key-instances.mjs","sourceRoot":"","sources":["../src/resources/license-key-instances.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EACL,2BAA2B,GAG5B;OAEM,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,mBAAoB,SAAQ,WAAW;IAClD;;;;;;OAMG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,0BAA0B,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACvE,CAAC;IAED;;;;;;;;OAQG;IACH,MAAM,CACJ,EAAU,EACV,IAAoC,EACpC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAA,0BAA0B,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtF,CAAC;IAED;;;;;;;;OAQG;IACH,IAAI,CACF,QAAyD,EAAE,EAC3D,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAC5B,wBAAwB,EACxB,CAAA,2BAA+C,CAAA,EAC/C,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CACtB,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.mjs";
|
|
2
|
+
import { APIPromise } from "../core/api-promise.mjs";
|
|
3
|
+
import { DefaultPageNumberPagination, type DefaultPageNumberPaginationParams, PagePromise } from "../core/pagination.mjs";
|
|
4
|
+
import { RequestOptions } from "../internal/request-options.mjs";
|
|
5
|
+
export declare class LicenseKeys extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* @example
|
|
8
|
+
* ```ts
|
|
9
|
+
* const licenseKey = await client.licenseKeys.retrieve(
|
|
10
|
+
* 'lic_123',
|
|
11
|
+
* );
|
|
12
|
+
* ```
|
|
13
|
+
*/
|
|
14
|
+
retrieve(id: string, options?: RequestOptions): APIPromise<LicenseKey>;
|
|
15
|
+
/**
|
|
16
|
+
* @example
|
|
17
|
+
* ```ts
|
|
18
|
+
* const licenseKey = await client.licenseKeys.update(
|
|
19
|
+
* 'lic_123',
|
|
20
|
+
* );
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
update(id: string, body: LicenseKeyUpdateParams, options?: RequestOptions): APIPromise<LicenseKey>;
|
|
24
|
+
/**
|
|
25
|
+
* @example
|
|
26
|
+
* ```ts
|
|
27
|
+
* // Automatically fetches more pages as needed.
|
|
28
|
+
* for await (const licenseKey of client.licenseKeys.list()) {
|
|
29
|
+
* // ...
|
|
30
|
+
* }
|
|
31
|
+
* ```
|
|
32
|
+
*/
|
|
33
|
+
list(query?: LicenseKeyListParams | null | undefined, options?: RequestOptions): PagePromise<LicenseKeysDefaultPageNumberPagination, LicenseKey>;
|
|
34
|
+
}
|
|
35
|
+
export type LicenseKeysDefaultPageNumberPagination = DefaultPageNumberPagination<LicenseKey>;
|
|
36
|
+
export interface LicenseKey {
|
|
37
|
+
/**
|
|
38
|
+
* The unique identifier of the license key.
|
|
39
|
+
*/
|
|
40
|
+
id: string;
|
|
41
|
+
/**
|
|
42
|
+
* The unique identifier of the business associated with the license key.
|
|
43
|
+
*/
|
|
44
|
+
business_id: string;
|
|
45
|
+
/**
|
|
46
|
+
* The timestamp indicating when the license key was created, in UTC.
|
|
47
|
+
*/
|
|
48
|
+
created_at: string;
|
|
49
|
+
/**
|
|
50
|
+
* The unique identifier of the customer associated with the license key.
|
|
51
|
+
*/
|
|
52
|
+
customer_id: string;
|
|
53
|
+
/**
|
|
54
|
+
* The current number of instances activated for this license key.
|
|
55
|
+
*/
|
|
56
|
+
instances_count: number;
|
|
57
|
+
/**
|
|
58
|
+
* The license key string.
|
|
59
|
+
*/
|
|
60
|
+
key: string;
|
|
61
|
+
/**
|
|
62
|
+
* The unique identifier of the payment associated with the license key.
|
|
63
|
+
*/
|
|
64
|
+
payment_id: string;
|
|
65
|
+
/**
|
|
66
|
+
* The unique identifier of the product associated with the license key.
|
|
67
|
+
*/
|
|
68
|
+
product_id: string;
|
|
69
|
+
/**
|
|
70
|
+
* The current status of the license key (e.g., active, inactive, expired).
|
|
71
|
+
*/
|
|
72
|
+
status: LicenseKeyStatus;
|
|
73
|
+
/**
|
|
74
|
+
* The maximum number of activations allowed for this license key.
|
|
75
|
+
*/
|
|
76
|
+
activations_limit?: number | null;
|
|
77
|
+
/**
|
|
78
|
+
* The timestamp indicating when the license key expires, in UTC.
|
|
79
|
+
*/
|
|
80
|
+
expires_at?: string | null;
|
|
81
|
+
/**
|
|
82
|
+
* The unique identifier of the subscription associated with the license key, if
|
|
83
|
+
* any.
|
|
84
|
+
*/
|
|
85
|
+
subscription_id?: string | null;
|
|
86
|
+
}
|
|
87
|
+
export type LicenseKeyStatus = 'active' | 'expired' | 'disabled';
|
|
88
|
+
export interface LicenseKeyUpdateParams {
|
|
89
|
+
/**
|
|
90
|
+
* The updated activation limit for the license key. Use `null` to remove the
|
|
91
|
+
* limit, or omit this field to leave it unchanged.
|
|
92
|
+
*/
|
|
93
|
+
activations_limit?: number | null;
|
|
94
|
+
/**
|
|
95
|
+
* Indicates whether the license key should be disabled. A value of `true` disables
|
|
96
|
+
* the key, while `false` enables it. Omit this field to leave it unchanged.
|
|
97
|
+
*/
|
|
98
|
+
disabled?: boolean | null;
|
|
99
|
+
/**
|
|
100
|
+
* The updated expiration timestamp for the license key in UTC. Use `null` to
|
|
101
|
+
* remove the expiration date, or omit this field to leave it unchanged.
|
|
102
|
+
*/
|
|
103
|
+
expires_at?: string | null;
|
|
104
|
+
}
|
|
105
|
+
export interface LicenseKeyListParams extends DefaultPageNumberPaginationParams {
|
|
106
|
+
/**
|
|
107
|
+
* Filter by customer ID
|
|
108
|
+
*/
|
|
109
|
+
customer_id?: string;
|
|
110
|
+
/**
|
|
111
|
+
* Filter by product ID
|
|
112
|
+
*/
|
|
113
|
+
product_id?: string;
|
|
114
|
+
/**
|
|
115
|
+
* Filter by license key status
|
|
116
|
+
*/
|
|
117
|
+
status?: 'active' | 'expired' | 'disabled';
|
|
118
|
+
}
|
|
119
|
+
export declare namespace LicenseKeys {
|
|
120
|
+
export { type LicenseKey as LicenseKey, type LicenseKeyStatus as LicenseKeyStatus, type LicenseKeysDefaultPageNumberPagination as LicenseKeysDefaultPageNumberPagination, type LicenseKeyUpdateParams as LicenseKeyUpdateParams, type LicenseKeyListParams as LicenseKeyListParams, };
|
|
121
|
+
}
|
|
122
|
+
//# sourceMappingURL=license-keys.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"license-keys.d.mts","sourceRoot":"","sources":["../src/resources/license-keys.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EACL,2BAA2B,EAC3B,KAAK,iCAAiC,EACtC,WAAW,EACZ;OACM,EAAE,cAAc,EAAE;AAGzB,qBAAa,WAAY,SAAQ,WAAW;IAC1C;;;;;;;OAOG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,UAAU,CAAC;IAItE;;;;;;;OAOG;IACH,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,sBAAsB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,UAAU,CAAC;IAIlG;;;;;;;;OAQG;IACH,IAAI,CACF,KAAK,GAAE,oBAAoB,GAAG,IAAI,GAAG,SAAc,EACnD,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,sCAAsC,EAAE,UAAU,CAAC;CAMnE;AAED,MAAM,MAAM,sCAAsC,GAAG,2BAA2B,CAAC,UAAU,CAAC,CAAC;AAE7F,MAAM,WAAW,UAAU;IACzB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,eAAe,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IAEZ;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,MAAM,EAAE,gBAAgB,CAAC;IAEzB;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAElC;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE3B;;;OAGG;IACH,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACjC;AAED,MAAM,MAAM,gBAAgB,GAAG,QAAQ,GAAG,SAAS,GAAG,UAAU,CAAC;AAEjE,MAAM,WAAW,sBAAsB;IACrC;;;OAGG;IACH,iBAAiB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAElC;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IAE1B;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC5B;AAED,MAAM,WAAW,oBAAqB,SAAQ,iCAAiC;IAC7E;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,MAAM,CAAC,EAAE,QAAQ,GAAG,SAAS,GAAG,UAAU,CAAC;CAC5C;AAED,MAAM,CAAC,OAAO,WAAW,WAAW,CAAC;IACnC,OAAO,EACL,KAAK,UAAU,IAAI,UAAU,EAC7B,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,sCAAsC,IAAI,sCAAsC,EACrF,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,oBAAoB,IAAI,oBAAoB,GAClD,CAAC;CACH"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { APIResource } from "../resource.js";
|
|
2
|
-
import
|
|
3
|
-
import { DefaultPageNumberPagination, type DefaultPageNumberPaginationParams } from "../pagination.js";
|
|
1
|
+
import { APIResource } from "../core/resource.js";
|
|
2
|
+
import { APIPromise } from "../core/api-promise.js";
|
|
3
|
+
import { DefaultPageNumberPagination, type DefaultPageNumberPaginationParams, PagePromise } from "../core/pagination.js";
|
|
4
|
+
import { RequestOptions } from "../internal/request-options.js";
|
|
4
5
|
export declare class LicenseKeys extends APIResource {
|
|
5
6
|
/**
|
|
6
7
|
* @example
|
|
@@ -10,7 +11,7 @@ export declare class LicenseKeys extends APIResource {
|
|
|
10
11
|
* );
|
|
11
12
|
* ```
|
|
12
13
|
*/
|
|
13
|
-
retrieve(id: string, options?:
|
|
14
|
+
retrieve(id: string, options?: RequestOptions): APIPromise<LicenseKey>;
|
|
14
15
|
/**
|
|
15
16
|
* @example
|
|
16
17
|
* ```ts
|
|
@@ -19,7 +20,7 @@ export declare class LicenseKeys extends APIResource {
|
|
|
19
20
|
* );
|
|
20
21
|
* ```
|
|
21
22
|
*/
|
|
22
|
-
update(id: string, body: LicenseKeyUpdateParams, options?:
|
|
23
|
+
update(id: string, body: LicenseKeyUpdateParams, options?: RequestOptions): APIPromise<LicenseKey>;
|
|
23
24
|
/**
|
|
24
25
|
* @example
|
|
25
26
|
* ```ts
|
|
@@ -29,11 +30,9 @@ export declare class LicenseKeys extends APIResource {
|
|
|
29
30
|
* }
|
|
30
31
|
* ```
|
|
31
32
|
*/
|
|
32
|
-
list(query?: LicenseKeyListParams, options?:
|
|
33
|
-
list(options?: Core.RequestOptions): Core.PagePromise<LicenseKeysDefaultPageNumberPagination, LicenseKey>;
|
|
34
|
-
}
|
|
35
|
-
export declare class LicenseKeysDefaultPageNumberPagination extends DefaultPageNumberPagination<LicenseKey> {
|
|
33
|
+
list(query?: LicenseKeyListParams | null | undefined, options?: RequestOptions): PagePromise<LicenseKeysDefaultPageNumberPagination, LicenseKey>;
|
|
36
34
|
}
|
|
35
|
+
export type LicenseKeysDefaultPageNumberPagination = DefaultPageNumberPagination<LicenseKey>;
|
|
37
36
|
export interface LicenseKey {
|
|
38
37
|
/**
|
|
39
38
|
* The unique identifier of the license key.
|
|
@@ -118,6 +117,6 @@ export interface LicenseKeyListParams extends DefaultPageNumberPaginationParams
|
|
|
118
117
|
status?: 'active' | 'expired' | 'disabled';
|
|
119
118
|
}
|
|
120
119
|
export declare namespace LicenseKeys {
|
|
121
|
-
export { type LicenseKey as LicenseKey, type LicenseKeyStatus as LicenseKeyStatus, LicenseKeysDefaultPageNumberPagination as LicenseKeysDefaultPageNumberPagination, type LicenseKeyUpdateParams as LicenseKeyUpdateParams, type LicenseKeyListParams as LicenseKeyListParams, };
|
|
120
|
+
export { type LicenseKey as LicenseKey, type LicenseKeyStatus as LicenseKeyStatus, type LicenseKeysDefaultPageNumberPagination as LicenseKeysDefaultPageNumberPagination, type LicenseKeyUpdateParams as LicenseKeyUpdateParams, type LicenseKeyListParams as LicenseKeyListParams, };
|
|
122
121
|
}
|
|
123
122
|
//# sourceMappingURL=license-keys.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"license-keys.d.ts","sourceRoot":"","sources":["../src/resources/license-keys.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"license-keys.d.ts","sourceRoot":"","sources":["../src/resources/license-keys.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EACL,2BAA2B,EAC3B,KAAK,iCAAiC,EACtC,WAAW,EACZ;OACM,EAAE,cAAc,EAAE;AAGzB,qBAAa,WAAY,SAAQ,WAAW;IAC1C;;;;;;;OAOG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,UAAU,CAAC;IAItE;;;;;;;OAOG;IACH,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,sBAAsB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,UAAU,CAAC;IAIlG;;;;;;;;OAQG;IACH,IAAI,CACF,KAAK,GAAE,oBAAoB,GAAG,IAAI,GAAG,SAAc,EACnD,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,sCAAsC,EAAE,UAAU,CAAC;CAMnE;AAED,MAAM,MAAM,sCAAsC,GAAG,2BAA2B,CAAC,UAAU,CAAC,CAAC;AAE7F,MAAM,WAAW,UAAU;IACzB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,eAAe,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IAEZ;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,MAAM,EAAE,gBAAgB,CAAC;IAEzB;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAElC;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE3B;;;OAGG;IACH,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACjC;AAED,MAAM,MAAM,gBAAgB,GAAG,QAAQ,GAAG,SAAS,GAAG,UAAU,CAAC;AAEjE,MAAM,WAAW,sBAAsB;IACrC;;;OAGG;IACH,iBAAiB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAElC;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IAE1B;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC5B;AAED,MAAM,WAAW,oBAAqB,SAAQ,iCAAiC;IAC7E;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,MAAM,CAAC,EAAE,QAAQ,GAAG,SAAS,GAAG,UAAU,CAAC;CAC5C;AAED,MAAM,CAAC,OAAO,WAAW,WAAW,CAAC;IACnC,OAAO,EACL,KAAK,UAAU,IAAI,UAAU,EAC7B,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,sCAAsC,IAAI,sCAAsC,EACrF,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,oBAAoB,IAAI,oBAAoB,GAClD,CAAC;CACH"}
|