@paddle/paddle-node-sdk 0.3.0 → 0.5.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 +30 -0
- package/dist/entities/price/price.d.ts +8 -8
- package/dist/entities/price/price.js +4 -7
- package/dist/entities/pricing-preview/pricing-preview.d.ts +1 -2
- package/dist/entities/shared/transaction-payment-attempt.d.ts +1 -0
- package/dist/entities/shared/transaction-payment-attempt.js +1 -0
- package/dist/entities/subscription/index.d.ts +0 -2
- package/dist/entities/subscription/index.js +0 -2
- package/dist/entities/subscription/subscription-item.d.ts +2 -2
- package/dist/entities/subscription/subscription-item.js +1 -1
- package/dist/entities/transaction/transaction-includes.d.ts +2 -1
- package/dist/entities/transaction/transaction-includes.js +1 -0
- package/dist/entities/transaction/transaction-preview.d.ts +1 -2
- 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/notifications/entities/price/price-notification.js +23 -0
- 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/notifications/entities/product/product-notification.js +20 -0
- 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 -8
- package/dist/{entities → notifications/entities}/subscription/subscription-notification.js +9 -6
- 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/notifications/entities/transaction/transaction-notification.js +35 -0
- 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/customers/operations/list-customer-query-parameters.d.ts +1 -0
- package/dist/resources/subscriptions/operations/resume-subscription-request-object.d.ts +1 -2
- package/dist/resources/transactions/index.d.ts +3 -3
- package/dist/resources/transactions/index.js +4 -3
- package/dist/resources/transactions/operations/create-transaction-query-parameters.d.ts +1 -1
- package/dist/resources/transactions/operations/index.d.ts +1 -0
- package/dist/resources/transactions/operations/index.js +1 -0
- package/dist/resources/transactions/operations/update-transaction-query-parameters.d.ts +3 -0
- package/dist/resources/transactions/operations/update-transaction-query-parameters.js +2 -0
- 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/shared/transaction-payment-attempt-response.d.ts +1 -0
- 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 +2 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/dist/entities/subscription/subscription-price.d.ts +0 -13
- package/dist/entities/subscription/subscription-price.js +0 -16
- package/dist/types/subscription/subscription-notification-response.d.ts +0 -28
- 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
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TransactionDetailsNotification = void 0;
|
|
4
|
+
const index_1 = require("../index");
|
|
5
|
+
class TransactionDetailsNotification {
|
|
6
|
+
constructor(transactionDetails) {
|
|
7
|
+
this.taxRatesUsed = transactionDetails.tax_rates_used.map((tax_rates_used) => new index_1.TaxRatesUsedNotification(tax_rates_used));
|
|
8
|
+
this.totals = transactionDetails.totals ? new index_1.TransactionTotalsNotification(transactionDetails.totals) : null;
|
|
9
|
+
this.adjustedTotals = transactionDetails.adjusted_totals
|
|
10
|
+
? new index_1.TransactionTotalsAdjustedNotification(transactionDetails.adjusted_totals)
|
|
11
|
+
: null;
|
|
12
|
+
this.payoutTotals = transactionDetails.payout_totals
|
|
13
|
+
? new index_1.TransactionPayoutTotalsNotification(transactionDetails.payout_totals)
|
|
14
|
+
: null;
|
|
15
|
+
this.adjustedPayoutTotals = transactionDetails.adjusted_payout_totals
|
|
16
|
+
? new index_1.TransactionPayoutTotalsAdjustedNotification(transactionDetails.adjusted_payout_totals)
|
|
17
|
+
: null;
|
|
18
|
+
this.lineItems = transactionDetails.line_items.map((line_item) => new index_1.TransactionLineItemNotification(line_item));
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
exports.TransactionDetailsNotification = TransactionDetailsNotification;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type ITransactionItemNotificationResponse } from '../../types';
|
|
2
|
+
import { PriceNotification, TransactionProrationNotification } from '../index';
|
|
3
|
+
export declare class TransactionItemNotification {
|
|
4
|
+
readonly price: PriceNotification | null;
|
|
5
|
+
readonly quantity: number;
|
|
6
|
+
readonly proration: TransactionProrationNotification | null;
|
|
7
|
+
constructor(transactionItem: ITransactionItemNotificationResponse);
|
|
8
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TransactionItemNotification = void 0;
|
|
4
|
+
const index_1 = require("../index");
|
|
5
|
+
class TransactionItemNotification {
|
|
6
|
+
constructor(transactionItem) {
|
|
7
|
+
this.price = transactionItem.price ? new index_1.PriceNotification(transactionItem.price) : null;
|
|
8
|
+
this.quantity = transactionItem.quantity;
|
|
9
|
+
this.proration = transactionItem.proration ? new index_1.TransactionProrationNotification(transactionItem.proration) : null;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
exports.TransactionItemNotification = TransactionItemNotification;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { type ITransactionLineItemNotificationResponse } from '../../types';
|
|
2
|
+
import { TransactionProrationNotification, UnitTotalsNotification, TotalsNotification, ProductNotification } from '../index';
|
|
3
|
+
export declare class TransactionLineItemNotification {
|
|
4
|
+
readonly id: string;
|
|
5
|
+
readonly priceId: string;
|
|
6
|
+
readonly quantity: number;
|
|
7
|
+
readonly proration: TransactionProrationNotification | null;
|
|
8
|
+
readonly taxRate: string;
|
|
9
|
+
readonly unitTotals: UnitTotalsNotification | null;
|
|
10
|
+
readonly totals: TotalsNotification | null;
|
|
11
|
+
readonly product: ProductNotification | null;
|
|
12
|
+
constructor(transactionLineItem: ITransactionLineItemNotificationResponse);
|
|
13
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TransactionLineItemNotification = void 0;
|
|
4
|
+
const index_1 = require("../index");
|
|
5
|
+
class TransactionLineItemNotification {
|
|
6
|
+
constructor(transactionLineItem) {
|
|
7
|
+
this.id = transactionLineItem.id;
|
|
8
|
+
this.priceId = transactionLineItem.price_id;
|
|
9
|
+
this.quantity = transactionLineItem.quantity;
|
|
10
|
+
this.proration = transactionLineItem.proration
|
|
11
|
+
? new index_1.TransactionProrationNotification(transactionLineItem.proration)
|
|
12
|
+
: null;
|
|
13
|
+
this.taxRate = transactionLineItem.tax_rate;
|
|
14
|
+
this.unitTotals = transactionLineItem.unit_totals
|
|
15
|
+
? new index_1.UnitTotalsNotification(transactionLineItem.unit_totals)
|
|
16
|
+
: null;
|
|
17
|
+
this.totals = transactionLineItem.totals ? new index_1.TotalsNotification(transactionLineItem.totals) : null;
|
|
18
|
+
this.product = transactionLineItem.product ? new index_1.ProductNotification(transactionLineItem.product) : null;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
exports.TransactionLineItemNotification = TransactionLineItemNotification;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { BillingDetailsNotification, TransactionsTimePeriodNotification, TransactionItemNotification, TransactionDetailsNotification, TransactionPaymentAttemptNotification, TransactionCheckoutNotification } from '../index';
|
|
2
|
+
import { type TransactionStatus, type CurrencyCode, type TransactionOrigin, type CollectionMode } from '../../../enums';
|
|
3
|
+
import { type ITransactionNotificationResponse } from '../../types';
|
|
4
|
+
import { type CustomData } from '../../../entities';
|
|
5
|
+
export declare class TransactionNotification {
|
|
6
|
+
readonly id: string;
|
|
7
|
+
readonly status: TransactionStatus;
|
|
8
|
+
readonly customerId: string | null;
|
|
9
|
+
readonly addressId: string | null;
|
|
10
|
+
readonly businessId: string | null;
|
|
11
|
+
readonly customData: CustomData | null;
|
|
12
|
+
readonly currencyCode: CurrencyCode;
|
|
13
|
+
readonly origin: TransactionOrigin;
|
|
14
|
+
readonly subscriptionId: string | null;
|
|
15
|
+
readonly invoiceId: string | null;
|
|
16
|
+
readonly invoiceNumber: string | null;
|
|
17
|
+
readonly collectionMode: CollectionMode;
|
|
18
|
+
readonly discountId: string | null;
|
|
19
|
+
readonly billingDetails: BillingDetailsNotification | null;
|
|
20
|
+
readonly billingPeriod: TransactionsTimePeriodNotification | null;
|
|
21
|
+
readonly items: TransactionItemNotification[];
|
|
22
|
+
readonly details: TransactionDetailsNotification | null;
|
|
23
|
+
readonly payments: TransactionPaymentAttemptNotification[];
|
|
24
|
+
readonly checkout: TransactionCheckoutNotification | null;
|
|
25
|
+
readonly createdAt: string;
|
|
26
|
+
readonly updatedAt: string;
|
|
27
|
+
readonly billedAt: string | null;
|
|
28
|
+
constructor(transaction: ITransactionNotificationResponse);
|
|
29
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TransactionNotification = void 0;
|
|
4
|
+
const index_1 = require("../index");
|
|
5
|
+
class TransactionNotification {
|
|
6
|
+
constructor(transaction) {
|
|
7
|
+
this.id = transaction.id;
|
|
8
|
+
this.status = transaction.status;
|
|
9
|
+
this.customerId = transaction.customer_id ? transaction.customer_id : null;
|
|
10
|
+
this.addressId = transaction.address_id ? transaction.address_id : null;
|
|
11
|
+
this.businessId = transaction.business_id ? transaction.business_id : null;
|
|
12
|
+
this.customData = transaction.custom_data ? transaction.custom_data : null;
|
|
13
|
+
this.currencyCode = transaction.currency_code;
|
|
14
|
+
this.origin = transaction.origin;
|
|
15
|
+
this.subscriptionId = transaction.subscription_id ? transaction.subscription_id : null;
|
|
16
|
+
this.invoiceId = transaction.invoice_id ? transaction.invoice_id : null;
|
|
17
|
+
this.invoiceNumber = transaction.invoice_number ? transaction.invoice_number : null;
|
|
18
|
+
this.collectionMode = transaction.collection_mode;
|
|
19
|
+
this.discountId = transaction.discount_id ? transaction.discount_id : null;
|
|
20
|
+
this.billingDetails = transaction.billing_details
|
|
21
|
+
? new index_1.BillingDetailsNotification(transaction.billing_details)
|
|
22
|
+
: null;
|
|
23
|
+
this.billingPeriod = transaction.billing_period
|
|
24
|
+
? new index_1.TransactionsTimePeriodNotification(transaction.billing_period)
|
|
25
|
+
: null;
|
|
26
|
+
this.items = transaction.items.map((item) => new index_1.TransactionItemNotification(item));
|
|
27
|
+
this.details = transaction.details ? new index_1.TransactionDetailsNotification(transaction.details) : null;
|
|
28
|
+
this.payments = transaction.payments.map((payment) => new index_1.TransactionPaymentAttemptNotification(payment));
|
|
29
|
+
this.checkout = transaction.checkout ? new index_1.TransactionCheckoutNotification(transaction.checkout) : null;
|
|
30
|
+
this.createdAt = transaction.created_at;
|
|
31
|
+
this.updatedAt = transaction.updated_at;
|
|
32
|
+
this.billedAt = transaction.billed_at ? transaction.billed_at : null;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
exports.TransactionNotification = TransactionNotification;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type ITransactionProrationNotificationResponse } from '../../types';
|
|
2
|
+
import { TransactionsTimePeriodNotification } from '../index';
|
|
3
|
+
export declare class TransactionProrationNotification {
|
|
4
|
+
readonly rate: string;
|
|
5
|
+
readonly billingPeriod: TransactionsTimePeriodNotification | null;
|
|
6
|
+
constructor(transactionProration: ITransactionProrationNotificationResponse);
|
|
7
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TransactionProrationNotification = void 0;
|
|
4
|
+
const index_1 = require("../index");
|
|
5
|
+
class TransactionProrationNotification {
|
|
6
|
+
constructor(transactionProration) {
|
|
7
|
+
this.rate = transactionProration.rate;
|
|
8
|
+
this.billingPeriod = transactionProration.billing_period
|
|
9
|
+
? new index_1.TransactionsTimePeriodNotification(transactionProration.billing_period)
|
|
10
|
+
: null;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
exports.TransactionProrationNotification = TransactionProrationNotification;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { type ITransactionsTimePeriodNotificationResponse } from '../../types';
|
|
2
|
+
export declare class TransactionsTimePeriodNotification {
|
|
3
|
+
readonly startsAt: string;
|
|
4
|
+
readonly endsAt: string;
|
|
5
|
+
constructor(transactionsTimePeriod: ITransactionsTimePeriodNotificationResponse);
|
|
6
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TransactionsTimePeriodNotification = void 0;
|
|
4
|
+
class TransactionsTimePeriodNotification {
|
|
5
|
+
constructor(transactionsTimePeriod) {
|
|
6
|
+
this.startsAt = transactionsTimePeriod.starts_at;
|
|
7
|
+
this.endsAt = transactionsTimePeriod.ends_at;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
exports.TransactionsTimePeriodNotification = TransactionsTimePeriodNotification;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { type IAddressResponse, type IEventsResponse } from '../../../types';
|
|
1
|
+
import { type IEventsResponse } from '../../../types';
|
|
3
2
|
import { EventName } from '../../helpers';
|
|
4
3
|
import { Event } from '../../../entities/events/event';
|
|
4
|
+
import { AddressNotification } from '../../entities';
|
|
5
|
+
import { type IAddressNotificationResponse } from '../../types';
|
|
5
6
|
export declare class AddressCreatedEvent extends Event {
|
|
6
7
|
readonly eventType = EventName.AddressCreated;
|
|
7
|
-
readonly data:
|
|
8
|
-
constructor(response: IEventsResponse<
|
|
8
|
+
readonly data: AddressNotification;
|
|
9
|
+
constructor(response: IEventsResponse<IAddressNotificationResponse>);
|
|
9
10
|
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.AddressCreatedEvent = void 0;
|
|
4
|
-
const entities_1 = require("../../../entities");
|
|
5
4
|
const helpers_1 = require("../../helpers");
|
|
6
5
|
const event_1 = require("../../../entities/events/event");
|
|
6
|
+
const entities_1 = require("../../entities");
|
|
7
7
|
class AddressCreatedEvent extends event_1.Event {
|
|
8
8
|
constructor(response) {
|
|
9
9
|
super(response);
|
|
10
10
|
this.eventType = helpers_1.EventName.AddressCreated;
|
|
11
|
-
this.data = new entities_1.
|
|
11
|
+
this.data = new entities_1.AddressNotification(response.data);
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
14
|
exports.AddressCreatedEvent = AddressCreatedEvent;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { Event } from '../../../entities/events/event';
|
|
2
|
-
import {
|
|
3
|
-
import { type
|
|
2
|
+
import { AddressNotification } from '../../entities';
|
|
3
|
+
import { type IEventsResponse } from '../../../types';
|
|
4
4
|
import { EventName } from '../../helpers';
|
|
5
|
+
import { type IAddressNotificationResponse } from '../../types';
|
|
5
6
|
export declare class AddressImportedEvent extends Event {
|
|
6
7
|
readonly eventType = EventName.AddressImported;
|
|
7
|
-
readonly data:
|
|
8
|
-
constructor(response: IEventsResponse<
|
|
8
|
+
readonly data: AddressNotification;
|
|
9
|
+
constructor(response: IEventsResponse<IAddressNotificationResponse>);
|
|
9
10
|
}
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.AddressImportedEvent = 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 AddressImportedEvent extends event_1.Event {
|
|
8
8
|
constructor(response) {
|
|
9
9
|
super(response);
|
|
10
10
|
this.eventType = helpers_1.EventName.AddressImported;
|
|
11
|
-
this.data = new entities_1.
|
|
11
|
+
this.data = new entities_1.AddressNotification(response.data);
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
14
|
exports.AddressImportedEvent = AddressImportedEvent;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { Event } from '../../../entities/events/event';
|
|
2
|
-
import {
|
|
3
|
-
import { type IAddressResponse, type IEventsResponse } from '../../../types';
|
|
2
|
+
import { type IEventsResponse } from '../../../types';
|
|
4
3
|
import { EventName } from '../../helpers';
|
|
4
|
+
import { AddressNotification } from '../../entities';
|
|
5
|
+
import { type IAddressNotificationResponse } from '../../types';
|
|
5
6
|
export declare class AddressUpdatedEvent extends Event {
|
|
6
7
|
readonly eventType = EventName.AddressUpdated;
|
|
7
|
-
readonly data:
|
|
8
|
-
constructor(response: IEventsResponse<
|
|
8
|
+
readonly data: AddressNotification;
|
|
9
|
+
constructor(response: IEventsResponse<IAddressNotificationResponse>);
|
|
9
10
|
}
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.AddressUpdatedEvent = void 0;
|
|
4
4
|
const event_1 = require("../../../entities/events/event");
|
|
5
|
-
const entities_1 = require("../../../entities");
|
|
6
5
|
const helpers_1 = require("../../helpers");
|
|
6
|
+
const entities_1 = require("../../entities");
|
|
7
7
|
class AddressUpdatedEvent extends event_1.Event {
|
|
8
8
|
constructor(response) {
|
|
9
9
|
super(response);
|
|
10
10
|
this.eventType = helpers_1.EventName.AddressUpdated;
|
|
11
|
-
this.data = new entities_1.
|
|
11
|
+
this.data = new entities_1.AddressNotification(response.data);
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
14
|
exports.AddressUpdatedEvent = AddressUpdatedEvent;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { Event } from '../../../entities/events/event';
|
|
2
|
-
import {
|
|
3
|
-
import { type
|
|
2
|
+
import { AdjustmentNotification } from '../../entities';
|
|
3
|
+
import { type IEventsResponse } from '../../../types';
|
|
4
4
|
import { EventName } from '../../helpers';
|
|
5
|
+
import { type IAdjustmentNotificationResponse } from '../../types';
|
|
5
6
|
export declare class AdjustmentCreatedEvent extends Event {
|
|
6
7
|
readonly eventType = EventName.AdjustmentCreated;
|
|
7
|
-
readonly data:
|
|
8
|
-
constructor(response: IEventsResponse<
|
|
8
|
+
readonly data: AdjustmentNotification;
|
|
9
|
+
constructor(response: IEventsResponse<IAdjustmentNotificationResponse>);
|
|
9
10
|
}
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.AdjustmentCreatedEvent = 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 AdjustmentCreatedEvent extends event_1.Event {
|
|
8
8
|
constructor(response) {
|
|
9
9
|
super(response);
|
|
10
10
|
this.eventType = helpers_1.EventName.AdjustmentCreated;
|
|
11
|
-
this.data = new entities_1.
|
|
11
|
+
this.data = new entities_1.AdjustmentNotification(response.data);
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
14
|
exports.AdjustmentCreatedEvent = AdjustmentCreatedEvent;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { Event } from '../../../entities/events/event';
|
|
2
|
-
import {
|
|
3
|
-
import { type
|
|
2
|
+
import { AdjustmentNotification } from '../../entities';
|
|
3
|
+
import { type IEventsResponse } from '../../../types';
|
|
4
4
|
import { EventName } from '../../helpers';
|
|
5
|
+
import { type IAdjustmentNotificationResponse } from '../../types';
|
|
5
6
|
export declare class AdjustmentUpdatedEvent extends Event {
|
|
6
7
|
readonly eventType = EventName.AdjustmentUpdated;
|
|
7
|
-
readonly data:
|
|
8
|
-
constructor(response: IEventsResponse<
|
|
8
|
+
readonly data: AdjustmentNotification;
|
|
9
|
+
constructor(response: IEventsResponse<IAdjustmentNotificationResponse>);
|
|
9
10
|
}
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.AdjustmentUpdatedEvent = 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 AdjustmentUpdatedEvent extends event_1.Event {
|
|
8
8
|
constructor(response) {
|
|
9
9
|
super(response);
|
|
10
10
|
this.eventType = helpers_1.EventName.AdjustmentUpdated;
|
|
11
|
-
this.data = new entities_1.
|
|
11
|
+
this.data = new entities_1.AdjustmentNotification(response.data);
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
14
|
exports.AdjustmentUpdatedEvent = AdjustmentUpdatedEvent;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { Event } from '../../../entities/events/event';
|
|
2
|
-
import {
|
|
3
|
-
import { type
|
|
2
|
+
import { BusinessNotification } from '../../entities';
|
|
3
|
+
import { type IEventsResponse } from '../../../types';
|
|
4
4
|
import { EventName } from '../../helpers';
|
|
5
|
+
import { type IBusinessNotificationResponse } from '../../types';
|
|
5
6
|
export declare class BusinessCreatedEvent extends Event {
|
|
6
7
|
readonly eventType = EventName.BusinessCreated;
|
|
7
|
-
readonly data:
|
|
8
|
-
constructor(response: IEventsResponse<
|
|
8
|
+
readonly data: BusinessNotification;
|
|
9
|
+
constructor(response: IEventsResponse<IBusinessNotificationResponse>);
|
|
9
10
|
}
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.BusinessCreatedEvent = 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 BusinessCreatedEvent extends event_1.Event {
|
|
8
8
|
constructor(response) {
|
|
9
9
|
super(response);
|
|
10
10
|
this.eventType = helpers_1.EventName.BusinessCreated;
|
|
11
|
-
this.data = new entities_1.
|
|
11
|
+
this.data = new entities_1.BusinessNotification(response.data);
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
14
|
exports.BusinessCreatedEvent = BusinessCreatedEvent;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { Event } from '../../../entities/events/event';
|
|
2
|
-
import {
|
|
3
|
-
import { type
|
|
2
|
+
import { BusinessNotification } from '../../entities';
|
|
3
|
+
import { type IEventsResponse } from '../../../types';
|
|
4
4
|
import { EventName } from '../../helpers';
|
|
5
|
+
import { type IBusinessNotificationResponse } from '../../types';
|
|
5
6
|
export declare class BusinessImportedEvent extends Event {
|
|
6
7
|
readonly eventType = EventName.BusinessImported;
|
|
7
|
-
readonly data:
|
|
8
|
-
constructor(response: IEventsResponse<
|
|
8
|
+
readonly data: BusinessNotification;
|
|
9
|
+
constructor(response: IEventsResponse<IBusinessNotificationResponse>);
|
|
9
10
|
}
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.BusinessImportedEvent = 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 BusinessImportedEvent extends event_1.Event {
|
|
8
8
|
constructor(response) {
|
|
9
9
|
super(response);
|
|
10
10
|
this.eventType = helpers_1.EventName.BusinessImported;
|
|
11
|
-
this.data = new entities_1.
|
|
11
|
+
this.data = new entities_1.BusinessNotification(response.data);
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
14
|
exports.BusinessImportedEvent = BusinessImportedEvent;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { Event } from '../../../entities/events/event';
|
|
2
|
-
import {
|
|
3
|
-
import { type
|
|
2
|
+
import { BusinessNotification } from '../../entities';
|
|
3
|
+
import { type IEventsResponse } from '../../../types';
|
|
4
4
|
import { EventName } from '../../helpers';
|
|
5
|
+
import { type IBusinessNotificationResponse } from '../../types';
|
|
5
6
|
export declare class BusinessUpdatedEvent extends Event {
|
|
6
7
|
readonly eventType = EventName.BusinessUpdated;
|
|
7
|
-
readonly data:
|
|
8
|
-
constructor(response: IEventsResponse<
|
|
8
|
+
readonly data: BusinessNotification;
|
|
9
|
+
constructor(response: IEventsResponse<IBusinessNotificationResponse>);
|
|
9
10
|
}
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.BusinessUpdatedEvent = 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 BusinessUpdatedEvent extends event_1.Event {
|
|
8
8
|
constructor(response) {
|
|
9
9
|
super(response);
|
|
10
10
|
this.eventType = helpers_1.EventName.BusinessUpdated;
|
|
11
|
-
this.data = new entities_1.
|
|
11
|
+
this.data = new entities_1.BusinessNotification(response.data);
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
14
|
exports.BusinessUpdatedEvent = BusinessUpdatedEvent;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { Event } from '../../../entities/events/event';
|
|
2
|
-
import {
|
|
3
|
-
import { type
|
|
2
|
+
import { CustomerNotification } from '../../entities';
|
|
3
|
+
import { type IEventsResponse } from '../../../types';
|
|
4
4
|
import { EventName } from '../../helpers';
|
|
5
|
+
import { type ICustomerNotificationResponse } from '../../types';
|
|
5
6
|
export declare class CustomerCreatedEvent extends Event {
|
|
6
7
|
readonly eventType = EventName.CustomerCreated;
|
|
7
|
-
readonly data:
|
|
8
|
-
constructor(response: IEventsResponse<
|
|
8
|
+
readonly data: CustomerNotification;
|
|
9
|
+
constructor(response: IEventsResponse<ICustomerNotificationResponse>);
|
|
9
10
|
}
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.CustomerCreatedEvent = 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 CustomerCreatedEvent extends event_1.Event {
|
|
8
8
|
constructor(response) {
|
|
9
9
|
super(response);
|
|
10
10
|
this.eventType = helpers_1.EventName.CustomerCreated;
|
|
11
|
-
this.data = new entities_1.
|
|
11
|
+
this.data = new entities_1.CustomerNotification(response.data);
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
14
|
exports.CustomerCreatedEvent = CustomerCreatedEvent;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { Event } from '../../../entities/events/event';
|
|
2
|
-
import {
|
|
3
|
-
import { type
|
|
2
|
+
import { CustomerNotification } from '../../entities';
|
|
3
|
+
import { type IEventsResponse } from '../../../types';
|
|
4
4
|
import { EventName } from '../../helpers';
|
|
5
|
+
import { type ICustomerNotificationResponse } from '../../types';
|
|
5
6
|
export declare class CustomerImportedEvent extends Event {
|
|
6
7
|
readonly eventType = EventName.CustomerImported;
|
|
7
|
-
readonly data:
|
|
8
|
-
constructor(response: IEventsResponse<
|
|
8
|
+
readonly data: CustomerNotification;
|
|
9
|
+
constructor(response: IEventsResponse<ICustomerNotificationResponse>);
|
|
9
10
|
}
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.CustomerImportedEvent = 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 CustomerImportedEvent extends event_1.Event {
|
|
8
8
|
constructor(response) {
|
|
9
9
|
super(response);
|
|
10
10
|
this.eventType = helpers_1.EventName.CustomerImported;
|
|
11
|
-
this.data = new entities_1.
|
|
11
|
+
this.data = new entities_1.CustomerNotification(response.data);
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
14
|
exports.CustomerImportedEvent = CustomerImportedEvent;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { Event } from '../../../entities/events/event';
|
|
2
|
-
import {
|
|
3
|
-
import { type
|
|
2
|
+
import { CustomerNotification } from '../../entities';
|
|
3
|
+
import { type IEventsResponse } from '../../../types';
|
|
4
4
|
import { EventName } from '../../helpers';
|
|
5
|
+
import { type ICustomerNotificationResponse } from '../../types';
|
|
5
6
|
export declare class CustomerUpdatedEvent extends Event {
|
|
6
7
|
readonly eventType = EventName.CustomerUpdated;
|
|
7
|
-
readonly data:
|
|
8
|
-
constructor(response: IEventsResponse<
|
|
8
|
+
readonly data: CustomerNotification;
|
|
9
|
+
constructor(response: IEventsResponse<ICustomerNotificationResponse>);
|
|
9
10
|
}
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.CustomerUpdatedEvent = 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 CustomerUpdatedEvent extends event_1.Event {
|
|
8
8
|
constructor(response) {
|
|
9
9
|
super(response);
|
|
10
10
|
this.eventType = helpers_1.EventName.CustomerUpdated;
|
|
11
|
-
this.data = new entities_1.
|
|
11
|
+
this.data = new entities_1.CustomerNotification(response.data);
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
14
|
exports.CustomerUpdatedEvent = CustomerUpdatedEvent;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { Event } from '../../../entities/events/event';
|
|
2
|
-
import {
|
|
3
|
-
import { type
|
|
2
|
+
import { DiscountNotification } from '../../entities';
|
|
3
|
+
import { type IEventsResponse } from '../../../types';
|
|
4
4
|
import { EventName } from '../../helpers';
|
|
5
|
+
import { type IDiscountNotificationResponse } from '../../types';
|
|
5
6
|
export declare class DiscountCreatedEvent extends Event {
|
|
6
7
|
readonly eventType = EventName.DiscountCreated;
|
|
7
|
-
readonly data:
|
|
8
|
-
constructor(response: IEventsResponse<
|
|
8
|
+
readonly data: DiscountNotification;
|
|
9
|
+
constructor(response: IEventsResponse<IDiscountNotificationResponse>);
|
|
9
10
|
}
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.DiscountCreatedEvent = 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 DiscountCreatedEvent extends event_1.Event {
|
|
8
8
|
constructor(response) {
|
|
9
9
|
super(response);
|
|
10
10
|
this.eventType = helpers_1.EventName.DiscountCreated;
|
|
11
|
-
this.data = new entities_1.
|
|
11
|
+
this.data = new entities_1.DiscountNotification(response.data);
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
14
|
exports.DiscountCreatedEvent = DiscountCreatedEvent;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { Event } from '../../../entities/events/event';
|
|
2
|
-
import {
|
|
3
|
-
import { type
|
|
2
|
+
import { DiscountNotification } from '../../entities';
|
|
3
|
+
import { type IEventsResponse } from '../../../types';
|
|
4
4
|
import { EventName } from '../../helpers';
|
|
5
|
+
import { type IDiscountNotificationResponse } from '../../types';
|
|
5
6
|
export declare class DiscountImportedEvent extends Event {
|
|
6
7
|
readonly eventType = EventName.DiscountImported;
|
|
7
|
-
readonly data:
|
|
8
|
-
constructor(response: IEventsResponse<
|
|
8
|
+
readonly data: DiscountNotification;
|
|
9
|
+
constructor(response: IEventsResponse<IDiscountNotificationResponse>);
|
|
9
10
|
}
|