@paddle/paddle-node-sdk 2.7.3 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/entities/address/address.js +14 -0
- package/dist/cjs/entities/adjustment/adjustment-credit-note-pdf.js +1 -0
- package/dist/cjs/entities/adjustment/adjustment-item-totals.js +3 -0
- package/dist/cjs/entities/adjustment/adjustment-item.js +6 -0
- package/dist/cjs/entities/adjustment/adjustment-proration.js +2 -0
- package/dist/cjs/entities/adjustment/adjustment-time-period.js +2 -0
- package/dist/cjs/entities/adjustment/adjustment.js +15 -0
- package/dist/cjs/entities/business/business.js +11 -0
- package/dist/cjs/entities/business/contacts.js +2 -0
- package/dist/cjs/entities/customer/auth-token.js +2 -0
- package/dist/cjs/entities/customer/credit-balance.js +3 -0
- package/dist/cjs/entities/customer/customer-balance.js +3 -0
- package/dist/cjs/entities/customer/customer.js +10 -0
- package/dist/cjs/entities/customer-portal-session/customer-portal-session.js +4 -0
- package/dist/cjs/entities/customer-portal-session/customer-portal-subscription-url.js +3 -0
- package/dist/cjs/entities/customer-portal-session/general.js +1 -0
- package/dist/cjs/entities/customer-portal-session/urls.js +3 -2
- package/dist/cjs/entities/discount/discount.js +21 -2
- package/dist/cjs/entities/discount-group/discount-group-collection.js +11 -0
- package/dist/cjs/entities/discount-group/discount-group.js +21 -0
- package/dist/cjs/entities/discount-group/index.js +18 -0
- package/dist/cjs/entities/event-types/event-type.js +4 -0
- package/dist/cjs/entities/events/event.js +6 -2
- package/dist/cjs/entities/index.js +1 -0
- package/dist/cjs/entities/notification-settings/notification-settings.js +10 -0
- package/dist/cjs/entities/notifications/notification-log.js +6 -2
- package/dist/cjs/entities/notifications/notification.js +16 -5
- package/dist/cjs/entities/notifications/replay-notification.js +1 -0
- package/dist/cjs/entities/payment-method/payment-method.js +13 -0
- package/dist/cjs/entities/payout/payout.js +4 -0
- package/dist/cjs/entities/price/price-quantity.js +2 -0
- package/dist/cjs/entities/price/price.js +18 -2
- package/dist/cjs/entities/pricing-preview/pricing-preview-details.js +1 -0
- package/dist/cjs/entities/pricing-preview/pricing-preview-discounts.js +3 -0
- package/dist/cjs/entities/pricing-preview/pricing-preview-line-item.js +9 -0
- package/dist/cjs/entities/pricing-preview/pricing-preview.js +15 -7
- package/dist/cjs/entities/product/product.js +13 -2
- package/dist/cjs/entities/report/report-csv.js +1 -0
- package/dist/cjs/entities/report/report-filters.js +4 -2
- package/dist/cjs/entities/report/report.js +10 -4
- package/dist/cjs/entities/shared/adjustment-original-amount.js +2 -0
- package/dist/cjs/entities/shared/billing-details.js +5 -2
- package/dist/cjs/entities/shared/chargeback-fee.js +2 -0
- package/dist/cjs/entities/shared/import-meta.js +2 -0
- package/dist/cjs/entities/shared/index.js +2 -0
- package/dist/cjs/entities/shared/korean-market-underlying-details.js +10 -0
- package/dist/cjs/entities/shared/money.js +2 -0
- package/dist/cjs/entities/shared/payment-card.js +5 -0
- package/dist/cjs/entities/shared/payment-method-details.js +7 -0
- package/dist/cjs/entities/shared/payment-method-underlying-details.js +13 -0
- package/dist/cjs/entities/shared/payout-totals-adjustment.js +7 -0
- package/dist/cjs/entities/shared/paypal.js +2 -0
- package/dist/cjs/entities/shared/simulation-event-request.js +1 -0
- package/dist/cjs/entities/shared/simulation-event-response.js +2 -0
- package/dist/cjs/entities/shared/tax-rates-used.js +2 -0
- package/dist/cjs/entities/shared/time-period.js +2 -0
- package/dist/cjs/entities/shared/total-adjustments.js +6 -0
- package/dist/cjs/entities/shared/totals.js +4 -0
- package/dist/cjs/entities/shared/transaction-checkout.js +1 -0
- package/dist/cjs/entities/shared/transaction-payment-attempt.js +10 -2
- package/dist/cjs/entities/shared/transaction-payout-totals-adjusted.js +7 -0
- package/dist/cjs/entities/shared/transaction-payout-totals.js +11 -0
- package/dist/cjs/entities/shared/transaction-totals-adjusted.js +7 -0
- package/dist/cjs/entities/shared/transaction-totals.js +11 -0
- package/dist/cjs/entities/shared/unit-price-override.js +2 -0
- package/dist/cjs/entities/shared/unit-totals.js +4 -0
- package/dist/cjs/entities/simulation/simulation-scenario-config/simulation-scenario-config.js +5 -0
- package/dist/cjs/entities/simulation/simulation-scenario-config/subscription-cancellation-details.js +2 -0
- package/dist/cjs/entities/simulation/simulation-scenario-config/subscription-cancellation-entities.js +2 -2
- package/dist/cjs/entities/simulation/simulation-scenario-config/subscription-cancellation-options.js +4 -3
- package/dist/cjs/entities/simulation/simulation-scenario-config/subscription-creation-details.js +2 -0
- package/dist/cjs/entities/simulation/simulation-scenario-config/subscription-creation-entities.js +14 -8
- package/dist/cjs/entities/simulation/simulation-scenario-config/subscription-creation-item.js +2 -0
- package/dist/cjs/entities/simulation/simulation-scenario-config/subscription-creation-options.js +6 -4
- package/dist/cjs/entities/simulation/simulation-scenario-config/subscription-pause-details.js +2 -0
- package/dist/cjs/entities/simulation/simulation-scenario-config/subscription-pause-entities.js +2 -2
- package/dist/cjs/entities/simulation/simulation-scenario-config/subscription-pause-options.js +4 -3
- package/dist/cjs/entities/simulation/simulation-scenario-config/subscription-renewal-details.js +2 -0
- package/dist/cjs/entities/simulation/simulation-scenario-config/subscription-renewal-entities.js +2 -2
- package/dist/cjs/entities/simulation/simulation-scenario-config/subscription-renewal-options.js +4 -3
- package/dist/cjs/entities/simulation/simulation-scenario-config/subscription-resume-details.js +2 -0
- package/dist/cjs/entities/simulation/simulation-scenario-config/subscription-resume-entities.js +2 -2
- package/dist/cjs/entities/simulation/simulation-scenario-config/subscription-resume-options.js +4 -3
- package/dist/cjs/entities/simulation/simulation.js +12 -3
- package/dist/cjs/entities/simulation-run/simulation-run.js +7 -2
- package/dist/cjs/entities/simulation-run-event/simulation-run-event.js +8 -0
- package/dist/cjs/entities/simulation-types/simulation-type.js +6 -0
- package/dist/cjs/entities/subscription/next-transaction-adjustment-item.js +5 -0
- package/dist/cjs/entities/subscription/next-transaction-adjustment-preview.js +3 -0
- package/dist/cjs/entities/subscription/next-transaction.js +3 -0
- package/dist/cjs/entities/subscription/subscription-discount.js +5 -3
- package/dist/cjs/entities/subscription/subscription-item.js +10 -0
- package/dist/cjs/entities/subscription/subscription-management.js +2 -0
- package/dist/cjs/entities/subscription/subscription-preview-summary-result.js +3 -0
- package/dist/cjs/entities/subscription/subscription-preview-update-summary.js +3 -0
- package/dist/cjs/entities/subscription/subscription-preview.js +26 -0
- package/dist/cjs/entities/subscription/subscription-scheduled-change.js +3 -0
- package/dist/cjs/entities/subscription/subscription-time-period.js +2 -0
- package/dist/cjs/entities/subscription/subscription.js +25 -0
- package/dist/cjs/entities/subscription/transaction-details-preview.js +3 -0
- package/dist/cjs/entities/subscription/transaction-line-item-preview.js +7 -0
- package/dist/cjs/entities/transaction/address-preview.js +2 -0
- package/dist/cjs/entities/transaction/adjustment-totals-breakdown.js +3 -0
- package/dist/cjs/entities/transaction/adjustment-totals.js +7 -0
- package/dist/cjs/entities/transaction/proration.js +2 -0
- package/dist/cjs/entities/transaction/transaction-adjustment-item.js +6 -0
- package/dist/cjs/entities/transaction/transaction-adjustment.js +14 -0
- package/dist/cjs/entities/transaction/transaction-details.js +6 -0
- package/dist/cjs/entities/transaction/transaction-invoice-pdf.js +1 -0
- package/dist/cjs/entities/transaction/transaction-item-preview.js +5 -2
- package/dist/cjs/entities/transaction/transaction-item.js +3 -0
- package/dist/cjs/entities/transaction/transaction-line-item.js +8 -0
- package/dist/cjs/entities/transaction/transaction-preview.js +12 -2
- package/dist/cjs/entities/transaction/transaction-proration.js +2 -0
- package/dist/cjs/entities/transaction/transaction.js +31 -2
- package/dist/cjs/entities/transaction/transactions-time-period.js +2 -0
- package/dist/cjs/enums/api-key/api-key-permission.js +2 -0
- package/dist/cjs/enums/api-key/api-key-status.js +2 -0
- package/dist/cjs/enums/api-key/index.js +18 -0
- package/dist/cjs/enums/discount/discount-mode.js +2 -0
- package/dist/cjs/enums/discount/index.js +1 -0
- package/dist/cjs/enums/index.js +1 -0
- package/dist/cjs/enums/shared/index.js +1 -0
- package/dist/cjs/enums/shared/korean-market-underlying-payment-method-type.js +2 -0
- package/dist/cjs/internal/api/case-helpers.js +2 -13
- package/dist/cjs/internal/api/client.js +54 -64
- package/dist/cjs/internal/base/base-resource.js +1 -0
- package/dist/cjs/internal/base/collection.js +20 -45
- package/dist/cjs/internal/base/logger.js +1 -0
- package/dist/cjs/internal/base/path-parameters.js +2 -0
- package/dist/cjs/internal/base/query-parameters.js +1 -0
- package/dist/cjs/internal/errors/generic.js +5 -0
- package/dist/cjs/internal/providers/crypto/crypto-provider.js +2 -13
- package/dist/cjs/internal/providers/crypto/edge-crypto.js +14 -25
- package/dist/cjs/internal/providers/crypto/node-crypto.js +5 -16
- package/dist/cjs/internal/providers/runtime-provider.js +1 -0
- package/dist/cjs/notifications/entities/address/address-notification.js +15 -2
- package/dist/cjs/notifications/entities/adjustment/adjustment-item-notification.js +6 -0
- package/dist/cjs/notifications/entities/adjustment/adjustment-item-totals-notification.js +3 -0
- package/dist/cjs/notifications/entities/adjustment/adjustment-notification.js +15 -0
- package/dist/cjs/notifications/entities/adjustment/adjustment-proration-notification.js +2 -0
- package/dist/cjs/notifications/entities/adjustment/adjustment-time-period-notification.js +2 -0
- package/dist/cjs/notifications/entities/api-key/api-key-notification.js +28 -0
- package/dist/cjs/notifications/entities/api-key/index.js +17 -0
- package/dist/cjs/notifications/entities/business/business-notification.js +12 -2
- package/dist/cjs/notifications/entities/business/contacts-notification.js +2 -0
- package/dist/cjs/notifications/entities/customer/customer-notification.js +10 -0
- package/dist/cjs/notifications/entities/discount/discount-notification.js +21 -2
- package/dist/cjs/notifications/entities/discount-group/discount-group-notification.js +23 -0
- package/dist/cjs/notifications/entities/discount-group/index.js +17 -0
- package/dist/cjs/notifications/entities/index.js +2 -0
- package/dist/cjs/notifications/entities/payment-method/payment-method-deleted-notification.js +8 -0
- package/dist/cjs/notifications/entities/payment-method/payment-method-notification.js +7 -0
- package/dist/cjs/notifications/entities/payout/payout-notification.js +4 -0
- package/dist/cjs/notifications/entities/price/price-notification.js +19 -4
- package/dist/cjs/notifications/entities/price/price-quantity-notification.js +2 -0
- package/dist/cjs/notifications/entities/product/product-notification.js +13 -3
- package/dist/cjs/notifications/entities/report/report-filters-notification.js +4 -2
- package/dist/cjs/notifications/entities/report/report-notification.js +10 -4
- package/dist/cjs/notifications/entities/shared/adjustment-original-amount-notification.js +2 -0
- package/dist/cjs/notifications/entities/shared/billing-details-notification.js +5 -2
- package/dist/cjs/notifications/entities/shared/chargeback-fee-notification.js +2 -0
- package/dist/cjs/notifications/entities/shared/import-meta-notification.js +2 -0
- package/dist/cjs/notifications/entities/shared/index.js +2 -0
- package/dist/cjs/notifications/entities/shared/korean-market-underlying-details-notification.js +10 -0
- package/dist/cjs/notifications/entities/shared/money-notification.js +2 -0
- package/dist/cjs/notifications/entities/shared/payment-card-notification.js +5 -0
- package/dist/cjs/notifications/entities/shared/payment-method-details-notification.js +7 -0
- package/dist/cjs/notifications/entities/shared/payment-method-underlying-details-notification.js +13 -0
- package/dist/cjs/notifications/entities/shared/payout-totals-adjustment-notification.js +7 -0
- package/dist/cjs/notifications/entities/shared/tax-rates-used-notification.js +2 -0
- package/dist/cjs/notifications/entities/shared/time-period-notification.js +2 -0
- package/dist/cjs/notifications/entities/shared/total-adjustments-notification.js +6 -0
- package/dist/cjs/notifications/entities/shared/totals-notification.js +4 -0
- package/dist/cjs/notifications/entities/shared/transaction-checkout-notification.js +1 -0
- package/dist/cjs/notifications/entities/shared/transaction-payment-attempt-notification.js +10 -2
- package/dist/cjs/notifications/entities/shared/transaction-payout-totals-adjusted-notification.js +7 -0
- package/dist/cjs/notifications/entities/shared/transaction-payout-totals-notification.js +13 -0
- package/dist/cjs/notifications/entities/shared/transaction-totals-adjusted-notification.js +7 -0
- package/dist/cjs/notifications/entities/shared/transaction-totals-notification.js +11 -0
- package/dist/cjs/notifications/entities/shared/unit-price-override-notification.js +2 -0
- package/dist/cjs/notifications/entities/shared/unit-totals-notification.js +4 -0
- package/dist/cjs/notifications/entities/subscription/subscription-created-notification.js +23 -0
- package/dist/cjs/notifications/entities/subscription/subscription-discount-notification.js +4 -2
- package/dist/cjs/notifications/entities/subscription/subscription-item-notification.js +10 -0
- package/dist/cjs/notifications/entities/subscription/subscription-notification.js +22 -0
- package/dist/cjs/notifications/entities/subscription/subscription-price-notification.js +16 -3
- package/dist/cjs/notifications/entities/subscription/subscription-scheduled-change-notification.js +3 -0
- package/dist/cjs/notifications/entities/subscription/subscription-time-period-notification.js +2 -0
- package/dist/cjs/notifications/entities/transaction/transaction-details-notification.js +6 -0
- package/dist/cjs/notifications/entities/transaction/transaction-item-notification.js +3 -0
- package/dist/cjs/notifications/entities/transaction/transaction-line-item-notification.js +8 -0
- package/dist/cjs/notifications/entities/transaction/transaction-notification.js +23 -0
- package/dist/cjs/notifications/entities/transaction/transaction-proration-notification.js +2 -0
- package/dist/cjs/notifications/entities/transaction/transactions-time-period-notification.js +2 -0
- package/dist/cjs/notifications/events/address/address-created-event.js +2 -1
- package/dist/cjs/notifications/events/address/address-imported-event.js +2 -1
- package/dist/cjs/notifications/events/address/address-updated-event.js +2 -1
- package/dist/cjs/notifications/events/adjustment/adjustment-created-event.js +2 -1
- package/dist/cjs/notifications/events/adjustment/adjustment-updated-event.js +2 -1
- package/dist/cjs/notifications/events/api-key/api-key-created-event.js +15 -0
- package/dist/cjs/notifications/events/api-key/api-key-expired-event.js +15 -0
- package/dist/cjs/notifications/events/api-key/api-key-expiring-event.js +15 -0
- package/dist/cjs/notifications/events/api-key/api-key-revoked-event.js +15 -0
- package/dist/cjs/notifications/events/api-key/api-key-updated-event.js +15 -0
- package/dist/cjs/notifications/events/api-key/index.js +21 -0
- package/dist/cjs/notifications/events/business/business-created-event.js +2 -1
- package/dist/cjs/notifications/events/business/business-imported-event.js +2 -1
- package/dist/cjs/notifications/events/business/business-updated-event.js +2 -1
- package/dist/cjs/notifications/events/customer/customer-created-event.js +2 -1
- package/dist/cjs/notifications/events/customer/customer-imported-event.js +2 -1
- package/dist/cjs/notifications/events/customer/customer-updated-event.js +2 -1
- package/dist/cjs/notifications/events/discount/discount-created-event.js +2 -1
- package/dist/cjs/notifications/events/discount/discount-imported-event.js +2 -1
- package/dist/cjs/notifications/events/discount/discount-updated-event.js +2 -1
- package/dist/cjs/notifications/events/discount-group/discount-group-created-event.js +15 -0
- package/dist/cjs/notifications/events/discount-group/index.js +17 -0
- package/dist/cjs/notifications/events/generic/generic-event.js +1 -0
- package/dist/cjs/notifications/events/index.js +2 -0
- package/dist/cjs/notifications/events/payment-method/payment-method-deleted-event.js +2 -1
- package/dist/cjs/notifications/events/payment-method/payment-method-saved-event.js +2 -1
- package/dist/cjs/notifications/events/payout/payout-created-event.js +2 -1
- package/dist/cjs/notifications/events/payout/payout-paid-event.js +2 -1
- package/dist/cjs/notifications/events/price/price-created-event.js +2 -1
- package/dist/cjs/notifications/events/price/price-imported-event.js +2 -1
- package/dist/cjs/notifications/events/price/price-updated-event.js +2 -1
- package/dist/cjs/notifications/events/product/product-created-event.js +2 -1
- package/dist/cjs/notifications/events/product/product-imported-event.js +2 -1
- package/dist/cjs/notifications/events/product/product-updated-event.js +2 -1
- package/dist/cjs/notifications/events/report/report-created-event.js +2 -1
- package/dist/cjs/notifications/events/report/report-updated-event.js +2 -1
- package/dist/cjs/notifications/events/subscription/subscription-activated-event.js +2 -1
- package/dist/cjs/notifications/events/subscription/subscription-canceled-event.js +2 -1
- package/dist/cjs/notifications/events/subscription/subscription-created-event.js +2 -1
- package/dist/cjs/notifications/events/subscription/subscription-imported-event.js +2 -1
- package/dist/cjs/notifications/events/subscription/subscription-past-due-event.js +2 -1
- package/dist/cjs/notifications/events/subscription/subscription-paused-event.js +2 -1
- package/dist/cjs/notifications/events/subscription/subscription-resumed-event.js +2 -1
- package/dist/cjs/notifications/events/subscription/subscription-trialing-event.js +2 -1
- package/dist/cjs/notifications/events/subscription/subscription-updated-event.js +2 -1
- package/dist/cjs/notifications/events/transaction/transaction-billed-event.js +2 -1
- package/dist/cjs/notifications/events/transaction/transaction-canceled-event.js +2 -1
- package/dist/cjs/notifications/events/transaction/transaction-completed-event.js +2 -1
- package/dist/cjs/notifications/events/transaction/transaction-created-event.js +2 -1
- package/dist/cjs/notifications/events/transaction/transaction-paid-event.js +2 -1
- package/dist/cjs/notifications/events/transaction/transaction-past-due-event.js +2 -1
- package/dist/cjs/notifications/events/transaction/transaction-payment-failed-event.js +2 -1
- package/dist/cjs/notifications/events/transaction/transaction-ready-event.js +2 -1
- package/dist/cjs/notifications/events/transaction/transaction-revised-event.js +2 -1
- package/dist/cjs/notifications/events/transaction/transaction-updated-event.js +2 -1
- package/dist/cjs/notifications/helpers/types.js +6 -0
- package/dist/cjs/notifications/helpers/webhooks-validator.js +14 -26
- package/dist/cjs/notifications/helpers/webhooks.js +23 -24
- package/dist/cjs/notifications/types/api-key/api-key-notification-response.js +2 -0
- package/dist/cjs/notifications/types/api-key/index.js +17 -0
- package/dist/cjs/notifications/types/discount-group/discount-group-notification-response.js +2 -0
- package/dist/cjs/notifications/types/discount-group/index.js +17 -0
- package/dist/cjs/notifications/types/index.js +2 -0
- package/dist/cjs/notifications/types/shared/index.js +2 -0
- package/dist/cjs/notifications/types/shared/korean-market-underlying-details-notification.js +2 -0
- package/dist/cjs/notifications/types/shared/payment-method-underlying-details-notification.js +2 -0
- package/dist/cjs/paddle.js +30 -5
- package/dist/cjs/resources/addresses/index.js +25 -42
- package/dist/cjs/resources/adjustments/index.js +12 -25
- package/dist/cjs/resources/businesses/index.js +25 -42
- package/dist/cjs/resources/customer-portal-sessions/index.js +8 -19
- package/dist/cjs/resources/customers/index.js +35 -56
- package/dist/cjs/resources/discount-groups/index.js +36 -0
- package/dist/cjs/resources/discount-groups/operations/create-discount-group-request-body.js +2 -0
- package/dist/cjs/resources/discount-groups/operations/index.js +18 -0
- package/dist/cjs/resources/discount-groups/operations/list-discount-group-query-parameters.js +2 -0
- package/dist/cjs/resources/discounts/index.js +20 -37
- package/dist/cjs/resources/event-types/index.js +4 -15
- package/dist/cjs/resources/index.js +1 -0
- package/dist/cjs/resources/notification-settings/index.js +31 -50
- package/dist/cjs/resources/notifications/index.js +14 -27
- package/dist/cjs/resources/payment-methods/index.js +17 -30
- package/dist/cjs/resources/prices/index.js +21 -38
- package/dist/cjs/resources/pricing-preview/index.js +4 -15
- package/dist/cjs/resources/products/index.js +21 -38
- package/dist/cjs/resources/reports/index.js +18 -33
- package/dist/cjs/resources/simulation-run-events/index.js +18 -31
- package/dist/cjs/resources/simulation-runs/index.js +16 -29
- package/dist/cjs/resources/simulation-types/index.js +4 -15
- package/dist/cjs/resources/simulations/index.js +18 -33
- package/dist/cjs/resources/subscriptions/index.js +71 -100
- package/dist/cjs/resources/transactions/index.js +40 -61
- package/dist/cjs/types/discount-group/discount-group-response.js +2 -0
- package/dist/cjs/types/discount-group/index.js +17 -0
- package/dist/cjs/types/index.js +1 -0
- package/dist/cjs/types/shared/index.js +2 -0
- package/dist/cjs/types/shared/korean-market-underlying-details.js +2 -0
- package/dist/cjs/types/shared/payment-method-underlying-details.js +2 -0
- package/dist/cjs/version.js +1 -1
- package/dist/esm/entities/address/address.js +14 -0
- package/dist/esm/entities/adjustment/adjustment-credit-note-pdf.js +1 -0
- package/dist/esm/entities/adjustment/adjustment-item-totals.js +3 -0
- package/dist/esm/entities/adjustment/adjustment-item.js +6 -0
- package/dist/esm/entities/adjustment/adjustment-proration.js +2 -0
- package/dist/esm/entities/adjustment/adjustment-time-period.js +2 -0
- package/dist/esm/entities/adjustment/adjustment.js +15 -0
- package/dist/esm/entities/business/business.js +11 -0
- package/dist/esm/entities/business/contacts.js +2 -0
- package/dist/esm/entities/customer/auth-token.js +2 -0
- package/dist/esm/entities/customer/credit-balance.js +3 -0
- package/dist/esm/entities/customer/customer-balance.js +3 -0
- package/dist/esm/entities/customer/customer.js +10 -0
- package/dist/esm/entities/customer-portal-session/customer-portal-session.js +4 -0
- package/dist/esm/entities/customer-portal-session/customer-portal-subscription-url.js +3 -0
- package/dist/esm/entities/customer-portal-session/general.js +1 -0
- package/dist/esm/entities/customer-portal-session/urls.js +3 -2
- package/dist/esm/entities/discount/discount.js +21 -2
- package/dist/esm/entities/discount-group/discount-group-collection.js +7 -0
- package/dist/esm/entities/discount-group/discount-group.js +17 -0
- package/dist/esm/entities/discount-group/index.js +2 -0
- package/dist/esm/entities/event-types/event-type.js +4 -0
- package/dist/esm/entities/events/event.js +6 -2
- package/dist/esm/entities/index.js +1 -0
- package/dist/esm/entities/notification-settings/notification-settings.js +10 -0
- package/dist/esm/entities/notifications/notification-log.js +6 -2
- package/dist/esm/entities/notifications/notification.js +16 -5
- package/dist/esm/entities/notifications/replay-notification.js +1 -0
- package/dist/esm/entities/payment-method/payment-method.js +14 -1
- package/dist/esm/entities/payout/payout.js +4 -0
- package/dist/esm/entities/price/price-quantity.js +2 -0
- package/dist/esm/entities/price/price.js +18 -2
- package/dist/esm/entities/pricing-preview/pricing-preview-details.js +1 -0
- package/dist/esm/entities/pricing-preview/pricing-preview-discounts.js +3 -0
- package/dist/esm/entities/pricing-preview/pricing-preview-line-item.js +9 -0
- package/dist/esm/entities/pricing-preview/pricing-preview.js +15 -7
- package/dist/esm/entities/product/product.js +13 -2
- package/dist/esm/entities/report/report-csv.js +1 -0
- package/dist/esm/entities/report/report-filters.js +4 -2
- package/dist/esm/entities/report/report.js +10 -4
- package/dist/esm/entities/shared/adjustment-original-amount.js +2 -0
- package/dist/esm/entities/shared/billing-details.js +5 -2
- package/dist/esm/entities/shared/chargeback-fee.js +2 -0
- package/dist/esm/entities/shared/import-meta.js +2 -0
- package/dist/esm/entities/shared/index.js +2 -0
- package/dist/esm/entities/shared/korean-market-underlying-details.js +6 -0
- package/dist/esm/entities/shared/money.js +2 -0
- package/dist/esm/entities/shared/payment-card.js +5 -0
- package/dist/esm/entities/shared/payment-method-details.js +7 -0
- package/dist/esm/entities/shared/payment-method-underlying-details.js +9 -0
- package/dist/esm/entities/shared/payout-totals-adjustment.js +7 -0
- package/dist/esm/entities/shared/paypal.js +2 -0
- package/dist/esm/entities/shared/simulation-event-request.js +1 -0
- package/dist/esm/entities/shared/simulation-event-response.js +2 -0
- package/dist/esm/entities/shared/tax-rates-used.js +2 -0
- package/dist/esm/entities/shared/time-period.js +2 -0
- package/dist/esm/entities/shared/total-adjustments.js +6 -0
- package/dist/esm/entities/shared/totals.js +4 -0
- package/dist/esm/entities/shared/transaction-checkout.js +1 -0
- package/dist/esm/entities/shared/transaction-payment-attempt.js +10 -2
- package/dist/esm/entities/shared/transaction-payout-totals-adjusted.js +7 -0
- package/dist/esm/entities/shared/transaction-payout-totals.js +11 -0
- package/dist/esm/entities/shared/transaction-totals-adjusted.js +7 -0
- package/dist/esm/entities/shared/transaction-totals.js +11 -0
- package/dist/esm/entities/shared/unit-price-override.js +2 -0
- package/dist/esm/entities/shared/unit-totals.js +4 -0
- package/dist/esm/entities/simulation/simulation-scenario-config/simulation-scenario-config.js +5 -0
- package/dist/esm/entities/simulation/simulation-scenario-config/subscription-cancellation-details.js +2 -0
- package/dist/esm/entities/simulation/simulation-scenario-config/subscription-cancellation-entities.js +2 -2
- package/dist/esm/entities/simulation/simulation-scenario-config/subscription-cancellation-options.js +4 -3
- package/dist/esm/entities/simulation/simulation-scenario-config/subscription-creation-details.js +2 -0
- package/dist/esm/entities/simulation/simulation-scenario-config/subscription-creation-entities.js +14 -8
- package/dist/esm/entities/simulation/simulation-scenario-config/subscription-creation-item.js +2 -0
- package/dist/esm/entities/simulation/simulation-scenario-config/subscription-creation-options.js +6 -4
- package/dist/esm/entities/simulation/simulation-scenario-config/subscription-pause-details.js +2 -0
- package/dist/esm/entities/simulation/simulation-scenario-config/subscription-pause-entities.js +2 -2
- package/dist/esm/entities/simulation/simulation-scenario-config/subscription-pause-options.js +4 -3
- package/dist/esm/entities/simulation/simulation-scenario-config/subscription-renewal-details.js +2 -0
- package/dist/esm/entities/simulation/simulation-scenario-config/subscription-renewal-entities.js +2 -2
- package/dist/esm/entities/simulation/simulation-scenario-config/subscription-renewal-options.js +4 -3
- package/dist/esm/entities/simulation/simulation-scenario-config/subscription-resume-details.js +2 -0
- package/dist/esm/entities/simulation/simulation-scenario-config/subscription-resume-entities.js +2 -2
- package/dist/esm/entities/simulation/simulation-scenario-config/subscription-resume-options.js +4 -3
- package/dist/esm/entities/simulation/simulation.js +12 -3
- package/dist/esm/entities/simulation-run/simulation-run.js +7 -2
- package/dist/esm/entities/simulation-run-event/simulation-run-event.js +8 -0
- package/dist/esm/entities/simulation-types/simulation-type.js +6 -0
- package/dist/esm/entities/subscription/next-transaction-adjustment-item.js +5 -0
- package/dist/esm/entities/subscription/next-transaction-adjustment-preview.js +3 -0
- package/dist/esm/entities/subscription/next-transaction.js +3 -0
- package/dist/esm/entities/subscription/subscription-discount.js +5 -3
- package/dist/esm/entities/subscription/subscription-item.js +10 -0
- package/dist/esm/entities/subscription/subscription-management.js +2 -0
- package/dist/esm/entities/subscription/subscription-preview-summary-result.js +3 -0
- package/dist/esm/entities/subscription/subscription-preview-update-summary.js +3 -0
- package/dist/esm/entities/subscription/subscription-preview.js +26 -0
- package/dist/esm/entities/subscription/subscription-scheduled-change.js +3 -0
- package/dist/esm/entities/subscription/subscription-time-period.js +2 -0
- package/dist/esm/entities/subscription/subscription.js +25 -0
- package/dist/esm/entities/subscription/transaction-details-preview.js +3 -0
- package/dist/esm/entities/subscription/transaction-line-item-preview.js +7 -0
- package/dist/esm/entities/transaction/address-preview.js +2 -0
- package/dist/esm/entities/transaction/adjustment-totals-breakdown.js +3 -0
- package/dist/esm/entities/transaction/adjustment-totals.js +7 -0
- package/dist/esm/entities/transaction/proration.js +2 -0
- package/dist/esm/entities/transaction/transaction-adjustment-item.js +6 -0
- package/dist/esm/entities/transaction/transaction-adjustment.js +14 -0
- package/dist/esm/entities/transaction/transaction-details.js +6 -0
- package/dist/esm/entities/transaction/transaction-invoice-pdf.js +1 -0
- package/dist/esm/entities/transaction/transaction-item-preview.js +5 -2
- package/dist/esm/entities/transaction/transaction-item.js +3 -0
- package/dist/esm/entities/transaction/transaction-line-item.js +8 -0
- package/dist/esm/entities/transaction/transaction-preview.js +12 -2
- package/dist/esm/entities/transaction/transaction-proration.js +2 -0
- package/dist/esm/entities/transaction/transaction.js +31 -2
- package/dist/esm/entities/transaction/transactions-time-period.js +2 -0
- package/dist/esm/enums/api-key/api-key-permission.js +1 -0
- package/dist/esm/enums/api-key/api-key-status.js +1 -0
- package/dist/esm/enums/api-key/index.js +2 -0
- package/dist/esm/enums/discount/discount-mode.js +1 -0
- package/dist/esm/enums/discount/index.js +1 -0
- package/dist/esm/enums/index.js +1 -0
- package/dist/esm/enums/shared/index.js +1 -0
- package/dist/esm/enums/shared/korean-market-underlying-payment-method-type.js +1 -0
- package/dist/esm/internal/api/case-helpers.js +2 -13
- package/dist/esm/internal/api/client.js +54 -64
- package/dist/esm/internal/base/base-resource.js +1 -0
- package/dist/esm/internal/base/collection.js +20 -45
- package/dist/esm/internal/base/logger.js +1 -0
- package/dist/esm/internal/base/path-parameters.js +2 -0
- package/dist/esm/internal/base/query-parameters.js +1 -0
- package/dist/esm/internal/errors/generic.js +5 -0
- package/dist/esm/internal/providers/crypto/crypto-provider.js +2 -13
- package/dist/esm/internal/providers/crypto/edge-crypto.js +14 -25
- package/dist/esm/internal/providers/crypto/node-crypto.js +5 -16
- package/dist/esm/internal/providers/runtime-provider.js +1 -0
- package/dist/esm/notifications/entities/address/address-notification.js +15 -2
- package/dist/esm/notifications/entities/adjustment/adjustment-item-notification.js +6 -0
- package/dist/esm/notifications/entities/adjustment/adjustment-item-totals-notification.js +3 -0
- package/dist/esm/notifications/entities/adjustment/adjustment-notification.js +15 -0
- package/dist/esm/notifications/entities/adjustment/adjustment-proration-notification.js +2 -0
- package/dist/esm/notifications/entities/adjustment/adjustment-time-period-notification.js +2 -0
- package/dist/esm/notifications/entities/api-key/api-key-notification.js +24 -0
- package/dist/esm/notifications/entities/api-key/index.js +1 -0
- package/dist/esm/notifications/entities/business/business-notification.js +12 -2
- package/dist/esm/notifications/entities/business/contacts-notification.js +2 -0
- package/dist/esm/notifications/entities/customer/customer-notification.js +10 -0
- package/dist/esm/notifications/entities/discount/discount-notification.js +21 -2
- package/dist/esm/notifications/entities/discount-group/discount-group-notification.js +19 -0
- package/dist/esm/notifications/entities/discount-group/index.js +1 -0
- package/dist/esm/notifications/entities/index.js +2 -0
- package/dist/esm/notifications/entities/payment-method/payment-method-deleted-notification.js +8 -0
- package/dist/esm/notifications/entities/payment-method/payment-method-notification.js +7 -0
- package/dist/esm/notifications/entities/payout/payout-notification.js +4 -0
- package/dist/esm/notifications/entities/price/price-notification.js +19 -4
- package/dist/esm/notifications/entities/price/price-quantity-notification.js +2 -0
- package/dist/esm/notifications/entities/product/product-notification.js +13 -3
- package/dist/esm/notifications/entities/report/report-filters-notification.js +4 -2
- package/dist/esm/notifications/entities/report/report-notification.js +10 -4
- package/dist/esm/notifications/entities/shared/adjustment-original-amount-notification.js +2 -0
- package/dist/esm/notifications/entities/shared/billing-details-notification.js +5 -2
- package/dist/esm/notifications/entities/shared/chargeback-fee-notification.js +2 -0
- package/dist/esm/notifications/entities/shared/import-meta-notification.js +2 -0
- package/dist/esm/notifications/entities/shared/index.js +2 -0
- package/dist/esm/notifications/entities/shared/korean-market-underlying-details-notification.js +6 -0
- package/dist/esm/notifications/entities/shared/money-notification.js +2 -0
- package/dist/esm/notifications/entities/shared/payment-card-notification.js +5 -0
- package/dist/esm/notifications/entities/shared/payment-method-details-notification.js +7 -0
- package/dist/esm/notifications/entities/shared/payment-method-underlying-details-notification.js +9 -0
- package/dist/esm/notifications/entities/shared/payout-totals-adjustment-notification.js +7 -0
- package/dist/esm/notifications/entities/shared/tax-rates-used-notification.js +2 -0
- package/dist/esm/notifications/entities/shared/time-period-notification.js +2 -0
- package/dist/esm/notifications/entities/shared/total-adjustments-notification.js +6 -0
- package/dist/esm/notifications/entities/shared/totals-notification.js +4 -0
- package/dist/esm/notifications/entities/shared/transaction-checkout-notification.js +1 -0
- package/dist/esm/notifications/entities/shared/transaction-payment-attempt-notification.js +10 -2
- package/dist/esm/notifications/entities/shared/transaction-payout-totals-adjusted-notification.js +7 -0
- package/dist/esm/notifications/entities/shared/transaction-payout-totals-notification.js +13 -0
- package/dist/esm/notifications/entities/shared/transaction-totals-adjusted-notification.js +7 -0
- package/dist/esm/notifications/entities/shared/transaction-totals-notification.js +11 -0
- package/dist/esm/notifications/entities/shared/unit-price-override-notification.js +2 -0
- package/dist/esm/notifications/entities/shared/unit-totals-notification.js +4 -0
- package/dist/esm/notifications/entities/subscription/subscription-created-notification.js +23 -0
- package/dist/esm/notifications/entities/subscription/subscription-discount-notification.js +4 -2
- package/dist/esm/notifications/entities/subscription/subscription-item-notification.js +10 -0
- package/dist/esm/notifications/entities/subscription/subscription-notification.js +22 -0
- package/dist/esm/notifications/entities/subscription/subscription-price-notification.js +16 -3
- package/dist/esm/notifications/entities/subscription/subscription-scheduled-change-notification.js +3 -0
- package/dist/esm/notifications/entities/subscription/subscription-time-period-notification.js +2 -0
- package/dist/esm/notifications/entities/transaction/transaction-details-notification.js +6 -0
- package/dist/esm/notifications/entities/transaction/transaction-item-notification.js +3 -0
- package/dist/esm/notifications/entities/transaction/transaction-line-item-notification.js +8 -0
- package/dist/esm/notifications/entities/transaction/transaction-notification.js +23 -0
- package/dist/esm/notifications/entities/transaction/transaction-proration-notification.js +2 -0
- package/dist/esm/notifications/entities/transaction/transactions-time-period-notification.js +2 -0
- package/dist/esm/notifications/events/address/address-created-event.js +2 -1
- package/dist/esm/notifications/events/address/address-imported-event.js +2 -1
- package/dist/esm/notifications/events/address/address-updated-event.js +2 -1
- package/dist/esm/notifications/events/adjustment/adjustment-created-event.js +2 -1
- package/dist/esm/notifications/events/adjustment/adjustment-updated-event.js +2 -1
- package/dist/esm/notifications/events/api-key/api-key-created-event.js +11 -0
- package/dist/esm/notifications/events/api-key/api-key-expired-event.js +11 -0
- package/dist/esm/notifications/events/api-key/api-key-expiring-event.js +11 -0
- package/dist/esm/notifications/events/api-key/api-key-revoked-event.js +11 -0
- package/dist/esm/notifications/events/api-key/api-key-updated-event.js +11 -0
- package/dist/esm/notifications/events/api-key/index.js +5 -0
- package/dist/esm/notifications/events/business/business-created-event.js +2 -1
- package/dist/esm/notifications/events/business/business-imported-event.js +2 -1
- package/dist/esm/notifications/events/business/business-updated-event.js +2 -1
- package/dist/esm/notifications/events/customer/customer-created-event.js +2 -1
- package/dist/esm/notifications/events/customer/customer-imported-event.js +2 -1
- package/dist/esm/notifications/events/customer/customer-updated-event.js +2 -1
- package/dist/esm/notifications/events/discount/discount-created-event.js +2 -1
- package/dist/esm/notifications/events/discount/discount-imported-event.js +2 -1
- package/dist/esm/notifications/events/discount/discount-updated-event.js +2 -1
- package/dist/esm/notifications/events/discount-group/discount-group-created-event.js +11 -0
- package/dist/esm/notifications/events/discount-group/index.js +1 -0
- package/dist/esm/notifications/events/generic/generic-event.js +1 -0
- package/dist/esm/notifications/events/index.js +2 -0
- package/dist/esm/notifications/events/payment-method/payment-method-deleted-event.js +2 -1
- package/dist/esm/notifications/events/payment-method/payment-method-saved-event.js +2 -1
- package/dist/esm/notifications/events/payout/payout-created-event.js +2 -1
- package/dist/esm/notifications/events/payout/payout-paid-event.js +2 -1
- package/dist/esm/notifications/events/price/price-created-event.js +2 -1
- package/dist/esm/notifications/events/price/price-imported-event.js +2 -1
- package/dist/esm/notifications/events/price/price-updated-event.js +2 -1
- package/dist/esm/notifications/events/product/product-created-event.js +2 -1
- package/dist/esm/notifications/events/product/product-imported-event.js +2 -1
- package/dist/esm/notifications/events/product/product-updated-event.js +2 -1
- package/dist/esm/notifications/events/report/report-created-event.js +2 -1
- package/dist/esm/notifications/events/report/report-updated-event.js +2 -1
- package/dist/esm/notifications/events/subscription/subscription-activated-event.js +2 -1
- package/dist/esm/notifications/events/subscription/subscription-canceled-event.js +2 -1
- package/dist/esm/notifications/events/subscription/subscription-created-event.js +2 -1
- package/dist/esm/notifications/events/subscription/subscription-imported-event.js +2 -1
- package/dist/esm/notifications/events/subscription/subscription-past-due-event.js +2 -1
- package/dist/esm/notifications/events/subscription/subscription-paused-event.js +2 -1
- package/dist/esm/notifications/events/subscription/subscription-resumed-event.js +2 -1
- package/dist/esm/notifications/events/subscription/subscription-trialing-event.js +2 -1
- package/dist/esm/notifications/events/subscription/subscription-updated-event.js +2 -1
- package/dist/esm/notifications/events/transaction/transaction-billed-event.js +2 -1
- package/dist/esm/notifications/events/transaction/transaction-canceled-event.js +2 -1
- package/dist/esm/notifications/events/transaction/transaction-completed-event.js +2 -1
- package/dist/esm/notifications/events/transaction/transaction-created-event.js +2 -1
- package/dist/esm/notifications/events/transaction/transaction-paid-event.js +2 -1
- package/dist/esm/notifications/events/transaction/transaction-past-due-event.js +2 -1
- package/dist/esm/notifications/events/transaction/transaction-payment-failed-event.js +2 -1
- package/dist/esm/notifications/events/transaction/transaction-ready-event.js +2 -1
- package/dist/esm/notifications/events/transaction/transaction-revised-event.js +2 -1
- package/dist/esm/notifications/events/transaction/transaction-updated-event.js +2 -1
- package/dist/esm/notifications/helpers/types.js +6 -0
- package/dist/esm/notifications/helpers/webhooks-validator.js +14 -26
- package/dist/esm/notifications/helpers/webhooks.js +24 -25
- package/dist/esm/notifications/types/api-key/api-key-notification-response.js +1 -0
- package/dist/esm/notifications/types/api-key/index.js +1 -0
- package/dist/esm/notifications/types/discount-group/discount-group-notification-response.js +1 -0
- package/dist/esm/notifications/types/discount-group/index.js +1 -0
- package/dist/esm/notifications/types/index.js +2 -0
- package/dist/esm/notifications/types/shared/index.js +2 -0
- package/dist/esm/notifications/types/shared/korean-market-underlying-details-notification.js +1 -0
- package/dist/esm/notifications/types/shared/payment-method-underlying-details-notification.js +1 -0
- package/dist/esm/paddle.js +31 -6
- package/dist/esm/resources/addresses/index.js +25 -42
- package/dist/esm/resources/adjustments/index.js +12 -25
- package/dist/esm/resources/businesses/index.js +25 -42
- package/dist/esm/resources/customer-portal-sessions/index.js +8 -19
- package/dist/esm/resources/customers/index.js +35 -56
- package/dist/esm/resources/discount-groups/index.js +18 -0
- package/dist/esm/resources/discount-groups/operations/create-discount-group-request-body.js +1 -0
- package/dist/esm/resources/discount-groups/operations/index.js +2 -0
- package/dist/esm/resources/discount-groups/operations/list-discount-group-query-parameters.js +1 -0
- package/dist/esm/resources/discounts/index.js +20 -37
- package/dist/esm/resources/event-types/index.js +4 -15
- package/dist/esm/resources/index.js +1 -0
- package/dist/esm/resources/notification-settings/index.js +31 -50
- package/dist/esm/resources/notifications/index.js +14 -27
- package/dist/esm/resources/payment-methods/index.js +17 -30
- package/dist/esm/resources/prices/index.js +21 -38
- package/dist/esm/resources/pricing-preview/index.js +4 -15
- package/dist/esm/resources/products/index.js +21 -38
- package/dist/esm/resources/reports/index.js +18 -33
- package/dist/esm/resources/simulation-run-events/index.js +18 -31
- package/dist/esm/resources/simulation-runs/index.js +16 -29
- package/dist/esm/resources/simulation-types/index.js +4 -15
- package/dist/esm/resources/simulations/index.js +18 -33
- package/dist/esm/resources/subscriptions/index.js +71 -100
- package/dist/esm/resources/transactions/index.js +40 -61
- package/dist/esm/types/discount-group/discount-group-response.js +1 -0
- package/dist/esm/types/discount-group/index.js +1 -0
- package/dist/esm/types/index.js +1 -0
- package/dist/esm/types/shared/index.js +2 -0
- package/dist/esm/types/shared/korean-market-underlying-details.js +1 -0
- package/dist/esm/types/shared/payment-method-underlying-details.js +1 -0
- package/dist/esm/version.js +1 -1
- package/dist/tsconfig.cjs.tsbuildinfo +1 -1
- package/dist/tsconfig.esm.tsbuildinfo +1 -1
- package/dist/tsconfig.types.tsbuildinfo +1 -1
- package/dist/types/entities/discount/discount.d.ts +2 -1
- package/dist/types/entities/discount-group/discount-group-collection.d.ts +6 -0
- package/dist/types/entities/discount-group/discount-group.d.ts +12 -0
- package/dist/types/entities/discount-group/index.d.ts +2 -0
- package/dist/types/entities/index.d.ts +1 -0
- package/dist/types/entities/payment-method/payment-method.d.ts +2 -1
- package/dist/types/entities/shared/index.d.ts +2 -0
- package/dist/types/entities/shared/korean-market-underlying-details.d.ts +6 -0
- package/dist/types/entities/shared/payment-method-details.d.ts +2 -0
- package/dist/types/entities/shared/payment-method-underlying-details.d.ts +6 -0
- package/dist/types/enums/adjustment/adjustment-action.d.ts +1 -1
- package/dist/types/enums/api-key/api-key-permission.d.ts +1 -0
- package/dist/types/enums/api-key/api-key-status.d.ts +1 -0
- package/dist/types/enums/api-key/index.d.ts +2 -0
- package/dist/types/enums/discount/discount-mode.d.ts +1 -0
- package/dist/types/enums/discount/index.d.ts +1 -0
- package/dist/types/enums/index.d.ts +1 -0
- package/dist/types/enums/report/report-type.d.ts +1 -1
- package/dist/types/enums/shared/available-payment-methods.d.ts +1 -1
- package/dist/types/enums/shared/index.d.ts +1 -0
- package/dist/types/enums/shared/korean-market-underlying-payment-method-type.d.ts +1 -0
- package/dist/types/enums/shared/payment-type.d.ts +1 -1
- package/dist/types/notifications/entities/api-key/api-key-notification.d.ts +15 -0
- package/dist/types/notifications/entities/api-key/index.d.ts +1 -0
- package/dist/types/notifications/entities/discount/discount-notification.d.ts +2 -1
- package/dist/types/notifications/entities/discount-group/discount-group-notification.d.ts +12 -0
- package/dist/types/notifications/entities/discount-group/index.d.ts +1 -0
- package/dist/types/notifications/entities/index.d.ts +2 -0
- package/dist/types/notifications/entities/payment-method/payment-method-deleted-notification.d.ts +1 -1
- package/dist/types/notifications/entities/shared/index.d.ts +2 -0
- package/dist/types/notifications/entities/shared/korean-market-underlying-details-notification.d.ts +6 -0
- package/dist/types/notifications/entities/shared/payment-method-details-notification.d.ts +2 -0
- package/dist/types/notifications/entities/shared/payment-method-underlying-details-notification.d.ts +6 -0
- package/dist/types/notifications/events/api-key/api-key-created-event.d.ts +10 -0
- package/dist/types/notifications/events/api-key/api-key-expired-event.d.ts +10 -0
- package/dist/types/notifications/events/api-key/api-key-expiring-event.d.ts +10 -0
- package/dist/types/notifications/events/api-key/api-key-revoked-event.d.ts +10 -0
- package/dist/types/notifications/events/api-key/api-key-updated-event.d.ts +10 -0
- package/dist/types/notifications/events/api-key/index.d.ts +5 -0
- package/dist/types/notifications/events/discount-group/discount-group-created-event.d.ts +10 -0
- package/dist/types/notifications/events/discount-group/index.d.ts +1 -0
- package/dist/types/notifications/events/index.d.ts +2 -0
- package/dist/types/notifications/helpers/types.d.ts +9 -3
- package/dist/types/notifications/types/api-key/api-key-notification-response.d.ts +13 -0
- package/dist/types/notifications/types/api-key/index.d.ts +1 -0
- package/dist/types/notifications/types/discount/discount-notification-response.d.ts +2 -1
- package/dist/types/notifications/types/discount-group/discount-group-notification-response.d.ts +10 -0
- package/dist/types/notifications/types/discount-group/index.d.ts +1 -0
- package/dist/types/notifications/types/index.d.ts +2 -0
- package/dist/types/notifications/types/shared/index.d.ts +2 -0
- package/dist/types/notifications/types/shared/korean-market-underlying-details-notification.d.ts +4 -0
- package/dist/types/notifications/types/shared/payment-method-details.d.ts +3 -1
- package/dist/types/notifications/types/shared/payment-method-underlying-details-notification.d.ts +4 -0
- package/dist/types/paddle.d.ts +2 -1
- package/dist/types/resources/discount-groups/index.d.ts +8 -0
- package/dist/types/resources/discount-groups/operations/create-discount-group-request-body.d.ts +3 -0
- package/dist/types/resources/discount-groups/operations/index.d.ts +2 -0
- package/dist/types/resources/discount-groups/operations/list-discount-group-query-parameters.d.ts +6 -0
- package/dist/types/resources/discounts/operations/create-discount-request-body.d.ts +2 -1
- package/dist/types/resources/discounts/operations/list-discount-query-parameters.d.ts +2 -1
- package/dist/types/resources/discounts/operations/update-discount-request-body.d.ts +2 -1
- package/dist/types/resources/index.d.ts +1 -0
- package/dist/types/types/discount/discount-response.d.ts +2 -1
- package/dist/types/types/discount-group/discount-group-response.d.ts +10 -0
- package/dist/types/types/discount-group/index.d.ts +1 -0
- package/dist/types/types/events/events-response.d.ts +20 -2
- package/dist/types/types/index.d.ts +1 -0
- package/dist/types/types/payment-method/payment-method.d.ts +4 -2
- package/dist/types/types/shared/index.d.ts +2 -0
- package/dist/types/types/shared/korean-market-underlying-details.d.ts +4 -0
- package/dist/types/types/shared/payment-method-details.d.ts +3 -1
- package/dist/types/types/shared/payment-method-underlying-details.d.ts +4 -0
- package/dist/types/version.d.ts +1 -1
- package/package.json +8 -8
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
import { ImportMeta } from '../index.js';
|
|
2
2
|
export class Customer {
|
|
3
|
+
id;
|
|
4
|
+
name;
|
|
5
|
+
email;
|
|
6
|
+
marketingConsent;
|
|
7
|
+
status;
|
|
8
|
+
customData;
|
|
9
|
+
locale;
|
|
10
|
+
createdAt;
|
|
11
|
+
updatedAt;
|
|
12
|
+
importMeta;
|
|
3
13
|
constructor(customer) {
|
|
4
14
|
this.id = customer.id;
|
|
5
15
|
this.name = customer.name ? customer.name : null;
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { Urls } from './urls.js';
|
|
2
2
|
export class CustomerPortalSession {
|
|
3
|
+
id;
|
|
4
|
+
customerId;
|
|
5
|
+
urls;
|
|
6
|
+
createdAt;
|
|
3
7
|
constructor(customerPortalSessionResponse) {
|
|
4
8
|
this.id = customerPortalSessionResponse.id;
|
|
5
9
|
this.customerId = customerPortalSessionResponse.customer_id;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
export class CustomerPortalSubscriptionUrl {
|
|
2
|
+
id;
|
|
3
|
+
cancelSubscription;
|
|
4
|
+
updateSubscriptionPaymentMethod;
|
|
2
5
|
constructor(customerPortalSubscriptionUrlResponse) {
|
|
3
6
|
this.id = customerPortalSubscriptionUrlResponse.id;
|
|
4
7
|
this.cancelSubscription = customerPortalSubscriptionUrlResponse.cancel_subscription;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { General } from './general.js';
|
|
2
2
|
import { CustomerPortalSubscriptionUrl } from './customer-portal-subscription-url.js';
|
|
3
3
|
export class Urls {
|
|
4
|
+
general;
|
|
5
|
+
subscriptions;
|
|
4
6
|
constructor(urlsResponse) {
|
|
5
|
-
var _a, _b;
|
|
6
7
|
this.general = new General(urlsResponse.general);
|
|
7
8
|
this.subscriptions =
|
|
8
|
-
|
|
9
|
+
urlsResponse.subscriptions?.map((subscription) => new CustomerPortalSubscriptionUrl(subscription)) ?? [];
|
|
9
10
|
}
|
|
10
11
|
}
|
|
@@ -1,12 +1,31 @@
|
|
|
1
1
|
import { ImportMeta } from '../index.js';
|
|
2
2
|
export class Discount {
|
|
3
|
+
id;
|
|
4
|
+
status;
|
|
5
|
+
description;
|
|
6
|
+
enabledForCheckout;
|
|
7
|
+
code;
|
|
8
|
+
mode;
|
|
9
|
+
type;
|
|
10
|
+
amount;
|
|
11
|
+
currencyCode;
|
|
12
|
+
recur;
|
|
13
|
+
maximumRecurringIntervals;
|
|
14
|
+
usageLimit;
|
|
15
|
+
restrictTo;
|
|
16
|
+
expiresAt;
|
|
17
|
+
customData;
|
|
18
|
+
timesUsed;
|
|
19
|
+
createdAt;
|
|
20
|
+
updatedAt;
|
|
21
|
+
importMeta;
|
|
3
22
|
constructor(discount) {
|
|
4
|
-
var _a;
|
|
5
23
|
this.id = discount.id;
|
|
6
24
|
this.status = discount.status;
|
|
7
25
|
this.description = discount.description;
|
|
8
26
|
this.enabledForCheckout = discount.enabled_for_checkout;
|
|
9
27
|
this.code = discount.code ? discount.code : null;
|
|
28
|
+
this.mode = discount.mode;
|
|
10
29
|
this.type = discount.type;
|
|
11
30
|
this.amount = discount.amount;
|
|
12
31
|
this.currencyCode = discount.currency_code ? discount.currency_code : null;
|
|
@@ -16,7 +35,7 @@ export class Discount {
|
|
|
16
35
|
this.restrictTo = discount.restrict_to ? discount.restrict_to : null;
|
|
17
36
|
this.expiresAt = discount.expires_at ? discount.expires_at : null;
|
|
18
37
|
this.customData = discount.custom_data ? discount.custom_data : null;
|
|
19
|
-
this.timesUsed =
|
|
38
|
+
this.timesUsed = discount.times_used ?? null;
|
|
20
39
|
this.createdAt = discount.created_at;
|
|
21
40
|
this.updatedAt = discount.updated_at;
|
|
22
41
|
this.importMeta = discount.import_meta ? new ImportMeta(discount.import_meta) : null;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ImportMeta } from '../index.js';
|
|
2
|
+
export class DiscountGroup {
|
|
3
|
+
id;
|
|
4
|
+
name;
|
|
5
|
+
status;
|
|
6
|
+
createdAt;
|
|
7
|
+
updatedAt;
|
|
8
|
+
importMeta;
|
|
9
|
+
constructor(discountGroupResponse) {
|
|
10
|
+
this.id = discountGroupResponse.id;
|
|
11
|
+
this.name = discountGroupResponse.name;
|
|
12
|
+
this.status = discountGroupResponse.status;
|
|
13
|
+
this.createdAt = discountGroupResponse.created_at;
|
|
14
|
+
this.updatedAt = discountGroupResponse.updated_at;
|
|
15
|
+
this.importMeta = discountGroupResponse.import_meta ? new ImportMeta(discountGroupResponse.import_meta) : null;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
export class Event {
|
|
2
|
+
eventId;
|
|
3
|
+
notificationId;
|
|
4
|
+
eventType;
|
|
5
|
+
occurredAt;
|
|
6
|
+
data;
|
|
2
7
|
constructor(eventData) {
|
|
3
|
-
var _a;
|
|
4
8
|
this.eventId = eventData.event_id;
|
|
5
|
-
this.notificationId =
|
|
9
|
+
this.notificationId = eventData.notification_id ?? null;
|
|
6
10
|
this.eventType = eventData.event_type;
|
|
7
11
|
this.occurredAt = eventData.occurred_at;
|
|
8
12
|
this.data = eventData.data;
|
|
@@ -9,6 +9,7 @@ export * from './business/index.js';
|
|
|
9
9
|
export * from './subscription/index.js';
|
|
10
10
|
export * from './address/index.js';
|
|
11
11
|
export * from './discount/index.js';
|
|
12
|
+
export * from './discount-group/index.js';
|
|
12
13
|
export * from './events/index.js';
|
|
13
14
|
export * from './payment-method/index.js';
|
|
14
15
|
export * from './payout/index.js';
|
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
import { EventType } from '../event-types/index.js';
|
|
2
2
|
export class NotificationSettings {
|
|
3
|
+
id;
|
|
4
|
+
description;
|
|
5
|
+
type;
|
|
6
|
+
destination;
|
|
7
|
+
active;
|
|
8
|
+
apiVersion;
|
|
9
|
+
includeSensitiveFields;
|
|
10
|
+
trafficSource;
|
|
11
|
+
subscribedEvents;
|
|
12
|
+
endpointSecretKey;
|
|
3
13
|
constructor(notificationSettings) {
|
|
4
14
|
this.id = notificationSettings.id;
|
|
5
15
|
this.description = notificationSettings.description;
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
export class NotificationLog {
|
|
2
|
+
id;
|
|
3
|
+
responseCode;
|
|
4
|
+
responseContentType;
|
|
5
|
+
responseBody;
|
|
6
|
+
attemptedAt;
|
|
2
7
|
constructor(notificationLogResponse) {
|
|
3
|
-
var _a;
|
|
4
8
|
this.id = notificationLogResponse.id;
|
|
5
9
|
this.responseCode = notificationLogResponse.response_code;
|
|
6
|
-
this.responseContentType =
|
|
10
|
+
this.responseContentType = notificationLogResponse.response_content_type ?? null;
|
|
7
11
|
this.responseBody = notificationLogResponse.response_body;
|
|
8
12
|
this.attemptedAt = notificationLogResponse.attempted_at;
|
|
9
13
|
}
|
|
@@ -1,17 +1,28 @@
|
|
|
1
1
|
import { Webhooks } from '../../notifications/index.js';
|
|
2
2
|
export class Notification {
|
|
3
|
+
id;
|
|
4
|
+
type;
|
|
5
|
+
status;
|
|
6
|
+
payload;
|
|
7
|
+
occurredAt;
|
|
8
|
+
deliveredAt;
|
|
9
|
+
replayedAt;
|
|
10
|
+
origin;
|
|
11
|
+
lastAttemptAt;
|
|
12
|
+
retryAt;
|
|
13
|
+
timesAttempted;
|
|
14
|
+
notificationSettingId;
|
|
3
15
|
constructor(notificationResponse) {
|
|
4
|
-
var _a, _b, _c, _d;
|
|
5
16
|
this.id = notificationResponse.id;
|
|
6
17
|
this.type = notificationResponse.type;
|
|
7
18
|
this.status = notificationResponse.status;
|
|
8
19
|
this.payload = Webhooks.fromJson(notificationResponse.payload);
|
|
9
20
|
this.occurredAt = notificationResponse.occurred_at;
|
|
10
|
-
this.deliveredAt =
|
|
11
|
-
this.replayedAt =
|
|
21
|
+
this.deliveredAt = notificationResponse.delivered_at ?? null;
|
|
22
|
+
this.replayedAt = notificationResponse.replayed_at ?? null;
|
|
12
23
|
this.origin = notificationResponse.origin;
|
|
13
|
-
this.lastAttemptAt =
|
|
14
|
-
this.retryAt =
|
|
24
|
+
this.lastAttemptAt = notificationResponse.last_attempt_at ?? null;
|
|
25
|
+
this.retryAt = notificationResponse.retry_at ?? null;
|
|
15
26
|
this.timesAttempted = notificationResponse.times_attempted;
|
|
16
27
|
this.notificationSettingId = notificationResponse.notification_setting_id;
|
|
17
28
|
}
|
|
@@ -1,5 +1,15 @@
|
|
|
1
|
-
import { PaymentCard, PayPal } from '../shared/index.js';
|
|
1
|
+
import { PaymentCard, PaymentMethodUnderlyingDetails, PayPal } from '../shared/index.js';
|
|
2
2
|
export class PaymentMethod {
|
|
3
|
+
id;
|
|
4
|
+
customerId;
|
|
5
|
+
addressId;
|
|
6
|
+
type;
|
|
7
|
+
card;
|
|
8
|
+
paypal;
|
|
9
|
+
underlyingDetails;
|
|
10
|
+
origin;
|
|
11
|
+
savedAt;
|
|
12
|
+
updatedAt;
|
|
3
13
|
constructor(paymentMethodResponse) {
|
|
4
14
|
this.id = paymentMethodResponse.id;
|
|
5
15
|
this.customerId = paymentMethodResponse.customer_id;
|
|
@@ -7,6 +17,9 @@ export class PaymentMethod {
|
|
|
7
17
|
this.type = paymentMethodResponse.type;
|
|
8
18
|
this.card = paymentMethodResponse.card ? new PaymentCard(paymentMethodResponse.card) : null;
|
|
9
19
|
this.paypal = paymentMethodResponse.paypal ? new PayPal(paymentMethodResponse.paypal) : null;
|
|
20
|
+
this.underlyingDetails = paymentMethodResponse.underlying_details
|
|
21
|
+
? new PaymentMethodUnderlyingDetails(paymentMethodResponse.underlying_details)
|
|
22
|
+
: null;
|
|
10
23
|
this.origin = paymentMethodResponse.origin;
|
|
11
24
|
this.savedAt = paymentMethodResponse.saved_at;
|
|
12
25
|
this.updatedAt = paymentMethodResponse.updated_at;
|
|
@@ -2,8 +2,24 @@ import { ImportMeta, Money, TimePeriod, UnitPriceOverride } from '../shared/inde
|
|
|
2
2
|
import { PriceQuantity } from './price-quantity.js';
|
|
3
3
|
import { Product } from '../product/index.js';
|
|
4
4
|
export class Price {
|
|
5
|
+
id;
|
|
6
|
+
productId;
|
|
7
|
+
description;
|
|
8
|
+
name;
|
|
9
|
+
type;
|
|
10
|
+
billingCycle;
|
|
11
|
+
trialPeriod;
|
|
12
|
+
taxMode;
|
|
13
|
+
unitPrice;
|
|
14
|
+
unitPriceOverrides;
|
|
15
|
+
quantity;
|
|
16
|
+
status;
|
|
17
|
+
createdAt;
|
|
18
|
+
updatedAt;
|
|
19
|
+
customData;
|
|
20
|
+
importMeta;
|
|
21
|
+
product;
|
|
5
22
|
constructor(price) {
|
|
6
|
-
var _a, _b;
|
|
7
23
|
this.id = price.id;
|
|
8
24
|
this.productId = price.product_id;
|
|
9
25
|
this.description = price.description;
|
|
@@ -14,7 +30,7 @@ export class Price {
|
|
|
14
30
|
this.taxMode = price.tax_mode;
|
|
15
31
|
this.unitPrice = new Money(price.unit_price);
|
|
16
32
|
this.unitPriceOverrides =
|
|
17
|
-
|
|
33
|
+
price.unit_price_overrides?.map((unit_price_override) => new UnitPriceOverride(unit_price_override)) ?? [];
|
|
18
34
|
this.quantity = new PriceQuantity(price.quantity);
|
|
19
35
|
this.status = price.status;
|
|
20
36
|
this.createdAt = price.created_at;
|
|
@@ -3,6 +3,15 @@ import { Totals } from '../shared/index.js';
|
|
|
3
3
|
import { Product } from '../product/index.js';
|
|
4
4
|
import { PricingPreviewDiscounts } from './pricing-preview-discounts.js';
|
|
5
5
|
export class PricingPreviewLineItem {
|
|
6
|
+
price;
|
|
7
|
+
quantity;
|
|
8
|
+
taxRate;
|
|
9
|
+
unitTotals;
|
|
10
|
+
formattedUnitTotals;
|
|
11
|
+
totals;
|
|
12
|
+
formattedTotals;
|
|
13
|
+
product;
|
|
14
|
+
discounts;
|
|
6
15
|
constructor(lineItem) {
|
|
7
16
|
this.price = new Price(lineItem.price);
|
|
8
17
|
this.quantity = lineItem.quantity;
|
|
@@ -1,16 +1,24 @@
|
|
|
1
1
|
import { AddressPreview } from '../transaction/index.js';
|
|
2
2
|
import { PricingPreviewDetails } from './pricing-preview-details.js';
|
|
3
3
|
export class PricingPreview {
|
|
4
|
+
customerId;
|
|
5
|
+
addressId;
|
|
6
|
+
businessId;
|
|
7
|
+
currencyCode;
|
|
8
|
+
discountId;
|
|
9
|
+
address;
|
|
10
|
+
customerIpAddress;
|
|
11
|
+
details;
|
|
12
|
+
availablePaymentMethods;
|
|
4
13
|
constructor(pricePreview) {
|
|
5
|
-
|
|
6
|
-
this.
|
|
7
|
-
this.
|
|
8
|
-
this.businessId = (_c = pricePreview.business_id) !== null && _c !== void 0 ? _c : null;
|
|
14
|
+
this.customerId = pricePreview.customer_id ?? null;
|
|
15
|
+
this.addressId = pricePreview.address_id ?? null;
|
|
16
|
+
this.businessId = pricePreview.business_id ?? null;
|
|
9
17
|
this.currencyCode = pricePreview.currency_code;
|
|
10
|
-
this.discountId =
|
|
18
|
+
this.discountId = pricePreview.discount_id ?? null;
|
|
11
19
|
this.address = pricePreview.address ? new AddressPreview(pricePreview.address) : null;
|
|
12
|
-
this.customerIpAddress =
|
|
20
|
+
this.customerIpAddress = pricePreview.customer_ip_address ?? null;
|
|
13
21
|
this.details = new PricingPreviewDetails(pricePreview.details);
|
|
14
|
-
this.availablePaymentMethods =
|
|
22
|
+
this.availablePaymentMethods = pricePreview.available_payment_methods ?? [];
|
|
15
23
|
}
|
|
16
24
|
}
|
|
@@ -1,10 +1,21 @@
|
|
|
1
1
|
import { ImportMeta, Price } from '../index.js';
|
|
2
2
|
export class Product {
|
|
3
|
+
id;
|
|
4
|
+
name;
|
|
5
|
+
type;
|
|
6
|
+
description;
|
|
7
|
+
taxCategory;
|
|
8
|
+
imageUrl;
|
|
9
|
+
customData;
|
|
10
|
+
status;
|
|
11
|
+
createdAt;
|
|
12
|
+
updatedAt;
|
|
13
|
+
importMeta;
|
|
14
|
+
prices;
|
|
3
15
|
constructor(product) {
|
|
4
|
-
var _a;
|
|
5
16
|
this.id = product.id;
|
|
6
17
|
this.name = product.name;
|
|
7
|
-
this.type =
|
|
18
|
+
this.type = product.type ?? null;
|
|
8
19
|
this.description = product.description ? product.description : null;
|
|
9
20
|
this.taxCategory = product.tax_category;
|
|
10
21
|
this.imageUrl = product.image_url ? product.image_url : null;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
export class ReportFilters {
|
|
2
|
+
name;
|
|
3
|
+
operator;
|
|
4
|
+
value;
|
|
2
5
|
constructor(reportFiltersResponse) {
|
|
3
|
-
var _a;
|
|
4
6
|
this.name = reportFiltersResponse.name;
|
|
5
|
-
this.operator =
|
|
7
|
+
this.operator = reportFiltersResponse.operator ?? null;
|
|
6
8
|
this.value = reportFiltersResponse.value;
|
|
7
9
|
}
|
|
8
10
|
}
|
|
@@ -1,13 +1,19 @@
|
|
|
1
1
|
import { ReportFilters } from './report-filters.js';
|
|
2
2
|
export class Report {
|
|
3
|
+
id;
|
|
4
|
+
status;
|
|
5
|
+
rows;
|
|
6
|
+
type;
|
|
7
|
+
filters;
|
|
8
|
+
expiresAt;
|
|
9
|
+
createdAt;
|
|
3
10
|
constructor(reportResponse) {
|
|
4
|
-
var _a, _b, _c;
|
|
5
11
|
this.id = reportResponse.id;
|
|
6
12
|
this.status = reportResponse.status;
|
|
7
|
-
this.rows =
|
|
13
|
+
this.rows = reportResponse.rows ?? null;
|
|
8
14
|
this.type = reportResponse.type;
|
|
9
|
-
this.filters =
|
|
10
|
-
this.expiresAt =
|
|
15
|
+
this.filters = reportResponse.filters?.map((filter) => new ReportFilters(filter));
|
|
16
|
+
this.expiresAt = reportResponse.expires_at ?? null;
|
|
11
17
|
this.createdAt = reportResponse.created_at;
|
|
12
18
|
}
|
|
13
19
|
}
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import { TimePeriod } from './time-period.js';
|
|
2
2
|
export class BillingDetails {
|
|
3
|
+
enableCheckout;
|
|
4
|
+
purchaseOrderNumber;
|
|
5
|
+
additionalInformation;
|
|
6
|
+
paymentTerms;
|
|
3
7
|
constructor(billingDetails) {
|
|
4
|
-
|
|
5
|
-
this.enableCheckout = (_a = billingDetails.enable_checkout) !== null && _a !== void 0 ? _a : null;
|
|
8
|
+
this.enableCheckout = billingDetails.enable_checkout ?? null;
|
|
6
9
|
this.purchaseOrderNumber = billingDetails.purchase_order_number ? billingDetails.purchase_order_number : null;
|
|
7
10
|
this.additionalInformation = billingDetails.additional_information ? billingDetails.additional_information : null;
|
|
8
11
|
this.paymentTerms = new TimePeriod(billingDetails.payment_terms);
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { AdjustmentOriginalAmount } from './adjustment-original-amount.js';
|
|
2
2
|
export class ChargebackFee {
|
|
3
|
+
amount;
|
|
4
|
+
original;
|
|
3
5
|
constructor(chargebackFee) {
|
|
4
6
|
this.amount = chargebackFee.amount;
|
|
5
7
|
this.original = chargebackFee.original ? new AdjustmentOriginalAmount(chargebackFee.original) : null;
|
|
@@ -21,3 +21,5 @@ export * from './payout-totals-adjustment.js';
|
|
|
21
21
|
export * from './import-meta.js';
|
|
22
22
|
export * from './simulation-event-request.js';
|
|
23
23
|
export * from './simulation-event-response.js';
|
|
24
|
+
export * from './payment-method-underlying-details.js';
|
|
25
|
+
export * from './korean-market-underlying-details.js';
|
|
@@ -1,7 +1,14 @@
|
|
|
1
1
|
import { PaymentCard } from './payment-card.js';
|
|
2
|
+
import { PaymentMethodUnderlyingDetails } from './payment-method-underlying-details.js';
|
|
2
3
|
export class PaymentMethodDetails {
|
|
4
|
+
type;
|
|
5
|
+
card;
|
|
6
|
+
underlyingDetails;
|
|
3
7
|
constructor(paymentMethodDetails) {
|
|
4
8
|
this.type = paymentMethodDetails.type;
|
|
5
9
|
this.card = paymentMethodDetails.card ? new PaymentCard(paymentMethodDetails.card) : null;
|
|
10
|
+
this.underlyingDetails = paymentMethodDetails.underlying_details
|
|
11
|
+
? new PaymentMethodUnderlyingDetails(paymentMethodDetails.underlying_details)
|
|
12
|
+
: null;
|
|
6
13
|
}
|
|
7
14
|
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { KoreanMarketUnderlyingDetails } from './korean-market-underlying-details.js';
|
|
2
|
+
export class PaymentMethodUnderlyingDetails {
|
|
3
|
+
koreaLocal;
|
|
4
|
+
constructor(paymentMethodUnderlyingDetails) {
|
|
5
|
+
this.koreaLocal = paymentMethodUnderlyingDetails.korea_local
|
|
6
|
+
? new KoreanMarketUnderlyingDetails(paymentMethodUnderlyingDetails.korea_local)
|
|
7
|
+
: null;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
import { ChargebackFee } from './chargeback-fee.js';
|
|
2
2
|
export class PayoutTotalsAdjustment {
|
|
3
|
+
subtotal;
|
|
4
|
+
tax;
|
|
5
|
+
total;
|
|
6
|
+
fee;
|
|
7
|
+
chargebackFee;
|
|
8
|
+
earnings;
|
|
9
|
+
currencyCode;
|
|
3
10
|
constructor(payoutTotalsAdjustment) {
|
|
4
11
|
this.subtotal = payoutTotalsAdjustment.subtotal;
|
|
5
12
|
this.tax = payoutTotalsAdjustment.tax;
|