@paddle/paddle-node-sdk 0.1.8 → 0.2.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 +28 -2
- package/dist/entities/address/address-collection.d.ts +3 -3
- package/dist/entities/address/address.d.ts +12 -13
- package/dist/entities/address/address.js +10 -26
- package/dist/entities/adjustment/adjustment-collection.d.ts +3 -3
- package/dist/entities/adjustment/adjustment-item-totals.d.ts +0 -1
- package/dist/entities/adjustment/adjustment-item-totals.js +0 -7
- package/dist/entities/adjustment/adjustment-item.d.ts +6 -7
- package/dist/entities/adjustment/adjustment-item.js +4 -14
- package/dist/entities/adjustment/adjustment-proration.d.ts +3 -4
- package/dist/entities/adjustment/adjustment-proration.js +2 -8
- package/dist/entities/adjustment/adjustment-time-period.d.ts +4 -5
- package/dist/entities/adjustment/adjustment-time-period.js +2 -8
- package/dist/entities/adjustment/adjustment.d.ts +10 -11
- package/dist/entities/adjustment/adjustment.js +8 -26
- package/dist/entities/business/business-collection.d.ts +3 -3
- package/dist/entities/business/business.d.ts +8 -9
- package/dist/entities/business/business.js +6 -19
- package/dist/entities/business/contacts.d.ts +1 -2
- package/dist/entities/business/contacts.js +1 -7
- package/dist/entities/customer/credit-balance.d.ts +5 -6
- package/dist/entities/customer/credit-balance.js +2 -9
- package/dist/entities/customer/customer-balance.d.ts +1 -2
- package/dist/entities/customer/customer-balance.js +4 -11
- package/dist/entities/customer/customer-collection.d.ts +3 -3
- package/dist/entities/customer/customer.d.ts +7 -8
- package/dist/entities/customer/customer.js +5 -18
- package/dist/entities/discount/discount-collection.d.ts +3 -3
- package/dist/entities/discount/discount.d.ts +14 -13
- package/dist/entities/discount/discount.js +11 -30
- package/dist/entities/index.d.ts +1 -2
- package/dist/entities/price/price-collection.d.ts +3 -3
- package/dist/entities/price/price-quantity.d.ts +0 -1
- package/dist/entities/price/price-quantity.js +0 -6
- package/dist/entities/price/price-with-includes.d.ts +13 -12
- package/dist/entities/price/price-with-includes.js +10 -24
- package/dist/entities/price/price.d.ts +13 -12
- package/dist/entities/price/price.js +10 -23
- package/dist/entities/product/product-collection.d.ts +3 -3
- package/dist/entities/product/product-with-includes.d.ts +10 -10
- package/dist/entities/product/product-with-includes.js +7 -20
- package/dist/entities/product/product.d.ts +9 -9
- package/dist/entities/product/product.js +7 -17
- package/dist/entities/shared/adjustment-original-amount.d.ts +3 -4
- package/dist/entities/shared/adjustment-original-amount.js +1 -7
- package/dist/entities/shared/billing-details.d.ts +6 -7
- package/dist/entities/shared/billing-details.js +5 -12
- package/dist/entities/shared/chargeback-fee.d.ts +1 -2
- package/dist/entities/shared/chargeback-fee.js +1 -7
- package/dist/entities/shared/import-meta.d.ts +6 -0
- package/dist/entities/shared/import-meta.js +10 -0
- package/dist/entities/shared/index.d.ts +1 -0
- package/dist/entities/shared/index.js +1 -0
- package/dist/entities/shared/money.d.ts +3 -4
- package/dist/entities/shared/money.js +1 -7
- package/dist/entities/shared/payment-card.d.ts +5 -6
- package/dist/entities/shared/payment-card.js +3 -12
- package/dist/entities/shared/payment-method-details.d.ts +1 -2
- package/dist/entities/shared/payment-method-details.js +1 -7
- package/dist/entities/shared/payout-totals-adjustment.d.ts +4 -5
- package/dist/entities/shared/payout-totals-adjustment.js +3 -14
- package/dist/entities/shared/tax-rates-used.d.ts +4 -5
- package/dist/entities/shared/tax-rates-used.js +2 -8
- package/dist/entities/shared/time-period.d.ts +0 -1
- package/dist/entities/shared/time-period.js +0 -6
- package/dist/entities/shared/total-adjustments.d.ts +3 -4
- package/dist/entities/shared/total-adjustments.js +1 -11
- package/dist/entities/shared/totals.d.ts +0 -1
- package/dist/entities/shared/totals.js +0 -8
- package/dist/entities/shared/transaction-checkout.d.ts +1 -2
- package/dist/entities/shared/transaction-checkout.js +1 -6
- package/dist/entities/shared/transaction-payment-attempt.d.ts +8 -9
- package/dist/entities/shared/transaction-payment-attempt.js +7 -19
- package/dist/entities/shared/transaction-payout-totals-adjusted.d.ts +4 -5
- package/dist/entities/shared/transaction-payout-totals-adjusted.js +3 -14
- package/dist/entities/shared/transaction-payout-totals.d.ts +4 -5
- package/dist/entities/shared/transaction-payout-totals.js +2 -16
- package/dist/entities/shared/transaction-totals-adjusted.d.ts +6 -7
- package/dist/entities/shared/transaction-totals-adjusted.js +4 -15
- package/dist/entities/shared/transaction-totals.d.ts +6 -7
- package/dist/entities/shared/transaction-totals.js +4 -18
- package/dist/entities/shared/unit-price-override.d.ts +4 -5
- package/dist/entities/shared/unit-price-override.js +2 -8
- package/dist/entities/shared/unit-totals.d.ts +0 -1
- package/dist/entities/shared/unit-totals.js +0 -8
- package/dist/entities/subscription/index.d.ts +2 -0
- package/dist/entities/subscription/index.js +2 -0
- package/dist/entities/subscription/next-transaction-adjustment-item.d.ts +11 -0
- package/dist/entities/subscription/next-transaction-adjustment-item.js +14 -0
- package/dist/entities/subscription/next-transaction-adjustment-preview.d.ts +9 -0
- package/dist/entities/subscription/next-transaction-adjustment-preview.js +13 -0
- package/dist/entities/subscription/next-transaction.d.ts +5 -6
- package/dist/entities/subscription/next-transaction.js +2 -9
- package/dist/entities/subscription/subscription-collection.d.ts +3 -3
- package/dist/entities/subscription/subscription-discount.d.ts +4 -5
- package/dist/entities/subscription/subscription-discount.js +2 -9
- package/dist/entities/subscription/subscription-includes.d.ts +23 -24
- package/dist/entities/subscription/subscription-includes.js +20 -48
- package/dist/entities/subscription/subscription-item.d.ts +8 -9
- package/dist/entities/subscription/subscription-item.js +6 -21
- package/dist/entities/subscription/subscription-management.d.ts +3 -4
- package/dist/entities/subscription/subscription-management.js +3 -7
- package/dist/entities/subscription/subscription-preview-summary-result.d.ts +3 -4
- package/dist/entities/subscription/subscription-preview-summary-result.js +1 -8
- package/dist/entities/subscription/subscription-preview-update-summary.d.ts +0 -1
- package/dist/entities/subscription/subscription-preview-update-summary.js +0 -7
- package/dist/entities/subscription/subscription-preview.d.ts +25 -26
- package/dist/entities/subscription/subscription-preview.js +22 -51
- package/dist/entities/subscription/subscription-price.d.ts +7 -8
- package/dist/entities/subscription/subscription-price.js +5 -16
- package/dist/entities/subscription/subscription-scheduled-change.d.ts +4 -5
- package/dist/entities/subscription/subscription-scheduled-change.js +2 -9
- package/dist/entities/subscription/subscription-time-period.d.ts +4 -5
- package/dist/entities/subscription/subscription-time-period.js +2 -8
- package/dist/entities/subscription/subscription.d.ts +21 -22
- package/dist/entities/subscription/subscription.js +22 -48
- package/dist/entities/subscription/transaction-details-preview.d.ts +4 -5
- package/dist/entities/subscription/transaction-details-preview.js +2 -9
- package/dist/entities/subscription/transaction-line-item-preview.d.ts +5 -6
- package/dist/entities/subscription/transaction-line-item-preview.js +3 -13
- package/dist/entities/transaction/address-preview.d.ts +4 -5
- package/dist/entities/transaction/address-preview.js +2 -8
- package/dist/entities/transaction/adjustment-totals.d.ts +4 -5
- package/dist/entities/transaction/adjustment-totals.js +2 -13
- package/dist/entities/transaction/proration.d.ts +3 -4
- package/dist/entities/transaction/proration.js +1 -7
- package/dist/entities/transaction/transaction-adjustment-item.d.ts +7 -8
- package/dist/entities/transaction/transaction-adjustment-item.js +5 -17
- package/dist/entities/transaction/transaction-adjustment.d.ts +11 -12
- package/dist/entities/transaction/transaction-adjustment.js +9 -27
- package/dist/entities/transaction/transaction-collection.d.ts +3 -3
- package/dist/entities/transaction/transaction-details.d.ts +8 -9
- package/dist/entities/transaction/transaction-details.js +9 -19
- package/dist/entities/transaction/transaction-includes.d.ts +25 -26
- package/dist/entities/transaction/transaction-includes.js +26 -58
- package/dist/entities/transaction/transaction-invoice-pdf.d.ts +0 -1
- package/dist/entities/transaction/transaction-invoice-pdf.js +0 -5
- package/dist/entities/transaction/transaction-item-preview.d.ts +3 -4
- package/dist/entities/transaction/transaction-item-preview.js +2 -9
- package/dist/entities/transaction/transaction-item.d.ts +4 -6
- package/dist/entities/transaction/transaction-item.js +2 -11
- package/dist/entities/transaction/transaction-line-item.d.ts +8 -9
- package/dist/entities/transaction/transaction-line-item.js +6 -20
- package/dist/entities/transaction/transaction-preview.d.ts +10 -11
- package/dist/entities/transaction/transaction-preview.js +7 -21
- package/dist/entities/transaction/transaction-proration.d.ts +3 -4
- package/dist/entities/transaction/transaction-proration.js +2 -8
- package/dist/entities/transaction/transaction.d.ts +19 -20
- package/dist/entities/transaction/transaction.js +17 -45
- package/dist/entities/transaction/transactions-time-period.d.ts +4 -5
- package/dist/entities/transaction/transactions-time-period.js +2 -8
- package/dist/internal/api/case-helpers.d.ts +1 -0
- package/dist/internal/api/case-helpers.js +55 -0
- package/dist/internal/api/client.js +3 -2
- package/dist/internal/api/index.d.ts +2 -0
- package/dist/internal/api/index.js +7 -0
- package/dist/internal/base/path-parameters.d.ts +2 -2
- package/dist/internal/base/query-parameters.js +5 -1
- package/dist/internal/errors/generic.d.ts +6 -7
- package/dist/internal/errors/generic.js +1 -10
- package/dist/internal/index.d.ts +1 -1
- package/dist/internal/index.js +15 -3
- package/dist/resources/addresses/operations/create-address-request-body.d.ts +8 -8
- package/dist/resources/addresses/operations/index.d.ts +0 -4
- package/dist/resources/addresses/operations/index.js +0 -4
- package/dist/resources/addresses/operations/list-address-query-parameters.d.ts +2 -2
- package/dist/resources/addresses/operations/update-address-request-body.d.ts +8 -8
- package/dist/resources/adjustments/operations/create-adjustment-request-body.d.ts +3 -3
- package/dist/resources/adjustments/operations/list-adjustment-query-parameters.d.ts +5 -5
- package/dist/resources/businesses/operations/create-business-request-body.d.ts +4 -4
- package/dist/resources/businesses/operations/index.d.ts +0 -4
- package/dist/resources/businesses/operations/index.js +0 -4
- package/dist/resources/businesses/operations/list-business-query-parameters.d.ts +2 -2
- package/dist/resources/businesses/operations/update-business-request-body.d.ts +4 -4
- package/dist/resources/customers/index.d.ts +2 -2
- package/dist/resources/customers/index.js +1 -1
- package/dist/resources/customers/operations/create-customer-request-body.d.ts +2 -2
- package/dist/resources/customers/operations/get-credit-balance-query-parameters.d.ts +1 -1
- package/dist/resources/customers/operations/index.d.ts +0 -3
- package/dist/resources/customers/operations/index.js +0 -3
- package/dist/resources/customers/operations/list-customer-query-parameters.d.ts +2 -2
- package/dist/resources/customers/operations/update-customer-request-body.d.ts +2 -2
- package/dist/resources/discounts/index.d.ts +1 -1
- package/dist/resources/discounts/operations/create-discount-request-body.d.ts +9 -7
- package/dist/resources/discounts/operations/index.d.ts +0 -2
- package/dist/resources/discounts/operations/index.js +0 -2
- package/dist/resources/discounts/operations/list-discount-query-parameters.d.ts +2 -2
- package/dist/resources/discounts/operations/update-discount-request-body.d.ts +11 -9
- package/dist/resources/prices/index.d.ts +1 -1
- package/dist/resources/prices/operations/create-price-request-body.d.ts +10 -9
- package/dist/resources/prices/operations/index.d.ts +0 -2
- package/dist/resources/prices/operations/index.js +0 -2
- package/dist/resources/prices/operations/list-price-query-parameters.d.ts +3 -3
- package/dist/resources/prices/operations/update-price-request-body.d.ts +9 -8
- package/dist/resources/products/operations/create-product-request-body.d.ts +4 -4
- package/dist/resources/products/operations/index.d.ts +0 -2
- package/dist/resources/products/operations/index.js +0 -2
- package/dist/resources/products/operations/list-product-query-parameters.d.ts +3 -3
- package/dist/resources/products/operations/update-product-request-body.d.ts +4 -4
- package/dist/resources/subscriptions/index.d.ts +1 -1
- package/dist/resources/subscriptions/operations/cancel-subscription-request-object.d.ts +1 -1
- package/dist/resources/subscriptions/operations/create-subscription-charge-request-object.d.ts +3 -6
- package/dist/resources/subscriptions/operations/index.d.ts +0 -2
- package/dist/resources/subscriptions/operations/index.js +0 -2
- package/dist/resources/subscriptions/operations/list-subscription-query-parameters.d.ts +7 -7
- package/dist/resources/subscriptions/operations/pause-subscription-request-object.d.ts +2 -2
- package/dist/resources/subscriptions/operations/resume-subscription-request-object.d.ts +1 -1
- package/dist/resources/subscriptions/operations/update-subscription-request-body.d.ts +17 -12
- package/dist/resources/transactions/operations/create-transaction-request-body.d.ts +13 -18
- package/dist/resources/transactions/operations/index.d.ts +0 -2
- package/dist/resources/transactions/operations/index.js +0 -2
- package/dist/resources/transactions/operations/list-transaction-query-parameters.d.ts +21 -21
- package/dist/resources/transactions/operations/transaction-preview-request-body.d.ts +14 -10
- package/dist/resources/transactions/operations/update-transaction-request-body.d.ts +12 -17
- package/dist/types/address/address-response.d.ts +16 -0
- package/dist/types/address/index.d.ts +1 -1
- package/dist/types/address/index.js +1 -1
- package/dist/types/adjustment/adjustment-item-response.d.ts +10 -0
- package/dist/types/adjustment/{adjustment.d.ts → adjustment-response.d.ts} +6 -6
- package/dist/types/adjustment/adjustments-proration-response.d.ts +5 -0
- package/dist/types/adjustment/adjustments-time-period-response.d.ts +4 -0
- package/dist/types/adjustment/index.d.ts +4 -4
- package/dist/types/adjustment/index.js +4 -4
- package/dist/types/business/{business.d.ts → business-response.d.ts} +5 -5
- package/dist/types/business/businesses-contacts.d.ts +1 -1
- package/dist/types/business/index.d.ts +1 -1
- package/dist/types/business/index.js +1 -1
- package/dist/types/customer/credit-balance-response.d.ts +7 -0
- package/dist/types/customer/{customer.d.ts → customer-response.d.ts} +3 -3
- package/dist/types/customer/index.d.ts +2 -2
- package/dist/types/customer/index.js +2 -2
- package/dist/types/discount/discount-response.d.ts +21 -0
- package/dist/types/discount/index.d.ts +1 -1
- package/dist/types/discount/index.js +1 -1
- package/dist/types/price/index.d.ts +1 -1
- package/dist/types/price/index.js +1 -1
- package/dist/types/price/price-response.d.ts +18 -0
- package/dist/types/product/index.d.ts +1 -1
- package/dist/types/product/index.js +1 -1
- package/dist/types/product/product-response.d.ts +14 -0
- package/dist/types/shared/{adjustment-original-amount.d.ts → adjustment-original-amount-response.d.ts} +1 -1
- package/dist/types/shared/billing-details-create.d.ts +7 -0
- package/dist/types/shared/billing-details-response.d.ts +7 -0
- package/dist/types/shared/billing-details-update.d.ts +4 -4
- package/dist/types/shared/chargeback-fee.d.ts +2 -2
- package/dist/types/shared/custom-data.d.ts +1 -1
- package/dist/types/shared/import-meta-response.d.ts +4 -0
- package/dist/types/shared/index.d.ts +19 -15
- package/dist/types/shared/index.js +19 -15
- package/dist/types/shared/money-response.d.ts +5 -0
- package/dist/types/shared/money.d.ts +1 -1
- package/dist/types/shared/{payment-card.d.ts → payment-card-response.d.ts} +3 -3
- package/dist/types/shared/payment-method-details.d.ts +2 -2
- package/dist/types/shared/{payout-totals-adjustment.d.ts → payout-totals-adjustment-response.d.ts} +2 -2
- package/dist/types/shared/shared-price-response.d.ts +17 -0
- package/dist/types/shared/shared-product-response.d.ts +13 -0
- package/dist/types/shared/tax-rates-used-response.d.ts +5 -0
- package/dist/types/shared/{total-adjustments.d.ts → total-adjustments-response.d.ts} +1 -1
- package/dist/types/shared/transaction-checkout.d.ts +1 -1
- package/dist/types/shared/transaction-details-preview-response.d.ts +6 -0
- package/dist/types/shared/transaction-line-item-preview-response.d.ts +9 -0
- package/dist/types/shared/{transaction-payment-attempt.d.ts → transaction-payment-attempt-response.d.ts} +4 -4
- package/dist/types/shared/{transaction-payout-totals-adjusted.d.ts → transaction-payout-totals-adjusted-response.d.ts} +2 -2
- package/dist/types/shared/{transaction-payout-totals.d.ts → transaction-payout-totals-response.d.ts} +1 -1
- package/dist/types/shared/{transaction-totals-adjusted.d.ts → transaction-totals-adjusted-response.d.ts} +3 -3
- package/dist/types/shared/{transaction-totals.d.ts → transaction-totals-response.d.ts} +3 -3
- package/dist/types/shared/unit-price-override-response.d.ts +6 -0
- package/dist/types/shared/unit-price-override.d.ts +2 -2
- package/dist/types/subscription/index.d.ts +10 -10
- package/dist/types/subscription/index.js +10 -10
- package/dist/types/subscription/next-transaction-response.d.ts +11 -0
- package/dist/types/subscription/{subscription-discount.d.ts → subscription-discount-response.d.ts} +1 -1
- package/dist/types/subscription/subscription-item-response.d.ts +13 -0
- package/dist/types/subscription/subscription-management-response.d.ts +4 -0
- package/dist/types/subscription/subscription-preview-response.d.ts +29 -0
- package/dist/types/subscription/subscription-preview-update-summary.d.ts +4 -4
- package/dist/types/subscription/subscription-price-response.d.ts +11 -0
- package/dist/types/subscription/subscription-response.d.ts +17 -17
- package/dist/types/subscription/subscription-result-response.d.ts +4 -0
- package/dist/types/subscription/{subscription-scheduled-change.d.ts → subscription-scheduled-change-response.d.ts} +2 -2
- package/dist/types/subscription/subscription-time-period-response.d.ts +4 -0
- package/dist/types/subscription/subscription-update-item.d.ts +2 -2
- package/dist/types/transaction/{adjustment-totals.d.ts → adjustment-totals-response.d.ts} +2 -2
- package/dist/types/transaction/index.d.ts +10 -8
- package/dist/types/transaction/index.js +10 -8
- package/dist/types/transaction/transaction-adjustment-item-response.d.ts +10 -0
- package/dist/types/transaction/transaction-adjustment-response.d.ts +18 -0
- package/dist/types/transaction/transaction-details-response.d.ts +9 -0
- package/dist/types/transaction/transaction-item-response.d.ts +7 -0
- package/dist/types/transaction/transaction-item.d.ts +1 -4
- package/dist/types/transaction/transaction-line-item-response.d.ts +11 -0
- package/dist/types/transaction/transaction-preview-item.d.ts +2 -2
- package/dist/types/transaction/transaction-preview-response.d.ts +27 -0
- package/dist/types/transaction/transaction-proration-response.d.ts +5 -0
- package/dist/types/transaction/transaction-response.d.ts +32 -0
- package/dist/types/transaction/transactions-time-period-response.d.ts +4 -0
- package/dist/types/transaction/transactions-time-period.d.ts +2 -2
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -1
- package/dist/resources/addresses/operations/create-address-path-parameters.d.ts +0 -3
- package/dist/resources/addresses/operations/get-address-path-parameters.d.ts +0 -4
- package/dist/resources/addresses/operations/list-address-path-parameters.d.ts +0 -3
- package/dist/resources/addresses/operations/update-address-path-parameters.d.ts +0 -4
- package/dist/resources/businesses/operations/create-business-path-parameters.d.ts +0 -3
- package/dist/resources/businesses/operations/get-business-path-parameters.d.ts +0 -4
- package/dist/resources/businesses/operations/list-business-path-parameters.d.ts +0 -3
- package/dist/resources/businesses/operations/update-business-path-parameters.d.ts +0 -4
- package/dist/resources/customers/operations/get-credit-balance-path-parameters.d.ts +0 -3
- package/dist/resources/customers/operations/get-customer-path-parameters.d.ts +0 -3
- package/dist/resources/customers/operations/update-customer-path-parameters.d.ts +0 -3
- package/dist/resources/discounts/operations/get-discount-path-parameters.d.ts +0 -3
- package/dist/resources/discounts/operations/update-discount-path-parameters.d.ts +0 -3
- package/dist/resources/prices/operations/get-price-path-parameters.d.ts +0 -3
- package/dist/resources/prices/operations/update-price-path-parameters.d.ts +0 -3
- package/dist/resources/products/operations/get-product-path-parameters.d.ts +0 -3
- package/dist/resources/products/operations/update-product-path-parameters.d.ts +0 -3
- package/dist/resources/subscriptions/operations/get-subscription-path-parameters.d.ts +0 -3
- package/dist/resources/subscriptions/operations/update-subscription-path-parameters.d.ts +0 -3
- package/dist/resources/transactions/operations/get-transaction-path-parameters.d.ts +0 -3
- package/dist/resources/transactions/operations/update-transaction-path-parameters.d.ts +0 -3
- package/dist/types/address/address.d.ts +0 -16
- package/dist/types/adjustment/adjustment-item.d.ts +0 -10
- package/dist/types/adjustment/adjustments-proration.d.ts +0 -5
- package/dist/types/adjustment/adjustments-time-period.d.ts +0 -4
- package/dist/types/customer/credit-balance.d.ts +0 -7
- package/dist/types/discount/discount.d.ts +0 -19
- package/dist/types/price/price.d.ts +0 -16
- package/dist/types/product/product.d.ts +0 -13
- package/dist/types/shared/billing-details.d.ts +0 -7
- package/dist/types/shared/shared-price.d.ts +0 -15
- package/dist/types/shared/shared-product.d.ts +0 -12
- package/dist/types/shared/tax-rates-used.d.ts +0 -5
- package/dist/types/shared/transaction-details-preview.d.ts +0 -6
- package/dist/types/shared/transaction-line-item-preview.d.ts +0 -9
- package/dist/types/subscription/next-transaction.d.ts +0 -6
- package/dist/types/subscription/subscription-item.d.ts +0 -13
- package/dist/types/subscription/subscription-item.js +0 -2
- package/dist/types/subscription/subscription-management.d.ts +0 -4
- package/dist/types/subscription/subscription-management.js +0 -2
- package/dist/types/subscription/subscription-preview.d.ts +0 -29
- package/dist/types/subscription/subscription-preview.js +0 -2
- package/dist/types/subscription/subscription-price.d.ts +0 -11
- package/dist/types/subscription/subscription-price.js +0 -2
- package/dist/types/subscription/subscription-result.d.ts +0 -4
- package/dist/types/subscription/subscription-result.js +0 -2
- package/dist/types/subscription/subscription-scheduled-change.js +0 -2
- package/dist/types/subscription/subscription-time-period.d.ts +0 -4
- package/dist/types/subscription/subscription-time-period.js +0 -2
- package/dist/types/transaction/adjustment-totals.js +0 -2
- package/dist/types/transaction/transaction-adjustment-item.d.ts +0 -10
- package/dist/types/transaction/transaction-adjustment-item.js +0 -2
- package/dist/types/transaction/transaction-adjustment.d.ts +0 -18
- package/dist/types/transaction/transaction-adjustment.js +0 -2
- package/dist/types/transaction/transaction-details.d.ts +0 -9
- package/dist/types/transaction/transaction-details.js +0 -2
- package/dist/types/transaction/transaction-line-item.d.ts +0 -11
- package/dist/types/transaction/transaction-line-item.js +0 -2
- package/dist/types/transaction/transaction-preview.d.ts +0 -27
- package/dist/types/transaction/transaction-preview.js +0 -2
- package/dist/types/transaction/transaction-proration.d.ts +0 -5
- package/dist/types/transaction/transaction-proration.js +0 -2
- package/dist/types/transaction/transaction.d.ts +0 -32
- package/dist/types/transaction/transaction.js +0 -2
- /package/dist/{resources/addresses/operations/create-address-path-parameters.js → types/address/address-response.js} +0 -0
- /package/dist/{resources/addresses/operations/get-address-path-parameters.js → types/adjustment/adjustment-item-response.js} +0 -0
- /package/dist/{resources/addresses/operations/list-address-path-parameters.js → types/adjustment/adjustment-response.js} +0 -0
- /package/dist/{resources/addresses/operations/update-address-path-parameters.js → types/adjustment/adjustments-proration-response.js} +0 -0
- /package/dist/{resources/businesses/operations/create-business-path-parameters.js → types/adjustment/adjustments-time-period-response.js} +0 -0
- /package/dist/{resources/businesses/operations/get-business-path-parameters.js → types/business/business-response.js} +0 -0
- /package/dist/{resources/businesses/operations/list-business-path-parameters.js → types/customer/credit-balance-response.js} +0 -0
- /package/dist/{resources/businesses/operations/update-business-path-parameters.js → types/customer/customer-response.js} +0 -0
- /package/dist/{resources/customers/operations/get-credit-balance-path-parameters.js → types/discount/discount-response.js} +0 -0
- /package/dist/{resources/customers/operations/get-customer-path-parameters.js → types/price/price-response.js} +0 -0
- /package/dist/{resources/customers/operations/update-customer-path-parameters.js → types/product/product-response.js} +0 -0
- /package/dist/{resources/discounts/operations/get-discount-path-parameters.js → types/shared/adjustment-original-amount-response.js} +0 -0
- /package/dist/{resources/discounts/operations/update-discount-path-parameters.js → types/shared/billing-details-create.js} +0 -0
- /package/dist/{resources/prices/operations/get-price-path-parameters.js → types/shared/billing-details-response.js} +0 -0
- /package/dist/{resources/prices/operations/update-price-path-parameters.js → types/shared/import-meta-response.js} +0 -0
- /package/dist/{resources/products/operations/get-product-path-parameters.js → types/shared/money-response.js} +0 -0
- /package/dist/{resources/products/operations/update-product-path-parameters.js → types/shared/payment-card-response.js} +0 -0
- /package/dist/{resources/subscriptions/operations/get-subscription-path-parameters.js → types/shared/payout-totals-adjustment-response.js} +0 -0
- /package/dist/{resources/subscriptions/operations/update-subscription-path-parameters.js → types/shared/shared-price-response.js} +0 -0
- /package/dist/{resources/transactions/operations/get-transaction-path-parameters.js → types/shared/shared-product-response.js} +0 -0
- /package/dist/{resources/transactions/operations/update-transaction-path-parameters.js → types/shared/tax-rates-used-response.js} +0 -0
- /package/dist/types/{address/address.js → shared/total-adjustments-response.js} +0 -0
- /package/dist/types/{adjustment/adjustment-item.js → shared/transaction-details-preview-response.js} +0 -0
- /package/dist/types/{adjustment/adjustment.js → shared/transaction-line-item-preview-response.js} +0 -0
- /package/dist/types/{adjustment/adjustments-proration.js → shared/transaction-payment-attempt-response.js} +0 -0
- /package/dist/types/{adjustment/adjustments-time-period.js → shared/transaction-payout-totals-adjusted-response.js} +0 -0
- /package/dist/types/{business/business.js → shared/transaction-payout-totals-response.js} +0 -0
- /package/dist/types/{customer/credit-balance.js → shared/transaction-totals-adjusted-response.js} +0 -0
- /package/dist/types/{customer/customer.js → shared/transaction-totals-response.js} +0 -0
- /package/dist/types/{discount/discount.js → shared/unit-price-override-response.js} +0 -0
- /package/dist/types/{price/price.js → subscription/next-transaction-response.js} +0 -0
- /package/dist/types/{product/product.js → subscription/subscription-discount-response.js} +0 -0
- /package/dist/types/{shared/adjustment-original-amount.js → subscription/subscription-item-response.js} +0 -0
- /package/dist/types/{shared/billing-details.js → subscription/subscription-management-response.js} +0 -0
- /package/dist/types/{shared/payment-card.js → subscription/subscription-preview-response.js} +0 -0
- /package/dist/types/{shared/payout-totals-adjustment.js → subscription/subscription-price-response.js} +0 -0
- /package/dist/types/{shared/shared-price.js → subscription/subscription-result-response.js} +0 -0
- /package/dist/types/{shared/shared-product.js → subscription/subscription-scheduled-change-response.js} +0 -0
- /package/dist/types/{shared/tax-rates-used.js → subscription/subscription-time-period-response.js} +0 -0
- /package/dist/types/{shared/total-adjustments.js → transaction/adjustment-totals-response.js} +0 -0
- /package/dist/types/{shared/transaction-details-preview.js → transaction/transaction-adjustment-item-response.js} +0 -0
- /package/dist/types/{shared/transaction-line-item-preview.js → transaction/transaction-adjustment-response.js} +0 -0
- /package/dist/types/{shared/transaction-payment-attempt.js → transaction/transaction-details-response.js} +0 -0
- /package/dist/types/{shared/transaction-payout-totals-adjusted.js → transaction/transaction-item-response.js} +0 -0
- /package/dist/types/{shared/transaction-payout-totals.js → transaction/transaction-line-item-response.js} +0 -0
- /package/dist/types/{shared/transaction-totals-adjusted.js → transaction/transaction-preview-response.js} +0 -0
- /package/dist/types/{shared/transaction-totals.js → transaction/transaction-proration-response.js} +0 -0
- /package/dist/types/{subscription/next-transaction.js → transaction/transaction-response.js} +0 -0
- /package/dist/types/{subscription/subscription-discount.js → transaction/transactions-time-period-response.js} +0 -0
|
@@ -1,21 +1,16 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type IBillingDetailsCreate, type ICustomData, type ITransactionCheckout, type ITransactionItem, type ITransactionsTimePeriod } from '../../../types';
|
|
2
2
|
import { type CollectionMode, type CurrencyCode, type TransactionStatus } from '../../../enums';
|
|
3
|
-
interface CreateTransactionItem {
|
|
4
|
-
price_id: string;
|
|
5
|
-
quantity: number;
|
|
6
|
-
}
|
|
7
3
|
export interface CreateTransactionRequestBody {
|
|
8
|
-
items:
|
|
9
|
-
status?: TransactionStatus
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
checkout?: ITransactionCheckout
|
|
4
|
+
items: ITransactionItem[];
|
|
5
|
+
status?: TransactionStatus;
|
|
6
|
+
customerId?: string | null;
|
|
7
|
+
addressId?: string | null;
|
|
8
|
+
businessId?: string | null;
|
|
9
|
+
customData?: ICustomData | null;
|
|
10
|
+
currencyCode?: CurrencyCode;
|
|
11
|
+
collectionMode?: CollectionMode;
|
|
12
|
+
discountId?: string | null;
|
|
13
|
+
billingDetails?: IBillingDetailsCreate | null;
|
|
14
|
+
billingPeriod?: ITransactionsTimePeriod | null;
|
|
15
|
+
checkout?: ITransactionCheckout;
|
|
20
16
|
}
|
|
21
|
-
export {};
|
|
@@ -2,7 +2,5 @@ export * from './list-transaction-query-parameters';
|
|
|
2
2
|
export * from './create-transaction-query-parameters';
|
|
3
3
|
export * from './create-transaction-request-body';
|
|
4
4
|
export * from './get-transaction-query-parameters';
|
|
5
|
-
export * from './get-transaction-path-parameters';
|
|
6
|
-
export * from './update-transaction-path-parameters';
|
|
7
5
|
export * from './update-transaction-request-body';
|
|
8
6
|
export * from './transaction-preview-request-body';
|
|
@@ -18,7 +18,5 @@ __exportStar(require("./list-transaction-query-parameters"), exports);
|
|
|
18
18
|
__exportStar(require("./create-transaction-query-parameters"), exports);
|
|
19
19
|
__exportStar(require("./create-transaction-request-body"), exports);
|
|
20
20
|
__exportStar(require("./get-transaction-query-parameters"), exports);
|
|
21
|
-
__exportStar(require("./get-transaction-path-parameters"), exports);
|
|
22
|
-
__exportStar(require("./update-transaction-path-parameters"), exports);
|
|
23
21
|
__exportStar(require("./update-transaction-request-body"), exports);
|
|
24
22
|
__exportStar(require("./transaction-preview-request-body"), exports);
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import { type CollectionMode, type TransactionStatus } from '../../../enums';
|
|
2
2
|
export interface ListTransactionQueryParameters {
|
|
3
3
|
after?: string;
|
|
4
|
-
|
|
5
|
-
'
|
|
6
|
-
'
|
|
7
|
-
'
|
|
8
|
-
'
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
'
|
|
12
|
-
'
|
|
13
|
-
'
|
|
14
|
-
'
|
|
15
|
-
|
|
4
|
+
billedAt?: string;
|
|
5
|
+
'billedAt[LT]'?: string;
|
|
6
|
+
'billedAt[GT]'?: string;
|
|
7
|
+
'billedAt[LTE]'?: string;
|
|
8
|
+
'billedAt[GTE]'?: string;
|
|
9
|
+
collectionMode?: CollectionMode;
|
|
10
|
+
createdAt?: string;
|
|
11
|
+
'createdAt[LT]'?: string;
|
|
12
|
+
'createdAt[GT]'?: string;
|
|
13
|
+
'createdAt[LTE]'?: string;
|
|
14
|
+
'createdAt[GTE]'?: string;
|
|
15
|
+
customerId?: string[];
|
|
16
16
|
id?: string[];
|
|
17
17
|
include?: Array<'address' | 'adjustment' | 'adjustments_totals' | 'business' | 'customer' | 'discount'>;
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
invoiceNumber?: string[];
|
|
19
|
+
orderBy?: string;
|
|
20
20
|
status?: TransactionStatus[];
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
'
|
|
25
|
-
'
|
|
26
|
-
'
|
|
27
|
-
'
|
|
21
|
+
subscriptionId?: string[];
|
|
22
|
+
perPage?: number;
|
|
23
|
+
updatedAt?: string;
|
|
24
|
+
'updatedAt[LT]'?: string;
|
|
25
|
+
'updatedAt[GT]'?: string;
|
|
26
|
+
'updatedAt[LTE]'?: string;
|
|
27
|
+
'updatedAt[GTE]'?: string;
|
|
28
28
|
}
|
|
@@ -1,17 +1,21 @@
|
|
|
1
1
|
import { type CountryCode, type CurrencyCode } from '../../../enums';
|
|
2
2
|
import { type ITransactionItemPreviewRequest } from '../../../types';
|
|
3
|
-
export interface
|
|
4
|
-
postal_code?: string | null
|
|
3
|
+
export interface IAddressPreviewResponse {
|
|
4
|
+
postal_code?: string | null;
|
|
5
5
|
country_code: CountryCode;
|
|
6
6
|
}
|
|
7
|
+
export interface IAddressPreview {
|
|
8
|
+
postalCode?: string | null;
|
|
9
|
+
countryCode: CountryCode;
|
|
10
|
+
}
|
|
7
11
|
export interface TransactionPreviewRequestBody {
|
|
8
12
|
items: ITransactionItemPreviewRequest[];
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
address?: IAddressPreview | null
|
|
16
|
-
|
|
13
|
+
customerId?: string | null;
|
|
14
|
+
addressId?: string | null;
|
|
15
|
+
businessId?: string | null;
|
|
16
|
+
currencyCode?: CurrencyCode | null;
|
|
17
|
+
discountId?: string | null;
|
|
18
|
+
customerIpAddress?: string | null;
|
|
19
|
+
address?: IAddressPreview | null;
|
|
20
|
+
ignoreTrials?: boolean | null;
|
|
17
21
|
}
|
|
@@ -1,21 +1,16 @@
|
|
|
1
|
-
import { type IBillingDetailsUpdate, type ITransactionCheckout, type ICustomData, type ITransactionsTimePeriod } from '../../../types';
|
|
1
|
+
import { type IBillingDetailsUpdate, type ITransactionCheckout, type ICustomData, type ITransactionsTimePeriod, type ITransactionItem } from '../../../types';
|
|
2
2
|
import { type CollectionMode, type CurrencyCode, type TransactionStatus } from '../../../enums';
|
|
3
|
-
interface UpdateTransactionItem {
|
|
4
|
-
price_id: string;
|
|
5
|
-
quantity: number;
|
|
6
|
-
}
|
|
7
3
|
export interface UpdateTransactionRequestBody {
|
|
8
4
|
status?: TransactionStatus;
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
items?:
|
|
19
|
-
checkout?: ITransactionCheckout |
|
|
5
|
+
customerId?: string | null;
|
|
6
|
+
addressId?: string | null;
|
|
7
|
+
businessId?: string | null;
|
|
8
|
+
customData?: ICustomData | null;
|
|
9
|
+
currencyCode?: CurrencyCode;
|
|
10
|
+
collectionMode?: CollectionMode;
|
|
11
|
+
discountId?: string | null;
|
|
12
|
+
billingDetails?: IBillingDetailsUpdate | null;
|
|
13
|
+
billingPeriod?: ITransactionsTimePeriod | null;
|
|
14
|
+
items?: ITransactionItem[];
|
|
15
|
+
checkout?: ITransactionCheckout | null;
|
|
20
16
|
}
|
|
21
|
-
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { type ICustomData } from '../index';
|
|
2
|
+
import { type CountryCode, type Status } from '../../enums';
|
|
3
|
+
export interface IAddressResponse {
|
|
4
|
+
id: string;
|
|
5
|
+
description?: string | null;
|
|
6
|
+
first_line?: string | null;
|
|
7
|
+
second_line?: string | null;
|
|
8
|
+
city?: string | null;
|
|
9
|
+
postal_code?: string | null;
|
|
10
|
+
region?: string | null;
|
|
11
|
+
country_code: CountryCode;
|
|
12
|
+
custom_data?: ICustomData | null;
|
|
13
|
+
status: Status;
|
|
14
|
+
created_at: string;
|
|
15
|
+
updated_at: string;
|
|
16
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './address';
|
|
1
|
+
export * from './address-response';
|
|
@@ -14,4 +14,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./address"), exports);
|
|
17
|
+
__exportStar(require("./address-response"), exports);
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type IAdjustmentItemTotals, type IAdjustmentsProrationResponse } from '../index';
|
|
2
|
+
import { type AdjustmentType } from '../../enums';
|
|
3
|
+
export interface IAdjustmentItemResponse {
|
|
4
|
+
id: string;
|
|
5
|
+
item_id: string;
|
|
6
|
+
type: AdjustmentType;
|
|
7
|
+
amount?: string | null;
|
|
8
|
+
proration?: IAdjustmentsProrationResponse | null;
|
|
9
|
+
totals?: IAdjustmentItemTotals | null;
|
|
10
|
+
}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type IAdjustmentItemResponse, type ITotalAdjustmentsResponse, type IPayoutTotalsAdjustmentResponse } from '../index';
|
|
2
2
|
import { type AdjustmentAction, type CurrencyCode, type AdjustmentStatus } from '../../enums';
|
|
3
|
-
export interface
|
|
3
|
+
export interface IAdjustmentResponse {
|
|
4
4
|
id: string;
|
|
5
5
|
action: AdjustmentAction;
|
|
6
6
|
transaction_id: string;
|
|
7
|
-
subscription_id?: string |
|
|
7
|
+
subscription_id?: string | null;
|
|
8
8
|
customer_id: string;
|
|
9
9
|
reason: string;
|
|
10
10
|
credit_applied_to_balance: boolean;
|
|
11
11
|
currency_code: CurrencyCode;
|
|
12
12
|
status: AdjustmentStatus;
|
|
13
|
-
items:
|
|
14
|
-
totals:
|
|
15
|
-
payout_totals?:
|
|
13
|
+
items: IAdjustmentItemResponse[];
|
|
14
|
+
totals: ITotalAdjustmentsResponse;
|
|
15
|
+
payout_totals?: IPayoutTotalsAdjustmentResponse | null;
|
|
16
16
|
created_at: string;
|
|
17
17
|
updated_at: string;
|
|
18
18
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from './adjustments-time-period';
|
|
2
|
-
export * from './adjustments-proration';
|
|
3
|
-
export * from './adjustment-item';
|
|
4
|
-
export * from './adjustment';
|
|
1
|
+
export * from './adjustments-time-period-response';
|
|
2
|
+
export * from './adjustments-proration-response';
|
|
3
|
+
export * from './adjustment-item-response';
|
|
4
|
+
export * from './adjustment-response';
|
|
@@ -14,7 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./adjustments-time-period"), exports);
|
|
18
|
-
__exportStar(require("./adjustments-proration"), exports);
|
|
19
|
-
__exportStar(require("./adjustment-item"), exports);
|
|
20
|
-
__exportStar(require("./adjustment"), exports);
|
|
17
|
+
__exportStar(require("./adjustments-time-period-response"), exports);
|
|
18
|
+
__exportStar(require("./adjustments-proration-response"), exports);
|
|
19
|
+
__exportStar(require("./adjustment-item-response"), exports);
|
|
20
|
+
__exportStar(require("./adjustment-response"), exports);
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { type IBusinessContacts, type ICustomData } from '../index';
|
|
2
2
|
import { type Status } from '../../enums';
|
|
3
|
-
export interface
|
|
3
|
+
export interface IBusinessResponse {
|
|
4
4
|
id: string;
|
|
5
5
|
name: string;
|
|
6
|
-
company_number?: string |
|
|
7
|
-
tax_identifier?: string |
|
|
6
|
+
company_number?: string | null;
|
|
7
|
+
tax_identifier?: string | null;
|
|
8
8
|
status: Status;
|
|
9
|
-
contacts
|
|
9
|
+
contacts?: IBusinessContacts[] | null;
|
|
10
10
|
created_at: string;
|
|
11
11
|
updated_at: string;
|
|
12
|
-
custom_data?: ICustomData |
|
|
12
|
+
custom_data?: ICustomData | null;
|
|
13
13
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export * from './businesses-contacts';
|
|
2
|
-
export * from './business';
|
|
2
|
+
export * from './business-response';
|
|
@@ -15,4 +15,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./businesses-contacts"), exports);
|
|
18
|
-
__exportStar(require("./business"), exports);
|
|
18
|
+
__exportStar(require("./business-response"), exports);
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { type ICustomData } from '../index';
|
|
2
2
|
import { type Status } from '../../enums';
|
|
3
|
-
export interface
|
|
3
|
+
export interface ICustomerResponse {
|
|
4
4
|
id: string;
|
|
5
|
-
name?: string |
|
|
5
|
+
name?: string | null;
|
|
6
6
|
email: string;
|
|
7
7
|
marketing_consent: boolean;
|
|
8
8
|
status: Status;
|
|
9
|
-
custom_data?: ICustomData |
|
|
9
|
+
custom_data?: ICustomData | null;
|
|
10
10
|
locale: string;
|
|
11
11
|
created_at: string;
|
|
12
12
|
updated_at: string;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './customer';
|
|
2
|
-
export * from './credit-balance';
|
|
1
|
+
export * from './customer-response';
|
|
2
|
+
export * from './credit-balance-response';
|
|
3
3
|
export * from './customer-balance';
|
|
@@ -14,6 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./customer"), exports);
|
|
18
|
-
__exportStar(require("./credit-balance"), exports);
|
|
17
|
+
__exportStar(require("./customer-response"), exports);
|
|
18
|
+
__exportStar(require("./credit-balance-response"), exports);
|
|
19
19
|
__exportStar(require("./customer-balance"), exports);
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { type CurrencyCode, type DiscountStatus, type DiscountType } from '../../enums';
|
|
2
|
+
import { type ICustomData } from '../shared';
|
|
3
|
+
export interface IDiscountResponse {
|
|
4
|
+
id: string;
|
|
5
|
+
status: DiscountStatus;
|
|
6
|
+
description: string;
|
|
7
|
+
enabled_for_checkout: boolean;
|
|
8
|
+
code?: string | null;
|
|
9
|
+
type: DiscountType;
|
|
10
|
+
amount: string;
|
|
11
|
+
currency_code?: CurrencyCode | null;
|
|
12
|
+
recur: boolean;
|
|
13
|
+
maximum_recurring_intervals?: number | null;
|
|
14
|
+
usage_limit?: number | null;
|
|
15
|
+
restrict_to?: string[] | null;
|
|
16
|
+
expires_at?: string | null;
|
|
17
|
+
custom_data?: ICustomData | null;
|
|
18
|
+
times_used: number;
|
|
19
|
+
created_at: string;
|
|
20
|
+
updated_at: string;
|
|
21
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './discount';
|
|
1
|
+
export * from './discount-response';
|
|
@@ -14,4 +14,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./discount"), exports);
|
|
17
|
+
__exportStar(require("./discount-response"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './price';
|
|
1
|
+
export * from './price-response';
|
|
@@ -14,4 +14,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./price"), exports);
|
|
17
|
+
__exportStar(require("./price-response"), exports);
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { type ITimePeriod, type IMoneyResponse, type IUnitPriceOverrideResponse, type IPriceQuantity, type ICustomData, type ISharedProductResponse, type IImportMetaResponse } from '../index';
|
|
2
|
+
import { type TaxMode, type Status } from '../../enums';
|
|
3
|
+
export interface IPriceResponse {
|
|
4
|
+
id: string;
|
|
5
|
+
product_id: string;
|
|
6
|
+
description: string;
|
|
7
|
+
name?: string | null;
|
|
8
|
+
billing_cycle?: ITimePeriod | null;
|
|
9
|
+
trial_period?: ITimePeriod | null;
|
|
10
|
+
tax_mode: TaxMode;
|
|
11
|
+
unit_price: IMoneyResponse;
|
|
12
|
+
unit_price_overrides: IUnitPriceOverrideResponse[];
|
|
13
|
+
quantity: IPriceQuantity;
|
|
14
|
+
status: Status;
|
|
15
|
+
custom_data?: ICustomData | null;
|
|
16
|
+
import_meta?: IImportMetaResponse | null;
|
|
17
|
+
product?: ISharedProductResponse | null;
|
|
18
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './product';
|
|
1
|
+
export * from './product-response';
|
|
@@ -14,4 +14,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./product"), exports);
|
|
17
|
+
__exportStar(require("./product-response"), exports);
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { type ICustomData, type IImportMetaResponse, type ISharedPriceResponse } from '../index';
|
|
2
|
+
import { type TaxCategory, type Status } from '../../enums';
|
|
3
|
+
export interface IProductResponse {
|
|
4
|
+
id: string;
|
|
5
|
+
name: string;
|
|
6
|
+
description?: string | null;
|
|
7
|
+
tax_category: TaxCategory;
|
|
8
|
+
image_url?: string | null;
|
|
9
|
+
custom_data?: ICustomData | null;
|
|
10
|
+
status: Status;
|
|
11
|
+
created_at: string;
|
|
12
|
+
import_meta?: IImportMetaResponse | null;
|
|
13
|
+
prices?: ISharedPriceResponse[] | null;
|
|
14
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type ITimePeriod } from '../index';
|
|
2
2
|
export interface IBillingDetailsUpdate {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
enableCheckout: boolean;
|
|
4
|
+
purchaseOrderNumber: string;
|
|
5
|
+
additionalInformation: string;
|
|
6
|
+
paymentTerms: ITimePeriod;
|
|
7
7
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type IAdjustmentOriginalAmountResponse } from '../index';
|
|
2
2
|
export interface IChargebackFee {
|
|
3
3
|
amount: string;
|
|
4
|
-
original?:
|
|
4
|
+
original?: IAdjustmentOriginalAmountResponse | null;
|
|
5
5
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export type ICustomData =
|
|
1
|
+
export type ICustomData = object;
|
|
@@ -1,27 +1,31 @@
|
|
|
1
1
|
export * from './time-period';
|
|
2
2
|
export * from './money';
|
|
3
|
+
export * from './money-response';
|
|
3
4
|
export * from './unit-price-override';
|
|
5
|
+
export * from './unit-price-override-response';
|
|
4
6
|
export * from './price-quantity';
|
|
5
|
-
export * from './shared-price';
|
|
6
|
-
export * from './shared-product';
|
|
7
|
-
export * from './billing-details';
|
|
7
|
+
export * from './shared-price-response';
|
|
8
|
+
export * from './shared-product-response';
|
|
9
|
+
export * from './billing-details-response';
|
|
8
10
|
export * from './totals';
|
|
9
|
-
export * from './tax-rates-used';
|
|
10
|
-
export * from './transaction-totals';
|
|
11
|
-
export * from './transaction-totals-adjusted';
|
|
12
|
-
export * from './transaction-payout-totals';
|
|
13
|
-
export * from './adjustment-original-amount';
|
|
11
|
+
export * from './tax-rates-used-response';
|
|
12
|
+
export * from './transaction-totals-response';
|
|
13
|
+
export * from './transaction-totals-adjusted-response';
|
|
14
|
+
export * from './transaction-payout-totals-response';
|
|
15
|
+
export * from './adjustment-original-amount-response';
|
|
14
16
|
export * from './chargeback-fee';
|
|
15
|
-
export * from './transaction-payout-totals-adjusted';
|
|
17
|
+
export * from './transaction-payout-totals-adjusted-response';
|
|
16
18
|
export * from './unit-totals';
|
|
17
|
-
export * from './payment-card';
|
|
19
|
+
export * from './payment-card-response';
|
|
18
20
|
export * from './payment-method-details';
|
|
19
|
-
export * from './transaction-payment-attempt';
|
|
21
|
+
export * from './transaction-payment-attempt-response';
|
|
20
22
|
export * from './transaction-checkout';
|
|
21
23
|
export * from './adjustment-item-totals';
|
|
22
|
-
export * from './total-adjustments';
|
|
23
|
-
export * from './payout-totals-adjustment';
|
|
24
|
-
export * from './transaction-line-item-preview';
|
|
25
|
-
export * from './transaction-details-preview';
|
|
24
|
+
export * from './total-adjustments-response';
|
|
25
|
+
export * from './payout-totals-adjustment-response';
|
|
26
|
+
export * from './transaction-line-item-preview-response';
|
|
27
|
+
export * from './transaction-details-preview-response';
|
|
28
|
+
export * from './billing-details-create';
|
|
26
29
|
export * from './billing-details-update';
|
|
27
30
|
export * from './custom-data';
|
|
31
|
+
export * from './import-meta-response';
|
|
@@ -16,28 +16,32 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./time-period"), exports);
|
|
18
18
|
__exportStar(require("./money"), exports);
|
|
19
|
+
__exportStar(require("./money-response"), exports);
|
|
19
20
|
__exportStar(require("./unit-price-override"), exports);
|
|
21
|
+
__exportStar(require("./unit-price-override-response"), exports);
|
|
20
22
|
__exportStar(require("./price-quantity"), exports);
|
|
21
|
-
__exportStar(require("./shared-price"), exports);
|
|
22
|
-
__exportStar(require("./shared-product"), exports);
|
|
23
|
-
__exportStar(require("./billing-details"), exports);
|
|
23
|
+
__exportStar(require("./shared-price-response"), exports);
|
|
24
|
+
__exportStar(require("./shared-product-response"), exports);
|
|
25
|
+
__exportStar(require("./billing-details-response"), exports);
|
|
24
26
|
__exportStar(require("./totals"), exports);
|
|
25
|
-
__exportStar(require("./tax-rates-used"), exports);
|
|
26
|
-
__exportStar(require("./transaction-totals"), exports);
|
|
27
|
-
__exportStar(require("./transaction-totals-adjusted"), exports);
|
|
28
|
-
__exportStar(require("./transaction-payout-totals"), exports);
|
|
29
|
-
__exportStar(require("./adjustment-original-amount"), exports);
|
|
27
|
+
__exportStar(require("./tax-rates-used-response"), exports);
|
|
28
|
+
__exportStar(require("./transaction-totals-response"), exports);
|
|
29
|
+
__exportStar(require("./transaction-totals-adjusted-response"), exports);
|
|
30
|
+
__exportStar(require("./transaction-payout-totals-response"), exports);
|
|
31
|
+
__exportStar(require("./adjustment-original-amount-response"), exports);
|
|
30
32
|
__exportStar(require("./chargeback-fee"), exports);
|
|
31
|
-
__exportStar(require("./transaction-payout-totals-adjusted"), exports);
|
|
33
|
+
__exportStar(require("./transaction-payout-totals-adjusted-response"), exports);
|
|
32
34
|
__exportStar(require("./unit-totals"), exports);
|
|
33
|
-
__exportStar(require("./payment-card"), exports);
|
|
35
|
+
__exportStar(require("./payment-card-response"), exports);
|
|
34
36
|
__exportStar(require("./payment-method-details"), exports);
|
|
35
|
-
__exportStar(require("./transaction-payment-attempt"), exports);
|
|
37
|
+
__exportStar(require("./transaction-payment-attempt-response"), exports);
|
|
36
38
|
__exportStar(require("./transaction-checkout"), exports);
|
|
37
39
|
__exportStar(require("./adjustment-item-totals"), exports);
|
|
38
|
-
__exportStar(require("./total-adjustments"), exports);
|
|
39
|
-
__exportStar(require("./payout-totals-adjustment"), exports);
|
|
40
|
-
__exportStar(require("./transaction-line-item-preview"), exports);
|
|
41
|
-
__exportStar(require("./transaction-details-preview"), exports);
|
|
40
|
+
__exportStar(require("./total-adjustments-response"), exports);
|
|
41
|
+
__exportStar(require("./payout-totals-adjustment-response"), exports);
|
|
42
|
+
__exportStar(require("./transaction-line-item-preview-response"), exports);
|
|
43
|
+
__exportStar(require("./transaction-details-preview-response"), exports);
|
|
44
|
+
__exportStar(require("./billing-details-create"), exports);
|
|
42
45
|
__exportStar(require("./billing-details-update"), exports);
|
|
43
46
|
__exportStar(require("./custom-data"), exports);
|
|
47
|
+
__exportStar(require("./import-meta-response"), exports);
|