@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,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
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DiscountNotification = void 0;
|
|
4
|
+
const index_1 = require("../index");
|
|
5
|
+
class DiscountNotification {
|
|
6
|
+
constructor(discount) {
|
|
7
|
+
var _a;
|
|
8
|
+
this.id = discount.id;
|
|
9
|
+
this.status = discount.status;
|
|
10
|
+
this.description = discount.description;
|
|
11
|
+
this.enabledForCheckout = discount.enabled_for_checkout;
|
|
12
|
+
this.code = discount.code ? discount.code : null;
|
|
13
|
+
this.type = discount.type;
|
|
14
|
+
this.amount = discount.amount;
|
|
15
|
+
this.currencyCode = discount.currency_code ? discount.currency_code : null;
|
|
16
|
+
this.recur = discount.recur;
|
|
17
|
+
this.maximumRecurringIntervals = discount.maximum_recurring_intervals ? discount.maximum_recurring_intervals : null;
|
|
18
|
+
this.usageLimit = discount.usage_limit ? discount.usage_limit : null;
|
|
19
|
+
this.restrictTo = discount.restrict_to ? discount.restrict_to : null;
|
|
20
|
+
this.expiresAt = discount.expires_at ? discount.expires_at : null;
|
|
21
|
+
this.customData = discount.custom_data ? discount.custom_data : null;
|
|
22
|
+
this.timesUsed = (_a = discount.times_used) !== null && _a !== void 0 ? _a : null;
|
|
23
|
+
this.createdAt = discount.created_at;
|
|
24
|
+
this.updatedAt = discount.updated_at;
|
|
25
|
+
this.importMeta = discount.import_meta ? new index_1.ImportMetaNotification(discount.import_meta) : null;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
exports.DiscountNotification = DiscountNotification;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './discount-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("./discount-notification"), exports);
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export * from './product';
|
|
2
|
+
export * from './price';
|
|
3
|
+
export * from './transaction';
|
|
4
|
+
export * from './adjustment';
|
|
5
|
+
export * from './customer';
|
|
6
|
+
export * from './business';
|
|
7
|
+
export * from './subscription';
|
|
8
|
+
export * from './address';
|
|
9
|
+
export * from './discount';
|
|
10
|
+
export * from './payout';
|
|
11
|
+
export * from './report';
|
|
12
|
+
export * from './shared';
|
|
@@ -0,0 +1,28 @@
|
|
|
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("./product"), exports);
|
|
18
|
+
__exportStar(require("./price"), exports);
|
|
19
|
+
__exportStar(require("./transaction"), exports);
|
|
20
|
+
__exportStar(require("./adjustment"), exports);
|
|
21
|
+
__exportStar(require("./customer"), exports);
|
|
22
|
+
__exportStar(require("./business"), exports);
|
|
23
|
+
__exportStar(require("./subscription"), exports);
|
|
24
|
+
__exportStar(require("./address"), exports);
|
|
25
|
+
__exportStar(require("./discount"), exports);
|
|
26
|
+
__exportStar(require("./payout"), exports);
|
|
27
|
+
__exportStar(require("./report"), exports);
|
|
28
|
+
__exportStar(require("./shared"), exports);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './payout-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("./payout-notification"), exports);
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type IPayoutNotificationResponse } from '../../types';
|
|
2
|
+
import { type CurrencyCode, type PayoutStatus } from '../../../enums';
|
|
3
|
+
export declare class PayoutNotification {
|
|
4
|
+
readonly id: string;
|
|
5
|
+
readonly status: PayoutStatus;
|
|
6
|
+
readonly amount: string;
|
|
7
|
+
readonly currencyCode: CurrencyCode;
|
|
8
|
+
constructor(payout: IPayoutNotificationResponse);
|
|
9
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PayoutNotification = void 0;
|
|
4
|
+
class PayoutNotification {
|
|
5
|
+
constructor(payout) {
|
|
6
|
+
this.id = payout.id;
|
|
7
|
+
this.status = payout.status;
|
|
8
|
+
this.amount = payout.amount;
|
|
9
|
+
this.currencyCode = payout.currency_code;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
exports.PayoutNotification = PayoutNotification;
|
|
@@ -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("./price-quantity-notification"), exports);
|
|
18
|
+
__exportStar(require("./price-notification"), exports);
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { type IPriceNotificationResponse } from '../../types';
|
|
2
|
+
import { ImportMetaNotification, MoneyNotification, PriceQuantityNotification, TimePeriodNotification, UnitPriceOverrideNotification } from '../index';
|
|
3
|
+
import { type CatalogType, type Status, type TaxMode } from '../../../enums';
|
|
4
|
+
import { type ICustomData } from '../../../types';
|
|
5
|
+
export declare class PriceNotification {
|
|
6
|
+
readonly id: string;
|
|
7
|
+
readonly productId: string;
|
|
8
|
+
readonly description: string;
|
|
9
|
+
readonly name: string | null;
|
|
10
|
+
readonly type: CatalogType | null;
|
|
11
|
+
readonly billingCycle: TimePeriodNotification | null;
|
|
12
|
+
readonly trialPeriod: TimePeriodNotification | null;
|
|
13
|
+
readonly taxMode: TaxMode;
|
|
14
|
+
readonly unitPrice: MoneyNotification;
|
|
15
|
+
readonly unitPriceOverrides: UnitPriceOverrideNotification[];
|
|
16
|
+
readonly quantity: PriceQuantityNotification;
|
|
17
|
+
readonly status: Status;
|
|
18
|
+
readonly customData: ICustomData | null;
|
|
19
|
+
readonly importMeta: ImportMetaNotification | null;
|
|
20
|
+
constructor(price: IPriceNotificationResponse);
|
|
21
|
+
}
|
|
@@ -1,25 +1,23 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.PriceNotification = void 0;
|
|
4
4
|
const index_1 = require("../index");
|
|
5
|
-
class
|
|
5
|
+
class PriceNotification {
|
|
6
6
|
constructor(price) {
|
|
7
|
-
var _a;
|
|
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 ? price.type : null;
|
|
12
11
|
this.name = price.name ? price.name : null;
|
|
13
|
-
this.billingCycle = price.billing_cycle ? new index_1.
|
|
14
|
-
this.trialPeriod = price.trial_period ? new index_1.
|
|
12
|
+
this.billingCycle = price.billing_cycle ? new index_1.TimePeriodNotification(price.billing_cycle) : null;
|
|
13
|
+
this.trialPeriod = price.trial_period ? new index_1.TimePeriodNotification(price.trial_period) : null;
|
|
15
14
|
this.taxMode = price.tax_mode;
|
|
16
|
-
this.unitPrice = new index_1.
|
|
17
|
-
this.unitPriceOverrides = price.unit_price_overrides.map((unit_price_override) => new index_1.
|
|
18
|
-
this.quantity = new index_1.
|
|
15
|
+
this.unitPrice = new index_1.MoneyNotification(price.unit_price);
|
|
16
|
+
this.unitPriceOverrides = price.unit_price_overrides.map((unit_price_override) => new index_1.UnitPriceOverrideNotification(unit_price_override));
|
|
17
|
+
this.quantity = new index_1.PriceQuantityNotification(price.quantity);
|
|
19
18
|
this.status = price.status;
|
|
20
19
|
this.customData = price.custom_data ? price.custom_data : null;
|
|
21
|
-
this.importMeta = price.import_meta ? new index_1.
|
|
22
|
-
this.product = price.product ? new index_1.Product(price.product) : null;
|
|
20
|
+
this.importMeta = price.import_meta ? new index_1.ImportMetaNotification(price.import_meta) : null;
|
|
23
21
|
}
|
|
24
22
|
}
|
|
25
|
-
exports.
|
|
23
|
+
exports.PriceNotification = PriceNotification;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PriceQuantityNotification = void 0;
|
|
4
|
+
class PriceQuantityNotification {
|
|
5
|
+
constructor(priceQuantity) {
|
|
6
|
+
this.minimum = priceQuantity.minimum;
|
|
7
|
+
this.maximum = priceQuantity.maximum;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
exports.PriceQuantityNotification = PriceQuantityNotification;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './product-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("./product-notification"), exports);
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { type ISharedProductNotificationResponse } from '../../types';
|
|
2
|
+
import { ImportMetaNotification } from '../index';
|
|
3
|
+
import { type TaxCategory, type Status, type CatalogType } from '../../../enums';
|
|
4
|
+
import { type CustomData } from '../../../entities';
|
|
5
|
+
export declare class ProductNotification {
|
|
6
|
+
readonly id: string;
|
|
7
|
+
readonly name: string;
|
|
8
|
+
readonly type: CatalogType | null;
|
|
9
|
+
readonly description: string | null;
|
|
10
|
+
readonly taxCategory: TaxCategory;
|
|
11
|
+
readonly imageUrl: string | null;
|
|
12
|
+
readonly customData: CustomData | null;
|
|
13
|
+
readonly status: Status;
|
|
14
|
+
readonly createdAt: string;
|
|
15
|
+
readonly importMeta: ImportMetaNotification | null;
|
|
16
|
+
constructor(product: ISharedProductNotificationResponse);
|
|
17
|
+
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.ProductNotification = void 0;
|
|
4
4
|
const index_1 = require("../index");
|
|
5
|
-
class
|
|
5
|
+
class ProductNotification {
|
|
6
6
|
constructor(product) {
|
|
7
7
|
var _a;
|
|
8
8
|
this.id = product.id;
|
|
@@ -14,8 +14,7 @@ class ProductWithIncludes {
|
|
|
14
14
|
this.customData = product.custom_data ? product.custom_data : null;
|
|
15
15
|
this.status = product.status;
|
|
16
16
|
this.createdAt = product.created_at;
|
|
17
|
-
this.importMeta = product.import_meta ? new index_1.
|
|
18
|
-
this.prices = product.prices ? product.prices.map((price) => new index_1.Price(price)) : null;
|
|
17
|
+
this.importMeta = product.import_meta ? new index_1.ImportMetaNotification(product.import_meta) : null;
|
|
19
18
|
}
|
|
20
19
|
}
|
|
21
|
-
exports.
|
|
20
|
+
exports.ProductNotification = ProductNotification;
|
|
@@ -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("./report-filters-notification"), exports);
|
|
18
|
+
__exportStar(require("./report-notification"), exports);
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type IReportFiltersNotification } from '../../types';
|
|
2
|
+
import { type ReportFilterName, type ReportFilterOperator } from '../../../enums';
|
|
3
|
+
export declare class ReportFiltersNotification {
|
|
4
|
+
readonly name: ReportFilterName;
|
|
5
|
+
readonly operator: null | ReportFilterOperator;
|
|
6
|
+
readonly value: string[] | string;
|
|
7
|
+
constructor(reportFiltersResponse: IReportFiltersNotification);
|
|
8
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ReportFiltersNotification = void 0;
|
|
4
|
+
class ReportFiltersNotification {
|
|
5
|
+
constructor(reportFiltersResponse) {
|
|
6
|
+
var _a;
|
|
7
|
+
this.name = reportFiltersResponse.name;
|
|
8
|
+
this.operator = (_a = reportFiltersResponse.operator) !== null && _a !== void 0 ? _a : null;
|
|
9
|
+
this.value = reportFiltersResponse.value;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
exports.ReportFiltersNotification = ReportFiltersNotification;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ReportFiltersNotification } from '../index';
|
|
2
|
+
import { type ReportStatus, type ReportType } from '../../../enums';
|
|
3
|
+
import { type IReportNotificationResponse } from '../../types';
|
|
4
|
+
export declare class ReportNotification {
|
|
5
|
+
readonly id: string;
|
|
6
|
+
readonly status: ReportStatus;
|
|
7
|
+
readonly rows: number | null;
|
|
8
|
+
readonly type: ReportType;
|
|
9
|
+
readonly filters: ReportFiltersNotification[];
|
|
10
|
+
readonly expiresAt: string | null;
|
|
11
|
+
readonly createdAt: string;
|
|
12
|
+
constructor(reportResponse: IReportNotificationResponse);
|
|
13
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ReportNotification = void 0;
|
|
4
|
+
const index_1 = require("../index");
|
|
5
|
+
class ReportNotification {
|
|
6
|
+
constructor(reportResponse) {
|
|
7
|
+
var _a, _b, _c;
|
|
8
|
+
this.id = reportResponse.id;
|
|
9
|
+
this.status = reportResponse.status;
|
|
10
|
+
this.rows = (_a = reportResponse.rows) !== null && _a !== void 0 ? _a : null;
|
|
11
|
+
this.type = reportResponse.type;
|
|
12
|
+
this.filters = (_b = reportResponse.filters) === null || _b === void 0 ? void 0 : _b.map((filter) => new index_1.ReportFiltersNotification(filter));
|
|
13
|
+
this.expiresAt = (_c = reportResponse.expires_at) !== null && _c !== void 0 ? _c : null;
|
|
14
|
+
this.createdAt = reportResponse.created_at;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
exports.ReportNotification = ReportNotification;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type IAdjustmentOriginalAmountNotificationResponse } from '../../types';
|
|
2
|
+
import { type AdjustmentCurrencyCode } from '../../../enums';
|
|
3
|
+
export declare class AdjustmentOriginalAmountNotification {
|
|
4
|
+
readonly amount: string;
|
|
5
|
+
readonly currencyCode: AdjustmentCurrencyCode;
|
|
6
|
+
constructor(originalAmount: IAdjustmentOriginalAmountNotificationResponse);
|
|
7
|
+
}
|