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
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.mjs";
|
|
2
|
+
import * as PaymentsAPI from "./payments.mjs";
|
|
3
|
+
import { APIPromise } from "../core/api-promise.mjs";
|
|
4
|
+
import { DefaultPageNumberPagination, type DefaultPageNumberPaginationParams, PagePromise } from "../core/pagination.mjs";
|
|
5
|
+
import { RequestOptions } from "../internal/request-options.mjs";
|
|
6
|
+
export declare class Disputes extends APIResource {
|
|
7
|
+
retrieve(disputeID: string, options?: RequestOptions): APIPromise<GetDispute>;
|
|
8
|
+
list(query?: DisputeListParams | null | undefined, options?: RequestOptions): PagePromise<DisputeListResponsesDefaultPageNumberPagination, DisputeListResponse>;
|
|
9
|
+
}
|
|
10
|
+
export type DisputeListResponsesDefaultPageNumberPagination = DefaultPageNumberPagination<DisputeListResponse>;
|
|
11
|
+
export interface Dispute {
|
|
12
|
+
/**
|
|
13
|
+
* The amount involved in the dispute, represented as a string to accommodate
|
|
14
|
+
* precision.
|
|
15
|
+
*/
|
|
16
|
+
amount: string;
|
|
17
|
+
/**
|
|
18
|
+
* The unique identifier of the business involved in the dispute.
|
|
19
|
+
*/
|
|
20
|
+
business_id: string;
|
|
21
|
+
/**
|
|
22
|
+
* The timestamp of when the dispute was created, in UTC.
|
|
23
|
+
*/
|
|
24
|
+
created_at: string;
|
|
25
|
+
/**
|
|
26
|
+
* The currency of the disputed amount, represented as an ISO 4217 currency code.
|
|
27
|
+
*/
|
|
28
|
+
currency: string;
|
|
29
|
+
/**
|
|
30
|
+
* The unique identifier of the dispute.
|
|
31
|
+
*/
|
|
32
|
+
dispute_id: string;
|
|
33
|
+
/**
|
|
34
|
+
* The current stage of the dispute process.
|
|
35
|
+
*/
|
|
36
|
+
dispute_stage: DisputeStage;
|
|
37
|
+
/**
|
|
38
|
+
* The current status of the dispute.
|
|
39
|
+
*/
|
|
40
|
+
dispute_status: DisputeStatus;
|
|
41
|
+
/**
|
|
42
|
+
* The unique identifier of the payment associated with the dispute.
|
|
43
|
+
*/
|
|
44
|
+
payment_id: string;
|
|
45
|
+
/**
|
|
46
|
+
* Remarks
|
|
47
|
+
*/
|
|
48
|
+
remarks?: string | null;
|
|
49
|
+
}
|
|
50
|
+
export type DisputeStage = 'pre_dispute' | 'dispute' | 'pre_arbitration';
|
|
51
|
+
export type DisputeStatus = 'dispute_opened' | 'dispute_expired' | 'dispute_accepted' | 'dispute_cancelled' | 'dispute_challenged' | 'dispute_won' | 'dispute_lost';
|
|
52
|
+
export interface GetDispute {
|
|
53
|
+
/**
|
|
54
|
+
* The amount involved in the dispute, represented as a string to accommodate
|
|
55
|
+
* precision.
|
|
56
|
+
*/
|
|
57
|
+
amount: string;
|
|
58
|
+
/**
|
|
59
|
+
* The unique identifier of the business involved in the dispute.
|
|
60
|
+
*/
|
|
61
|
+
business_id: string;
|
|
62
|
+
/**
|
|
63
|
+
* The timestamp of when the dispute was created, in UTC.
|
|
64
|
+
*/
|
|
65
|
+
created_at: string;
|
|
66
|
+
/**
|
|
67
|
+
* The currency of the disputed amount, represented as an ISO 4217 currency code.
|
|
68
|
+
*/
|
|
69
|
+
currency: string;
|
|
70
|
+
/**
|
|
71
|
+
* The customer who filed the dispute
|
|
72
|
+
*/
|
|
73
|
+
customer: PaymentsAPI.CustomerLimitedDetails;
|
|
74
|
+
/**
|
|
75
|
+
* The unique identifier of the dispute.
|
|
76
|
+
*/
|
|
77
|
+
dispute_id: string;
|
|
78
|
+
/**
|
|
79
|
+
* The current stage of the dispute process.
|
|
80
|
+
*/
|
|
81
|
+
dispute_stage: DisputeStage;
|
|
82
|
+
/**
|
|
83
|
+
* The current status of the dispute.
|
|
84
|
+
*/
|
|
85
|
+
dispute_status: DisputeStatus;
|
|
86
|
+
/**
|
|
87
|
+
* The unique identifier of the payment associated with the dispute.
|
|
88
|
+
*/
|
|
89
|
+
payment_id: string;
|
|
90
|
+
/**
|
|
91
|
+
* Reason for the dispute
|
|
92
|
+
*/
|
|
93
|
+
reason?: string | null;
|
|
94
|
+
/**
|
|
95
|
+
* Remarks
|
|
96
|
+
*/
|
|
97
|
+
remarks?: string | null;
|
|
98
|
+
}
|
|
99
|
+
export interface DisputeListResponse {
|
|
100
|
+
/**
|
|
101
|
+
* The amount involved in the dispute, represented as a string to accommodate
|
|
102
|
+
* precision.
|
|
103
|
+
*/
|
|
104
|
+
amount: string;
|
|
105
|
+
/**
|
|
106
|
+
* The unique identifier of the business involved in the dispute.
|
|
107
|
+
*/
|
|
108
|
+
business_id: string;
|
|
109
|
+
/**
|
|
110
|
+
* The timestamp of when the dispute was created, in UTC.
|
|
111
|
+
*/
|
|
112
|
+
created_at: string;
|
|
113
|
+
/**
|
|
114
|
+
* The currency of the disputed amount, represented as an ISO 4217 currency code.
|
|
115
|
+
*/
|
|
116
|
+
currency: string;
|
|
117
|
+
/**
|
|
118
|
+
* The unique identifier of the dispute.
|
|
119
|
+
*/
|
|
120
|
+
dispute_id: string;
|
|
121
|
+
/**
|
|
122
|
+
* The current stage of the dispute process.
|
|
123
|
+
*/
|
|
124
|
+
dispute_stage: DisputeStage;
|
|
125
|
+
/**
|
|
126
|
+
* The current status of the dispute.
|
|
127
|
+
*/
|
|
128
|
+
dispute_status: DisputeStatus;
|
|
129
|
+
/**
|
|
130
|
+
* The unique identifier of the payment associated with the dispute.
|
|
131
|
+
*/
|
|
132
|
+
payment_id: string;
|
|
133
|
+
}
|
|
134
|
+
export interface DisputeListParams extends DefaultPageNumberPaginationParams {
|
|
135
|
+
/**
|
|
136
|
+
* Get events after this created time
|
|
137
|
+
*/
|
|
138
|
+
created_at_gte?: string;
|
|
139
|
+
/**
|
|
140
|
+
* Get events created before this time
|
|
141
|
+
*/
|
|
142
|
+
created_at_lte?: string;
|
|
143
|
+
/**
|
|
144
|
+
* Filter by customer_id
|
|
145
|
+
*/
|
|
146
|
+
customer_id?: string;
|
|
147
|
+
/**
|
|
148
|
+
* Filter by dispute stage
|
|
149
|
+
*/
|
|
150
|
+
dispute_stage?: 'pre_dispute' | 'dispute' | 'pre_arbitration';
|
|
151
|
+
/**
|
|
152
|
+
* Filter by dispute status
|
|
153
|
+
*/
|
|
154
|
+
dispute_status?: 'dispute_opened' | 'dispute_expired' | 'dispute_accepted' | 'dispute_cancelled' | 'dispute_challenged' | 'dispute_won' | 'dispute_lost';
|
|
155
|
+
}
|
|
156
|
+
export declare namespace Disputes {
|
|
157
|
+
export { type Dispute as Dispute, type DisputeStage as DisputeStage, type DisputeStatus as DisputeStatus, type GetDispute as GetDispute, type DisputeListResponse as DisputeListResponse, type DisputeListResponsesDefaultPageNumberPagination as DisputeListResponsesDefaultPageNumberPagination, type DisputeListParams as DisputeListParams, };
|
|
158
|
+
}
|
|
159
|
+
//# sourceMappingURL=disputes.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"disputes.d.mts","sourceRoot":"","sources":["../src/resources/disputes.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,WAAW;OAChB,EAAE,UAAU,EAAE;OACd,EACL,2BAA2B,EAC3B,KAAK,iCAAiC,EACtC,WAAW,EACZ;OACM,EAAE,cAAc,EAAE;AAGzB,qBAAa,QAAS,SAAQ,WAAW;IACvC,QAAQ,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,UAAU,CAAC;IAI7E,IAAI,CACF,KAAK,GAAE,iBAAiB,GAAG,IAAI,GAAG,SAAc,EAChD,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,+CAA+C,EAAE,mBAAmB,CAAC;CAMrF;AAED,MAAM,MAAM,+CAA+C,GACzD,2BAA2B,CAAC,mBAAmB,CAAC,CAAC;AAEnD,MAAM,WAAW,OAAO;IACtB;;;OAGG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,aAAa,EAAE,YAAY,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Aa,CAAC;IAE9B;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,iBAAkB,SAAQ,iCAAiC;IAC1E;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,aAAa,CAAC,EAAE,aAAa,GAAG,SAAS,GAAG,iBAAiB,CAAC;IAE9D;;OAEG;IACH,cAAc,CAAC,EACX,gBAAgB,GAChB,iBAAiB,GACjB,kBAAkB,GAClB,mBAAmB,GACnB,oBAAoB,GACpB,aAAa,GACb,cAAc,CAAC;CACpB;AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EACL,KAAK,OAAO,IAAI,OAAO,EACvB,KAAK,YAAY,IAAI,YAAY,EACjC,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,UAAU,IAAI,UAAU,EAC7B,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,+CAA+C,IAAI,+CAA+C,EACvG,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;CACH"}
|
package/resources/disputes.d.ts
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
import { APIResource } from "../resource.js";
|
|
2
|
-
import * as Core from "../core.js";
|
|
1
|
+
import { APIResource } from "../core/resource.js";
|
|
3
2
|
import * as PaymentsAPI from "./payments.js";
|
|
4
|
-
import {
|
|
3
|
+
import { APIPromise } from "../core/api-promise.js";
|
|
4
|
+
import { DefaultPageNumberPagination, type DefaultPageNumberPaginationParams, PagePromise } from "../core/pagination.js";
|
|
5
|
+
import { RequestOptions } from "../internal/request-options.js";
|
|
5
6
|
export declare class Disputes extends APIResource {
|
|
6
|
-
retrieve(
|
|
7
|
-
list(query?: DisputeListParams, options?:
|
|
8
|
-
list(options?: Core.RequestOptions): Core.PagePromise<DisputeListResponsesDefaultPageNumberPagination, DisputeListResponse>;
|
|
9
|
-
}
|
|
10
|
-
export declare class DisputeListResponsesDefaultPageNumberPagination extends DefaultPageNumberPagination<DisputeListResponse> {
|
|
7
|
+
retrieve(disputeID: string, options?: RequestOptions): APIPromise<GetDispute>;
|
|
8
|
+
list(query?: DisputeListParams | null | undefined, options?: RequestOptions): PagePromise<DisputeListResponsesDefaultPageNumberPagination, DisputeListResponse>;
|
|
11
9
|
}
|
|
10
|
+
export type DisputeListResponsesDefaultPageNumberPagination = DefaultPageNumberPagination<DisputeListResponse>;
|
|
12
11
|
export interface Dispute {
|
|
13
12
|
/**
|
|
14
13
|
* The amount involved in the dispute, represented as a string to accommodate
|
|
@@ -155,6 +154,6 @@ export interface DisputeListParams extends DefaultPageNumberPaginationParams {
|
|
|
155
154
|
dispute_status?: 'dispute_opened' | 'dispute_expired' | 'dispute_accepted' | 'dispute_cancelled' | 'dispute_challenged' | 'dispute_won' | 'dispute_lost';
|
|
156
155
|
}
|
|
157
156
|
export declare namespace Disputes {
|
|
158
|
-
export { type Dispute as Dispute, type DisputeStage as DisputeStage, type DisputeStatus as DisputeStatus, type GetDispute as GetDispute, type DisputeListResponse as DisputeListResponse, DisputeListResponsesDefaultPageNumberPagination as DisputeListResponsesDefaultPageNumberPagination, type DisputeListParams as DisputeListParams, };
|
|
157
|
+
export { type Dispute as Dispute, type DisputeStage as DisputeStage, type DisputeStatus as DisputeStatus, type GetDispute as GetDispute, type DisputeListResponse as DisputeListResponse, type DisputeListResponsesDefaultPageNumberPagination as DisputeListResponsesDefaultPageNumberPagination, type DisputeListParams as DisputeListParams, };
|
|
159
158
|
}
|
|
160
159
|
//# sourceMappingURL=disputes.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"disputes.d.ts","sourceRoot":"","sources":["../src/resources/disputes.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"disputes.d.ts","sourceRoot":"","sources":["../src/resources/disputes.ts"],"names":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pB;AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EACL,KAAK,OAAO,IAAI,OAAO,EACvB,KAAK,YAAY,IAAI,YAAY,EACjC,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,UAAU,IAAI,UAAU,EAC7B,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,+CAA+C,IAAI,+CAA+C,EACvG,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;CACH"}
|
package/resources/disputes.js
CHANGED
|
@@ -1,27 +1,20 @@
|
|
|
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.Disputes = 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 Disputes extends resource_1.APIResource {
|
|
9
|
-
retrieve(
|
|
10
|
-
return this._client.get(`/disputes/${
|
|
9
|
+
retrieve(disputeID, options) {
|
|
10
|
+
return this._client.get((0, path_1.path) `/disputes/${disputeID}`, options);
|
|
11
11
|
}
|
|
12
12
|
list(query = {}, options) {
|
|
13
|
-
|
|
14
|
-
return this.list({}, query);
|
|
15
|
-
}
|
|
16
|
-
return this._client.getAPIList('/disputes', DisputeListResponsesDefaultPageNumberPagination, {
|
|
13
|
+
return this._client.getAPIList('/disputes', (pagination_1.DefaultPageNumberPagination), {
|
|
17
14
|
query,
|
|
18
15
|
...options,
|
|
19
16
|
});
|
|
20
17
|
}
|
|
21
18
|
}
|
|
22
19
|
exports.Disputes = Disputes;
|
|
23
|
-
class DisputeListResponsesDefaultPageNumberPagination extends pagination_1.DefaultPageNumberPagination {
|
|
24
|
-
}
|
|
25
|
-
exports.DisputeListResponsesDefaultPageNumberPagination = DisputeListResponsesDefaultPageNumberPagination;
|
|
26
|
-
Disputes.DisputeListResponsesDefaultPageNumberPagination = DisputeListResponsesDefaultPageNumberPagination;
|
|
27
20
|
//# sourceMappingURL=disputes.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"disputes.js","sourceRoot":"","sources":["../src/resources/disputes.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,
|
|
1
|
+
{"version":3,"file":"disputes.js","sourceRoot":"","sources":["../src/resources/disputes.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAG/C,sDAI4B;AAE5B,oDAA8C;AAE9C,MAAa,QAAS,SAAQ,sBAAW;IACvC,QAAQ,CAAC,SAAiB,EAAE,OAAwB;QAClD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,aAAa,SAAS,EAAE,EAAE,OAAO,CAAC,CAAC;IACjE,CAAC;IAED,IAAI,CACF,QAA8C,EAAE,EAChD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,WAAW,EAAE,CAAA,wCAAgD,CAAA,EAAE;YAC5F,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;CACF;AAdD,4BAcC"}
|
package/resources/disputes.mjs
CHANGED
|
@@ -1,22 +1,16 @@
|
|
|
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 Disputes extends APIResource {
|
|
6
|
-
retrieve(
|
|
7
|
-
return this._client.get(`/disputes/${
|
|
6
|
+
retrieve(disputeID, options) {
|
|
7
|
+
return this._client.get(path `/disputes/${disputeID}`, options);
|
|
8
8
|
}
|
|
9
9
|
list(query = {}, options) {
|
|
10
|
-
|
|
11
|
-
return this.list({}, query);
|
|
12
|
-
}
|
|
13
|
-
return this._client.getAPIList('/disputes', DisputeListResponsesDefaultPageNumberPagination, {
|
|
10
|
+
return this._client.getAPIList('/disputes', (DefaultPageNumberPagination), {
|
|
14
11
|
query,
|
|
15
12
|
...options,
|
|
16
13
|
});
|
|
17
14
|
}
|
|
18
15
|
}
|
|
19
|
-
export class DisputeListResponsesDefaultPageNumberPagination extends DefaultPageNumberPagination {
|
|
20
|
-
}
|
|
21
|
-
Disputes.DisputeListResponsesDefaultPageNumberPagination = DisputeListResponsesDefaultPageNumberPagination;
|
|
22
16
|
//# sourceMappingURL=disputes.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"disputes.mjs","sourceRoot":"","sources":["../src/resources/disputes.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;
|
|
1
|
+
{"version":3,"file":"disputes.mjs","sourceRoot":"","sources":["../src/resources/disputes.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EACL,2BAA2B,GAG5B;OAEM,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,aAAa,SAAS,EAAE,EAAE,OAAO,CAAC,CAAC;IACjE,CAAC;IAED,IAAI,CACF,QAA8C,EAAE,EAChD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,WAAW,EAAE,CAAA,2BAAgD,CAAA,EAAE;YAC5F,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export { Addons, type AddonResponse, type AddonUpdateImagesResponse, type AddonCreateParams, type AddonUpdateParams, type AddonListParams, type AddonResponsesDefaultPageNumberPagination, } from "./addons.mjs";
|
|
2
|
+
export { Brands, type Brand, type BrandListResponse, type BrandUpdateImagesResponse, type BrandCreateParams, type BrandUpdateParams, } from "./brands.mjs";
|
|
3
|
+
export { CheckoutSessions, type CheckoutSessionRequest, type CheckoutSessionResponse, type CheckoutSessionCreateParams, } from "./checkout-sessions.mjs";
|
|
4
|
+
export { Customers, type Customer, type CustomerPortalSession, type CustomerCreateParams, type CustomerUpdateParams, type CustomerListParams, type CustomersDefaultPageNumberPagination, } from "./customers/customers.mjs";
|
|
5
|
+
export { Discounts, type Discount, type DiscountType, type DiscountCreateParams, type DiscountUpdateParams, type DiscountListParams, type DiscountsDefaultPageNumberPagination, } from "./discounts.mjs";
|
|
6
|
+
export { Disputes, type Dispute, type DisputeStage, type DisputeStatus, type GetDispute, type DisputeListResponse, type DisputeListParams, type DisputeListResponsesDefaultPageNumberPagination, } from "./disputes.mjs";
|
|
7
|
+
export { Invoices } from "./invoices/invoices.mjs";
|
|
8
|
+
export { LicenseKeyInstances, type LicenseKeyInstance, type LicenseKeyInstanceUpdateParams, type LicenseKeyInstanceListParams, type LicenseKeyInstancesDefaultPageNumberPagination, } from "./license-key-instances.mjs";
|
|
9
|
+
export { LicenseKeys, type LicenseKey, type LicenseKeyStatus, type LicenseKeyUpdateParams, type LicenseKeyListParams, type LicenseKeysDefaultPageNumberPagination, } from "./license-keys.mjs";
|
|
10
|
+
export { Licenses, type LicenseActivateResponse, type LicenseValidateResponse, type LicenseActivateParams, type LicenseDeactivateParams, type LicenseValidateParams, } from "./licenses.mjs";
|
|
11
|
+
export { Meters, type Meter, type MeterAggregation, type MeterFilter, type MeterCreateParams, type MeterListParams, type MetersDefaultPageNumberPagination, } from "./meters.mjs";
|
|
12
|
+
export { Misc, type CountryCode, type Currency, type TaxCategory, type MiscListSupportedCountriesResponse, } from "./misc.mjs";
|
|
13
|
+
export { Payments, type AttachExistingCustomer, type BillingAddress, type CreateNewCustomer, type CustomerLimitedDetails, type CustomerRequest, type IntentStatus, type NewCustomer, type OneTimeProductCartItem, type Payment, type PaymentMethodTypes, type PaymentCreateResponse, type PaymentListResponse, type PaymentRetrieveLineItemsResponse, type PaymentCreateParams, type PaymentListParams, type PaymentListResponsesDefaultPageNumberPagination, } from "./payments.mjs";
|
|
14
|
+
export { Payouts, type PayoutListResponse, type PayoutListParams, type PayoutListResponsesDefaultPageNumberPagination, } from "./payouts.mjs";
|
|
15
|
+
export { Products, type AddMeterToPrice, type LicenseKeyDuration, type Price, type Product, type ProductListResponse, type ProductUpdateFilesResponse, type ProductCreateParams, type ProductUpdateParams, type ProductListParams, type ProductUpdateFilesParams, type ProductListResponsesDefaultPageNumberPagination, } from "./products/products.mjs";
|
|
16
|
+
export { Refunds, type Refund, type RefundStatus, type RefundListResponse, type RefundCreateParams, type RefundListParams, type RefundListResponsesDefaultPageNumberPagination, } from "./refunds.mjs";
|
|
17
|
+
export { Subscriptions, type AddonCartResponseItem, type AttachAddon, type OnDemandSubscription, type Subscription, type SubscriptionStatus, type TimeInterval, type SubscriptionCreateResponse, type SubscriptionListResponse, type SubscriptionChargeResponse, type SubscriptionRetrieveUsageHistoryResponse, type SubscriptionCreateParams, type SubscriptionUpdateParams, type SubscriptionListParams, type SubscriptionChangePlanParams, type SubscriptionChargeParams, type SubscriptionRetrieveUsageHistoryParams, type SubscriptionListResponsesDefaultPageNumberPagination, type SubscriptionRetrieveUsageHistoryResponsesDefaultPageNumberPagination, } from "./subscriptions.mjs";
|
|
18
|
+
export { UsageEvents, type Event, type EventInput, type UsageEventIngestResponse, type UsageEventListParams, type UsageEventIngestParams, type EventsDefaultPageNumberPagination, } from "./usage-events.mjs";
|
|
19
|
+
export { WebhookEvents, type WebhookEventType, type WebhookPayload } from "./webhook-events.mjs";
|
|
20
|
+
export { Webhooks, type WebhookDetails, type WebhookRetrieveSecretResponse, type WebhookCreateParams, type WebhookUpdateParams, type WebhookListParams, type WebhookDetailsCursorPagePagination, } from "./webhooks/webhooks.mjs";
|
|
21
|
+
//# sourceMappingURL=index.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"OAEO,EACL,MAAM,EACN,KAAK,aAAa,EAClB,KAAK,yBAAyB,EAC9B,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,yCAAyC,GAC/C;OACM,EACL,MAAM,EACN,KAAK,KAAK,EACV,KAAK,iBAAiB,EACtB,KAAK,yBAAyB,EAC9B,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,GACvB;OACM,EACL,gBAAgB,EAChB,KAAK,sBAAsB,EAC3B,KAAK,uBAAuB,EAC5B,KAAK,2BAA2B,GACjC;OACM,EACL,SAAS,EACT,KAAK,QAAQ,EACb,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,oCAAoC,GAC1C;OACM,EACL,SAAS,EACT,KAAK,QAAQ,EACb,KAAK,YAAY,EACjB,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,oCAAoC,GAC1C;OACM,EACL,QAAQ,EACR,KAAK,OAAO,EACZ,KAAK,YAAY,EACjB,KAAK,aAAa,EAClB,KAAK,UAAU,EACf,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,+CAA+C,GACrD;OACM,EAAE,QAAQ,EAAE;OACZ,EACL,mBAAmB,EACnB,KAAK,kBAAkB,EACvB,KAAK,8BAA8B,EACnC,KAAK,4BAA4B,EACjC,KAAK,8CAA8C,GACpD;OACM,EACL,WAAW,EACX,KAAK,UAAU,EACf,KAAK,gBAAgB,EACrB,KAAK,sBAAsB,EAC3B,KAAK,oBAAo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B,KAAK,WAAW,EAChB,KAAK,oBAAoB,EACzB,KAAK,YAAY,EACjB,KAAK,kBAAkB,EACvB,KAAK,YAAY,EACjB,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,EAC7B,KAAK,0BAA0B,EAC/B,KAAK,wCAAwC,EAC7C,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,4BAA4B,EACjC,KAAK,wBAAwB,EAC7B,KAAK,sCAAsC,EAC3C,KAAK,oDAAoD,EACzD,KAAK,oEAAoE,GAC1E;OACM,EACL,WAAW,EACX,KAAK,KAAK,EACV,KAAK,UAAU,EACf,KAAK,wBAAwB,EAC7B,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,iCAAiC,GACvC;OACM,EAAE,aAAa,EAAE,KAAK,gBAAgB,EAAE,KAAK,cAAc,EAAE;OAC7D,EACL,QAAQ,EACR,KAAK,cAAc,EACnB,KAAK,6BAA6B,EAClC,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,kCAAkC,GACxC"}
|
package/resources/index.d.ts
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { Addons, type AddonResponse, type AddonUpdateImagesResponse, type AddonCreateParams, type AddonUpdateParams, type AddonListParams, type AddonResponsesDefaultPageNumberPagination, } from "./addons.js";
|
|
2
2
|
export { Brands, type Brand, type BrandListResponse, type BrandUpdateImagesResponse, type BrandCreateParams, type BrandUpdateParams, } from "./brands.js";
|
|
3
3
|
export { CheckoutSessions, type CheckoutSessionRequest, type CheckoutSessionResponse, type CheckoutSessionCreateParams, } from "./checkout-sessions.js";
|
|
4
|
-
export {
|
|
5
|
-
export {
|
|
6
|
-
export {
|
|
7
|
-
export { EventsDefaultPageNumberPagination, UsageEvents, type Event, type EventInput, type UsageEventIngestResponse, type UsageEventListParams, type UsageEventIngestParams, } from "./usage-events.js";
|
|
4
|
+
export { Customers, type Customer, type CustomerPortalSession, type CustomerCreateParams, type CustomerUpdateParams, type CustomerListParams, type CustomersDefaultPageNumberPagination, } from "./customers/customers.js";
|
|
5
|
+
export { Discounts, type Discount, type DiscountType, type DiscountCreateParams, type DiscountUpdateParams, type DiscountListParams, type DiscountsDefaultPageNumberPagination, } from "./discounts.js";
|
|
6
|
+
export { Disputes, type Dispute, type DisputeStage, type DisputeStatus, type GetDispute, type DisputeListResponse, type DisputeListParams, type DisputeListResponsesDefaultPageNumberPagination, } from "./disputes.js";
|
|
8
7
|
export { Invoices } from "./invoices/invoices.js";
|
|
9
|
-
export {
|
|
10
|
-
export {
|
|
8
|
+
export { LicenseKeyInstances, type LicenseKeyInstance, type LicenseKeyInstanceUpdateParams, type LicenseKeyInstanceListParams, type LicenseKeyInstancesDefaultPageNumberPagination, } from "./license-key-instances.js";
|
|
9
|
+
export { LicenseKeys, type LicenseKey, type LicenseKeyStatus, type LicenseKeyUpdateParams, type LicenseKeyListParams, type LicenseKeysDefaultPageNumberPagination, } from "./license-keys.js";
|
|
11
10
|
export { Licenses, type LicenseActivateResponse, type LicenseValidateResponse, type LicenseActivateParams, type LicenseDeactivateParams, type LicenseValidateParams, } from "./licenses.js";
|
|
12
|
-
export {
|
|
11
|
+
export { Meters, type Meter, type MeterAggregation, type MeterFilter, type MeterCreateParams, type MeterListParams, type MetersDefaultPageNumberPagination, } from "./meters.js";
|
|
13
12
|
export { Misc, type CountryCode, type Currency, type TaxCategory, type MiscListSupportedCountriesResponse, } from "./misc.js";
|
|
14
|
-
export {
|
|
15
|
-
export {
|
|
16
|
-
export {
|
|
17
|
-
export {
|
|
18
|
-
export {
|
|
19
|
-
export {
|
|
13
|
+
export { Payments, type AttachExistingCustomer, type BillingAddress, type CreateNewCustomer, type CustomerLimitedDetails, type CustomerRequest, type IntentStatus, type NewCustomer, type OneTimeProductCartItem, type Payment, type PaymentMethodTypes, type PaymentCreateResponse, type PaymentListResponse, type PaymentRetrieveLineItemsResponse, type PaymentCreateParams, type PaymentListParams, type PaymentListResponsesDefaultPageNumberPagination, } from "./payments.js";
|
|
14
|
+
export { Payouts, type PayoutListResponse, type PayoutListParams, type PayoutListResponsesDefaultPageNumberPagination, } from "./payouts.js";
|
|
15
|
+
export { Products, type AddMeterToPrice, type LicenseKeyDuration, type Price, type Product, type ProductListResponse, type ProductUpdateFilesResponse, type ProductCreateParams, type ProductUpdateParams, type ProductListParams, type ProductUpdateFilesParams, type ProductListResponsesDefaultPageNumberPagination, } from "./products/products.js";
|
|
16
|
+
export { Refunds, type Refund, type RefundStatus, type RefundListResponse, type RefundCreateParams, type RefundListParams, type RefundListResponsesDefaultPageNumberPagination, } from "./refunds.js";
|
|
17
|
+
export { Subscriptions, type AddonCartResponseItem, type AttachAddon, type OnDemandSubscription, type Subscription, type SubscriptionStatus, type TimeInterval, type SubscriptionCreateResponse, type SubscriptionListResponse, type SubscriptionChargeResponse, type SubscriptionRetrieveUsageHistoryResponse, type SubscriptionCreateParams, type SubscriptionUpdateParams, type SubscriptionListParams, type SubscriptionChangePlanParams, type SubscriptionChargeParams, type SubscriptionRetrieveUsageHistoryParams, type SubscriptionListResponsesDefaultPageNumberPagination, type SubscriptionRetrieveUsageHistoryResponsesDefaultPageNumberPagination, } from "./subscriptions.js";
|
|
18
|
+
export { UsageEvents, type Event, type EventInput, type UsageEventIngestResponse, type UsageEventListParams, type UsageEventIngestParams, type EventsDefaultPageNumberPagination, } from "./usage-events.js";
|
|
20
19
|
export { WebhookEvents, type WebhookEventType, type WebhookPayload } from "./webhook-events.js";
|
|
20
|
+
export { Webhooks, type WebhookDetails, type WebhookRetrieveSecretResponse, type WebhookCreateParams, type WebhookUpdateParams, type WebhookListParams, type WebhookDetailsCursorPagePagination, } from "./webhooks/webhooks.js";
|
|
21
21
|
//# sourceMappingURL=index.d.ts.map
|
package/resources/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"OAEO,EACL,MAAM,EACN,KAAK,aAAa,EAClB,KAAK,yBAAyB,EAC9B,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,yCAAyC,GAC/C;OACM,EACL,MAAM,EACN,KAAK,KAAK,EACV,KAAK,iBAAiB,EACtB,KAAK,yBAAyB,EAC9B,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,GACvB;OACM,EACL,gBAAgB,EAChB,KAAK,sBAAsB,EAC3B,KAAK,uBAAuB,EAC5B,KAAK,2BAA2B,GACjC;OACM,EACL,SAAS,EACT,KAAK,QAAQ,EACb,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,oCAAoC,GAC1C;OACM,EACL,SAAS,EACT,KAAK,QAAQ,EACb,KAAK,YAAY,EACjB,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,oCAAoC,GAC1C;OACM,EACL,QAAQ,EACR,KAAK,OAAO,EACZ,KAAK,YAAY,EACjB,KAAK,aAAa,EAClB,KAAK,UAAU,EACf,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,+CAA+C,GACrD;OACM,EAAE,QAAQ,EAAE;OACZ,EACL,mBAAmB,EACnB,KAAK,kBAAkB,EACvB,KAAK,8BAA8B,EACnC,KAAK,4BAA4B,EACjC,KAAK,8CAA8C,GACpD;OACM,EACL,WAAW,EACX,KAAK,UAAU,EACf,KAAK,gBAAgB,EACrB,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,sCAAsC,GAC5C;OACM,EACL,QAAQ,EACR,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,K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,KAAK,wBAAwB,EAC7B,KAAK,0BAA0B,EAC/B,KAAK,wCAAwC,EAC7C,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,4BAA4B,EACjC,KAAK,wBAAwB,EAC7B,KAAK,sCAAsC,EAC3C,KAAK,oDAAoD,EACzD,KAAK,oEAAoE,GAC1E;OACM,EACL,WAAW,EACX,KAAK,KAAK,EACV,KAAK,UAAU,EACf,KAAK,wBAAwB,EAC7B,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,iCAAiC,GACvC;OACM,EAAE,aAAa,EAAE,KAAK,gBAAgB,EAAE,KAAK,cAAc,EAAE;OAC7D,EACL,QAAQ,EACR,KAAK,cAAc,EACnB,KAAK,6BAA6B,EAClC,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,kCAAkC,GACxC"}
|
package/resources/index.js
CHANGED
|
@@ -1,60 +1,45 @@
|
|
|
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.
|
|
4
|
+
exports.Webhooks = exports.WebhookEvents = exports.UsageEvents = exports.Subscriptions = exports.Refunds = exports.Products = exports.Payouts = exports.Payments = exports.Misc = exports.Meters = exports.Licenses = exports.LicenseKeys = exports.LicenseKeyInstances = exports.Invoices = exports.Disputes = exports.Discounts = exports.Customers = exports.CheckoutSessions = exports.Brands = exports.Addons = void 0;
|
|
5
5
|
var addons_1 = require("./addons.js");
|
|
6
|
-
Object.defineProperty(exports, "AddonResponsesDefaultPageNumberPagination", { enumerable: true, get: function () { return addons_1.AddonResponsesDefaultPageNumberPagination; } });
|
|
7
6
|
Object.defineProperty(exports, "Addons", { enumerable: true, get: function () { return addons_1.Addons; } });
|
|
8
7
|
var brands_1 = require("./brands.js");
|
|
9
8
|
Object.defineProperty(exports, "Brands", { enumerable: true, get: function () { return brands_1.Brands; } });
|
|
10
9
|
var checkout_sessions_1 = require("./checkout-sessions.js");
|
|
11
10
|
Object.defineProperty(exports, "CheckoutSessions", { enumerable: true, get: function () { return checkout_sessions_1.CheckoutSessions; } });
|
|
12
11
|
var customers_1 = require("./customers/customers.js");
|
|
13
|
-
Object.defineProperty(exports, "CustomersDefaultPageNumberPagination", { enumerable: true, get: function () { return customers_1.CustomersDefaultPageNumberPagination; } });
|
|
14
12
|
Object.defineProperty(exports, "Customers", { enumerable: true, get: function () { return customers_1.Customers; } });
|
|
15
13
|
var discounts_1 = require("./discounts.js");
|
|
16
|
-
Object.defineProperty(exports, "DiscountsDefaultPageNumberPagination", { enumerable: true, get: function () { return discounts_1.DiscountsDefaultPageNumberPagination; } });
|
|
17
14
|
Object.defineProperty(exports, "Discounts", { enumerable: true, get: function () { return discounts_1.Discounts; } });
|
|
18
15
|
var disputes_1 = require("./disputes.js");
|
|
19
|
-
Object.defineProperty(exports, "DisputeListResponsesDefaultPageNumberPagination", { enumerable: true, get: function () { return disputes_1.DisputeListResponsesDefaultPageNumberPagination; } });
|
|
20
16
|
Object.defineProperty(exports, "Disputes", { enumerable: true, get: function () { return disputes_1.Disputes; } });
|
|
21
|
-
var usage_events_1 = require("./usage-events.js");
|
|
22
|
-
Object.defineProperty(exports, "EventsDefaultPageNumberPagination", { enumerable: true, get: function () { return usage_events_1.EventsDefaultPageNumberPagination; } });
|
|
23
|
-
Object.defineProperty(exports, "UsageEvents", { enumerable: true, get: function () { return usage_events_1.UsageEvents; } });
|
|
24
17
|
var invoices_1 = require("./invoices/invoices.js");
|
|
25
18
|
Object.defineProperty(exports, "Invoices", { enumerable: true, get: function () { return invoices_1.Invoices; } });
|
|
26
19
|
var license_key_instances_1 = require("./license-key-instances.js");
|
|
27
|
-
Object.defineProperty(exports, "LicenseKeyInstancesDefaultPageNumberPagination", { enumerable: true, get: function () { return license_key_instances_1.LicenseKeyInstancesDefaultPageNumberPagination; } });
|
|
28
20
|
Object.defineProperty(exports, "LicenseKeyInstances", { enumerable: true, get: function () { return license_key_instances_1.LicenseKeyInstances; } });
|
|
29
21
|
var license_keys_1 = require("./license-keys.js");
|
|
30
|
-
Object.defineProperty(exports, "LicenseKeysDefaultPageNumberPagination", { enumerable: true, get: function () { return license_keys_1.LicenseKeysDefaultPageNumberPagination; } });
|
|
31
22
|
Object.defineProperty(exports, "LicenseKeys", { enumerable: true, get: function () { return license_keys_1.LicenseKeys; } });
|
|
32
23
|
var licenses_1 = require("./licenses.js");
|
|
33
24
|
Object.defineProperty(exports, "Licenses", { enumerable: true, get: function () { return licenses_1.Licenses; } });
|
|
34
25
|
var meters_1 = require("./meters.js");
|
|
35
|
-
Object.defineProperty(exports, "MetersDefaultPageNumberPagination", { enumerable: true, get: function () { return meters_1.MetersDefaultPageNumberPagination; } });
|
|
36
26
|
Object.defineProperty(exports, "Meters", { enumerable: true, get: function () { return meters_1.Meters; } });
|
|
37
27
|
var misc_1 = require("./misc.js");
|
|
38
28
|
Object.defineProperty(exports, "Misc", { enumerable: true, get: function () { return misc_1.Misc; } });
|
|
39
29
|
var payments_1 = require("./payments.js");
|
|
40
|
-
Object.defineProperty(exports, "PaymentListResponsesDefaultPageNumberPagination", { enumerable: true, get: function () { return payments_1.PaymentListResponsesDefaultPageNumberPagination; } });
|
|
41
30
|
Object.defineProperty(exports, "Payments", { enumerable: true, get: function () { return payments_1.Payments; } });
|
|
42
31
|
var payouts_1 = require("./payouts.js");
|
|
43
|
-
Object.defineProperty(exports, "PayoutListResponsesDefaultPageNumberPagination", { enumerable: true, get: function () { return payouts_1.PayoutListResponsesDefaultPageNumberPagination; } });
|
|
44
32
|
Object.defineProperty(exports, "Payouts", { enumerable: true, get: function () { return payouts_1.Payouts; } });
|
|
45
33
|
var products_1 = require("./products/products.js");
|
|
46
|
-
Object.defineProperty(exports, "ProductListResponsesDefaultPageNumberPagination", { enumerable: true, get: function () { return products_1.ProductListResponsesDefaultPageNumberPagination; } });
|
|
47
34
|
Object.defineProperty(exports, "Products", { enumerable: true, get: function () { return products_1.Products; } });
|
|
48
35
|
var refunds_1 = require("./refunds.js");
|
|
49
|
-
Object.defineProperty(exports, "RefundListResponsesDefaultPageNumberPagination", { enumerable: true, get: function () { return refunds_1.RefundListResponsesDefaultPageNumberPagination; } });
|
|
50
36
|
Object.defineProperty(exports, "Refunds", { enumerable: true, get: function () { return refunds_1.Refunds; } });
|
|
51
37
|
var subscriptions_1 = require("./subscriptions.js");
|
|
52
|
-
Object.defineProperty(exports, "SubscriptionListResponsesDefaultPageNumberPagination", { enumerable: true, get: function () { return subscriptions_1.SubscriptionListResponsesDefaultPageNumberPagination; } });
|
|
53
|
-
Object.defineProperty(exports, "SubscriptionRetrieveUsageHistoryResponsesDefaultPageNumberPagination", { enumerable: true, get: function () { return subscriptions_1.SubscriptionRetrieveUsageHistoryResponsesDefaultPageNumberPagination; } });
|
|
54
38
|
Object.defineProperty(exports, "Subscriptions", { enumerable: true, get: function () { return subscriptions_1.Subscriptions; } });
|
|
55
|
-
var
|
|
56
|
-
Object.defineProperty(exports, "
|
|
57
|
-
Object.defineProperty(exports, "Webhooks", { enumerable: true, get: function () { return webhooks_1.Webhooks; } });
|
|
39
|
+
var usage_events_1 = require("./usage-events.js");
|
|
40
|
+
Object.defineProperty(exports, "UsageEvents", { enumerable: true, get: function () { return usage_events_1.UsageEvents; } });
|
|
58
41
|
var webhook_events_1 = require("./webhook-events.js");
|
|
59
42
|
Object.defineProperty(exports, "WebhookEvents", { enumerable: true, get: function () { return webhook_events_1.WebhookEvents; } });
|
|
43
|
+
var webhooks_1 = require("./webhooks/webhooks.js");
|
|
44
|
+
Object.defineProperty(exports, "Webhooks", { enumerable: true, get: function () { return webhooks_1.Webhooks; } });
|
|
60
45
|
//# sourceMappingURL=index.js.map
|
package/resources/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,sCAQkB;AAPhB,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,sCAQkB;AAPhB,gGAAA,MAAM,OAAA;AAQR,sCAOkB;AANhB,gGAAA,MAAM,OAAA;AAOR,4DAK6B;AAJ3B,qHAAA,gBAAgB,OAAA;AAKlB,sDAQ+B;AAP7B,sGAAA,SAAS,OAAA;AAQX,4CAQqB;AAPnB,sGAAA,SAAS,OAAA;AAQX,0CASoB;AARlB,oGAAA,QAAQ,OAAA;AASV,mDAA+C;AAAtC,oGAAA,QAAQ,OAAA;AACjB,oEAMiC;AAL/B,4HAAA,mBAAmB,OAAA;AAMrB,kDAOwB;AANtB,2GAAA,WAAW,OAAA;AAOb,0CAOoB;AANlB,oGAAA,QAAQ,OAAA;AAOV,sCAQkB;AAPhB,gGAAA,MAAM,OAAA;AAQR,kCAMgB;AALd,4FAAA,IAAI,OAAA;AAMN,0CAkBoB;AAjBlB,oGAAA,QAAQ,OAAA;AAkBV,wCAKmB;AAJjB,kGAAA,OAAO,OAAA;AAKT,mDAa6B;AAZ3B,oGAAA,QAAQ,OAAA;AAaV,wCAQmB;AAPjB,kGAAA,OAAO,OAAA;AAQT,oDAoByB;AAnBvB,8GAAA,aAAa,OAAA;AAoBf,kDAQwB;AAPtB,2GAAA,WAAW,OAAA;AAQb,sDAA6F;AAApF,+GAAA,aAAa,OAAA;AACtB,mDAQ6B;AAP3B,oGAAA,QAAQ,OAAA"}
|
package/resources/index.mjs
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
export {
|
|
2
|
+
export { Addons, } from "./addons.mjs";
|
|
3
3
|
export { Brands, } from "./brands.mjs";
|
|
4
4
|
export { CheckoutSessions, } from "./checkout-sessions.mjs";
|
|
5
|
-
export {
|
|
6
|
-
export {
|
|
7
|
-
export {
|
|
8
|
-
export { EventsDefaultPageNumberPagination, UsageEvents, } from "./usage-events.mjs";
|
|
5
|
+
export { Customers, } from "./customers/customers.mjs";
|
|
6
|
+
export { Discounts, } from "./discounts.mjs";
|
|
7
|
+
export { Disputes, } from "./disputes.mjs";
|
|
9
8
|
export { Invoices } from "./invoices/invoices.mjs";
|
|
10
|
-
export {
|
|
11
|
-
export {
|
|
9
|
+
export { LicenseKeyInstances, } from "./license-key-instances.mjs";
|
|
10
|
+
export { LicenseKeys, } from "./license-keys.mjs";
|
|
12
11
|
export { Licenses, } from "./licenses.mjs";
|
|
13
|
-
export {
|
|
12
|
+
export { Meters, } from "./meters.mjs";
|
|
14
13
|
export { Misc, } from "./misc.mjs";
|
|
15
|
-
export {
|
|
16
|
-
export {
|
|
17
|
-
export {
|
|
18
|
-
export {
|
|
19
|
-
export {
|
|
20
|
-
export {
|
|
14
|
+
export { Payments, } from "./payments.mjs";
|
|
15
|
+
export { Payouts, } from "./payouts.mjs";
|
|
16
|
+
export { Products, } from "./products/products.mjs";
|
|
17
|
+
export { Refunds, } from "./refunds.mjs";
|
|
18
|
+
export { Subscriptions, } from "./subscriptions.mjs";
|
|
19
|
+
export { UsageEvents, } from "./usage-events.mjs";
|
|
21
20
|
export { WebhookEvents } from "./webhook-events.mjs";
|
|
21
|
+
export { Webhooks, } from "./webhooks/webhooks.mjs";
|
|
22
22
|
//# sourceMappingURL=index.mjs.map
|
package/resources/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,MAAM,GAOP;OACM,EACL,MAAM,GAMP;OACM,EACL,gBAAgB,GAIjB;OACM,EACL,SAAS,GAOV;OACM,EACL,SAAS,GAOV;OACM,EACL,QAAQ,GAQT;OACM,EAAE,QAAQ,EAAE;OACZ,EACL,mBAAmB,GAKpB;OACM,EACL,WAAW,GAMZ;OACM,EACL,QAAQ,GAMT;OACM,EACL,MAAM,GAOP;OACM,EACL,IAAI,GAKL;OACM,EACL,QAAQ,GAiBT;OACM,EACL,OAAO,GAIR;OACM,EACL,QAAQ,GAYT;OACM,EACL,OAAO,GAOR;OACM,EACL,aAAa,GAmBd;OACM,EACL,WAAW,GAOZ;OACM,EAAE,aAAa,EAA8C;OAC7D,EACL,QAAQ,GAOT"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/invoices/index.ts"],"names":[],"mappings":"OAEO,EAAE,QAAQ,EAAE;OACZ,EAAE,QAAQ,EAAE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/invoices/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/invoices/index.ts"],"names":[],"mappings":"OAEO,EAAE,QAAQ,EAAE;OACZ,EAAE,QAAQ,EAAE"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
2
|
+
import * as PaymentsAPI from "./payments.mjs";
|
|
3
|
+
import { Payments } from "./payments.mjs";
|
|
4
|
+
export declare class Invoices extends APIResource {
|
|
5
|
+
payments: PaymentsAPI.Payments;
|
|
6
|
+
}
|
|
7
|
+
export declare namespace Invoices {
|
|
8
|
+
export { Payments as Payments };
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=invoices.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"invoices.d.mts","sourceRoot":"","sources":["../../src/resources/invoices/invoices.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,WAAW;OAChB,EAAE,QAAQ,EAAE;AAEnB,qBAAa,QAAS,SAAQ,WAAW;IACvC,QAAQ,EAAE,WAAW,CAAC,QAAQ,CAA0C;CACzE;AAID,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EAAE,QAAQ,IAAI,QAAQ,EAAE,CAAC;CACjC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"invoices.d.ts","sourceRoot":"","sources":["../../src/resources/invoices/invoices.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"invoices.d.ts","sourceRoot":"","sources":["../../src/resources/invoices/invoices.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,WAAW;OAChB,EAAE,QAAQ,EAAE;AAEnB,qBAAa,QAAS,SAAQ,WAAW;IACvC,QAAQ,EAAE,WAAW,CAAC,QAAQ,CAA0C;CACzE;AAID,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EAAE,QAAQ,IAAI,QAAQ,EAAE,CAAC;CACjC"}
|
|
@@ -1,32 +1,10 @@
|
|
|
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 __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
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27
4
|
exports.Invoices = void 0;
|
|
28
|
-
const
|
|
29
|
-
const
|
|
5
|
+
const tslib_1 = require("../../internal/tslib.js");
|
|
6
|
+
const resource_1 = require("../../core/resource.js");
|
|
7
|
+
const PaymentsAPI = tslib_1.__importStar(require("./payments.js"));
|
|
30
8
|
const payments_1 = require("./payments.js");
|
|
31
9
|
class Invoices extends resource_1.APIResource {
|
|
32
10
|
constructor() {
|