@paddle/paddle-node-sdk 0.1.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/LICENSE +201 -0
- package/README.md +270 -0
- package/dist/entities/address/address-collection.d.ts +6 -0
- package/dist/entities/address/address-collection.js +11 -0
- package/dist/entities/address/address.d.ts +19 -0
- package/dist/entities/address/address.js +36 -0
- package/dist/entities/address/index.d.ts +2 -0
- package/dist/entities/address/index.js +18 -0
- package/dist/entities/adjustment/adjustment-collection.d.ts +6 -0
- package/dist/entities/adjustment/adjustment-collection.js +11 -0
- package/dist/entities/adjustment/adjustment-item-totals.d.ts +8 -0
- package/dist/entities/adjustment/adjustment-item-totals.js +18 -0
- package/dist/entities/adjustment/adjustment-item.d.ts +13 -0
- package/dist/entities/adjustment/adjustment-item.js +25 -0
- package/dist/entities/adjustment/adjustment-proration.d.ts +8 -0
- package/dist/entities/adjustment/adjustment-proration.js +19 -0
- package/dist/entities/adjustment/adjustment-time-period.d.ts +7 -0
- package/dist/entities/adjustment/adjustment-time-period.js +16 -0
- package/dist/entities/adjustment/adjustment.d.ts +21 -0
- package/dist/entities/adjustment/adjustment.js +41 -0
- package/dist/entities/adjustment/index.d.ts +6 -0
- package/dist/entities/adjustment/index.js +22 -0
- package/dist/entities/business/business-collection.d.ts +6 -0
- package/dist/entities/business/business-collection.js +11 -0
- package/dist/entities/business/business.d.ts +16 -0
- package/dist/entities/business/business.js +31 -0
- package/dist/entities/business/contacts.d.ts +7 -0
- package/dist/entities/business/contacts.js +16 -0
- package/dist/entities/business/index.d.ts +3 -0
- package/dist/entities/business/index.js +19 -0
- package/dist/entities/customer/customer-collection.d.ts +6 -0
- package/dist/entities/customer/customer-collection.js +11 -0
- package/dist/entities/customer/customer.d.ts +16 -0
- package/dist/entities/customer/customer.js +30 -0
- package/dist/entities/customer/index.d.ts +2 -0
- package/dist/entities/customer/index.js +18 -0
- package/dist/entities/discount/discount-collection.d.ts +6 -0
- package/dist/entities/discount/discount-collection.js +11 -0
- package/dist/entities/discount/discount.d.ts +22 -0
- package/dist/entities/discount/discount.js +44 -0
- package/dist/entities/discount/index.d.ts +2 -0
- package/dist/entities/discount/index.js +18 -0
- package/dist/entities/index.d.ts +12 -0
- package/dist/entities/index.js +26 -0
- package/dist/entities/price/index.d.ts +4 -0
- package/dist/entities/price/index.js +20 -0
- package/dist/entities/price/price-collection.d.ts +6 -0
- package/dist/entities/price/price-collection.js +11 -0
- package/dist/entities/price/price-quantity.d.ts +7 -0
- package/dist/entities/price/price-quantity.js +16 -0
- package/dist/entities/price/price-with-includes.d.ts +19 -0
- package/dist/entities/price/price-with-includes.js +37 -0
- package/dist/entities/price/price.d.ts +18 -0
- package/dist/entities/price/price.js +35 -0
- package/dist/entities/product/index.d.ts +3 -0
- package/dist/entities/product/index.js +19 -0
- package/dist/entities/product/product-collection.d.ts +6 -0
- package/dist/entities/product/product-collection.js +11 -0
- package/dist/entities/product/product-with-includes.d.ts +16 -0
- package/dist/entities/product/product-with-includes.js +32 -0
- package/dist/entities/product/product.d.ts +15 -0
- package/dist/entities/product/product.js +28 -0
- package/dist/entities/shared/adjustment-original-amount.d.ts +8 -0
- package/dist/entities/shared/adjustment-original-amount.js +16 -0
- package/dist/entities/shared/billing-details.d.ts +10 -0
- package/dist/entities/shared/billing-details.js +21 -0
- package/dist/entities/shared/chargeback-fee.d.ts +8 -0
- package/dist/entities/shared/chargeback-fee.js +17 -0
- package/dist/entities/shared/index.d.ts +19 -0
- package/dist/entities/shared/index.js +35 -0
- package/dist/entities/shared/money.d.ts +8 -0
- package/dist/entities/shared/money.js +16 -0
- package/dist/entities/shared/payment-card.d.ts +11 -0
- package/dist/entities/shared/payment-card.js +22 -0
- package/dist/entities/shared/payment-method-details.d.ts +9 -0
- package/dist/entities/shared/payment-method-details.js +17 -0
- package/dist/entities/shared/payout-totals-adjustment.d.ts +14 -0
- package/dist/entities/shared/payout-totals-adjustment.js +29 -0
- package/dist/entities/shared/tax-rates-used.d.ts +8 -0
- package/dist/entities/shared/tax-rates-used.js +17 -0
- package/dist/entities/shared/time-period.d.ts +8 -0
- package/dist/entities/shared/time-period.js +16 -0
- package/dist/entities/shared/total-adjustments.d.ts +12 -0
- package/dist/entities/shared/total-adjustments.js +24 -0
- package/dist/entities/shared/totals.d.ts +9 -0
- package/dist/entities/shared/totals.js +20 -0
- package/dist/entities/shared/transaction-checkout.d.ts +6 -0
- package/dist/entities/shared/transaction-checkout.js +14 -0
- package/dist/entities/shared/transaction-payment-attempt.d.ts +15 -0
- package/dist/entities/shared/transaction-payment-attempt.js +31 -0
- package/dist/entities/shared/transaction-payout-totals-adjusted.d.ts +14 -0
- package/dist/entities/shared/transaction-payout-totals-adjusted.js +29 -0
- package/dist/entities/shared/transaction-payout-totals.d.ts +16 -0
- package/dist/entities/shared/transaction-payout-totals.js +32 -0
- package/dist/entities/shared/transaction-totals-adjusted.d.ts +13 -0
- package/dist/entities/shared/transaction-totals-adjusted.js +26 -0
- package/dist/entities/shared/transaction-totals.d.ts +16 -0
- package/dist/entities/shared/transaction-totals.js +32 -0
- package/dist/entities/shared/unit-price-override.d.ts +9 -0
- package/dist/entities/shared/unit-price-override.js +17 -0
- package/dist/entities/shared/unit-totals.d.ts +9 -0
- package/dist/entities/shared/unit-totals.js +20 -0
- package/dist/entities/subscription/index.d.ts +12 -0
- package/dist/entities/subscription/index.js +28 -0
- package/dist/entities/subscription/next-transaction.d.ts +9 -0
- package/dist/entities/subscription/next-transaction.js +19 -0
- package/dist/entities/subscription/subscription-collection.d.ts +6 -0
- package/dist/entities/subscription/subscription-collection.js +11 -0
- package/dist/entities/subscription/subscription-discount.d.ts +8 -0
- package/dist/entities/subscription/subscription-discount.js +18 -0
- package/dist/entities/subscription/subscription-includes.d.ts +31 -0
- package/dist/entities/subscription/subscription-includes.js +67 -0
- package/dist/entities/subscription/subscription-item.d.ts +16 -0
- package/dist/entities/subscription/subscription-item.js +33 -0
- package/dist/entities/subscription/subscription-management.d.ts +7 -0
- package/dist/entities/subscription/subscription-management.js +16 -0
- package/dist/entities/subscription/subscription-price.d.ts +14 -0
- package/dist/entities/subscription/subscription-price.js +27 -0
- package/dist/entities/subscription/subscription-scheduled-change.d.ts +9 -0
- package/dist/entities/subscription/subscription-scheduled-change.js +18 -0
- package/dist/entities/subscription/subscription-time-period.d.ts +7 -0
- package/dist/entities/subscription/subscription-time-period.js +16 -0
- package/dist/entities/subscription/subscription.d.ts +29 -0
- package/dist/entities/subscription/subscription.js +61 -0
- package/dist/entities/subscription/transaction-details-preview.d.ts +9 -0
- package/dist/entities/subscription/transaction-details-preview.js +19 -0
- package/dist/entities/subscription/transaction-line-item-preview.d.ts +12 -0
- package/dist/entities/subscription/transaction-line-item-preview.js +25 -0
- package/dist/entities/transaction/adjustment-totals-breakdown.d.ts +8 -0
- package/dist/entities/transaction/adjustment-totals-breakdown.js +18 -0
- package/dist/entities/transaction/adjustment-totals.d.ts +14 -0
- package/dist/entities/transaction/adjustment-totals.js +27 -0
- package/dist/entities/transaction/index.d.ts +12 -0
- package/dist/entities/transaction/index.js +28 -0
- package/dist/entities/transaction/transaction-adjustment-item.d.ts +13 -0
- package/dist/entities/transaction/transaction-adjustment-item.js +29 -0
- package/dist/entities/transaction/transaction-adjustment.d.ts +21 -0
- package/dist/entities/transaction/transaction-adjustment.js +41 -0
- package/dist/entities/transaction/transaction-collection.d.ts +6 -0
- package/dist/entities/transaction/transaction-collection.js +11 -0
- package/dist/entities/transaction/transaction-details.d.ts +12 -0
- package/dist/entities/transaction/transaction-details.js +31 -0
- package/dist/entities/transaction/transaction-includes.d.ts +35 -0
- package/dist/entities/transaction/transaction-includes.js +74 -0
- package/dist/entities/transaction/transaction-item.d.ts +10 -0
- package/dist/entities/transaction/transaction-item.js +21 -0
- package/dist/entities/transaction/transaction-line-item.d.ts +14 -0
- package/dist/entities/transaction/transaction-line-item.js +31 -0
- package/dist/entities/transaction/transaction-proration.d.ts +8 -0
- package/dist/entities/transaction/transaction-proration.js +19 -0
- package/dist/entities/transaction/transaction.d.ts +29 -0
- package/dist/entities/transaction/transaction.js +59 -0
- package/dist/entities/transaction/transactions-time-period.d.ts +7 -0
- package/dist/entities/transaction/transactions-time-period.js +16 -0
- package/dist/enums/adjustment/adjustment-action.d.ts +1 -0
- package/dist/enums/adjustment/adjustment-action.js +2 -0
- package/dist/enums/adjustment/adjustment-currency-code.d.ts +1 -0
- package/dist/enums/adjustment/adjustment-currency-code.js +2 -0
- package/dist/enums/adjustment/adjustment-status.d.ts +1 -0
- package/dist/enums/adjustment/adjustment-status.js +2 -0
- package/dist/enums/adjustment/adjustment-type.d.ts +1 -0
- package/dist/enums/adjustment/adjustment-type.js +2 -0
- package/dist/enums/adjustment/index.d.ts +4 -0
- package/dist/enums/adjustment/index.js +20 -0
- package/dist/enums/discount/discount-status.d.ts +1 -0
- package/dist/enums/discount/discount-status.js +2 -0
- package/dist/enums/discount/discount-type.d.ts +1 -0
- package/dist/enums/discount/discount-type.js +2 -0
- package/dist/enums/discount/index.d.ts +2 -0
- package/dist/enums/discount/index.js +18 -0
- package/dist/enums/index.d.ts +5 -0
- package/dist/enums/index.js +21 -0
- package/dist/enums/shared/collection-mode.d.ts +1 -0
- package/dist/enums/shared/collection-mode.js +2 -0
- package/dist/enums/shared/country-code.d.ts +1 -0
- package/dist/enums/shared/country-code.js +2 -0
- package/dist/enums/shared/currency-code.d.ts +1 -0
- package/dist/enums/shared/currency-code.js +2 -0
- package/dist/enums/shared/error-code.d.ts +1 -0
- package/dist/enums/shared/error-code.js +2 -0
- package/dist/enums/shared/index.d.ts +13 -0
- package/dist/enums/shared/index.js +29 -0
- package/dist/enums/shared/interval.d.ts +1 -0
- package/dist/enums/shared/interval.js +2 -0
- package/dist/enums/shared/payment-attempt-status.d.ts +1 -0
- package/dist/enums/shared/payment-attempt-status.js +2 -0
- package/dist/enums/shared/payment-type.d.ts +1 -0
- package/dist/enums/shared/payment-type.js +2 -0
- package/dist/enums/shared/payout-currency-code.d.ts +1 -0
- package/dist/enums/shared/payout-currency-code.js +2 -0
- package/dist/enums/shared/status.d.ts +1 -0
- package/dist/enums/shared/status.js +2 -0
- package/dist/enums/shared/tax-category.d.ts +1 -0
- package/dist/enums/shared/tax-category.js +2 -0
- package/dist/enums/shared/tax-mode.d.ts +1 -0
- package/dist/enums/shared/tax-mode.js +2 -0
- package/dist/enums/shared/transaction-origin.d.ts +1 -0
- package/dist/enums/shared/transaction-origin.js +2 -0
- package/dist/enums/shared/transaction-status.d.ts +1 -0
- package/dist/enums/shared/transaction-status.js +2 -0
- package/dist/enums/subscription/index.d.ts +5 -0
- package/dist/enums/subscription/index.js +21 -0
- package/dist/enums/subscription/proration-billing-mode.d.ts +1 -0
- package/dist/enums/subscription/proration-billing-mode.js +2 -0
- package/dist/enums/subscription/scheduled-change-action.d.ts +1 -0
- package/dist/enums/subscription/scheduled-change-action.js +2 -0
- package/dist/enums/subscription/subscription-effective-from.d.ts +1 -0
- package/dist/enums/subscription/subscription-effective-from.js +2 -0
- package/dist/enums/subscription/subscription-item-status.d.ts +1 -0
- package/dist/enums/subscription/subscription-item-status.js +2 -0
- package/dist/enums/subscription/subscription-status.d.ts +1 -0
- package/dist/enums/subscription/subscription-status.js +2 -0
- package/dist/enums/transaction/index.d.ts +1 -0
- package/dist/enums/transaction/index.js +17 -0
- package/dist/enums/transaction/payment-card-type.d.ts +1 -0
- package/dist/enums/transaction/payment-card-type.js +2 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.js +28 -0
- package/dist/internal/api/client.d.ts +13 -0
- package/dist/internal/api/client.js +69 -0
- package/dist/internal/api/constants.d.ts +2 -0
- package/dist/internal/api/constants.js +8 -0
- package/dist/internal/api/environment.d.ts +4 -0
- package/dist/internal/api/environment.js +8 -0
- package/dist/internal/base/base-resource.d.ts +8 -0
- package/dist/internal/base/base-resource.js +21 -0
- package/dist/internal/base/collection.d.ts +13 -0
- package/dist/internal/base/collection.js +65 -0
- package/dist/internal/base/index.d.ts +4 -0
- package/dist/internal/base/index.js +20 -0
- package/dist/internal/base/path-parameters.d.ts +6 -0
- package/dist/internal/base/path-parameters.js +20 -0
- package/dist/internal/base/query-parameters.d.ts +5 -0
- package/dist/internal/base/query-parameters.js +19 -0
- package/dist/internal/errors/generic.d.ts +12 -0
- package/dist/internal/errors/generic.js +25 -0
- package/dist/internal/index.d.ts +3 -0
- package/dist/internal/index.js +5 -0
- package/dist/internal/types/config.d.ts +4 -0
- package/dist/internal/types/config.js +2 -0
- package/dist/internal/types/response.d.ts +31 -0
- package/dist/internal/types/response.js +2 -0
- package/dist/notifications/index.d.ts +1 -0
- package/dist/notifications/index.js +17 -0
- package/dist/notifications/validator/notifications-validator.d.ts +5 -0
- package/dist/notifications/validator/notifications-validator.js +41 -0
- package/dist/paddle.d.ts +16 -0
- package/dist/paddle.js +24 -0
- package/dist/resources/addresses/index.d.ts +10 -0
- package/dist/resources/addresses/index.js +79 -0
- package/dist/resources/addresses/operations/create-address-path-parameters.d.ts +3 -0
- package/dist/resources/addresses/operations/create-address-path-parameters.js +2 -0
- package/dist/resources/addresses/operations/create-address-request-body.d.ts +12 -0
- package/dist/resources/addresses/operations/create-address-request-body.js +2 -0
- package/dist/resources/addresses/operations/get-address-path-parameters.d.ts +4 -0
- package/dist/resources/addresses/operations/get-address-path-parameters.js +2 -0
- package/dist/resources/addresses/operations/index.d.ts +7 -0
- package/dist/resources/addresses/operations/index.js +23 -0
- package/dist/resources/addresses/operations/list-address-path-parameters.d.ts +3 -0
- package/dist/resources/addresses/operations/list-address-path-parameters.js +2 -0
- package/dist/resources/addresses/operations/list-address-query-parameters.d.ts +9 -0
- package/dist/resources/addresses/operations/list-address-query-parameters.js +2 -0
- package/dist/resources/addresses/operations/update-address-path-parameters.d.ts +4 -0
- package/dist/resources/addresses/operations/update-address-path-parameters.js +2 -0
- package/dist/resources/addresses/operations/update-address-request-body.d.ts +13 -0
- package/dist/resources/addresses/operations/update-address-request-body.js +2 -0
- package/dist/resources/adjustments/index.d.ts +8 -0
- package/dist/resources/adjustments/index.js +49 -0
- package/dist/resources/adjustments/operations/create-adjustment-request-body.d.ts +12 -0
- package/dist/resources/adjustments/operations/create-adjustment-request-body.js +2 -0
- package/dist/resources/adjustments/operations/index.d.ts +2 -0
- package/dist/resources/adjustments/operations/index.js +18 -0
- package/dist/resources/adjustments/operations/list-adjustment-query-parameters.d.ts +12 -0
- package/dist/resources/adjustments/operations/list-adjustment-query-parameters.js +2 -0
- package/dist/resources/businesses/index.d.ts +10 -0
- package/dist/resources/businesses/index.js +79 -0
- package/dist/resources/businesses/operations/create-business-path-parameters.d.ts +3 -0
- package/dist/resources/businesses/operations/create-business-path-parameters.js +2 -0
- package/dist/resources/businesses/operations/create-business-request-body.d.ts +8 -0
- package/dist/resources/businesses/operations/create-business-request-body.js +2 -0
- package/dist/resources/businesses/operations/get-business-path-parameters.d.ts +4 -0
- package/dist/resources/businesses/operations/get-business-path-parameters.js +2 -0
- package/dist/resources/businesses/operations/index.d.ts +7 -0
- package/dist/resources/businesses/operations/index.js +23 -0
- package/dist/resources/businesses/operations/list-business-path-parameters.d.ts +3 -0
- package/dist/resources/businesses/operations/list-business-path-parameters.js +2 -0
- package/dist/resources/businesses/operations/list-business-query-parameters.d.ts +9 -0
- package/dist/resources/businesses/operations/list-business-query-parameters.js +2 -0
- package/dist/resources/businesses/operations/update-business-path-parameters.d.ts +4 -0
- package/dist/resources/businesses/operations/update-business-path-parameters.js +2 -0
- package/dist/resources/businesses/operations/update-business-request-body.d.ts +10 -0
- package/dist/resources/businesses/operations/update-business-request-body.js +2 -0
- package/dist/resources/customers/index.d.ts +10 -0
- package/dist/resources/customers/index.js +71 -0
- package/dist/resources/customers/operations/create-customer-request-body.d.ts +7 -0
- package/dist/resources/customers/operations/create-customer-request-body.js +2 -0
- package/dist/resources/customers/operations/get-customer-path-parameters.d.ts +3 -0
- package/dist/resources/customers/operations/get-customer-path-parameters.js +2 -0
- package/dist/resources/customers/operations/index.d.ts +5 -0
- package/dist/resources/customers/operations/index.js +21 -0
- package/dist/resources/customers/operations/list-customer-query-parameters.d.ts +9 -0
- package/dist/resources/customers/operations/list-customer-query-parameters.js +2 -0
- package/dist/resources/customers/operations/update-customer-path-parameters.d.ts +3 -0
- package/dist/resources/customers/operations/update-customer-path-parameters.js +2 -0
- package/dist/resources/customers/operations/update-customer-request-body.d.ts +9 -0
- package/dist/resources/customers/operations/update-customer-request-body.js +2 -0
- package/dist/resources/discounts/index.d.ts +10 -0
- package/dist/resources/discounts/index.js +71 -0
- package/dist/resources/discounts/operations/create-discount-request-body.d.ts +14 -0
- package/dist/resources/discounts/operations/create-discount-request-body.js +2 -0
- package/dist/resources/discounts/operations/get-discount-path-parameters.d.ts +3 -0
- package/dist/resources/discounts/operations/get-discount-path-parameters.js +2 -0
- package/dist/resources/discounts/operations/index.d.ts +5 -0
- package/dist/resources/discounts/operations/index.js +21 -0
- package/dist/resources/discounts/operations/list-discount-query-parameters.d.ts +9 -0
- package/dist/resources/discounts/operations/list-discount-query-parameters.js +2 -0
- package/dist/resources/discounts/operations/update-discount-path-parameters.d.ts +3 -0
- package/dist/resources/discounts/operations/update-discount-path-parameters.js +2 -0
- package/dist/resources/discounts/operations/update-discount-request-body.d.ts +15 -0
- package/dist/resources/discounts/operations/update-discount-request-body.js +2 -0
- package/dist/resources/index.d.ts +9 -0
- package/dist/resources/index.js +25 -0
- package/dist/resources/prices/index.d.ts +10 -0
- package/dist/resources/prices/index.js +72 -0
- package/dist/resources/prices/operations/create-price-request-body.d.ts +13 -0
- package/dist/resources/prices/operations/create-price-request-body.js +2 -0
- package/dist/resources/prices/operations/get-price-path-parameters.d.ts +3 -0
- package/dist/resources/prices/operations/get-price-path-parameters.js +2 -0
- package/dist/resources/prices/operations/get-price-query-parameters.d.ts +3 -0
- package/dist/resources/prices/operations/get-price-query-parameters.js +2 -0
- package/dist/resources/prices/operations/index.d.ts +6 -0
- package/dist/resources/prices/operations/index.js +22 -0
- package/dist/resources/prices/operations/list-price-query-parameters.d.ts +11 -0
- package/dist/resources/prices/operations/list-price-query-parameters.js +2 -0
- package/dist/resources/prices/operations/update-price-path-parameters.d.ts +3 -0
- package/dist/resources/prices/operations/update-price-path-parameters.js +2 -0
- package/dist/resources/prices/operations/update-price-request-body.d.ts +13 -0
- package/dist/resources/prices/operations/update-price-request-body.js +2 -0
- package/dist/resources/products/index.d.ts +10 -0
- package/dist/resources/products/index.js +72 -0
- package/dist/resources/products/operations/create-product-request-body.d.ts +9 -0
- package/dist/resources/products/operations/create-product-request-body.js +2 -0
- package/dist/resources/products/operations/get-product-path-parameters.d.ts +3 -0
- package/dist/resources/products/operations/get-product-path-parameters.js +2 -0
- package/dist/resources/products/operations/get-product-query-parameters.d.ts +3 -0
- package/dist/resources/products/operations/get-product-query-parameters.js +2 -0
- package/dist/resources/products/operations/index.d.ts +6 -0
- package/dist/resources/products/operations/index.js +22 -0
- package/dist/resources/products/operations/list-product-query-parameters.d.ts +10 -0
- package/dist/resources/products/operations/list-product-query-parameters.js +2 -0
- package/dist/resources/products/operations/update-product-path-parameters.d.ts +3 -0
- package/dist/resources/products/operations/update-product-path-parameters.js +2 -0
- package/dist/resources/products/operations/update-product-request-body.d.ts +10 -0
- package/dist/resources/products/operations/update-product-request-body.js +2 -0
- package/dist/resources/subscriptions/index.d.ts +9 -0
- package/dist/resources/subscriptions/index.js +64 -0
- package/dist/resources/subscriptions/operations/get-subscription-path-parameters.d.ts +3 -0
- package/dist/resources/subscriptions/operations/get-subscription-path-parameters.js +2 -0
- package/dist/resources/subscriptions/operations/get-subscription-query-parameters.d.ts +3 -0
- package/dist/resources/subscriptions/operations/get-subscription-query-parameters.js +2 -0
- package/dist/resources/subscriptions/operations/index.d.ts +5 -0
- package/dist/resources/subscriptions/operations/index.js +21 -0
- package/dist/resources/subscriptions/operations/list-subscription-query-parameters.d.ts +13 -0
- package/dist/resources/subscriptions/operations/list-subscription-query-parameters.js +2 -0
- package/dist/resources/subscriptions/operations/update-subscription-path-parameters.d.ts +3 -0
- package/dist/resources/subscriptions/operations/update-subscription-path-parameters.js +2 -0
- package/dist/resources/subscriptions/operations/update-subscription-request-body.d.ts +16 -0
- package/dist/resources/subscriptions/operations/update-subscription-request-body.js +2 -0
- package/dist/resources/transactions/index.d.ts +10 -0
- package/dist/resources/transactions/index.js +73 -0
- package/dist/resources/transactions/operations/create-transaction-query-parameters.d.ts +3 -0
- package/dist/resources/transactions/operations/create-transaction-query-parameters.js +2 -0
- package/dist/resources/transactions/operations/create-transaction-request-body.d.ts +21 -0
- package/dist/resources/transactions/operations/create-transaction-request-body.js +2 -0
- package/dist/resources/transactions/operations/get-transaction-path-parameters.d.ts +3 -0
- package/dist/resources/transactions/operations/get-transaction-path-parameters.js +2 -0
- package/dist/resources/transactions/operations/get-transaction-query-parameters.d.ts +3 -0
- package/dist/resources/transactions/operations/get-transaction-query-parameters.js +2 -0
- package/dist/resources/transactions/operations/index.d.ts +7 -0
- package/dist/resources/transactions/operations/index.js +23 -0
- package/dist/resources/transactions/operations/list-transaction-query-parameters.d.ts +16 -0
- package/dist/resources/transactions/operations/list-transaction-query-parameters.js +2 -0
- package/dist/resources/transactions/operations/update-transaction-path-parameters.d.ts +3 -0
- package/dist/resources/transactions/operations/update-transaction-path-parameters.js +2 -0
- package/dist/resources/transactions/operations/update-transaction-request-body.d.ts +21 -0
- package/dist/resources/transactions/operations/update-transaction-request-body.js +2 -0
- package/dist/types/address/address.d.ts +16 -0
- package/dist/types/address/address.js +2 -0
- package/dist/types/address/index.d.ts +1 -0
- package/dist/types/address/index.js +17 -0
- package/dist/types/adjustment/adjustment-item.d.ts +10 -0
- package/dist/types/adjustment/adjustment-item.js +2 -0
- package/dist/types/adjustment/adjustment.d.ts +18 -0
- package/dist/types/adjustment/adjustment.js +2 -0
- package/dist/types/adjustment/adjustments-proration.d.ts +5 -0
- package/dist/types/adjustment/adjustments-proration.js +2 -0
- package/dist/types/adjustment/adjustments-time-period.d.ts +4 -0
- package/dist/types/adjustment/adjustments-time-period.js +2 -0
- package/dist/types/adjustment/index.d.ts +4 -0
- package/dist/types/adjustment/index.js +20 -0
- package/dist/types/business/business.d.ts +13 -0
- package/dist/types/business/business.js +2 -0
- package/dist/types/business/businesses-contacts.d.ts +4 -0
- package/dist/types/business/businesses-contacts.js +2 -0
- package/dist/types/business/index.d.ts +2 -0
- package/dist/types/business/index.js +18 -0
- package/dist/types/customer/customer.d.ts +13 -0
- package/dist/types/customer/customer.js +2 -0
- package/dist/types/customer/index.d.ts +1 -0
- package/dist/types/customer/index.js +17 -0
- package/dist/types/discount/discount.d.ts +19 -0
- package/dist/types/discount/discount.js +2 -0
- package/dist/types/discount/index.d.ts +1 -0
- package/dist/types/discount/index.js +17 -0
- package/dist/types/index.d.ts +10 -0
- package/dist/types/index.js +26 -0
- package/dist/types/price/index.d.ts +1 -0
- package/dist/types/price/index.js +17 -0
- package/dist/types/price/price.d.ts +16 -0
- package/dist/types/price/price.js +2 -0
- package/dist/types/product/index.d.ts +1 -0
- package/dist/types/product/index.js +17 -0
- package/dist/types/product/product.d.ts +13 -0
- package/dist/types/product/product.js +2 -0
- package/dist/types/shared/adjustment-item-totals.d.ts +5 -0
- package/dist/types/shared/adjustment-item-totals.js +2 -0
- package/dist/types/shared/adjustment-original-amount.d.ts +5 -0
- package/dist/types/shared/adjustment-original-amount.js +2 -0
- package/dist/types/shared/billing-details-update.d.ts +7 -0
- package/dist/types/shared/billing-details-update.js +2 -0
- package/dist/types/shared/billing-details.d.ts +7 -0
- package/dist/types/shared/billing-details.js +2 -0
- package/dist/types/shared/chargeback-fee.d.ts +5 -0
- package/dist/types/shared/chargeback-fee.js +2 -0
- package/dist/types/shared/custom-data.d.ts +1 -0
- package/dist/types/shared/custom-data.js +2 -0
- package/dist/types/shared/index.d.ts +27 -0
- package/dist/types/shared/index.js +43 -0
- package/dist/types/shared/money.d.ts +5 -0
- package/dist/types/shared/money.js +2 -0
- package/dist/types/shared/payment-card.d.ts +8 -0
- package/dist/types/shared/payment-card.js +2 -0
- package/dist/types/shared/payment-method-details.d.ts +6 -0
- package/dist/types/shared/payment-method-details.js +2 -0
- package/dist/types/shared/payout-totals-adjustment.d.ts +11 -0
- package/dist/types/shared/payout-totals-adjustment.js +2 -0
- package/dist/types/shared/price-quantity.d.ts +4 -0
- package/dist/types/shared/price-quantity.js +2 -0
- package/dist/types/shared/shared-price.d.ts +15 -0
- package/dist/types/shared/shared-price.js +2 -0
- package/dist/types/shared/shared-product.d.ts +12 -0
- package/dist/types/shared/shared-product.js +2 -0
- package/dist/types/shared/tax-rates-used.d.ts +5 -0
- package/dist/types/shared/tax-rates-used.js +2 -0
- package/dist/types/shared/time-period.d.ts +5 -0
- package/dist/types/shared/time-period.js +2 -0
- package/dist/types/shared/total-adjustments.d.ts +9 -0
- package/dist/types/shared/total-adjustments.js +2 -0
- package/dist/types/shared/totals.d.ts +6 -0
- package/dist/types/shared/totals.js +2 -0
- package/dist/types/shared/transaction-checkout.d.ts +3 -0
- package/dist/types/shared/transaction-checkout.js +2 -0
- package/dist/types/shared/transaction-details-preview.d.ts +6 -0
- package/dist/types/shared/transaction-details-preview.js +2 -0
- package/dist/types/shared/transaction-line-item-preview.d.ts +9 -0
- package/dist/types/shared/transaction-line-item-preview.js +2 -0
- package/dist/types/shared/transaction-payment-attempt.d.ts +12 -0
- package/dist/types/shared/transaction-payment-attempt.js +2 -0
- package/dist/types/shared/transaction-payout-totals-adjusted.d.ts +11 -0
- package/dist/types/shared/transaction-payout-totals-adjusted.js +2 -0
- package/dist/types/shared/transaction-payout-totals.d.ts +13 -0
- package/dist/types/shared/transaction-payout-totals.js +2 -0
- package/dist/types/shared/transaction-totals-adjusted.d.ts +10 -0
- package/dist/types/shared/transaction-totals-adjusted.js +2 -0
- package/dist/types/shared/transaction-totals.d.ts +13 -0
- package/dist/types/shared/transaction-totals.js +2 -0
- package/dist/types/shared/unit-price-override.d.ts +6 -0
- package/dist/types/shared/unit-price-override.js +2 -0
- package/dist/types/shared/unit-totals.d.ts +6 -0
- package/dist/types/shared/unit-totals.js +2 -0
- package/dist/types/subscription/index.d.ts +10 -0
- package/dist/types/subscription/index.js +26 -0
- package/dist/types/subscription/next-transaction.d.ts +6 -0
- package/dist/types/subscription/next-transaction.js +2 -0
- package/dist/types/subscription/subscription-discount.d.ts +5 -0
- package/dist/types/subscription/subscription-discount.js +2 -0
- package/dist/types/subscription/subscription-item.d.ts +13 -0
- package/dist/types/subscription/subscription-item.js +2 -0
- package/dist/types/subscription/subscription-management.d.ts +4 -0
- package/dist/types/subscription/subscription-management.js +2 -0
- package/dist/types/subscription/subscription-price.d.ts +11 -0
- package/dist/types/subscription/subscription-price.js +2 -0
- package/dist/types/subscription/subscription-response.d.ts +28 -0
- package/dist/types/subscription/subscription-response.js +2 -0
- package/dist/types/subscription/subscription-scheduled-change.d.ts +6 -0
- package/dist/types/subscription/subscription-scheduled-change.js +2 -0
- package/dist/types/subscription/subscription-time-period.d.ts +4 -0
- package/dist/types/subscription/subscription-time-period.js +2 -0
- package/dist/types/subscription/subscription-update-item.d.ts +4 -0
- package/dist/types/subscription/subscription-update-item.js +2 -0
- package/dist/types/transaction/adjustment-totals-breakdown.d.ts +5 -0
- package/dist/types/transaction/adjustment-totals-breakdown.js +2 -0
- package/dist/types/transaction/adjustment-totals.d.ts +11 -0
- package/dist/types/transaction/adjustment-totals.js +2 -0
- package/dist/types/transaction/index.d.ts +10 -0
- package/dist/types/transaction/index.js +26 -0
- package/dist/types/transaction/transaction-adjustment-item.d.ts +10 -0
- package/dist/types/transaction/transaction-adjustment-item.js +2 -0
- package/dist/types/transaction/transaction-adjustment.d.ts +18 -0
- package/dist/types/transaction/transaction-adjustment.js +2 -0
- package/dist/types/transaction/transaction-details.d.ts +9 -0
- package/dist/types/transaction/transaction-details.js +2 -0
- package/dist/types/transaction/transaction-item.d.ts +7 -0
- package/dist/types/transaction/transaction-item.js +2 -0
- package/dist/types/transaction/transaction-line-item.d.ts +11 -0
- package/dist/types/transaction/transaction-line-item.js +2 -0
- package/dist/types/transaction/transaction-proration.d.ts +5 -0
- package/dist/types/transaction/transaction-proration.js +2 -0
- package/dist/types/transaction/transaction.d.ts +32 -0
- package/dist/types/transaction/transaction.js +2 -0
- package/dist/types/transaction/transactions-time-period.d.ts +4 -0
- package/dist/types/transaction/transactions-time-period.js +2 -0
- package/dist/version.d.ts +1 -0
- package/dist/version.js +4 -0
- package/package.json +58 -0
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { type ISharedPrice } from '../../types';
|
|
2
|
+
import { TimePeriod, Money, UnitPriceOverride, PriceQuantity, type CustomData } from '../index';
|
|
3
|
+
import { type TaxMode, type Status } from '../../enums';
|
|
4
|
+
export declare class Price {
|
|
5
|
+
readonly id: string;
|
|
6
|
+
readonly product_id: string;
|
|
7
|
+
readonly description: string;
|
|
8
|
+
readonly billing_cycle?: TimePeriod | undefined | null;
|
|
9
|
+
readonly trial_period?: TimePeriod | undefined | null;
|
|
10
|
+
readonly tax_mode: TaxMode;
|
|
11
|
+
readonly unit_price?: Money | undefined | null;
|
|
12
|
+
readonly unit_price_overrides: UnitPriceOverride[];
|
|
13
|
+
readonly quantity?: PriceQuantity | undefined | null;
|
|
14
|
+
readonly status: Status;
|
|
15
|
+
readonly custom_data?: CustomData | undefined | null;
|
|
16
|
+
constructor(price: ISharedPrice);
|
|
17
|
+
toJson(): ISharedPrice;
|
|
18
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Price = void 0;
|
|
4
|
+
const index_1 = require("../index");
|
|
5
|
+
class Price {
|
|
6
|
+
constructor(price) {
|
|
7
|
+
this.id = price.id;
|
|
8
|
+
this.product_id = price.product_id;
|
|
9
|
+
this.description = price.description;
|
|
10
|
+
this.billing_cycle = price.billing_cycle ? new index_1.TimePeriod(price.billing_cycle) : undefined;
|
|
11
|
+
this.trial_period = price.trial_period ? new index_1.TimePeriod(price.trial_period) : undefined;
|
|
12
|
+
this.tax_mode = price.tax_mode;
|
|
13
|
+
this.unit_price = price.unit_price ? new index_1.Money(price.unit_price) : undefined;
|
|
14
|
+
this.unit_price_overrides = price.unit_price_overrides.map((unit_price_override) => new index_1.UnitPriceOverride(unit_price_override));
|
|
15
|
+
this.quantity = price.quantity ? new index_1.PriceQuantity(price.quantity) : undefined;
|
|
16
|
+
this.status = price.status;
|
|
17
|
+
this.custom_data = price.custom_data;
|
|
18
|
+
}
|
|
19
|
+
toJson() {
|
|
20
|
+
return {
|
|
21
|
+
id: this.id,
|
|
22
|
+
product_id: this.product_id,
|
|
23
|
+
description: this.description,
|
|
24
|
+
billing_cycle: this.billing_cycle,
|
|
25
|
+
trial_period: this.trial_period,
|
|
26
|
+
tax_mode: this.tax_mode,
|
|
27
|
+
unit_price: this.unit_price,
|
|
28
|
+
unit_price_overrides: this.unit_price_overrides,
|
|
29
|
+
quantity: this.quantity,
|
|
30
|
+
status: this.status,
|
|
31
|
+
custom_data: this.custom_data,
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
exports.Price = Price;
|
|
@@ -0,0 +1,19 @@
|
|
|
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-with-includes"), exports);
|
|
18
|
+
__exportStar(require("./product-collection"), exports);
|
|
19
|
+
__exportStar(require("./product"), exports);
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ProductWithIncludes } from './product-with-includes';
|
|
2
|
+
import { type IProduct } from '../../types';
|
|
3
|
+
import { Collection } from '../../internal/base';
|
|
4
|
+
export declare class ProductCollection extends Collection<IProduct, ProductWithIncludes> {
|
|
5
|
+
fromJson(data: IProduct): ProductWithIncludes;
|
|
6
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ProductCollection = void 0;
|
|
4
|
+
const product_with_includes_1 = require("./product-with-includes");
|
|
5
|
+
const base_1 = require("../../internal/base");
|
|
6
|
+
class ProductCollection extends base_1.Collection {
|
|
7
|
+
fromJson(data) {
|
|
8
|
+
return new product_with_includes_1.ProductWithIncludes(data);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
exports.ProductCollection = ProductCollection;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { type IProduct } from '../../types';
|
|
2
|
+
import { type CustomData, Price } from '../index';
|
|
3
|
+
import { type Status, type TaxCategory } from '../../enums';
|
|
4
|
+
export declare class ProductWithIncludes {
|
|
5
|
+
readonly id: string;
|
|
6
|
+
readonly name: string;
|
|
7
|
+
readonly description?: string | undefined;
|
|
8
|
+
readonly tax_category: TaxCategory;
|
|
9
|
+
readonly image_url?: undefined | string;
|
|
10
|
+
readonly custom_data?: CustomData | undefined;
|
|
11
|
+
readonly status: Status;
|
|
12
|
+
readonly created_at: string;
|
|
13
|
+
readonly prices?: Price[] | undefined;
|
|
14
|
+
constructor(product: IProduct);
|
|
15
|
+
toJson(): IProduct;
|
|
16
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ProductWithIncludes = void 0;
|
|
4
|
+
const index_1 = require("../index");
|
|
5
|
+
class ProductWithIncludes {
|
|
6
|
+
constructor(product) {
|
|
7
|
+
var _a;
|
|
8
|
+
this.id = product.id;
|
|
9
|
+
this.name = product.name;
|
|
10
|
+
this.description = product.description;
|
|
11
|
+
this.tax_category = product.tax_category;
|
|
12
|
+
this.image_url = product.image_url;
|
|
13
|
+
this.custom_data = product.custom_data;
|
|
14
|
+
this.status = product.status;
|
|
15
|
+
this.created_at = product.created_at;
|
|
16
|
+
this.prices = (_a = product.prices) === null || _a === void 0 ? void 0 : _a.map((price) => new index_1.Price(price));
|
|
17
|
+
}
|
|
18
|
+
toJson() {
|
|
19
|
+
return {
|
|
20
|
+
id: this.id,
|
|
21
|
+
name: this.name,
|
|
22
|
+
description: this.description,
|
|
23
|
+
tax_category: this.tax_category,
|
|
24
|
+
image_url: this.image_url,
|
|
25
|
+
custom_data: this.custom_data,
|
|
26
|
+
status: this.status,
|
|
27
|
+
created_at: this.created_at,
|
|
28
|
+
prices: this.prices,
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
exports.ProductWithIncludes = ProductWithIncludes;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { type ISharedProduct } from '../../types';
|
|
2
|
+
import { type CustomData } from '../index';
|
|
3
|
+
import { type TaxCategory, type Status } from '../../enums';
|
|
4
|
+
export declare class Product {
|
|
5
|
+
readonly id: string;
|
|
6
|
+
readonly name: string;
|
|
7
|
+
readonly description?: string | undefined | null;
|
|
8
|
+
readonly tax_category: TaxCategory;
|
|
9
|
+
readonly image_url?: undefined | string | null;
|
|
10
|
+
readonly custom_data?: CustomData | undefined | null;
|
|
11
|
+
readonly status: Status;
|
|
12
|
+
readonly created_at: string;
|
|
13
|
+
constructor(product: ISharedProduct);
|
|
14
|
+
toJson(): ISharedProduct;
|
|
15
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Product = void 0;
|
|
4
|
+
class Product {
|
|
5
|
+
constructor(product) {
|
|
6
|
+
this.id = product.id;
|
|
7
|
+
this.name = product.name;
|
|
8
|
+
this.description = product.description;
|
|
9
|
+
this.tax_category = product.tax_category;
|
|
10
|
+
this.image_url = product.image_url;
|
|
11
|
+
this.custom_data = product.custom_data;
|
|
12
|
+
this.status = product.status;
|
|
13
|
+
this.created_at = product.created_at;
|
|
14
|
+
}
|
|
15
|
+
toJson() {
|
|
16
|
+
return {
|
|
17
|
+
id: this.id,
|
|
18
|
+
name: this.name,
|
|
19
|
+
description: this.description,
|
|
20
|
+
tax_category: this.tax_category,
|
|
21
|
+
image_url: this.image_url,
|
|
22
|
+
custom_data: this.custom_data,
|
|
23
|
+
status: this.status,
|
|
24
|
+
created_at: this.created_at,
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
exports.Product = Product;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type IAdjustmentOriginalAmount } from '../../types';
|
|
2
|
+
import { type AdjustmentCurrencyCode } from '../../enums';
|
|
3
|
+
export declare class AdjustmentOriginalAmount {
|
|
4
|
+
readonly amount: string;
|
|
5
|
+
readonly currency_code: AdjustmentCurrencyCode;
|
|
6
|
+
constructor(originalAmount: IAdjustmentOriginalAmount);
|
|
7
|
+
toJson(): IAdjustmentOriginalAmount;
|
|
8
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AdjustmentOriginalAmount = void 0;
|
|
4
|
+
class AdjustmentOriginalAmount {
|
|
5
|
+
constructor(originalAmount) {
|
|
6
|
+
this.amount = originalAmount.amount;
|
|
7
|
+
this.currency_code = originalAmount.currency_code;
|
|
8
|
+
}
|
|
9
|
+
toJson() {
|
|
10
|
+
return {
|
|
11
|
+
amount: this.amount,
|
|
12
|
+
currency_code: this.currency_code,
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
exports.AdjustmentOriginalAmount = AdjustmentOriginalAmount;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type IBillingDetails } from '../../types';
|
|
2
|
+
import { TimePeriod } from '../index';
|
|
3
|
+
export declare class BillingDetails {
|
|
4
|
+
readonly enable_checkout?: boolean | undefined | null;
|
|
5
|
+
readonly purchase_order_number?: string | undefined | null;
|
|
6
|
+
readonly additional_information?: string | undefined | null;
|
|
7
|
+
readonly payment_terms: TimePeriod;
|
|
8
|
+
constructor(billingDetails: IBillingDetails);
|
|
9
|
+
toJson(): IBillingDetails;
|
|
10
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BillingDetails = void 0;
|
|
4
|
+
const index_1 = require("../index");
|
|
5
|
+
class BillingDetails {
|
|
6
|
+
constructor(billingDetails) {
|
|
7
|
+
this.enable_checkout = billingDetails.enable_checkout;
|
|
8
|
+
this.purchase_order_number = billingDetails.purchase_order_number;
|
|
9
|
+
this.additional_information = billingDetails.additional_information;
|
|
10
|
+
this.payment_terms = new index_1.TimePeriod(billingDetails.payment_terms);
|
|
11
|
+
}
|
|
12
|
+
toJson() {
|
|
13
|
+
return {
|
|
14
|
+
enable_checkout: this.enable_checkout,
|
|
15
|
+
purchase_order_number: this.purchase_order_number,
|
|
16
|
+
additional_information: this.additional_information,
|
|
17
|
+
payment_terms: this.payment_terms,
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
exports.BillingDetails = BillingDetails;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type IChargebackFee } from '../../types';
|
|
2
|
+
import { AdjustmentOriginalAmount } from '../index';
|
|
3
|
+
export declare class ChargebackFee {
|
|
4
|
+
readonly amount: string;
|
|
5
|
+
readonly original?: AdjustmentOriginalAmount | undefined | null;
|
|
6
|
+
constructor(chargebackFee: IChargebackFee);
|
|
7
|
+
toJson(): IChargebackFee;
|
|
8
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ChargebackFee = void 0;
|
|
4
|
+
const index_1 = require("../index");
|
|
5
|
+
class ChargebackFee {
|
|
6
|
+
constructor(chargebackFee) {
|
|
7
|
+
this.amount = chargebackFee.amount;
|
|
8
|
+
this.original = chargebackFee.original ? new index_1.AdjustmentOriginalAmount(chargebackFee.original) : undefined;
|
|
9
|
+
}
|
|
10
|
+
toJson() {
|
|
11
|
+
return {
|
|
12
|
+
amount: this.amount,
|
|
13
|
+
original: this.original,
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
exports.ChargebackFee = ChargebackFee;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export * from './time-period';
|
|
2
|
+
export * from './money';
|
|
3
|
+
export * from './unit-price-override';
|
|
4
|
+
export * from './billing-details';
|
|
5
|
+
export * from './totals';
|
|
6
|
+
export * from './tax-rates-used';
|
|
7
|
+
export * from './transaction-totals';
|
|
8
|
+
export * from './transaction-totals-adjusted';
|
|
9
|
+
export * from './transaction-payout-totals';
|
|
10
|
+
export * from './adjustment-original-amount';
|
|
11
|
+
export * from './chargeback-fee';
|
|
12
|
+
export * from './transaction-payout-totals-adjusted';
|
|
13
|
+
export * from './unit-totals';
|
|
14
|
+
export * from './payment-card';
|
|
15
|
+
export * from './payment-method-details';
|
|
16
|
+
export * from './transaction-payment-attempt';
|
|
17
|
+
export * from './transaction-checkout';
|
|
18
|
+
export * from './total-adjustments';
|
|
19
|
+
export * from './payout-totals-adjustment';
|
|
@@ -0,0 +1,35 @@
|
|
|
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("./time-period"), exports);
|
|
18
|
+
__exportStar(require("./money"), exports);
|
|
19
|
+
__exportStar(require("./unit-price-override"), exports);
|
|
20
|
+
__exportStar(require("./billing-details"), exports);
|
|
21
|
+
__exportStar(require("./totals"), exports);
|
|
22
|
+
__exportStar(require("./tax-rates-used"), exports);
|
|
23
|
+
__exportStar(require("./transaction-totals"), exports);
|
|
24
|
+
__exportStar(require("./transaction-totals-adjusted"), exports);
|
|
25
|
+
__exportStar(require("./transaction-payout-totals"), exports);
|
|
26
|
+
__exportStar(require("./adjustment-original-amount"), exports);
|
|
27
|
+
__exportStar(require("./chargeback-fee"), exports);
|
|
28
|
+
__exportStar(require("./transaction-payout-totals-adjusted"), exports);
|
|
29
|
+
__exportStar(require("./unit-totals"), exports);
|
|
30
|
+
__exportStar(require("./payment-card"), exports);
|
|
31
|
+
__exportStar(require("./payment-method-details"), exports);
|
|
32
|
+
__exportStar(require("./transaction-payment-attempt"), exports);
|
|
33
|
+
__exportStar(require("./transaction-checkout"), exports);
|
|
34
|
+
__exportStar(require("./total-adjustments"), exports);
|
|
35
|
+
__exportStar(require("./payout-totals-adjustment"), exports);
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Money = void 0;
|
|
4
|
+
class Money {
|
|
5
|
+
constructor(money) {
|
|
6
|
+
this.amount = money.amount;
|
|
7
|
+
this.currency_code = money.currency_code;
|
|
8
|
+
}
|
|
9
|
+
toJson() {
|
|
10
|
+
return {
|
|
11
|
+
amount: this.amount,
|
|
12
|
+
currency_code: this.currency_code,
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
exports.Money = Money;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type IPaymentCard } from '../../types';
|
|
2
|
+
import { type PaymentCardType } from '../../enums';
|
|
3
|
+
export declare class PaymentCard {
|
|
4
|
+
readonly type: PaymentCardType;
|
|
5
|
+
readonly last4: string;
|
|
6
|
+
readonly expiry_month: unknown;
|
|
7
|
+
readonly expiry_year: unknown;
|
|
8
|
+
readonly cardholder_name: string;
|
|
9
|
+
constructor(paymentCard: IPaymentCard);
|
|
10
|
+
toJson(): IPaymentCard;
|
|
11
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PaymentCard = void 0;
|
|
4
|
+
class PaymentCard {
|
|
5
|
+
constructor(paymentCard) {
|
|
6
|
+
this.type = paymentCard.type;
|
|
7
|
+
this.last4 = paymentCard.last4;
|
|
8
|
+
this.expiry_month = paymentCard.expiry_month;
|
|
9
|
+
this.expiry_year = paymentCard.expiry_year;
|
|
10
|
+
this.cardholder_name = paymentCard.cardholder_name;
|
|
11
|
+
}
|
|
12
|
+
toJson() {
|
|
13
|
+
return {
|
|
14
|
+
type: this.type,
|
|
15
|
+
last4: this.last4,
|
|
16
|
+
expiry_month: this.expiry_month,
|
|
17
|
+
expiry_year: this.expiry_year,
|
|
18
|
+
cardholder_name: this.cardholder_name,
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
exports.PaymentCard = PaymentCard;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type IPaymentMethodDetails } from '../../types';
|
|
2
|
+
import { PaymentCard } from '../index';
|
|
3
|
+
import { type PaymentType } from '../../enums';
|
|
4
|
+
export declare class PaymentMethodDetails {
|
|
5
|
+
readonly type: PaymentType;
|
|
6
|
+
readonly card?: PaymentCard | undefined | null;
|
|
7
|
+
constructor(paymentMethodDetails: IPaymentMethodDetails);
|
|
8
|
+
toJson(): IPaymentMethodDetails;
|
|
9
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PaymentMethodDetails = void 0;
|
|
4
|
+
const index_1 = require("../index");
|
|
5
|
+
class PaymentMethodDetails {
|
|
6
|
+
constructor(paymentMethodDetails) {
|
|
7
|
+
this.type = paymentMethodDetails.type;
|
|
8
|
+
this.card = paymentMethodDetails.card ? new index_1.PaymentCard(paymentMethodDetails.card) : undefined;
|
|
9
|
+
}
|
|
10
|
+
toJson() {
|
|
11
|
+
return {
|
|
12
|
+
type: this.type,
|
|
13
|
+
card: this.card,
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
exports.PaymentMethodDetails = PaymentMethodDetails;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { type IPayoutTotalsAdjustment } from '../../types';
|
|
2
|
+
import { ChargebackFee } from '../index';
|
|
3
|
+
import { type PayoutCurrencyCode } from '../../enums';
|
|
4
|
+
export declare class PayoutTotalsAdjustment {
|
|
5
|
+
readonly subtotal: string;
|
|
6
|
+
readonly tax: string;
|
|
7
|
+
readonly total: string;
|
|
8
|
+
readonly fee: string;
|
|
9
|
+
readonly chargeback_fee?: ChargebackFee | undefined | null;
|
|
10
|
+
readonly earnings: string;
|
|
11
|
+
readonly currency_code: PayoutCurrencyCode;
|
|
12
|
+
constructor(payoutTotalsAdjustment: IPayoutTotalsAdjustment);
|
|
13
|
+
toJson(): IPayoutTotalsAdjustment;
|
|
14
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PayoutTotalsAdjustment = void 0;
|
|
4
|
+
const index_1 = require("../index");
|
|
5
|
+
class PayoutTotalsAdjustment {
|
|
6
|
+
constructor(payoutTotalsAdjustment) {
|
|
7
|
+
this.subtotal = payoutTotalsAdjustment.subtotal;
|
|
8
|
+
this.tax = payoutTotalsAdjustment.tax;
|
|
9
|
+
this.total = payoutTotalsAdjustment.total;
|
|
10
|
+
this.fee = payoutTotalsAdjustment.fee;
|
|
11
|
+
this.chargeback_fee = payoutTotalsAdjustment.chargeback_fee
|
|
12
|
+
? new index_1.ChargebackFee(payoutTotalsAdjustment.chargeback_fee)
|
|
13
|
+
: undefined;
|
|
14
|
+
this.earnings = payoutTotalsAdjustment.earnings;
|
|
15
|
+
this.currency_code = payoutTotalsAdjustment.currency_code;
|
|
16
|
+
}
|
|
17
|
+
toJson() {
|
|
18
|
+
return {
|
|
19
|
+
subtotal: this.subtotal,
|
|
20
|
+
tax: this.tax,
|
|
21
|
+
total: this.total,
|
|
22
|
+
fee: this.fee,
|
|
23
|
+
chargeback_fee: this.chargeback_fee,
|
|
24
|
+
earnings: this.earnings,
|
|
25
|
+
currency_code: this.currency_code,
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
exports.PayoutTotalsAdjustment = PayoutTotalsAdjustment;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type ITaxRatesUsed } from '../../types';
|
|
2
|
+
import { Totals } from '../index';
|
|
3
|
+
export declare class TaxRatesUsed {
|
|
4
|
+
readonly tax_rate: string;
|
|
5
|
+
readonly totals?: Totals | undefined;
|
|
6
|
+
constructor(taxRatesUsed: ITaxRatesUsed);
|
|
7
|
+
toJson(): ITaxRatesUsed;
|
|
8
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TaxRatesUsed = void 0;
|
|
4
|
+
const index_1 = require("../index");
|
|
5
|
+
class TaxRatesUsed {
|
|
6
|
+
constructor(taxRatesUsed) {
|
|
7
|
+
this.tax_rate = taxRatesUsed.tax_rate;
|
|
8
|
+
this.totals = taxRatesUsed.totals ? new index_1.Totals(taxRatesUsed.totals) : undefined;
|
|
9
|
+
}
|
|
10
|
+
toJson() {
|
|
11
|
+
return {
|
|
12
|
+
tax_rate: this.tax_rate,
|
|
13
|
+
totals: this.totals,
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
exports.TaxRatesUsed = TaxRatesUsed;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TimePeriod = void 0;
|
|
4
|
+
class TimePeriod {
|
|
5
|
+
constructor(timePeriod) {
|
|
6
|
+
this.interval = timePeriod.interval;
|
|
7
|
+
this.frequency = timePeriod.frequency;
|
|
8
|
+
}
|
|
9
|
+
toJson() {
|
|
10
|
+
return {
|
|
11
|
+
interval: this.interval,
|
|
12
|
+
frequency: this.frequency,
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
exports.TimePeriod = TimePeriod;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type ITotalAdjustments } from '../../types';
|
|
2
|
+
import { type CurrencyCode } from '../../enums';
|
|
3
|
+
export declare class TotalAdjustments {
|
|
4
|
+
readonly subtotal: string;
|
|
5
|
+
readonly tax: string;
|
|
6
|
+
readonly total: string;
|
|
7
|
+
readonly fee: string;
|
|
8
|
+
readonly earnings: string;
|
|
9
|
+
readonly currency_code: CurrencyCode;
|
|
10
|
+
constructor(totalAdjustments: ITotalAdjustments);
|
|
11
|
+
toJson(): ITotalAdjustments;
|
|
12
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TotalAdjustments = void 0;
|
|
4
|
+
class TotalAdjustments {
|
|
5
|
+
constructor(totalAdjustments) {
|
|
6
|
+
this.subtotal = totalAdjustments.subtotal;
|
|
7
|
+
this.tax = totalAdjustments.tax;
|
|
8
|
+
this.total = totalAdjustments.total;
|
|
9
|
+
this.fee = totalAdjustments.fee;
|
|
10
|
+
this.earnings = totalAdjustments.earnings;
|
|
11
|
+
this.currency_code = totalAdjustments.currency_code;
|
|
12
|
+
}
|
|
13
|
+
toJson() {
|
|
14
|
+
return {
|
|
15
|
+
subtotal: this.subtotal,
|
|
16
|
+
tax: this.tax,
|
|
17
|
+
total: this.total,
|
|
18
|
+
fee: this.fee,
|
|
19
|
+
earnings: this.earnings,
|
|
20
|
+
currency_code: this.currency_code,
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
exports.TotalAdjustments = TotalAdjustments;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Totals = void 0;
|
|
4
|
+
class Totals {
|
|
5
|
+
constructor(totals) {
|
|
6
|
+
this.subtotal = totals.subtotal;
|
|
7
|
+
this.discount = totals.discount;
|
|
8
|
+
this.tax = totals.tax;
|
|
9
|
+
this.total = totals.total;
|
|
10
|
+
}
|
|
11
|
+
toJson() {
|
|
12
|
+
return {
|
|
13
|
+
subtotal: this.subtotal,
|
|
14
|
+
discount: this.discount,
|
|
15
|
+
tax: this.tax,
|
|
16
|
+
total: this.total,
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
exports.Totals = Totals;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TransactionCheckout = void 0;
|
|
4
|
+
class TransactionCheckout {
|
|
5
|
+
constructor(transactionCheckout) {
|
|
6
|
+
this.url = transactionCheckout.url;
|
|
7
|
+
}
|
|
8
|
+
toJson() {
|
|
9
|
+
return {
|
|
10
|
+
url: this.url,
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
exports.TransactionCheckout = TransactionCheckout;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { type ITransactionPaymentAttempt } from '../../types';
|
|
2
|
+
import { PaymentMethodDetails } from '../index';
|
|
3
|
+
import { type PaymentAttemptStatus, type ErrorCode } from '../../enums';
|
|
4
|
+
export declare class TransactionPaymentAttempt {
|
|
5
|
+
readonly payment_attempt_id: string;
|
|
6
|
+
readonly stored_payment_method_id: string;
|
|
7
|
+
readonly amount: string;
|
|
8
|
+
readonly status: PaymentAttemptStatus;
|
|
9
|
+
readonly error_code?: ErrorCode | undefined | null;
|
|
10
|
+
readonly method_details?: PaymentMethodDetails | undefined | null;
|
|
11
|
+
readonly created_at: string;
|
|
12
|
+
readonly captured_at?: string | undefined | null;
|
|
13
|
+
constructor(transactionPaymentAttempt: ITransactionPaymentAttempt);
|
|
14
|
+
toJson(): ITransactionPaymentAttempt;
|
|
15
|
+
}
|