@paddle/paddle-node-sdk 1.3.0 → 1.4.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- 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 +6 -6
- 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 +16 -16
- 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 +20 -20
- 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/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 +4 -3
- 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 +9 -9
- 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 +15 -15
- package/dist/cjs/enums/subscription/index.js +6 -6
- package/dist/cjs/enums/transaction/index.js +1 -1
- package/dist/cjs/index.js +12 -12
- package/dist/cjs/internal/api/case-helpers.js +32 -5
- package/dist/cjs/internal/api/client.js +17 -17
- package/dist/cjs/internal/api/constants.js +3 -3
- package/dist/cjs/internal/api/index.js +4 -4
- 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/query-parameters.js +24 -4
- package/dist/cjs/internal/index.js +3 -3
- 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 +4 -3
- 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.js +91 -91
- 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/paddle.js +23 -23
- 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 +7 -7
- package/dist/cjs/resources/adjustments/operations/index.js +2 -2
- 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 +14 -14
- package/dist/cjs/resources/notification-settings/index.js +11 -11
- package/dist/cjs/resources/notification-settings/operations/index.js +2 -2
- 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/subscriptions/index.js +27 -27
- package/dist/cjs/resources/subscriptions/operations/index.js +7 -7
- package/dist/cjs/resources/transactions/index.js +17 -17
- package/dist/cjs/resources/transactions/operations/index.js +7 -7
- package/dist/cjs/types/address/index.js +1 -1
- package/dist/cjs/types/adjustment/index.js +4 -4
- 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 +17 -17
- 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 +29 -29
- package/dist/cjs/types/subscription/index.js +12 -12
- 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 +6 -6
- 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 +16 -16
- 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 +20 -20
- 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/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 +2 -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 +9 -9
- 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 +15 -15
- package/dist/esm/enums/subscription/index.js +6 -6
- package/dist/esm/enums/transaction/index.js +1 -1
- package/dist/esm/index.js +8 -8
- package/dist/esm/internal/api/case-helpers.js +9 -5
- package/dist/esm/internal/api/client.js +5 -5
- package/dist/esm/internal/api/constants.js +1 -1
- package/dist/esm/internal/api/index.js +2 -2
- 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/query-parameters.js +2 -2
- package/dist/esm/internal/index.js +2 -2
- 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 +2 -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.js +4 -4
- 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/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 +2 -2
- 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 +14 -14
- package/dist/esm/resources/notification-settings/index.js +3 -3
- package/dist/esm/resources/notification-settings/operations/index.js +2 -2
- 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/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 +7 -7
- package/dist/esm/types/address/index.js +1 -1
- package/dist/esm/types/adjustment/index.js +4 -4
- 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 +17 -17
- 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 +29 -29
- package/dist/esm/types/subscription/index.js +12 -12
- 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-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 +6 -6
- 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 +16 -16
- 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 +20 -20
- 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/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/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 +4 -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 +9 -9
- 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 +15 -15
- package/dist/types/enums/subscription/index.d.ts +6 -6
- package/dist/types/enums/transaction/index.d.ts +1 -1
- package/dist/types/index.d.ts +8 -8
- 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 +2 -2
- 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/errors/generic.d.ts +1 -1
- package/dist/types/internal/index.d.ts +4 -4
- 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 +4 -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.d.ts +2 -2
- 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 +3 -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/index.d.ts +2 -2
- 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 +14 -14
- 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 +2 -2
- 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/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/index.d.ts +7 -7
- 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 +4 -4
- 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 +17 -17
- 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 +29 -29
- 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/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/subscription/index.d.ts +12 -12
- package/dist/types/types/subscription/next-transaction-response.d.ts +3 -1
- package/dist/types/types/subscription/subscription-item-response.d.ts +3 -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/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 +1 -1
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.TransactionDetailsPreview = void 0;
|
|
4
|
-
const
|
|
4
|
+
const index_js_1 = require("../shared/index.js");
|
|
5
|
+
const transaction_line_item_preview_js_1 = require("./transaction-line-item-preview.js");
|
|
5
6
|
class TransactionDetailsPreview {
|
|
6
7
|
constructor(transactionDetailsPreview) {
|
|
7
|
-
this.taxRatesUsed = transactionDetailsPreview.tax_rates_used.map((tax_rates_used) => new
|
|
8
|
-
this.totals = new
|
|
9
|
-
this.lineItems = transactionDetailsPreview.line_items.map((line_item) => new
|
|
8
|
+
this.taxRatesUsed = transactionDetailsPreview.tax_rates_used.map((tax_rates_used) => new index_js_1.TaxRatesUsed(tax_rates_used));
|
|
9
|
+
this.totals = new index_js_1.TransactionTotals(transactionDetailsPreview.totals);
|
|
10
|
+
this.lineItems = transactionDetailsPreview.line_items.map((line_item) => new transaction_line_item_preview_js_1.TransactionLineItemPreview(line_item));
|
|
10
11
|
}
|
|
11
12
|
}
|
|
12
13
|
exports.TransactionDetailsPreview = TransactionDetailsPreview;
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.TransactionLineItemPreview = void 0;
|
|
4
|
-
const
|
|
4
|
+
const index_js_1 = require("../shared/index.js");
|
|
5
|
+
const index_js_2 = require("../product/index.js");
|
|
5
6
|
class TransactionLineItemPreview {
|
|
6
7
|
constructor(transactionLineItemPreview) {
|
|
7
8
|
this.priceId = transactionLineItemPreview.price_id;
|
|
8
9
|
this.quantity = transactionLineItemPreview.quantity;
|
|
9
10
|
this.taxRate = transactionLineItemPreview.tax_rate;
|
|
10
|
-
this.unitTotals = new
|
|
11
|
-
this.totals = new
|
|
12
|
-
this.product = new
|
|
11
|
+
this.unitTotals = new index_js_1.UnitTotals(transactionLineItemPreview.unit_totals);
|
|
12
|
+
this.totals = new index_js_1.Totals(transactionLineItemPreview.totals);
|
|
13
|
+
this.product = new index_js_2.Product(transactionLineItemPreview.product);
|
|
13
14
|
}
|
|
14
15
|
}
|
|
15
16
|
exports.TransactionLineItemPreview = TransactionLineItemPreview;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.AdjustmentTotals = void 0;
|
|
4
|
-
const
|
|
4
|
+
const adjustment_totals_breakdown_js_1 = require("./adjustment-totals-breakdown.js");
|
|
5
5
|
class AdjustmentTotals {
|
|
6
6
|
constructor(adjustmentTotals) {
|
|
7
7
|
this.subtotal = adjustmentTotals.subtotal;
|
|
@@ -9,7 +9,7 @@ class AdjustmentTotals {
|
|
|
9
9
|
this.total = adjustmentTotals.total;
|
|
10
10
|
this.fee = adjustmentTotals.fee;
|
|
11
11
|
this.earnings = adjustmentTotals.earnings;
|
|
12
|
-
this.breakdown = adjustmentTotals.breakdown ? new
|
|
12
|
+
this.breakdown = adjustmentTotals.breakdown ? new adjustment_totals_breakdown_js_1.AdjustmentTotalsBreakdown(adjustmentTotals.breakdown) : null;
|
|
13
13
|
this.currencyCode = adjustmentTotals.currency_code;
|
|
14
14
|
}
|
|
15
15
|
}
|
|
@@ -14,19 +14,19 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./transactions-time-period"), exports);
|
|
18
|
-
__exportStar(require("./transaction-proration"), exports);
|
|
19
|
-
__exportStar(require("./transaction-item"), exports);
|
|
20
|
-
__exportStar(require("./transaction-line-item"), exports);
|
|
21
|
-
__exportStar(require("./transaction-details"), exports);
|
|
22
|
-
__exportStar(require("./transaction-adjustment-item"), exports);
|
|
23
|
-
__exportStar(require("./transaction-adjustment"), exports);
|
|
24
|
-
__exportStar(require("./adjustment-totals-breakdown"), exports);
|
|
25
|
-
__exportStar(require("./adjustment-totals"), exports);
|
|
26
|
-
__exportStar(require("./transaction"), exports);
|
|
27
|
-
__exportStar(require("./transaction-collection"), exports);
|
|
28
|
-
__exportStar(require("./transaction-invoice-pdf"), exports);
|
|
29
|
-
__exportStar(require("./transaction-preview"), exports);
|
|
30
|
-
__exportStar(require("./transaction-item-preview"), exports);
|
|
31
|
-
__exportStar(require("./proration"), exports);
|
|
32
|
-
__exportStar(require("./address-preview"), exports);
|
|
17
|
+
__exportStar(require("./transactions-time-period.js"), exports);
|
|
18
|
+
__exportStar(require("./transaction-proration.js"), exports);
|
|
19
|
+
__exportStar(require("./transaction-item.js"), exports);
|
|
20
|
+
__exportStar(require("./transaction-line-item.js"), exports);
|
|
21
|
+
__exportStar(require("./transaction-details.js"), exports);
|
|
22
|
+
__exportStar(require("./transaction-adjustment-item.js"), exports);
|
|
23
|
+
__exportStar(require("./transaction-adjustment.js"), exports);
|
|
24
|
+
__exportStar(require("./adjustment-totals-breakdown.js"), exports);
|
|
25
|
+
__exportStar(require("./adjustment-totals.js"), exports);
|
|
26
|
+
__exportStar(require("./transaction.js"), exports);
|
|
27
|
+
__exportStar(require("./transaction-collection.js"), exports);
|
|
28
|
+
__exportStar(require("./transaction-invoice-pdf.js"), exports);
|
|
29
|
+
__exportStar(require("./transaction-preview.js"), exports);
|
|
30
|
+
__exportStar(require("./transaction-item-preview.js"), exports);
|
|
31
|
+
__exportStar(require("./proration.js"), exports);
|
|
32
|
+
__exportStar(require("./address-preview.js"), exports);
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Proration = void 0;
|
|
4
|
-
const
|
|
4
|
+
const transactions_time_period_js_1 = require("./transactions-time-period.js");
|
|
5
5
|
class Proration {
|
|
6
6
|
constructor(prorationResponse) {
|
|
7
7
|
this.rate = prorationResponse.rate;
|
|
8
|
-
this.billingPeriod = new
|
|
8
|
+
this.billingPeriod = new transactions_time_period_js_1.TransactionsTimePeriod(prorationResponse.billing_period);
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
11
|
exports.Proration = Proration;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.TransactionAdjustmentItem = void 0;
|
|
4
|
-
const
|
|
4
|
+
const transaction_proration_js_1 = require("./transaction-proration.js");
|
|
5
|
+
const index_js_1 = require("../adjustment/index.js");
|
|
5
6
|
class TransactionAdjustmentItem {
|
|
6
7
|
constructor(transactionAdjustmentItem) {
|
|
7
8
|
this.id = transactionAdjustmentItem.id ? transactionAdjustmentItem.id : null;
|
|
@@ -9,9 +10,9 @@ class TransactionAdjustmentItem {
|
|
|
9
10
|
this.type = transactionAdjustmentItem.type;
|
|
10
11
|
this.amount = transactionAdjustmentItem.amount ? transactionAdjustmentItem.amount : null;
|
|
11
12
|
this.proration = transactionAdjustmentItem.proration
|
|
12
|
-
? new
|
|
13
|
+
? new transaction_proration_js_1.TransactionProration(transactionAdjustmentItem.proration)
|
|
13
14
|
: null;
|
|
14
|
-
this.totals = transactionAdjustmentItem.totals ? new
|
|
15
|
+
this.totals = transactionAdjustmentItem.totals ? new index_js_1.AdjustmentItemTotals(transactionAdjustmentItem.totals) : null;
|
|
15
16
|
}
|
|
16
17
|
}
|
|
17
18
|
exports.TransactionAdjustmentItem = TransactionAdjustmentItem;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.TransactionAdjustment = void 0;
|
|
4
|
-
const
|
|
4
|
+
const transaction_adjustment_item_js_1 = require("./transaction-adjustment-item.js");
|
|
5
|
+
const index_js_1 = require("../shared/index.js");
|
|
5
6
|
class TransactionAdjustment {
|
|
6
7
|
constructor(adjustment) {
|
|
7
8
|
this.id = adjustment.id;
|
|
@@ -13,9 +14,9 @@ class TransactionAdjustment {
|
|
|
13
14
|
this.creditAppliedToBalance = adjustment.credit_applied_to_balance;
|
|
14
15
|
this.currencyCode = adjustment.currency_code;
|
|
15
16
|
this.status = adjustment.status;
|
|
16
|
-
this.items = adjustment.items.map((item) => new
|
|
17
|
-
this.totals = adjustment.totals ? new
|
|
18
|
-
this.payoutTotals = adjustment.payout_totals ? new
|
|
17
|
+
this.items = adjustment.items.map((item) => new transaction_adjustment_item_js_1.TransactionAdjustmentItem(item));
|
|
18
|
+
this.totals = adjustment.totals ? new index_js_1.TotalAdjustments(adjustment.totals) : null;
|
|
19
|
+
this.payoutTotals = adjustment.payout_totals ? new index_js_1.PayoutTotalsAdjustment(adjustment.payout_totals) : null;
|
|
19
20
|
this.createdAt = adjustment.created_at;
|
|
20
21
|
this.updatedAt = adjustment.updated_at;
|
|
21
22
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.TransactionCollection = void 0;
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
class TransactionCollection extends
|
|
4
|
+
const index_js_1 = require("../../internal/base/index.js");
|
|
5
|
+
const transaction_js_1 = require("./transaction.js");
|
|
6
|
+
class TransactionCollection extends index_js_1.Collection {
|
|
7
7
|
fromJson(data) {
|
|
8
|
-
return new
|
|
8
|
+
return new transaction_js_1.Transaction(data);
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
11
|
exports.TransactionCollection = TransactionCollection;
|
|
@@ -1,21 +1,22 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.TransactionDetails = void 0;
|
|
4
|
-
const
|
|
4
|
+
const index_js_1 = require("../shared/index.js");
|
|
5
|
+
const transaction_line_item_js_1 = require("./transaction-line-item.js");
|
|
5
6
|
class TransactionDetails {
|
|
6
7
|
constructor(transactionDetails) {
|
|
7
|
-
this.taxRatesUsed = transactionDetails.tax_rates_used.map((tax_rates_used) => new
|
|
8
|
-
this.totals = transactionDetails.totals ? new
|
|
8
|
+
this.taxRatesUsed = transactionDetails.tax_rates_used.map((tax_rates_used) => new index_js_1.TaxRatesUsed(tax_rates_used));
|
|
9
|
+
this.totals = transactionDetails.totals ? new index_js_1.TransactionTotals(transactionDetails.totals) : null;
|
|
9
10
|
this.adjustedTotals = transactionDetails.adjusted_totals
|
|
10
|
-
? new
|
|
11
|
+
? new index_js_1.TransactionTotalsAdjusted(transactionDetails.adjusted_totals)
|
|
11
12
|
: null;
|
|
12
13
|
this.payoutTotals = transactionDetails.payout_totals
|
|
13
|
-
? new
|
|
14
|
+
? new index_js_1.TransactionPayoutTotals(transactionDetails.payout_totals)
|
|
14
15
|
: null;
|
|
15
16
|
this.adjustedPayoutTotals = transactionDetails.adjusted_payout_totals
|
|
16
|
-
? new
|
|
17
|
+
? new index_js_1.TransactionPayoutTotalsAdjusted(transactionDetails.adjusted_payout_totals)
|
|
17
18
|
: null;
|
|
18
|
-
this.lineItems = transactionDetails.line_items.map((line_item) => new
|
|
19
|
+
this.lineItems = transactionDetails.line_items.map((line_item) => new transaction_line_item_js_1.TransactionLineItem(line_item));
|
|
19
20
|
}
|
|
20
21
|
}
|
|
21
22
|
exports.TransactionDetails = TransactionDetails;
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.TransactionItemPreview = void 0;
|
|
4
|
-
const
|
|
4
|
+
const index_js_1 = require("../price/index.js");
|
|
5
|
+
const proration_js_1 = require("./proration.js");
|
|
5
6
|
class TransactionItemPreview {
|
|
6
7
|
constructor(transactionItem) {
|
|
7
8
|
var _a;
|
|
8
|
-
this.price = transactionItem.price ? new
|
|
9
|
+
this.price = transactionItem.price ? new index_js_1.Price(transactionItem.price) : null;
|
|
9
10
|
this.quantity = transactionItem.quantity;
|
|
10
11
|
this.includeInTotals = (_a = transactionItem.include_in_totals) !== null && _a !== void 0 ? _a : null;
|
|
11
|
-
this.proration = transactionItem.proration ? new
|
|
12
|
+
this.proration = transactionItem.proration ? new proration_js_1.Proration(transactionItem.proration) : null;
|
|
12
13
|
}
|
|
13
14
|
}
|
|
14
15
|
exports.TransactionItemPreview = TransactionItemPreview;
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.TransactionItem = void 0;
|
|
4
|
-
const
|
|
4
|
+
const index_js_1 = require("../price/index.js");
|
|
5
|
+
const transaction_proration_js_1 = require("./transaction-proration.js");
|
|
5
6
|
class TransactionItem {
|
|
6
7
|
constructor(transactionItem) {
|
|
7
|
-
this.price = transactionItem.price ? new
|
|
8
|
+
this.price = transactionItem.price ? new index_js_1.Price(transactionItem.price) : null;
|
|
8
9
|
this.quantity = transactionItem.quantity;
|
|
9
|
-
this.proration = transactionItem.proration ? new
|
|
10
|
+
this.proration = transactionItem.proration ? new transaction_proration_js_1.TransactionProration(transactionItem.proration) : null;
|
|
10
11
|
}
|
|
11
12
|
}
|
|
12
13
|
exports.TransactionItem = TransactionItem;
|
|
@@ -1,17 +1,19 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.TransactionLineItem = void 0;
|
|
4
|
-
const
|
|
4
|
+
const transaction_proration_js_1 = require("./transaction-proration.js");
|
|
5
|
+
const index_js_1 = require("../shared/index.js");
|
|
6
|
+
const index_js_2 = require("../product/index.js");
|
|
5
7
|
class TransactionLineItem {
|
|
6
8
|
constructor(transactionLineItem) {
|
|
7
9
|
this.id = transactionLineItem.id;
|
|
8
10
|
this.priceId = transactionLineItem.price_id;
|
|
9
11
|
this.quantity = transactionLineItem.quantity;
|
|
10
|
-
this.proration = transactionLineItem.proration ? new
|
|
12
|
+
this.proration = transactionLineItem.proration ? new transaction_proration_js_1.TransactionProration(transactionLineItem.proration) : null;
|
|
11
13
|
this.taxRate = transactionLineItem.tax_rate;
|
|
12
|
-
this.unitTotals = transactionLineItem.unit_totals ? new
|
|
13
|
-
this.totals = transactionLineItem.totals ? new
|
|
14
|
-
this.product = transactionLineItem.product ? new
|
|
14
|
+
this.unitTotals = transactionLineItem.unit_totals ? new index_js_1.UnitTotals(transactionLineItem.unit_totals) : null;
|
|
15
|
+
this.totals = transactionLineItem.totals ? new index_js_1.Totals(transactionLineItem.totals) : null;
|
|
16
|
+
this.product = transactionLineItem.product ? new index_js_2.Product(transactionLineItem.product) : null;
|
|
15
17
|
}
|
|
16
18
|
}
|
|
17
19
|
exports.TransactionLineItem = TransactionLineItem;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.TransactionPreview = void 0;
|
|
4
|
-
const
|
|
4
|
+
const address_preview_js_1 = require("./address-preview.js");
|
|
5
|
+
const transaction_item_preview_js_1 = require("./transaction-item-preview.js");
|
|
6
|
+
const index_js_1 = require("../subscription/index.js");
|
|
5
7
|
class TransactionPreview {
|
|
6
8
|
constructor(transactionPreview) {
|
|
7
9
|
var _a;
|
|
@@ -11,10 +13,10 @@ class TransactionPreview {
|
|
|
11
13
|
this.currencyCode = transactionPreview.currency_code;
|
|
12
14
|
this.discountId = transactionPreview.discount_id ? transactionPreview.discount_id : null;
|
|
13
15
|
this.customerIpAddress = transactionPreview.customer_ip_address ? transactionPreview.customer_ip_address : null;
|
|
14
|
-
this.address = transactionPreview.address ? new
|
|
16
|
+
this.address = transactionPreview.address ? new address_preview_js_1.AddressPreview(transactionPreview.address) : null;
|
|
15
17
|
this.ignoreTrials = transactionPreview.ignore_trials ? transactionPreview.ignore_trials : null;
|
|
16
|
-
this.items = transactionPreview.items.map((item) => new
|
|
17
|
-
this.details = new
|
|
18
|
+
this.items = transactionPreview.items.map((item) => new transaction_item_preview_js_1.TransactionItemPreview(item));
|
|
19
|
+
this.details = new index_js_1.TransactionDetailsPreview(transactionPreview.details);
|
|
18
20
|
this.availablePaymentMethods = (_a = transactionPreview.available_payment_method) !== null && _a !== void 0 ? _a : null;
|
|
19
21
|
}
|
|
20
22
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.TransactionProration = void 0;
|
|
4
|
-
const
|
|
4
|
+
const transactions_time_period_js_1 = require("./transactions-time-period.js");
|
|
5
5
|
class TransactionProration {
|
|
6
6
|
constructor(transactionProration) {
|
|
7
7
|
this.rate = transactionProration.rate;
|
|
8
8
|
this.billingPeriod = transactionProration.billing_period
|
|
9
|
-
? new
|
|
9
|
+
? new transactions_time_period_js_1.TransactionsTimePeriod(transactionProration.billing_period)
|
|
10
10
|
: null;
|
|
11
11
|
}
|
|
12
12
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Transaction = void 0;
|
|
4
|
-
const
|
|
4
|
+
const index_js_1 = require("../index.js");
|
|
5
5
|
class Transaction {
|
|
6
6
|
constructor(transaction) {
|
|
7
7
|
var _a;
|
|
@@ -18,25 +18,25 @@ class Transaction {
|
|
|
18
18
|
this.invoiceNumber = transaction.invoice_number ? transaction.invoice_number : null;
|
|
19
19
|
this.collectionMode = transaction.collection_mode;
|
|
20
20
|
this.discountId = transaction.discount_id ? transaction.discount_id : null;
|
|
21
|
-
this.billingDetails = transaction.billing_details ? new
|
|
22
|
-
this.billingPeriod = transaction.billing_period ? new
|
|
23
|
-
this.items = transaction.items.map((item) => new
|
|
24
|
-
this.details = transaction.details ? new
|
|
25
|
-
this.payments = transaction.payments.map((payment) => new
|
|
26
|
-
this.checkout = transaction.checkout ? new
|
|
21
|
+
this.billingDetails = transaction.billing_details ? new index_js_1.BillingDetails(transaction.billing_details) : null;
|
|
22
|
+
this.billingPeriod = transaction.billing_period ? new index_js_1.TransactionsTimePeriod(transaction.billing_period) : null;
|
|
23
|
+
this.items = transaction.items.map((item) => new index_js_1.TransactionItem(item));
|
|
24
|
+
this.details = transaction.details ? new index_js_1.TransactionDetails(transaction.details) : null;
|
|
25
|
+
this.payments = transaction.payments.map((payment) => new index_js_1.TransactionPaymentAttempt(payment));
|
|
26
|
+
this.checkout = transaction.checkout ? new index_js_1.TransactionCheckout(transaction.checkout) : null;
|
|
27
27
|
this.createdAt = transaction.created_at;
|
|
28
28
|
this.updatedAt = transaction.updated_at;
|
|
29
29
|
this.billedAt = transaction.billed_at ? transaction.billed_at : null;
|
|
30
|
-
this.address = transaction.address ? new
|
|
30
|
+
this.address = transaction.address ? new index_js_1.Address(transaction.address) : null;
|
|
31
31
|
this.adjustments = transaction.adjustments
|
|
32
|
-
? (_a = transaction.adjustments) === null || _a === void 0 ? void 0 : _a.map((adjustment) => new
|
|
32
|
+
? (_a = transaction.adjustments) === null || _a === void 0 ? void 0 : _a.map((adjustment) => new index_js_1.TransactionAdjustment(adjustment))
|
|
33
33
|
: null;
|
|
34
34
|
this.adjustmentsTotals = transaction.adjustments_totals
|
|
35
|
-
? new
|
|
35
|
+
? new index_js_1.AdjustmentTotals(transaction.adjustments_totals)
|
|
36
36
|
: null;
|
|
37
|
-
this.business = transaction.business ? new
|
|
38
|
-
this.customer = transaction.customer ? new
|
|
39
|
-
this.discount = transaction.discount ? new
|
|
37
|
+
this.business = transaction.business ? new index_js_1.Business(transaction.business) : null;
|
|
38
|
+
this.customer = transaction.customer ? new index_js_1.Customer(transaction.customer) : null;
|
|
39
|
+
this.discount = transaction.discount ? new index_js_1.Discount(transaction.discount) : null;
|
|
40
40
|
this.availablePaymentMethods = transaction.available_payment_methods ? transaction.available_payment_methods : null;
|
|
41
41
|
}
|
|
42
42
|
}
|
|
@@ -14,7 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./adjustment-type"), exports);
|
|
18
|
-
__exportStar(require("./adjustment-currency-code"), exports);
|
|
19
|
-
__exportStar(require("./adjustment-action"), exports);
|
|
20
|
-
__exportStar(require("./adjustment-status"), exports);
|
|
17
|
+
__exportStar(require("./adjustment-type.js"), exports);
|
|
18
|
+
__exportStar(require("./adjustment-currency-code.js"), exports);
|
|
19
|
+
__exportStar(require("./adjustment-action.js"), exports);
|
|
20
|
+
__exportStar(require("./adjustment-status.js"), exports);
|
|
@@ -14,5 +14,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./discount-status"), exports);
|
|
18
|
-
__exportStar(require("./discount-type"), exports);
|
|
17
|
+
__exportStar(require("./discount-status.js"), exports);
|
|
18
|
+
__exportStar(require("./discount-type.js"), exports);
|
package/dist/cjs/enums/index.js
CHANGED
|
@@ -14,12 +14,12 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./shared"), exports);
|
|
18
|
-
__exportStar(require("./subscription"), exports);
|
|
19
|
-
__exportStar(require("./discount"), exports);
|
|
20
|
-
__exportStar(require("./adjustment"), exports);
|
|
21
|
-
__exportStar(require("./transaction"), exports);
|
|
22
|
-
__exportStar(require("./payout"), exports);
|
|
23
|
-
__exportStar(require("./notification-settings"), exports);
|
|
24
|
-
__exportStar(require("./notification"), exports);
|
|
25
|
-
__exportStar(require("./report"), exports);
|
|
17
|
+
__exportStar(require("./shared/index.js"), exports);
|
|
18
|
+
__exportStar(require("./subscription/index.js"), exports);
|
|
19
|
+
__exportStar(require("./discount/index.js"), exports);
|
|
20
|
+
__exportStar(require("./adjustment/index.js"), exports);
|
|
21
|
+
__exportStar(require("./transaction/index.js"), exports);
|
|
22
|
+
__exportStar(require("./payout/index.js"), exports);
|
|
23
|
+
__exportStar(require("./notification-settings/index.js"), exports);
|
|
24
|
+
__exportStar(require("./notification/index.js"), exports);
|
|
25
|
+
__exportStar(require("./report/index.js"), exports);
|
|
@@ -14,5 +14,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./notification-status"), exports);
|
|
18
|
-
__exportStar(require("./origin"), exports);
|
|
17
|
+
__exportStar(require("./notification-status.js"), exports);
|
|
18
|
+
__exportStar(require("./origin.js"), exports);
|
|
@@ -14,4 +14,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./notification-settings-type"), exports);
|
|
17
|
+
__exportStar(require("./notification-settings-type.js"), exports);
|
|
@@ -14,4 +14,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./payout-status"), exports);
|
|
17
|
+
__exportStar(require("./payout-status.js"), exports);
|
|
@@ -14,7 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./report-status"), exports);
|
|
18
|
-
__exportStar(require("./report-type"), exports);
|
|
19
|
-
__exportStar(require("./report-filter-name"), exports);
|
|
20
|
-
__exportStar(require("./report-filter-operator"), exports);
|
|
17
|
+
__exportStar(require("./report-status.js"), exports);
|
|
18
|
+
__exportStar(require("./report-type.js"), exports);
|
|
19
|
+
__exportStar(require("./report-filter-name.js"), exports);
|
|
20
|
+
__exportStar(require("./report-filter-operator.js"), exports);
|
|
@@ -14,18 +14,18 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./tax-category"), exports);
|
|
18
|
-
__exportStar(require("./status"), exports);
|
|
19
|
-
__exportStar(require("./interval"), exports);
|
|
20
|
-
__exportStar(require("./tax-mode"), exports);
|
|
21
|
-
__exportStar(require("./currency-code"), exports);
|
|
22
|
-
__exportStar(require("./country-code"), exports);
|
|
23
|
-
__exportStar(require("./collection-mode"), exports);
|
|
24
|
-
__exportStar(require("./transaction-status"), exports);
|
|
25
|
-
__exportStar(require("./transaction-origin"), exports);
|
|
26
|
-
__exportStar(require("./payout-currency-code"), exports);
|
|
27
|
-
__exportStar(require("./payment-attempt-status"), exports);
|
|
28
|
-
__exportStar(require("./error-code"), exports);
|
|
29
|
-
__exportStar(require("./payment-type"), exports);
|
|
30
|
-
__exportStar(require("./catalog-type"), exports);
|
|
31
|
-
__exportStar(require("./available-payment-methods"), exports);
|
|
17
|
+
__exportStar(require("./tax-category.js"), exports);
|
|
18
|
+
__exportStar(require("./status.js"), exports);
|
|
19
|
+
__exportStar(require("./interval.js"), exports);
|
|
20
|
+
__exportStar(require("./tax-mode.js"), exports);
|
|
21
|
+
__exportStar(require("./currency-code.js"), exports);
|
|
22
|
+
__exportStar(require("./country-code.js"), exports);
|
|
23
|
+
__exportStar(require("./collection-mode.js"), exports);
|
|
24
|
+
__exportStar(require("./transaction-status.js"), exports);
|
|
25
|
+
__exportStar(require("./transaction-origin.js"), exports);
|
|
26
|
+
__exportStar(require("./payout-currency-code.js"), exports);
|
|
27
|
+
__exportStar(require("./payment-attempt-status.js"), exports);
|
|
28
|
+
__exportStar(require("./error-code.js"), exports);
|
|
29
|
+
__exportStar(require("./payment-type.js"), exports);
|
|
30
|
+
__exportStar(require("./catalog-type.js"), exports);
|
|
31
|
+
__exportStar(require("./available-payment-methods.js"), exports);
|
|
@@ -14,9 +14,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./subscription-effective-from"), exports);
|
|
18
|
-
__exportStar(require("./proration-billing-mode"), exports);
|
|
19
|
-
__exportStar(require("./scheduled-change-action"), exports);
|
|
20
|
-
__exportStar(require("./subscription-status"), exports);
|
|
21
|
-
__exportStar(require("./subscription-item-status"), exports);
|
|
22
|
-
__exportStar(require("./subscription-on-payment-failure"), exports);
|
|
17
|
+
__exportStar(require("./subscription-effective-from.js"), exports);
|
|
18
|
+
__exportStar(require("./proration-billing-mode.js"), exports);
|
|
19
|
+
__exportStar(require("./scheduled-change-action.js"), exports);
|
|
20
|
+
__exportStar(require("./subscription-status.js"), exports);
|
|
21
|
+
__exportStar(require("./subscription-item-status.js"), exports);
|
|
22
|
+
__exportStar(require("./subscription-on-payment-failure.js"), exports);
|
|
@@ -14,4 +14,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./payment-card-type"), exports);
|
|
17
|
+
__exportStar(require("./payment-card-type.js"), exports);
|
package/dist/cjs/index.js
CHANGED
|
@@ -15,15 +15,15 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
exports.Paddle = exports.SDK_VERSION = exports.ApiError = exports.Environment = void 0;
|
|
18
|
-
var
|
|
19
|
-
Object.defineProperty(exports, "Environment", { enumerable: true, get: function () { return
|
|
20
|
-
Object.defineProperty(exports, "ApiError", { enumerable: true, get: function () { return
|
|
21
|
-
var
|
|
22
|
-
Object.defineProperty(exports, "SDK_VERSION", { enumerable: true, get: function () { return
|
|
23
|
-
var
|
|
24
|
-
Object.defineProperty(exports, "Paddle", { enumerable: true, get: function () { return
|
|
25
|
-
__exportStar(require("./entities"), exports);
|
|
26
|
-
__exportStar(require("./enums"), exports);
|
|
27
|
-
__exportStar(require("./notifications"), exports);
|
|
28
|
-
__exportStar(require("./resources"), exports);
|
|
29
|
-
__exportStar(require("./types"), exports);
|
|
18
|
+
var index_js_1 = require("./internal/index.js");
|
|
19
|
+
Object.defineProperty(exports, "Environment", { enumerable: true, get: function () { return index_js_1.Environment; } });
|
|
20
|
+
Object.defineProperty(exports, "ApiError", { enumerable: true, get: function () { return index_js_1.ApiError; } });
|
|
21
|
+
var version_js_1 = require("./version.js");
|
|
22
|
+
Object.defineProperty(exports, "SDK_VERSION", { enumerable: true, get: function () { return version_js_1.SDK_VERSION; } });
|
|
23
|
+
var paddle_js_1 = require("./paddle.js");
|
|
24
|
+
Object.defineProperty(exports, "Paddle", { enumerable: true, get: function () { return paddle_js_1.Paddle; } });
|
|
25
|
+
__exportStar(require("./entities/index.js"), exports);
|
|
26
|
+
__exportStar(require("./enums/index.js"), exports);
|
|
27
|
+
__exportStar(require("./notifications/index.js"), exports);
|
|
28
|
+
__exportStar(require("./resources/index.js"), exports);
|
|
29
|
+
__exportStar(require("./types/index.js"), exports);
|
|
@@ -1,4 +1,27 @@
|
|
|
1
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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
2
25
|
var __rest = (this && this.__rest) || function (s, e) {
|
|
3
26
|
var t = {};
|
|
4
27
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
@@ -12,18 +35,22 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
12
35
|
};
|
|
13
36
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
37
|
exports.convertToSnakeCase = void 0;
|
|
15
|
-
const
|
|
38
|
+
const lodash = __importStar(require("lodash"));
|
|
16
39
|
function isTopLevelCustomDataCamel(input) {
|
|
17
40
|
return 'customData' in input;
|
|
18
41
|
}
|
|
19
42
|
function decamelizeKeys(obj) {
|
|
20
|
-
if (!
|
|
43
|
+
if (!lodash.isObject(obj) ||
|
|
44
|
+
lodash.isDate(obj) ||
|
|
45
|
+
lodash.isRegExp(obj) ||
|
|
46
|
+
lodash.isBoolean(obj) ||
|
|
47
|
+
lodash.isFunction(obj)) {
|
|
21
48
|
return obj;
|
|
22
49
|
}
|
|
23
50
|
let output;
|
|
24
51
|
let i = 0;
|
|
25
52
|
let l = 0;
|
|
26
|
-
if (
|
|
53
|
+
if (lodash.isArray(obj)) {
|
|
27
54
|
output = [];
|
|
28
55
|
for (l = obj.length; i < l; i++) {
|
|
29
56
|
output.push(decamelizeKeys(obj[i]));
|
|
@@ -33,14 +60,14 @@ function decamelizeKeys(obj) {
|
|
|
33
60
|
output = {};
|
|
34
61
|
for (const key in obj) {
|
|
35
62
|
if (Object.prototype.hasOwnProperty.call(obj, key)) {
|
|
36
|
-
output[
|
|
63
|
+
output[lodash.snakeCase(key)] = decamelizeKeys(obj[key]);
|
|
37
64
|
}
|
|
38
65
|
}
|
|
39
66
|
}
|
|
40
67
|
return output;
|
|
41
68
|
}
|
|
42
69
|
function convertToSnakeCase(input) {
|
|
43
|
-
if (!input || !
|
|
70
|
+
if (!input || !lodash.isObject(input)) {
|
|
44
71
|
return input;
|
|
45
72
|
}
|
|
46
73
|
if (isTopLevelCustomDataCamel(input)) {
|