@paddle/paddle-node-sdk 2.8.0 → 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 +20 -2
- package/dist/cjs/entities/discount-group/discount-group.js +6 -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/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 +10 -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/korean-market-underlying-details.js +1 -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 +3 -0
- package/dist/cjs/entities/shared/payment-method-underlying-details.js +1 -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/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 +13 -4
- 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 +20 -2
- package/dist/cjs/notifications/entities/discount-group/discount-group-notification.js +6 -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/korean-market-underlying-details-notification.js +1 -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 +3 -0
- package/dist/cjs/notifications/entities/shared/payment-method-underlying-details-notification.js +1 -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 +2 -1
- package/dist/cjs/notifications/events/api-key/api-key-expired-event.js +2 -1
- package/dist/cjs/notifications/events/api-key/api-key-expiring-event.js +2 -1
- package/dist/cjs/notifications/events/api-key/api-key-revoked-event.js +2 -1
- package/dist/cjs/notifications/events/api-key/api-key-updated-event.js +2 -1
- 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 +2 -1
- package/dist/cjs/notifications/events/generic/generic-event.js +1 -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/webhooks-validator.js +14 -26
- package/dist/cjs/notifications/helpers/webhooks.js +11 -24
- package/dist/cjs/paddle.js +29 -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 +4 -15
- package/dist/cjs/resources/discounts/index.js +20 -37
- package/dist/cjs/resources/event-types/index.js +4 -15
- 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/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 +20 -2
- package/dist/esm/entities/discount-group/discount-group.js +6 -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/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 +10 -0
- 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/korean-market-underlying-details.js +1 -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 +3 -0
- package/dist/esm/entities/shared/payment-method-underlying-details.js +1 -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/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 +13 -4
- 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 +20 -2
- package/dist/esm/notifications/entities/discount-group/discount-group-notification.js +6 -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/korean-market-underlying-details-notification.js +1 -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 +3 -0
- package/dist/esm/notifications/entities/shared/payment-method-underlying-details-notification.js +1 -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 +2 -1
- package/dist/esm/notifications/events/api-key/api-key-expired-event.js +2 -1
- package/dist/esm/notifications/events/api-key/api-key-expiring-event.js +2 -1
- package/dist/esm/notifications/events/api-key/api-key-revoked-event.js +2 -1
- package/dist/esm/notifications/events/api-key/api-key-updated-event.js +2 -1
- 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 +2 -1
- package/dist/esm/notifications/events/generic/generic-event.js +1 -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/webhooks-validator.js +14 -26
- package/dist/esm/notifications/helpers/webhooks.js +11 -24
- package/dist/esm/paddle.js +29 -5
- 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 +4 -15
- package/dist/esm/resources/discounts/index.js +20 -37
- package/dist/esm/resources/event-types/index.js +4 -15
- 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/version.js +1 -1
- package/dist/types/version.d.ts +1 -1
- package/package.json +4 -4
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.AdjustmentOriginalAmountNotification = void 0;
|
|
4
4
|
class AdjustmentOriginalAmountNotification {
|
|
5
|
+
amount;
|
|
6
|
+
currencyCode;
|
|
5
7
|
constructor(originalAmount) {
|
|
6
8
|
this.amount = originalAmount.amount;
|
|
7
9
|
this.currencyCode = originalAmount.currency_code;
|
|
@@ -3,9 +3,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.BillingDetailsNotification = void 0;
|
|
4
4
|
const time_period_notification_js_1 = require("./time-period-notification.js");
|
|
5
5
|
class BillingDetailsNotification {
|
|
6
|
+
enableCheckout;
|
|
7
|
+
purchaseOrderNumber;
|
|
8
|
+
additionalInformation;
|
|
9
|
+
paymentTerms;
|
|
6
10
|
constructor(billingDetails) {
|
|
7
|
-
|
|
8
|
-
this.enableCheckout = (_a = billingDetails.enable_checkout) !== null && _a !== void 0 ? _a : null;
|
|
11
|
+
this.enableCheckout = billingDetails.enable_checkout ?? null;
|
|
9
12
|
this.purchaseOrderNumber = billingDetails.purchase_order_number ? billingDetails.purchase_order_number : null;
|
|
10
13
|
this.additionalInformation = billingDetails.additional_information ? billingDetails.additional_information : null;
|
|
11
14
|
this.paymentTerms = new time_period_notification_js_1.TimePeriodNotification(billingDetails.payment_terms);
|
|
@@ -3,6 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.ChargebackFeeNotification = void 0;
|
|
4
4
|
const adjustment_original_amount_notification_js_1 = require("./adjustment-original-amount-notification.js");
|
|
5
5
|
class ChargebackFeeNotification {
|
|
6
|
+
amount;
|
|
7
|
+
original;
|
|
6
8
|
constructor(chargebackFee) {
|
|
7
9
|
this.amount = chargebackFee.amount;
|
|
8
10
|
this.original = chargebackFee.original ? new adjustment_original_amount_notification_js_1.AdjustmentOriginalAmountNotification(chargebackFee.original) : null;
|
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ImportMetaNotification = void 0;
|
|
4
4
|
class ImportMetaNotification {
|
|
5
|
+
externalId;
|
|
6
|
+
importedFrom;
|
|
5
7
|
constructor(importMeta) {
|
|
6
8
|
this.externalId = importMeta.external_id ? importMeta.external_id : null;
|
|
7
9
|
this.importedFrom = importMeta.imported_from;
|
package/dist/cjs/notifications/entities/shared/korean-market-underlying-details-notification.js
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.KoreanMarketUnderlyingDetailsNotification = void 0;
|
|
4
4
|
class KoreanMarketUnderlyingDetailsNotification {
|
|
5
|
+
type;
|
|
5
6
|
constructor(koreanMarketUnderlyingDetails) {
|
|
6
7
|
this.type = koreanMarketUnderlyingDetails.type;
|
|
7
8
|
}
|
|
@@ -2,6 +2,11 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.PaymentCardNotification = void 0;
|
|
4
4
|
class PaymentCardNotification {
|
|
5
|
+
type;
|
|
6
|
+
last4;
|
|
7
|
+
expiryMonth;
|
|
8
|
+
expiryYear;
|
|
9
|
+
cardholderName;
|
|
5
10
|
constructor(paymentCard) {
|
|
6
11
|
this.type = paymentCard.type;
|
|
7
12
|
this.last4 = paymentCard.last4;
|
|
@@ -4,6 +4,9 @@ exports.PaymentMethodDetailsNotification = void 0;
|
|
|
4
4
|
const payment_card_notification_js_1 = require("./payment-card-notification.js");
|
|
5
5
|
const payment_method_underlying_details_notification_js_1 = require("./payment-method-underlying-details-notification.js");
|
|
6
6
|
class PaymentMethodDetailsNotification {
|
|
7
|
+
type;
|
|
8
|
+
card;
|
|
9
|
+
underlyingDetails;
|
|
7
10
|
constructor(paymentMethodDetails) {
|
|
8
11
|
this.type = paymentMethodDetails.type;
|
|
9
12
|
this.card = paymentMethodDetails.card ? new payment_card_notification_js_1.PaymentCardNotification(paymentMethodDetails.card) : null;
|
package/dist/cjs/notifications/entities/shared/payment-method-underlying-details-notification.js
CHANGED
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.PaymentMethodUnderlyingDetailsNotification = void 0;
|
|
4
4
|
const korean_market_underlying_details_notification_js_1 = require("./korean-market-underlying-details-notification.js");
|
|
5
5
|
class PaymentMethodUnderlyingDetailsNotification {
|
|
6
|
+
koreaLocal;
|
|
6
7
|
constructor(paymentMethodUnderlyingDetails) {
|
|
7
8
|
this.koreaLocal = paymentMethodUnderlyingDetails.korea_local
|
|
8
9
|
? new korean_market_underlying_details_notification_js_1.KoreanMarketUnderlyingDetailsNotification(paymentMethodUnderlyingDetails.korea_local)
|
|
@@ -3,6 +3,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.PayoutTotalsAdjustmentNotification = void 0;
|
|
4
4
|
const chargeback_fee_notification_js_1 = require("./chargeback-fee-notification.js");
|
|
5
5
|
class PayoutTotalsAdjustmentNotification {
|
|
6
|
+
subtotal;
|
|
7
|
+
tax;
|
|
8
|
+
total;
|
|
9
|
+
fee;
|
|
10
|
+
chargebackFee;
|
|
11
|
+
earnings;
|
|
12
|
+
currencyCode;
|
|
6
13
|
constructor(payoutTotalsAdjustment) {
|
|
7
14
|
this.subtotal = payoutTotalsAdjustment.subtotal;
|
|
8
15
|
this.tax = payoutTotalsAdjustment.tax;
|
|
@@ -3,6 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.TaxRatesUsedNotification = void 0;
|
|
4
4
|
const totals_notification_js_1 = require("./totals-notification.js");
|
|
5
5
|
class TaxRatesUsedNotification {
|
|
6
|
+
taxRate;
|
|
7
|
+
totals;
|
|
6
8
|
constructor(taxRatesUsed) {
|
|
7
9
|
this.taxRate = taxRatesUsed.tax_rate;
|
|
8
10
|
this.totals = taxRatesUsed.totals ? new totals_notification_js_1.TotalsNotification(taxRatesUsed.totals) : null;
|
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.TimePeriodNotification = void 0;
|
|
4
4
|
class TimePeriodNotification {
|
|
5
|
+
interval;
|
|
6
|
+
frequency;
|
|
5
7
|
constructor(timePeriod) {
|
|
6
8
|
this.interval = timePeriod.interval;
|
|
7
9
|
this.frequency = timePeriod.frequency;
|
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.TotalAdjustmentsNotification = void 0;
|
|
4
4
|
class TotalAdjustmentsNotification {
|
|
5
|
+
subtotal;
|
|
6
|
+
tax;
|
|
7
|
+
total;
|
|
8
|
+
fee;
|
|
9
|
+
earnings;
|
|
10
|
+
currencyCode;
|
|
5
11
|
constructor(totalAdjustments) {
|
|
6
12
|
this.subtotal = totalAdjustments.subtotal;
|
|
7
13
|
this.tax = totalAdjustments.tax;
|
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.TotalsNotification = void 0;
|
|
4
4
|
class TotalsNotification {
|
|
5
|
+
subtotal;
|
|
6
|
+
discount;
|
|
7
|
+
tax;
|
|
8
|
+
total;
|
|
5
9
|
constructor(totals) {
|
|
6
10
|
this.subtotal = totals.subtotal;
|
|
7
11
|
this.discount = totals.discount;
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.TransactionCheckoutNotification = void 0;
|
|
4
4
|
class TransactionCheckoutNotification {
|
|
5
|
+
url;
|
|
5
6
|
constructor(transactionCheckout) {
|
|
6
7
|
this.url = transactionCheckout.url ? transactionCheckout.url : null;
|
|
7
8
|
}
|
|
@@ -3,10 +3,18 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.TransactionPaymentAttemptNotification = void 0;
|
|
4
4
|
const payment_method_details_notification_js_1 = require("./payment-method-details-notification.js");
|
|
5
5
|
class TransactionPaymentAttemptNotification {
|
|
6
|
+
paymentAttemptId;
|
|
7
|
+
paymentMethodId;
|
|
8
|
+
storedPaymentMethodId;
|
|
9
|
+
amount;
|
|
10
|
+
status;
|
|
11
|
+
errorCode;
|
|
12
|
+
methodDetails;
|
|
13
|
+
createdAt;
|
|
14
|
+
capturedAt;
|
|
6
15
|
constructor(transactionPaymentAttempt) {
|
|
7
|
-
var _a;
|
|
8
16
|
this.paymentAttemptId = transactionPaymentAttempt.payment_attempt_id;
|
|
9
|
-
this.paymentMethodId =
|
|
17
|
+
this.paymentMethodId = transactionPaymentAttempt.payment_method_id ?? null;
|
|
10
18
|
this.storedPaymentMethodId = transactionPaymentAttempt.stored_payment_method_id;
|
|
11
19
|
this.amount = transactionPaymentAttempt.amount;
|
|
12
20
|
this.status = transactionPaymentAttempt.status;
|
package/dist/cjs/notifications/entities/shared/transaction-payout-totals-adjusted-notification.js
CHANGED
|
@@ -3,6 +3,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.TransactionPayoutTotalsAdjustedNotification = void 0;
|
|
4
4
|
const chargeback_fee_notification_js_1 = require("./chargeback-fee-notification.js");
|
|
5
5
|
class TransactionPayoutTotalsAdjustedNotification {
|
|
6
|
+
subtotal;
|
|
7
|
+
tax;
|
|
8
|
+
total;
|
|
9
|
+
fee;
|
|
10
|
+
chargebackFee;
|
|
11
|
+
earnings;
|
|
12
|
+
currencyCode;
|
|
6
13
|
constructor(transactionPayoutTotalsAdjusted) {
|
|
7
14
|
this.subtotal = transactionPayoutTotalsAdjusted.subtotal;
|
|
8
15
|
this.tax = transactionPayoutTotalsAdjusted.tax;
|
|
@@ -2,6 +2,19 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.TransactionPayoutTotalsNotification = void 0;
|
|
4
4
|
class TransactionPayoutTotalsNotification {
|
|
5
|
+
subtotal;
|
|
6
|
+
discount;
|
|
7
|
+
tax;
|
|
8
|
+
total;
|
|
9
|
+
credit;
|
|
10
|
+
creditToBalance;
|
|
11
|
+
balance;
|
|
12
|
+
grandTotal;
|
|
13
|
+
fee;
|
|
14
|
+
earnings;
|
|
15
|
+
currencyCode;
|
|
16
|
+
exchangeRate;
|
|
17
|
+
feeRate;
|
|
5
18
|
constructor(transactionPayoutTotals) {
|
|
6
19
|
this.subtotal = transactionPayoutTotals.subtotal;
|
|
7
20
|
this.discount = transactionPayoutTotals.discount;
|
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.TransactionTotalsAdjustedNotification = void 0;
|
|
4
4
|
class TransactionTotalsAdjustedNotification {
|
|
5
|
+
subtotal;
|
|
6
|
+
tax;
|
|
7
|
+
total;
|
|
8
|
+
grandTotal;
|
|
9
|
+
fee;
|
|
10
|
+
earnings;
|
|
11
|
+
currencyCode;
|
|
5
12
|
constructor(transactionTotalsAdjusted) {
|
|
6
13
|
this.subtotal = transactionTotalsAdjusted.subtotal;
|
|
7
14
|
this.tax = transactionTotalsAdjusted.tax;
|
|
@@ -2,6 +2,17 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.TransactionTotalsNotification = void 0;
|
|
4
4
|
class TransactionTotalsNotification {
|
|
5
|
+
subtotal;
|
|
6
|
+
discount;
|
|
7
|
+
tax;
|
|
8
|
+
total;
|
|
9
|
+
credit;
|
|
10
|
+
creditToBalance;
|
|
11
|
+
balance;
|
|
12
|
+
grandTotal;
|
|
13
|
+
fee;
|
|
14
|
+
earnings;
|
|
15
|
+
currencyCode;
|
|
5
16
|
constructor(transactionTotals) {
|
|
6
17
|
this.subtotal = transactionTotals.subtotal;
|
|
7
18
|
this.discount = transactionTotals.discount;
|
|
@@ -3,6 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.UnitPriceOverrideNotification = void 0;
|
|
4
4
|
const money_notification_js_1 = require("./money-notification.js");
|
|
5
5
|
class UnitPriceOverrideNotification {
|
|
6
|
+
countryCodes;
|
|
7
|
+
unitPrice;
|
|
6
8
|
constructor(unitPriceOverride) {
|
|
7
9
|
this.countryCodes = unitPriceOverride.country_codes;
|
|
8
10
|
this.unitPrice = new money_notification_js_1.MoneyNotification(unitPriceOverride.unit_price);
|
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.UnitTotalsNotification = void 0;
|
|
4
4
|
class UnitTotalsNotification {
|
|
5
|
+
subtotal;
|
|
6
|
+
discount;
|
|
7
|
+
tax;
|
|
8
|
+
total;
|
|
5
9
|
constructor(unitTotals) {
|
|
6
10
|
this.subtotal = unitTotals.subtotal;
|
|
7
11
|
this.discount = unitTotals.discount;
|
|
@@ -7,6 +7,29 @@ const subscription_item_notification_js_1 = require("./subscription-item-notific
|
|
|
7
7
|
const subscription_scheduled_change_notification_js_1 = require("./subscription-scheduled-change-notification.js");
|
|
8
8
|
const subscription_time_period_notification_js_1 = require("./subscription-time-period-notification.js");
|
|
9
9
|
class SubscriptionCreatedNotification {
|
|
10
|
+
id;
|
|
11
|
+
status;
|
|
12
|
+
transactionId;
|
|
13
|
+
customerId;
|
|
14
|
+
addressId;
|
|
15
|
+
businessId;
|
|
16
|
+
currencyCode;
|
|
17
|
+
createdAt;
|
|
18
|
+
updatedAt;
|
|
19
|
+
startedAt;
|
|
20
|
+
firstBilledAt;
|
|
21
|
+
nextBilledAt;
|
|
22
|
+
pausedAt;
|
|
23
|
+
canceledAt;
|
|
24
|
+
discount;
|
|
25
|
+
collectionMode;
|
|
26
|
+
billingDetails;
|
|
27
|
+
currentBillingPeriod;
|
|
28
|
+
billingCycle;
|
|
29
|
+
scheduledChange;
|
|
30
|
+
items;
|
|
31
|
+
customData;
|
|
32
|
+
importMeta;
|
|
10
33
|
constructor(subscription) {
|
|
11
34
|
this.id = subscription.id;
|
|
12
35
|
this.status = subscription.status;
|
|
@@ -2,11 +2,13 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.SubscriptionDiscountNotification = void 0;
|
|
4
4
|
class SubscriptionDiscountNotification {
|
|
5
|
+
id;
|
|
6
|
+
startsAt;
|
|
7
|
+
endsAt;
|
|
5
8
|
constructor(subscriptionDiscount) {
|
|
6
|
-
var _a;
|
|
7
9
|
this.id = subscriptionDiscount.id;
|
|
8
10
|
this.startsAt = subscriptionDiscount.starts_at;
|
|
9
|
-
this.endsAt =
|
|
11
|
+
this.endsAt = subscriptionDiscount.ends_at ?? null;
|
|
10
12
|
}
|
|
11
13
|
}
|
|
12
14
|
exports.SubscriptionDiscountNotification = SubscriptionDiscountNotification;
|
|
@@ -5,6 +5,16 @@ const subscription_time_period_notification_js_1 = require("./subscription-time-
|
|
|
5
5
|
const subscription_price_notification_js_1 = require("./subscription-price-notification.js");
|
|
6
6
|
const index_js_1 = require("../product/index.js");
|
|
7
7
|
class SubscriptionItemNotification {
|
|
8
|
+
status;
|
|
9
|
+
quantity;
|
|
10
|
+
recurring;
|
|
11
|
+
createdAt;
|
|
12
|
+
updatedAt;
|
|
13
|
+
previouslyBilledAt;
|
|
14
|
+
nextBilledAt;
|
|
15
|
+
trialDates;
|
|
16
|
+
price;
|
|
17
|
+
product;
|
|
8
18
|
constructor(subscriptionItem) {
|
|
9
19
|
this.status = subscriptionItem.status;
|
|
10
20
|
this.quantity = subscriptionItem.quantity;
|
|
@@ -7,6 +7,28 @@ const subscription_time_period_notification_js_1 = require("./subscription-time-
|
|
|
7
7
|
const subscription_scheduled_change_notification_js_1 = require("./subscription-scheduled-change-notification.js");
|
|
8
8
|
const subscription_item_notification_js_1 = require("./subscription-item-notification.js");
|
|
9
9
|
class SubscriptionNotification {
|
|
10
|
+
id;
|
|
11
|
+
status;
|
|
12
|
+
customerId;
|
|
13
|
+
addressId;
|
|
14
|
+
businessId;
|
|
15
|
+
currencyCode;
|
|
16
|
+
createdAt;
|
|
17
|
+
updatedAt;
|
|
18
|
+
startedAt;
|
|
19
|
+
firstBilledAt;
|
|
20
|
+
nextBilledAt;
|
|
21
|
+
pausedAt;
|
|
22
|
+
canceledAt;
|
|
23
|
+
discount;
|
|
24
|
+
collectionMode;
|
|
25
|
+
billingDetails;
|
|
26
|
+
currentBillingPeriod;
|
|
27
|
+
billingCycle;
|
|
28
|
+
scheduledChange;
|
|
29
|
+
items;
|
|
30
|
+
customData;
|
|
31
|
+
importMeta;
|
|
10
32
|
constructor(subscription) {
|
|
11
33
|
this.id = subscription.id;
|
|
12
34
|
this.status = subscription.status;
|
|
@@ -4,12 +4,25 @@ exports.SubscriptionPriceNotification = void 0;
|
|
|
4
4
|
const index_js_1 = require("../shared/index.js");
|
|
5
5
|
const index_js_2 = require("../price/index.js");
|
|
6
6
|
class SubscriptionPriceNotification {
|
|
7
|
+
id;
|
|
8
|
+
productId;
|
|
9
|
+
description;
|
|
10
|
+
name;
|
|
11
|
+
type;
|
|
12
|
+
billingCycle;
|
|
13
|
+
trialPeriod;
|
|
14
|
+
taxMode;
|
|
15
|
+
unitPrice;
|
|
16
|
+
unitPriceOverrides;
|
|
17
|
+
quantity;
|
|
18
|
+
status;
|
|
19
|
+
customData;
|
|
20
|
+
importMeta;
|
|
7
21
|
constructor(price) {
|
|
8
|
-
var _a, _b;
|
|
9
22
|
this.id = price.id;
|
|
10
23
|
this.productId = price.product_id;
|
|
11
24
|
this.description = price.description;
|
|
12
|
-
this.type =
|
|
25
|
+
this.type = price.type ?? null;
|
|
13
26
|
this.name = price.name ? price.name : null;
|
|
14
27
|
this.billingCycle = price.billing_cycle ? new index_js_1.TimePeriodNotification(price.billing_cycle) : null;
|
|
15
28
|
this.trialPeriod = price.trial_period ? new index_js_1.TimePeriodNotification(price.trial_period) : null;
|
|
@@ -19,7 +32,7 @@ class SubscriptionPriceNotification {
|
|
|
19
32
|
? price.unit_price_overrides.map((unit_price_override) => new index_js_1.UnitPriceOverrideNotification(unit_price_override))
|
|
20
33
|
: [];
|
|
21
34
|
this.quantity = price.quantity ? new index_js_2.PriceQuantityNotification(price.quantity) : null;
|
|
22
|
-
this.status =
|
|
35
|
+
this.status = price.status ?? null;
|
|
23
36
|
this.customData = price.custom_data ? price.custom_data : null;
|
|
24
37
|
this.importMeta = price.import_meta ? new index_js_1.ImportMetaNotification(price.import_meta) : null;
|
|
25
38
|
}
|
package/dist/cjs/notifications/entities/subscription/subscription-scheduled-change-notification.js
CHANGED
|
@@ -2,6 +2,9 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.SubscriptionScheduledChangeNotification = void 0;
|
|
4
4
|
class SubscriptionScheduledChangeNotification {
|
|
5
|
+
action;
|
|
6
|
+
effectiveAt;
|
|
7
|
+
resumeAt;
|
|
5
8
|
constructor(subscriptionScheduledChange) {
|
|
6
9
|
this.action = subscriptionScheduledChange.action;
|
|
7
10
|
this.effectiveAt = subscriptionScheduledChange.effective_at;
|
package/dist/cjs/notifications/entities/subscription/subscription-time-period-notification.js
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.SubscriptionTimePeriodNotification = void 0;
|
|
4
4
|
class SubscriptionTimePeriodNotification {
|
|
5
|
+
startsAt;
|
|
6
|
+
endsAt;
|
|
5
7
|
constructor(subscriptionTimePeriod) {
|
|
6
8
|
this.startsAt = subscriptionTimePeriod.starts_at;
|
|
7
9
|
this.endsAt = subscriptionTimePeriod.ends_at;
|
|
@@ -4,6 +4,12 @@ exports.TransactionDetailsNotification = void 0;
|
|
|
4
4
|
const index_js_1 = require("../shared/index.js");
|
|
5
5
|
const transaction_line_item_notification_js_1 = require("./transaction-line-item-notification.js");
|
|
6
6
|
class TransactionDetailsNotification {
|
|
7
|
+
taxRatesUsed;
|
|
8
|
+
totals;
|
|
9
|
+
adjustedTotals;
|
|
10
|
+
payoutTotals;
|
|
11
|
+
adjustedPayoutTotals;
|
|
12
|
+
lineItems;
|
|
7
13
|
constructor(transactionDetails) {
|
|
8
14
|
this.taxRatesUsed = transactionDetails.tax_rates_used.map((tax_rates_used) => new index_js_1.TaxRatesUsedNotification(tax_rates_used));
|
|
9
15
|
this.totals = transactionDetails.totals ? new index_js_1.TransactionTotalsNotification(transactionDetails.totals) : null;
|
|
@@ -4,6 +4,9 @@ exports.TransactionItemNotification = void 0;
|
|
|
4
4
|
const index_js_1 = require("../price/index.js");
|
|
5
5
|
const transaction_proration_notification_js_1 = require("./transaction-proration-notification.js");
|
|
6
6
|
class TransactionItemNotification {
|
|
7
|
+
price;
|
|
8
|
+
quantity;
|
|
9
|
+
proration;
|
|
7
10
|
constructor(transactionItem) {
|
|
8
11
|
this.price = transactionItem.price ? new index_js_1.PriceNotification(transactionItem.price) : null;
|
|
9
12
|
this.quantity = transactionItem.quantity;
|
|
@@ -5,6 +5,14 @@ const transaction_proration_notification_js_1 = require("./transaction-proration
|
|
|
5
5
|
const index_js_1 = require("../shared/index.js");
|
|
6
6
|
const index_js_2 = require("../product/index.js");
|
|
7
7
|
class TransactionLineItemNotification {
|
|
8
|
+
id;
|
|
9
|
+
priceId;
|
|
10
|
+
quantity;
|
|
11
|
+
proration;
|
|
12
|
+
taxRate;
|
|
13
|
+
unitTotals;
|
|
14
|
+
totals;
|
|
15
|
+
product;
|
|
8
16
|
constructor(transactionLineItem) {
|
|
9
17
|
this.id = transactionLineItem.id;
|
|
10
18
|
this.priceId = transactionLineItem.price_id;
|
|
@@ -6,6 +6,29 @@ const transactions_time_period_notification_js_1 = require("./transactions-time-
|
|
|
6
6
|
const transaction_item_notification_js_1 = require("./transaction-item-notification.js");
|
|
7
7
|
const transaction_details_notification_js_1 = require("./transaction-details-notification.js");
|
|
8
8
|
class TransactionNotification {
|
|
9
|
+
id;
|
|
10
|
+
status;
|
|
11
|
+
customerId;
|
|
12
|
+
addressId;
|
|
13
|
+
businessId;
|
|
14
|
+
customData;
|
|
15
|
+
currencyCode;
|
|
16
|
+
origin;
|
|
17
|
+
subscriptionId;
|
|
18
|
+
invoiceId;
|
|
19
|
+
invoiceNumber;
|
|
20
|
+
collectionMode;
|
|
21
|
+
discountId;
|
|
22
|
+
billingDetails;
|
|
23
|
+
billingPeriod;
|
|
24
|
+
items;
|
|
25
|
+
details;
|
|
26
|
+
payments;
|
|
27
|
+
checkout;
|
|
28
|
+
createdAt;
|
|
29
|
+
updatedAt;
|
|
30
|
+
billedAt;
|
|
31
|
+
revisedAt;
|
|
9
32
|
constructor(transaction) {
|
|
10
33
|
this.id = transaction.id;
|
|
11
34
|
this.status = transaction.status;
|
|
@@ -3,6 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.TransactionProrationNotification = void 0;
|
|
4
4
|
const transactions_time_period_notification_js_1 = require("./transactions-time-period-notification.js");
|
|
5
5
|
class TransactionProrationNotification {
|
|
6
|
+
rate;
|
|
7
|
+
billingPeriod;
|
|
6
8
|
constructor(transactionProration) {
|
|
7
9
|
this.rate = transactionProration.rate;
|
|
8
10
|
this.billingPeriod = transactionProration.billing_period
|
package/dist/cjs/notifications/entities/transaction/transactions-time-period-notification.js
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.TransactionsTimePeriodNotification = void 0;
|
|
4
4
|
class TransactionsTimePeriodNotification {
|
|
5
|
+
startsAt;
|
|
6
|
+
endsAt;
|
|
5
7
|
constructor(transactionsTimePeriod) {
|
|
6
8
|
this.startsAt = transactionsTimePeriod.starts_at;
|
|
7
9
|
this.endsAt = transactionsTimePeriod.ends_at;
|
|
@@ -5,9 +5,10 @@ const index_js_1 = require("../../helpers/index.js");
|
|
|
5
5
|
const event_js_1 = require("../../../entities/events/event.js");
|
|
6
6
|
const index_js_2 = require("../../entities/index.js");
|
|
7
7
|
class AddressCreatedEvent extends event_js_1.Event {
|
|
8
|
+
eventType = index_js_1.EventName.AddressCreated;
|
|
9
|
+
data;
|
|
8
10
|
constructor(response) {
|
|
9
11
|
super(response);
|
|
10
|
-
this.eventType = index_js_1.EventName.AddressCreated;
|
|
11
12
|
this.data = new index_js_2.AddressNotification(response.data);
|
|
12
13
|
}
|
|
13
14
|
}
|
|
@@ -5,9 +5,10 @@ const event_js_1 = require("../../../entities/events/event.js");
|
|
|
5
5
|
const index_js_1 = require("../../helpers/index.js");
|
|
6
6
|
const index_js_2 = require("../../entities/index.js");
|
|
7
7
|
class AddressImportedEvent extends event_js_1.Event {
|
|
8
|
+
eventType = index_js_1.EventName.AddressImported;
|
|
9
|
+
data;
|
|
8
10
|
constructor(response) {
|
|
9
11
|
super(response);
|
|
10
|
-
this.eventType = index_js_1.EventName.AddressImported;
|
|
11
12
|
this.data = new index_js_2.AddressNotification(response.data);
|
|
12
13
|
}
|
|
13
14
|
}
|
|
@@ -5,9 +5,10 @@ const event_js_1 = require("../../../entities/events/event.js");
|
|
|
5
5
|
const index_js_1 = require("../../helpers/index.js");
|
|
6
6
|
const index_js_2 = require("../../entities/index.js");
|
|
7
7
|
class AddressUpdatedEvent extends event_js_1.Event {
|
|
8
|
+
eventType = index_js_1.EventName.AddressUpdated;
|
|
9
|
+
data;
|
|
8
10
|
constructor(response) {
|
|
9
11
|
super(response);
|
|
10
|
-
this.eventType = index_js_1.EventName.AddressUpdated;
|
|
11
12
|
this.data = new index_js_2.AddressNotification(response.data);
|
|
12
13
|
}
|
|
13
14
|
}
|
|
@@ -5,9 +5,10 @@ const event_js_1 = require("../../../entities/events/event.js");
|
|
|
5
5
|
const index_js_1 = require("../../helpers/index.js");
|
|
6
6
|
const index_js_2 = require("../../entities/index.js");
|
|
7
7
|
class AdjustmentCreatedEvent extends event_js_1.Event {
|
|
8
|
+
eventType = index_js_1.EventName.AdjustmentCreated;
|
|
9
|
+
data;
|
|
8
10
|
constructor(response) {
|
|
9
11
|
super(response);
|
|
10
|
-
this.eventType = index_js_1.EventName.AdjustmentCreated;
|
|
11
12
|
this.data = new index_js_2.AdjustmentNotification(response.data);
|
|
12
13
|
}
|
|
13
14
|
}
|
|
@@ -5,9 +5,10 @@ const event_js_1 = require("../../../entities/events/event.js");
|
|
|
5
5
|
const index_js_1 = require("../../helpers/index.js");
|
|
6
6
|
const index_js_2 = require("../../entities/index.js");
|
|
7
7
|
class AdjustmentUpdatedEvent extends event_js_1.Event {
|
|
8
|
+
eventType = index_js_1.EventName.AdjustmentUpdated;
|
|
9
|
+
data;
|
|
8
10
|
constructor(response) {
|
|
9
11
|
super(response);
|
|
10
|
-
this.eventType = index_js_1.EventName.AdjustmentUpdated;
|
|
11
12
|
this.data = new index_js_2.AdjustmentNotification(response.data);
|
|
12
13
|
}
|
|
13
14
|
}
|
|
@@ -5,9 +5,10 @@ const event_js_1 = require("../../../entities/events/event.js");
|
|
|
5
5
|
const index_js_1 = require("../../helpers/index.js");
|
|
6
6
|
const index_js_2 = require("../../entities/index.js");
|
|
7
7
|
class ApiKeyCreatedEvent extends event_js_1.Event {
|
|
8
|
+
eventType = index_js_1.EventName.ApiKeyCreated;
|
|
9
|
+
data;
|
|
8
10
|
constructor(response) {
|
|
9
11
|
super(response);
|
|
10
|
-
this.eventType = index_js_1.EventName.ApiKeyCreated;
|
|
11
12
|
this.data = new index_js_2.ApiKeyNotification(response.data);
|
|
12
13
|
}
|
|
13
14
|
}
|
|
@@ -5,9 +5,10 @@ const event_js_1 = require("../../../entities/events/event.js");
|
|
|
5
5
|
const index_js_1 = require("../../helpers/index.js");
|
|
6
6
|
const index_js_2 = require("../../entities/index.js");
|
|
7
7
|
class ApiKeyExpiredEvent extends event_js_1.Event {
|
|
8
|
+
eventType = index_js_1.EventName.ApiKeyExpired;
|
|
9
|
+
data;
|
|
8
10
|
constructor(response) {
|
|
9
11
|
super(response);
|
|
10
|
-
this.eventType = index_js_1.EventName.ApiKeyExpired;
|
|
11
12
|
this.data = new index_js_2.ApiKeyNotification(response.data);
|
|
12
13
|
}
|
|
13
14
|
}
|
|
@@ -5,9 +5,10 @@ const event_js_1 = require("../../../entities/events/event.js");
|
|
|
5
5
|
const index_js_1 = require("../../helpers/index.js");
|
|
6
6
|
const index_js_2 = require("../../entities/index.js");
|
|
7
7
|
class ApiKeyExpiringEvent extends event_js_1.Event {
|
|
8
|
+
eventType = index_js_1.EventName.ApiKeyExpiring;
|
|
9
|
+
data;
|
|
8
10
|
constructor(response) {
|
|
9
11
|
super(response);
|
|
10
|
-
this.eventType = index_js_1.EventName.ApiKeyExpiring;
|
|
11
12
|
this.data = new index_js_2.ApiKeyNotification(response.data);
|
|
12
13
|
}
|
|
13
14
|
}
|
|
@@ -5,9 +5,10 @@ const event_js_1 = require("../../../entities/events/event.js");
|
|
|
5
5
|
const index_js_1 = require("../../helpers/index.js");
|
|
6
6
|
const index_js_2 = require("../../entities/index.js");
|
|
7
7
|
class ApiKeyRevokedEvent extends event_js_1.Event {
|
|
8
|
+
eventType = index_js_1.EventName.ApiKeyRevoked;
|
|
9
|
+
data;
|
|
8
10
|
constructor(response) {
|
|
9
11
|
super(response);
|
|
10
|
-
this.eventType = index_js_1.EventName.ApiKeyRevoked;
|
|
11
12
|
this.data = new index_js_2.ApiKeyNotification(response.data);
|
|
12
13
|
}
|
|
13
14
|
}
|