@paddle/paddle-node-sdk 1.4.0-beta.0 → 1.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -3
- package/LICENSE +1 -12
- package/README.md +7 -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 +3 -4
- package/dist/cjs/entities/adjustment/adjustment-proration.js +2 -2
- package/dist/cjs/entities/adjustment/adjustment.js +4 -5
- 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 +3 -4
- 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 +8 -10
- 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 +4 -6
- package/dist/cjs/entities/subscription/subscription-collection.js +4 -4
- package/dist/cjs/entities/subscription/subscription-item.js +3 -4
- package/dist/cjs/entities/subscription/subscription-preview-update-summary.js +4 -5
- package/dist/cjs/entities/subscription/subscription-preview.js +13 -19
- package/dist/cjs/entities/subscription/subscription.js +11 -17
- package/dist/cjs/entities/subscription/transaction-details-preview.js +4 -5
- package/dist/cjs/entities/subscription/transaction-line-item-preview.js +4 -5
- 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 +3 -4
- package/dist/cjs/entities/transaction/transaction-adjustment.js +4 -5
- package/dist/cjs/entities/transaction/transaction-collection.js +4 -4
- package/dist/cjs/entities/transaction/transaction-details.js +7 -8
- package/dist/cjs/entities/transaction/transaction-item-preview.js +3 -4
- package/dist/cjs/entities/transaction/transaction-item.js +3 -4
- package/dist/cjs/entities/transaction/transaction-line-item.js +5 -7
- package/dist/cjs/entities/transaction/transaction-preview.js +4 -6
- 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 +14 -13
- package/dist/cjs/internal/api/case-helpers.js +5 -32
- package/dist/cjs/internal/api/client.js +20 -17
- package/dist/cjs/internal/api/constants.js +3 -3
- package/dist/cjs/internal/api/index.js +7 -5
- package/dist/cjs/internal/api/log-level.js +10 -0
- package/dist/cjs/internal/base/base-resource.js +2 -2
- package/dist/cjs/internal/base/collection.js +2 -2
- package/dist/cjs/internal/base/index.js +4 -4
- package/dist/cjs/internal/base/logger.js +22 -3
- package/dist/cjs/internal/base/query-parameters.js +4 -24
- 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 +3 -4
- package/dist/cjs/notifications/entities/adjustment/adjustment-notification.js +4 -5
- 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 +3 -4
- 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 +7 -8
- 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 +3 -4
- package/dist/cjs/notifications/entities/subscription/subscription-notification.js +8 -12
- 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 +7 -8
- package/dist/cjs/notifications/entities/transaction/transaction-item-notification.js +3 -4
- package/dist/cjs/notifications/entities/transaction/transaction-line-item-notification.js +5 -7
- package/dist/cjs/notifications/entities/transaction/transaction-notification.js +7 -10
- 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 +24 -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 +1 -2
- package/dist/esm/entities/adjustment/adjustment-proration.js +1 -1
- package/dist/esm/entities/adjustment/adjustment.js +1 -2
- 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 +1 -2
- 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 +1 -3
- 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 +1 -3
- package/dist/esm/entities/subscription/subscription-collection.js +2 -2
- package/dist/esm/entities/subscription/subscription-item.js +1 -2
- package/dist/esm/entities/subscription/subscription-preview-update-summary.js +1 -2
- package/dist/esm/entities/subscription/subscription-preview.js +1 -7
- package/dist/esm/entities/subscription/subscription.js +1 -7
- package/dist/esm/entities/subscription/transaction-details-preview.js +1 -2
- package/dist/esm/entities/subscription/transaction-line-item-preview.js +1 -2
- 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 +1 -2
- package/dist/esm/entities/transaction/transaction-adjustment.js +1 -2
- package/dist/esm/entities/transaction/transaction-collection.js +2 -2
- package/dist/esm/entities/transaction/transaction-details.js +1 -2
- package/dist/esm/entities/transaction/transaction-item-preview.js +1 -2
- package/dist/esm/entities/transaction/transaction-item.js +1 -2
- package/dist/esm/entities/transaction/transaction-line-item.js +1 -3
- package/dist/esm/entities/transaction/transaction-preview.js +1 -3
- 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 +5 -9
- package/dist/esm/internal/api/client.js +8 -5
- package/dist/esm/internal/api/constants.js +1 -1
- package/dist/esm/internal/api/index.js +3 -2
- package/dist/esm/internal/api/log-level.js +7 -0
- package/dist/esm/internal/base/base-resource.js +1 -1
- package/dist/esm/internal/base/collection.js +1 -1
- package/dist/esm/internal/base/index.js +4 -4
- package/dist/esm/internal/base/logger.js +22 -3
- 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 +1 -2
- package/dist/esm/notifications/entities/adjustment/adjustment-notification.js +1 -2
- 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 +1 -2
- 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 +1 -2
- 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 +1 -2
- package/dist/esm/notifications/entities/subscription/subscription-notification.js +1 -5
- 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 +1 -2
- package/dist/esm/notifications/entities/transaction/transaction-item-notification.js +1 -2
- package/dist/esm/notifications/entities/transaction/transaction-line-item-notification.js +1 -3
- package/dist/esm/notifications/entities/transaction/transaction-notification.js +1 -4
- 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 +6 -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 +3 -4
- 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 +3 -4
- 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 +3 -4
- 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 +3 -5
- 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 +2 -4
- 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 +3 -4
- 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 +2 -3
- package/dist/types/entities/subscription/subscription-preview.d.ts +3 -9
- 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 +3 -9
- package/dist/types/entities/subscription/transaction-details-preview.d.ts +2 -3
- package/dist/types/entities/subscription/transaction-line-item-preview.d.ts +2 -3
- 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 +3 -4
- package/dist/types/entities/transaction/transaction-adjustment.d.ts +3 -4
- package/dist/types/entities/transaction/transaction-collection.d.ts +3 -3
- package/dist/types/entities/transaction/transaction-details.d.ts +2 -3
- package/dist/types/entities/transaction/transaction-invoice-pdf.d.ts +1 -1
- package/dist/types/entities/transaction/transaction-item-preview.d.ts +2 -3
- package/dist/types/entities/transaction/transaction-item.d.ts +2 -3
- package/dist/types/entities/transaction/transaction-line-item.d.ts +2 -4
- package/dist/types/entities/transaction/transaction-preview.d.ts +3 -5
- 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 +3 -2
- package/dist/types/internal/api/log-level.d.ts +6 -0
- package/dist/types/internal/base/base-resource.d.ts +2 -2
- package/dist/types/internal/base/collection.d.ts +2 -2
- package/dist/types/internal/base/index.d.ts +4 -4
- package/dist/types/internal/base/logger.d.ts +3 -0
- package/dist/types/internal/errors/generic.d.ts +1 -1
- package/dist/types/internal/index.d.ts +4 -4
- package/dist/types/internal/types/config.d.ts +2 -1
- package/dist/types/notifications/entities/address/address-notification.d.ts +3 -3
- package/dist/types/notifications/entities/address/index.d.ts +1 -1
- package/dist/types/notifications/entities/adjustment/adjustment-item-notification.d.ts +3 -4
- package/dist/types/notifications/entities/adjustment/adjustment-item-totals-notification.d.ts +1 -1
- package/dist/types/notifications/entities/adjustment/adjustment-notification.d.ts +3 -4
- 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 +4 -5
- 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 +4 -5
- 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 +3 -4
- package/dist/types/notifications/entities/subscription/subscription-notification.d.ts +4 -8
- package/dist/types/notifications/entities/subscription/subscription-price-notification.d.ts +4 -5
- 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 +2 -3
- package/dist/types/notifications/entities/transaction/transaction-item-notification.d.ts +2 -3
- package/dist/types/notifications/entities/transaction/transaction-line-item-notification.d.ts +2 -4
- package/dist/types/notifications/entities/transaction/transaction-notification.d.ts +4 -7
- 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 +2 -3
- package/dist/types/notifications/types/adjustment/adjustment-notification-response.d.ts +2 -3
- 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 +3 -4
- 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 +3 -4
- 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 +3 -7
- 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 +2 -3
- package/dist/types/notifications/types/subscription/subscription-notification-response.d.ts +3 -7
- package/dist/types/notifications/types/subscription/subscription-price-notification-response.d.ts +3 -4
- 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 +1 -2
- package/dist/types/notifications/types/transaction/transaction-item-notification-response.d.ts +1 -2
- package/dist/types/notifications/types/transaction/transaction-line-item-notification-response.d.ts +1 -2
- package/dist/types/notifications/types/transaction/transaction-notification-response.d.ts +3 -6
- 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 +2 -3
- package/dist/types/types/adjustment/adjustment-response.d.ts +2 -3
- 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 +2 -3
- 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 +2 -3
- 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 +1 -3
- package/dist/types/types/shared/transaction-line-item-preview-response.d.ts +1 -3
- 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 +1 -3
- package/dist/types/types/subscription/subscription-item-response.d.ts +2 -3
- package/dist/types/types/subscription/subscription-preview-response.d.ts +2 -9
- package/dist/types/types/subscription/subscription-preview-update-summary.d.ts +1 -2
- package/dist/types/types/subscription/subscription-response.d.ts +2 -8
- 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 +2 -3
- package/dist/types/types/transaction/transaction-adjustment-response.d.ts +2 -3
- package/dist/types/types/transaction/transaction-details-response.d.ts +1 -2
- package/dist/types/types/transaction/transaction-item-response.d.ts +1 -2
- package/dist/types/types/transaction/transaction-item.d.ts +1 -1
- package/dist/types/types/transaction/transaction-line-item-response.d.ts +1 -3
- 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 +2 -11
- package/dist/types/version.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Event } from '../../../entities/events/event
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { Event } from '../../../entities/events/event';
|
|
2
|
+
import { SubscriptionNotification } from '../../entities';
|
|
3
|
+
import { EventName } from '../../helpers';
|
|
4
4
|
export class SubscriptionCanceledEvent extends Event {
|
|
5
5
|
constructor(response) {
|
|
6
6
|
super(response);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Event } from '../../../entities/events/event
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { Event } from '../../../entities/events/event';
|
|
2
|
+
import { SubscriptionNotification } from '../../entities';
|
|
3
|
+
import { EventName } from '../../helpers';
|
|
4
4
|
export class SubscriptionCreatedEvent extends Event {
|
|
5
5
|
constructor(response) {
|
|
6
6
|
super(response);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Event } from '../../../entities/events/event
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { Event } from '../../../entities/events/event';
|
|
2
|
+
import { SubscriptionNotification } from '../../entities';
|
|
3
|
+
import { EventName } from '../../helpers';
|
|
4
4
|
export class SubscriptionImportedEvent extends Event {
|
|
5
5
|
constructor(response) {
|
|
6
6
|
super(response);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Event } from '../../../entities/events/event
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { Event } from '../../../entities/events/event';
|
|
2
|
+
import { SubscriptionNotification } from '../../entities';
|
|
3
|
+
import { EventName } from '../../helpers';
|
|
4
4
|
export class SubscriptionPastDueEvent extends Event {
|
|
5
5
|
constructor(response) {
|
|
6
6
|
super(response);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Event } from '../../../entities/events/event
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { Event } from '../../../entities/events/event';
|
|
2
|
+
import { SubscriptionNotification } from '../../entities';
|
|
3
|
+
import { EventName } from '../../helpers';
|
|
4
4
|
export class SubscriptionPausedEvent extends Event {
|
|
5
5
|
constructor(response) {
|
|
6
6
|
super(response);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Event } from '../../../entities/events/event
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { Event } from '../../../entities/events/event';
|
|
2
|
+
import { SubscriptionNotification } from '../../entities';
|
|
3
|
+
import { EventName } from '../../helpers';
|
|
4
4
|
export class SubscriptionResumedEvent extends Event {
|
|
5
5
|
constructor(response) {
|
|
6
6
|
super(response);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Event } from '../../../entities/events/event
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { Event } from '../../../entities/events/event';
|
|
2
|
+
import { SubscriptionNotification } from '../../entities';
|
|
3
|
+
import { EventName } from '../../helpers';
|
|
4
4
|
export class SubscriptionTrialingEvent extends Event {
|
|
5
5
|
constructor(response) {
|
|
6
6
|
super(response);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Event } from '../../../entities/events/event
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { Event } from '../../../entities/events/event';
|
|
2
|
+
import { SubscriptionNotification } from '../../entities';
|
|
3
|
+
import { EventName } from '../../helpers';
|
|
4
4
|
export class SubscriptionUpdatedEvent extends Event {
|
|
5
5
|
constructor(response) {
|
|
6
6
|
super(response);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export * from './transaction-billed-event
|
|
2
|
-
export * from './transaction-canceled-event
|
|
3
|
-
export * from './transaction-created-event
|
|
4
|
-
export * from './transaction-completed-event
|
|
5
|
-
export * from './transaction-paid-event
|
|
6
|
-
export * from './transaction-past-due-event
|
|
7
|
-
export * from './transaction-payment-failed-event
|
|
8
|
-
export * from './transaction-ready-event
|
|
9
|
-
export * from './transaction-updated-event
|
|
1
|
+
export * from './transaction-billed-event';
|
|
2
|
+
export * from './transaction-canceled-event';
|
|
3
|
+
export * from './transaction-created-event';
|
|
4
|
+
export * from './transaction-completed-event';
|
|
5
|
+
export * from './transaction-paid-event';
|
|
6
|
+
export * from './transaction-past-due-event';
|
|
7
|
+
export * from './transaction-payment-failed-event';
|
|
8
|
+
export * from './transaction-ready-event';
|
|
9
|
+
export * from './transaction-updated-event';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Event } from '../../../entities/events/event
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { Event } from '../../../entities/events/event';
|
|
2
|
+
import { TransactionNotification } from '../../entities';
|
|
3
|
+
import { EventName } from '../../helpers';
|
|
4
4
|
export class TransactionBilledEvent extends Event {
|
|
5
5
|
constructor(response) {
|
|
6
6
|
super(response);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Event } from '../../../entities/events/event
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { Event } from '../../../entities/events/event';
|
|
2
|
+
import { TransactionNotification } from '../../entities';
|
|
3
|
+
import { EventName } from '../../helpers';
|
|
4
4
|
export class TransactionCanceledEvent extends Event {
|
|
5
5
|
constructor(response) {
|
|
6
6
|
super(response);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Event } from '../../../entities/events/event
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { Event } from '../../../entities/events/event';
|
|
2
|
+
import { TransactionNotification } from '../../entities';
|
|
3
|
+
import { EventName } from '../../helpers';
|
|
4
4
|
export class TransactionCompletedEvent extends Event {
|
|
5
5
|
constructor(response) {
|
|
6
6
|
super(response);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Event } from '../../../entities/events/event
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { Event } from '../../../entities/events/event';
|
|
2
|
+
import { TransactionNotification } from '../../entities';
|
|
3
|
+
import { EventName } from '../../helpers';
|
|
4
4
|
export class TransactionCreatedEvent extends Event {
|
|
5
5
|
constructor(response) {
|
|
6
6
|
super(response);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Event } from '../../../entities/events/event
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { Event } from '../../../entities/events/event';
|
|
2
|
+
import { TransactionNotification } from '../../entities';
|
|
3
|
+
import { EventName } from '../../helpers';
|
|
4
4
|
export class TransactionPaidEvent extends Event {
|
|
5
5
|
constructor(response) {
|
|
6
6
|
super(response);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Event } from '../../../entities/events/event
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { Event } from '../../../entities/events/event';
|
|
2
|
+
import { TransactionNotification } from '../../entities';
|
|
3
|
+
import { EventName } from '../../helpers';
|
|
4
4
|
export class TransactionPastDueEvent extends Event {
|
|
5
5
|
constructor(response) {
|
|
6
6
|
super(response);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Event } from '../../../entities/events/event
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { Event } from '../../../entities/events/event';
|
|
2
|
+
import { TransactionNotification } from '../../entities';
|
|
3
|
+
import { EventName } from '../../helpers';
|
|
4
4
|
export class TransactionPaymentFailedEvent extends Event {
|
|
5
5
|
constructor(response) {
|
|
6
6
|
super(response);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Event } from '../../../entities/events/event
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { Event } from '../../../entities/events/event';
|
|
2
|
+
import { TransactionNotification } from '../../entities';
|
|
3
|
+
import { EventName } from '../../helpers';
|
|
4
4
|
export class TransactionReadyEvent extends Event {
|
|
5
5
|
constructor(response) {
|
|
6
6
|
super(response);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Event } from '../../../entities/events/event
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { Event } from '../../../entities/events/event';
|
|
2
|
+
import { TransactionNotification } from '../../entities';
|
|
3
|
+
import { EventName } from '../../helpers';
|
|
4
4
|
export class TransactionUpdatedEvent extends Event {
|
|
5
5
|
constructor(response) {
|
|
6
6
|
super(response);
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './types
|
|
2
|
-
export * from './webhooks
|
|
3
|
-
export * from './webhooks-validator
|
|
1
|
+
export * from './types';
|
|
2
|
+
export * from './webhooks';
|
|
3
|
+
export * from './webhooks-validator';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { EventName } from './types
|
|
3
|
-
import {
|
|
4
|
-
import { Logger } from '../../internal/base/logger
|
|
1
|
+
import { AddressCreatedEvent, AddressImportedEvent, AddressUpdatedEvent, AdjustmentCreatedEvent, AdjustmentUpdatedEvent, BusinessCreatedEvent, BusinessImportedEvent, BusinessUpdatedEvent, CustomerCreatedEvent, CustomerImportedEvent, CustomerUpdatedEvent, DiscountCreatedEvent, DiscountImportedEvent, DiscountUpdatedEvent, PayoutCreatedEvent, PayoutPaidEvent, PriceCreatedEvent, PriceImportedEvent, PriceUpdatedEvent, ProductCreatedEvent, ProductImportedEvent, ProductUpdatedEvent, ReportCreatedEvent, ReportUpdatedEvent, SubscriptionActivatedEvent, SubscriptionCanceledEvent, SubscriptionCreatedEvent, SubscriptionImportedEvent, SubscriptionPastDueEvent, SubscriptionPausedEvent, SubscriptionResumedEvent, SubscriptionTrialingEvent, SubscriptionUpdatedEvent, TransactionBilledEvent, TransactionCanceledEvent, TransactionCompletedEvent, TransactionCreatedEvent, TransactionPaidEvent, TransactionPastDueEvent, TransactionPaymentFailedEvent, TransactionReadyEvent, TransactionUpdatedEvent, } from '../events';
|
|
2
|
+
import { EventName } from './types';
|
|
3
|
+
import { WebhooksValidator } from './webhooks-validator';
|
|
4
|
+
import { Logger } from '../../internal/base/logger';
|
|
5
5
|
export class Webhooks {
|
|
6
6
|
unmarshal(requestBody, secretKey, signature) {
|
|
7
7
|
const isSignatureValid = new WebhooksValidator().isValidSignature(requestBody, secretKey, signature);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from './helpers
|
|
2
|
-
export * from './events
|
|
3
|
-
export * from './types
|
|
4
|
-
export * from './entities
|
|
1
|
+
export * from './helpers';
|
|
2
|
+
export * from './events';
|
|
3
|
+
export * from './types';
|
|
4
|
+
export * from './entities';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './address-notification-response
|
|
1
|
+
export * from './address-notification-response';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export * from './adjustments-time-period-notification-response
|
|
2
|
-
export * from './adjustments-proration-notification-response
|
|
3
|
-
export * from './adjustment-item-notification-response
|
|
4
|
-
export * from './adjustment-notification-response
|
|
5
|
-
export * from './adjustment-totals-breakdown-notification
|
|
6
|
-
export * from './adjustment-totals-notification-response
|
|
1
|
+
export * from './adjustments-time-period-notification-response';
|
|
2
|
+
export * from './adjustments-proration-notification-response';
|
|
3
|
+
export * from './adjustment-item-notification-response';
|
|
4
|
+
export * from './adjustment-notification-response';
|
|
5
|
+
export * from './adjustment-totals-breakdown-notification';
|
|
6
|
+
export * from './adjustment-totals-notification-response';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './businesses-contacts-notification
|
|
2
|
-
export * from './business-notification-response
|
|
1
|
+
export * from './businesses-contacts-notification';
|
|
2
|
+
export * from './business-notification-response';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './customer-notification-response
|
|
1
|
+
export * from './customer-notification-response';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './discount-notification-response
|
|
1
|
+
export * from './discount-notification-response';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export * from './product
|
|
2
|
-
export * from './price
|
|
3
|
-
export * from './transaction
|
|
4
|
-
export * from './adjustment
|
|
5
|
-
export * from './customer
|
|
6
|
-
export * from './business
|
|
7
|
-
export * from './subscription
|
|
8
|
-
export * from './address
|
|
9
|
-
export * from './discount
|
|
10
|
-
export * from './payout
|
|
11
|
-
export * from './report
|
|
12
|
-
export * from './shared
|
|
1
|
+
export * from './product';
|
|
2
|
+
export * from './price';
|
|
3
|
+
export * from './transaction';
|
|
4
|
+
export * from './adjustment';
|
|
5
|
+
export * from './customer';
|
|
6
|
+
export * from './business';
|
|
7
|
+
export * from './subscription';
|
|
8
|
+
export * from './address';
|
|
9
|
+
export * from './discount';
|
|
10
|
+
export * from './payout';
|
|
11
|
+
export * from './report';
|
|
12
|
+
export * from './shared';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './payout-notification-response
|
|
1
|
+
export * from './payout-notification-response';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './price-notification-response
|
|
2
|
-
export * from './price-quantity-notification
|
|
1
|
+
export * from './price-notification-response';
|
|
2
|
+
export * from './price-quantity-notification';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './product-notification-response
|
|
1
|
+
export * from './product-notification-response';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './report-filters-notification-response
|
|
2
|
-
export * from './report-notification-response
|
|
1
|
+
export * from './report-filters-notification-response';
|
|
2
|
+
export * from './report-notification-response';
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
export * from './time-period-notification
|
|
2
|
-
export * from './money-notification-response
|
|
3
|
-
export * from './unit-price-override-notification-response
|
|
4
|
-
export * from './shared-price-notification-response
|
|
5
|
-
export * from './shared-product-notification-response
|
|
6
|
-
export * from './billing-details-notification-response
|
|
7
|
-
export * from './totals
|
|
8
|
-
export * from './tax-rates-used-notification-response
|
|
9
|
-
export * from './transaction-totals-notification-response
|
|
10
|
-
export * from './transaction-totals-adjusted-notification-response
|
|
11
|
-
export * from './transaction-payout-totals-notification-response
|
|
12
|
-
export * from './adjustment-original-amount-notification-response
|
|
13
|
-
export * from './chargeback-fee
|
|
14
|
-
export * from './transaction-payout-totals-adjusted-notification-response
|
|
15
|
-
export * from './unit-totals
|
|
16
|
-
export * from './payment-card-notification-response
|
|
17
|
-
export * from './payment-method-details
|
|
18
|
-
export * from './transaction-payment-attempt-notification-response
|
|
19
|
-
export * from './transaction-checkout-notification
|
|
20
|
-
export * from './total-adjustments-notification-response
|
|
21
|
-
export * from './payout-totals-adjustment-notification-response
|
|
22
|
-
export * from './import-meta-notification-response
|
|
1
|
+
export * from './time-period-notification';
|
|
2
|
+
export * from './money-notification-response';
|
|
3
|
+
export * from './unit-price-override-notification-response';
|
|
4
|
+
export * from './shared-price-notification-response';
|
|
5
|
+
export * from './shared-product-notification-response';
|
|
6
|
+
export * from './billing-details-notification-response';
|
|
7
|
+
export * from './totals';
|
|
8
|
+
export * from './tax-rates-used-notification-response';
|
|
9
|
+
export * from './transaction-totals-notification-response';
|
|
10
|
+
export * from './transaction-totals-adjusted-notification-response';
|
|
11
|
+
export * from './transaction-payout-totals-notification-response';
|
|
12
|
+
export * from './adjustment-original-amount-notification-response';
|
|
13
|
+
export * from './chargeback-fee';
|
|
14
|
+
export * from './transaction-payout-totals-adjusted-notification-response';
|
|
15
|
+
export * from './unit-totals';
|
|
16
|
+
export * from './payment-card-notification-response';
|
|
17
|
+
export * from './payment-method-details';
|
|
18
|
+
export * from './transaction-payment-attempt-notification-response';
|
|
19
|
+
export * from './transaction-checkout-notification';
|
|
20
|
+
export * from './total-adjustments-notification-response';
|
|
21
|
+
export * from './payout-totals-adjustment-notification-response';
|
|
22
|
+
export * from './import-meta-notification-response';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export * from './subscription-discount-notification-response
|
|
2
|
-
export * from './subscription-time-period-notification-response
|
|
3
|
-
export * from './subscription-scheduled-change-notification-response
|
|
4
|
-
export * from './subscription-price-notification-response
|
|
5
|
-
export * from './subscription-item-notification-response
|
|
6
|
-
export * from './subscription-discount-notification-response
|
|
7
|
-
export * from './subscription-notification-response
|
|
1
|
+
export * from './subscription-discount-notification-response';
|
|
2
|
+
export * from './subscription-time-period-notification-response';
|
|
3
|
+
export * from './subscription-scheduled-change-notification-response';
|
|
4
|
+
export * from './subscription-price-notification-response';
|
|
5
|
+
export * from './subscription-item-notification-response';
|
|
6
|
+
export * from './subscription-discount-notification-response';
|
|
7
|
+
export * from './subscription-notification-response';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export * from './transactions-time-period-notification-response
|
|
2
|
-
export * from './transaction-proration-notification-response
|
|
3
|
-
export * from './transaction-item-notification-response
|
|
4
|
-
export * from './transaction-line-item-notification-response
|
|
5
|
-
export * from './transaction-details-notification-response
|
|
6
|
-
export * from './transaction-notification-response
|
|
1
|
+
export * from './transactions-time-period-notification-response';
|
|
2
|
+
export * from './transaction-proration-notification-response';
|
|
3
|
+
export * from './transaction-item-notification-response';
|
|
4
|
+
export * from './transaction-line-item-notification-response';
|
|
5
|
+
export * from './transaction-details-notification-response';
|
|
6
|
+
export * from './transaction-notification-response';
|
package/dist/esm/paddle.js
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import { Client } from './internal/api/client
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { EventsResource } from './resources/events
|
|
5
|
-
import { Webhooks } from './notifications
|
|
1
|
+
import { Client } from './internal/api/client';
|
|
2
|
+
import { AddressesResource, AdjustmentsResource, BusinessesResource, CustomersResource, DiscountsResource, EventTypesResource, NotificationSettingsResource, NotificationsResource, PricesResource, PricingPreviewResource, ProductsResource, ReportsResource, SubscriptionsResource, TransactionsResource, } from './resources';
|
|
3
|
+
import { Environment, LogLevel } from './internal';
|
|
4
|
+
import { EventsResource } from './resources/events';
|
|
5
|
+
import { Webhooks } from './notifications';
|
|
6
6
|
export class Paddle {
|
|
7
7
|
constructor(apiKey, options) {
|
|
8
8
|
this.defaultPaddleOptions = {
|
|
9
9
|
environment: Environment.production,
|
|
10
|
+
logLevel: LogLevel.verbose,
|
|
10
11
|
};
|
|
11
12
|
this.client = new Client(apiKey, options ? Object.assign(Object.assign({}, this.defaultPaddleOptions), options) : Object.assign({}, this.defaultPaddleOptions));
|
|
12
13
|
this.products = new ProductsResource(this.client);
|
|
@@ -7,15 +7,15 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
7
7
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
8
|
});
|
|
9
9
|
};
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
10
|
+
import { Address, AddressCollection } from '../../entities';
|
|
11
|
+
import { BaseResource, PathParameters, QueryParameters } from '../../internal/base';
|
|
12
12
|
const AddressPaths = {
|
|
13
13
|
list: '/customers/{customer_id}/addresses',
|
|
14
14
|
create: '/customers/{customer_id}/addresses',
|
|
15
15
|
get: '/customers/{customer_id}/addresses/{address_id}',
|
|
16
16
|
update: '/customers/{customer_id}/addresses/{address_id}',
|
|
17
17
|
};
|
|
18
|
-
export * from './operations
|
|
18
|
+
export * from './operations';
|
|
19
19
|
export class AddressesResource extends BaseResource {
|
|
20
20
|
list(customerId, queryParams) {
|
|
21
21
|
const queryParameters = new QueryParameters(queryParams);
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './list-address-query-parameters
|
|
2
|
-
export * from './create-address-request-body
|
|
3
|
-
export * from './update-address-request-body
|
|
1
|
+
export * from './list-address-query-parameters';
|
|
2
|
+
export * from './create-address-request-body';
|
|
3
|
+
export * from './update-address-request-body';
|
|
@@ -7,13 +7,13 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
7
7
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
8
|
});
|
|
9
9
|
};
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
10
|
+
import { AdjustmentCollection, Adjustment } from '../../entities';
|
|
11
|
+
import { BaseResource, QueryParameters } from '../../internal/base';
|
|
12
12
|
const AdjustmentPaths = {
|
|
13
13
|
list: '/adjustments',
|
|
14
14
|
create: '/adjustments',
|
|
15
15
|
};
|
|
16
|
-
export * from './operations
|
|
16
|
+
export * from './operations';
|
|
17
17
|
export class AdjustmentsResource extends BaseResource {
|
|
18
18
|
list(queryParams) {
|
|
19
19
|
const queryParameters = new QueryParameters(queryParams);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './list-adjustment-query-parameters
|
|
2
|
-
export * from './create-adjustment-request-body
|
|
1
|
+
export * from './list-adjustment-query-parameters';
|
|
2
|
+
export * from './create-adjustment-request-body';
|
|
@@ -7,15 +7,15 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
7
7
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
8
|
});
|
|
9
9
|
};
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
10
|
+
import { Business, BusinessCollection } from '../../entities';
|
|
11
|
+
import { BaseResource, PathParameters, QueryParameters } from '../../internal/base';
|
|
12
12
|
const BusinessPaths = {
|
|
13
13
|
list: '/customers/{customer_id}/businesses',
|
|
14
14
|
create: '/customers/{customer_id}/businesses',
|
|
15
15
|
get: '/customers/{customer_id}/businesses/{business_id}',
|
|
16
16
|
update: '/customers/{customer_id}/businesses/{business_id}',
|
|
17
17
|
};
|
|
18
|
-
export * from './operations
|
|
18
|
+
export * from './operations';
|
|
19
19
|
export class BusinessesResource extends BaseResource {
|
|
20
20
|
list(customerId, queryParams) {
|
|
21
21
|
const queryParameters = new QueryParameters(queryParams);
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './list-business-query-parameters
|
|
2
|
-
export * from './create-business-request-body
|
|
3
|
-
export * from './update-business-request-body
|
|
1
|
+
export * from './list-business-query-parameters';
|
|
2
|
+
export * from './create-business-request-body';
|
|
3
|
+
export * from './update-business-request-body';
|
|
@@ -7,8 +7,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
7
7
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
8
|
});
|
|
9
9
|
};
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
10
|
+
import { CreditBalance, Customer, CustomerCollection } from '../../entities';
|
|
11
|
+
import { BaseResource, PathParameters, QueryParameters } from '../../internal/base';
|
|
12
12
|
const CustomerPaths = {
|
|
13
13
|
list: '/customers',
|
|
14
14
|
create: '/customers',
|
|
@@ -16,7 +16,7 @@ const CustomerPaths = {
|
|
|
16
16
|
update: '/customers/{customer_id}',
|
|
17
17
|
getCustomerBalance: '/customers/{customer_id}/credit-balances',
|
|
18
18
|
};
|
|
19
|
-
export * from './operations
|
|
19
|
+
export * from './operations';
|
|
20
20
|
export class CustomersResource extends BaseResource {
|
|
21
21
|
list(queryParams) {
|
|
22
22
|
const queryParameters = new QueryParameters(queryParams);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from './list-customer-query-parameters
|
|
2
|
-
export * from './create-customer-request-body
|
|
3
|
-
export * from './update-customer-request-body
|
|
4
|
-
export * from './get-credit-balance-query-parameters
|
|
1
|
+
export * from './list-customer-query-parameters';
|
|
2
|
+
export * from './create-customer-request-body';
|
|
3
|
+
export * from './update-customer-request-body';
|
|
4
|
+
export * from './get-credit-balance-query-parameters';
|
|
@@ -7,15 +7,15 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
7
7
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
8
|
});
|
|
9
9
|
};
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
10
|
+
import { Discount, DiscountCollection } from '../../entities';
|
|
11
|
+
import { BaseResource, PathParameters, QueryParameters } from '../../internal/base';
|
|
12
12
|
const DiscountPaths = {
|
|
13
13
|
list: '/discounts',
|
|
14
14
|
create: '/discounts',
|
|
15
15
|
get: '/discounts/{discount_id}',
|
|
16
16
|
update: '/discounts/{discount_id}',
|
|
17
17
|
};
|
|
18
|
-
export * from './operations
|
|
18
|
+
export * from './operations';
|
|
19
19
|
export class DiscountsResource extends BaseResource {
|
|
20
20
|
list(queryParams) {
|
|
21
21
|
const queryParameters = new QueryParameters(queryParams);
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './list-discount-query-parameters
|
|
2
|
-
export * from './create-discount-request-body
|
|
3
|
-
export * from './update-discount-request-body
|
|
1
|
+
export * from './list-discount-query-parameters';
|
|
2
|
+
export * from './create-discount-request-body';
|
|
3
|
+
export * from './update-discount-request-body';
|
|
@@ -7,8 +7,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
7
7
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
8
|
});
|
|
9
9
|
};
|
|
10
|
-
import { BaseResource } from '../../internal/base
|
|
11
|
-
import { EventType } from '../../entities
|
|
10
|
+
import { BaseResource } from '../../internal/base';
|
|
11
|
+
import { EventType } from '../../entities';
|
|
12
12
|
const EventTypesPaths = {
|
|
13
13
|
list: '/event-types',
|
|
14
14
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { BaseResource, QueryParameters } from '../../internal/base
|
|
2
|
-
import { EventCollection } from '../../entities
|
|
1
|
+
import { BaseResource, QueryParameters } from '../../internal/base';
|
|
2
|
+
import { EventCollection } from '../../entities';
|
|
3
3
|
const EventPaths = {
|
|
4
4
|
list: '/events',
|
|
5
5
|
};
|
|
6
|
-
export * from './operations
|
|
6
|
+
export * from './operations';
|
|
7
7
|
export class EventsResource extends BaseResource {
|
|
8
8
|
list(queryParams) {
|
|
9
9
|
const queryParameters = new QueryParameters(queryParams);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './list-events-query-parameters
|
|
1
|
+
export * from './list-events-query-parameters';
|