@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,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TaxRatesUsedNotification = void 0;
|
|
4
|
+
const index_1 = require("../index");
|
|
5
|
+
class TaxRatesUsedNotification {
|
|
6
|
+
constructor(taxRatesUsed) {
|
|
7
|
+
this.taxRate = taxRatesUsed.tax_rate;
|
|
8
|
+
this.totals = taxRatesUsed.totals ? new index_1.TotalsNotification(taxRatesUsed.totals) : null;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
exports.TaxRatesUsedNotification = TaxRatesUsedNotification;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type ITimePeriodNotification } from '../../types';
|
|
2
|
+
import { type Interval } from '../../../enums';
|
|
3
|
+
export declare class TimePeriodNotification {
|
|
4
|
+
readonly interval: Interval;
|
|
5
|
+
readonly frequency: number;
|
|
6
|
+
constructor(timePeriod: ITimePeriodNotification);
|
|
7
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TimePeriodNotification = void 0;
|
|
4
|
+
class TimePeriodNotification {
|
|
5
|
+
constructor(timePeriod) {
|
|
6
|
+
this.interval = timePeriod.interval;
|
|
7
|
+
this.frequency = timePeriod.frequency;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
exports.TimePeriodNotification = TimePeriodNotification;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type ITotalAdjustmentsNotificationResponse } from '../../types';
|
|
2
|
+
import { type CurrencyCode } from '../../../enums';
|
|
3
|
+
export declare class TotalAdjustmentsNotification {
|
|
4
|
+
readonly subtotal: string;
|
|
5
|
+
readonly tax: string;
|
|
6
|
+
readonly total: string;
|
|
7
|
+
readonly fee: string;
|
|
8
|
+
readonly earnings: string;
|
|
9
|
+
readonly currencyCode: CurrencyCode;
|
|
10
|
+
constructor(totalAdjustments: ITotalAdjustmentsNotificationResponse);
|
|
11
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TotalAdjustmentsNotification = void 0;
|
|
4
|
+
class TotalAdjustmentsNotification {
|
|
5
|
+
constructor(totalAdjustments) {
|
|
6
|
+
this.subtotal = totalAdjustments.subtotal;
|
|
7
|
+
this.tax = totalAdjustments.tax;
|
|
8
|
+
this.total = totalAdjustments.total;
|
|
9
|
+
this.fee = totalAdjustments.fee;
|
|
10
|
+
this.earnings = totalAdjustments.earnings;
|
|
11
|
+
this.currencyCode = totalAdjustments.currency_code;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
exports.TotalAdjustmentsNotification = TotalAdjustmentsNotification;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TotalsNotification = void 0;
|
|
4
|
+
class TotalsNotification {
|
|
5
|
+
constructor(totals) {
|
|
6
|
+
this.subtotal = totals.subtotal;
|
|
7
|
+
this.discount = totals.discount;
|
|
8
|
+
this.tax = totals.tax;
|
|
9
|
+
this.total = totals.total;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
exports.TotalsNotification = TotalsNotification;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TransactionCheckoutNotification = void 0;
|
|
4
|
+
class TransactionCheckoutNotification {
|
|
5
|
+
constructor(transactionCheckout) {
|
|
6
|
+
this.url = transactionCheckout.url ? transactionCheckout.url : null;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
exports.TransactionCheckoutNotification = TransactionCheckoutNotification;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { type ITransactionPaymentAttemptNotificationResponse } from '../../types';
|
|
2
|
+
import { PaymentMethodDetailsNotification } from '../index';
|
|
3
|
+
import { type PaymentAttemptStatus, type ErrorCode } from '../../../enums';
|
|
4
|
+
export declare class TransactionPaymentAttemptNotification {
|
|
5
|
+
readonly paymentAttemptId: string;
|
|
6
|
+
readonly paymentMethodId: string | null;
|
|
7
|
+
readonly storedPaymentMethodId: string;
|
|
8
|
+
readonly amount: string;
|
|
9
|
+
readonly status: PaymentAttemptStatus;
|
|
10
|
+
readonly errorCode: ErrorCode | null;
|
|
11
|
+
readonly methodDetails: PaymentMethodDetailsNotification | null;
|
|
12
|
+
readonly createdAt: string;
|
|
13
|
+
readonly capturedAt: string | null;
|
|
14
|
+
constructor(transactionPaymentAttempt: ITransactionPaymentAttemptNotificationResponse);
|
|
15
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TransactionPaymentAttemptNotification = void 0;
|
|
4
|
+
const index_1 = require("../index");
|
|
5
|
+
class TransactionPaymentAttemptNotification {
|
|
6
|
+
constructor(transactionPaymentAttempt) {
|
|
7
|
+
var _a;
|
|
8
|
+
this.paymentAttemptId = transactionPaymentAttempt.payment_attempt_id;
|
|
9
|
+
this.paymentMethodId = (_a = transactionPaymentAttempt.payment_method_id) !== null && _a !== void 0 ? _a : null;
|
|
10
|
+
this.storedPaymentMethodId = transactionPaymentAttempt.stored_payment_method_id;
|
|
11
|
+
this.amount = transactionPaymentAttempt.amount;
|
|
12
|
+
this.status = transactionPaymentAttempt.status;
|
|
13
|
+
this.errorCode = transactionPaymentAttempt.error_code ? transactionPaymentAttempt.error_code : null;
|
|
14
|
+
this.methodDetails = transactionPaymentAttempt.method_details
|
|
15
|
+
? new index_1.PaymentMethodDetailsNotification(transactionPaymentAttempt.method_details)
|
|
16
|
+
: null;
|
|
17
|
+
this.createdAt = transactionPaymentAttempt.created_at;
|
|
18
|
+
this.capturedAt = transactionPaymentAttempt.captured_at ? transactionPaymentAttempt.captured_at : null;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
exports.TransactionPaymentAttemptNotification = TransactionPaymentAttemptNotification;
|
package/dist/notifications/entities/shared/transaction-payout-totals-adjusted-notification.d.ts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { type ITransactionPayoutTotalsAdjustedNotificationResponse } from '../../types';
|
|
2
|
+
import { ChargebackFeeNotification } from '../index';
|
|
3
|
+
import { type PayoutCurrencyCode } from '../../../enums';
|
|
4
|
+
export declare class TransactionPayoutTotalsAdjustedNotification {
|
|
5
|
+
readonly subtotal: string;
|
|
6
|
+
readonly tax: string;
|
|
7
|
+
readonly total: string;
|
|
8
|
+
readonly fee: string;
|
|
9
|
+
readonly chargebackFee: ChargebackFeeNotification | null;
|
|
10
|
+
readonly earnings: string;
|
|
11
|
+
readonly currencyCode: PayoutCurrencyCode;
|
|
12
|
+
constructor(transactionPayoutTotalsAdjusted: ITransactionPayoutTotalsAdjustedNotificationResponse);
|
|
13
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TransactionPayoutTotalsAdjustedNotification = void 0;
|
|
4
|
+
const index_1 = require("../index");
|
|
5
|
+
class TransactionPayoutTotalsAdjustedNotification {
|
|
6
|
+
constructor(transactionPayoutTotalsAdjusted) {
|
|
7
|
+
this.subtotal = transactionPayoutTotalsAdjusted.subtotal;
|
|
8
|
+
this.tax = transactionPayoutTotalsAdjusted.tax;
|
|
9
|
+
this.total = transactionPayoutTotalsAdjusted.total;
|
|
10
|
+
this.fee = transactionPayoutTotalsAdjusted.fee;
|
|
11
|
+
this.chargebackFee = transactionPayoutTotalsAdjusted.chargeback_fee
|
|
12
|
+
? new index_1.ChargebackFeeNotification(transactionPayoutTotalsAdjusted.chargeback_fee)
|
|
13
|
+
: null;
|
|
14
|
+
this.earnings = transactionPayoutTotalsAdjusted.earnings;
|
|
15
|
+
this.currencyCode = transactionPayoutTotalsAdjusted.currency_code;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
exports.TransactionPayoutTotalsAdjustedNotification = TransactionPayoutTotalsAdjustedNotification;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { type ITransactionPayoutTotalsNotificationResponse } from '../../types';
|
|
2
|
+
import { type PayoutCurrencyCode } from '../../../enums';
|
|
3
|
+
export declare class TransactionPayoutTotalsNotification {
|
|
4
|
+
readonly subtotal: string;
|
|
5
|
+
readonly discount: string;
|
|
6
|
+
readonly tax: string;
|
|
7
|
+
readonly total: string;
|
|
8
|
+
readonly credit: string;
|
|
9
|
+
readonly creditToBalance: string;
|
|
10
|
+
readonly balance: string;
|
|
11
|
+
readonly grandTotal: string;
|
|
12
|
+
readonly fee: string;
|
|
13
|
+
readonly earnings: string;
|
|
14
|
+
readonly currencyCode: PayoutCurrencyCode;
|
|
15
|
+
constructor(transactionPayoutTotals: ITransactionPayoutTotalsNotificationResponse);
|
|
16
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TransactionPayoutTotalsNotification = void 0;
|
|
4
|
+
class TransactionPayoutTotalsNotification {
|
|
5
|
+
constructor(transactionPayoutTotals) {
|
|
6
|
+
this.subtotal = transactionPayoutTotals.subtotal;
|
|
7
|
+
this.discount = transactionPayoutTotals.discount;
|
|
8
|
+
this.tax = transactionPayoutTotals.tax;
|
|
9
|
+
this.total = transactionPayoutTotals.total;
|
|
10
|
+
this.credit = transactionPayoutTotals.credit;
|
|
11
|
+
this.creditToBalance = transactionPayoutTotals.credit_to_balance;
|
|
12
|
+
this.balance = transactionPayoutTotals.balance;
|
|
13
|
+
this.grandTotal = transactionPayoutTotals.grand_total;
|
|
14
|
+
this.fee = transactionPayoutTotals.fee;
|
|
15
|
+
this.earnings = transactionPayoutTotals.earnings;
|
|
16
|
+
this.currencyCode = transactionPayoutTotals.currency_code;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
exports.TransactionPayoutTotalsNotification = TransactionPayoutTotalsNotification;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type ITransactionTotalsAdjustedNotificationResponse } from '../../types';
|
|
2
|
+
import { type CurrencyCode } from '../../../enums';
|
|
3
|
+
export declare class TransactionTotalsAdjustedNotification {
|
|
4
|
+
readonly subtotal: string;
|
|
5
|
+
readonly tax: string;
|
|
6
|
+
readonly total: string;
|
|
7
|
+
readonly grandTotal: string;
|
|
8
|
+
readonly fee: string | null;
|
|
9
|
+
readonly earnings: string | null;
|
|
10
|
+
readonly currencyCode: CurrencyCode;
|
|
11
|
+
constructor(transactionTotalsAdjusted: ITransactionTotalsAdjustedNotificationResponse);
|
|
12
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TransactionTotalsAdjustedNotification = void 0;
|
|
4
|
+
class TransactionTotalsAdjustedNotification {
|
|
5
|
+
constructor(transactionTotalsAdjusted) {
|
|
6
|
+
this.subtotal = transactionTotalsAdjusted.subtotal;
|
|
7
|
+
this.tax = transactionTotalsAdjusted.tax;
|
|
8
|
+
this.total = transactionTotalsAdjusted.total;
|
|
9
|
+
this.grandTotal = transactionTotalsAdjusted.grand_total;
|
|
10
|
+
this.fee = transactionTotalsAdjusted.fee ? transactionTotalsAdjusted.fee : null;
|
|
11
|
+
this.earnings = transactionTotalsAdjusted.earnings ? transactionTotalsAdjusted.earnings : null;
|
|
12
|
+
this.currencyCode = transactionTotalsAdjusted.currency_code;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
exports.TransactionTotalsAdjustedNotification = TransactionTotalsAdjustedNotification;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { type ITransactionTotalsNotificationResponse } from '../../types';
|
|
2
|
+
import { type CurrencyCode } from '../../../enums';
|
|
3
|
+
export declare class TransactionTotalsNotification {
|
|
4
|
+
readonly subtotal: string;
|
|
5
|
+
readonly discount: string;
|
|
6
|
+
readonly tax: string;
|
|
7
|
+
readonly total: string;
|
|
8
|
+
readonly credit: string;
|
|
9
|
+
readonly creditToBalance: string;
|
|
10
|
+
readonly balance: string;
|
|
11
|
+
readonly grandTotal: string;
|
|
12
|
+
readonly fee: string | null;
|
|
13
|
+
readonly earnings: string | null;
|
|
14
|
+
readonly currencyCode: CurrencyCode;
|
|
15
|
+
constructor(transactionTotals: ITransactionTotalsNotificationResponse);
|
|
16
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TransactionTotalsNotification = void 0;
|
|
4
|
+
class TransactionTotalsNotification {
|
|
5
|
+
constructor(transactionTotals) {
|
|
6
|
+
this.subtotal = transactionTotals.subtotal;
|
|
7
|
+
this.discount = transactionTotals.discount;
|
|
8
|
+
this.tax = transactionTotals.tax;
|
|
9
|
+
this.total = transactionTotals.total;
|
|
10
|
+
this.credit = transactionTotals.credit;
|
|
11
|
+
this.creditToBalance = transactionTotals.credit_to_balance;
|
|
12
|
+
this.balance = transactionTotals.balance;
|
|
13
|
+
this.grandTotal = transactionTotals.grand_total;
|
|
14
|
+
this.fee = transactionTotals.fee ? transactionTotals.fee : null;
|
|
15
|
+
this.earnings = transactionTotals.earnings ? transactionTotals.earnings : null;
|
|
16
|
+
this.currencyCode = transactionTotals.currency_code;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
exports.TransactionTotalsNotification = TransactionTotalsNotification;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type IUnitPriceOverrideNotificationResponse } from '../../types';
|
|
2
|
+
import { MoneyNotification } from '../index';
|
|
3
|
+
import { type CountryCode } from '../../../enums';
|
|
4
|
+
export declare class UnitPriceOverrideNotification {
|
|
5
|
+
readonly countryCodes: CountryCode[];
|
|
6
|
+
readonly unitPrice: MoneyNotification;
|
|
7
|
+
constructor(unitPriceOverride: IUnitPriceOverrideNotificationResponse);
|
|
8
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UnitPriceOverrideNotification = void 0;
|
|
4
|
+
const index_1 = require("../index");
|
|
5
|
+
class UnitPriceOverrideNotification {
|
|
6
|
+
constructor(unitPriceOverride) {
|
|
7
|
+
this.countryCodes = unitPriceOverride.country_codes;
|
|
8
|
+
this.unitPrice = new index_1.MoneyNotification(unitPriceOverride.unit_price);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
exports.UnitPriceOverrideNotification = UnitPriceOverrideNotification;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type IUnitTotalsNotification } from '../../types';
|
|
2
|
+
export declare class UnitTotalsNotification {
|
|
3
|
+
readonly subtotal: string;
|
|
4
|
+
readonly discount: string;
|
|
5
|
+
readonly tax: string;
|
|
6
|
+
readonly total: string;
|
|
7
|
+
constructor(unitTotals: IUnitTotalsNotification);
|
|
8
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UnitTotalsNotification = void 0;
|
|
4
|
+
class UnitTotalsNotification {
|
|
5
|
+
constructor(unitTotals) {
|
|
6
|
+
this.subtotal = unitTotals.subtotal;
|
|
7
|
+
this.discount = unitTotals.discount;
|
|
8
|
+
this.tax = unitTotals.tax;
|
|
9
|
+
this.total = unitTotals.total;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
exports.UnitTotalsNotification = UnitTotalsNotification;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export * from './subscription-discount-notification';
|
|
2
|
+
export * from './subscription-time-period-notification';
|
|
3
|
+
export * from './subscription-scheduled-change-notification';
|
|
4
|
+
export * from './subscription-price-notification';
|
|
5
|
+
export * from './subscription-item-notification';
|
|
6
|
+
export * from './subscription-notification';
|
|
@@ -0,0 +1,22 @@
|
|
|
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("./subscription-discount-notification"), exports);
|
|
18
|
+
__exportStar(require("./subscription-time-period-notification"), exports);
|
|
19
|
+
__exportStar(require("./subscription-scheduled-change-notification"), exports);
|
|
20
|
+
__exportStar(require("./subscription-price-notification"), exports);
|
|
21
|
+
__exportStar(require("./subscription-item-notification"), exports);
|
|
22
|
+
__exportStar(require("./subscription-notification"), exports);
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type ISubscriptionDiscountNotificationResponse } from '../../types';
|
|
2
|
+
export declare class SubscriptionDiscountNotification {
|
|
3
|
+
readonly id: string;
|
|
4
|
+
readonly startsAt: string;
|
|
5
|
+
readonly endsAt: string | null;
|
|
6
|
+
constructor(subscriptionDiscount: ISubscriptionDiscountNotificationResponse);
|
|
7
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SubscriptionDiscountNotification = void 0;
|
|
4
|
+
class SubscriptionDiscountNotification {
|
|
5
|
+
constructor(subscriptionDiscount) {
|
|
6
|
+
var _a;
|
|
7
|
+
this.id = subscriptionDiscount.id;
|
|
8
|
+
this.startsAt = subscriptionDiscount.starts_at;
|
|
9
|
+
this.endsAt = (_a = subscriptionDiscount.ends_at) !== null && _a !== void 0 ? _a : null;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
exports.SubscriptionDiscountNotification = SubscriptionDiscountNotification;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { type ISubscriptionItemNotificationResponse } from '../../types';
|
|
2
|
+
import { SubscriptionPriceNotification, SubscriptionTimePeriodNotification } from '../index';
|
|
3
|
+
import { type SubscriptionItemStatus } from '../../../enums';
|
|
4
|
+
export declare class SubscriptionItemNotification {
|
|
5
|
+
readonly status: SubscriptionItemStatus;
|
|
6
|
+
readonly quantity: number;
|
|
7
|
+
readonly recurring: boolean;
|
|
8
|
+
readonly createdAt: string;
|
|
9
|
+
readonly updatedAt: string;
|
|
10
|
+
readonly previouslyBilledAt: string | null;
|
|
11
|
+
readonly nextBilledAt: string | null;
|
|
12
|
+
readonly trialDates: SubscriptionTimePeriodNotification | null;
|
|
13
|
+
readonly price: SubscriptionPriceNotification | null;
|
|
14
|
+
constructor(subscriptionItem: ISubscriptionItemNotificationResponse);
|
|
15
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SubscriptionItemNotification = void 0;
|
|
4
|
+
const index_1 = require("../index");
|
|
5
|
+
class SubscriptionItemNotification {
|
|
6
|
+
constructor(subscriptionItem) {
|
|
7
|
+
this.status = subscriptionItem.status;
|
|
8
|
+
this.quantity = subscriptionItem.quantity;
|
|
9
|
+
this.recurring = subscriptionItem.recurring;
|
|
10
|
+
this.createdAt = subscriptionItem.created_at;
|
|
11
|
+
this.updatedAt = subscriptionItem.updated_at;
|
|
12
|
+
this.previouslyBilledAt = subscriptionItem.previously_billed_at ? subscriptionItem.previously_billed_at : null;
|
|
13
|
+
this.nextBilledAt = subscriptionItem.next_billed_at ? subscriptionItem.next_billed_at : null;
|
|
14
|
+
this.trialDates = subscriptionItem.trial_dates
|
|
15
|
+
? new index_1.SubscriptionTimePeriodNotification(subscriptionItem.trial_dates)
|
|
16
|
+
: null;
|
|
17
|
+
this.price = subscriptionItem.price ? new index_1.SubscriptionPriceNotification(subscriptionItem.price) : null;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
exports.SubscriptionItemNotification = SubscriptionItemNotification;
|
package/dist/{entities → notifications/entities}/subscription/subscription-notification.d.ts
RENAMED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { type CollectionMode, type CurrencyCode, type SubscriptionStatus } from '
|
|
1
|
+
import { BillingDetailsNotification, ImportMetaNotification, SubscriptionDiscountNotification, SubscriptionItemNotification, SubscriptionScheduledChangeNotification, SubscriptionTimePeriodNotification, TimePeriodNotification } from '../index';
|
|
2
|
+
import { type CollectionMode, type CurrencyCode, type SubscriptionStatus } from '../../../enums';
|
|
3
3
|
import { type ISubscriptionNotificationResponse } from '../../types';
|
|
4
|
+
import { type CustomData } from '../../../entities';
|
|
4
5
|
export declare class SubscriptionNotification {
|
|
5
6
|
readonly id: string;
|
|
6
7
|
readonly status: SubscriptionStatus;
|
|
@@ -16,13 +17,14 @@ export declare class SubscriptionNotification {
|
|
|
16
17
|
readonly nextBilledAt: string | null;
|
|
17
18
|
readonly pausedAt: string | null;
|
|
18
19
|
readonly canceledAt: string | null;
|
|
19
|
-
readonly discount:
|
|
20
|
+
readonly discount: SubscriptionDiscountNotification | null;
|
|
20
21
|
readonly collectionMode: CollectionMode;
|
|
21
|
-
readonly billingDetails:
|
|
22
|
-
readonly currentBillingPeriod:
|
|
23
|
-
readonly billingCycle:
|
|
24
|
-
readonly scheduledChange:
|
|
25
|
-
readonly items:
|
|
22
|
+
readonly billingDetails: BillingDetailsNotification | null;
|
|
23
|
+
readonly currentBillingPeriod: SubscriptionTimePeriodNotification | null;
|
|
24
|
+
readonly billingCycle: TimePeriodNotification;
|
|
25
|
+
readonly scheduledChange: SubscriptionScheduledChangeNotification | null;
|
|
26
|
+
readonly items: SubscriptionItemNotification[];
|
|
26
27
|
readonly customData: CustomData | null;
|
|
28
|
+
readonly importMeta: ImportMetaNotification | null;
|
|
27
29
|
constructor(subscription: ISubscriptionNotificationResponse);
|
|
28
30
|
}
|
|
@@ -18,18 +18,21 @@ class SubscriptionNotification {
|
|
|
18
18
|
this.nextBilledAt = subscription.next_billed_at ? subscription.next_billed_at : null;
|
|
19
19
|
this.pausedAt = subscription.paused_at ? subscription.paused_at : null;
|
|
20
20
|
this.canceledAt = subscription.canceled_at ? subscription.canceled_at : null;
|
|
21
|
-
this.discount = subscription.discount ? new index_1.
|
|
21
|
+
this.discount = subscription.discount ? new index_1.SubscriptionDiscountNotification(subscription.discount) : null;
|
|
22
22
|
this.collectionMode = subscription.collection_mode;
|
|
23
|
-
this.billingDetails = subscription.billing_details
|
|
23
|
+
this.billingDetails = subscription.billing_details
|
|
24
|
+
? new index_1.BillingDetailsNotification(subscription.billing_details)
|
|
25
|
+
: null;
|
|
24
26
|
this.currentBillingPeriod = subscription.current_billing_period
|
|
25
|
-
? new index_1.
|
|
27
|
+
? new index_1.SubscriptionTimePeriodNotification(subscription.current_billing_period)
|
|
26
28
|
: null;
|
|
27
|
-
this.billingCycle = new index_1.
|
|
29
|
+
this.billingCycle = new index_1.TimePeriodNotification(subscription.billing_cycle);
|
|
28
30
|
this.scheduledChange = subscription.scheduled_change
|
|
29
|
-
? new index_1.
|
|
31
|
+
? new index_1.SubscriptionScheduledChangeNotification(subscription.scheduled_change)
|
|
30
32
|
: null;
|
|
31
|
-
this.items = subscription.items.map((item) => new index_1.
|
|
33
|
+
this.items = subscription.items.map((item) => new index_1.SubscriptionItemNotification(item));
|
|
32
34
|
this.customData = subscription.custom_data ? subscription.custom_data : null;
|
|
35
|
+
this.importMeta = subscription.import_meta ? new index_1.ImportMetaNotification(subscription.import_meta) : null;
|
|
33
36
|
}
|
|
34
37
|
}
|
|
35
38
|
exports.SubscriptionNotification = SubscriptionNotification;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { type ISubscriptionPriceNotificationResponse } from '../../types';
|
|
2
|
+
import { type ImportMetaNotification, MoneyNotification, PriceQuantityNotification, TimePeriodNotification, UnitPriceOverrideNotification } from '../index';
|
|
3
|
+
import { type CatalogType, type Status, type TaxMode } from '../../../enums';
|
|
4
|
+
import { type CustomData } from '../../../entities';
|
|
5
|
+
export declare class SubscriptionPriceNotification {
|
|
6
|
+
readonly id: string;
|
|
7
|
+
readonly productId: string;
|
|
8
|
+
readonly description: string;
|
|
9
|
+
readonly name: string | null;
|
|
10
|
+
readonly type: CatalogType | null;
|
|
11
|
+
readonly billingCycle: TimePeriodNotification | null;
|
|
12
|
+
readonly trialPeriod: TimePeriodNotification | null;
|
|
13
|
+
readonly taxMode: TaxMode;
|
|
14
|
+
readonly unitPrice: MoneyNotification | null;
|
|
15
|
+
readonly unitPriceOverrides: UnitPriceOverrideNotification[] | null;
|
|
16
|
+
readonly quantity: PriceQuantityNotification | null;
|
|
17
|
+
readonly status: Status | null;
|
|
18
|
+
readonly customData: CustomData | null;
|
|
19
|
+
readonly importMeta: ImportMetaNotification | null;
|
|
20
|
+
constructor(price: ISubscriptionPriceNotificationResponse);
|
|
21
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SubscriptionPriceNotification = void 0;
|
|
4
|
+
const index_1 = require("../index");
|
|
5
|
+
const entities_1 = require("../../../entities");
|
|
6
|
+
class SubscriptionPriceNotification {
|
|
7
|
+
constructor(price) {
|
|
8
|
+
var _a, _b;
|
|
9
|
+
this.id = price.id;
|
|
10
|
+
this.productId = price.product_id;
|
|
11
|
+
this.description = price.description;
|
|
12
|
+
this.type = (_a = price.type) !== null && _a !== void 0 ? _a : null;
|
|
13
|
+
this.name = price.name ? price.name : null;
|
|
14
|
+
this.billingCycle = price.billing_cycle ? new index_1.TimePeriodNotification(price.billing_cycle) : null;
|
|
15
|
+
this.trialPeriod = price.trial_period ? new index_1.TimePeriodNotification(price.trial_period) : null;
|
|
16
|
+
this.taxMode = price.tax_mode;
|
|
17
|
+
this.unitPrice = price.unit_price ? new index_1.MoneyNotification(price.unit_price) : null;
|
|
18
|
+
this.unitPriceOverrides = price.unit_price_overrides
|
|
19
|
+
? price.unit_price_overrides.map((unit_price_override) => new index_1.UnitPriceOverrideNotification(unit_price_override))
|
|
20
|
+
: [];
|
|
21
|
+
this.quantity = price.quantity ? new index_1.PriceQuantityNotification(price.quantity) : null;
|
|
22
|
+
this.status = (_b = price.status) !== null && _b !== void 0 ? _b : null;
|
|
23
|
+
this.customData = price.custom_data ? price.custom_data : null;
|
|
24
|
+
this.importMeta = price.import_meta ? new entities_1.ImportMeta(price.import_meta) : null;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
exports.SubscriptionPriceNotification = SubscriptionPriceNotification;
|
package/dist/notifications/entities/subscription/subscription-scheduled-change-notification.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type ISubscriptionScheduledChangeNotificationResponse } from '../../types';
|
|
2
|
+
import { type ScheduledChangeAction } from '../../../enums';
|
|
3
|
+
export declare class SubscriptionScheduledChangeNotification {
|
|
4
|
+
readonly action: ScheduledChangeAction;
|
|
5
|
+
readonly effectiveAt: string;
|
|
6
|
+
readonly resumeAt: string | null;
|
|
7
|
+
constructor(subscriptionScheduledChange: ISubscriptionScheduledChangeNotificationResponse);
|
|
8
|
+
}
|
package/dist/notifications/entities/subscription/subscription-scheduled-change-notification.js
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SubscriptionScheduledChangeNotification = void 0;
|
|
4
|
+
class SubscriptionScheduledChangeNotification {
|
|
5
|
+
constructor(subscriptionScheduledChange) {
|
|
6
|
+
this.action = subscriptionScheduledChange.action;
|
|
7
|
+
this.effectiveAt = subscriptionScheduledChange.effective_at;
|
|
8
|
+
this.resumeAt = subscriptionScheduledChange.resume_at ? subscriptionScheduledChange.resume_at : null;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
exports.SubscriptionScheduledChangeNotification = SubscriptionScheduledChangeNotification;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { type ISubscriptionTimePeriodNotificationResponse } from '../../types';
|
|
2
|
+
export declare class SubscriptionTimePeriodNotification {
|
|
3
|
+
readonly startsAt: string;
|
|
4
|
+
readonly endsAt: string;
|
|
5
|
+
constructor(subscriptionTimePeriod: ISubscriptionTimePeriodNotificationResponse);
|
|
6
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SubscriptionTimePeriodNotification = void 0;
|
|
4
|
+
class SubscriptionTimePeriodNotification {
|
|
5
|
+
constructor(subscriptionTimePeriod) {
|
|
6
|
+
this.startsAt = subscriptionTimePeriod.starts_at;
|
|
7
|
+
this.endsAt = subscriptionTimePeriod.ends_at;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
exports.SubscriptionTimePeriodNotification = SubscriptionTimePeriodNotification;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export * from './transactions-time-period-notification';
|
|
2
|
+
export * from './transaction-proration-notification';
|
|
3
|
+
export * from './transaction-item-notification';
|
|
4
|
+
export * from './transaction-line-item-notification';
|
|
5
|
+
export * from './transaction-details-notification';
|
|
6
|
+
export * from './transaction-notification';
|
|
@@ -0,0 +1,22 @@
|
|
|
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("./transactions-time-period-notification"), exports);
|
|
18
|
+
__exportStar(require("./transaction-proration-notification"), exports);
|
|
19
|
+
__exportStar(require("./transaction-item-notification"), exports);
|
|
20
|
+
__exportStar(require("./transaction-line-item-notification"), exports);
|
|
21
|
+
__exportStar(require("./transaction-details-notification"), exports);
|
|
22
|
+
__exportStar(require("./transaction-notification"), exports);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type ITransactionDetailsNotificationResponse } from '../../types';
|
|
2
|
+
import { TaxRatesUsedNotification, TransactionTotalsNotification, TransactionTotalsAdjustedNotification, TransactionPayoutTotalsNotification, TransactionPayoutTotalsAdjustedNotification, TransactionLineItemNotification } from '../index';
|
|
3
|
+
export declare class TransactionDetailsNotification {
|
|
4
|
+
readonly taxRatesUsed: TaxRatesUsedNotification[];
|
|
5
|
+
readonly totals: TransactionTotalsNotification | null;
|
|
6
|
+
readonly adjustedTotals: TransactionTotalsAdjustedNotification | null;
|
|
7
|
+
readonly payoutTotals: TransactionPayoutTotalsNotification | null;
|
|
8
|
+
readonly adjustedPayoutTotals: TransactionPayoutTotalsAdjustedNotification | null;
|
|
9
|
+
readonly lineItems: TransactionLineItemNotification[];
|
|
10
|
+
constructor(transactionDetails: ITransactionDetailsNotificationResponse);
|
|
11
|
+
}
|