@paddle/paddle-node-sdk 0.4.0 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +25 -0
- package/dist/entities/price/index.d.ts +0 -1
- package/dist/entities/price/index.js +0 -1
- package/dist/entities/price/price-collection.d.ts +3 -3
- package/dist/entities/price/price-collection.js +2 -2
- package/dist/entities/price/price.d.ts +9 -8
- package/dist/entities/price/price.js +5 -7
- package/dist/entities/pricing-preview/pricing-preview.d.ts +1 -2
- package/dist/entities/product/index.d.ts +0 -1
- package/dist/entities/product/index.js +0 -1
- package/dist/entities/product/product-collection.d.ts +3 -3
- package/dist/entities/product/product-collection.js +2 -2
- package/dist/entities/product/product.d.ts +5 -4
- package/dist/entities/product/product.js +1 -0
- package/dist/entities/subscription/index.d.ts +0 -3
- package/dist/entities/subscription/index.js +0 -3
- package/dist/entities/subscription/subscription-item.d.ts +2 -2
- package/dist/entities/subscription/subscription-item.js +1 -1
- package/dist/entities/subscription/subscription.d.ts +3 -1
- package/dist/entities/subscription/subscription.js +4 -0
- package/dist/entities/transaction/index.d.ts +0 -1
- package/dist/entities/transaction/index.js +0 -1
- package/dist/entities/transaction/transaction-collection.d.ts +3 -3
- package/dist/entities/transaction/transaction-collection.js +2 -2
- package/dist/entities/transaction/transaction-item-preview.d.ts +2 -2
- package/dist/entities/transaction/transaction-item-preview.js +1 -1
- package/dist/entities/transaction/transaction-preview.d.ts +1 -2
- package/dist/entities/transaction/transaction.d.ts +9 -2
- package/dist/entities/transaction/transaction.js +12 -0
- package/dist/enums/shared/index.d.ts +1 -0
- package/dist/enums/shared/index.js +1 -0
- package/dist/notifications/entities/address/address-notification.d.ts +19 -0
- package/dist/notifications/entities/address/address-notification.js +22 -0
- package/dist/notifications/entities/address/index.d.ts +1 -0
- package/dist/notifications/entities/address/index.js +17 -0
- package/dist/notifications/entities/adjustment/adjustment-item-notification.d.ts +12 -0
- package/dist/notifications/entities/adjustment/adjustment-item-notification.js +15 -0
- package/dist/notifications/entities/adjustment/adjustment-item-totals-notification.d.ts +7 -0
- package/dist/notifications/entities/adjustment/adjustment-item-totals-notification.js +11 -0
- package/dist/notifications/entities/adjustment/adjustment-notification.d.ts +20 -0
- package/dist/notifications/entities/adjustment/adjustment-notification.js +25 -0
- package/dist/notifications/entities/adjustment/adjustment-proration-notification.d.ts +7 -0
- package/dist/notifications/entities/adjustment/adjustment-proration-notification.js +13 -0
- package/dist/notifications/entities/adjustment/adjustment-time-period-notification.d.ts +6 -0
- package/dist/notifications/entities/adjustment/adjustment-time-period-notification.js +10 -0
- package/dist/notifications/entities/adjustment/index.d.ts +5 -0
- package/dist/notifications/entities/adjustment/index.js +21 -0
- package/dist/notifications/entities/business/business-notification.d.ts +17 -0
- package/dist/notifications/entities/business/business-notification.js +19 -0
- package/dist/notifications/entities/business/contacts-notification.d.ts +6 -0
- package/dist/notifications/entities/business/contacts-notification.js +10 -0
- package/dist/notifications/entities/business/index.d.ts +2 -0
- package/dist/notifications/entities/business/index.js +18 -0
- package/dist/notifications/entities/customer/customer-notification.d.ts +17 -0
- package/dist/notifications/entities/customer/customer-notification.js +19 -0
- package/dist/notifications/entities/customer/index.d.ts +1 -0
- package/dist/notifications/entities/customer/index.js +17 -0
- package/dist/notifications/entities/discount/discount-notification.d.ts +25 -0
- package/dist/notifications/entities/discount/discount-notification.js +28 -0
- package/dist/notifications/entities/discount/index.d.ts +1 -0
- package/dist/notifications/entities/discount/index.js +17 -0
- package/dist/notifications/entities/index.d.ts +12 -0
- package/dist/notifications/entities/index.js +28 -0
- package/dist/notifications/entities/payout/index.d.ts +1 -0
- package/dist/notifications/entities/payout/index.js +17 -0
- package/dist/notifications/entities/payout/payout-notification.d.ts +9 -0
- package/dist/notifications/entities/payout/payout-notification.js +12 -0
- package/dist/notifications/entities/price/index.d.ts +2 -0
- package/dist/notifications/entities/price/index.js +18 -0
- package/dist/notifications/entities/price/price-notification.d.ts +21 -0
- package/dist/{entities/price/price-with-includes.js → notifications/entities/price/price-notification.js} +10 -12
- package/dist/notifications/entities/price/price-quantity-notification.d.ts +6 -0
- package/dist/notifications/entities/price/price-quantity-notification.js +10 -0
- package/dist/notifications/entities/product/index.d.ts +1 -0
- package/dist/notifications/entities/product/index.js +17 -0
- package/dist/notifications/entities/product/product-notification.d.ts +17 -0
- package/dist/{entities/product/product-with-includes.js → notifications/entities/product/product-notification.js} +4 -5
- package/dist/notifications/entities/report/index.d.ts +2 -0
- package/dist/notifications/entities/report/index.js +18 -0
- package/dist/notifications/entities/report/report-filters-notification.d.ts +8 -0
- package/dist/notifications/entities/report/report-filters-notification.js +12 -0
- package/dist/notifications/entities/report/report-notification.d.ts +13 -0
- package/dist/notifications/entities/report/report-notification.js +17 -0
- package/dist/notifications/entities/shared/adjustment-original-amount-notification.d.ts +7 -0
- package/dist/notifications/entities/shared/adjustment-original-amount-notification.js +10 -0
- package/dist/notifications/entities/shared/billing-details-notification.d.ts +9 -0
- package/dist/notifications/entities/shared/billing-details-notification.js +14 -0
- package/dist/notifications/entities/shared/chargeback-fee-notification.d.ts +7 -0
- package/dist/notifications/entities/shared/chargeback-fee-notification.js +11 -0
- package/dist/notifications/entities/shared/import-meta-notification.d.ts +6 -0
- package/dist/notifications/entities/shared/import-meta-notification.js +10 -0
- package/dist/notifications/entities/shared/index.d.ts +20 -0
- package/dist/notifications/entities/shared/index.js +36 -0
- package/dist/notifications/entities/shared/money-notification.d.ts +7 -0
- package/dist/notifications/entities/shared/money-notification.js +10 -0
- package/dist/notifications/entities/shared/payment-card-notification.d.ts +10 -0
- package/dist/notifications/entities/shared/payment-card-notification.js +13 -0
- package/dist/notifications/entities/shared/payment-method-details-notification.d.ts +8 -0
- package/dist/notifications/entities/shared/payment-method-details-notification.js +11 -0
- package/dist/notifications/entities/shared/payout-totals-adjustment-notification.d.ts +13 -0
- package/dist/notifications/entities/shared/payout-totals-adjustment-notification.js +18 -0
- package/dist/notifications/entities/shared/tax-rates-used-notification.d.ts +7 -0
- package/dist/notifications/entities/shared/tax-rates-used-notification.js +11 -0
- package/dist/notifications/entities/shared/time-period-notification.d.ts +7 -0
- package/dist/notifications/entities/shared/time-period-notification.js +10 -0
- package/dist/notifications/entities/shared/total-adjustments-notification.d.ts +11 -0
- package/dist/notifications/entities/shared/total-adjustments-notification.js +14 -0
- package/dist/notifications/entities/shared/totals-notification.d.ts +8 -0
- package/dist/notifications/entities/shared/totals-notification.js +12 -0
- package/dist/notifications/entities/shared/transaction-checkout-notification.d.ts +5 -0
- package/dist/notifications/entities/shared/transaction-checkout-notification.js +9 -0
- package/dist/notifications/entities/shared/transaction-payment-attempt-notification.d.ts +15 -0
- package/dist/notifications/entities/shared/transaction-payment-attempt-notification.js +21 -0
- package/dist/notifications/entities/shared/transaction-payout-totals-adjusted-notification.d.ts +13 -0
- package/dist/notifications/entities/shared/transaction-payout-totals-adjusted-notification.js +18 -0
- package/dist/notifications/entities/shared/transaction-payout-totals-notification.d.ts +16 -0
- package/dist/notifications/entities/shared/transaction-payout-totals-notification.js +19 -0
- package/dist/notifications/entities/shared/transaction-totals-adjusted-notification.d.ts +12 -0
- package/dist/notifications/entities/shared/transaction-totals-adjusted-notification.js +15 -0
- package/dist/notifications/entities/shared/transaction-totals-notification.d.ts +16 -0
- package/dist/notifications/entities/shared/transaction-totals-notification.js +19 -0
- package/dist/notifications/entities/shared/unit-price-override-notification.d.ts +8 -0
- package/dist/notifications/entities/shared/unit-price-override-notification.js +11 -0
- package/dist/notifications/entities/shared/unit-totals-notification.d.ts +8 -0
- package/dist/notifications/entities/shared/unit-totals-notification.js +12 -0
- package/dist/notifications/entities/subscription/index.d.ts +6 -0
- package/dist/notifications/entities/subscription/index.js +22 -0
- package/dist/notifications/entities/subscription/subscription-discount-notification.d.ts +7 -0
- package/dist/notifications/entities/subscription/subscription-discount-notification.js +12 -0
- package/dist/notifications/entities/subscription/subscription-item-notification.d.ts +15 -0
- package/dist/notifications/entities/subscription/subscription-item-notification.js +20 -0
- package/dist/{entities → notifications/entities}/subscription/subscription-notification.d.ts +10 -9
- package/dist/{entities → notifications/entities}/subscription/subscription-notification.js +9 -7
- package/dist/notifications/entities/subscription/subscription-price-notification.d.ts +21 -0
- package/dist/notifications/entities/subscription/subscription-price-notification.js +27 -0
- package/dist/notifications/entities/subscription/subscription-scheduled-change-notification.d.ts +8 -0
- package/dist/notifications/entities/subscription/subscription-scheduled-change-notification.js +11 -0
- package/dist/notifications/entities/subscription/subscription-time-period-notification.d.ts +6 -0
- package/dist/notifications/entities/subscription/subscription-time-period-notification.js +10 -0
- package/dist/notifications/entities/transaction/index.d.ts +6 -0
- package/dist/notifications/entities/transaction/index.js +22 -0
- package/dist/notifications/entities/transaction/transaction-details-notification.d.ts +11 -0
- package/dist/notifications/entities/transaction/transaction-details-notification.js +21 -0
- package/dist/notifications/entities/transaction/transaction-item-notification.d.ts +8 -0
- package/dist/notifications/entities/transaction/transaction-item-notification.js +12 -0
- package/dist/notifications/entities/transaction/transaction-line-item-notification.d.ts +13 -0
- package/dist/notifications/entities/transaction/transaction-line-item-notification.js +21 -0
- package/dist/notifications/entities/transaction/transaction-notification.d.ts +29 -0
- package/dist/{entities/transaction/transaction-includes.js → notifications/entities/transaction/transaction-notification.js} +13 -21
- package/dist/notifications/entities/transaction/transaction-proration-notification.d.ts +7 -0
- package/dist/notifications/entities/transaction/transaction-proration-notification.js +13 -0
- package/dist/notifications/entities/transaction/transactions-time-period-notification.d.ts +6 -0
- package/dist/notifications/entities/transaction/transactions-time-period-notification.js +10 -0
- package/dist/notifications/events/address/address-created-event.d.ts +5 -4
- package/dist/notifications/events/address/address-created-event.js +2 -2
- package/dist/notifications/events/address/address-imported-event.d.ts +5 -4
- package/dist/notifications/events/address/address-imported-event.js +2 -2
- package/dist/notifications/events/address/address-updated-event.d.ts +5 -4
- package/dist/notifications/events/address/address-updated-event.js +2 -2
- package/dist/notifications/events/adjustment/adjustment-created-event.d.ts +5 -4
- package/dist/notifications/events/adjustment/adjustment-created-event.js +2 -2
- package/dist/notifications/events/adjustment/adjustment-updated-event.d.ts +5 -4
- package/dist/notifications/events/adjustment/adjustment-updated-event.js +2 -2
- package/dist/notifications/events/business/business-created-event.d.ts +5 -4
- package/dist/notifications/events/business/business-created-event.js +2 -2
- package/dist/notifications/events/business/business-imported-event.d.ts +5 -4
- package/dist/notifications/events/business/business-imported-event.js +2 -2
- package/dist/notifications/events/business/business-updated-event.d.ts +5 -4
- package/dist/notifications/events/business/business-updated-event.js +2 -2
- package/dist/notifications/events/customer/customer-created-event.d.ts +5 -4
- package/dist/notifications/events/customer/customer-created-event.js +2 -2
- package/dist/notifications/events/customer/customer-imported-event.d.ts +5 -4
- package/dist/notifications/events/customer/customer-imported-event.js +2 -2
- package/dist/notifications/events/customer/customer-updated-event.d.ts +5 -4
- package/dist/notifications/events/customer/customer-updated-event.js +2 -2
- package/dist/notifications/events/discount/discount-created-event.d.ts +5 -4
- package/dist/notifications/events/discount/discount-created-event.js +2 -2
- package/dist/notifications/events/discount/discount-imported-event.d.ts +5 -4
- package/dist/notifications/events/discount/discount-imported-event.js +2 -2
- package/dist/notifications/events/discount/discount-updated-event.d.ts +5 -4
- package/dist/notifications/events/discount/discount-updated-event.js +2 -2
- package/dist/notifications/events/payout/payout-created-event.d.ts +5 -4
- package/dist/notifications/events/payout/payout-created-event.js +2 -2
- package/dist/notifications/events/payout/payout-paid-event.d.ts +5 -4
- package/dist/notifications/events/payout/payout-paid-event.js +2 -2
- package/dist/notifications/events/price/price-created-event.d.ts +5 -4
- package/dist/notifications/events/price/price-created-event.js +2 -2
- package/dist/notifications/events/price/price-imported-event.d.ts +5 -4
- package/dist/notifications/events/price/price-imported-event.js +2 -2
- package/dist/notifications/events/price/price-updated-event.d.ts +5 -4
- package/dist/notifications/events/price/price-updated-event.js +2 -2
- package/dist/notifications/events/product/product-created-event.d.ts +5 -4
- package/dist/notifications/events/product/product-created-event.js +2 -2
- package/dist/notifications/events/product/product-imported-event.d.ts +5 -4
- package/dist/notifications/events/product/product-imported-event.js +2 -2
- package/dist/notifications/events/product/product-updated-event.d.ts +5 -4
- package/dist/notifications/events/product/product-updated-event.js +2 -2
- package/dist/notifications/events/report/report-created-event.d.ts +5 -4
- package/dist/notifications/events/report/report-created-event.js +2 -2
- package/dist/notifications/events/report/report-updated-event.d.ts +5 -4
- package/dist/notifications/events/report/report-updated-event.js +2 -2
- package/dist/notifications/events/subscription/subscription-activated-event.d.ts +3 -2
- package/dist/notifications/events/subscription/subscription-activated-event.js +1 -1
- package/dist/notifications/events/subscription/subscription-canceled-event.d.ts +3 -2
- package/dist/notifications/events/subscription/subscription-canceled-event.js +1 -1
- package/dist/notifications/events/subscription/subscription-created-event.d.ts +3 -2
- package/dist/notifications/events/subscription/subscription-created-event.js +1 -1
- package/dist/notifications/events/subscription/subscription-imported-event.d.ts +3 -2
- package/dist/notifications/events/subscription/subscription-imported-event.js +1 -1
- package/dist/notifications/events/subscription/subscription-past-due-event.d.ts +3 -2
- package/dist/notifications/events/subscription/subscription-past-due-event.js +1 -1
- package/dist/notifications/events/subscription/subscription-paused-event.d.ts +3 -2
- package/dist/notifications/events/subscription/subscription-paused-event.js +1 -1
- package/dist/notifications/events/subscription/subscription-resumed-event.d.ts +3 -2
- package/dist/notifications/events/subscription/subscription-resumed-event.js +1 -1
- package/dist/notifications/events/subscription/subscription-trialing-event.d.ts +3 -2
- package/dist/notifications/events/subscription/subscription-trialing-event.js +1 -1
- package/dist/notifications/events/subscription/subscription-updated-event.d.ts +3 -2
- package/dist/notifications/events/subscription/subscription-updated-event.js +1 -1
- package/dist/notifications/events/transaction/transaction-billed-event.d.ts +5 -4
- package/dist/notifications/events/transaction/transaction-billed-event.js +2 -2
- package/dist/notifications/events/transaction/transaction-canceled-event.d.ts +5 -4
- package/dist/notifications/events/transaction/transaction-canceled-event.js +2 -2
- package/dist/notifications/events/transaction/transaction-completed-event.d.ts +5 -4
- package/dist/notifications/events/transaction/transaction-completed-event.js +2 -2
- package/dist/notifications/events/transaction/transaction-created-event.d.ts +5 -4
- package/dist/notifications/events/transaction/transaction-created-event.js +2 -2
- package/dist/notifications/events/transaction/transaction-paid-event.d.ts +5 -4
- package/dist/notifications/events/transaction/transaction-paid-event.js +2 -2
- package/dist/notifications/events/transaction/transaction-past-due-event.d.ts +5 -4
- package/dist/notifications/events/transaction/transaction-past-due-event.js +2 -2
- package/dist/notifications/events/transaction/transaction-payment-failed-event.d.ts +5 -4
- package/dist/notifications/events/transaction/transaction-payment-failed-event.js +2 -2
- package/dist/notifications/events/transaction/transaction-ready-event.d.ts +5 -4
- package/dist/notifications/events/transaction/transaction-ready-event.js +2 -2
- package/dist/notifications/events/transaction/transaction-updated-event.d.ts +5 -4
- package/dist/notifications/events/transaction/transaction-updated-event.js +2 -2
- package/dist/notifications/index.d.ts +2 -0
- package/dist/notifications/index.js +2 -0
- package/dist/notifications/types/address/address-notification-response.d.ts +17 -0
- package/dist/notifications/types/address/index.d.ts +1 -0
- package/dist/notifications/types/address/index.js +17 -0
- package/dist/notifications/types/adjustment/adjustment-item-notification-response.d.ts +10 -0
- package/dist/notifications/types/adjustment/adjustment-notification-response.d.ts +18 -0
- package/dist/notifications/types/adjustment/adjustment-notification-response.js +2 -0
- package/dist/notifications/types/adjustment/adjustment-totals-breakdown-notification.d.ts +5 -0
- package/dist/notifications/types/adjustment/adjustment-totals-breakdown-notification.js +2 -0
- package/dist/notifications/types/adjustment/adjustment-totals-notification-response.d.ts +11 -0
- package/dist/notifications/types/adjustment/adjustment-totals-notification-response.js +2 -0
- package/dist/notifications/types/adjustment/adjustments-proration-notification-response.d.ts +5 -0
- package/dist/notifications/types/adjustment/adjustments-proration-notification-response.js +2 -0
- package/dist/notifications/types/adjustment/adjustments-time-period-notification-response.d.ts +4 -0
- package/dist/notifications/types/adjustment/adjustments-time-period-notification-response.js +2 -0
- package/dist/notifications/types/adjustment/index.d.ts +6 -0
- package/dist/notifications/types/adjustment/index.js +22 -0
- package/dist/notifications/types/business/business-notification-response.d.ts +15 -0
- package/dist/notifications/types/business/business-notification-response.js +2 -0
- package/dist/notifications/types/business/businesses-contacts-notification.d.ts +4 -0
- package/dist/notifications/types/business/businesses-contacts-notification.js +2 -0
- package/dist/notifications/types/business/index.d.ts +2 -0
- package/dist/notifications/types/business/index.js +18 -0
- package/dist/notifications/types/customer/customer-notification-response.d.ts +15 -0
- package/dist/notifications/types/customer/customer-notification-response.js +2 -0
- package/dist/notifications/types/customer/index.d.ts +1 -0
- package/dist/notifications/types/customer/index.js +17 -0
- package/dist/notifications/types/discount/discount-notification-response.d.ts +23 -0
- package/dist/notifications/types/discount/discount-notification-response.js +2 -0
- package/dist/notifications/types/discount/index.d.ts +1 -0
- package/dist/notifications/types/discount/index.js +17 -0
- package/dist/notifications/types/index.d.ts +12 -0
- package/dist/notifications/types/index.js +28 -0
- package/dist/notifications/types/payout/index.d.ts +1 -0
- package/dist/notifications/types/payout/index.js +17 -0
- package/dist/notifications/types/payout/payout-notification-response.d.ts +7 -0
- package/dist/notifications/types/payout/payout-notification-response.js +2 -0
- package/dist/notifications/types/price/index.d.ts +2 -0
- package/dist/notifications/types/price/index.js +18 -0
- package/dist/notifications/types/price/price-notification-response.d.ts +20 -0
- package/dist/notifications/types/price/price-notification-response.js +2 -0
- package/dist/notifications/types/price/price-quantity-notification.d.ts +4 -0
- package/dist/notifications/types/price/price-quantity-notification.js +2 -0
- package/dist/notifications/types/product/index.d.ts +1 -0
- package/dist/notifications/types/product/index.js +17 -0
- package/dist/notifications/types/product/product-notification-response.d.ts +16 -0
- package/dist/notifications/types/product/product-notification-response.js +2 -0
- package/dist/notifications/types/report/index.d.ts +2 -0
- package/dist/notifications/types/report/index.js +18 -0
- package/dist/notifications/types/report/report-filters-notification-response.d.ts +6 -0
- package/dist/notifications/types/report/report-filters-notification-response.js +2 -0
- package/dist/notifications/types/report/report-notification-response.d.ts +11 -0
- package/dist/notifications/types/report/report-notification-response.js +2 -0
- package/dist/notifications/types/shared/adjustment-original-amount-notification-response.d.ts +5 -0
- package/dist/notifications/types/shared/adjustment-original-amount-notification-response.js +2 -0
- package/dist/notifications/types/shared/billing-details-notification-response.d.ts +7 -0
- package/dist/notifications/types/shared/billing-details-notification-response.js +2 -0
- package/dist/notifications/types/shared/chargeback-fee.d.ts +5 -0
- package/dist/notifications/types/shared/chargeback-fee.js +2 -0
- package/dist/notifications/types/shared/import-meta-notification-response.d.ts +4 -0
- package/dist/notifications/types/shared/import-meta-notification-response.js +2 -0
- package/dist/notifications/types/shared/index.d.ts +22 -0
- package/dist/notifications/types/shared/index.js +38 -0
- package/dist/notifications/types/shared/money-notification-response.d.ts +5 -0
- package/dist/notifications/types/shared/money-notification-response.js +2 -0
- package/dist/notifications/types/shared/payment-card-notification-response.d.ts +8 -0
- package/dist/notifications/types/shared/payment-card-notification-response.js +2 -0
- package/dist/notifications/types/shared/payment-method-details.d.ts +6 -0
- package/dist/notifications/types/shared/payment-method-details.js +2 -0
- package/dist/notifications/types/shared/payout-totals-adjustment-notification-response.d.ts +11 -0
- package/dist/notifications/types/shared/payout-totals-adjustment-notification-response.js +2 -0
- package/dist/notifications/types/shared/shared-price-notification-response.d.ts +19 -0
- package/dist/notifications/types/shared/shared-price-notification-response.js +2 -0
- package/dist/notifications/types/shared/shared-product-notification-response.d.ts +15 -0
- package/dist/notifications/types/shared/shared-product-notification-response.js +2 -0
- package/dist/notifications/types/shared/tax-rates-used-notification-response.d.ts +5 -0
- package/dist/notifications/types/shared/tax-rates-used-notification-response.js +2 -0
- package/dist/notifications/types/shared/time-period-notification.d.ts +5 -0
- package/dist/notifications/types/shared/time-period-notification.js +2 -0
- package/dist/notifications/types/shared/total-adjustments-notification-response.d.ts +9 -0
- package/dist/notifications/types/shared/total-adjustments-notification-response.js +2 -0
- package/dist/notifications/types/shared/totals.d.ts +6 -0
- package/dist/notifications/types/shared/totals.js +2 -0
- package/dist/notifications/types/shared/transaction-checkout-notification.d.ts +3 -0
- package/dist/notifications/types/shared/transaction-checkout-notification.js +2 -0
- package/dist/notifications/types/shared/transaction-payment-attempt-notification-response.d.ts +13 -0
- package/dist/notifications/types/shared/transaction-payment-attempt-notification-response.js +2 -0
- package/dist/notifications/types/shared/transaction-payout-totals-adjusted-notification-response.d.ts +11 -0
- package/dist/notifications/types/shared/transaction-payout-totals-adjusted-notification-response.js +2 -0
- package/dist/notifications/types/shared/transaction-payout-totals-notification-response.d.ts +14 -0
- package/dist/notifications/types/shared/transaction-payout-totals-notification-response.js +2 -0
- package/dist/notifications/types/shared/transaction-totals-adjusted-notification-response.d.ts +10 -0
- package/dist/notifications/types/shared/transaction-totals-adjusted-notification-response.js +2 -0
- package/dist/notifications/types/shared/transaction-totals-notification-response.d.ts +14 -0
- package/dist/notifications/types/shared/transaction-totals-notification-response.js +2 -0
- package/dist/notifications/types/shared/unit-price-override-notification-response.d.ts +6 -0
- package/dist/notifications/types/shared/unit-price-override-notification-response.js +2 -0
- package/dist/notifications/types/shared/unit-totals.d.ts +6 -0
- package/dist/notifications/types/shared/unit-totals.js +2 -0
- package/dist/notifications/types/subscription/index.d.ts +7 -0
- package/dist/notifications/types/subscription/index.js +23 -0
- package/dist/notifications/types/subscription/subscription-discount-notification-response.d.ts +5 -0
- package/dist/notifications/types/subscription/subscription-discount-notification-response.js +2 -0
- package/dist/notifications/types/subscription/subscription-item-notification-response.d.ts +13 -0
- package/dist/notifications/types/subscription/subscription-item-notification-response.js +2 -0
- package/dist/notifications/types/subscription/subscription-notification-response.d.ts +28 -0
- package/dist/notifications/types/subscription/subscription-notification-response.js +2 -0
- package/dist/notifications/types/subscription/subscription-price-notification-response.d.ts +20 -0
- package/dist/notifications/types/subscription/subscription-price-notification-response.js +2 -0
- package/dist/notifications/types/subscription/subscription-scheduled-change-notification-response.d.ts +6 -0
- package/dist/notifications/types/subscription/subscription-scheduled-change-notification-response.js +2 -0
- package/dist/notifications/types/subscription/subscription-time-period-notification-response.d.ts +4 -0
- package/dist/notifications/types/subscription/subscription-time-period-notification-response.js +2 -0
- package/dist/notifications/types/transaction/index.d.ts +6 -0
- package/dist/notifications/types/transaction/index.js +22 -0
- package/dist/notifications/types/transaction/transaction-details-notification-response.d.ts +9 -0
- package/dist/notifications/types/transaction/transaction-details-notification-response.js +2 -0
- package/dist/notifications/types/transaction/transaction-item-notification-response.d.ts +7 -0
- package/dist/notifications/types/transaction/transaction-item-notification-response.js +2 -0
- package/dist/notifications/types/transaction/transaction-line-item-notification-response.d.ts +11 -0
- package/dist/notifications/types/transaction/transaction-line-item-notification-response.js +2 -0
- package/dist/notifications/types/transaction/transaction-notification-response.d.ts +27 -0
- package/dist/notifications/types/transaction/transaction-notification-response.js +2 -0
- package/dist/notifications/types/transaction/transaction-proration-notification-response.d.ts +5 -0
- package/dist/notifications/types/transaction/transaction-proration-notification-response.js +2 -0
- package/dist/notifications/types/transaction/transactions-time-period-notification-response.d.ts +4 -0
- package/dist/notifications/types/transaction/transactions-time-period-notification-response.js +2 -0
- package/dist/resources/prices/index.d.ts +2 -2
- package/dist/resources/prices/index.js +1 -1
- package/dist/resources/products/index.d.ts +2 -2
- package/dist/resources/products/index.js +1 -1
- package/dist/resources/subscriptions/index.d.ts +3 -3
- package/dist/resources/subscriptions/index.js +2 -2
- package/dist/resources/transactions/index.d.ts +5 -5
- package/dist/resources/transactions/index.js +3 -3
- package/dist/types/events/events-response.d.ts +34 -45
- package/dist/types/price/price-response.d.ts +1 -1
- package/dist/types/pricing-preview/pricing-preview-response.d.ts +1 -2
- package/dist/types/shared/shared-price-response.d.ts +4 -4
- package/dist/types/subscription/index.d.ts +0 -2
- package/dist/types/subscription/index.js +0 -2
- package/dist/types/subscription/subscription-item-response.d.ts +2 -2
- package/dist/types/transaction/transaction-preview-response.d.ts +1 -2
- package/dist/types/transaction/transaction-response.d.ts +1 -2
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/dist/entities/price/price-with-includes.d.ts +0 -21
- package/dist/entities/product/product-with-includes.d.ts +0 -17
- package/dist/entities/subscription/subscription-includes.d.ts +0 -31
- package/dist/entities/subscription/subscription-includes.js +0 -42
- package/dist/entities/subscription/subscription-price.d.ts +0 -13
- package/dist/entities/subscription/subscription-price.js +0 -16
- package/dist/entities/transaction/transaction-includes.d.ts +0 -36
- package/dist/types/subscription/subscription-notification-response.d.ts +0 -29
- package/dist/types/subscription/subscription-price-response.d.ts +0 -11
- /package/dist/{types/subscription/subscription-notification-response.js → notifications/types/address/address-notification-response.js} +0 -0
- /package/dist/{types/subscription/subscription-price-response.js → notifications/types/adjustment/adjustment-item-notification-response.js} +0 -0
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { Event } from '../../../entities/events/event';
|
|
2
|
-
import {
|
|
2
|
+
import { ReportNotification } from '../../entities';
|
|
3
3
|
import { EventName } from '../../helpers';
|
|
4
|
-
import { type IEventsResponse
|
|
4
|
+
import { type IEventsResponse } from '../../../types';
|
|
5
|
+
import { type IReportNotificationResponse } from '../../types';
|
|
5
6
|
export declare class ReportUpdatedEvent extends Event {
|
|
6
7
|
readonly eventType = EventName.ReportUpdated;
|
|
7
|
-
readonly data:
|
|
8
|
-
constructor(response: IEventsResponse<
|
|
8
|
+
readonly data: ReportNotification;
|
|
9
|
+
constructor(response: IEventsResponse<IReportNotificationResponse>);
|
|
9
10
|
}
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ReportUpdatedEvent = void 0;
|
|
4
4
|
const event_1 = require("../../../entities/events/event");
|
|
5
|
-
const entities_1 = require("
|
|
5
|
+
const entities_1 = require("../../entities");
|
|
6
6
|
const helpers_1 = require("../../helpers");
|
|
7
7
|
class ReportUpdatedEvent extends event_1.Event {
|
|
8
8
|
constructor(response) {
|
|
9
9
|
super(response);
|
|
10
10
|
this.eventType = helpers_1.EventName.ReportUpdated;
|
|
11
|
-
this.data = new entities_1.
|
|
11
|
+
this.data = new entities_1.ReportNotification(response.data);
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
14
|
exports.ReportUpdatedEvent = ReportUpdatedEvent;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { Event } from '../../../entities/events/event';
|
|
2
|
-
import { SubscriptionNotification } from '
|
|
2
|
+
import { SubscriptionNotification } from '../../entities';
|
|
3
3
|
import { EventName } from '../../helpers';
|
|
4
|
-
import { type IEventsResponse
|
|
4
|
+
import { type IEventsResponse } from '../../../types';
|
|
5
|
+
import { type ISubscriptionNotificationResponse } from '../../types';
|
|
5
6
|
export declare class SubscriptionActivatedEvent extends Event {
|
|
6
7
|
readonly eventType = EventName.SubscriptionActivated;
|
|
7
8
|
readonly data: Omit<SubscriptionNotification, 'transactionId'>;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.SubscriptionActivatedEvent = void 0;
|
|
4
4
|
const event_1 = require("../../../entities/events/event");
|
|
5
|
-
const entities_1 = require("
|
|
5
|
+
const entities_1 = require("../../entities");
|
|
6
6
|
const helpers_1 = require("../../helpers");
|
|
7
7
|
class SubscriptionActivatedEvent extends event_1.Event {
|
|
8
8
|
constructor(response) {
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { Event } from '../../../entities/events/event';
|
|
2
|
-
import { SubscriptionNotification } from '
|
|
2
|
+
import { SubscriptionNotification } from '../../entities';
|
|
3
3
|
import { EventName } from '../../helpers';
|
|
4
|
-
import { type IEventsResponse
|
|
4
|
+
import { type IEventsResponse } from '../../../types';
|
|
5
|
+
import { type ISubscriptionNotificationResponse } from '../../types';
|
|
5
6
|
export declare class SubscriptionCanceledEvent extends Event {
|
|
6
7
|
readonly eventType = EventName.SubscriptionCanceled;
|
|
7
8
|
readonly data: Omit<SubscriptionNotification, 'transactionId'>;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.SubscriptionCanceledEvent = void 0;
|
|
4
4
|
const event_1 = require("../../../entities/events/event");
|
|
5
|
-
const entities_1 = require("
|
|
5
|
+
const entities_1 = require("../../entities");
|
|
6
6
|
const helpers_1 = require("../../helpers");
|
|
7
7
|
class SubscriptionCanceledEvent extends event_1.Event {
|
|
8
8
|
constructor(response) {
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { Event } from '../../../entities/events/event';
|
|
2
|
-
import { SubscriptionNotification } from '
|
|
2
|
+
import { SubscriptionNotification } from '../../entities';
|
|
3
3
|
import { EventName } from '../../helpers';
|
|
4
|
-
import { type IEventsResponse
|
|
4
|
+
import { type IEventsResponse } from '../../../types';
|
|
5
|
+
import { type ISubscriptionNotificationResponse } from '../../types';
|
|
5
6
|
export declare class SubscriptionCreatedEvent extends Event {
|
|
6
7
|
readonly eventType = EventName.SubscriptionCreated;
|
|
7
8
|
readonly data: SubscriptionNotification;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.SubscriptionCreatedEvent = void 0;
|
|
4
4
|
const event_1 = require("../../../entities/events/event");
|
|
5
|
-
const entities_1 = require("
|
|
5
|
+
const entities_1 = require("../../entities");
|
|
6
6
|
const helpers_1 = require("../../helpers");
|
|
7
7
|
class SubscriptionCreatedEvent extends event_1.Event {
|
|
8
8
|
constructor(response) {
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { Event } from '../../../entities/events/event';
|
|
2
|
-
import { SubscriptionNotification } from '
|
|
2
|
+
import { SubscriptionNotification } from '../../entities';
|
|
3
3
|
import { EventName } from '../../helpers';
|
|
4
|
-
import { type IEventsResponse
|
|
4
|
+
import { type IEventsResponse } from '../../../types';
|
|
5
|
+
import { type ISubscriptionNotificationResponse } from '../../types';
|
|
5
6
|
export declare class SubscriptionImportedEvent extends Event {
|
|
6
7
|
readonly eventType = EventName.SubscriptionImported;
|
|
7
8
|
readonly data: Omit<SubscriptionNotification, 'transactionId'>;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.SubscriptionImportedEvent = void 0;
|
|
4
4
|
const event_1 = require("../../../entities/events/event");
|
|
5
|
-
const entities_1 = require("
|
|
5
|
+
const entities_1 = require("../../entities");
|
|
6
6
|
const helpers_1 = require("../../helpers");
|
|
7
7
|
class SubscriptionImportedEvent extends event_1.Event {
|
|
8
8
|
constructor(response) {
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { Event } from '../../../entities/events/event';
|
|
2
|
-
import { SubscriptionNotification } from '
|
|
2
|
+
import { SubscriptionNotification } from '../../entities';
|
|
3
3
|
import { EventName } from '../../helpers';
|
|
4
|
-
import { type IEventsResponse
|
|
4
|
+
import { type IEventsResponse } from '../../../types';
|
|
5
|
+
import { type ISubscriptionNotificationResponse } from '../../types';
|
|
5
6
|
export declare class SubscriptionPastDueEvent extends Event {
|
|
6
7
|
readonly eventType = EventName.SubscriptionPastDue;
|
|
7
8
|
readonly data: Omit<SubscriptionNotification, 'transactionId'>;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.SubscriptionPastDueEvent = void 0;
|
|
4
4
|
const event_1 = require("../../../entities/events/event");
|
|
5
|
-
const entities_1 = require("
|
|
5
|
+
const entities_1 = require("../../entities");
|
|
6
6
|
const helpers_1 = require("../../helpers");
|
|
7
7
|
class SubscriptionPastDueEvent extends event_1.Event {
|
|
8
8
|
constructor(response) {
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { Event } from '../../../entities/events/event';
|
|
2
|
-
import { SubscriptionNotification } from '
|
|
2
|
+
import { SubscriptionNotification } from '../../entities';
|
|
3
3
|
import { EventName } from '../../helpers';
|
|
4
|
-
import { type IEventsResponse
|
|
4
|
+
import { type IEventsResponse } from '../../../types';
|
|
5
|
+
import { type ISubscriptionNotificationResponse } from '../../types';
|
|
5
6
|
export declare class SubscriptionPausedEvent extends Event {
|
|
6
7
|
readonly eventType = EventName.SubscriptionPaused;
|
|
7
8
|
readonly data: Omit<SubscriptionNotification, 'transactionId'>;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.SubscriptionPausedEvent = void 0;
|
|
4
4
|
const event_1 = require("../../../entities/events/event");
|
|
5
|
-
const entities_1 = require("
|
|
5
|
+
const entities_1 = require("../../entities");
|
|
6
6
|
const helpers_1 = require("../../helpers");
|
|
7
7
|
class SubscriptionPausedEvent extends event_1.Event {
|
|
8
8
|
constructor(response) {
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { Event } from '../../../entities/events/event';
|
|
2
|
-
import { SubscriptionNotification } from '
|
|
2
|
+
import { SubscriptionNotification } from '../../entities';
|
|
3
3
|
import { EventName } from '../../helpers';
|
|
4
|
-
import { type IEventsResponse
|
|
4
|
+
import { type IEventsResponse } from '../../../types';
|
|
5
|
+
import { type ISubscriptionNotificationResponse } from '../../types';
|
|
5
6
|
export declare class SubscriptionResumedEvent extends Event {
|
|
6
7
|
readonly eventType = EventName.SubscriptionResumed;
|
|
7
8
|
readonly data: Omit<SubscriptionNotification, 'transactionId'>;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.SubscriptionResumedEvent = void 0;
|
|
4
4
|
const event_1 = require("../../../entities/events/event");
|
|
5
|
-
const entities_1 = require("
|
|
5
|
+
const entities_1 = require("../../entities");
|
|
6
6
|
const helpers_1 = require("../../helpers");
|
|
7
7
|
class SubscriptionResumedEvent extends event_1.Event {
|
|
8
8
|
constructor(response) {
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { Event } from '../../../entities/events/event';
|
|
2
|
-
import { SubscriptionNotification } from '
|
|
2
|
+
import { SubscriptionNotification } from '../../entities';
|
|
3
3
|
import { EventName } from '../../helpers';
|
|
4
|
-
import { type IEventsResponse
|
|
4
|
+
import { type IEventsResponse } from '../../../types';
|
|
5
|
+
import { type ISubscriptionNotificationResponse } from '../../types';
|
|
5
6
|
export declare class SubscriptionTrialingEvent extends Event {
|
|
6
7
|
readonly eventType = EventName.SubscriptionTrialing;
|
|
7
8
|
readonly data: Omit<SubscriptionNotification, 'transactionId'>;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.SubscriptionTrialingEvent = void 0;
|
|
4
4
|
const event_1 = require("../../../entities/events/event");
|
|
5
|
-
const entities_1 = require("
|
|
5
|
+
const entities_1 = require("../../entities");
|
|
6
6
|
const helpers_1 = require("../../helpers");
|
|
7
7
|
class SubscriptionTrialingEvent extends event_1.Event {
|
|
8
8
|
constructor(response) {
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { Event } from '../../../entities/events/event';
|
|
2
|
-
import { SubscriptionNotification } from '
|
|
2
|
+
import { SubscriptionNotification } from '../../entities';
|
|
3
3
|
import { EventName } from '../../helpers';
|
|
4
|
-
import { type IEventsResponse
|
|
4
|
+
import { type IEventsResponse } from '../../../types';
|
|
5
|
+
import { type ISubscriptionNotificationResponse } from '../../types';
|
|
5
6
|
export declare class SubscriptionUpdatedEvent extends Event {
|
|
6
7
|
readonly eventType = EventName.SubscriptionUpdated;
|
|
7
8
|
readonly data: Omit<SubscriptionNotification, 'transactionId'>;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.SubscriptionUpdatedEvent = void 0;
|
|
4
4
|
const event_1 = require("../../../entities/events/event");
|
|
5
|
-
const entities_1 = require("
|
|
5
|
+
const entities_1 = require("../../entities");
|
|
6
6
|
const helpers_1 = require("../../helpers");
|
|
7
7
|
class SubscriptionUpdatedEvent extends event_1.Event {
|
|
8
8
|
constructor(response) {
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { Event } from '../../../entities/events/event';
|
|
2
|
-
import {
|
|
2
|
+
import { TransactionNotification } from '../../entities';
|
|
3
3
|
import { EventName } from '../../helpers';
|
|
4
|
-
import { type IEventsResponse
|
|
4
|
+
import { type IEventsResponse } from '../../../types';
|
|
5
|
+
import { type ITransactionNotificationResponse } from '../../types';
|
|
5
6
|
export declare class TransactionBilledEvent extends Event {
|
|
6
7
|
readonly eventType = EventName.TransactionBilled;
|
|
7
|
-
readonly data:
|
|
8
|
-
constructor(response: IEventsResponse<
|
|
8
|
+
readonly data: TransactionNotification;
|
|
9
|
+
constructor(response: IEventsResponse<ITransactionNotificationResponse>);
|
|
9
10
|
}
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.TransactionBilledEvent = void 0;
|
|
4
4
|
const event_1 = require("../../../entities/events/event");
|
|
5
|
-
const entities_1 = require("
|
|
5
|
+
const entities_1 = require("../../entities");
|
|
6
6
|
const helpers_1 = require("../../helpers");
|
|
7
7
|
class TransactionBilledEvent extends event_1.Event {
|
|
8
8
|
constructor(response) {
|
|
9
9
|
super(response);
|
|
10
10
|
this.eventType = helpers_1.EventName.TransactionBilled;
|
|
11
|
-
this.data = new entities_1.
|
|
11
|
+
this.data = new entities_1.TransactionNotification(response.data);
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
14
|
exports.TransactionBilledEvent = TransactionBilledEvent;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { Event } from '../../../entities/events/event';
|
|
2
|
-
import {
|
|
2
|
+
import { TransactionNotification } from '../../entities';
|
|
3
3
|
import { EventName } from '../../helpers';
|
|
4
|
-
import { type IEventsResponse
|
|
4
|
+
import { type IEventsResponse } from '../../../types';
|
|
5
|
+
import { type ITransactionNotificationResponse } from '../../types';
|
|
5
6
|
export declare class TransactionCanceledEvent extends Event {
|
|
6
7
|
readonly eventType = EventName.TransactionCanceled;
|
|
7
|
-
readonly data:
|
|
8
|
-
constructor(response: IEventsResponse<
|
|
8
|
+
readonly data: TransactionNotification;
|
|
9
|
+
constructor(response: IEventsResponse<ITransactionNotificationResponse>);
|
|
9
10
|
}
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.TransactionCanceledEvent = void 0;
|
|
4
4
|
const event_1 = require("../../../entities/events/event");
|
|
5
|
-
const entities_1 = require("
|
|
5
|
+
const entities_1 = require("../../entities");
|
|
6
6
|
const helpers_1 = require("../../helpers");
|
|
7
7
|
class TransactionCanceledEvent extends event_1.Event {
|
|
8
8
|
constructor(response) {
|
|
9
9
|
super(response);
|
|
10
10
|
this.eventType = helpers_1.EventName.TransactionCanceled;
|
|
11
|
-
this.data = new entities_1.
|
|
11
|
+
this.data = new entities_1.TransactionNotification(response.data);
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
14
|
exports.TransactionCanceledEvent = TransactionCanceledEvent;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { Event } from '../../../entities/events/event';
|
|
2
|
-
import {
|
|
2
|
+
import { TransactionNotification } from '../../entities';
|
|
3
3
|
import { EventName } from '../../helpers';
|
|
4
|
-
import { type IEventsResponse
|
|
4
|
+
import { type IEventsResponse } from '../../../types';
|
|
5
|
+
import { type ITransactionNotificationResponse } from '../../types';
|
|
5
6
|
export declare class TransactionCompletedEvent extends Event {
|
|
6
7
|
readonly eventType = EventName.TransactionCompleted;
|
|
7
|
-
readonly data:
|
|
8
|
-
constructor(response: IEventsResponse<
|
|
8
|
+
readonly data: TransactionNotification;
|
|
9
|
+
constructor(response: IEventsResponse<ITransactionNotificationResponse>);
|
|
9
10
|
}
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.TransactionCompletedEvent = void 0;
|
|
4
4
|
const event_1 = require("../../../entities/events/event");
|
|
5
|
-
const entities_1 = require("
|
|
5
|
+
const entities_1 = require("../../entities");
|
|
6
6
|
const helpers_1 = require("../../helpers");
|
|
7
7
|
class TransactionCompletedEvent extends event_1.Event {
|
|
8
8
|
constructor(response) {
|
|
9
9
|
super(response);
|
|
10
10
|
this.eventType = helpers_1.EventName.TransactionCompleted;
|
|
11
|
-
this.data = new entities_1.
|
|
11
|
+
this.data = new entities_1.TransactionNotification(response.data);
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
14
|
exports.TransactionCompletedEvent = TransactionCompletedEvent;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { Event } from '../../../entities/events/event';
|
|
2
|
-
import {
|
|
2
|
+
import { TransactionNotification } from '../../entities';
|
|
3
3
|
import { EventName } from '../../helpers';
|
|
4
|
-
import { type IEventsResponse
|
|
4
|
+
import { type IEventsResponse } from '../../../types';
|
|
5
|
+
import { type ITransactionNotificationResponse } from '../../types';
|
|
5
6
|
export declare class TransactionCreatedEvent extends Event {
|
|
6
7
|
readonly eventType = EventName.TransactionCreated;
|
|
7
|
-
readonly data:
|
|
8
|
-
constructor(response: IEventsResponse<
|
|
8
|
+
readonly data: TransactionNotification;
|
|
9
|
+
constructor(response: IEventsResponse<ITransactionNotificationResponse>);
|
|
9
10
|
}
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.TransactionCreatedEvent = void 0;
|
|
4
4
|
const event_1 = require("../../../entities/events/event");
|
|
5
|
-
const entities_1 = require("
|
|
5
|
+
const entities_1 = require("../../entities");
|
|
6
6
|
const helpers_1 = require("../../helpers");
|
|
7
7
|
class TransactionCreatedEvent extends event_1.Event {
|
|
8
8
|
constructor(response) {
|
|
9
9
|
super(response);
|
|
10
10
|
this.eventType = helpers_1.EventName.TransactionCreated;
|
|
11
|
-
this.data = new entities_1.
|
|
11
|
+
this.data = new entities_1.TransactionNotification(response.data);
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
14
|
exports.TransactionCreatedEvent = TransactionCreatedEvent;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { Event } from '../../../entities/events/event';
|
|
2
|
-
import {
|
|
2
|
+
import { TransactionNotification } from '../../entities';
|
|
3
3
|
import { EventName } from '../../helpers';
|
|
4
|
-
import { type IEventsResponse
|
|
4
|
+
import { type IEventsResponse } from '../../../types';
|
|
5
|
+
import { type ITransactionNotificationResponse } from '../../types';
|
|
5
6
|
export declare class TransactionPaidEvent extends Event {
|
|
6
7
|
readonly eventType = EventName.TransactionPaid;
|
|
7
|
-
readonly data:
|
|
8
|
-
constructor(response: IEventsResponse<
|
|
8
|
+
readonly data: TransactionNotification;
|
|
9
|
+
constructor(response: IEventsResponse<ITransactionNotificationResponse>);
|
|
9
10
|
}
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.TransactionPaidEvent = void 0;
|
|
4
4
|
const event_1 = require("../../../entities/events/event");
|
|
5
|
-
const entities_1 = require("
|
|
5
|
+
const entities_1 = require("../../entities");
|
|
6
6
|
const helpers_1 = require("../../helpers");
|
|
7
7
|
class TransactionPaidEvent extends event_1.Event {
|
|
8
8
|
constructor(response) {
|
|
9
9
|
super(response);
|
|
10
10
|
this.eventType = helpers_1.EventName.TransactionPaid;
|
|
11
|
-
this.data = new entities_1.
|
|
11
|
+
this.data = new entities_1.TransactionNotification(response.data);
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
14
|
exports.TransactionPaidEvent = TransactionPaidEvent;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { Event } from '../../../entities/events/event';
|
|
2
|
-
import {
|
|
2
|
+
import { TransactionNotification } from '../../entities';
|
|
3
3
|
import { EventName } from '../../helpers';
|
|
4
|
-
import { type IEventsResponse
|
|
4
|
+
import { type IEventsResponse } from '../../../types';
|
|
5
|
+
import { type ITransactionNotificationResponse } from '../../types';
|
|
5
6
|
export declare class TransactionPastDueEvent extends Event {
|
|
6
7
|
readonly eventType = EventName.TransactionPastDue;
|
|
7
|
-
readonly data:
|
|
8
|
-
constructor(response: IEventsResponse<
|
|
8
|
+
readonly data: TransactionNotification;
|
|
9
|
+
constructor(response: IEventsResponse<ITransactionNotificationResponse>);
|
|
9
10
|
}
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.TransactionPastDueEvent = void 0;
|
|
4
4
|
const event_1 = require("../../../entities/events/event");
|
|
5
|
-
const entities_1 = require("
|
|
5
|
+
const entities_1 = require("../../entities");
|
|
6
6
|
const helpers_1 = require("../../helpers");
|
|
7
7
|
class TransactionPastDueEvent extends event_1.Event {
|
|
8
8
|
constructor(response) {
|
|
9
9
|
super(response);
|
|
10
10
|
this.eventType = helpers_1.EventName.TransactionPastDue;
|
|
11
|
-
this.data = new entities_1.
|
|
11
|
+
this.data = new entities_1.TransactionNotification(response.data);
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
14
|
exports.TransactionPastDueEvent = TransactionPastDueEvent;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { Event } from '../../../entities/events/event';
|
|
2
|
-
import {
|
|
2
|
+
import { TransactionNotification } from '../../entities';
|
|
3
3
|
import { EventName } from '../../helpers';
|
|
4
|
-
import { type IEventsResponse
|
|
4
|
+
import { type IEventsResponse } from '../../../types';
|
|
5
|
+
import { type ITransactionNotificationResponse } from '../../types';
|
|
5
6
|
export declare class TransactionPaymentFailedEvent extends Event {
|
|
6
7
|
readonly eventType = EventName.TransactionPaymentFailed;
|
|
7
|
-
readonly data:
|
|
8
|
-
constructor(response: IEventsResponse<
|
|
8
|
+
readonly data: TransactionNotification;
|
|
9
|
+
constructor(response: IEventsResponse<ITransactionNotificationResponse>);
|
|
9
10
|
}
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.TransactionPaymentFailedEvent = void 0;
|
|
4
4
|
const event_1 = require("../../../entities/events/event");
|
|
5
|
-
const entities_1 = require("
|
|
5
|
+
const entities_1 = require("../../entities");
|
|
6
6
|
const helpers_1 = require("../../helpers");
|
|
7
7
|
class TransactionPaymentFailedEvent extends event_1.Event {
|
|
8
8
|
constructor(response) {
|
|
9
9
|
super(response);
|
|
10
10
|
this.eventType = helpers_1.EventName.TransactionPaymentFailed;
|
|
11
|
-
this.data = new entities_1.
|
|
11
|
+
this.data = new entities_1.TransactionNotification(response.data);
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
14
|
exports.TransactionPaymentFailedEvent = TransactionPaymentFailedEvent;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { Event } from '../../../entities/events/event';
|
|
2
|
-
import {
|
|
2
|
+
import { TransactionNotification } from '../../entities';
|
|
3
3
|
import { EventName } from '../../helpers';
|
|
4
|
-
import { type IEventsResponse
|
|
4
|
+
import { type IEventsResponse } from '../../../types';
|
|
5
|
+
import { type ITransactionNotificationResponse } from '../../types';
|
|
5
6
|
export declare class TransactionReadyEvent extends Event {
|
|
6
7
|
readonly eventType = EventName.TransactionReady;
|
|
7
|
-
readonly data:
|
|
8
|
-
constructor(response: IEventsResponse<
|
|
8
|
+
readonly data: TransactionNotification;
|
|
9
|
+
constructor(response: IEventsResponse<ITransactionNotificationResponse>);
|
|
9
10
|
}
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.TransactionReadyEvent = void 0;
|
|
4
4
|
const event_1 = require("../../../entities/events/event");
|
|
5
|
-
const entities_1 = require("
|
|
5
|
+
const entities_1 = require("../../entities");
|
|
6
6
|
const helpers_1 = require("../../helpers");
|
|
7
7
|
class TransactionReadyEvent extends event_1.Event {
|
|
8
8
|
constructor(response) {
|
|
9
9
|
super(response);
|
|
10
10
|
this.eventType = helpers_1.EventName.TransactionReady;
|
|
11
|
-
this.data = new entities_1.
|
|
11
|
+
this.data = new entities_1.TransactionNotification(response.data);
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
14
|
exports.TransactionReadyEvent = TransactionReadyEvent;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { Event } from '../../../entities/events/event';
|
|
2
|
-
import {
|
|
2
|
+
import { TransactionNotification } from '../../entities';
|
|
3
3
|
import { EventName } from '../../helpers';
|
|
4
|
-
import { type IEventsResponse
|
|
4
|
+
import { type IEventsResponse } from '../../../types';
|
|
5
|
+
import { type ITransactionNotificationResponse } from '../../types';
|
|
5
6
|
export declare class TransactionUpdatedEvent extends Event {
|
|
6
7
|
readonly eventType = EventName.TransactionUpdated;
|
|
7
|
-
readonly data:
|
|
8
|
-
constructor(response: IEventsResponse<
|
|
8
|
+
readonly data: TransactionNotification;
|
|
9
|
+
constructor(response: IEventsResponse<ITransactionNotificationResponse>);
|
|
9
10
|
}
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.TransactionUpdatedEvent = void 0;
|
|
4
4
|
const event_1 = require("../../../entities/events/event");
|
|
5
|
-
const entities_1 = require("
|
|
5
|
+
const entities_1 = require("../../entities");
|
|
6
6
|
const helpers_1 = require("../../helpers");
|
|
7
7
|
class TransactionUpdatedEvent extends event_1.Event {
|
|
8
8
|
constructor(response) {
|
|
9
9
|
super(response);
|
|
10
10
|
this.eventType = helpers_1.EventName.TransactionUpdated;
|
|
11
|
-
this.data = new entities_1.
|
|
11
|
+
this.data = new entities_1.TransactionNotification(response.data);
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
14
|
exports.TransactionUpdatedEvent = TransactionUpdatedEvent;
|
|
@@ -16,3 +16,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./helpers"), exports);
|
|
18
18
|
__exportStar(require("./events"), exports);
|
|
19
|
+
__exportStar(require("./types"), exports);
|
|
20
|
+
__exportStar(require("./entities"), exports);
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { type CountryCode, type Status } from '../../../enums';
|
|
2
|
+
import { type ICustomData, type IImportMetaResponse } from '../../../types';
|
|
3
|
+
export interface IAddressNotificationResponse {
|
|
4
|
+
id: string;
|
|
5
|
+
description?: string | null;
|
|
6
|
+
first_line?: string | null;
|
|
7
|
+
second_line?: string | null;
|
|
8
|
+
city?: string | null;
|
|
9
|
+
postal_code?: string | null;
|
|
10
|
+
region?: string | null;
|
|
11
|
+
country_code: CountryCode;
|
|
12
|
+
custom_data?: ICustomData | null;
|
|
13
|
+
status: Status;
|
|
14
|
+
created_at: string;
|
|
15
|
+
updated_at: string;
|
|
16
|
+
import_meta?: IImportMetaResponse | null;
|
|
17
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './address-notification-response';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./address-notification-response"), exports);
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type IAdjustmentItemTotalsNotificationResponse, type IAdjustmentsProrationNotificationResponse } from '../index';
|
|
2
|
+
import { type AdjustmentType } from '../../../enums';
|
|
3
|
+
export interface IAdjustmentItemNotificationResponse {
|
|
4
|
+
id: string;
|
|
5
|
+
item_id: string;
|
|
6
|
+
type: AdjustmentType;
|
|
7
|
+
amount?: string | null;
|
|
8
|
+
proration?: IAdjustmentsProrationNotificationResponse | null;
|
|
9
|
+
totals?: IAdjustmentItemTotalsNotificationResponse | null;
|
|
10
|
+
}
|