@paddle/paddle-node-sdk 1.8.0 → 2.0.0-rc.1
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 +20 -1
- package/dist/cjs/entities/address/address-collection.js +4 -4
- package/dist/cjs/entities/address/address.js +2 -2
- package/dist/cjs/entities/address/index.js +2 -2
- package/dist/cjs/entities/adjustment/adjustment-collection.js +4 -4
- package/dist/cjs/entities/adjustment/adjustment-item.js +4 -3
- package/dist/cjs/entities/adjustment/adjustment-proration.js +2 -2
- package/dist/cjs/entities/adjustment/adjustment.js +5 -4
- package/dist/cjs/entities/adjustment/index.js +7 -7
- package/dist/cjs/entities/business/business-collection.js +4 -4
- package/dist/cjs/entities/business/business.js +4 -3
- package/dist/cjs/entities/business/index.js +3 -3
- package/dist/cjs/entities/customer/credit-balance.js +2 -2
- package/dist/cjs/entities/customer/customer-collection.js +4 -4
- package/dist/cjs/entities/customer/customer.js +2 -2
- package/dist/cjs/entities/customer/index.js +4 -4
- package/dist/cjs/entities/discount/discount-collection.js +4 -4
- package/dist/cjs/entities/discount/discount.js +2 -2
- package/dist/cjs/entities/discount/index.js +2 -2
- package/dist/cjs/entities/event-types/index.js +1 -1
- package/dist/cjs/entities/events/event-collection.js +4 -4
- package/dist/cjs/entities/events/index.js +1 -1
- package/dist/cjs/entities/index.js +20 -20
- package/dist/cjs/entities/notification-settings/index.js +1 -1
- package/dist/cjs/entities/notification-settings/notification-settings.js +2 -2
- package/dist/cjs/entities/notifications/index.js +5 -5
- package/dist/cjs/entities/notifications/notification-collection.js +4 -4
- package/dist/cjs/entities/notifications/notification-log-collection.js +4 -4
- package/dist/cjs/entities/notifications/notification.js +2 -2
- package/dist/cjs/entities/payout/index.js +1 -1
- package/dist/cjs/entities/price/index.js +3 -3
- package/dist/cjs/entities/price/price-collection.js +4 -4
- package/dist/cjs/entities/price/price.js +10 -8
- package/dist/cjs/entities/pricing-preview/index.js +4 -4
- package/dist/cjs/entities/pricing-preview/pricing-preview-details.js +2 -2
- package/dist/cjs/entities/pricing-preview/pricing-preview-discounts.js +2 -2
- package/dist/cjs/entities/pricing-preview/pricing-preview-line-item.js +11 -11
- package/dist/cjs/entities/pricing-preview/pricing-preview.js +4 -4
- package/dist/cjs/entities/product/index.js +2 -2
- package/dist/cjs/entities/product/product-collection.js +4 -4
- package/dist/cjs/entities/product/product.js +3 -3
- package/dist/cjs/entities/report/index.js +4 -4
- package/dist/cjs/entities/report/report-collection.js +4 -4
- package/dist/cjs/entities/report/report.js +2 -2
- package/dist/cjs/entities/shared/billing-details.js +2 -2
- package/dist/cjs/entities/shared/chargeback-fee.js +2 -2
- package/dist/cjs/entities/shared/index.js +22 -22
- package/dist/cjs/entities/shared/payment-method-details.js +2 -2
- package/dist/cjs/entities/shared/payout-totals-adjustment.js +2 -2
- package/dist/cjs/entities/shared/tax-rates-used.js +2 -2
- package/dist/cjs/entities/shared/transaction-payment-attempt.js +2 -2
- package/dist/cjs/entities/shared/transaction-payout-totals-adjusted.js +2 -2
- package/dist/cjs/entities/shared/unit-price-override.js +2 -2
- package/dist/cjs/entities/simulation/index.js +2 -2
- package/dist/cjs/entities/simulation/simulation-collection.js +4 -4
- package/dist/cjs/entities/simulation-run/index.js +2 -2
- package/dist/cjs/entities/simulation-run/simulation-run-collection.js +4 -4
- package/dist/cjs/entities/simulation-run/simulation-run.js +2 -2
- package/dist/cjs/entities/simulation-run-event/index.js +2 -2
- package/dist/cjs/entities/simulation-run-event/simulation-run-event-collection.js +4 -4
- package/dist/cjs/entities/simulation-run-event/simulation-run-event.js +3 -3
- package/dist/cjs/entities/simulation-types/index.js +1 -1
- package/dist/cjs/entities/subscription/index.js +15 -15
- package/dist/cjs/entities/subscription/next-transaction-adjustment-item.js +3 -3
- package/dist/cjs/entities/subscription/next-transaction-adjustment-preview.js +4 -4
- package/dist/cjs/entities/subscription/next-transaction.js +6 -4
- package/dist/cjs/entities/subscription/subscription-collection.js +4 -4
- package/dist/cjs/entities/subscription/subscription-item.js +6 -4
- package/dist/cjs/entities/subscription/subscription-preview-update-summary.js +5 -4
- package/dist/cjs/entities/subscription/subscription-preview.js +19 -13
- package/dist/cjs/entities/subscription/subscription.js +17 -11
- package/dist/cjs/entities/subscription/transaction-details-preview.js +5 -4
- package/dist/cjs/entities/subscription/transaction-line-item-preview.js +5 -4
- package/dist/cjs/entities/transaction/adjustment-totals.js +2 -2
- package/dist/cjs/entities/transaction/index.js +16 -16
- package/dist/cjs/entities/transaction/proration.js +2 -2
- package/dist/cjs/entities/transaction/transaction-adjustment-item.js +4 -3
- package/dist/cjs/entities/transaction/transaction-adjustment.js +5 -4
- package/dist/cjs/entities/transaction/transaction-collection.js +4 -4
- package/dist/cjs/entities/transaction/transaction-details.js +8 -7
- package/dist/cjs/entities/transaction/transaction-item-preview.js +4 -3
- package/dist/cjs/entities/transaction/transaction-item.js +4 -3
- package/dist/cjs/entities/transaction/transaction-line-item.js +7 -5
- package/dist/cjs/entities/transaction/transaction-preview.js +6 -4
- package/dist/cjs/entities/transaction/transaction-proration.js +2 -2
- package/dist/cjs/entities/transaction/transaction.js +13 -13
- package/dist/cjs/enums/adjustment/index.js +4 -4
- package/dist/cjs/enums/discount/index.js +2 -2
- package/dist/cjs/enums/index.js +13 -13
- package/dist/cjs/enums/notification/index.js +2 -2
- package/dist/cjs/enums/notification-settings/index.js +1 -1
- package/dist/cjs/enums/payout/index.js +1 -1
- package/dist/cjs/enums/report/index.js +4 -4
- package/dist/cjs/enums/shared/index.js +16 -16
- package/dist/cjs/enums/simulation/index.js +1 -1
- package/dist/cjs/enums/simulation-run/index.js +1 -1
- package/dist/cjs/enums/simulation-run-event/index.js +1 -1
- package/dist/cjs/enums/simulation-type/index.js +1 -1
- package/dist/cjs/enums/subscription/index.js +6 -6
- package/dist/cjs/enums/transaction/index.js +1 -1
- package/dist/cjs/index.cjs.edge.js +38 -0
- package/dist/cjs/index.cjs.node.js +38 -0
- package/dist/cjs/internal/api/case-helpers.js +32 -5
- package/dist/cjs/internal/api/client.js +34 -30
- package/dist/cjs/internal/api/constants.js +3 -3
- package/dist/cjs/internal/api/index.js +6 -6
- package/dist/cjs/internal/base/base-resource.js +2 -2
- package/dist/cjs/internal/base/collection.js +2 -2
- package/dist/cjs/internal/base/index.js +4 -4
- package/dist/cjs/internal/base/logger.js +10 -10
- package/dist/cjs/internal/index.js +3 -3
- package/dist/cjs/internal/providers/crypto/crypto-provider.js +23 -0
- package/dist/cjs/internal/providers/crypto/edge-crypto.js +40 -0
- package/dist/cjs/internal/providers/crypto/node-crypto.js +28 -0
- package/dist/cjs/internal/providers/runtime/edge-runtime.js +13 -0
- package/dist/cjs/internal/providers/runtime/node-runtime.js +13 -0
- package/dist/cjs/internal/providers/runtime-provider.js +12 -0
- package/dist/cjs/notifications/entities/address/address-notification.js +2 -2
- package/dist/cjs/notifications/entities/address/index.js +1 -1
- package/dist/cjs/notifications/entities/adjustment/adjustment-item-notification.js +4 -3
- package/dist/cjs/notifications/entities/adjustment/adjustment-notification.js +5 -4
- package/dist/cjs/notifications/entities/adjustment/adjustment-proration-notification.js +2 -2
- package/dist/cjs/notifications/entities/adjustment/index.js +5 -5
- package/dist/cjs/notifications/entities/business/business-notification.js +4 -3
- package/dist/cjs/notifications/entities/business/index.js +2 -2
- package/dist/cjs/notifications/entities/customer/customer-notification.js +2 -2
- package/dist/cjs/notifications/entities/customer/index.js +1 -1
- package/dist/cjs/notifications/entities/discount/discount-notification.js +2 -2
- package/dist/cjs/notifications/entities/discount/index.js +1 -1
- package/dist/cjs/notifications/entities/index.js +12 -12
- package/dist/cjs/notifications/entities/payout/index.js +1 -1
- package/dist/cjs/notifications/entities/price/index.js +2 -2
- package/dist/cjs/notifications/entities/price/price-notification.js +8 -7
- package/dist/cjs/notifications/entities/product/index.js +1 -1
- package/dist/cjs/notifications/entities/product/product-notification.js +2 -2
- package/dist/cjs/notifications/entities/report/index.js +2 -2
- package/dist/cjs/notifications/entities/report/report-notification.js +2 -2
- package/dist/cjs/notifications/entities/shared/billing-details-notification.js +2 -2
- package/dist/cjs/notifications/entities/shared/chargeback-fee-notification.js +2 -2
- package/dist/cjs/notifications/entities/shared/index.js +20 -20
- package/dist/cjs/notifications/entities/shared/payment-method-details-notification.js +2 -2
- package/dist/cjs/notifications/entities/shared/payout-totals-adjustment-notification.js +2 -2
- package/dist/cjs/notifications/entities/shared/tax-rates-used-notification.js +2 -2
- package/dist/cjs/notifications/entities/shared/transaction-payment-attempt-notification.js +2 -2
- package/dist/cjs/notifications/entities/shared/transaction-payout-totals-adjusted-notification.js +2 -2
- package/dist/cjs/notifications/entities/shared/unit-price-override-notification.js +2 -2
- package/dist/cjs/notifications/entities/subscription/index.js +6 -6
- package/dist/cjs/notifications/entities/subscription/subscription-item-notification.js +6 -4
- package/dist/cjs/notifications/entities/subscription/subscription-notification.js +12 -8
- package/dist/cjs/notifications/entities/subscription/subscription-price-notification.js +8 -8
- package/dist/cjs/notifications/entities/transaction/index.js +6 -6
- package/dist/cjs/notifications/entities/transaction/transaction-details-notification.js +8 -7
- package/dist/cjs/notifications/entities/transaction/transaction-item-notification.js +4 -3
- package/dist/cjs/notifications/entities/transaction/transaction-line-item-notification.js +7 -5
- package/dist/cjs/notifications/entities/transaction/transaction-notification.js +10 -7
- package/dist/cjs/notifications/entities/transaction/transaction-proration-notification.js +2 -2
- package/dist/cjs/notifications/events/address/address-created-event.js +6 -6
- package/dist/cjs/notifications/events/address/address-imported-event.js +6 -6
- package/dist/cjs/notifications/events/address/address-updated-event.js +6 -6
- package/dist/cjs/notifications/events/address/index.js +3 -3
- package/dist/cjs/notifications/events/adjustment/adjustment-created-event.js +6 -6
- package/dist/cjs/notifications/events/adjustment/adjustment-updated-event.js +6 -6
- package/dist/cjs/notifications/events/adjustment/index.js +2 -2
- package/dist/cjs/notifications/events/business/business-created-event.js +6 -6
- package/dist/cjs/notifications/events/business/business-imported-event.js +6 -6
- package/dist/cjs/notifications/events/business/business-updated-event.js +6 -6
- package/dist/cjs/notifications/events/business/index.js +3 -3
- package/dist/cjs/notifications/events/customer/customer-created-event.js +6 -6
- package/dist/cjs/notifications/events/customer/customer-imported-event.js +6 -6
- package/dist/cjs/notifications/events/customer/customer-updated-event.js +6 -6
- package/dist/cjs/notifications/events/customer/index.js +3 -3
- package/dist/cjs/notifications/events/discount/discount-created-event.js +6 -6
- package/dist/cjs/notifications/events/discount/discount-imported-event.js +6 -6
- package/dist/cjs/notifications/events/discount/discount-updated-event.js +6 -6
- package/dist/cjs/notifications/events/discount/index.js +3 -3
- package/dist/cjs/notifications/events/index.js +11 -11
- package/dist/cjs/notifications/events/payout/index.js +2 -2
- package/dist/cjs/notifications/events/payout/payout-created-event.js +6 -6
- package/dist/cjs/notifications/events/payout/payout-paid-event.js +6 -6
- package/dist/cjs/notifications/events/price/index.js +3 -3
- package/dist/cjs/notifications/events/price/price-created-event.js +6 -6
- package/dist/cjs/notifications/events/price/price-imported-event.js +6 -6
- package/dist/cjs/notifications/events/price/price-updated-event.js +6 -6
- package/dist/cjs/notifications/events/product/index.js +3 -3
- package/dist/cjs/notifications/events/product/product-created-event.js +6 -6
- package/dist/cjs/notifications/events/product/product-imported-event.js +6 -6
- package/dist/cjs/notifications/events/product/product-updated-event.js +6 -6
- package/dist/cjs/notifications/events/report/index.js +2 -2
- package/dist/cjs/notifications/events/report/report-created-event.js +6 -6
- package/dist/cjs/notifications/events/report/report-updated-event.js +6 -6
- package/dist/cjs/notifications/events/subscription/index.js +9 -9
- package/dist/cjs/notifications/events/subscription/subscription-activated-event.js +6 -6
- package/dist/cjs/notifications/events/subscription/subscription-canceled-event.js +6 -6
- package/dist/cjs/notifications/events/subscription/subscription-created-event.js +6 -6
- package/dist/cjs/notifications/events/subscription/subscription-imported-event.js +6 -6
- package/dist/cjs/notifications/events/subscription/subscription-past-due-event.js +6 -6
- package/dist/cjs/notifications/events/subscription/subscription-paused-event.js +6 -6
- package/dist/cjs/notifications/events/subscription/subscription-resumed-event.js +6 -6
- package/dist/cjs/notifications/events/subscription/subscription-trialing-event.js +6 -6
- package/dist/cjs/notifications/events/subscription/subscription-updated-event.js +6 -6
- package/dist/cjs/notifications/events/transaction/index.js +9 -9
- package/dist/cjs/notifications/events/transaction/transaction-billed-event.js +6 -6
- package/dist/cjs/notifications/events/transaction/transaction-canceled-event.js +6 -6
- package/dist/cjs/notifications/events/transaction/transaction-completed-event.js +6 -6
- package/dist/cjs/notifications/events/transaction/transaction-created-event.js +6 -6
- package/dist/cjs/notifications/events/transaction/transaction-paid-event.js +6 -6
- package/dist/cjs/notifications/events/transaction/transaction-past-due-event.js +6 -6
- package/dist/cjs/notifications/events/transaction/transaction-payment-failed-event.js +6 -6
- package/dist/cjs/notifications/events/transaction/transaction-ready-event.js +6 -6
- package/dist/cjs/notifications/events/transaction/transaction-updated-event.js +6 -6
- package/dist/cjs/notifications/helpers/index.js +3 -3
- package/dist/cjs/notifications/helpers/webhooks-validator.js +26 -10
- package/dist/cjs/notifications/helpers/webhooks.js +111 -98
- package/dist/cjs/notifications/index.js +4 -4
- package/dist/cjs/notifications/types/address/index.js +1 -1
- package/dist/cjs/notifications/types/adjustment/index.js +6 -6
- package/dist/cjs/notifications/types/business/index.js +2 -2
- package/dist/cjs/notifications/types/customer/index.js +1 -1
- package/dist/cjs/notifications/types/discount/index.js +1 -1
- package/dist/cjs/notifications/types/index.js +12 -12
- package/dist/cjs/notifications/types/payout/index.js +1 -1
- package/dist/cjs/notifications/types/price/index.js +2 -2
- package/dist/cjs/notifications/types/product/index.js +1 -1
- package/dist/cjs/notifications/types/report/index.js +2 -2
- package/dist/cjs/notifications/types/shared/index.js +22 -22
- package/dist/cjs/notifications/types/subscription/index.js +7 -7
- package/dist/cjs/notifications/types/transaction/index.js +6 -6
- package/dist/cjs/package.json +1 -0
- package/dist/cjs/paddle.js +28 -28
- package/dist/cjs/resources/addresses/index.js +13 -13
- package/dist/cjs/resources/addresses/operations/index.js +3 -3
- package/dist/cjs/resources/adjustments/index.js +10 -10
- package/dist/cjs/resources/adjustments/operations/index.js +3 -3
- package/dist/cjs/resources/businesses/index.js +13 -13
- package/dist/cjs/resources/businesses/operations/index.js +3 -3
- package/dist/cjs/resources/customers/index.js +14 -14
- package/dist/cjs/resources/customers/operations/index.js +4 -4
- package/dist/cjs/resources/discounts/index.js +11 -11
- package/dist/cjs/resources/discounts/operations/index.js +3 -3
- package/dist/cjs/resources/event-types/index.js +4 -4
- package/dist/cjs/resources/events/index.js +6 -6
- package/dist/cjs/resources/events/operations/index.js +1 -1
- package/dist/cjs/resources/index.js +18 -18
- package/dist/cjs/resources/notification-settings/index.js +12 -12
- package/dist/cjs/resources/notification-settings/operations/index.js +3 -3
- package/dist/cjs/resources/notifications/index.js +13 -13
- package/dist/cjs/resources/notifications/operations/index.js +2 -2
- package/dist/cjs/resources/prices/index.js +12 -12
- package/dist/cjs/resources/prices/operations/index.js +4 -4
- package/dist/cjs/resources/pricing-preview/index.js +5 -5
- package/dist/cjs/resources/pricing-preview/operations/index.js +1 -1
- package/dist/cjs/resources/products/index.js +12 -12
- package/dist/cjs/resources/products/operations/index.js +4 -4
- package/dist/cjs/resources/reports/index.js +11 -11
- package/dist/cjs/resources/reports/operations/index.js +2 -2
- package/dist/cjs/resources/simulation-run-events/index.js +11 -11
- package/dist/cjs/resources/simulation-run-events/operations/index.js +1 -1
- package/dist/cjs/resources/simulation-runs/index.js +12 -12
- package/dist/cjs/resources/simulation-runs/operations/index.js +2 -2
- package/dist/cjs/resources/simulation-types/index.js +4 -4
- package/dist/cjs/resources/simulations/index.js +11 -11
- package/dist/cjs/resources/simulations/operations/index.js +3 -3
- package/dist/cjs/resources/subscriptions/index.js +27 -27
- package/dist/cjs/resources/subscriptions/operations/index.js +7 -7
- package/dist/cjs/resources/transactions/index.js +18 -18
- package/dist/cjs/resources/transactions/operations/index.js +8 -8
- package/dist/cjs/types/address/index.js +1 -1
- package/dist/cjs/types/adjustment/index.js +5 -5
- package/dist/cjs/types/business/index.js +2 -2
- package/dist/cjs/types/customer/index.js +3 -3
- package/dist/cjs/types/discount/index.js +1 -1
- package/dist/cjs/types/event-types/index.js +1 -1
- package/dist/cjs/types/events/index.js +1 -1
- package/dist/cjs/types/index.js +21 -21
- package/dist/cjs/types/notification-settings/index.js +1 -1
- package/dist/cjs/types/notifications/index.js +3 -3
- package/dist/cjs/types/payout/index.js +1 -1
- package/dist/cjs/types/price/index.js +3 -3
- package/dist/cjs/types/pricing-preview/index.js +5 -5
- package/dist/cjs/types/product/index.js +1 -1
- package/dist/cjs/types/report/index.js +3 -3
- package/dist/cjs/types/shared/index.js +32 -32
- package/dist/cjs/types/simulation/index.js +1 -1
- package/dist/cjs/types/simulation-run/index.js +1 -1
- package/dist/cjs/types/simulation-run/simulation-run-event.js +2 -0
- package/dist/cjs/types/simulation-run-event/index.js +1 -1
- package/dist/cjs/types/simulation-type/index.js +1 -1
- package/dist/cjs/types/subscription/index.js +13 -13
- package/dist/cjs/types/transaction/index.js +15 -15
- package/dist/cjs/version.js +1 -1
- package/dist/esm/entities/address/address-collection.js +2 -2
- package/dist/esm/entities/address/address.js +1 -1
- package/dist/esm/entities/address/index.js +2 -2
- package/dist/esm/entities/adjustment/adjustment-collection.js +2 -2
- package/dist/esm/entities/adjustment/adjustment-item.js +2 -1
- package/dist/esm/entities/adjustment/adjustment-proration.js +1 -1
- package/dist/esm/entities/adjustment/adjustment.js +2 -1
- package/dist/esm/entities/adjustment/index.js +7 -7
- package/dist/esm/entities/business/business-collection.js +2 -2
- package/dist/esm/entities/business/business.js +2 -1
- package/dist/esm/entities/business/index.js +3 -3
- package/dist/esm/entities/customer/credit-balance.js +1 -1
- package/dist/esm/entities/customer/customer-collection.js +2 -2
- package/dist/esm/entities/customer/customer.js +1 -1
- package/dist/esm/entities/customer/index.js +4 -4
- package/dist/esm/entities/discount/discount-collection.js +2 -2
- package/dist/esm/entities/discount/discount.js +1 -1
- package/dist/esm/entities/discount/index.js +2 -2
- package/dist/esm/entities/event-types/index.js +1 -1
- package/dist/esm/entities/events/event-collection.js +2 -2
- package/dist/esm/entities/events/index.js +1 -1
- package/dist/esm/entities/index.js +20 -20
- package/dist/esm/entities/notification-settings/index.js +1 -1
- package/dist/esm/entities/notification-settings/notification-settings.js +1 -1
- package/dist/esm/entities/notifications/index.js +5 -5
- package/dist/esm/entities/notifications/notification-collection.js +2 -2
- package/dist/esm/entities/notifications/notification-log-collection.js +2 -2
- package/dist/esm/entities/notifications/notification.js +1 -1
- package/dist/esm/entities/payout/index.js +1 -1
- package/dist/esm/entities/price/index.js +3 -3
- package/dist/esm/entities/price/price-collection.js +2 -2
- package/dist/esm/entities/price/price.js +3 -1
- package/dist/esm/entities/pricing-preview/index.js +4 -4
- package/dist/esm/entities/pricing-preview/pricing-preview-details.js +1 -1
- package/dist/esm/entities/pricing-preview/pricing-preview-discounts.js +1 -1
- package/dist/esm/entities/pricing-preview/pricing-preview-line-item.js +4 -4
- package/dist/esm/entities/pricing-preview/pricing-preview.js +2 -2
- package/dist/esm/entities/product/index.js +2 -2
- package/dist/esm/entities/product/product-collection.js +2 -2
- package/dist/esm/entities/product/product.js +1 -1
- package/dist/esm/entities/report/index.js +4 -4
- package/dist/esm/entities/report/report-collection.js +2 -2
- package/dist/esm/entities/report/report.js +1 -1
- package/dist/esm/entities/shared/billing-details.js +1 -1
- package/dist/esm/entities/shared/chargeback-fee.js +1 -1
- package/dist/esm/entities/shared/index.js +22 -22
- package/dist/esm/entities/shared/payment-method-details.js +1 -1
- package/dist/esm/entities/shared/payout-totals-adjustment.js +1 -1
- package/dist/esm/entities/shared/tax-rates-used.js +1 -1
- package/dist/esm/entities/shared/transaction-payment-attempt.js +1 -1
- package/dist/esm/entities/shared/transaction-payout-totals-adjusted.js +1 -1
- package/dist/esm/entities/shared/unit-price-override.js +1 -1
- package/dist/esm/entities/simulation/index.js +2 -2
- package/dist/esm/entities/simulation/simulation-collection.js +2 -2
- package/dist/esm/entities/simulation-run/index.js +2 -2
- package/dist/esm/entities/simulation-run/simulation-run-collection.js +2 -2
- package/dist/esm/entities/simulation-run/simulation-run.js +1 -1
- package/dist/esm/entities/simulation-run-event/index.js +2 -2
- package/dist/esm/entities/simulation-run-event/simulation-run-event-collection.js +2 -2
- package/dist/esm/entities/simulation-run-event/simulation-run-event.js +1 -1
- package/dist/esm/entities/simulation-types/index.js +1 -1
- package/dist/esm/entities/subscription/index.js +15 -15
- package/dist/esm/entities/subscription/next-transaction-adjustment-item.js +1 -1
- package/dist/esm/entities/subscription/next-transaction-adjustment-preview.js +2 -2
- package/dist/esm/entities/subscription/next-transaction.js +3 -1
- package/dist/esm/entities/subscription/subscription-collection.js +2 -2
- package/dist/esm/entities/subscription/subscription-item.js +3 -1
- package/dist/esm/entities/subscription/subscription-preview-update-summary.js +2 -1
- package/dist/esm/entities/subscription/subscription-preview.js +7 -1
- package/dist/esm/entities/subscription/subscription.js +7 -1
- package/dist/esm/entities/subscription/transaction-details-preview.js +2 -1
- package/dist/esm/entities/subscription/transaction-line-item-preview.js +2 -1
- package/dist/esm/entities/transaction/adjustment-totals.js +1 -1
- package/dist/esm/entities/transaction/index.js +16 -16
- package/dist/esm/entities/transaction/proration.js +1 -1
- package/dist/esm/entities/transaction/transaction-adjustment-item.js +2 -1
- package/dist/esm/entities/transaction/transaction-adjustment.js +2 -1
- package/dist/esm/entities/transaction/transaction-collection.js +2 -2
- package/dist/esm/entities/transaction/transaction-details.js +2 -1
- package/dist/esm/entities/transaction/transaction-item-preview.js +2 -1
- package/dist/esm/entities/transaction/transaction-item.js +2 -1
- package/dist/esm/entities/transaction/transaction-line-item.js +3 -1
- package/dist/esm/entities/transaction/transaction-preview.js +3 -1
- package/dist/esm/entities/transaction/transaction-proration.js +1 -1
- package/dist/esm/entities/transaction/transaction.js +1 -1
- package/dist/esm/enums/adjustment/index.js +4 -4
- package/dist/esm/enums/discount/index.js +2 -2
- package/dist/esm/enums/index.js +13 -13
- package/dist/esm/enums/notification/index.js +2 -2
- package/dist/esm/enums/notification-settings/index.js +1 -1
- package/dist/esm/enums/payout/index.js +1 -1
- package/dist/esm/enums/report/index.js +4 -4
- package/dist/esm/enums/shared/index.js +16 -16
- package/dist/esm/enums/simulation/index.js +1 -1
- package/dist/esm/enums/simulation-run/index.js +1 -1
- package/dist/esm/enums/simulation-run-event/index.js +1 -1
- package/dist/esm/enums/simulation-type/index.js +1 -1
- package/dist/esm/enums/subscription/index.js +6 -6
- package/dist/esm/enums/transaction/index.js +1 -1
- package/dist/esm/index.esm.edge.js +16 -0
- package/dist/esm/index.esm.node.js +16 -0
- package/dist/esm/internal/api/case-helpers.js +9 -5
- package/dist/esm/internal/api/client.js +17 -10
- package/dist/esm/internal/api/constants.js +1 -1
- package/dist/esm/internal/api/index.js +3 -3
- package/dist/esm/internal/base/base-resource.js +1 -1
- package/dist/esm/internal/base/collection.js +1 -1
- package/dist/esm/internal/base/index.js +4 -4
- package/dist/esm/internal/base/logger.js +1 -1
- package/dist/esm/internal/index.js +2 -2
- package/dist/esm/internal/providers/crypto/crypto-provider.js +19 -0
- package/dist/esm/internal/providers/crypto/edge-crypto.js +36 -0
- package/dist/esm/internal/providers/crypto/node-crypto.js +24 -0
- package/dist/esm/internal/providers/runtime/edge-runtime.js +9 -0
- package/dist/esm/internal/providers/runtime/node-runtime.js +9 -0
- package/dist/esm/internal/providers/runtime-provider.js +8 -0
- package/dist/esm/notifications/entities/address/address-notification.js +1 -1
- package/dist/esm/notifications/entities/address/index.js +1 -1
- package/dist/esm/notifications/entities/adjustment/adjustment-item-notification.js +2 -1
- package/dist/esm/notifications/entities/adjustment/adjustment-notification.js +2 -1
- package/dist/esm/notifications/entities/adjustment/adjustment-proration-notification.js +1 -1
- package/dist/esm/notifications/entities/adjustment/index.js +5 -5
- package/dist/esm/notifications/entities/business/business-notification.js +2 -1
- package/dist/esm/notifications/entities/business/index.js +2 -2
- package/dist/esm/notifications/entities/customer/customer-notification.js +1 -1
- package/dist/esm/notifications/entities/customer/index.js +1 -1
- package/dist/esm/notifications/entities/discount/discount-notification.js +1 -1
- package/dist/esm/notifications/entities/discount/index.js +1 -1
- package/dist/esm/notifications/entities/index.js +12 -12
- package/dist/esm/notifications/entities/payout/index.js +1 -1
- package/dist/esm/notifications/entities/price/index.js +2 -2
- package/dist/esm/notifications/entities/price/price-notification.js +2 -1
- package/dist/esm/notifications/entities/product/index.js +1 -1
- package/dist/esm/notifications/entities/product/product-notification.js +1 -1
- package/dist/esm/notifications/entities/report/index.js +2 -2
- package/dist/esm/notifications/entities/report/report-notification.js +1 -1
- package/dist/esm/notifications/entities/shared/billing-details-notification.js +1 -1
- package/dist/esm/notifications/entities/shared/chargeback-fee-notification.js +1 -1
- package/dist/esm/notifications/entities/shared/index.js +20 -20
- package/dist/esm/notifications/entities/shared/payment-method-details-notification.js +1 -1
- package/dist/esm/notifications/entities/shared/payout-totals-adjustment-notification.js +1 -1
- package/dist/esm/notifications/entities/shared/tax-rates-used-notification.js +1 -1
- package/dist/esm/notifications/entities/shared/transaction-payment-attempt-notification.js +1 -1
- package/dist/esm/notifications/entities/shared/transaction-payout-totals-adjusted-notification.js +1 -1
- package/dist/esm/notifications/entities/shared/unit-price-override-notification.js +1 -1
- package/dist/esm/notifications/entities/subscription/index.js +6 -6
- package/dist/esm/notifications/entities/subscription/subscription-item-notification.js +3 -1
- package/dist/esm/notifications/entities/subscription/subscription-notification.js +5 -1
- package/dist/esm/notifications/entities/subscription/subscription-price-notification.js +3 -3
- package/dist/esm/notifications/entities/transaction/index.js +6 -6
- package/dist/esm/notifications/entities/transaction/transaction-details-notification.js +2 -1
- package/dist/esm/notifications/entities/transaction/transaction-item-notification.js +2 -1
- package/dist/esm/notifications/entities/transaction/transaction-line-item-notification.js +3 -1
- package/dist/esm/notifications/entities/transaction/transaction-notification.js +4 -1
- package/dist/esm/notifications/entities/transaction/transaction-proration-notification.js +1 -1
- package/dist/esm/notifications/events/address/address-created-event.js +3 -3
- package/dist/esm/notifications/events/address/address-imported-event.js +3 -3
- package/dist/esm/notifications/events/address/address-updated-event.js +3 -3
- package/dist/esm/notifications/events/address/index.js +3 -3
- package/dist/esm/notifications/events/adjustment/adjustment-created-event.js +3 -3
- package/dist/esm/notifications/events/adjustment/adjustment-updated-event.js +3 -3
- package/dist/esm/notifications/events/adjustment/index.js +2 -2
- package/dist/esm/notifications/events/business/business-created-event.js +3 -3
- package/dist/esm/notifications/events/business/business-imported-event.js +3 -3
- package/dist/esm/notifications/events/business/business-updated-event.js +3 -3
- package/dist/esm/notifications/events/business/index.js +3 -3
- package/dist/esm/notifications/events/customer/customer-created-event.js +3 -3
- package/dist/esm/notifications/events/customer/customer-imported-event.js +3 -3
- package/dist/esm/notifications/events/customer/customer-updated-event.js +3 -3
- package/dist/esm/notifications/events/customer/index.js +3 -3
- package/dist/esm/notifications/events/discount/discount-created-event.js +3 -3
- package/dist/esm/notifications/events/discount/discount-imported-event.js +3 -3
- package/dist/esm/notifications/events/discount/discount-updated-event.js +3 -3
- package/dist/esm/notifications/events/discount/index.js +3 -3
- package/dist/esm/notifications/events/index.js +11 -11
- package/dist/esm/notifications/events/payout/index.js +2 -2
- package/dist/esm/notifications/events/payout/payout-created-event.js +3 -3
- package/dist/esm/notifications/events/payout/payout-paid-event.js +3 -3
- package/dist/esm/notifications/events/price/index.js +3 -3
- package/dist/esm/notifications/events/price/price-created-event.js +3 -3
- package/dist/esm/notifications/events/price/price-imported-event.js +3 -3
- package/dist/esm/notifications/events/price/price-updated-event.js +3 -3
- package/dist/esm/notifications/events/product/index.js +3 -3
- package/dist/esm/notifications/events/product/product-created-event.js +3 -3
- package/dist/esm/notifications/events/product/product-imported-event.js +3 -3
- package/dist/esm/notifications/events/product/product-updated-event.js +3 -3
- package/dist/esm/notifications/events/report/index.js +2 -2
- package/dist/esm/notifications/events/report/report-created-event.js +3 -3
- package/dist/esm/notifications/events/report/report-updated-event.js +3 -3
- package/dist/esm/notifications/events/subscription/index.js +9 -9
- package/dist/esm/notifications/events/subscription/subscription-activated-event.js +3 -3
- package/dist/esm/notifications/events/subscription/subscription-canceled-event.js +3 -3
- package/dist/esm/notifications/events/subscription/subscription-created-event.js +3 -3
- package/dist/esm/notifications/events/subscription/subscription-imported-event.js +3 -3
- package/dist/esm/notifications/events/subscription/subscription-past-due-event.js +3 -3
- package/dist/esm/notifications/events/subscription/subscription-paused-event.js +3 -3
- package/dist/esm/notifications/events/subscription/subscription-resumed-event.js +3 -3
- package/dist/esm/notifications/events/subscription/subscription-trialing-event.js +3 -3
- package/dist/esm/notifications/events/subscription/subscription-updated-event.js +3 -3
- package/dist/esm/notifications/events/transaction/index.js +9 -9
- package/dist/esm/notifications/events/transaction/transaction-billed-event.js +3 -3
- package/dist/esm/notifications/events/transaction/transaction-canceled-event.js +3 -3
- package/dist/esm/notifications/events/transaction/transaction-completed-event.js +3 -3
- package/dist/esm/notifications/events/transaction/transaction-created-event.js +3 -3
- package/dist/esm/notifications/events/transaction/transaction-paid-event.js +3 -3
- package/dist/esm/notifications/events/transaction/transaction-past-due-event.js +3 -3
- package/dist/esm/notifications/events/transaction/transaction-payment-failed-event.js +3 -3
- package/dist/esm/notifications/events/transaction/transaction-ready-event.js +3 -3
- package/dist/esm/notifications/events/transaction/transaction-updated-event.js +3 -3
- package/dist/esm/notifications/helpers/index.js +3 -3
- package/dist/esm/notifications/helpers/webhooks-validator.js +26 -10
- package/dist/esm/notifications/helpers/webhooks.js +26 -13
- package/dist/esm/notifications/index.js +4 -4
- package/dist/esm/notifications/types/address/index.js +1 -1
- package/dist/esm/notifications/types/adjustment/index.js +6 -6
- package/dist/esm/notifications/types/business/index.js +2 -2
- package/dist/esm/notifications/types/customer/index.js +1 -1
- package/dist/esm/notifications/types/discount/index.js +1 -1
- package/dist/esm/notifications/types/index.js +12 -12
- package/dist/esm/notifications/types/payout/index.js +1 -1
- package/dist/esm/notifications/types/price/index.js +2 -2
- package/dist/esm/notifications/types/product/index.js +1 -1
- package/dist/esm/notifications/types/report/index.js +2 -2
- package/dist/esm/notifications/types/shared/index.js +22 -22
- package/dist/esm/notifications/types/subscription/index.js +7 -7
- package/dist/esm/notifications/types/transaction/index.js +6 -6
- package/dist/esm/package.json +1 -0
- package/dist/esm/paddle.js +5 -5
- package/dist/esm/resources/addresses/index.js +3 -3
- package/dist/esm/resources/addresses/operations/index.js +3 -3
- package/dist/esm/resources/adjustments/index.js +3 -3
- package/dist/esm/resources/adjustments/operations/index.js +3 -3
- package/dist/esm/resources/businesses/index.js +3 -3
- package/dist/esm/resources/businesses/operations/index.js +3 -3
- package/dist/esm/resources/customers/index.js +3 -3
- package/dist/esm/resources/customers/operations/index.js +4 -4
- package/dist/esm/resources/discounts/index.js +3 -3
- package/dist/esm/resources/discounts/operations/index.js +3 -3
- package/dist/esm/resources/event-types/index.js +2 -2
- package/dist/esm/resources/events/index.js +3 -3
- package/dist/esm/resources/events/operations/index.js +1 -1
- package/dist/esm/resources/index.js +18 -18
- package/dist/esm/resources/notification-settings/index.js +3 -3
- package/dist/esm/resources/notification-settings/operations/index.js +3 -3
- package/dist/esm/resources/notifications/index.js +3 -3
- package/dist/esm/resources/notifications/operations/index.js +2 -2
- package/dist/esm/resources/prices/index.js +3 -3
- package/dist/esm/resources/prices/operations/index.js +4 -4
- package/dist/esm/resources/pricing-preview/index.js +3 -3
- package/dist/esm/resources/pricing-preview/operations/index.js +1 -1
- package/dist/esm/resources/products/index.js +3 -3
- package/dist/esm/resources/products/operations/index.js +4 -4
- package/dist/esm/resources/reports/index.js +3 -3
- package/dist/esm/resources/reports/operations/index.js +2 -2
- package/dist/esm/resources/simulation-run-events/index.js +3 -3
- package/dist/esm/resources/simulation-run-events/operations/index.js +1 -1
- package/dist/esm/resources/simulation-runs/index.js +3 -3
- package/dist/esm/resources/simulation-runs/operations/index.js +2 -2
- package/dist/esm/resources/simulation-types/index.js +2 -2
- package/dist/esm/resources/simulations/index.js +3 -3
- package/dist/esm/resources/simulations/operations/index.js +3 -3
- package/dist/esm/resources/subscriptions/index.js +3 -3
- package/dist/esm/resources/subscriptions/operations/index.js +7 -7
- package/dist/esm/resources/transactions/index.js +3 -3
- package/dist/esm/resources/transactions/operations/index.js +8 -8
- package/dist/esm/types/address/index.js +1 -1
- package/dist/esm/types/adjustment/index.js +5 -5
- package/dist/esm/types/business/index.js +2 -2
- package/dist/esm/types/customer/index.js +3 -3
- package/dist/esm/types/discount/index.js +1 -1
- package/dist/esm/types/event-types/index.js +1 -1
- package/dist/esm/types/events/index.js +1 -1
- package/dist/esm/types/index.js +21 -21
- package/dist/esm/types/notification-settings/index.js +1 -1
- package/dist/esm/types/notifications/index.js +3 -3
- package/dist/esm/types/payout/index.js +1 -1
- package/dist/esm/types/price/index.js +3 -3
- package/dist/esm/types/pricing-preview/index.js +5 -5
- package/dist/esm/types/product/index.js +1 -1
- package/dist/esm/types/report/index.js +3 -3
- package/dist/esm/types/shared/index.js +32 -32
- package/dist/esm/types/simulation/index.js +1 -1
- package/dist/esm/types/simulation-run/index.js +1 -1
- package/dist/esm/types/simulation-run/simulation-run-event.js +1 -0
- package/dist/esm/types/simulation-run-event/index.js +1 -1
- package/dist/esm/types/simulation-type/index.js +1 -1
- package/dist/esm/types/subscription/index.js +13 -13
- package/dist/esm/types/transaction/index.js +15 -15
- package/dist/esm/version.js +1 -1
- package/dist/types/entities/address/address-collection.d.ts +3 -3
- package/dist/types/entities/address/address.d.ts +3 -3
- package/dist/types/entities/address/index.d.ts +2 -2
- package/dist/types/entities/adjustment/adjustment-collection.d.ts +3 -3
- package/dist/types/entities/adjustment/adjustment-credit-note-pdf.d.ts +1 -1
- package/dist/types/entities/adjustment/adjustment-item-totals.d.ts +1 -1
- package/dist/types/entities/adjustment/adjustment-item.d.ts +4 -3
- package/dist/types/entities/adjustment/adjustment-proration.d.ts +2 -2
- package/dist/types/entities/adjustment/adjustment-time-period.d.ts +1 -1
- package/dist/types/entities/adjustment/adjustment.d.ts +4 -3
- package/dist/types/entities/adjustment/index.d.ts +7 -7
- package/dist/types/entities/business/business-collection.d.ts +3 -3
- package/dist/types/entities/business/business.d.ts +4 -3
- package/dist/types/entities/business/contacts.d.ts +1 -1
- package/dist/types/entities/business/index.d.ts +3 -3
- package/dist/types/entities/customer/credit-balance.d.ts +3 -3
- package/dist/types/entities/customer/customer-balance.d.ts +1 -1
- package/dist/types/entities/customer/customer-collection.d.ts +3 -3
- package/dist/types/entities/customer/customer.d.ts +3 -3
- package/dist/types/entities/customer/index.d.ts +4 -4
- package/dist/types/entities/discount/discount-collection.d.ts +3 -3
- package/dist/types/entities/discount/discount.d.ts +3 -3
- package/dist/types/entities/discount/index.d.ts +2 -2
- package/dist/types/entities/event-types/event-type.d.ts +2 -2
- package/dist/types/entities/event-types/index.d.ts +1 -1
- package/dist/types/entities/events/event-collection.d.ts +3 -3
- package/dist/types/entities/events/event.d.ts +1 -1
- package/dist/types/entities/events/index.d.ts +1 -1
- package/dist/types/entities/index.d.ts +20 -20
- package/dist/types/entities/notification-settings/index.d.ts +1 -1
- package/dist/types/entities/notification-settings/notification-settings.d.ts +3 -3
- package/dist/types/entities/notifications/index.d.ts +5 -5
- package/dist/types/entities/notifications/notification-collection.d.ts +3 -3
- package/dist/types/entities/notifications/notification-log-collection.d.ts +3 -3
- package/dist/types/entities/notifications/notification.d.ts +3 -3
- package/dist/types/entities/notifications/replay-notification.d.ts +1 -1
- package/dist/types/entities/payout/index.d.ts +1 -1
- package/dist/types/entities/payout/payout.d.ts +2 -2
- package/dist/types/entities/price/index.d.ts +3 -3
- package/dist/types/entities/price/price-collection.d.ts +3 -3
- package/dist/types/entities/price/price-quantity.d.ts +1 -1
- package/dist/types/entities/price/price.d.ts +5 -3
- package/dist/types/entities/pricing-preview/index.d.ts +4 -4
- package/dist/types/entities/pricing-preview/pricing-preview-details.d.ts +2 -2
- package/dist/types/entities/pricing-preview/pricing-preview-discounts.d.ts +2 -2
- package/dist/types/entities/pricing-preview/pricing-preview-line-item.d.ts +5 -5
- package/dist/types/entities/pricing-preview/pricing-preview.d.ts +4 -4
- package/dist/types/entities/product/index.d.ts +2 -2
- package/dist/types/entities/product/product-collection.d.ts +3 -3
- package/dist/types/entities/product/product.d.ts +3 -3
- package/dist/types/entities/report/index.d.ts +4 -4
- package/dist/types/entities/report/report-collection.d.ts +3 -3
- package/dist/types/entities/report/report-csv.d.ts +1 -1
- package/dist/types/entities/report/report-filters.d.ts +2 -2
- package/dist/types/entities/report/report.d.ts +3 -3
- package/dist/types/entities/shared/adjustment-original-amount.d.ts +2 -2
- package/dist/types/entities/shared/billing-details.d.ts +2 -2
- package/dist/types/entities/shared/chargeback-fee.d.ts +2 -2
- package/dist/types/entities/shared/import-meta.d.ts +1 -1
- package/dist/types/entities/shared/index.d.ts +22 -22
- package/dist/types/entities/shared/money.d.ts +2 -2
- package/dist/types/entities/shared/payment-card.d.ts +2 -2
- package/dist/types/entities/shared/payment-method-details.d.ts +3 -3
- package/dist/types/entities/shared/payout-totals-adjustment.d.ts +3 -3
- package/dist/types/entities/shared/simulation-event-request.d.ts +1 -1
- package/dist/types/entities/shared/simulation-event-response.d.ts +1 -1
- package/dist/types/entities/shared/tax-rates-used.d.ts +2 -2
- package/dist/types/entities/shared/time-period.d.ts +2 -2
- package/dist/types/entities/shared/total-adjustments.d.ts +2 -2
- package/dist/types/entities/shared/totals.d.ts +1 -1
- package/dist/types/entities/shared/transaction-checkout.d.ts +1 -1
- package/dist/types/entities/shared/transaction-payment-attempt.d.ts +3 -3
- package/dist/types/entities/shared/transaction-payout-totals-adjusted.d.ts +3 -3
- package/dist/types/entities/shared/transaction-payout-totals.d.ts +2 -2
- package/dist/types/entities/shared/transaction-totals-adjusted.d.ts +2 -2
- package/dist/types/entities/shared/transaction-totals.d.ts +2 -2
- package/dist/types/entities/shared/unit-price-override.d.ts +3 -3
- package/dist/types/entities/shared/unit-totals.d.ts +1 -1
- package/dist/types/entities/simulation/index.d.ts +2 -2
- package/dist/types/entities/simulation/simulation-collection.d.ts +3 -3
- package/dist/types/entities/simulation/simulation.d.ts +3 -3
- package/dist/types/entities/simulation-run/index.d.ts +2 -2
- package/dist/types/entities/simulation-run/simulation-run-collection.d.ts +3 -3
- package/dist/types/entities/simulation-run/simulation-run.d.ts +4 -4
- package/dist/types/entities/simulation-run-event/index.d.ts +2 -2
- package/dist/types/entities/simulation-run-event/simulation-run-event-collection.d.ts +3 -3
- package/dist/types/entities/simulation-run-event/simulation-run-event.d.ts +4 -4
- package/dist/types/entities/simulation-types/index.d.ts +1 -1
- package/dist/types/entities/simulation-types/simulation-type.d.ts +3 -3
- package/dist/types/entities/subscription/index.d.ts +15 -15
- package/dist/types/entities/subscription/next-transaction-adjustment-item.d.ts +3 -3
- package/dist/types/entities/subscription/next-transaction-adjustment-preview.d.ts +3 -3
- package/dist/types/entities/subscription/next-transaction.d.ts +4 -2
- package/dist/types/entities/subscription/subscription-collection.d.ts +3 -3
- package/dist/types/entities/subscription/subscription-discount.d.ts +1 -1
- package/dist/types/entities/subscription/subscription-item.d.ts +5 -3
- package/dist/types/entities/subscription/subscription-management.d.ts +1 -1
- package/dist/types/entities/subscription/subscription-preview-summary-result.d.ts +2 -2
- package/dist/types/entities/subscription/subscription-preview-update-summary.d.ts +3 -2
- package/dist/types/entities/subscription/subscription-preview.d.ts +9 -3
- package/dist/types/entities/subscription/subscription-scheduled-change.d.ts +2 -2
- package/dist/types/entities/subscription/subscription-time-period.d.ts +1 -1
- package/dist/types/entities/subscription/subscription.d.ts +9 -3
- package/dist/types/entities/subscription/transaction-details-preview.d.ts +3 -2
- package/dist/types/entities/subscription/transaction-line-item-preview.d.ts +3 -2
- package/dist/types/entities/transaction/address-preview.d.ts +2 -2
- package/dist/types/entities/transaction/adjustment-totals-breakdown.d.ts +1 -1
- package/dist/types/entities/transaction/adjustment-totals.d.ts +3 -3
- package/dist/types/entities/transaction/index.d.ts +16 -16
- package/dist/types/entities/transaction/proration.d.ts +2 -2
- package/dist/types/entities/transaction/transaction-adjustment-item.d.ts +4 -3
- package/dist/types/entities/transaction/transaction-adjustment.d.ts +4 -3
- package/dist/types/entities/transaction/transaction-collection.d.ts +3 -3
- package/dist/types/entities/transaction/transaction-details.d.ts +3 -2
- package/dist/types/entities/transaction/transaction-invoice-pdf.d.ts +1 -1
- package/dist/types/entities/transaction/transaction-item-preview.d.ts +3 -2
- package/dist/types/entities/transaction/transaction-item.d.ts +3 -2
- package/dist/types/entities/transaction/transaction-line-item.d.ts +4 -2
- package/dist/types/entities/transaction/transaction-preview.d.ts +5 -3
- package/dist/types/entities/transaction/transaction-proration.d.ts +2 -2
- package/dist/types/entities/transaction/transaction.d.ts +3 -3
- package/dist/types/entities/transaction/transactions-time-period.d.ts +1 -1
- package/dist/types/enums/adjustment/index.d.ts +4 -4
- package/dist/types/enums/discount/index.d.ts +2 -2
- package/dist/types/enums/index.d.ts +13 -13
- package/dist/types/enums/notification/index.d.ts +2 -2
- package/dist/types/enums/notification-settings/index.d.ts +1 -1
- package/dist/types/enums/payout/index.d.ts +1 -1
- package/dist/types/enums/report/index.d.ts +4 -4
- package/dist/types/enums/shared/index.d.ts +16 -16
- package/dist/types/enums/simulation/index.d.ts +1 -1
- package/dist/types/enums/simulation-run/index.d.ts +1 -1
- package/dist/types/enums/simulation-run-event/index.d.ts +1 -1
- package/dist/types/enums/simulation-type/index.d.ts +1 -1
- package/dist/types/enums/subscription/index.d.ts +6 -6
- package/dist/types/enums/transaction/index.d.ts +1 -1
- package/dist/types/index.cjs.node.d.ts +14 -0
- package/dist/types/internal/api/client.d.ts +3 -3
- package/dist/types/internal/api/constants.d.ts +1 -1
- package/dist/types/internal/api/index.d.ts +3 -3
- package/dist/types/internal/base/base-resource.d.ts +2 -2
- package/dist/types/internal/base/collection.d.ts +2 -2
- package/dist/types/internal/base/index.d.ts +4 -4
- package/dist/types/internal/base/logger.d.ts +1 -2
- package/dist/types/internal/errors/generic.d.ts +1 -1
- package/dist/types/internal/index.d.ts +4 -4
- package/dist/types/internal/providers/crypto/crypto-provider.d.ts +4 -0
- package/dist/types/internal/providers/crypto/edge-crypto.d.ts +5 -0
- package/dist/types/internal/providers/crypto/node-crypto.d.ts +5 -0
- package/dist/types/internal/providers/runtime/edge-runtime.d.ts +3 -0
- package/dist/types/internal/providers/runtime/node-runtime.d.ts +3 -0
- package/dist/types/internal/providers/runtime-provider.d.ts +9 -0
- package/dist/types/internal/types/config.d.ts +1 -1
- package/dist/types/notifications/entities/address/address-notification.d.ts +3 -3
- package/dist/types/notifications/entities/address/index.d.ts +1 -1
- package/dist/types/notifications/entities/adjustment/adjustment-item-notification.d.ts +4 -3
- package/dist/types/notifications/entities/adjustment/adjustment-item-totals-notification.d.ts +1 -1
- package/dist/types/notifications/entities/adjustment/adjustment-notification.d.ts +4 -3
- package/dist/types/notifications/entities/adjustment/adjustment-proration-notification.d.ts +2 -2
- package/dist/types/notifications/entities/adjustment/adjustment-time-period-notification.d.ts +1 -1
- package/dist/types/notifications/entities/adjustment/index.d.ts +5 -5
- package/dist/types/notifications/entities/business/business-notification.d.ts +5 -4
- package/dist/types/notifications/entities/business/contacts-notification.d.ts +1 -1
- package/dist/types/notifications/entities/business/index.d.ts +2 -2
- package/dist/types/notifications/entities/customer/customer-notification.d.ts +4 -4
- package/dist/types/notifications/entities/customer/index.d.ts +1 -1
- package/dist/types/notifications/entities/discount/discount-notification.d.ts +4 -4
- package/dist/types/notifications/entities/discount/index.d.ts +1 -1
- package/dist/types/notifications/entities/index.d.ts +12 -12
- package/dist/types/notifications/entities/payout/index.d.ts +1 -1
- package/dist/types/notifications/entities/payout/payout-notification.d.ts +2 -2
- package/dist/types/notifications/entities/price/index.d.ts +2 -2
- package/dist/types/notifications/entities/price/price-notification.d.ts +5 -4
- package/dist/types/notifications/entities/price/price-quantity-notification.d.ts +1 -1
- package/dist/types/notifications/entities/product/index.d.ts +1 -1
- package/dist/types/notifications/entities/product/product-notification.d.ts +4 -4
- package/dist/types/notifications/entities/report/index.d.ts +2 -2
- package/dist/types/notifications/entities/report/report-filters-notification.d.ts +2 -2
- package/dist/types/notifications/entities/report/report-notification.d.ts +3 -3
- package/dist/types/notifications/entities/shared/adjustment-original-amount-notification.d.ts +2 -2
- package/dist/types/notifications/entities/shared/billing-details-notification.d.ts +2 -2
- package/dist/types/notifications/entities/shared/chargeback-fee-notification.d.ts +2 -2
- package/dist/types/notifications/entities/shared/import-meta-notification.d.ts +1 -1
- package/dist/types/notifications/entities/shared/index.d.ts +20 -20
- package/dist/types/notifications/entities/shared/money-notification.d.ts +2 -2
- package/dist/types/notifications/entities/shared/payment-card-notification.d.ts +2 -2
- package/dist/types/notifications/entities/shared/payment-method-details-notification.d.ts +3 -3
- package/dist/types/notifications/entities/shared/payout-totals-adjustment-notification.d.ts +3 -3
- package/dist/types/notifications/entities/shared/tax-rates-used-notification.d.ts +2 -2
- package/dist/types/notifications/entities/shared/time-period-notification.d.ts +2 -2
- package/dist/types/notifications/entities/shared/total-adjustments-notification.d.ts +2 -2
- package/dist/types/notifications/entities/shared/totals-notification.d.ts +1 -1
- package/dist/types/notifications/entities/shared/transaction-checkout-notification.d.ts +1 -1
- package/dist/types/notifications/entities/shared/transaction-payment-attempt-notification.d.ts +3 -3
- package/dist/types/notifications/entities/shared/transaction-payout-totals-adjusted-notification.d.ts +3 -3
- package/dist/types/notifications/entities/shared/transaction-payout-totals-notification.d.ts +2 -2
- package/dist/types/notifications/entities/shared/transaction-totals-adjusted-notification.d.ts +2 -2
- package/dist/types/notifications/entities/shared/transaction-totals-notification.d.ts +2 -2
- package/dist/types/notifications/entities/shared/unit-price-override-notification.d.ts +3 -3
- package/dist/types/notifications/entities/shared/unit-totals-notification.d.ts +1 -1
- package/dist/types/notifications/entities/subscription/index.d.ts +6 -6
- package/dist/types/notifications/entities/subscription/subscription-discount-notification.d.ts +1 -1
- package/dist/types/notifications/entities/subscription/subscription-item-notification.d.ts +5 -3
- package/dist/types/notifications/entities/subscription/subscription-notification.d.ts +8 -4
- package/dist/types/notifications/entities/subscription/subscription-price-notification.d.ts +5 -4
- package/dist/types/notifications/entities/subscription/subscription-scheduled-change-notification.d.ts +2 -2
- package/dist/types/notifications/entities/subscription/subscription-time-period-notification.d.ts +1 -1
- package/dist/types/notifications/entities/transaction/index.d.ts +6 -6
- package/dist/types/notifications/entities/transaction/transaction-details-notification.d.ts +3 -2
- package/dist/types/notifications/entities/transaction/transaction-item-notification.d.ts +3 -2
- package/dist/types/notifications/entities/transaction/transaction-line-item-notification.d.ts +4 -2
- package/dist/types/notifications/entities/transaction/transaction-notification.d.ts +7 -4
- package/dist/types/notifications/entities/transaction/transaction-proration-notification.d.ts +2 -2
- package/dist/types/notifications/entities/transaction/transactions-time-period-notification.d.ts +1 -1
- package/dist/types/notifications/events/address/address-created-event.d.ts +5 -5
- package/dist/types/notifications/events/address/address-imported-event.d.ts +5 -5
- package/dist/types/notifications/events/address/address-updated-event.d.ts +5 -5
- package/dist/types/notifications/events/address/index.d.ts +3 -3
- package/dist/types/notifications/events/adjustment/adjustment-created-event.d.ts +5 -5
- package/dist/types/notifications/events/adjustment/adjustment-updated-event.d.ts +5 -5
- package/dist/types/notifications/events/adjustment/index.d.ts +2 -2
- package/dist/types/notifications/events/business/business-created-event.d.ts +5 -5
- package/dist/types/notifications/events/business/business-imported-event.d.ts +5 -5
- package/dist/types/notifications/events/business/business-updated-event.d.ts +5 -5
- package/dist/types/notifications/events/business/index.d.ts +3 -3
- package/dist/types/notifications/events/customer/customer-created-event.d.ts +5 -5
- package/dist/types/notifications/events/customer/customer-imported-event.d.ts +5 -5
- package/dist/types/notifications/events/customer/customer-updated-event.d.ts +5 -5
- package/dist/types/notifications/events/customer/index.d.ts +3 -3
- package/dist/types/notifications/events/discount/discount-created-event.d.ts +5 -5
- package/dist/types/notifications/events/discount/discount-imported-event.d.ts +5 -5
- package/dist/types/notifications/events/discount/discount-updated-event.d.ts +5 -5
- package/dist/types/notifications/events/discount/index.d.ts +3 -3
- package/dist/types/notifications/events/index.d.ts +11 -11
- package/dist/types/notifications/events/payout/index.d.ts +2 -2
- package/dist/types/notifications/events/payout/payout-created-event.d.ts +5 -5
- package/dist/types/notifications/events/payout/payout-paid-event.d.ts +5 -5
- package/dist/types/notifications/events/price/index.d.ts +3 -3
- package/dist/types/notifications/events/price/price-created-event.d.ts +5 -5
- package/dist/types/notifications/events/price/price-imported-event.d.ts +5 -5
- package/dist/types/notifications/events/price/price-updated-event.d.ts +5 -5
- package/dist/types/notifications/events/product/index.d.ts +3 -3
- package/dist/types/notifications/events/product/product-created-event.d.ts +5 -5
- package/dist/types/notifications/events/product/product-imported-event.d.ts +5 -5
- package/dist/types/notifications/events/product/product-updated-event.d.ts +5 -5
- package/dist/types/notifications/events/report/index.d.ts +2 -2
- package/dist/types/notifications/events/report/report-created-event.d.ts +5 -5
- package/dist/types/notifications/events/report/report-updated-event.d.ts +5 -5
- package/dist/types/notifications/events/subscription/index.d.ts +9 -9
- package/dist/types/notifications/events/subscription/subscription-activated-event.d.ts +5 -5
- package/dist/types/notifications/events/subscription/subscription-canceled-event.d.ts +5 -5
- package/dist/types/notifications/events/subscription/subscription-created-event.d.ts +5 -5
- package/dist/types/notifications/events/subscription/subscription-imported-event.d.ts +5 -5
- package/dist/types/notifications/events/subscription/subscription-past-due-event.d.ts +5 -5
- package/dist/types/notifications/events/subscription/subscription-paused-event.d.ts +5 -5
- package/dist/types/notifications/events/subscription/subscription-resumed-event.d.ts +5 -5
- package/dist/types/notifications/events/subscription/subscription-trialing-event.d.ts +5 -5
- package/dist/types/notifications/events/subscription/subscription-updated-event.d.ts +5 -5
- package/dist/types/notifications/events/transaction/index.d.ts +9 -9
- package/dist/types/notifications/events/transaction/transaction-billed-event.d.ts +5 -5
- package/dist/types/notifications/events/transaction/transaction-canceled-event.d.ts +5 -5
- package/dist/types/notifications/events/transaction/transaction-completed-event.d.ts +5 -5
- package/dist/types/notifications/events/transaction/transaction-created-event.d.ts +5 -5
- package/dist/types/notifications/events/transaction/transaction-paid-event.d.ts +5 -5
- package/dist/types/notifications/events/transaction/transaction-past-due-event.d.ts +5 -5
- package/dist/types/notifications/events/transaction/transaction-payment-failed-event.d.ts +5 -5
- package/dist/types/notifications/events/transaction/transaction-ready-event.d.ts +5 -5
- package/dist/types/notifications/events/transaction/transaction-updated-event.d.ts +5 -5
- package/dist/types/notifications/helpers/index.d.ts +3 -3
- package/dist/types/notifications/helpers/types.d.ts +1 -1
- package/dist/types/notifications/helpers/webhooks-validator.d.ts +1 -1
- package/dist/types/notifications/helpers/webhooks.d.ts +4 -4
- package/dist/types/notifications/index.d.ts +4 -4
- package/dist/types/notifications/types/address/address-notification-response.d.ts +2 -2
- package/dist/types/notifications/types/address/index.d.ts +1 -1
- package/dist/types/notifications/types/adjustment/adjustment-item-notification-response.d.ts +3 -2
- package/dist/types/notifications/types/adjustment/adjustment-notification-response.d.ts +3 -2
- package/dist/types/notifications/types/adjustment/adjustment-totals-notification-response.d.ts +2 -2
- package/dist/types/notifications/types/adjustment/adjustments-proration-notification-response.d.ts +1 -1
- package/dist/types/notifications/types/adjustment/index.d.ts +6 -6
- package/dist/types/notifications/types/business/business-notification-response.d.ts +4 -3
- package/dist/types/notifications/types/business/index.d.ts +2 -2
- package/dist/types/notifications/types/customer/customer-notification-response.d.ts +3 -3
- package/dist/types/notifications/types/customer/index.d.ts +1 -1
- package/dist/types/notifications/types/discount/discount-notification-response.d.ts +3 -3
- package/dist/types/notifications/types/discount/index.d.ts +1 -1
- package/dist/types/notifications/types/index.d.ts +12 -12
- package/dist/types/notifications/types/payout/index.d.ts +1 -1
- package/dist/types/notifications/types/payout/payout-notification-response.d.ts +1 -1
- package/dist/types/notifications/types/price/index.d.ts +2 -2
- package/dist/types/notifications/types/price/price-notification-response.d.ts +4 -3
- package/dist/types/notifications/types/product/index.d.ts +1 -1
- package/dist/types/notifications/types/product/product-notification-response.d.ts +3 -3
- package/dist/types/notifications/types/report/index.d.ts +2 -2
- package/dist/types/notifications/types/report/report-filters-notification-response.d.ts +1 -1
- package/dist/types/notifications/types/report/report-notification-response.d.ts +2 -2
- package/dist/types/notifications/types/shared/adjustment-original-amount-notification-response.d.ts +1 -1
- package/dist/types/notifications/types/shared/billing-details-notification-response.d.ts +1 -1
- package/dist/types/notifications/types/shared/chargeback-fee.d.ts +1 -1
- package/dist/types/notifications/types/shared/index.d.ts +22 -22
- package/dist/types/notifications/types/shared/money-notification-response.d.ts +1 -1
- package/dist/types/notifications/types/shared/payment-card-notification-response.d.ts +1 -1
- package/dist/types/notifications/types/shared/payment-method-details.d.ts +2 -2
- package/dist/types/notifications/types/shared/payout-totals-adjustment-notification-response.d.ts +2 -2
- package/dist/types/notifications/types/shared/shared-price-notification-response.d.ts +7 -3
- package/dist/types/notifications/types/shared/shared-product-notification-response.d.ts +3 -3
- package/dist/types/notifications/types/shared/tax-rates-used-notification-response.d.ts +1 -1
- package/dist/types/notifications/types/shared/time-period-notification.d.ts +1 -1
- package/dist/types/notifications/types/shared/total-adjustments-notification-response.d.ts +1 -1
- package/dist/types/notifications/types/shared/transaction-payment-attempt-notification-response.d.ts +2 -2
- package/dist/types/notifications/types/shared/transaction-payout-totals-adjusted-notification-response.d.ts +2 -2
- package/dist/types/notifications/types/shared/transaction-payout-totals-notification-response.d.ts +1 -1
- package/dist/types/notifications/types/shared/transaction-totals-adjusted-notification-response.d.ts +1 -1
- package/dist/types/notifications/types/shared/transaction-totals-notification-response.d.ts +1 -1
- package/dist/types/notifications/types/shared/unit-price-override-notification-response.d.ts +2 -2
- package/dist/types/notifications/types/subscription/index.d.ts +7 -7
- package/dist/types/notifications/types/subscription/subscription-item-notification-response.d.ts +4 -2
- package/dist/types/notifications/types/subscription/subscription-notification-response.d.ts +7 -3
- package/dist/types/notifications/types/subscription/subscription-price-notification-response.d.ts +4 -3
- package/dist/types/notifications/types/subscription/subscription-scheduled-change-notification-response.d.ts +1 -1
- package/dist/types/notifications/types/transaction/index.d.ts +6 -6
- package/dist/types/notifications/types/transaction/transaction-details-notification-response.d.ts +2 -1
- package/dist/types/notifications/types/transaction/transaction-item-notification-response.d.ts +2 -1
- package/dist/types/notifications/types/transaction/transaction-line-item-notification-response.d.ts +2 -1
- package/dist/types/notifications/types/transaction/transaction-notification-response.d.ts +6 -3
- package/dist/types/notifications/types/transaction/transaction-proration-notification-response.d.ts +1 -1
- package/dist/types/paddle.d.ts +4 -4
- package/dist/types/resources/addresses/index.d.ts +4 -4
- package/dist/types/resources/addresses/operations/create-address-request-body.d.ts +2 -2
- package/dist/types/resources/addresses/operations/index.d.ts +3 -3
- package/dist/types/resources/addresses/operations/list-address-query-parameters.d.ts +1 -1
- package/dist/types/resources/addresses/operations/update-address-request-body.d.ts +2 -2
- package/dist/types/resources/adjustments/index.d.ts +4 -4
- package/dist/types/resources/adjustments/operations/create-adjustment-request-body.d.ts +1 -1
- package/dist/types/resources/adjustments/operations/get-adjustment-credit-note-query-parameters.d.ts +1 -1
- package/dist/types/resources/adjustments/operations/index.d.ts +3 -3
- package/dist/types/resources/adjustments/operations/list-adjustment-query-parameters.d.ts +1 -1
- package/dist/types/resources/businesses/index.d.ts +4 -4
- package/dist/types/resources/businesses/operations/create-business-request-body.d.ts +1 -1
- package/dist/types/resources/businesses/operations/index.d.ts +3 -3
- package/dist/types/resources/businesses/operations/list-business-query-parameters.d.ts +1 -1
- package/dist/types/resources/businesses/operations/update-business-request-body.d.ts +2 -2
- package/dist/types/resources/customers/index.d.ts +4 -4
- package/dist/types/resources/customers/operations/create-customer-request-body.d.ts +1 -1
- package/dist/types/resources/customers/operations/get-credit-balance-query-parameters.d.ts +1 -1
- package/dist/types/resources/customers/operations/index.d.ts +4 -4
- package/dist/types/resources/customers/operations/list-customer-query-parameters.d.ts +1 -1
- package/dist/types/resources/customers/operations/update-customer-request-body.d.ts +2 -2
- package/dist/types/resources/discounts/index.d.ts +4 -4
- package/dist/types/resources/discounts/operations/create-discount-request-body.d.ts +2 -2
- package/dist/types/resources/discounts/operations/index.d.ts +3 -3
- package/dist/types/resources/discounts/operations/list-discount-query-parameters.d.ts +1 -1
- package/dist/types/resources/discounts/operations/update-discount-request-body.d.ts +2 -2
- package/dist/types/resources/event-types/index.d.ts +2 -2
- package/dist/types/resources/events/index.d.ts +4 -4
- package/dist/types/resources/events/operations/index.d.ts +1 -1
- package/dist/types/resources/index.d.ts +18 -18
- package/dist/types/resources/notification-settings/index.d.ts +4 -4
- package/dist/types/resources/notification-settings/operations/create-notification-settings-request-body.d.ts +2 -2
- package/dist/types/resources/notification-settings/operations/index.d.ts +3 -3
- package/dist/types/resources/notification-settings/operations/update-notification-settings-request-body.d.ts +1 -1
- package/dist/types/resources/notifications/index.d.ts +4 -4
- package/dist/types/resources/notifications/operations/index.d.ts +2 -2
- package/dist/types/resources/notifications/operations/list-notification-query-parameters.d.ts +1 -1
- package/dist/types/resources/prices/index.d.ts +4 -4
- package/dist/types/resources/prices/operations/create-price-request-body.d.ts +2 -2
- package/dist/types/resources/prices/operations/index.d.ts +4 -4
- package/dist/types/resources/prices/operations/list-price-query-parameters.d.ts +1 -1
- package/dist/types/resources/prices/operations/update-price-request-body.d.ts +2 -2
- package/dist/types/resources/pricing-preview/index.d.ts +4 -4
- package/dist/types/resources/pricing-preview/operations/index.d.ts +1 -1
- package/dist/types/resources/pricing-preview/operations/pricing-preview-request-body.d.ts +2 -2
- package/dist/types/resources/products/index.d.ts +4 -4
- package/dist/types/resources/products/operations/create-product-request-body.d.ts +2 -2
- package/dist/types/resources/products/operations/index.d.ts +4 -4
- package/dist/types/resources/products/operations/list-product-query-parameters.d.ts +1 -1
- package/dist/types/resources/products/operations/update-product-request-body.d.ts +2 -2
- package/dist/types/resources/reports/index.d.ts +4 -4
- package/dist/types/resources/reports/operations/create-report-request-object.d.ts +2 -2
- package/dist/types/resources/reports/operations/index.d.ts +2 -2
- package/dist/types/resources/reports/operations/list-report-query-parameters.d.ts +1 -1
- package/dist/types/resources/simulation-run-events/index.d.ts +4 -4
- package/dist/types/resources/simulation-run-events/operations/index.d.ts +1 -1
- package/dist/types/resources/simulation-runs/index.d.ts +4 -4
- package/dist/types/resources/simulation-runs/operations/index.d.ts +2 -2
- package/dist/types/resources/simulation-types/index.d.ts +2 -2
- package/dist/types/resources/simulations/index.d.ts +4 -4
- package/dist/types/resources/simulations/operations/create-simulation-request-body.d.ts +3 -3
- package/dist/types/resources/simulations/operations/index.d.ts +3 -3
- package/dist/types/resources/simulations/operations/list-simulation-query-parameters.d.ts +1 -1
- package/dist/types/resources/simulations/operations/update-simulation-request-body.d.ts +2 -2
- package/dist/types/resources/subscriptions/index.d.ts +4 -4
- package/dist/types/resources/subscriptions/operations/cancel-subscription-request-object.d.ts +1 -1
- package/dist/types/resources/subscriptions/operations/create-subscription-charge-request-object.d.ts +2 -2
- package/dist/types/resources/subscriptions/operations/index.d.ts +7 -7
- package/dist/types/resources/subscriptions/operations/list-subscription-query-parameters.d.ts +1 -1
- package/dist/types/resources/subscriptions/operations/pause-subscription-request-object.d.ts +1 -1
- package/dist/types/resources/subscriptions/operations/update-subscription-request-body.d.ts +2 -2
- package/dist/types/resources/transactions/index.d.ts +4 -4
- package/dist/types/resources/transactions/operations/create-transaction-request-body.d.ts +2 -2
- package/dist/types/resources/transactions/operations/get-transaction-invoice-pdf-query-parameters.d.ts +1 -1
- package/dist/types/resources/transactions/operations/index.d.ts +8 -8
- package/dist/types/resources/transactions/operations/list-transaction-query-parameters.d.ts +1 -1
- package/dist/types/resources/transactions/operations/transaction-preview-request-body.d.ts +2 -2
- package/dist/types/resources/transactions/operations/update-transaction-request-body.d.ts +2 -2
- package/dist/types/types/address/address-response.d.ts +2 -2
- package/dist/types/types/address/index.d.ts +1 -1
- package/dist/types/types/adjustment/adjustment-item-response.d.ts +3 -2
- package/dist/types/types/adjustment/adjustment-response.d.ts +3 -2
- package/dist/types/types/adjustment/adjustments-proration-response.d.ts +1 -1
- package/dist/types/types/adjustment/index.d.ts +5 -5
- package/dist/types/types/business/business-response.d.ts +3 -2
- package/dist/types/types/business/index.d.ts +2 -2
- package/dist/types/types/customer/credit-balance-response.d.ts +2 -2
- package/dist/types/types/customer/customer-response.d.ts +2 -2
- package/dist/types/types/customer/index.d.ts +3 -3
- package/dist/types/types/discount/discount-response.d.ts +2 -2
- package/dist/types/types/discount/index.d.ts +1 -1
- package/dist/types/types/event-types/event-type-response.d.ts +1 -1
- package/dist/types/types/event-types/index.d.ts +1 -1
- package/dist/types/types/events/events-response.d.ts +1 -1
- package/dist/types/types/events/index.d.ts +1 -1
- package/dist/types/types/index.d.ts +21 -21
- package/dist/types/types/notification-settings/index.d.ts +1 -1
- package/dist/types/types/notification-settings/notification-settings-response.d.ts +2 -2
- package/dist/types/types/notifications/index.d.ts +3 -3
- package/dist/types/types/notifications/notification.d.ts +3 -3
- package/dist/types/types/payout/index.d.ts +1 -1
- package/dist/types/types/payout/payout-response.d.ts +1 -1
- package/dist/types/types/price/index.d.ts +3 -3
- package/dist/types/types/price/non-catalog-price-request.d.ts +3 -3
- package/dist/types/types/price/price-response.d.ts +2 -2
- package/dist/types/types/price/subscription-non-catalog-price-request.d.ts +3 -3
- package/dist/types/types/pricing-preview/index.d.ts +5 -5
- package/dist/types/types/pricing-preview/pricing-preview-details-response.d.ts +1 -1
- package/dist/types/types/pricing-preview/pricing-preview-discounts-response.d.ts +1 -1
- package/dist/types/types/pricing-preview/pricing-preview-line-item-response.d.ts +4 -4
- package/dist/types/types/pricing-preview/pricing-preview-response.d.ts +4 -4
- package/dist/types/types/product/index.d.ts +1 -1
- package/dist/types/types/product/product-response.d.ts +3 -2
- package/dist/types/types/report/index.d.ts +3 -3
- package/dist/types/types/report/report-filters.d.ts +1 -1
- package/dist/types/types/report/report.d.ts +2 -2
- package/dist/types/types/shared/adjustment-original-amount-response.d.ts +1 -1
- package/dist/types/types/shared/billing-details-create.d.ts +1 -1
- package/dist/types/types/shared/billing-details-response.d.ts +1 -1
- package/dist/types/types/shared/billing-details-update.d.ts +1 -1
- package/dist/types/types/shared/chargeback-fee.d.ts +1 -1
- package/dist/types/types/shared/index.d.ts +32 -32
- package/dist/types/types/shared/money-response.d.ts +1 -1
- package/dist/types/types/shared/money.d.ts +1 -1
- package/dist/types/types/shared/payment-card-response.d.ts +1 -1
- package/dist/types/types/shared/payment-method-details.d.ts +2 -2
- package/dist/types/types/shared/payout-totals-adjustment-response.d.ts +2 -2
- package/dist/types/types/shared/simulation-payload.d.ts +2 -2
- package/dist/types/types/shared/tax-rates-used-response.d.ts +1 -1
- package/dist/types/types/shared/time-period.d.ts +1 -1
- package/dist/types/types/shared/total-adjustments-response.d.ts +1 -1
- package/dist/types/types/shared/transaction-details-preview-response.d.ts +3 -1
- package/dist/types/types/shared/transaction-line-item-preview-response.d.ts +3 -1
- package/dist/types/types/shared/transaction-payment-attempt-response.d.ts +2 -2
- package/dist/types/types/shared/transaction-payout-totals-adjusted-response.d.ts +2 -2
- package/dist/types/types/shared/transaction-payout-totals-response.d.ts +1 -1
- package/dist/types/types/shared/transaction-totals-adjusted-response.d.ts +1 -1
- package/dist/types/types/shared/transaction-totals-response.d.ts +1 -1
- package/dist/types/types/shared/unit-price-override-response.d.ts +2 -2
- package/dist/types/types/shared/unit-price-override.d.ts +2 -2
- package/dist/types/types/simulation/index.d.ts +1 -1
- package/dist/types/types/simulation/simulation-response.d.ts +2 -2
- package/dist/types/types/simulation-run/index.d.ts +1 -1
- package/dist/types/types/simulation-run/simulation-run-event.d.ts +17 -0
- package/dist/types/types/simulation-run/simulation-run-response.d.ts +3 -3
- package/dist/types/types/simulation-run-event/index.d.ts +1 -1
- package/dist/types/types/simulation-run-event/simulation-run-event-response.d.ts +3 -3
- package/dist/types/types/simulation-type/index.d.ts +1 -1
- package/dist/types/types/simulation-type/simulation-type.d.ts +2 -2
- package/dist/types/types/subscription/index.d.ts +13 -13
- package/dist/types/types/subscription/next-transaction-response.d.ts +3 -1
- package/dist/types/types/subscription/subscription-item-response.d.ts +4 -2
- package/dist/types/types/subscription/subscription-preview-response.d.ts +9 -2
- package/dist/types/types/subscription/subscription-preview-update-summary.d.ts +2 -1
- package/dist/types/types/subscription/subscription-response.d.ts +8 -2
- package/dist/types/types/subscription/subscription-result-response.d.ts +1 -1
- package/dist/types/types/subscription/subscription-scheduled-change-response.d.ts +1 -1
- package/dist/types/types/subscription/subscription-update-item.d.ts +1 -1
- package/dist/types/types/subscription/subscription-update-non-catalog-price-request.d.ts +1 -1
- package/dist/types/types/transaction/adjustment-totals-response.d.ts +2 -2
- package/dist/types/types/transaction/index.d.ts +15 -15
- package/dist/types/types/transaction/transaction-adjustment-item-response.d.ts +3 -2
- package/dist/types/types/transaction/transaction-adjustment-response.d.ts +3 -2
- package/dist/types/types/transaction/transaction-details-response.d.ts +2 -1
- package/dist/types/types/transaction/transaction-item-response.d.ts +2 -1
- package/dist/types/types/transaction/transaction-item.d.ts +1 -1
- package/dist/types/types/transaction/transaction-line-item-response.d.ts +3 -1
- package/dist/types/types/transaction/transaction-preview-item.d.ts +1 -1
- package/dist/types/types/transaction/transaction-preview-response.d.ts +5 -5
- package/dist/types/types/transaction/transaction-proration-response.d.ts +1 -1
- package/dist/types/types/transaction/transaction-response.d.ts +11 -2
- package/dist/types/version.d.ts +1 -1
- package/package.json +30 -10
- package/dist/cjs/index.js +0 -30
- package/dist/esm/index.js +0 -8
- package/dist/types/index.d.ts +0 -8
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type IChargebackFee } from '
|
|
2
|
-
import { type PayoutCurrencyCode } from '../../enums';
|
|
1
|
+
import { type IChargebackFee } from './chargeback-fee.js';
|
|
2
|
+
import { type PayoutCurrencyCode } from '../../enums/index.js';
|
|
3
3
|
export interface IPayoutTotalsAdjustmentResponse {
|
|
4
4
|
subtotal: string;
|
|
5
5
|
tax: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { IEventName } from '../../notifications';
|
|
2
|
-
import { type AddressCreatedEvent, type AddressImportedEvent, type AddressUpdatedEvent, type AdjustmentCreatedEvent, type AdjustmentUpdatedEvent, type BusinessCreatedEvent, type BusinessImportedEvent, type BusinessUpdatedEvent, type CustomerCreatedEvent, type CustomerImportedEvent, type CustomerUpdatedEvent, type DiscountCreatedEvent, type DiscountImportedEvent, type DiscountUpdatedEvent, type PayoutCreatedEvent, type PayoutPaidEvent, type PriceCreatedEvent, type PriceImportedEvent, type PriceUpdatedEvent, type ProductCreatedEvent, type ProductImportedEvent, type ProductUpdatedEvent, type ReportCreatedEvent, type ReportUpdatedEvent, type SubscriptionActivatedEvent, type SubscriptionCanceledEvent, type SubscriptionCreatedEvent, type SubscriptionImportedEvent, type SubscriptionPastDueEvent, type SubscriptionPausedEvent, type SubscriptionResumedEvent, type SubscriptionTrialingEvent, type SubscriptionUpdatedEvent, type TransactionBilledEvent, type TransactionCanceledEvent, type TransactionCompletedEvent, type TransactionCreatedEvent, type TransactionPaidEvent, type TransactionPastDueEvent, type TransactionPaymentFailedEvent, type TransactionReadyEvent, type TransactionUpdatedEvent } from '../../notifications/events';
|
|
1
|
+
import type { IEventName } from '../../notifications/index.js';
|
|
2
|
+
import { type AddressCreatedEvent, type AddressImportedEvent, type AddressUpdatedEvent, type AdjustmentCreatedEvent, type AdjustmentUpdatedEvent, type BusinessCreatedEvent, type BusinessImportedEvent, type BusinessUpdatedEvent, type CustomerCreatedEvent, type CustomerImportedEvent, type CustomerUpdatedEvent, type DiscountCreatedEvent, type DiscountImportedEvent, type DiscountUpdatedEvent, type PayoutCreatedEvent, type PayoutPaidEvent, type PriceCreatedEvent, type PriceImportedEvent, type PriceUpdatedEvent, type ProductCreatedEvent, type ProductImportedEvent, type ProductUpdatedEvent, type ReportCreatedEvent, type ReportUpdatedEvent, type SubscriptionActivatedEvent, type SubscriptionCanceledEvent, type SubscriptionCreatedEvent, type SubscriptionImportedEvent, type SubscriptionPastDueEvent, type SubscriptionPausedEvent, type SubscriptionResumedEvent, type SubscriptionTrialingEvent, type SubscriptionUpdatedEvent, type TransactionBilledEvent, type TransactionCanceledEvent, type TransactionCompletedEvent, type TransactionCreatedEvent, type TransactionPaidEvent, type TransactionPastDueEvent, type TransactionPaymentFailedEvent, type TransactionReadyEvent, type TransactionUpdatedEvent } from '../../notifications/events/index.js';
|
|
3
3
|
interface SimulationEventPayloadMap {
|
|
4
4
|
'address.created': AddressCreatedEvent;
|
|
5
5
|
'address.updated': AddressUpdatedEvent;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import { type ITaxRatesUsedResponse
|
|
1
|
+
import { type ITaxRatesUsedResponse } from './tax-rates-used-response.js';
|
|
2
|
+
import { type ITransactionTotalsResponse } from './transaction-totals-response.js';
|
|
3
|
+
import { type ITransactionLineItemPreviewResponse } from './transaction-line-item-preview-response.js';
|
|
2
4
|
export interface ITransactionDetailsPreviewResponse {
|
|
3
5
|
tax_rates_used: ITaxRatesUsedResponse[];
|
|
4
6
|
totals: ITransactionTotalsResponse;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type IUnitTotals } from './unit-totals.js';
|
|
2
|
+
import { type ITotals } from './totals.js';
|
|
3
|
+
import { type IProductResponse } from '../product/index.js';
|
|
2
4
|
export interface ITransactionLineItemPreviewResponse {
|
|
3
5
|
price_id: string;
|
|
4
6
|
quantity: number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type
|
|
2
|
-
import { type
|
|
1
|
+
import { type ErrorCode, type PaymentAttemptStatus } from '../../enums/index.js';
|
|
2
|
+
import { type IPaymentMethodDetails } from './payment-method-details.js';
|
|
3
3
|
export interface ITransactionPaymentAttemptResponse {
|
|
4
4
|
payment_attempt_id: string;
|
|
5
5
|
stored_payment_method_id: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type IChargebackFee } from '
|
|
2
|
-
import { type PayoutCurrencyCode } from '../../enums';
|
|
1
|
+
import { type IChargebackFee } from './chargeback-fee.js';
|
|
2
|
+
import { type PayoutCurrencyCode } from '../../enums/index.js';
|
|
3
3
|
export interface ITransactionPayoutTotalsAdjustedResponse {
|
|
4
4
|
subtotal: string;
|
|
5
5
|
tax: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type
|
|
2
|
-
import { type
|
|
1
|
+
import { type CountryCode } from '../../enums/index.js';
|
|
2
|
+
import { type IMoneyResponse } from './money-response.js';
|
|
3
3
|
export interface IUnitPriceOverrideResponse {
|
|
4
4
|
country_codes: CountryCode[];
|
|
5
5
|
unit_price: IMoneyResponse;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type
|
|
2
|
-
import { type
|
|
1
|
+
import { type CountryCode } from '../../enums/index.js';
|
|
2
|
+
import { type IMoney } from './money.js';
|
|
3
3
|
export interface IUnitPriceOverride {
|
|
4
4
|
countryCodes: CountryCode[];
|
|
5
5
|
unitPrice: IMoney;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './simulation-response';
|
|
1
|
+
export * from './simulation-response.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { Status } from '../../enums';
|
|
2
|
-
import type { DiscriminatedSimulationEventResponse } from '../shared/simulation-payload';
|
|
1
|
+
import type { Status } from '../../enums/index.js';
|
|
2
|
+
import type { DiscriminatedSimulationEventResponse } from '../shared/simulation-payload.js';
|
|
3
3
|
export type ISimulationResponse = DiscriminatedSimulationEventResponse<BaseSimulationResponse>;
|
|
4
4
|
interface BaseSimulationResponse {
|
|
5
5
|
id: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './simulation-run-response';
|
|
1
|
+
export * from './simulation-run-response.js';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { Status, SimulationScenarioType } from '../../enums/index.js';
|
|
2
|
+
import type { IEventName } from '../../notifications/index.js';
|
|
3
|
+
export interface ISimulationRunEvent {
|
|
4
|
+
id: string;
|
|
5
|
+
status: Status;
|
|
6
|
+
event_type: IEventName | SimulationScenarioType;
|
|
7
|
+
payload: any;
|
|
8
|
+
request?: {
|
|
9
|
+
body: string;
|
|
10
|
+
} | null;
|
|
11
|
+
response?: {
|
|
12
|
+
body: string;
|
|
13
|
+
status_code: number;
|
|
14
|
+
} | null;
|
|
15
|
+
created_at: string;
|
|
16
|
+
updated_at: string;
|
|
17
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type {
|
|
3
|
-
import type {
|
|
1
|
+
import type { SimulationRunStatus, SimulationScenarioType } from '../../enums/index.js';
|
|
2
|
+
import type { IEventName } from '../../notifications/index.js';
|
|
3
|
+
import type { ISimulationRunEventResponse } from '../index.js';
|
|
4
4
|
export interface ISimulationRunResponse {
|
|
5
5
|
id: string;
|
|
6
6
|
status: SimulationRunStatus;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './simulation-run-event-response';
|
|
1
|
+
export * from './simulation-run-event-response.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { ISimulationEventRequest, ISimulationEventResponse } from '../shared';
|
|
2
|
-
import type { SimulationRunEventStatus, SimulationScenarioType } from '../../enums';
|
|
3
|
-
import type { IEventName } from '../../notifications';
|
|
1
|
+
import type { ISimulationEventRequest, ISimulationEventResponse } from '../shared/index.js';
|
|
2
|
+
import type { SimulationRunEventStatus, SimulationScenarioType } from '../../enums/index.js';
|
|
3
|
+
import type { IEventName } from '../../notifications/index.js';
|
|
4
4
|
export interface ISimulationRunEventResponse {
|
|
5
5
|
id: string;
|
|
6
6
|
status: SimulationRunEventStatus;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './simulation-type';
|
|
1
|
+
export * from './simulation-type.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type SimulationKind } from '../../enums';
|
|
2
|
-
import { type IEventName } from '../../notifications';
|
|
1
|
+
import { type SimulationKind } from '../../enums/index.js';
|
|
2
|
+
import { type IEventName } from '../../notifications/index.js';
|
|
3
3
|
export interface ISimulationTypeResponse {
|
|
4
4
|
name: string;
|
|
5
5
|
label: string;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
export * from './subscription-discount-response';
|
|
2
|
-
export * from './subscription-time-period-response';
|
|
3
|
-
export * from './subscription-scheduled-change-response';
|
|
4
|
-
export * from './subscription-management-response';
|
|
5
|
-
export * from './subscription-item-response';
|
|
6
|
-
export * from './next-transaction-response';
|
|
7
|
-
export * from './subscription-discount-response';
|
|
8
|
-
export * from './subscription-update-item';
|
|
9
|
-
export * from './subscription-response';
|
|
10
|
-
export * from './subscription-preview-response';
|
|
11
|
-
export * from './subscription-preview-update-summary';
|
|
12
|
-
export * from './subscription-result-response';
|
|
13
|
-
export * from './subscription-update-non-catalog-price-request';
|
|
1
|
+
export * from './subscription-discount-response.js';
|
|
2
|
+
export * from './subscription-time-period-response.js';
|
|
3
|
+
export * from './subscription-scheduled-change-response.js';
|
|
4
|
+
export * from './subscription-management-response.js';
|
|
5
|
+
export * from './subscription-item-response.js';
|
|
6
|
+
export * from './next-transaction-response.js';
|
|
7
|
+
export * from './subscription-discount-response.js';
|
|
8
|
+
export * from './subscription-update-item.js';
|
|
9
|
+
export * from './subscription-response.js';
|
|
10
|
+
export * from './subscription-preview-response.js';
|
|
11
|
+
export * from './subscription-preview-update-summary.js';
|
|
12
|
+
export * from './subscription-result-response.js';
|
|
13
|
+
export * from './subscription-update-non-catalog-price-request.js';
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import { type IAdjustmentItemResponse
|
|
1
|
+
import { type IAdjustmentItemResponse } from '../adjustment/index.js';
|
|
2
|
+
import { type ITotalAdjustmentsResponse, type ITransactionDetailsPreviewResponse } from '../shared/index.js';
|
|
3
|
+
import { type ISubscriptionTimePeriodResponse } from './subscription-time-period-response.js';
|
|
2
4
|
export interface AdjustmentPreviewResponse {
|
|
3
5
|
transaction_id: string;
|
|
4
6
|
items: IAdjustmentItemResponse[];
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import { type
|
|
2
|
-
import { type
|
|
1
|
+
import { type SubscriptionItemStatus } from '../../enums/index.js';
|
|
2
|
+
import { type ISubscriptionTimePeriodResponse } from './subscription-time-period-response.js';
|
|
3
|
+
import { type IPriceResponse } from '../price/index.js';
|
|
4
|
+
import { type IProductResponse } from '../product/index.js';
|
|
3
5
|
export interface ISubscriptionItemResponse {
|
|
4
6
|
status: SubscriptionItemStatus;
|
|
5
7
|
quantity: number;
|
|
@@ -1,5 +1,12 @@
|
|
|
1
|
-
import { type
|
|
2
|
-
import { type
|
|
1
|
+
import { type CollectionMode, type CurrencyCode, type SubscriptionStatus } from '../../enums/index.js';
|
|
2
|
+
import { type ISubscriptionDiscountResponse } from './subscription-discount-response.js';
|
|
3
|
+
import { type IBillingDetailsResponse, type ICustomData, type IImportMetaResponse, type ITimePeriod, type ITransactionDetailsPreviewResponse } from '../shared/index.js';
|
|
4
|
+
import { type ISubscriptionTimePeriodResponse } from './subscription-time-period-response.js';
|
|
5
|
+
import { type ISubscriptionScheduledChangeResponse } from './subscription-scheduled-change-response.js';
|
|
6
|
+
import { type ISubscriptionManagementResponse } from './subscription-management-response.js';
|
|
7
|
+
import { type ISubscriptionItemResponse } from './subscription-item-response.js';
|
|
8
|
+
import { type INextTransactionResponse } from './next-transaction-response.js';
|
|
9
|
+
import { type ISubscriptionPreviewUpdateSummary } from './subscription-preview-update-summary.js';
|
|
3
10
|
export interface ISubscriptionPreviewResponse {
|
|
4
11
|
status: SubscriptionStatus;
|
|
5
12
|
customer_id: string;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { type IMoneyResponse
|
|
1
|
+
import { type IMoneyResponse } from '../shared/index.js';
|
|
2
|
+
import { type ISubscriptionResultResponse } from './subscription-result-response.js';
|
|
2
3
|
export interface ISubscriptionPreviewUpdateSummary {
|
|
3
4
|
credit: IMoneyResponse;
|
|
4
5
|
charge: IMoneyResponse;
|
|
@@ -1,5 +1,11 @@
|
|
|
1
|
-
import { type
|
|
2
|
-
import { type
|
|
1
|
+
import { type CollectionMode, type CurrencyCode, type SubscriptionStatus } from '../../enums/index.js';
|
|
2
|
+
import { type ISubscriptionDiscountResponse } from './subscription-discount-response.js';
|
|
3
|
+
import { type IBillingDetailsResponse, type ICustomData, type IImportMetaResponse, type ITimePeriod, type ITransactionDetailsPreviewResponse } from '../shared/index.js';
|
|
4
|
+
import { type ISubscriptionTimePeriodResponse } from './subscription-time-period-response.js';
|
|
5
|
+
import { type ISubscriptionScheduledChangeResponse } from './subscription-scheduled-change-response.js';
|
|
6
|
+
import { type ISubscriptionManagementResponse } from './subscription-management-response.js';
|
|
7
|
+
import { type ISubscriptionItemResponse } from './subscription-item-response.js';
|
|
8
|
+
import { type INextTransactionResponse } from './next-transaction-response.js';
|
|
3
9
|
export interface ISubscriptionResponse {
|
|
4
10
|
id: string;
|
|
5
11
|
status: SubscriptionStatus;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type ISubscriptionUpdateItemCreateWithPriceRequest } from './subscription-update-non-catalog-price-request';
|
|
1
|
+
import { type ISubscriptionUpdateItemCreateWithPriceRequest } from './subscription-update-non-catalog-price-request.js';
|
|
2
2
|
interface ISubscriptionUpdateBaseItem {
|
|
3
3
|
quantity: number;
|
|
4
4
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type CreatePriceRequestBody, type CreateProductRequestBody } from '../../resources';
|
|
1
|
+
import { type CreatePriceRequestBody, type CreateProductRequestBody } from '../../resources/index.js';
|
|
2
2
|
interface ISubscriptionUpdateItemCreateWithPriceBaseRequest extends Omit<CreatePriceRequestBody, 'type' | 'productId'> {
|
|
3
3
|
}
|
|
4
4
|
interface ISubscriptionUpdateItemCreateWithProductId extends ISubscriptionUpdateItemCreateWithPriceBaseRequest {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type IAdjustmentTotalsBreakdown } from '
|
|
2
|
-
import { type CurrencyCode } from '../../enums';
|
|
1
|
+
import { type IAdjustmentTotalsBreakdown } from './adjustment-totals-breakdown.js';
|
|
2
|
+
import { type CurrencyCode } from '../../enums/index.js';
|
|
3
3
|
export interface IAdjustmentTotalsResponse {
|
|
4
4
|
subtotal: string;
|
|
5
5
|
tax: string;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
export * from './transactions-time-period';
|
|
2
|
-
export * from './transactions-time-period-response';
|
|
3
|
-
export * from './transaction-proration-response';
|
|
4
|
-
export * from './transaction-item';
|
|
5
|
-
export * from './transaction-item-response';
|
|
6
|
-
export * from './transaction-line-item-response';
|
|
7
|
-
export * from './transaction-details-response';
|
|
8
|
-
export * from './transaction-adjustment-item-response';
|
|
9
|
-
export * from './transaction-adjustment-response';
|
|
10
|
-
export * from './adjustment-totals-breakdown';
|
|
11
|
-
export * from './adjustment-totals-response';
|
|
12
|
-
export * from './transaction-response';
|
|
13
|
-
export * from './transaction-invoice-pdf';
|
|
14
|
-
export * from './transaction-preview-item';
|
|
15
|
-
export * from './transaction-preview-response';
|
|
1
|
+
export * from './transactions-time-period.js';
|
|
2
|
+
export * from './transactions-time-period-response.js';
|
|
3
|
+
export * from './transaction-proration-response.js';
|
|
4
|
+
export * from './transaction-item.js';
|
|
5
|
+
export * from './transaction-item-response.js';
|
|
6
|
+
export * from './transaction-line-item-response.js';
|
|
7
|
+
export * from './transaction-details-response.js';
|
|
8
|
+
export * from './transaction-adjustment-item-response.js';
|
|
9
|
+
export * from './transaction-adjustment-response.js';
|
|
10
|
+
export * from './adjustment-totals-breakdown.js';
|
|
11
|
+
export * from './adjustment-totals-response.js';
|
|
12
|
+
export * from './transaction-response.js';
|
|
13
|
+
export * from './transaction-invoice-pdf.js';
|
|
14
|
+
export * from './transaction-preview-item.js';
|
|
15
|
+
export * from './transaction-preview-response.js';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { type
|
|
2
|
-
import { type
|
|
1
|
+
import { type AdjustmentType } from '../../enums/index.js';
|
|
2
|
+
import { type ITransactionProrationResponse } from './transaction-proration-response.js';
|
|
3
|
+
import { type IAdjustmentItemTotals } from '../shared/index.js';
|
|
3
4
|
export interface ITransactionAdjustmentItemResponse {
|
|
4
5
|
id?: string | null;
|
|
5
6
|
item_id: string;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { type
|
|
2
|
-
import { type
|
|
1
|
+
import { type AdjustmentAction, type AdjustmentStatus, type CurrencyCode } from '../../enums/index.js';
|
|
2
|
+
import { type ITransactionAdjustmentItemResponse } from './transaction-adjustment-item-response.js';
|
|
3
|
+
import { type IPayoutTotalsAdjustmentResponse, type ITotalAdjustmentsResponse } from '../shared/index.js';
|
|
3
4
|
export interface ITransactionAdjustmentResponse {
|
|
4
5
|
id: string;
|
|
5
6
|
action: AdjustmentAction;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { type ITaxRatesUsedResponse, type
|
|
1
|
+
import { type ITaxRatesUsedResponse, type ITransactionPayoutTotalsAdjustedResponse, type ITransactionPayoutTotalsResponse, type ITransactionTotalsAdjustedResponse, type ITransactionTotalsResponse } from '../shared/index.js';
|
|
2
|
+
import { type ITransactionLineItemResponse } from './transaction-line-item-response.js';
|
|
2
3
|
export interface ITransactionDetailsResponse {
|
|
3
4
|
tax_rates_used: ITaxRatesUsedResponse[];
|
|
4
5
|
totals?: ITransactionTotalsResponse | null;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { type IPriceResponse
|
|
1
|
+
import { type IPriceResponse } from '../price/index.js';
|
|
2
|
+
import { type ITransactionProrationResponse } from './transaction-proration-response.js';
|
|
2
3
|
export interface ITransactionItemResponse {
|
|
3
4
|
price_id?: string | null;
|
|
4
5
|
price?: IPriceResponse | null;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type ITransactionProrationResponse } from './transaction-proration-response.js';
|
|
2
|
+
import { type ITotals, type IUnitTotals } from '../shared/index.js';
|
|
3
|
+
import { type IProductResponse } from '../product/index.js';
|
|
2
4
|
export interface ITransactionLineItemResponse {
|
|
3
5
|
id: string;
|
|
4
6
|
price_id: string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { type
|
|
2
|
-
import { type
|
|
3
|
-
import { type
|
|
4
|
-
import { type
|
|
5
|
-
import { type
|
|
1
|
+
import { type ITransactionsTimePeriodResponse } from './transactions-time-period-response.js';
|
|
2
|
+
import { type IPriceResponse } from '../price/index.js';
|
|
3
|
+
import { type AvailablePaymentMethod, type CurrencyCode } from '../../enums/index.js';
|
|
4
|
+
import { type IAddressPreviewResponse } from '../../resources/index.js';
|
|
5
|
+
import { type ITransactionDetailsPreviewResponse } from '../shared/index.js';
|
|
6
6
|
export interface IProrationResponse {
|
|
7
7
|
rate: string;
|
|
8
8
|
billing_period: ITransactionsTimePeriodResponse;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type ITransactionsTimePeriodResponse } from '
|
|
1
|
+
import { type ITransactionsTimePeriodResponse } from './transactions-time-period-response.js';
|
|
2
2
|
export interface ITransactionProrationResponse {
|
|
3
3
|
rate: string;
|
|
4
4
|
billing_period?: ITransactionsTimePeriodResponse | null;
|
|
@@ -1,5 +1,14 @@
|
|
|
1
|
-
import { type
|
|
2
|
-
import { type
|
|
1
|
+
import { type AvailablePaymentMethod, type CollectionMode, type CurrencyCode, type TransactionOrigin, type TransactionStatus } from '../../enums/index.js';
|
|
2
|
+
import { type IBillingDetailsResponse, type ICustomData, type ITransactionCheckout, type ITransactionPaymentAttemptResponse } from '../shared/index.js';
|
|
3
|
+
import { type ITransactionsTimePeriodResponse } from './transactions-time-period-response.js';
|
|
4
|
+
import { type ITransactionItemResponse } from './transaction-item-response.js';
|
|
5
|
+
import { type ITransactionDetailsResponse } from './transaction-details-response.js';
|
|
6
|
+
import { type IAddressResponse } from '../address/index.js';
|
|
7
|
+
import { type ITransactionAdjustmentResponse } from './transaction-adjustment-response.js';
|
|
8
|
+
import { type IAdjustmentTotalsResponse } from './adjustment-totals-response.js';
|
|
9
|
+
import { type IBusinessResponse } from '../business/index.js';
|
|
10
|
+
import { type ICustomerResponse } from '../customer/index.js';
|
|
11
|
+
import { type IDiscountResponse } from '../discount/index.js';
|
|
3
12
|
export interface ITransactionResponse {
|
|
4
13
|
id: string;
|
|
5
14
|
status: TransactionStatus;
|
package/dist/types/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "
|
|
1
|
+
export declare const SDK_VERSION = "2.0.0-rc.1";
|
package/package.json
CHANGED
|
@@ -1,21 +1,27 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@paddle/paddle-node-sdk",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0-rc.1",
|
|
4
4
|
"description": "A Node.js SDK that you can use to integrate Paddle Billing with applications written in server-side JavaScript.",
|
|
5
|
-
"main": "
|
|
6
|
-
"module": "
|
|
7
|
-
"types": "
|
|
5
|
+
"main": "dist/cjs/index.cjs.node.js",
|
|
6
|
+
"module": "dist/esm/index.esm.node.js",
|
|
7
|
+
"types": "dist/types/index.cjs.node.d.ts",
|
|
8
|
+
"engines": {
|
|
9
|
+
"node": ">=18"
|
|
10
|
+
},
|
|
8
11
|
"scripts": {
|
|
9
12
|
"test": "jest",
|
|
10
13
|
"prebuild": "node ./scripts/update-env-vars.js",
|
|
11
|
-
"build": "yarn clean &&
|
|
14
|
+
"build": "yarn clean && yarn build-esm && yarn build-cjs && yarn build-types",
|
|
15
|
+
"build-esm": "tsc -b tsconfig.esm.json && echo '{\"type\":\"module\"}' > ./dist/esm/package.json",
|
|
16
|
+
"build-cjs": "tsc -b tsconfig.cjs.json && echo '{\"type\":\"commonjs\"}' > ./dist/cjs/package.json",
|
|
17
|
+
"build-types": "tsc -b tsconfig.types.json",
|
|
12
18
|
"prettier": "prettier --check ./src",
|
|
13
19
|
"prettier:fix": "prettier --check ./src --write",
|
|
14
20
|
"lint": "eslint --ext .ts,.tsx ./src",
|
|
15
21
|
"lint:fix": "eslint --ext .ts,.tsx ./src --fix",
|
|
16
22
|
"clean": "rm -rf ./dist",
|
|
17
|
-
"release:
|
|
18
|
-
"publish:
|
|
23
|
+
"release:rc": "yarn version --prerelease --preid rc --no-git-tag-version --no-commit-hooks",
|
|
24
|
+
"publish:rc": "yarn publish --tag rc --access public",
|
|
19
25
|
"publish:latest": "yarn publish --access public"
|
|
20
26
|
},
|
|
21
27
|
"files": [
|
|
@@ -28,6 +34,11 @@
|
|
|
28
34
|
"author": "paddle.com",
|
|
29
35
|
"license": "Apache-2.0",
|
|
30
36
|
"homepage": "https://developer.paddle.com/api-reference/overview",
|
|
37
|
+
"repository": {
|
|
38
|
+
"type": "git",
|
|
39
|
+
"url": "https://github.com/PaddleHQ/paddle-node-sdk.git"
|
|
40
|
+
},
|
|
41
|
+
"bugs": "https://github.com/PaddleHQ/paddle-node-sdk/issues",
|
|
31
42
|
"devDependencies": {
|
|
32
43
|
"@babel/core": "^7.23.0",
|
|
33
44
|
"@babel/preset-env": "^7.22.20",
|
|
@@ -35,7 +46,6 @@
|
|
|
35
46
|
"@types/jest": "^29.5.6",
|
|
36
47
|
"@types/lodash": "^4.14.202",
|
|
37
48
|
"@types/node": "^20.6.0",
|
|
38
|
-
"@types/node-fetch": "^2.6.6",
|
|
39
49
|
"@typescript-eslint/eslint-plugin": "^6.4.0",
|
|
40
50
|
"babel-jest": "^29.7.0",
|
|
41
51
|
"dotenv": "^16.3.1",
|
|
@@ -49,7 +59,17 @@
|
|
|
49
59
|
"typescript": "^5.2.2"
|
|
50
60
|
},
|
|
51
61
|
"dependencies": {
|
|
52
|
-
"lodash": "^4.17.21"
|
|
53
|
-
|
|
62
|
+
"lodash": "^4.17.21"
|
|
63
|
+
},
|
|
64
|
+
"exports": {
|
|
65
|
+
"types": "./dist/types/index.cjs.node.d.ts",
|
|
66
|
+
"worker": {
|
|
67
|
+
"import": "./dist/esm/index.esm.edge.js",
|
|
68
|
+
"require": "./dist/cjs/index.cjs.edge.js"
|
|
69
|
+
},
|
|
70
|
+
"default": {
|
|
71
|
+
"import": "./dist/esm/index.esm.node.js",
|
|
72
|
+
"require": "./dist/cjs/index.cjs.node.js"
|
|
73
|
+
}
|
|
54
74
|
}
|
|
55
75
|
}
|
package/dist/cjs/index.js
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.Paddle = exports.SDK_VERSION = exports.ApiError = exports.LogLevel = exports.Environment = void 0;
|
|
18
|
-
var internal_1 = require("./internal");
|
|
19
|
-
Object.defineProperty(exports, "Environment", { enumerable: true, get: function () { return internal_1.Environment; } });
|
|
20
|
-
Object.defineProperty(exports, "LogLevel", { enumerable: true, get: function () { return internal_1.LogLevel; } });
|
|
21
|
-
Object.defineProperty(exports, "ApiError", { enumerable: true, get: function () { return internal_1.ApiError; } });
|
|
22
|
-
var version_1 = require("./version");
|
|
23
|
-
Object.defineProperty(exports, "SDK_VERSION", { enumerable: true, get: function () { return version_1.SDK_VERSION; } });
|
|
24
|
-
var paddle_1 = require("./paddle");
|
|
25
|
-
Object.defineProperty(exports, "Paddle", { enumerable: true, get: function () { return paddle_1.Paddle; } });
|
|
26
|
-
__exportStar(require("./entities"), exports);
|
|
27
|
-
__exportStar(require("./enums"), exports);
|
|
28
|
-
__exportStar(require("./notifications"), exports);
|
|
29
|
-
__exportStar(require("./resources"), exports);
|
|
30
|
-
__exportStar(require("./types"), exports);
|
package/dist/esm/index.js
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export { Environment, LogLevel, ApiError } from './internal';
|
|
2
|
-
export { SDK_VERSION } from './version';
|
|
3
|
-
export { Paddle } from './paddle';
|
|
4
|
-
export * from './entities';
|
|
5
|
-
export * from './enums';
|
|
6
|
-
export * from './notifications';
|
|
7
|
-
export * from './resources';
|
|
8
|
-
export * from './types';
|
package/dist/types/index.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export { Environment, LogLevel, ApiError, type PaddleOptions } from './internal';
|
|
2
|
-
export { SDK_VERSION } from './version';
|
|
3
|
-
export { Paddle } from './paddle';
|
|
4
|
-
export * from './entities';
|
|
5
|
-
export * from './enums';
|
|
6
|
-
export * from './notifications';
|
|
7
|
-
export * from './resources';
|
|
8
|
-
export * from './types';
|