@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
package/CHANGELOG.md
CHANGED
|
@@ -8,6 +8,36 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
|
8
8
|
|
|
9
9
|
Check our main [developer changelog](https://developer.paddle.com/?utm_source=dx&utm_medium=paddle-node-sdk) for information about changes to the Paddle Billing platform, the Paddle API, and other developer tools.
|
|
10
10
|
|
|
11
|
+
## 0.5.0 - 2024-02-16
|
|
12
|
+
|
|
13
|
+
> **Breaking changes:** This version includes major improvements that introduce breaking changes. These are called out below.
|
|
14
|
+
|
|
15
|
+
### Changed
|
|
16
|
+
|
|
17
|
+
- We removed the shared entities between API and Notification as we foresee them diverging. No Action required for this change
|
|
18
|
+
|
|
19
|
+
## 0.4.0 - 2024-02-14
|
|
20
|
+
|
|
21
|
+
### Added
|
|
22
|
+
|
|
23
|
+
- Added `availablePaymentMethods` as an `include` Parameter to all transaction operations.
|
|
24
|
+
- Added `importMeta` to Subscription webhooks.
|
|
25
|
+
|
|
26
|
+
### Changed
|
|
27
|
+
|
|
28
|
+
- Filter customers by email address in `customers.list()` operation, see [related changelog](https://developer.paddle.com/changelog/2024/filter-customers-email?utm_source=dx&utm_medium=paddle-node-sdk).
|
|
29
|
+
- New payment method ID field for transaction payments, see [related changelog](https://developer.paddle.com/changelog/2024/payment-method-paddle-id?utm_source=dx&utm_medium=paddle-node-sdk).
|
|
30
|
+
|
|
31
|
+
### Fixed
|
|
32
|
+
|
|
33
|
+
- Fixed `effective_from` enum in Resume subscription operations.
|
|
34
|
+
|
|
35
|
+
### Deprecated
|
|
36
|
+
|
|
37
|
+
- Deprecated `storedPaymentMethodId` from transaction payments in favour of `paymentMethodId` field.
|
|
38
|
+
|
|
39
|
+
---
|
|
40
|
+
|
|
11
41
|
## 0.3.0 - 2024-01-11
|
|
12
42
|
|
|
13
43
|
### Changed
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { type ICustomData, type
|
|
2
|
-
import {
|
|
3
|
-
import { type
|
|
1
|
+
import { type ICustomData, type IPriceResponse } from '../../types';
|
|
2
|
+
import { ImportMeta, Money, PriceQuantity, TimePeriod, UnitPriceOverride } from '../index';
|
|
3
|
+
import { type CatalogType, type Status, type TaxMode } from '../../enums';
|
|
4
4
|
export declare class Price {
|
|
5
5
|
readonly id: string;
|
|
6
6
|
readonly productId: string;
|
|
7
7
|
readonly description: string;
|
|
8
8
|
readonly name: string | null;
|
|
9
|
-
readonly type: CatalogType
|
|
9
|
+
readonly type: CatalogType;
|
|
10
10
|
readonly billingCycle: TimePeriod | null;
|
|
11
11
|
readonly trialPeriod: TimePeriod | null;
|
|
12
12
|
readonly taxMode: TaxMode;
|
|
13
|
-
readonly unitPrice: Money
|
|
14
|
-
readonly unitPriceOverrides: UnitPriceOverride[]
|
|
15
|
-
readonly quantity: PriceQuantity
|
|
13
|
+
readonly unitPrice: Money;
|
|
14
|
+
readonly unitPriceOverrides: UnitPriceOverride[];
|
|
15
|
+
readonly quantity: PriceQuantity;
|
|
16
16
|
readonly status: Status;
|
|
17
17
|
readonly customData: ICustomData | null;
|
|
18
18
|
readonly importMeta: ImportMeta | null;
|
|
19
|
-
constructor(price:
|
|
19
|
+
constructor(price: IPriceResponse);
|
|
20
20
|
}
|
|
@@ -4,20 +4,17 @@ exports.Price = void 0;
|
|
|
4
4
|
const index_1 = require("../index");
|
|
5
5
|
class Price {
|
|
6
6
|
constructor(price) {
|
|
7
|
-
var _a, _b;
|
|
8
7
|
this.id = price.id;
|
|
9
8
|
this.productId = price.product_id;
|
|
10
9
|
this.description = price.description;
|
|
11
|
-
this.type =
|
|
10
|
+
this.type = price.type;
|
|
12
11
|
this.name = price.name ? price.name : null;
|
|
13
12
|
this.billingCycle = price.billing_cycle ? new index_1.TimePeriod(price.billing_cycle) : null;
|
|
14
13
|
this.trialPeriod = price.trial_period ? new index_1.TimePeriod(price.trial_period) : null;
|
|
15
14
|
this.taxMode = price.tax_mode;
|
|
16
|
-
this.unitPrice =
|
|
17
|
-
this.unitPriceOverrides = price.unit_price_overrides
|
|
18
|
-
|
|
19
|
-
: null;
|
|
20
|
-
this.quantity = price.quantity ? new index_1.PriceQuantity(price.quantity) : null;
|
|
15
|
+
this.unitPrice = new index_1.Money(price.unit_price);
|
|
16
|
+
this.unitPriceOverrides = price.unit_price_overrides.map((unit_price_override) => new index_1.UnitPriceOverride(unit_price_override));
|
|
17
|
+
this.quantity = new index_1.PriceQuantity(price.quantity);
|
|
21
18
|
this.status = price.status;
|
|
22
19
|
this.customData = price.custom_data ? price.custom_data : null;
|
|
23
20
|
this.importMeta = price.import_meta ? new index_1.ImportMeta(price.import_meta) : null;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { type CurrencyCode } from '../../enums';
|
|
1
|
+
import { type CurrencyCode, type AvailablePaymentMethod } from '../../enums';
|
|
2
2
|
import { type IPricingPreviewResponse } from '../../types';
|
|
3
3
|
import { AddressPreview } from '../transaction';
|
|
4
4
|
import { PricingPreviewDetails } from './pricing-preview-details';
|
|
5
|
-
import { type AvailablePaymentMethod } from '../../enums/shared/available-payment-methods';
|
|
6
5
|
export declare class PricingPreview {
|
|
7
6
|
readonly customerId: string | null;
|
|
8
7
|
readonly addressId: string | null;
|
|
@@ -3,6 +3,7 @@ import { PaymentMethodDetails } from '../index';
|
|
|
3
3
|
import { type PaymentAttemptStatus, type ErrorCode } from '../../enums';
|
|
4
4
|
export declare class TransactionPaymentAttempt {
|
|
5
5
|
readonly paymentAttemptId: string;
|
|
6
|
+
readonly paymentMethodId: string;
|
|
6
7
|
readonly storedPaymentMethodId: string;
|
|
7
8
|
readonly amount: string;
|
|
8
9
|
readonly status: PaymentAttemptStatus;
|
|
@@ -5,6 +5,7 @@ const index_1 = require("../index");
|
|
|
5
5
|
class TransactionPaymentAttempt {
|
|
6
6
|
constructor(transactionPaymentAttempt) {
|
|
7
7
|
this.paymentAttemptId = transactionPaymentAttempt.payment_attempt_id;
|
|
8
|
+
this.paymentMethodId = transactionPaymentAttempt.payment_method_id;
|
|
8
9
|
this.storedPaymentMethodId = transactionPaymentAttempt.stored_payment_method_id;
|
|
9
10
|
this.amount = transactionPaymentAttempt.amount;
|
|
10
11
|
this.status = transactionPaymentAttempt.status;
|
|
@@ -2,7 +2,6 @@ export * from './subscription-discount';
|
|
|
2
2
|
export * from './subscription-time-period';
|
|
3
3
|
export * from './subscription-scheduled-change';
|
|
4
4
|
export * from './subscription-management';
|
|
5
|
-
export * from './subscription-price';
|
|
6
5
|
export * from './subscription-item';
|
|
7
6
|
export * from './subscription';
|
|
8
7
|
export * from './subscription-collection';
|
|
@@ -15,4 +14,3 @@ export * from './subscription-preview-update-summary';
|
|
|
15
14
|
export * from './subscription-preview-summary-result';
|
|
16
15
|
export * from './next-transaction-adjustment-preview';
|
|
17
16
|
export * from './next-transaction-adjustment-item';
|
|
18
|
-
export * from './subscription-notification';
|
|
@@ -18,7 +18,6 @@ __exportStar(require("./subscription-discount"), exports);
|
|
|
18
18
|
__exportStar(require("./subscription-time-period"), exports);
|
|
19
19
|
__exportStar(require("./subscription-scheduled-change"), exports);
|
|
20
20
|
__exportStar(require("./subscription-management"), exports);
|
|
21
|
-
__exportStar(require("./subscription-price"), exports);
|
|
22
21
|
__exportStar(require("./subscription-item"), exports);
|
|
23
22
|
__exportStar(require("./subscription"), exports);
|
|
24
23
|
__exportStar(require("./subscription-collection"), exports);
|
|
@@ -31,4 +30,3 @@ __exportStar(require("./subscription-preview-update-summary"), exports);
|
|
|
31
30
|
__exportStar(require("./subscription-preview-summary-result"), exports);
|
|
32
31
|
__exportStar(require("./next-transaction-adjustment-preview"), exports);
|
|
33
32
|
__exportStar(require("./next-transaction-adjustment-item"), exports);
|
|
34
|
-
__exportStar(require("./subscription-notification"), exports);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type ISubscriptionItemResponse } from '../../types';
|
|
2
|
-
import {
|
|
2
|
+
import { Price, SubscriptionTimePeriod } from '../index';
|
|
3
3
|
import { type SubscriptionItemStatus } from '../../enums';
|
|
4
4
|
export declare class SubscriptionItem {
|
|
5
5
|
readonly status: SubscriptionItemStatus;
|
|
@@ -10,6 +10,6 @@ export declare class SubscriptionItem {
|
|
|
10
10
|
readonly previouslyBilledAt: string | null;
|
|
11
11
|
readonly nextBilledAt: string | null;
|
|
12
12
|
readonly trialDates: SubscriptionTimePeriod | null;
|
|
13
|
-
readonly price:
|
|
13
|
+
readonly price: Price | null;
|
|
14
14
|
constructor(subscriptionItem: ISubscriptionItemResponse);
|
|
15
15
|
}
|
|
@@ -12,7 +12,7 @@ class SubscriptionItem {
|
|
|
12
12
|
this.previouslyBilledAt = subscriptionItem.previously_billed_at ? subscriptionItem.previously_billed_at : null;
|
|
13
13
|
this.nextBilledAt = subscriptionItem.next_billed_at ? subscriptionItem.next_billed_at : null;
|
|
14
14
|
this.trialDates = subscriptionItem.trial_dates ? new index_1.SubscriptionTimePeriod(subscriptionItem.trial_dates) : null;
|
|
15
|
-
this.price = subscriptionItem.price ? new index_1.
|
|
15
|
+
this.price = subscriptionItem.price ? new index_1.Price(subscriptionItem.price) : null;
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
18
|
exports.SubscriptionItem = SubscriptionItem;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type ITransactionResponse } from '../../types';
|
|
2
2
|
import { Address, TransactionAdjustment, AdjustmentTotals, BillingDetails, Business, TransactionCheckout, type CustomData, Customer, TransactionDetails, Discount, TransactionItem, TransactionPaymentAttempt, TransactionsTimePeriod } from '../index';
|
|
3
|
-
import { type CollectionMode, type CurrencyCode, type TransactionStatus, type TransactionOrigin } from '../../enums';
|
|
3
|
+
import { type CollectionMode, type CurrencyCode, type TransactionStatus, type TransactionOrigin, type AvailablePaymentMethod } from '../../enums';
|
|
4
4
|
export declare class TransactionIncludes {
|
|
5
5
|
readonly id: string;
|
|
6
6
|
readonly status: TransactionStatus;
|
|
@@ -30,5 +30,6 @@ export declare class TransactionIncludes {
|
|
|
30
30
|
readonly business: Business | null;
|
|
31
31
|
readonly customer: Customer | null;
|
|
32
32
|
readonly discount: Discount | null;
|
|
33
|
+
readonly availablePaymentMethods: AvailablePaymentMethod[] | null;
|
|
33
34
|
constructor(transaction: ITransactionResponse);
|
|
34
35
|
}
|
|
@@ -37,6 +37,7 @@ class TransactionIncludes {
|
|
|
37
37
|
this.business = transaction.business ? new index_1.Business(transaction.business) : null;
|
|
38
38
|
this.customer = transaction.customer ? new index_1.Customer(transaction.customer) : null;
|
|
39
39
|
this.discount = transaction.discount ? new index_1.Discount(transaction.discount) : null;
|
|
40
|
+
this.availablePaymentMethods = transaction.available_payment_methods ? transaction.available_payment_methods : null;
|
|
40
41
|
}
|
|
41
42
|
}
|
|
42
43
|
exports.TransactionIncludes = TransactionIncludes;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { type ITransactionPreviewResponse } from '../../types';
|
|
2
2
|
import { AddressPreview, TransactionDetailsPreview, TransactionItemPreview } from '../index';
|
|
3
|
-
import { type CurrencyCode } from '../../enums';
|
|
4
|
-
import { type AvailablePaymentMethod } from '../../enums/shared/available-payment-methods';
|
|
3
|
+
import { type CurrencyCode, type AvailablePaymentMethod } from '../../enums';
|
|
5
4
|
export declare class TransactionPreview {
|
|
6
5
|
readonly customerId: string | null;
|
|
7
6
|
readonly addressId: string | null;
|
|
@@ -28,3 +28,4 @@ __exportStar(require("./payment-attempt-status"), exports);
|
|
|
28
28
|
__exportStar(require("./error-code"), exports);
|
|
29
29
|
__exportStar(require("./payment-type"), exports);
|
|
30
30
|
__exportStar(require("./catalog-type"), exports);
|
|
31
|
+
__exportStar(require("./available-payment-methods"), exports);
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { type CountryCode, type Status } from '../../../enums';
|
|
2
|
+
import { type CustomData, ImportMeta } from '../../../entities';
|
|
3
|
+
import { type IAddressNotificationResponse } from '../../types';
|
|
4
|
+
export declare class AddressNotification {
|
|
5
|
+
readonly id: string;
|
|
6
|
+
readonly description: string | null;
|
|
7
|
+
readonly firstLine: string | null;
|
|
8
|
+
readonly secondLine: string | null;
|
|
9
|
+
readonly city: string | null;
|
|
10
|
+
readonly postalCode: string | null;
|
|
11
|
+
readonly region: string | null;
|
|
12
|
+
readonly countryCode: CountryCode;
|
|
13
|
+
readonly customData: CustomData | null;
|
|
14
|
+
readonly status: Status;
|
|
15
|
+
readonly createdAt: string;
|
|
16
|
+
readonly updatedAt: string;
|
|
17
|
+
readonly importMeta: ImportMeta | null;
|
|
18
|
+
constructor(address: IAddressNotificationResponse);
|
|
19
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AddressNotification = void 0;
|
|
4
|
+
const entities_1 = require("../../../entities");
|
|
5
|
+
class AddressNotification {
|
|
6
|
+
constructor(address) {
|
|
7
|
+
this.id = address.id;
|
|
8
|
+
this.description = address.description ? address.description : null;
|
|
9
|
+
this.firstLine = address.first_line ? address.first_line : null;
|
|
10
|
+
this.secondLine = address.second_line ? address.second_line : null;
|
|
11
|
+
this.city = address.city ? address.city : null;
|
|
12
|
+
this.postalCode = address.postal_code ? address.postal_code : null;
|
|
13
|
+
this.region = address.region ? address.region : null;
|
|
14
|
+
this.countryCode = address.country_code;
|
|
15
|
+
this.customData = address.custom_data ? address.custom_data : null;
|
|
16
|
+
this.status = address.status;
|
|
17
|
+
this.createdAt = address.created_at;
|
|
18
|
+
this.updatedAt = address.updated_at;
|
|
19
|
+
this.importMeta = address.import_meta ? new entities_1.ImportMeta(address.import_meta) : null;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
exports.AddressNotification = AddressNotification;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './address-notification';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./address-notification"), exports);
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type IAdjustmentItemNotificationResponse } from '../../types';
|
|
2
|
+
import { AdjustmentItemTotalsNotification, AdjustmentProrationNotification } from '../index';
|
|
3
|
+
import { type AdjustmentType } from '../../../enums';
|
|
4
|
+
export declare class AdjustmentItemNotification {
|
|
5
|
+
readonly id: string;
|
|
6
|
+
readonly itemId: string;
|
|
7
|
+
readonly type: AdjustmentType;
|
|
8
|
+
readonly amount: string | null;
|
|
9
|
+
readonly proration: AdjustmentProrationNotification | null;
|
|
10
|
+
readonly totals: AdjustmentItemTotalsNotification | null;
|
|
11
|
+
constructor(adjustmentItem: IAdjustmentItemNotificationResponse);
|
|
12
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AdjustmentItemNotification = void 0;
|
|
4
|
+
const index_1 = require("../index");
|
|
5
|
+
class AdjustmentItemNotification {
|
|
6
|
+
constructor(adjustmentItem) {
|
|
7
|
+
this.id = adjustmentItem.id;
|
|
8
|
+
this.itemId = adjustmentItem.item_id;
|
|
9
|
+
this.type = adjustmentItem.type;
|
|
10
|
+
this.amount = adjustmentItem.amount ? adjustmentItem.amount : null;
|
|
11
|
+
this.proration = adjustmentItem.proration ? new index_1.AdjustmentProrationNotification(adjustmentItem.proration) : null;
|
|
12
|
+
this.totals = adjustmentItem.totals ? new index_1.AdjustmentItemTotalsNotification(adjustmentItem.totals) : null;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
exports.AdjustmentItemNotification = AdjustmentItemNotification;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type IAdjustmentItemTotalsNotificationResponse } from '../../types';
|
|
2
|
+
export declare class AdjustmentItemTotalsNotification {
|
|
3
|
+
readonly subtotal: string;
|
|
4
|
+
readonly tax: string;
|
|
5
|
+
readonly total: string;
|
|
6
|
+
constructor(adjustmentItemTotals: IAdjustmentItemTotalsNotificationResponse);
|
|
7
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AdjustmentItemTotalsNotification = void 0;
|
|
4
|
+
class AdjustmentItemTotalsNotification {
|
|
5
|
+
constructor(adjustmentItemTotals) {
|
|
6
|
+
this.subtotal = adjustmentItemTotals.subtotal;
|
|
7
|
+
this.tax = adjustmentItemTotals.tax;
|
|
8
|
+
this.total = adjustmentItemTotals.total;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
exports.AdjustmentItemTotalsNotification = AdjustmentItemTotalsNotification;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { AdjustmentItemNotification, PayoutTotalsAdjustmentNotification, TotalAdjustmentsNotification } from '../index';
|
|
2
|
+
import { type AdjustmentAction, type AdjustmentStatus, type CurrencyCode } from '../../../enums';
|
|
3
|
+
import { type IAdjustmentNotificationResponse } from '../../types';
|
|
4
|
+
export declare class AdjustmentNotification {
|
|
5
|
+
readonly id: string;
|
|
6
|
+
readonly action: AdjustmentAction;
|
|
7
|
+
readonly transactionId: string;
|
|
8
|
+
readonly subscriptionId: string | null;
|
|
9
|
+
readonly customerId: string;
|
|
10
|
+
readonly reason: string;
|
|
11
|
+
readonly creditAppliedToBalance: boolean;
|
|
12
|
+
readonly currencyCode: CurrencyCode;
|
|
13
|
+
readonly status: AdjustmentStatus;
|
|
14
|
+
readonly items: AdjustmentItemNotification[];
|
|
15
|
+
readonly totals: TotalAdjustmentsNotification;
|
|
16
|
+
readonly payoutTotals: PayoutTotalsAdjustmentNotification | null;
|
|
17
|
+
readonly createdAt: string;
|
|
18
|
+
readonly updatedAt: string;
|
|
19
|
+
constructor(adjustment: IAdjustmentNotificationResponse);
|
|
20
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AdjustmentNotification = void 0;
|
|
4
|
+
const index_1 = require("../index");
|
|
5
|
+
class AdjustmentNotification {
|
|
6
|
+
constructor(adjustment) {
|
|
7
|
+
this.id = adjustment.id;
|
|
8
|
+
this.action = adjustment.action;
|
|
9
|
+
this.transactionId = adjustment.transaction_id;
|
|
10
|
+
this.subscriptionId = adjustment.subscription_id ? adjustment.subscription_id : null;
|
|
11
|
+
this.customerId = adjustment.customer_id;
|
|
12
|
+
this.reason = adjustment.reason;
|
|
13
|
+
this.creditAppliedToBalance = adjustment.credit_applied_to_balance;
|
|
14
|
+
this.currencyCode = adjustment.currency_code;
|
|
15
|
+
this.status = adjustment.status;
|
|
16
|
+
this.items = adjustment.items.map((item) => new index_1.AdjustmentItemNotification(item));
|
|
17
|
+
this.totals = new index_1.TotalAdjustmentsNotification(adjustment.totals);
|
|
18
|
+
this.payoutTotals = adjustment.payout_totals
|
|
19
|
+
? new index_1.PayoutTotalsAdjustmentNotification(adjustment.payout_totals)
|
|
20
|
+
: null;
|
|
21
|
+
this.createdAt = adjustment.created_at;
|
|
22
|
+
this.updatedAt = adjustment.updated_at;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
exports.AdjustmentNotification = AdjustmentNotification;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type IAdjustmentsProrationNotificationResponse } from '../../types';
|
|
2
|
+
import { AdjustmentTimePeriodNotification } from '../index';
|
|
3
|
+
export declare class AdjustmentProrationNotification {
|
|
4
|
+
readonly rate: string;
|
|
5
|
+
readonly billingPeriod: AdjustmentTimePeriodNotification | null;
|
|
6
|
+
constructor(adjustmentsProration: IAdjustmentsProrationNotificationResponse);
|
|
7
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AdjustmentProrationNotification = void 0;
|
|
4
|
+
const index_1 = require("../index");
|
|
5
|
+
class AdjustmentProrationNotification {
|
|
6
|
+
constructor(adjustmentsProration) {
|
|
7
|
+
this.rate = adjustmentsProration.rate;
|
|
8
|
+
this.billingPeriod = adjustmentsProration.billing_period
|
|
9
|
+
? new index_1.AdjustmentTimePeriodNotification(adjustmentsProration.billing_period)
|
|
10
|
+
: null;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
exports.AdjustmentProrationNotification = AdjustmentProrationNotification;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { type IAdjustmentsTimePeriodNotificationResponse } from '../../types';
|
|
2
|
+
export declare class AdjustmentTimePeriodNotification {
|
|
3
|
+
readonly startsAt: string;
|
|
4
|
+
readonly endsAt: string;
|
|
5
|
+
constructor(adjustmentsTimePeriod: IAdjustmentsTimePeriodNotificationResponse);
|
|
6
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AdjustmentTimePeriodNotification = void 0;
|
|
4
|
+
class AdjustmentTimePeriodNotification {
|
|
5
|
+
constructor(adjustmentsTimePeriod) {
|
|
6
|
+
this.startsAt = adjustmentsTimePeriod.starts_at;
|
|
7
|
+
this.endsAt = adjustmentsTimePeriod.ends_at;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
exports.AdjustmentTimePeriodNotification = AdjustmentTimePeriodNotification;
|
|
@@ -0,0 +1,21 @@
|
|
|
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("./adjustment-time-period-notification"), exports);
|
|
18
|
+
__exportStar(require("./adjustment-proration-notification"), exports);
|
|
19
|
+
__exportStar(require("./adjustment-item-notification"), exports);
|
|
20
|
+
__exportStar(require("./adjustment-item-totals-notification"), exports);
|
|
21
|
+
__exportStar(require("./adjustment-notification"), exports);
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ContactsNotification, ImportMetaNotification } from '../index';
|
|
2
|
+
import { type Status } from '../../../enums';
|
|
3
|
+
import { type IBusinessNotificationResponse } from '../../types';
|
|
4
|
+
import { type CustomData } from '../../../entities';
|
|
5
|
+
export declare class BusinessNotification {
|
|
6
|
+
readonly id: string;
|
|
7
|
+
readonly name: string;
|
|
8
|
+
readonly companyNumber: string | null;
|
|
9
|
+
readonly taxIdentifier: string | null;
|
|
10
|
+
readonly status: Status;
|
|
11
|
+
readonly contacts: ContactsNotification[] | null;
|
|
12
|
+
readonly createdAt: string;
|
|
13
|
+
readonly updatedAt: string;
|
|
14
|
+
readonly customData: CustomData | null;
|
|
15
|
+
readonly importMeta: ImportMetaNotification | null;
|
|
16
|
+
constructor(business: IBusinessNotificationResponse);
|
|
17
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BusinessNotification = void 0;
|
|
4
|
+
const index_1 = require("../index");
|
|
5
|
+
class BusinessNotification {
|
|
6
|
+
constructor(business) {
|
|
7
|
+
this.id = business.id;
|
|
8
|
+
this.name = business.name;
|
|
9
|
+
this.companyNumber = business.company_number ? business.company_number : null;
|
|
10
|
+
this.taxIdentifier = business.tax_identifier ? business.tax_identifier : null;
|
|
11
|
+
this.status = business.status;
|
|
12
|
+
this.contacts = business.contacts ? business.contacts.map((contact) => new index_1.ContactsNotification(contact)) : null;
|
|
13
|
+
this.createdAt = business.created_at;
|
|
14
|
+
this.updatedAt = business.updated_at;
|
|
15
|
+
this.customData = business.custom_data ? business.custom_data : null;
|
|
16
|
+
this.importMeta = business.import_meta ? new index_1.ImportMetaNotification(business.import_meta) : null;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
exports.BusinessNotification = BusinessNotification;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ContactsNotification = void 0;
|
|
4
|
+
class ContactsNotification {
|
|
5
|
+
constructor(contacts) {
|
|
6
|
+
this.name = contacts.name ? contacts.name : null;
|
|
7
|
+
this.email = contacts.email;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
exports.ContactsNotification = ContactsNotification;
|
|
@@ -0,0 +1,18 @@
|
|
|
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("./contacts-notification"), exports);
|
|
18
|
+
__exportStar(require("./business-notification"), exports);
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ImportMetaNotification } from '../index';
|
|
2
|
+
import { type Status } from '../../../enums';
|
|
3
|
+
import { type ICustomerNotificationResponse } from '../../types';
|
|
4
|
+
import { type CustomData } from '../../../entities';
|
|
5
|
+
export declare class CustomerNotification {
|
|
6
|
+
readonly id: string;
|
|
7
|
+
readonly name: string | null;
|
|
8
|
+
readonly email: string;
|
|
9
|
+
readonly marketingConsent: boolean;
|
|
10
|
+
readonly status: Status;
|
|
11
|
+
readonly customData: CustomData | null;
|
|
12
|
+
readonly locale: string;
|
|
13
|
+
readonly createdAt: string;
|
|
14
|
+
readonly updatedAt: string;
|
|
15
|
+
readonly importMeta: ImportMetaNotification | null;
|
|
16
|
+
constructor(customer: ICustomerNotificationResponse);
|
|
17
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CustomerNotification = void 0;
|
|
4
|
+
const index_1 = require("../index");
|
|
5
|
+
class CustomerNotification {
|
|
6
|
+
constructor(customer) {
|
|
7
|
+
this.id = customer.id;
|
|
8
|
+
this.name = customer.name ? customer.name : null;
|
|
9
|
+
this.email = customer.email;
|
|
10
|
+
this.marketingConsent = customer.marketing_consent;
|
|
11
|
+
this.status = customer.status;
|
|
12
|
+
this.customData = customer.custom_data ? customer.custom_data : null;
|
|
13
|
+
this.locale = customer.locale;
|
|
14
|
+
this.createdAt = customer.created_at;
|
|
15
|
+
this.updatedAt = customer.updated_at;
|
|
16
|
+
this.importMeta = customer.import_meta ? new index_1.ImportMetaNotification(customer.import_meta) : null;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
exports.CustomerNotification = CustomerNotification;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './customer-notification';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./customer-notification"), exports);
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { type CurrencyCode, type DiscountStatus, type DiscountType } from '../../../enums';
|
|
2
|
+
import { type IDiscountNotificationResponse } from '../../types';
|
|
3
|
+
import { ImportMetaNotification } from '../index';
|
|
4
|
+
import { type CustomData } from '../../../entities';
|
|
5
|
+
export declare class DiscountNotification {
|
|
6
|
+
readonly id: string;
|
|
7
|
+
readonly status: DiscountStatus;
|
|
8
|
+
readonly description: string;
|
|
9
|
+
readonly enabledForCheckout: boolean;
|
|
10
|
+
readonly code: string | null;
|
|
11
|
+
readonly type: DiscountType;
|
|
12
|
+
readonly amount: string;
|
|
13
|
+
readonly currencyCode: CurrencyCode | null;
|
|
14
|
+
readonly recur: boolean;
|
|
15
|
+
readonly maximumRecurringIntervals: number | null;
|
|
16
|
+
readonly usageLimit: number | null;
|
|
17
|
+
readonly restrictTo: string[] | null;
|
|
18
|
+
readonly expiresAt: string | null;
|
|
19
|
+
readonly customData: CustomData | null;
|
|
20
|
+
readonly timesUsed: number | null;
|
|
21
|
+
readonly createdAt: string;
|
|
22
|
+
readonly updatedAt: string;
|
|
23
|
+
readonly importMeta: ImportMetaNotification | null;
|
|
24
|
+
constructor(discount: IDiscountNotificationResponse);
|
|
25
|
+
}
|