@paddle/paddle-node-sdk 0.4.0 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +25 -0
- package/dist/entities/price/index.d.ts +0 -1
- package/dist/entities/price/index.js +0 -1
- package/dist/entities/price/price-collection.d.ts +3 -3
- package/dist/entities/price/price-collection.js +2 -2
- package/dist/entities/price/price.d.ts +9 -8
- package/dist/entities/price/price.js +5 -7
- package/dist/entities/pricing-preview/pricing-preview.d.ts +1 -2
- package/dist/entities/product/index.d.ts +0 -1
- package/dist/entities/product/index.js +0 -1
- package/dist/entities/product/product-collection.d.ts +3 -3
- package/dist/entities/product/product-collection.js +2 -2
- package/dist/entities/product/product.d.ts +5 -4
- package/dist/entities/product/product.js +1 -0
- package/dist/entities/subscription/index.d.ts +0 -3
- package/dist/entities/subscription/index.js +0 -3
- package/dist/entities/subscription/subscription-item.d.ts +2 -2
- package/dist/entities/subscription/subscription-item.js +1 -1
- package/dist/entities/subscription/subscription.d.ts +3 -1
- package/dist/entities/subscription/subscription.js +4 -0
- package/dist/entities/transaction/index.d.ts +0 -1
- package/dist/entities/transaction/index.js +0 -1
- package/dist/entities/transaction/transaction-collection.d.ts +3 -3
- package/dist/entities/transaction/transaction-collection.js +2 -2
- package/dist/entities/transaction/transaction-item-preview.d.ts +2 -2
- package/dist/entities/transaction/transaction-item-preview.js +1 -1
- package/dist/entities/transaction/transaction-preview.d.ts +1 -2
- package/dist/entities/transaction/transaction.d.ts +9 -2
- package/dist/entities/transaction/transaction.js +12 -0
- package/dist/enums/shared/index.d.ts +1 -0
- package/dist/enums/shared/index.js +1 -0
- package/dist/notifications/entities/address/address-notification.d.ts +19 -0
- package/dist/notifications/entities/address/address-notification.js +22 -0
- package/dist/notifications/entities/address/index.d.ts +1 -0
- package/dist/notifications/entities/address/index.js +17 -0
- package/dist/notifications/entities/adjustment/adjustment-item-notification.d.ts +12 -0
- package/dist/notifications/entities/adjustment/adjustment-item-notification.js +15 -0
- package/dist/notifications/entities/adjustment/adjustment-item-totals-notification.d.ts +7 -0
- package/dist/notifications/entities/adjustment/adjustment-item-totals-notification.js +11 -0
- package/dist/notifications/entities/adjustment/adjustment-notification.d.ts +20 -0
- package/dist/notifications/entities/adjustment/adjustment-notification.js +25 -0
- package/dist/notifications/entities/adjustment/adjustment-proration-notification.d.ts +7 -0
- package/dist/notifications/entities/adjustment/adjustment-proration-notification.js +13 -0
- package/dist/notifications/entities/adjustment/adjustment-time-period-notification.d.ts +6 -0
- package/dist/notifications/entities/adjustment/adjustment-time-period-notification.js +10 -0
- package/dist/notifications/entities/adjustment/index.d.ts +5 -0
- package/dist/notifications/entities/adjustment/index.js +21 -0
- package/dist/notifications/entities/business/business-notification.d.ts +17 -0
- package/dist/notifications/entities/business/business-notification.js +19 -0
- package/dist/notifications/entities/business/contacts-notification.d.ts +6 -0
- package/dist/notifications/entities/business/contacts-notification.js +10 -0
- package/dist/notifications/entities/business/index.d.ts +2 -0
- package/dist/notifications/entities/business/index.js +18 -0
- package/dist/notifications/entities/customer/customer-notification.d.ts +17 -0
- package/dist/notifications/entities/customer/customer-notification.js +19 -0
- package/dist/notifications/entities/customer/index.d.ts +1 -0
- package/dist/notifications/entities/customer/index.js +17 -0
- package/dist/notifications/entities/discount/discount-notification.d.ts +25 -0
- package/dist/notifications/entities/discount/discount-notification.js +28 -0
- package/dist/notifications/entities/discount/index.d.ts +1 -0
- package/dist/notifications/entities/discount/index.js +17 -0
- package/dist/notifications/entities/index.d.ts +12 -0
- package/dist/notifications/entities/index.js +28 -0
- package/dist/notifications/entities/payout/index.d.ts +1 -0
- package/dist/notifications/entities/payout/index.js +17 -0
- package/dist/notifications/entities/payout/payout-notification.d.ts +9 -0
- package/dist/notifications/entities/payout/payout-notification.js +12 -0
- package/dist/notifications/entities/price/index.d.ts +2 -0
- package/dist/notifications/entities/price/index.js +18 -0
- package/dist/notifications/entities/price/price-notification.d.ts +21 -0
- package/dist/{entities/price/price-with-includes.js → notifications/entities/price/price-notification.js} +10 -12
- package/dist/notifications/entities/price/price-quantity-notification.d.ts +6 -0
- package/dist/notifications/entities/price/price-quantity-notification.js +10 -0
- package/dist/notifications/entities/product/index.d.ts +1 -0
- package/dist/notifications/entities/product/index.js +17 -0
- package/dist/notifications/entities/product/product-notification.d.ts +17 -0
- package/dist/{entities/product/product-with-includes.js → notifications/entities/product/product-notification.js} +4 -5
- package/dist/notifications/entities/report/index.d.ts +2 -0
- package/dist/notifications/entities/report/index.js +18 -0
- package/dist/notifications/entities/report/report-filters-notification.d.ts +8 -0
- package/dist/notifications/entities/report/report-filters-notification.js +12 -0
- package/dist/notifications/entities/report/report-notification.d.ts +13 -0
- package/dist/notifications/entities/report/report-notification.js +17 -0
- package/dist/notifications/entities/shared/adjustment-original-amount-notification.d.ts +7 -0
- package/dist/notifications/entities/shared/adjustment-original-amount-notification.js +10 -0
- package/dist/notifications/entities/shared/billing-details-notification.d.ts +9 -0
- package/dist/notifications/entities/shared/billing-details-notification.js +14 -0
- package/dist/notifications/entities/shared/chargeback-fee-notification.d.ts +7 -0
- package/dist/notifications/entities/shared/chargeback-fee-notification.js +11 -0
- package/dist/notifications/entities/shared/import-meta-notification.d.ts +6 -0
- package/dist/notifications/entities/shared/import-meta-notification.js +10 -0
- package/dist/notifications/entities/shared/index.d.ts +20 -0
- package/dist/notifications/entities/shared/index.js +36 -0
- package/dist/notifications/entities/shared/money-notification.d.ts +7 -0
- package/dist/notifications/entities/shared/money-notification.js +10 -0
- package/dist/notifications/entities/shared/payment-card-notification.d.ts +10 -0
- package/dist/notifications/entities/shared/payment-card-notification.js +13 -0
- package/dist/notifications/entities/shared/payment-method-details-notification.d.ts +8 -0
- package/dist/notifications/entities/shared/payment-method-details-notification.js +11 -0
- package/dist/notifications/entities/shared/payout-totals-adjustment-notification.d.ts +13 -0
- package/dist/notifications/entities/shared/payout-totals-adjustment-notification.js +18 -0
- package/dist/notifications/entities/shared/tax-rates-used-notification.d.ts +7 -0
- package/dist/notifications/entities/shared/tax-rates-used-notification.js +11 -0
- package/dist/notifications/entities/shared/time-period-notification.d.ts +7 -0
- package/dist/notifications/entities/shared/time-period-notification.js +10 -0
- package/dist/notifications/entities/shared/total-adjustments-notification.d.ts +11 -0
- package/dist/notifications/entities/shared/total-adjustments-notification.js +14 -0
- package/dist/notifications/entities/shared/totals-notification.d.ts +8 -0
- package/dist/notifications/entities/shared/totals-notification.js +12 -0
- package/dist/notifications/entities/shared/transaction-checkout-notification.d.ts +5 -0
- package/dist/notifications/entities/shared/transaction-checkout-notification.js +9 -0
- package/dist/notifications/entities/shared/transaction-payment-attempt-notification.d.ts +15 -0
- package/dist/notifications/entities/shared/transaction-payment-attempt-notification.js +21 -0
- package/dist/notifications/entities/shared/transaction-payout-totals-adjusted-notification.d.ts +13 -0
- package/dist/notifications/entities/shared/transaction-payout-totals-adjusted-notification.js +18 -0
- package/dist/notifications/entities/shared/transaction-payout-totals-notification.d.ts +16 -0
- package/dist/notifications/entities/shared/transaction-payout-totals-notification.js +19 -0
- package/dist/notifications/entities/shared/transaction-totals-adjusted-notification.d.ts +12 -0
- package/dist/notifications/entities/shared/transaction-totals-adjusted-notification.js +15 -0
- package/dist/notifications/entities/shared/transaction-totals-notification.d.ts +16 -0
- package/dist/notifications/entities/shared/transaction-totals-notification.js +19 -0
- package/dist/notifications/entities/shared/unit-price-override-notification.d.ts +8 -0
- package/dist/notifications/entities/shared/unit-price-override-notification.js +11 -0
- package/dist/notifications/entities/shared/unit-totals-notification.d.ts +8 -0
- package/dist/notifications/entities/shared/unit-totals-notification.js +12 -0
- package/dist/notifications/entities/subscription/index.d.ts +6 -0
- package/dist/notifications/entities/subscription/index.js +22 -0
- package/dist/notifications/entities/subscription/subscription-discount-notification.d.ts +7 -0
- package/dist/notifications/entities/subscription/subscription-discount-notification.js +12 -0
- package/dist/notifications/entities/subscription/subscription-item-notification.d.ts +15 -0
- package/dist/notifications/entities/subscription/subscription-item-notification.js +20 -0
- package/dist/{entities → notifications/entities}/subscription/subscription-notification.d.ts +10 -9
- package/dist/{entities → notifications/entities}/subscription/subscription-notification.js +9 -7
- package/dist/notifications/entities/subscription/subscription-price-notification.d.ts +21 -0
- package/dist/notifications/entities/subscription/subscription-price-notification.js +27 -0
- package/dist/notifications/entities/subscription/subscription-scheduled-change-notification.d.ts +8 -0
- package/dist/notifications/entities/subscription/subscription-scheduled-change-notification.js +11 -0
- package/dist/notifications/entities/subscription/subscription-time-period-notification.d.ts +6 -0
- package/dist/notifications/entities/subscription/subscription-time-period-notification.js +10 -0
- package/dist/notifications/entities/transaction/index.d.ts +6 -0
- package/dist/notifications/entities/transaction/index.js +22 -0
- package/dist/notifications/entities/transaction/transaction-details-notification.d.ts +11 -0
- package/dist/notifications/entities/transaction/transaction-details-notification.js +21 -0
- package/dist/notifications/entities/transaction/transaction-item-notification.d.ts +8 -0
- package/dist/notifications/entities/transaction/transaction-item-notification.js +12 -0
- package/dist/notifications/entities/transaction/transaction-line-item-notification.d.ts +13 -0
- package/dist/notifications/entities/transaction/transaction-line-item-notification.js +21 -0
- package/dist/notifications/entities/transaction/transaction-notification.d.ts +29 -0
- package/dist/{entities/transaction/transaction-includes.js → notifications/entities/transaction/transaction-notification.js} +13 -21
- package/dist/notifications/entities/transaction/transaction-proration-notification.d.ts +7 -0
- package/dist/notifications/entities/transaction/transaction-proration-notification.js +13 -0
- package/dist/notifications/entities/transaction/transactions-time-period-notification.d.ts +6 -0
- package/dist/notifications/entities/transaction/transactions-time-period-notification.js +10 -0
- package/dist/notifications/events/address/address-created-event.d.ts +5 -4
- package/dist/notifications/events/address/address-created-event.js +2 -2
- package/dist/notifications/events/address/address-imported-event.d.ts +5 -4
- package/dist/notifications/events/address/address-imported-event.js +2 -2
- package/dist/notifications/events/address/address-updated-event.d.ts +5 -4
- package/dist/notifications/events/address/address-updated-event.js +2 -2
- package/dist/notifications/events/adjustment/adjustment-created-event.d.ts +5 -4
- package/dist/notifications/events/adjustment/adjustment-created-event.js +2 -2
- package/dist/notifications/events/adjustment/adjustment-updated-event.d.ts +5 -4
- package/dist/notifications/events/adjustment/adjustment-updated-event.js +2 -2
- package/dist/notifications/events/business/business-created-event.d.ts +5 -4
- package/dist/notifications/events/business/business-created-event.js +2 -2
- package/dist/notifications/events/business/business-imported-event.d.ts +5 -4
- package/dist/notifications/events/business/business-imported-event.js +2 -2
- package/dist/notifications/events/business/business-updated-event.d.ts +5 -4
- package/dist/notifications/events/business/business-updated-event.js +2 -2
- package/dist/notifications/events/customer/customer-created-event.d.ts +5 -4
- package/dist/notifications/events/customer/customer-created-event.js +2 -2
- package/dist/notifications/events/customer/customer-imported-event.d.ts +5 -4
- package/dist/notifications/events/customer/customer-imported-event.js +2 -2
- package/dist/notifications/events/customer/customer-updated-event.d.ts +5 -4
- package/dist/notifications/events/customer/customer-updated-event.js +2 -2
- package/dist/notifications/events/discount/discount-created-event.d.ts +5 -4
- package/dist/notifications/events/discount/discount-created-event.js +2 -2
- package/dist/notifications/events/discount/discount-imported-event.d.ts +5 -4
- package/dist/notifications/events/discount/discount-imported-event.js +2 -2
- package/dist/notifications/events/discount/discount-updated-event.d.ts +5 -4
- package/dist/notifications/events/discount/discount-updated-event.js +2 -2
- package/dist/notifications/events/payout/payout-created-event.d.ts +5 -4
- package/dist/notifications/events/payout/payout-created-event.js +2 -2
- package/dist/notifications/events/payout/payout-paid-event.d.ts +5 -4
- package/dist/notifications/events/payout/payout-paid-event.js +2 -2
- package/dist/notifications/events/price/price-created-event.d.ts +5 -4
- package/dist/notifications/events/price/price-created-event.js +2 -2
- package/dist/notifications/events/price/price-imported-event.d.ts +5 -4
- package/dist/notifications/events/price/price-imported-event.js +2 -2
- package/dist/notifications/events/price/price-updated-event.d.ts +5 -4
- package/dist/notifications/events/price/price-updated-event.js +2 -2
- package/dist/notifications/events/product/product-created-event.d.ts +5 -4
- package/dist/notifications/events/product/product-created-event.js +2 -2
- package/dist/notifications/events/product/product-imported-event.d.ts +5 -4
- package/dist/notifications/events/product/product-imported-event.js +2 -2
- package/dist/notifications/events/product/product-updated-event.d.ts +5 -4
- package/dist/notifications/events/product/product-updated-event.js +2 -2
- package/dist/notifications/events/report/report-created-event.d.ts +5 -4
- package/dist/notifications/events/report/report-created-event.js +2 -2
- package/dist/notifications/events/report/report-updated-event.d.ts +5 -4
- package/dist/notifications/events/report/report-updated-event.js +2 -2
- package/dist/notifications/events/subscription/subscription-activated-event.d.ts +3 -2
- package/dist/notifications/events/subscription/subscription-activated-event.js +1 -1
- package/dist/notifications/events/subscription/subscription-canceled-event.d.ts +3 -2
- package/dist/notifications/events/subscription/subscription-canceled-event.js +1 -1
- package/dist/notifications/events/subscription/subscription-created-event.d.ts +3 -2
- package/dist/notifications/events/subscription/subscription-created-event.js +1 -1
- package/dist/notifications/events/subscription/subscription-imported-event.d.ts +3 -2
- package/dist/notifications/events/subscription/subscription-imported-event.js +1 -1
- package/dist/notifications/events/subscription/subscription-past-due-event.d.ts +3 -2
- package/dist/notifications/events/subscription/subscription-past-due-event.js +1 -1
- package/dist/notifications/events/subscription/subscription-paused-event.d.ts +3 -2
- package/dist/notifications/events/subscription/subscription-paused-event.js +1 -1
- package/dist/notifications/events/subscription/subscription-resumed-event.d.ts +3 -2
- package/dist/notifications/events/subscription/subscription-resumed-event.js +1 -1
- package/dist/notifications/events/subscription/subscription-trialing-event.d.ts +3 -2
- package/dist/notifications/events/subscription/subscription-trialing-event.js +1 -1
- package/dist/notifications/events/subscription/subscription-updated-event.d.ts +3 -2
- package/dist/notifications/events/subscription/subscription-updated-event.js +1 -1
- package/dist/notifications/events/transaction/transaction-billed-event.d.ts +5 -4
- package/dist/notifications/events/transaction/transaction-billed-event.js +2 -2
- package/dist/notifications/events/transaction/transaction-canceled-event.d.ts +5 -4
- package/dist/notifications/events/transaction/transaction-canceled-event.js +2 -2
- package/dist/notifications/events/transaction/transaction-completed-event.d.ts +5 -4
- package/dist/notifications/events/transaction/transaction-completed-event.js +2 -2
- package/dist/notifications/events/transaction/transaction-created-event.d.ts +5 -4
- package/dist/notifications/events/transaction/transaction-created-event.js +2 -2
- package/dist/notifications/events/transaction/transaction-paid-event.d.ts +5 -4
- package/dist/notifications/events/transaction/transaction-paid-event.js +2 -2
- package/dist/notifications/events/transaction/transaction-past-due-event.d.ts +5 -4
- package/dist/notifications/events/transaction/transaction-past-due-event.js +2 -2
- package/dist/notifications/events/transaction/transaction-payment-failed-event.d.ts +5 -4
- package/dist/notifications/events/transaction/transaction-payment-failed-event.js +2 -2
- package/dist/notifications/events/transaction/transaction-ready-event.d.ts +5 -4
- package/dist/notifications/events/transaction/transaction-ready-event.js +2 -2
- package/dist/notifications/events/transaction/transaction-updated-event.d.ts +5 -4
- package/dist/notifications/events/transaction/transaction-updated-event.js +2 -2
- package/dist/notifications/index.d.ts +2 -0
- package/dist/notifications/index.js +2 -0
- package/dist/notifications/types/address/address-notification-response.d.ts +17 -0
- package/dist/notifications/types/address/index.d.ts +1 -0
- package/dist/notifications/types/address/index.js +17 -0
- package/dist/notifications/types/adjustment/adjustment-item-notification-response.d.ts +10 -0
- package/dist/notifications/types/adjustment/adjustment-notification-response.d.ts +18 -0
- package/dist/notifications/types/adjustment/adjustment-notification-response.js +2 -0
- package/dist/notifications/types/adjustment/adjustment-totals-breakdown-notification.d.ts +5 -0
- package/dist/notifications/types/adjustment/adjustment-totals-breakdown-notification.js +2 -0
- package/dist/notifications/types/adjustment/adjustment-totals-notification-response.d.ts +11 -0
- package/dist/notifications/types/adjustment/adjustment-totals-notification-response.js +2 -0
- package/dist/notifications/types/adjustment/adjustments-proration-notification-response.d.ts +5 -0
- package/dist/notifications/types/adjustment/adjustments-proration-notification-response.js +2 -0
- package/dist/notifications/types/adjustment/adjustments-time-period-notification-response.d.ts +4 -0
- package/dist/notifications/types/adjustment/adjustments-time-period-notification-response.js +2 -0
- package/dist/notifications/types/adjustment/index.d.ts +6 -0
- package/dist/notifications/types/adjustment/index.js +22 -0
- package/dist/notifications/types/business/business-notification-response.d.ts +15 -0
- package/dist/notifications/types/business/business-notification-response.js +2 -0
- package/dist/notifications/types/business/businesses-contacts-notification.d.ts +4 -0
- package/dist/notifications/types/business/businesses-contacts-notification.js +2 -0
- package/dist/notifications/types/business/index.d.ts +2 -0
- package/dist/notifications/types/business/index.js +18 -0
- package/dist/notifications/types/customer/customer-notification-response.d.ts +15 -0
- package/dist/notifications/types/customer/customer-notification-response.js +2 -0
- package/dist/notifications/types/customer/index.d.ts +1 -0
- package/dist/notifications/types/customer/index.js +17 -0
- package/dist/notifications/types/discount/discount-notification-response.d.ts +23 -0
- package/dist/notifications/types/discount/discount-notification-response.js +2 -0
- package/dist/notifications/types/discount/index.d.ts +1 -0
- package/dist/notifications/types/discount/index.js +17 -0
- package/dist/notifications/types/index.d.ts +12 -0
- package/dist/notifications/types/index.js +28 -0
- package/dist/notifications/types/payout/index.d.ts +1 -0
- package/dist/notifications/types/payout/index.js +17 -0
- package/dist/notifications/types/payout/payout-notification-response.d.ts +7 -0
- package/dist/notifications/types/payout/payout-notification-response.js +2 -0
- package/dist/notifications/types/price/index.d.ts +2 -0
- package/dist/notifications/types/price/index.js +18 -0
- package/dist/notifications/types/price/price-notification-response.d.ts +20 -0
- package/dist/notifications/types/price/price-notification-response.js +2 -0
- package/dist/notifications/types/price/price-quantity-notification.d.ts +4 -0
- package/dist/notifications/types/price/price-quantity-notification.js +2 -0
- package/dist/notifications/types/product/index.d.ts +1 -0
- package/dist/notifications/types/product/index.js +17 -0
- package/dist/notifications/types/product/product-notification-response.d.ts +16 -0
- package/dist/notifications/types/product/product-notification-response.js +2 -0
- package/dist/notifications/types/report/index.d.ts +2 -0
- package/dist/notifications/types/report/index.js +18 -0
- package/dist/notifications/types/report/report-filters-notification-response.d.ts +6 -0
- package/dist/notifications/types/report/report-filters-notification-response.js +2 -0
- package/dist/notifications/types/report/report-notification-response.d.ts +11 -0
- package/dist/notifications/types/report/report-notification-response.js +2 -0
- package/dist/notifications/types/shared/adjustment-original-amount-notification-response.d.ts +5 -0
- package/dist/notifications/types/shared/adjustment-original-amount-notification-response.js +2 -0
- package/dist/notifications/types/shared/billing-details-notification-response.d.ts +7 -0
- package/dist/notifications/types/shared/billing-details-notification-response.js +2 -0
- package/dist/notifications/types/shared/chargeback-fee.d.ts +5 -0
- package/dist/notifications/types/shared/chargeback-fee.js +2 -0
- package/dist/notifications/types/shared/import-meta-notification-response.d.ts +4 -0
- package/dist/notifications/types/shared/import-meta-notification-response.js +2 -0
- package/dist/notifications/types/shared/index.d.ts +22 -0
- package/dist/notifications/types/shared/index.js +38 -0
- package/dist/notifications/types/shared/money-notification-response.d.ts +5 -0
- package/dist/notifications/types/shared/money-notification-response.js +2 -0
- package/dist/notifications/types/shared/payment-card-notification-response.d.ts +8 -0
- package/dist/notifications/types/shared/payment-card-notification-response.js +2 -0
- package/dist/notifications/types/shared/payment-method-details.d.ts +6 -0
- package/dist/notifications/types/shared/payment-method-details.js +2 -0
- package/dist/notifications/types/shared/payout-totals-adjustment-notification-response.d.ts +11 -0
- package/dist/notifications/types/shared/payout-totals-adjustment-notification-response.js +2 -0
- package/dist/notifications/types/shared/shared-price-notification-response.d.ts +19 -0
- package/dist/notifications/types/shared/shared-price-notification-response.js +2 -0
- package/dist/notifications/types/shared/shared-product-notification-response.d.ts +15 -0
- package/dist/notifications/types/shared/shared-product-notification-response.js +2 -0
- package/dist/notifications/types/shared/tax-rates-used-notification-response.d.ts +5 -0
- package/dist/notifications/types/shared/tax-rates-used-notification-response.js +2 -0
- package/dist/notifications/types/shared/time-period-notification.d.ts +5 -0
- package/dist/notifications/types/shared/time-period-notification.js +2 -0
- package/dist/notifications/types/shared/total-adjustments-notification-response.d.ts +9 -0
- package/dist/notifications/types/shared/total-adjustments-notification-response.js +2 -0
- package/dist/notifications/types/shared/totals.d.ts +6 -0
- package/dist/notifications/types/shared/totals.js +2 -0
- package/dist/notifications/types/shared/transaction-checkout-notification.d.ts +3 -0
- package/dist/notifications/types/shared/transaction-checkout-notification.js +2 -0
- package/dist/notifications/types/shared/transaction-payment-attempt-notification-response.d.ts +13 -0
- package/dist/notifications/types/shared/transaction-payment-attempt-notification-response.js +2 -0
- package/dist/notifications/types/shared/transaction-payout-totals-adjusted-notification-response.d.ts +11 -0
- package/dist/notifications/types/shared/transaction-payout-totals-adjusted-notification-response.js +2 -0
- package/dist/notifications/types/shared/transaction-payout-totals-notification-response.d.ts +14 -0
- package/dist/notifications/types/shared/transaction-payout-totals-notification-response.js +2 -0
- package/dist/notifications/types/shared/transaction-totals-adjusted-notification-response.d.ts +10 -0
- package/dist/notifications/types/shared/transaction-totals-adjusted-notification-response.js +2 -0
- package/dist/notifications/types/shared/transaction-totals-notification-response.d.ts +14 -0
- package/dist/notifications/types/shared/transaction-totals-notification-response.js +2 -0
- package/dist/notifications/types/shared/unit-price-override-notification-response.d.ts +6 -0
- package/dist/notifications/types/shared/unit-price-override-notification-response.js +2 -0
- package/dist/notifications/types/shared/unit-totals.d.ts +6 -0
- package/dist/notifications/types/shared/unit-totals.js +2 -0
- package/dist/notifications/types/subscription/index.d.ts +7 -0
- package/dist/notifications/types/subscription/index.js +23 -0
- package/dist/notifications/types/subscription/subscription-discount-notification-response.d.ts +5 -0
- package/dist/notifications/types/subscription/subscription-discount-notification-response.js +2 -0
- package/dist/notifications/types/subscription/subscription-item-notification-response.d.ts +13 -0
- package/dist/notifications/types/subscription/subscription-item-notification-response.js +2 -0
- package/dist/notifications/types/subscription/subscription-notification-response.d.ts +28 -0
- package/dist/notifications/types/subscription/subscription-notification-response.js +2 -0
- package/dist/notifications/types/subscription/subscription-price-notification-response.d.ts +20 -0
- package/dist/notifications/types/subscription/subscription-price-notification-response.js +2 -0
- package/dist/notifications/types/subscription/subscription-scheduled-change-notification-response.d.ts +6 -0
- package/dist/notifications/types/subscription/subscription-scheduled-change-notification-response.js +2 -0
- package/dist/notifications/types/subscription/subscription-time-period-notification-response.d.ts +4 -0
- package/dist/notifications/types/subscription/subscription-time-period-notification-response.js +2 -0
- package/dist/notifications/types/transaction/index.d.ts +6 -0
- package/dist/notifications/types/transaction/index.js +22 -0
- package/dist/notifications/types/transaction/transaction-details-notification-response.d.ts +9 -0
- package/dist/notifications/types/transaction/transaction-details-notification-response.js +2 -0
- package/dist/notifications/types/transaction/transaction-item-notification-response.d.ts +7 -0
- package/dist/notifications/types/transaction/transaction-item-notification-response.js +2 -0
- package/dist/notifications/types/transaction/transaction-line-item-notification-response.d.ts +11 -0
- package/dist/notifications/types/transaction/transaction-line-item-notification-response.js +2 -0
- package/dist/notifications/types/transaction/transaction-notification-response.d.ts +27 -0
- package/dist/notifications/types/transaction/transaction-notification-response.js +2 -0
- package/dist/notifications/types/transaction/transaction-proration-notification-response.d.ts +5 -0
- package/dist/notifications/types/transaction/transaction-proration-notification-response.js +2 -0
- package/dist/notifications/types/transaction/transactions-time-period-notification-response.d.ts +4 -0
- package/dist/notifications/types/transaction/transactions-time-period-notification-response.js +2 -0
- package/dist/resources/prices/index.d.ts +2 -2
- package/dist/resources/prices/index.js +1 -1
- package/dist/resources/products/index.d.ts +2 -2
- package/dist/resources/products/index.js +1 -1
- package/dist/resources/subscriptions/index.d.ts +3 -3
- package/dist/resources/subscriptions/index.js +2 -2
- package/dist/resources/transactions/index.d.ts +5 -5
- package/dist/resources/transactions/index.js +3 -3
- package/dist/types/events/events-response.d.ts +34 -45
- package/dist/types/price/price-response.d.ts +1 -1
- package/dist/types/pricing-preview/pricing-preview-response.d.ts +1 -2
- package/dist/types/shared/shared-price-response.d.ts +4 -4
- package/dist/types/subscription/index.d.ts +0 -2
- package/dist/types/subscription/index.js +0 -2
- package/dist/types/subscription/subscription-item-response.d.ts +2 -2
- package/dist/types/transaction/transaction-preview-response.d.ts +1 -2
- package/dist/types/transaction/transaction-response.d.ts +1 -2
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/dist/entities/price/price-with-includes.d.ts +0 -21
- package/dist/entities/product/product-with-includes.d.ts +0 -17
- package/dist/entities/subscription/subscription-includes.d.ts +0 -31
- package/dist/entities/subscription/subscription-includes.js +0 -42
- package/dist/entities/subscription/subscription-price.d.ts +0 -13
- package/dist/entities/subscription/subscription-price.js +0 -16
- package/dist/entities/transaction/transaction-includes.d.ts +0 -36
- package/dist/types/subscription/subscription-notification-response.d.ts +0 -29
- package/dist/types/subscription/subscription-price-response.d.ts +0 -11
- /package/dist/{types/subscription/subscription-notification-response.js → notifications/types/address/address-notification-response.js} +0 -0
- /package/dist/{types/subscription/subscription-price-response.js → notifications/types/adjustment/adjustment-item-notification-response.js} +0 -0
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type IChargebackFeeNotification } from '../index';
|
|
2
|
+
import { type PayoutCurrencyCode } from '../../../enums';
|
|
3
|
+
export interface IPayoutTotalsAdjustmentNotificationResponse {
|
|
4
|
+
subtotal: string;
|
|
5
|
+
tax: string;
|
|
6
|
+
total: string;
|
|
7
|
+
fee: string;
|
|
8
|
+
chargeback_fee?: IChargebackFeeNotification | null;
|
|
9
|
+
earnings: string;
|
|
10
|
+
currency_code: PayoutCurrencyCode;
|
|
11
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { type ITimePeriodNotification, type IMoneyNotificationResponse, type IUnitPriceOverrideNotificationResponse, type IPriceQuantityNotification, type IImportMetaNotificationResponse } from '../index';
|
|
2
|
+
import { type TaxMode, type Status, type CatalogType } from '../../../enums';
|
|
3
|
+
import { type ICustomData } from '../../../types';
|
|
4
|
+
export interface ISharedPriceNotificationResponse {
|
|
5
|
+
id: string;
|
|
6
|
+
product_id: string;
|
|
7
|
+
description: string;
|
|
8
|
+
type: CatalogType;
|
|
9
|
+
name?: string | null;
|
|
10
|
+
billing_cycle?: ITimePeriodNotification | null;
|
|
11
|
+
trial_period?: ITimePeriodNotification | null;
|
|
12
|
+
tax_mode: TaxMode;
|
|
13
|
+
unit_price?: IMoneyNotificationResponse | null;
|
|
14
|
+
unit_price_overrides?: IUnitPriceOverrideNotificationResponse[] | null;
|
|
15
|
+
quantity?: IPriceQuantityNotification | null;
|
|
16
|
+
status: Status;
|
|
17
|
+
custom_data?: ICustomData | null;
|
|
18
|
+
import_meta?: IImportMetaNotificationResponse | null;
|
|
19
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { type IImportMetaNotificationResponse } from '../index';
|
|
2
|
+
import { type TaxCategory, type Status, type CatalogType } from '../../../enums';
|
|
3
|
+
import { type ICustomData } from '../../../types';
|
|
4
|
+
export interface ISharedProductNotificationResponse {
|
|
5
|
+
id: string;
|
|
6
|
+
name: string;
|
|
7
|
+
type?: CatalogType | null;
|
|
8
|
+
description?: string | null;
|
|
9
|
+
tax_category: TaxCategory;
|
|
10
|
+
image_url?: string | null;
|
|
11
|
+
custom_data?: ICustomData | null;
|
|
12
|
+
status: Status;
|
|
13
|
+
created_at: string;
|
|
14
|
+
import_meta?: IImportMetaNotificationResponse | null;
|
|
15
|
+
}
|
package/dist/notifications/types/shared/transaction-payment-attempt-notification-response.d.ts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { type IPaymentMethodDetailsNotification } from '../index';
|
|
2
|
+
import { type PaymentAttemptStatus, type ErrorCode } from '../../../enums';
|
|
3
|
+
export interface ITransactionPaymentAttemptNotificationResponse {
|
|
4
|
+
payment_attempt_id: string;
|
|
5
|
+
stored_payment_method_id: string;
|
|
6
|
+
payment_method_id?: string | null;
|
|
7
|
+
amount: string;
|
|
8
|
+
status: PaymentAttemptStatus;
|
|
9
|
+
error_code?: ErrorCode | null;
|
|
10
|
+
method_details?: IPaymentMethodDetailsNotification | null;
|
|
11
|
+
created_at: string;
|
|
12
|
+
captured_at?: string | null;
|
|
13
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type IChargebackFeeNotification } from '../index';
|
|
2
|
+
import { type PayoutCurrencyCode } from '../../../enums';
|
|
3
|
+
export interface ITransactionPayoutTotalsAdjustedNotificationResponse {
|
|
4
|
+
subtotal: string;
|
|
5
|
+
tax: string;
|
|
6
|
+
total: string;
|
|
7
|
+
fee: string;
|
|
8
|
+
chargeback_fee?: IChargebackFeeNotification | null;
|
|
9
|
+
earnings: string;
|
|
10
|
+
currency_code: PayoutCurrencyCode;
|
|
11
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { type PayoutCurrencyCode } from '../../../enums';
|
|
2
|
+
export interface ITransactionPayoutTotalsNotificationResponse {
|
|
3
|
+
subtotal: string;
|
|
4
|
+
discount: string;
|
|
5
|
+
tax: string;
|
|
6
|
+
total: string;
|
|
7
|
+
credit: string;
|
|
8
|
+
balance: string;
|
|
9
|
+
grand_total: string;
|
|
10
|
+
credit_to_balance: string;
|
|
11
|
+
fee: string;
|
|
12
|
+
earnings: string;
|
|
13
|
+
currency_code: PayoutCurrencyCode;
|
|
14
|
+
}
|
package/dist/notifications/types/shared/transaction-totals-adjusted-notification-response.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type CurrencyCode } from '../../../enums';
|
|
2
|
+
export interface ITransactionTotalsAdjustedNotificationResponse {
|
|
3
|
+
subtotal: string;
|
|
4
|
+
tax: string;
|
|
5
|
+
total: string;
|
|
6
|
+
grand_total: string;
|
|
7
|
+
fee?: string | null;
|
|
8
|
+
earnings?: string | null;
|
|
9
|
+
currency_code: CurrencyCode;
|
|
10
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { type CurrencyCode } from '../../../enums';
|
|
2
|
+
export interface ITransactionTotalsNotificationResponse {
|
|
3
|
+
subtotal: string;
|
|
4
|
+
discount: string;
|
|
5
|
+
tax: string;
|
|
6
|
+
total: string;
|
|
7
|
+
credit: string;
|
|
8
|
+
credit_to_balance: string;
|
|
9
|
+
balance: string;
|
|
10
|
+
grand_total: string;
|
|
11
|
+
fee?: string | null;
|
|
12
|
+
earnings?: string | null;
|
|
13
|
+
currency_code: CurrencyCode;
|
|
14
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export * from './subscription-discount-notification-response';
|
|
2
|
+
export * from './subscription-time-period-notification-response';
|
|
3
|
+
export * from './subscription-scheduled-change-notification-response';
|
|
4
|
+
export * from './subscription-price-notification-response';
|
|
5
|
+
export * from './subscription-item-notification-response';
|
|
6
|
+
export * from './subscription-discount-notification-response';
|
|
7
|
+
export * from './subscription-notification-response';
|
|
@@ -0,0 +1,23 @@
|
|
|
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-response"), exports);
|
|
18
|
+
__exportStar(require("./subscription-time-period-notification-response"), exports);
|
|
19
|
+
__exportStar(require("./subscription-scheduled-change-notification-response"), exports);
|
|
20
|
+
__exportStar(require("./subscription-price-notification-response"), exports);
|
|
21
|
+
__exportStar(require("./subscription-item-notification-response"), exports);
|
|
22
|
+
__exportStar(require("./subscription-discount-notification-response"), exports);
|
|
23
|
+
__exportStar(require("./subscription-notification-response"), exports);
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { type ISubscriptionPriceNotificationResponse, type ISubscriptionTimePeriodNotificationResponse } from '../index';
|
|
2
|
+
import { type SubscriptionItemStatus } from '../../../enums';
|
|
3
|
+
export interface ISubscriptionItemNotificationResponse {
|
|
4
|
+
status: SubscriptionItemStatus;
|
|
5
|
+
quantity: number;
|
|
6
|
+
recurring: boolean;
|
|
7
|
+
created_at: string;
|
|
8
|
+
updated_at: string;
|
|
9
|
+
previously_billed_at?: string | null;
|
|
10
|
+
next_billed_at?: string | null;
|
|
11
|
+
trial_dates?: ISubscriptionTimePeriodNotificationResponse | null;
|
|
12
|
+
price?: ISubscriptionPriceNotificationResponse | null;
|
|
13
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { type IBillingDetailsNotificationResponse, type IImportMetaNotificationResponse, type ISubscriptionDiscountNotificationResponse, type ISubscriptionItemNotificationResponse, type ISubscriptionScheduledChangeNotificationResponse, type ISubscriptionTimePeriodNotificationResponse, type ITimePeriodNotification } from '../index';
|
|
2
|
+
import { type CollectionMode, type CurrencyCode, type SubscriptionStatus } from '../../../enums';
|
|
3
|
+
import { type ICustomData } from '../../../types';
|
|
4
|
+
export interface ISubscriptionNotificationResponse {
|
|
5
|
+
id: string;
|
|
6
|
+
status: SubscriptionStatus;
|
|
7
|
+
transaction_id: string;
|
|
8
|
+
customer_id: string;
|
|
9
|
+
address_id: string;
|
|
10
|
+
business_id?: string | null;
|
|
11
|
+
currency_code: CurrencyCode;
|
|
12
|
+
created_at: string;
|
|
13
|
+
updated_at: string;
|
|
14
|
+
started_at?: string | null;
|
|
15
|
+
first_billed_at?: string | null;
|
|
16
|
+
next_billed_at?: string | null;
|
|
17
|
+
paused_at?: string | null;
|
|
18
|
+
canceled_at?: string | null;
|
|
19
|
+
discount?: ISubscriptionDiscountNotificationResponse | null;
|
|
20
|
+
collection_mode: CollectionMode;
|
|
21
|
+
billing_details?: IBillingDetailsNotificationResponse | null;
|
|
22
|
+
current_billing_period?: ISubscriptionTimePeriodNotificationResponse | null;
|
|
23
|
+
billing_cycle: ITimePeriodNotification;
|
|
24
|
+
scheduled_change?: ISubscriptionScheduledChangeNotificationResponse | null;
|
|
25
|
+
items: ISubscriptionItemNotificationResponse[];
|
|
26
|
+
custom_data?: ICustomData | null;
|
|
27
|
+
import_meta?: IImportMetaNotificationResponse | null;
|
|
28
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { type IImportMetaNotificationResponse, type IMoneyNotificationResponse, type IPriceQuantityNotification, type ISharedProductNotificationResponse, type ITimePeriodNotification, type IUnitPriceOverrideNotificationResponse } from '../index';
|
|
2
|
+
import { type CatalogType, type Status, type TaxMode } from '../../../enums';
|
|
3
|
+
import type { ICustomData } from '../../../types';
|
|
4
|
+
export interface ISubscriptionPriceNotificationResponse {
|
|
5
|
+
id: string;
|
|
6
|
+
product_id: string;
|
|
7
|
+
description: string;
|
|
8
|
+
type?: CatalogType | null;
|
|
9
|
+
name?: string | null;
|
|
10
|
+
billing_cycle?: ITimePeriodNotification | null;
|
|
11
|
+
trial_period?: ITimePeriodNotification | null;
|
|
12
|
+
tax_mode: TaxMode;
|
|
13
|
+
unit_price?: IMoneyNotificationResponse | null;
|
|
14
|
+
unit_price_overrides?: IUnitPriceOverrideNotificationResponse[] | null;
|
|
15
|
+
quantity?: IPriceQuantityNotification | null;
|
|
16
|
+
status?: Status | null;
|
|
17
|
+
custom_data?: ICustomData | null;
|
|
18
|
+
import_meta?: IImportMetaNotificationResponse | null;
|
|
19
|
+
product?: ISharedProductNotificationResponse | null;
|
|
20
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export * from './transactions-time-period-notification-response';
|
|
2
|
+
export * from './transaction-proration-notification-response';
|
|
3
|
+
export * from './transaction-item-notification-response';
|
|
4
|
+
export * from './transaction-line-item-notification-response';
|
|
5
|
+
export * from './transaction-details-notification-response';
|
|
6
|
+
export * from './transaction-notification-response';
|
|
@@ -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-response"), exports);
|
|
18
|
+
__exportStar(require("./transaction-proration-notification-response"), exports);
|
|
19
|
+
__exportStar(require("./transaction-item-notification-response"), exports);
|
|
20
|
+
__exportStar(require("./transaction-line-item-notification-response"), exports);
|
|
21
|
+
__exportStar(require("./transaction-details-notification-response"), exports);
|
|
22
|
+
__exportStar(require("./transaction-notification-response"), exports);
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type ITaxRatesUsedNotificationResponse, type ITransactionTotalsNotificationResponse, type ITransactionTotalsAdjustedNotificationResponse, type ITransactionPayoutTotalsNotificationResponse, type ITransactionPayoutTotalsAdjustedNotificationResponse, type ITransactionLineItemNotificationResponse } from '../index';
|
|
2
|
+
export interface ITransactionDetailsNotificationResponse {
|
|
3
|
+
tax_rates_used: ITaxRatesUsedNotificationResponse[];
|
|
4
|
+
totals?: ITransactionTotalsNotificationResponse | null;
|
|
5
|
+
adjusted_totals?: ITransactionTotalsAdjustedNotificationResponse | null;
|
|
6
|
+
payout_totals?: ITransactionPayoutTotalsNotificationResponse | null;
|
|
7
|
+
adjusted_payout_totals?: ITransactionPayoutTotalsAdjustedNotificationResponse | null;
|
|
8
|
+
line_items: ITransactionLineItemNotificationResponse[];
|
|
9
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type IPriceNotificationResponse, type ITransactionProrationNotificationResponse } from '../index';
|
|
2
|
+
export interface ITransactionItemNotificationResponse {
|
|
3
|
+
price_id?: string | null;
|
|
4
|
+
price?: IPriceNotificationResponse | null;
|
|
5
|
+
quantity: number;
|
|
6
|
+
proration?: ITransactionProrationNotificationResponse | null;
|
|
7
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type ITransactionProrationNotificationResponse, type IUnitTotalsNotification, type ITotalsNotification, type ISharedProductNotificationResponse } from '../index';
|
|
2
|
+
export interface ITransactionLineItemNotificationResponse {
|
|
3
|
+
id: string;
|
|
4
|
+
price_id: string;
|
|
5
|
+
quantity: number;
|
|
6
|
+
proration?: ITransactionProrationNotificationResponse | null;
|
|
7
|
+
tax_rate: string;
|
|
8
|
+
unit_totals?: IUnitTotalsNotification | null;
|
|
9
|
+
totals?: ITotalsNotification | null;
|
|
10
|
+
product?: ISharedProductNotificationResponse | null;
|
|
11
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { type IBillingDetailsNotificationResponse, type ITransactionCheckoutNotification, type ITransactionDetailsNotificationResponse, type ITransactionItemNotificationResponse, type ITransactionPaymentAttemptNotificationResponse, type ITransactionsTimePeriodNotificationResponse } from '../index';
|
|
2
|
+
import { type CollectionMode, type CurrencyCode, type TransactionOrigin, type TransactionStatus } from '../../../enums';
|
|
3
|
+
import { type ICustomData } from '../../../types';
|
|
4
|
+
export interface ITransactionNotificationResponse {
|
|
5
|
+
id: string;
|
|
6
|
+
status: TransactionStatus;
|
|
7
|
+
customer_id?: string | null;
|
|
8
|
+
address_id?: string | null;
|
|
9
|
+
business_id?: string | null;
|
|
10
|
+
custom_data?: ICustomData | null;
|
|
11
|
+
currency_code: CurrencyCode;
|
|
12
|
+
origin: TransactionOrigin;
|
|
13
|
+
subscription_id?: string | null;
|
|
14
|
+
invoice_id?: string | null;
|
|
15
|
+
invoice_number?: string | null;
|
|
16
|
+
collection_mode: CollectionMode;
|
|
17
|
+
discount_id?: string | null;
|
|
18
|
+
billing_details?: IBillingDetailsNotificationResponse | null;
|
|
19
|
+
billing_period?: ITransactionsTimePeriodNotificationResponse | null;
|
|
20
|
+
items: ITransactionItemNotificationResponse[];
|
|
21
|
+
details?: ITransactionDetailsNotificationResponse | null;
|
|
22
|
+
payments: ITransactionPaymentAttemptNotificationResponse[];
|
|
23
|
+
checkout?: ITransactionCheckoutNotification | null;
|
|
24
|
+
created_at: string;
|
|
25
|
+
updated_at: string;
|
|
26
|
+
billed_at?: string | null;
|
|
27
|
+
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { Price, PriceCollection
|
|
1
|
+
import { Price, PriceCollection } from '../../entities';
|
|
2
2
|
import { BaseResource } from '../../internal/base';
|
|
3
3
|
import { type CreatePriceRequestBody, type GetPriceQueryParameters, type ListPriceQueryParameters, type UpdatePriceRequestBody } from './operations';
|
|
4
4
|
export * from './operations';
|
|
5
5
|
export declare class PricesResource extends BaseResource {
|
|
6
6
|
list(queryParams?: ListPriceQueryParameters): PriceCollection;
|
|
7
7
|
create(createPriceParameters: CreatePriceRequestBody): Promise<Price>;
|
|
8
|
-
get(priceId: string, queryParams?: GetPriceQueryParameters): Promise<
|
|
8
|
+
get(priceId: string, queryParams?: GetPriceQueryParameters): Promise<Price>;
|
|
9
9
|
update(priceId: string, updatePrice: UpdatePriceRequestBody): Promise<Price>;
|
|
10
10
|
archive(priceId: string): Promise<Price>;
|
|
11
11
|
}
|
|
@@ -53,7 +53,7 @@ class PricesResource extends base_1.BaseResource {
|
|
|
53
53
|
}).deriveUrl();
|
|
54
54
|
const response = yield this.client.get(urlWithPathParams, queryParameters);
|
|
55
55
|
const data = this.handleResponse(response);
|
|
56
|
-
return new entities_1.
|
|
56
|
+
return new entities_1.Price(data);
|
|
57
57
|
});
|
|
58
58
|
}
|
|
59
59
|
update(priceId, updatePrice) {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { Product, ProductCollection
|
|
1
|
+
import { Product, ProductCollection } from '../../entities';
|
|
2
2
|
import { BaseResource } from '../../internal/base';
|
|
3
3
|
import { type CreateProductRequestBody, type GetProductQueryParameters, type ListProductQueryParameters, type UpdateProductRequestBody } from './operations';
|
|
4
4
|
export * from './operations';
|
|
5
5
|
export declare class ProductsResource extends BaseResource {
|
|
6
6
|
list(queryParams?: ListProductQueryParameters): ProductCollection;
|
|
7
7
|
create(createProductParameters: CreateProductRequestBody): Promise<Product>;
|
|
8
|
-
get(productId: string, queryParams?: GetProductQueryParameters): Promise<
|
|
8
|
+
get(productId: string, queryParams?: GetProductQueryParameters): Promise<Product>;
|
|
9
9
|
update(productId: string, updateProduct: UpdateProductRequestBody): Promise<Product>;
|
|
10
10
|
archive(productId: string): Promise<Product>;
|
|
11
11
|
}
|
|
@@ -53,7 +53,7 @@ class ProductsResource extends base_1.BaseResource {
|
|
|
53
53
|
}).deriveUrl();
|
|
54
54
|
const response = yield this.client.get(urlWithPathParams, queryParameters);
|
|
55
55
|
const data = this.handleResponse(response);
|
|
56
|
-
return new entities_1.
|
|
56
|
+
return new entities_1.Product(data);
|
|
57
57
|
});
|
|
58
58
|
}
|
|
59
59
|
update(productId, updateProduct) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Subscription, SubscriptionCollection,
|
|
1
|
+
import { Subscription, SubscriptionCollection, SubscriptionPreview, Transaction } from '../../entities';
|
|
2
2
|
import { BaseResource } from '../../internal/base';
|
|
3
3
|
import { type CancelSubscription, type CreateSubscriptionCharge, type GetSubscriptionQueryParameters, type ListSubscriptionQueryParameters, type PauseSubscription, type ResumeSubscription, type UpdateSubscriptionRequestBody } from './operations';
|
|
4
4
|
export * from './operations';
|
|
@@ -6,12 +6,12 @@ export declare class SubscriptionsResource extends BaseResource {
|
|
|
6
6
|
previewUpdate(subscriptionId: string, updateSubscription: UpdateSubscriptionRequestBody): Promise<SubscriptionPreview>;
|
|
7
7
|
update(subscriptionId: string, updateSubscription: UpdateSubscriptionRequestBody): Promise<Subscription>;
|
|
8
8
|
list(queryParams?: ListSubscriptionQueryParameters): SubscriptionCollection;
|
|
9
|
-
get(subscriptionId: string, queryParams?: GetSubscriptionQueryParameters): Promise<
|
|
9
|
+
get(subscriptionId: string, queryParams?: GetSubscriptionQueryParameters): Promise<Subscription>;
|
|
10
10
|
activate(subscriptionId: string): Promise<Subscription>;
|
|
11
11
|
pause(subscriptionId: string, requestBody: PauseSubscription): Promise<Subscription>;
|
|
12
12
|
resume(subscriptionId: string, requestBody: ResumeSubscription): Promise<Subscription>;
|
|
13
13
|
cancel(subscriptionId: string, requestBody: CancelSubscription): Promise<Subscription>;
|
|
14
14
|
createOneTimeCharge(subscriptionId: string, requestBody: CreateSubscriptionCharge): Promise<Subscription>;
|
|
15
15
|
previewOneTimeCharge(subscriptionId: string, requestBody: CreateSubscriptionCharge): Promise<SubscriptionPreview>;
|
|
16
|
-
getPaymentMethodChangeTransaction(subscriptionId: string): Promise<
|
|
16
|
+
getPaymentMethodChangeTransaction(subscriptionId: string): Promise<Transaction>;
|
|
17
17
|
}
|