@paddle/paddle-node-sdk 3.9.0 → 3.11.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/dist/cjs/entities/adjustment/adjustment-tax-rates-used-totals.js +14 -0
- package/dist/cjs/entities/adjustment/adjustment-tax-rates-used.js +13 -0
- package/dist/cjs/entities/adjustment/adjustment.js +5 -1
- package/dist/cjs/entities/adjustment/index.js +2 -0
- package/dist/cjs/entities/checkout-domain/checkout-domain-apple-pay-verification.js +10 -0
- package/dist/cjs/entities/checkout-domain/checkout-domain-collection.js +11 -0
- package/dist/cjs/entities/checkout-domain/checkout-domain-payment-method-verification.js +11 -0
- package/dist/cjs/entities/checkout-domain/checkout-domain.js +21 -0
- package/dist/cjs/entities/checkout-domain/index.js +20 -0
- package/dist/cjs/entities/country/country-definition.js +28 -0
- package/dist/cjs/entities/country/index.js +17 -0
- package/dist/cjs/entities/currency/currency-definition.js +20 -0
- package/dist/cjs/entities/currency/index.js +17 -0
- package/dist/cjs/entities/customer-portal-session/customer-portal-subscription-url.js +2 -0
- package/dist/cjs/entities/index.js +9 -0
- package/dist/cjs/entities/ip-addresses/index.js +17 -0
- package/dist/cjs/entities/ip-addresses/ip-addresses.js +10 -0
- package/dist/cjs/entities/meter/index.js +18 -0
- package/dist/cjs/entities/meter/meter-collection.js +11 -0
- package/dist/cjs/entities/meter/meter.js +32 -0
- package/dist/cjs/entities/metrics/index.js +11 -0
- package/dist/cjs/entities/metrics/metric-entity-definition.js +19 -0
- package/dist/cjs/entities/metrics/metric-entity-dimension.js +16 -0
- package/dist/cjs/entities/metrics/metric-entity-measure.js +14 -0
- package/dist/cjs/entities/metrics/metric-entity-time-dimension.js +12 -0
- package/dist/cjs/entities/metrics/metrics-explore-datapoint.js +12 -0
- package/dist/cjs/entities/metrics/metrics-explore-field-dimension.js +12 -0
- package/dist/cjs/entities/metrics/metrics-explore-field-measure.js +16 -0
- package/dist/cjs/entities/metrics/metrics-explore-fields.js +14 -0
- package/dist/cjs/entities/metrics/metrics-explore-pagination.js +18 -0
- package/dist/cjs/entities/metrics/metrics-explore-series.js +13 -0
- package/dist/cjs/entities/metrics/metrics-explore.js +29 -0
- package/dist/cjs/entities/report/report.js +2 -0
- package/dist/cjs/entities/shared/actor.js +12 -0
- package/dist/cjs/entities/shared/index.js +3 -0
- package/dist/cjs/entities/shared/money-optional-currency.js +12 -0
- package/dist/cjs/entities/shared/price-trial-unit-price-override.js +13 -0
- package/dist/cjs/entities/shared/trial-period.js +7 -0
- package/dist/cjs/entities/subscription/index.js +2 -0
- package/dist/cjs/entities/subscription/subscription-consent-requirement.js +25 -0
- package/dist/cjs/entities/subscription/subscription-discount.js +2 -0
- package/dist/cjs/entities/subscription/subscription-management.js +2 -0
- package/dist/cjs/entities/subscription/subscription-preview.js +5 -0
- package/dist/cjs/entities/subscription/subscription.js +5 -0
- package/dist/cjs/entities/subscription-history/index.js +22 -0
- package/dist/cjs/entities/subscription-history/subscription-history-activated-detail.js +21 -0
- package/dist/cjs/entities/subscription-history/subscription-history-address-updated-detail.js +13 -0
- package/dist/cjs/entities/subscription-history/subscription-history-billing-cycle-updated-detail.js +18 -0
- package/dist/cjs/entities/subscription-history/subscription-history-billing-date-updated-detail.js +19 -0
- package/dist/cjs/entities/subscription-history/subscription-history-billing-details-updated-detail.js +13 -0
- package/dist/cjs/entities/subscription-history/subscription-history-business-added-detail.js +13 -0
- package/dist/cjs/entities/subscription-history/subscription-history-business-removed-detail.js +13 -0
- package/dist/cjs/entities/subscription-history/subscription-history-business-updated-detail.js +13 -0
- package/dist/cjs/entities/subscription-history/subscription-history-canceled-detail.js +12 -0
- package/dist/cjs/entities/subscription-history/subscription-history-collection-mode-updated-detail.js +12 -0
- package/dist/cjs/entities/subscription-history/subscription-history-collection.js +11 -0
- package/dist/cjs/entities/subscription-history/subscription-history-consent-requirement-granted-detail.js +13 -0
- package/dist/cjs/entities/subscription-history/subscription-history-created-detail.js +45 -0
- package/dist/cjs/entities/subscription-history/subscription-history-currency-updated-detail.js +12 -0
- package/dist/cjs/entities/subscription-history/subscription-history-custom-data-updated-detail.js +12 -0
- package/dist/cjs/entities/subscription-history/subscription-history-customer-updated-detail.js +13 -0
- package/dist/cjs/entities/subscription-history/subscription-history-detail.js +79 -0
- package/dist/cjs/entities/subscription-history/subscription-history-details.js +49 -0
- package/dist/cjs/entities/subscription-history/subscription-history-discount-added-detail.js +13 -0
- package/dist/cjs/entities/subscription-history/subscription-history-discount-expired-detail.js +13 -0
- package/dist/cjs/entities/subscription-history/subscription-history-discount-removed-detail.js +13 -0
- package/dist/cjs/entities/subscription-history/subscription-history-discount.js +17 -0
- package/dist/cjs/entities/subscription-history/subscription-history-item-added-detail.js +24 -0
- package/dist/cjs/entities/subscription-history/subscription-history-item-quantity-updated-detail.js +24 -0
- package/dist/cjs/entities/subscription-history/subscription-history-item-removed-detail.js +24 -0
- package/dist/cjs/entities/subscription-history/subscription-history-item-update-summary.js +10 -0
- package/dist/cjs/entities/subscription-history/subscription-history-item.js +13 -0
- package/dist/cjs/entities/subscription-history/subscription-history-one-off-charge-applied-detail.js +19 -0
- package/dist/cjs/entities/subscription-history/subscription-history-past-due-detail.js +14 -0
- package/dist/cjs/entities/subscription-history/subscription-history-paused-detail.js +14 -0
- package/dist/cjs/entities/subscription-history/subscription-history-payment-attempted-detail.js +14 -0
- package/dist/cjs/entities/subscription-history/subscription-history-payment-method-added-detail.js +10 -0
- package/dist/cjs/entities/subscription-history/subscription-history-payment-method-removed-detail.js +10 -0
- package/dist/cjs/entities/subscription-history/subscription-history-payment-method-updated-detail.js +10 -0
- package/dist/cjs/entities/subscription-history/subscription-history-renewed-detail.js +17 -0
- package/dist/cjs/entities/subscription-history/subscription-history-resumed-detail.js +14 -0
- package/dist/cjs/entities/subscription-history/subscription-history-scheduled-change-added-detail.js +13 -0
- package/dist/cjs/entities/subscription-history/subscription-history-scheduled-change-removed-detail.js +13 -0
- package/dist/cjs/entities/subscription-history/subscription-history-scheduled-change-updated-detail.js +13 -0
- package/dist/cjs/entities/subscription-history/subscription-history.js +26 -0
- package/dist/cjs/entities/transaction/adjustment-totals.js +2 -0
- package/dist/cjs/entities/transaction/transaction-adjustment.js +7 -1
- package/dist/cjs/entities/transaction/transaction-preview.js +1 -1
- package/dist/cjs/entities/usage-balance/index.js +21 -0
- package/dist/cjs/entities/usage-balance/usage-balance-amount.js +12 -0
- package/dist/cjs/entities/usage-balance/usage-balance-balance.js +16 -0
- package/dist/cjs/entities/usage-balance/usage-balance-collection.js +11 -0
- package/dist/cjs/entities/usage-balance/usage-balance-overage.js +12 -0
- package/dist/cjs/entities/usage-balance/usage-balance.js +21 -0
- package/dist/cjs/entities/usage-balance-unit/index.js +18 -0
- package/dist/cjs/entities/usage-balance-unit/usage-balance-unit-collection.js +11 -0
- package/dist/cjs/entities/usage-balance-unit/usage-balance-unit.js +20 -0
- package/dist/cjs/entities/verification/index.js +19 -0
- package/dist/cjs/entities/verification/verification-collection.js +11 -0
- package/dist/cjs/entities/verification/verification-step.js +20 -0
- package/dist/cjs/entities/verification/verification.js +21 -0
- package/dist/cjs/enums/checkout-domain/checkout-domain-payment-method-verification-status.js +2 -0
- package/dist/cjs/enums/checkout-domain/checkout-domain-payment-method.js +2 -0
- package/dist/cjs/enums/checkout-domain/checkout-domain-status.js +2 -0
- package/dist/cjs/enums/checkout-domain/index.js +19 -0
- package/dist/cjs/enums/country/country-code-iso3-non-supported.js +2 -0
- package/dist/cjs/enums/country/country-code-iso3-supported.js +2 -0
- package/dist/cjs/enums/country/country-code-iso3.js +2 -0
- package/dist/cjs/enums/country/country-definition-tax-mode.js +2 -0
- package/dist/cjs/enums/country/index.js +20 -0
- package/dist/cjs/enums/index.js +5 -0
- package/dist/cjs/enums/meter/index.js +17 -0
- package/dist/cjs/enums/meter/meter-aggregation.js +2 -0
- package/dist/cjs/enums/metrics/index.js +6 -0
- package/dist/cjs/enums/metrics/metric-entity.js +2 -0
- package/dist/cjs/enums/metrics/metrics-aggregation.js +2 -0
- package/dist/cjs/enums/metrics/metrics-bucket-interval.js +2 -0
- package/dist/cjs/enums/metrics/metrics-field-type.js +2 -0
- package/dist/cjs/enums/metrics/metrics-filter-operator.js +2 -0
- package/dist/cjs/enums/metrics/metrics-sort-direction.js +2 -0
- package/dist/cjs/enums/shared/action-source.js +2 -0
- package/dist/cjs/enums/shared/actor-type.js +2 -0
- package/dist/cjs/enums/shared/country-code-non-supported.js +2 -0
- package/dist/cjs/enums/shared/country-code-supported.js +2 -0
- package/dist/cjs/enums/shared/index.js +4 -0
- package/dist/cjs/enums/subscription/index.js +3 -0
- package/dist/cjs/enums/subscription/subscription-consent-requirement-status.js +2 -0
- package/dist/cjs/enums/subscription/subscription-consent-requirement-type.js +2 -0
- package/dist/cjs/enums/subscription/subscription-discount-type.js +2 -0
- package/dist/cjs/enums/subscription-history/index.js +20 -0
- package/dist/cjs/enums/subscription-history/subscription-history-action.js +2 -0
- package/dist/cjs/enums/subscription-history/subscription-history-discount-type.js +2 -0
- package/dist/cjs/enums/subscription-history/subscription-history-payment-attempted-operation.js +2 -0
- package/dist/cjs/enums/subscription-history/subscription-history-reason.js +2 -0
- package/dist/cjs/enums/verification/index.js +20 -0
- package/dist/cjs/enums/verification/verification-status.js +2 -0
- package/dist/cjs/enums/verification/verification-step-key.js +2 -0
- package/dist/cjs/enums/verification/verification-step-status.js +2 -0
- package/dist/cjs/enums/verification/verification-type.js +2 -0
- package/dist/cjs/internal/providers/crypto/crypto-provider.js +6 -0
- package/dist/cjs/internal/providers/crypto/edge-crypto.js +7 -0
- package/dist/cjs/internal/providers/crypto/node-crypto.js +6 -0
- package/dist/cjs/notifications/entities/adjustment/adjustment-notification.js +6 -1
- package/dist/cjs/notifications/entities/adjustment/adjustment-tax-rates-used-notification.js +13 -0
- package/dist/cjs/notifications/entities/adjustment/adjustment-tax-rates-used-totals-notification.js +14 -0
- package/dist/cjs/notifications/entities/adjustment/index.js +2 -0
- package/dist/cjs/notifications/entities/api-key/api-key-notification.js +2 -0
- package/dist/cjs/notifications/entities/report/report-notification.js +2 -0
- package/dist/cjs/notifications/entities/shared/index.js +2 -0
- package/dist/cjs/notifications/entities/shared/money-optional-currency-notification.js +12 -0
- package/dist/cjs/notifications/entities/shared/price-trial-unit-price-override-notification.js +13 -0
- package/dist/cjs/notifications/entities/shared/trial-period-notification.js +7 -0
- package/dist/cjs/notifications/entities/subscription/index.js +1 -0
- package/dist/cjs/notifications/entities/subscription/subscription-consent-requirement-notification.js +25 -0
- package/dist/cjs/notifications/entities/subscription/subscription-created-notification.js +5 -0
- package/dist/cjs/notifications/entities/subscription/subscription-discount-notification.js +2 -0
- package/dist/cjs/notifications/entities/subscription/subscription-notification.js +5 -0
- package/dist/cjs/notifications/entities/subscription/subscription-price-notification.js +4 -0
- package/dist/cjs/notifications/types/adjustment/adjustment-tax-rates-used-notification-response.js +2 -0
- package/dist/cjs/notifications/types/adjustment/index.js +1 -0
- package/dist/cjs/notifications/types/shared/index.js +2 -0
- package/dist/cjs/notifications/types/shared/money-optional-currency-notification-response.js +2 -0
- package/dist/cjs/notifications/types/shared/price-trial-unit-price-override-notification-response.js +2 -0
- package/dist/cjs/notifications/types/subscription/index.js +1 -0
- package/dist/cjs/notifications/types/subscription/subscription-consent-requirement-notification-response.js +2 -0
- package/dist/cjs/paddle.js +18 -0
- package/dist/cjs/resources/checkout-domains/index.js +58 -0
- package/dist/cjs/resources/checkout-domains/operations/index.js +18 -0
- package/dist/cjs/resources/checkout-domains/operations/list-checkout-domain-query-parameters.js +2 -0
- package/dist/cjs/resources/checkout-domains/operations/verify-checkout-domain-payment-method-request-body.js +2 -0
- package/dist/cjs/resources/countries/index.js +16 -0
- package/dist/cjs/resources/currencies/index.js +16 -0
- package/dist/cjs/resources/customer-portal-sessions/index.js +1 -3
- package/dist/cjs/resources/index.js +9 -0
- package/dist/cjs/resources/ip-addresses/index.js +16 -0
- package/dist/cjs/resources/meters/index.js +39 -0
- package/dist/cjs/resources/meters/operations/index.js +17 -0
- package/dist/cjs/resources/meters/operations/list-meter-query-parameters.js +2 -0
- package/dist/cjs/resources/metrics/index.js +15 -0
- package/dist/cjs/resources/metrics/operations/explore-metrics-query-parameters.js +2 -0
- package/dist/cjs/resources/metrics/operations/explore-metrics-request-body.js +2 -0
- package/dist/cjs/resources/metrics/operations/index.js +3 -0
- package/dist/cjs/resources/metrics/operations/list-explore-entities-query-parameters.js +2 -0
- package/dist/cjs/resources/subscriptions/index.js +12 -1
- package/dist/cjs/resources/subscriptions/operations/index.js +1 -0
- package/dist/cjs/resources/subscriptions/operations/list-subscription-history-query-parameters.js +2 -0
- package/dist/cjs/resources/usage-balance-units/index.js +39 -0
- package/dist/cjs/resources/usage-balance-units/operations/index.js +17 -0
- package/dist/cjs/resources/usage-balance-units/operations/list-usage-balance-unit-query-parameters.js +2 -0
- package/dist/cjs/resources/usage-balances/index.js +43 -0
- package/dist/cjs/resources/usage-balances/operations/index.js +17 -0
- package/dist/cjs/resources/usage-balances/operations/list-usage-balance-query-parameters.js +2 -0
- package/dist/cjs/resources/usage-events/helpers/usage-event-key.js +48 -0
- package/dist/cjs/resources/usage-events/index.js +36 -0
- package/dist/cjs/resources/usage-events/operations/create-usage-events-request-body.js +2 -0
- package/dist/cjs/resources/usage-events/operations/index.js +17 -0
- package/dist/cjs/resources/verifications/index.js +39 -0
- package/dist/cjs/resources/verifications/operations/index.js +17 -0
- package/dist/cjs/resources/verifications/operations/list-verification-query-parameters.js +2 -0
- package/dist/cjs/types/adjustment/adjustment-tax-rates-used-response.js +2 -0
- package/dist/cjs/types/adjustment/index.js +1 -0
- package/dist/cjs/types/checkout-domain/checkout-domain-apple-pay-verification-response.js +2 -0
- package/dist/cjs/types/checkout-domain/checkout-domain-payment-method-verification-response.js +2 -0
- package/dist/cjs/types/checkout-domain/checkout-domain-response.js +2 -0
- package/dist/cjs/types/checkout-domain/index.js +19 -0
- package/dist/cjs/types/country/country-definition-response.js +2 -0
- package/dist/cjs/types/country/index.js +17 -0
- package/dist/cjs/types/currency/currency-definition-response.js +2 -0
- package/dist/cjs/types/currency/index.js +17 -0
- package/dist/cjs/types/index.js +9 -0
- package/dist/cjs/types/ip-addresses/index.js +17 -0
- package/dist/cjs/types/ip-addresses/ip-addresses-response.js +2 -0
- package/dist/cjs/types/meter/index.js +17 -0
- package/dist/cjs/types/meter/meter-response.js +2 -0
- package/dist/cjs/types/metrics/index.js +12 -0
- package/dist/cjs/types/metrics/metric-entity-definition-response.js +2 -0
- package/dist/cjs/types/metrics/metric-entity-dimension.js +2 -0
- package/dist/cjs/types/metrics/metric-entity-measure.js +2 -0
- package/dist/cjs/types/metrics/metric-entity-time-dimension.js +2 -0
- package/dist/cjs/types/metrics/metrics-explore-datapoint.js +2 -0
- package/dist/cjs/types/metrics/metrics-explore-field-dimension.js +2 -0
- package/dist/cjs/types/metrics/metrics-explore-field-measure.js +2 -0
- package/dist/cjs/types/metrics/metrics-explore-fields.js +2 -0
- package/dist/cjs/types/metrics/metrics-explore-paginated-meta.js +2 -0
- package/dist/cjs/types/metrics/metrics-explore-pagination.js +2 -0
- package/dist/cjs/types/metrics/metrics-explore-response.js +2 -0
- package/dist/cjs/types/metrics/metrics-explore-series.js +2 -0
- package/dist/cjs/types/shared/actor-response.js +2 -0
- package/dist/cjs/types/shared/index.js +6 -0
- package/dist/cjs/types/shared/money-optional-currency-response.js +2 -0
- package/dist/cjs/types/shared/money-optional-currency.js +2 -0
- package/dist/cjs/types/shared/price-trial-unit-price-override-response.js +2 -0
- package/dist/cjs/types/shared/price-trial-unit-price-override.js +2 -0
- package/dist/cjs/types/shared/trial-period-update.js +2 -0
- package/dist/cjs/types/subscription/index.js +2 -0
- package/dist/cjs/types/subscription/subscription-consent-requirement-response.js +2 -0
- package/dist/cjs/types/subscription-history/index.js +21 -0
- package/dist/cjs/types/subscription-history/subscription-history-detail-response.js +2 -0
- package/dist/cjs/types/subscription-history/subscription-history-discount-response.js +2 -0
- package/dist/cjs/types/subscription-history/subscription-history-item-response.js +2 -0
- package/dist/cjs/types/subscription-history/subscription-history-item-update-summary-response.js +2 -0
- package/dist/cjs/types/subscription-history/subscription-history-response.js +2 -0
- package/dist/cjs/types/usage-balance/index.js +17 -0
- package/dist/cjs/types/usage-balance/usage-balance-response.js +2 -0
- package/dist/cjs/types/usage-balance-unit/index.js +17 -0
- package/dist/cjs/types/usage-balance-unit/usage-balance-unit-response.js +2 -0
- package/dist/cjs/types/verification/index.js +18 -0
- package/dist/cjs/types/verification/verification-step.js +2 -0
- package/dist/cjs/types/verification/verification.js +2 -0
- package/dist/cjs/version.js +1 -1
- package/dist/esm/entities/adjustment/adjustment-tax-rates-used-totals.js +10 -0
- package/dist/esm/entities/adjustment/adjustment-tax-rates-used.js +9 -0
- package/dist/esm/entities/adjustment/adjustment.js +5 -1
- package/dist/esm/entities/adjustment/index.js +2 -0
- package/dist/esm/entities/checkout-domain/checkout-domain-apple-pay-verification.js +6 -0
- package/dist/esm/entities/checkout-domain/checkout-domain-collection.js +7 -0
- package/dist/esm/entities/checkout-domain/checkout-domain-payment-method-verification.js +7 -0
- package/dist/esm/entities/checkout-domain/checkout-domain.js +17 -0
- package/dist/esm/entities/checkout-domain/index.js +4 -0
- package/dist/esm/entities/country/country-definition.js +24 -0
- package/dist/esm/entities/country/index.js +1 -0
- package/dist/esm/entities/currency/currency-definition.js +16 -0
- package/dist/esm/entities/currency/index.js +1 -0
- package/dist/esm/entities/customer-portal-session/customer-portal-subscription-url.js +2 -0
- package/dist/esm/entities/index.js +9 -0
- package/dist/esm/entities/ip-addresses/index.js +1 -0
- package/dist/esm/entities/ip-addresses/ip-addresses.js +6 -0
- package/dist/esm/entities/meter/index.js +2 -0
- package/dist/esm/entities/meter/meter-collection.js +7 -0
- package/dist/esm/entities/meter/meter.js +28 -0
- package/dist/esm/entities/metrics/index.js +11 -0
- package/dist/esm/entities/metrics/metric-entity-definition.js +15 -0
- package/dist/esm/entities/metrics/metric-entity-dimension.js +12 -0
- package/dist/esm/entities/metrics/metric-entity-measure.js +10 -0
- package/dist/esm/entities/metrics/metric-entity-time-dimension.js +8 -0
- package/dist/esm/entities/metrics/metrics-explore-datapoint.js +8 -0
- package/dist/esm/entities/metrics/metrics-explore-field-dimension.js +8 -0
- package/dist/esm/entities/metrics/metrics-explore-field-measure.js +12 -0
- package/dist/esm/entities/metrics/metrics-explore-fields.js +10 -0
- package/dist/esm/entities/metrics/metrics-explore-pagination.js +14 -0
- package/dist/esm/entities/metrics/metrics-explore-series.js +9 -0
- package/dist/esm/entities/metrics/metrics-explore.js +25 -0
- package/dist/esm/entities/report/report.js +2 -0
- package/dist/esm/entities/shared/actor.js +8 -0
- package/dist/esm/entities/shared/index.js +3 -0
- package/dist/esm/entities/shared/money-optional-currency.js +8 -0
- package/dist/esm/entities/shared/price-trial-unit-price-override.js +9 -0
- package/dist/esm/entities/shared/trial-period.js +7 -0
- package/dist/esm/entities/subscription/index.js +2 -0
- package/dist/esm/entities/subscription/subscription-consent-requirement.js +21 -0
- package/dist/esm/entities/subscription/subscription-discount.js +2 -0
- package/dist/esm/entities/subscription/subscription-management.js +2 -0
- package/dist/esm/entities/subscription/subscription-preview.js +5 -0
- package/dist/esm/entities/subscription/subscription.js +5 -0
- package/dist/esm/entities/subscription-history/index.js +6 -0
- package/dist/esm/entities/subscription-history/subscription-history-activated-detail.js +17 -0
- package/dist/esm/entities/subscription-history/subscription-history-address-updated-detail.js +9 -0
- package/dist/esm/entities/subscription-history/subscription-history-billing-cycle-updated-detail.js +14 -0
- package/dist/esm/entities/subscription-history/subscription-history-billing-date-updated-detail.js +15 -0
- package/dist/esm/entities/subscription-history/subscription-history-billing-details-updated-detail.js +9 -0
- package/dist/esm/entities/subscription-history/subscription-history-business-added-detail.js +9 -0
- package/dist/esm/entities/subscription-history/subscription-history-business-removed-detail.js +9 -0
- package/dist/esm/entities/subscription-history/subscription-history-business-updated-detail.js +9 -0
- package/dist/esm/entities/subscription-history/subscription-history-canceled-detail.js +8 -0
- package/dist/esm/entities/subscription-history/subscription-history-collection-mode-updated-detail.js +8 -0
- package/dist/esm/entities/subscription-history/subscription-history-collection.js +7 -0
- package/dist/esm/entities/subscription-history/subscription-history-consent-requirement-granted-detail.js +9 -0
- package/dist/esm/entities/subscription-history/subscription-history-created-detail.js +41 -0
- package/dist/esm/entities/subscription-history/subscription-history-currency-updated-detail.js +8 -0
- package/dist/esm/entities/subscription-history/subscription-history-custom-data-updated-detail.js +8 -0
- package/dist/esm/entities/subscription-history/subscription-history-customer-updated-detail.js +9 -0
- package/dist/esm/entities/subscription-history/subscription-history-detail.js +76 -0
- package/dist/esm/entities/subscription-history/subscription-history-details.js +33 -0
- package/dist/esm/entities/subscription-history/subscription-history-discount-added-detail.js +9 -0
- package/dist/esm/entities/subscription-history/subscription-history-discount-expired-detail.js +9 -0
- package/dist/esm/entities/subscription-history/subscription-history-discount-removed-detail.js +9 -0
- package/dist/esm/entities/subscription-history/subscription-history-discount.js +13 -0
- package/dist/esm/entities/subscription-history/subscription-history-item-added-detail.js +20 -0
- package/dist/esm/entities/subscription-history/subscription-history-item-quantity-updated-detail.js +20 -0
- package/dist/esm/entities/subscription-history/subscription-history-item-removed-detail.js +20 -0
- package/dist/esm/entities/subscription-history/subscription-history-item-update-summary.js +6 -0
- package/dist/esm/entities/subscription-history/subscription-history-item.js +9 -0
- package/dist/esm/entities/subscription-history/subscription-history-one-off-charge-applied-detail.js +15 -0
- package/dist/esm/entities/subscription-history/subscription-history-past-due-detail.js +10 -0
- package/dist/esm/entities/subscription-history/subscription-history-paused-detail.js +10 -0
- package/dist/esm/entities/subscription-history/subscription-history-payment-attempted-detail.js +10 -0
- package/dist/esm/entities/subscription-history/subscription-history-payment-method-added-detail.js +6 -0
- package/dist/esm/entities/subscription-history/subscription-history-payment-method-removed-detail.js +6 -0
- package/dist/esm/entities/subscription-history/subscription-history-payment-method-updated-detail.js +6 -0
- package/dist/esm/entities/subscription-history/subscription-history-renewed-detail.js +13 -0
- package/dist/esm/entities/subscription-history/subscription-history-resumed-detail.js +10 -0
- package/dist/esm/entities/subscription-history/subscription-history-scheduled-change-added-detail.js +9 -0
- package/dist/esm/entities/subscription-history/subscription-history-scheduled-change-removed-detail.js +9 -0
- package/dist/esm/entities/subscription-history/subscription-history-scheduled-change-updated-detail.js +9 -0
- package/dist/esm/entities/subscription-history/subscription-history.js +22 -0
- package/dist/esm/entities/transaction/adjustment-totals.js +2 -0
- package/dist/esm/entities/transaction/transaction-adjustment.js +7 -1
- package/dist/esm/entities/transaction/transaction-preview.js +1 -1
- package/dist/esm/entities/usage-balance/index.js +5 -0
- package/dist/esm/entities/usage-balance/usage-balance-amount.js +8 -0
- package/dist/esm/entities/usage-balance/usage-balance-balance.js +12 -0
- package/dist/esm/entities/usage-balance/usage-balance-collection.js +7 -0
- package/dist/esm/entities/usage-balance/usage-balance-overage.js +8 -0
- package/dist/esm/entities/usage-balance/usage-balance.js +17 -0
- package/dist/esm/entities/usage-balance-unit/index.js +2 -0
- package/dist/esm/entities/usage-balance-unit/usage-balance-unit-collection.js +7 -0
- package/dist/esm/entities/usage-balance-unit/usage-balance-unit.js +16 -0
- package/dist/esm/entities/verification/index.js +3 -0
- package/dist/esm/entities/verification/verification-collection.js +7 -0
- package/dist/esm/entities/verification/verification-step.js +16 -0
- package/dist/esm/entities/verification/verification.js +17 -0
- package/dist/esm/enums/checkout-domain/checkout-domain-payment-method-verification-status.js +1 -0
- package/dist/esm/enums/checkout-domain/checkout-domain-payment-method.js +1 -0
- package/dist/esm/enums/checkout-domain/checkout-domain-status.js +1 -0
- package/dist/esm/enums/checkout-domain/index.js +3 -0
- package/dist/esm/enums/country/country-code-iso3-non-supported.js +1 -0
- package/dist/esm/enums/country/country-code-iso3-supported.js +1 -0
- package/dist/esm/enums/country/country-code-iso3.js +1 -0
- package/dist/esm/enums/country/country-definition-tax-mode.js +1 -0
- package/dist/esm/enums/country/index.js +4 -0
- package/dist/esm/enums/index.js +5 -0
- package/dist/esm/enums/meter/index.js +1 -0
- package/dist/esm/enums/meter/meter-aggregation.js +1 -0
- package/dist/esm/enums/metrics/index.js +6 -0
- package/dist/esm/enums/metrics/metric-entity.js +1 -0
- package/dist/esm/enums/metrics/metrics-aggregation.js +1 -0
- package/dist/esm/enums/metrics/metrics-bucket-interval.js +1 -0
- package/dist/esm/enums/metrics/metrics-field-type.js +1 -0
- package/dist/esm/enums/metrics/metrics-filter-operator.js +1 -0
- package/dist/esm/enums/metrics/metrics-sort-direction.js +1 -0
- package/dist/esm/enums/shared/action-source.js +1 -0
- package/dist/esm/enums/shared/actor-type.js +1 -0
- package/dist/esm/enums/shared/country-code-non-supported.js +1 -0
- package/dist/esm/enums/shared/country-code-supported.js +1 -0
- package/dist/esm/enums/shared/index.js +4 -0
- package/dist/esm/enums/subscription/index.js +3 -0
- package/dist/esm/enums/subscription/subscription-consent-requirement-status.js +1 -0
- package/dist/esm/enums/subscription/subscription-consent-requirement-type.js +1 -0
- package/dist/esm/enums/subscription/subscription-discount-type.js +1 -0
- package/dist/esm/enums/subscription-history/index.js +4 -0
- package/dist/esm/enums/subscription-history/subscription-history-action.js +1 -0
- package/dist/esm/enums/subscription-history/subscription-history-discount-type.js +1 -0
- package/dist/esm/enums/subscription-history/subscription-history-payment-attempted-operation.js +1 -0
- package/dist/esm/enums/subscription-history/subscription-history-reason.js +1 -0
- package/dist/esm/enums/verification/index.js +4 -0
- package/dist/esm/enums/verification/verification-status.js +1 -0
- package/dist/esm/enums/verification/verification-step-key.js +1 -0
- package/dist/esm/enums/verification/verification-step-status.js +1 -0
- package/dist/esm/enums/verification/verification-type.js +1 -0
- package/dist/esm/internal/providers/crypto/crypto-provider.js +6 -0
- package/dist/esm/internal/providers/crypto/edge-crypto.js +7 -0
- package/dist/esm/internal/providers/crypto/node-crypto.js +7 -1
- package/dist/esm/notifications/entities/adjustment/adjustment-notification.js +6 -1
- package/dist/esm/notifications/entities/adjustment/adjustment-tax-rates-used-notification.js +9 -0
- package/dist/esm/notifications/entities/adjustment/adjustment-tax-rates-used-totals-notification.js +10 -0
- package/dist/esm/notifications/entities/adjustment/index.js +2 -0
- package/dist/esm/notifications/entities/api-key/api-key-notification.js +2 -0
- package/dist/esm/notifications/entities/report/report-notification.js +2 -0
- package/dist/esm/notifications/entities/shared/index.js +2 -0
- package/dist/esm/notifications/entities/shared/money-optional-currency-notification.js +8 -0
- package/dist/esm/notifications/entities/shared/price-trial-unit-price-override-notification.js +9 -0
- package/dist/esm/notifications/entities/shared/trial-period-notification.js +7 -0
- package/dist/esm/notifications/entities/subscription/index.js +1 -0
- package/dist/esm/notifications/entities/subscription/subscription-consent-requirement-notification.js +21 -0
- package/dist/esm/notifications/entities/subscription/subscription-created-notification.js +5 -0
- package/dist/esm/notifications/entities/subscription/subscription-discount-notification.js +2 -0
- package/dist/esm/notifications/entities/subscription/subscription-notification.js +5 -0
- package/dist/esm/notifications/entities/subscription/subscription-price-notification.js +4 -0
- package/dist/esm/notifications/types/adjustment/adjustment-tax-rates-used-notification-response.js +1 -0
- package/dist/esm/notifications/types/adjustment/index.js +1 -0
- package/dist/esm/notifications/types/shared/index.js +2 -0
- package/dist/esm/notifications/types/shared/money-optional-currency-notification-response.js +1 -0
- package/dist/esm/notifications/types/shared/price-trial-unit-price-override-notification-response.js +1 -0
- package/dist/esm/notifications/types/subscription/index.js +1 -0
- package/dist/esm/notifications/types/subscription/subscription-consent-requirement-notification-response.js +1 -0
- package/dist/esm/paddle.js +19 -1
- package/dist/esm/resources/checkout-domains/index.js +40 -0
- package/dist/esm/resources/checkout-domains/operations/index.js +2 -0
- package/dist/esm/resources/checkout-domains/operations/list-checkout-domain-query-parameters.js +1 -0
- package/dist/esm/resources/checkout-domains/operations/verify-checkout-domain-payment-method-request-body.js +1 -0
- package/dist/esm/resources/countries/index.js +12 -0
- package/dist/esm/resources/currencies/index.js +12 -0
- package/dist/esm/resources/customer-portal-sessions/index.js +1 -3
- package/dist/esm/resources/index.js +9 -0
- package/dist/esm/resources/ip-addresses/index.js +12 -0
- package/dist/esm/resources/meters/index.js +21 -0
- package/dist/esm/resources/meters/operations/index.js +1 -0
- package/dist/esm/resources/meters/operations/list-meter-query-parameters.js +1 -0
- package/dist/esm/resources/metrics/index.js +16 -1
- package/dist/esm/resources/metrics/operations/explore-metrics-query-parameters.js +1 -0
- package/dist/esm/resources/metrics/operations/explore-metrics-request-body.js +1 -0
- package/dist/esm/resources/metrics/operations/index.js +3 -0
- package/dist/esm/resources/metrics/operations/list-explore-entities-query-parameters.js +1 -0
- package/dist/esm/resources/subscriptions/index.js +13 -2
- package/dist/esm/resources/subscriptions/operations/index.js +1 -0
- package/dist/esm/resources/subscriptions/operations/list-subscription-history-query-parameters.js +1 -0
- package/dist/esm/resources/usage-balance-units/index.js +21 -0
- package/dist/esm/resources/usage-balance-units/operations/index.js +1 -0
- package/dist/esm/resources/usage-balance-units/operations/list-usage-balance-unit-query-parameters.js +1 -0
- package/dist/esm/resources/usage-balances/index.js +25 -0
- package/dist/esm/resources/usage-balances/operations/index.js +1 -0
- package/dist/esm/resources/usage-balances/operations/list-usage-balance-query-parameters.js +1 -0
- package/dist/esm/resources/usage-events/helpers/usage-event-key.js +44 -0
- package/dist/esm/resources/usage-events/index.js +18 -0
- package/dist/esm/resources/usage-events/operations/create-usage-events-request-body.js +1 -0
- package/dist/esm/resources/usage-events/operations/index.js +1 -0
- package/dist/esm/resources/verifications/index.js +21 -0
- package/dist/esm/resources/verifications/operations/index.js +1 -0
- package/dist/esm/resources/verifications/operations/list-verification-query-parameters.js +1 -0
- package/dist/esm/types/adjustment/adjustment-tax-rates-used-response.js +1 -0
- package/dist/esm/types/adjustment/index.js +1 -0
- package/dist/esm/types/checkout-domain/checkout-domain-apple-pay-verification-response.js +1 -0
- package/dist/esm/types/checkout-domain/checkout-domain-payment-method-verification-response.js +1 -0
- package/dist/esm/types/checkout-domain/checkout-domain-response.js +1 -0
- package/dist/esm/types/checkout-domain/index.js +3 -0
- package/dist/esm/types/country/country-definition-response.js +1 -0
- package/dist/esm/types/country/index.js +1 -0
- package/dist/esm/types/currency/currency-definition-response.js +1 -0
- package/dist/esm/types/currency/index.js +1 -0
- package/dist/esm/types/index.js +9 -0
- package/dist/esm/types/ip-addresses/index.js +1 -0
- package/dist/esm/types/ip-addresses/ip-addresses-response.js +1 -0
- package/dist/esm/types/meter/index.js +1 -0
- package/dist/esm/types/meter/meter-response.js +1 -0
- package/dist/esm/types/metrics/index.js +12 -0
- package/dist/esm/types/metrics/metric-entity-definition-response.js +1 -0
- package/dist/esm/types/metrics/metric-entity-dimension.js +1 -0
- package/dist/esm/types/metrics/metric-entity-measure.js +1 -0
- package/dist/esm/types/metrics/metric-entity-time-dimension.js +1 -0
- package/dist/esm/types/metrics/metrics-explore-datapoint.js +1 -0
- package/dist/esm/types/metrics/metrics-explore-field-dimension.js +1 -0
- package/dist/esm/types/metrics/metrics-explore-field-measure.js +1 -0
- package/dist/esm/types/metrics/metrics-explore-fields.js +1 -0
- package/dist/esm/types/metrics/metrics-explore-paginated-meta.js +1 -0
- package/dist/esm/types/metrics/metrics-explore-pagination.js +1 -0
- package/dist/esm/types/metrics/metrics-explore-response.js +1 -0
- package/dist/esm/types/metrics/metrics-explore-series.js +1 -0
- package/dist/esm/types/shared/actor-response.js +1 -0
- package/dist/esm/types/shared/index.js +6 -0
- package/dist/esm/types/shared/money-optional-currency-response.js +1 -0
- package/dist/esm/types/shared/money-optional-currency.js +1 -0
- package/dist/esm/types/shared/price-trial-unit-price-override-response.js +1 -0
- package/dist/esm/types/shared/price-trial-unit-price-override.js +1 -0
- package/dist/esm/types/shared/trial-period-update.js +1 -0
- package/dist/esm/types/subscription/index.js +2 -0
- package/dist/esm/types/subscription/subscription-consent-requirement-response.js +1 -0
- package/dist/esm/types/subscription-history/index.js +5 -0
- package/dist/esm/types/subscription-history/subscription-history-detail-response.js +1 -0
- package/dist/esm/types/subscription-history/subscription-history-discount-response.js +1 -0
- package/dist/esm/types/subscription-history/subscription-history-item-response.js +1 -0
- package/dist/esm/types/subscription-history/subscription-history-item-update-summary-response.js +1 -0
- package/dist/esm/types/subscription-history/subscription-history-response.js +1 -0
- package/dist/esm/types/usage-balance/index.js +1 -0
- package/dist/esm/types/usage-balance/usage-balance-response.js +1 -0
- package/dist/esm/types/usage-balance-unit/index.js +1 -0
- package/dist/esm/types/usage-balance-unit/usage-balance-unit-response.js +1 -0
- package/dist/esm/types/verification/index.js +2 -0
- package/dist/esm/types/verification/verification-step.js +1 -0
- package/dist/esm/types/verification/verification.js +1 -0
- package/dist/esm/version.js +1 -1
- package/dist/tsconfig.cjs.tsbuildinfo +1 -1
- package/dist/tsconfig.esm.tsbuildinfo +1 -1
- package/dist/tsconfig.types.tsbuildinfo +1 -1
- package/dist/types/entities/adjustment/adjustment-tax-rates-used-totals.d.ts +7 -0
- package/dist/types/entities/adjustment/adjustment-tax-rates-used.d.ts +7 -0
- package/dist/types/entities/adjustment/adjustment.d.ts +3 -1
- package/dist/types/entities/adjustment/index.d.ts +2 -0
- package/dist/types/entities/checkout-domain/checkout-domain-apple-pay-verification.d.ts +6 -0
- package/dist/types/entities/checkout-domain/checkout-domain-collection.d.ts +6 -0
- package/dist/types/entities/checkout-domain/checkout-domain-payment-method-verification.d.ts +6 -0
- package/dist/types/entities/checkout-domain/checkout-domain.d.ts +12 -0
- package/dist/types/entities/checkout-domain/index.d.ts +4 -0
- package/dist/types/entities/country/country-definition.d.ts +15 -0
- package/dist/types/entities/country/index.d.ts +1 -0
- package/dist/types/entities/currency/currency-definition.d.ts +11 -0
- package/dist/types/entities/currency/index.d.ts +1 -0
- package/dist/types/entities/customer-portal-session/customer-portal-subscription-url.d.ts +1 -0
- package/dist/types/entities/index.d.ts +9 -0
- package/dist/types/entities/ip-addresses/index.d.ts +1 -0
- package/dist/types/entities/ip-addresses/ip-addresses.d.ts +5 -0
- package/dist/types/entities/meter/index.d.ts +2 -0
- package/dist/types/entities/meter/meter-collection.d.ts +6 -0
- package/dist/types/entities/meter/meter.d.ts +18 -0
- package/dist/types/entities/metrics/index.d.ts +11 -0
- package/dist/types/entities/metrics/metric-entity-definition.d.ts +12 -0
- package/dist/types/entities/metrics/metric-entity-dimension.d.ts +9 -0
- package/dist/types/entities/metrics/metric-entity-measure.d.ts +8 -0
- package/dist/types/entities/metrics/metric-entity-time-dimension.d.ts +7 -0
- package/dist/types/entities/metrics/metrics-explore-datapoint.d.ts +6 -0
- package/dist/types/entities/metrics/metrics-explore-field-dimension.d.ts +7 -0
- package/dist/types/entities/metrics/metrics-explore-field-measure.d.ts +9 -0
- package/dist/types/entities/metrics/metrics-explore-fields.d.ts +8 -0
- package/dist/types/entities/metrics/metrics-explore-pagination.d.ts +9 -0
- package/dist/types/entities/metrics/metrics-explore-series.d.ts +7 -0
- package/dist/types/entities/metrics/metrics-explore.d.ts +17 -0
- package/dist/types/entities/report/report.d.ts +1 -0
- package/dist/types/entities/shared/actor.d.ts +7 -0
- package/dist/types/entities/shared/index.d.ts +3 -0
- package/dist/types/entities/shared/money-optional-currency.d.ts +7 -0
- package/dist/types/entities/shared/price-trial-unit-price-override.d.ts +8 -0
- package/dist/types/entities/shared/trial-period.d.ts +4 -0
- package/dist/types/entities/subscription/index.d.ts +2 -0
- package/dist/types/entities/subscription/subscription-consent-requirement.d.ts +13 -0
- package/dist/types/entities/subscription/subscription-discount.d.ts +2 -0
- package/dist/types/entities/subscription/subscription-management.d.ts +1 -0
- package/dist/types/entities/subscription/subscription-preview.d.ts +2 -0
- package/dist/types/entities/subscription/subscription.d.ts +2 -0
- package/dist/types/entities/subscription-history/index.d.ts +7 -0
- package/dist/types/entities/subscription-history/subscription-history-activated-detail.d.ts +12 -0
- package/dist/types/entities/subscription-history/subscription-history-address-updated-detail.d.ts +7 -0
- package/dist/types/entities/subscription-history/subscription-history-billing-cycle-updated-detail.d.ts +10 -0
- package/dist/types/entities/subscription-history/subscription-history-billing-date-updated-detail.d.ts +11 -0
- package/dist/types/entities/subscription-history/subscription-history-billing-details-updated-detail.d.ts +7 -0
- package/dist/types/entities/subscription-history/subscription-history-business-added-detail.d.ts +7 -0
- package/dist/types/entities/subscription-history/subscription-history-business-removed-detail.d.ts +7 -0
- package/dist/types/entities/subscription-history/subscription-history-business-updated-detail.d.ts +7 -0
- package/dist/types/entities/subscription-history/subscription-history-canceled-detail.d.ts +7 -0
- package/dist/types/entities/subscription-history/subscription-history-collection-mode-updated-detail.d.ts +7 -0
- package/dist/types/entities/subscription-history/subscription-history-collection.d.ts +6 -0
- package/dist/types/entities/subscription-history/subscription-history-consent-requirement-granted-detail.d.ts +7 -0
- package/dist/types/entities/subscription-history/subscription-history-created-detail.d.ts +27 -0
- package/dist/types/entities/subscription-history/subscription-history-currency-updated-detail.d.ts +7 -0
- package/dist/types/entities/subscription-history/subscription-history-custom-data-updated-detail.d.ts +7 -0
- package/dist/types/entities/subscription-history/subscription-history-customer-updated-detail.d.ts +7 -0
- package/dist/types/entities/subscription-history/subscription-history-detail.d.ts +4 -0
- package/dist/types/entities/subscription-history/subscription-history-details.d.ts +33 -0
- package/dist/types/entities/subscription-history/subscription-history-discount-added-detail.d.ts +7 -0
- package/dist/types/entities/subscription-history/subscription-history-discount-expired-detail.d.ts +7 -0
- package/dist/types/entities/subscription-history/subscription-history-discount-removed-detail.d.ts +7 -0
- package/dist/types/entities/subscription-history/subscription-history-discount.d.ts +10 -0
- package/dist/types/entities/subscription-history/subscription-history-item-added-detail.d.ts +14 -0
- package/dist/types/entities/subscription-history/subscription-history-item-quantity-updated-detail.d.ts +14 -0
- package/dist/types/entities/subscription-history/subscription-history-item-removed-detail.d.ts +14 -0
- package/dist/types/entities/subscription-history/subscription-history-item-update-summary.d.ts +5 -0
- package/dist/types/entities/subscription-history/subscription-history-item.d.ts +7 -0
- package/dist/types/entities/subscription-history/subscription-history-one-off-charge-applied-detail.d.ts +11 -0
- package/dist/types/entities/subscription-history/subscription-history-past-due-detail.d.ts +8 -0
- package/dist/types/entities/subscription-history/subscription-history-paused-detail.d.ts +8 -0
- package/dist/types/entities/subscription-history/subscription-history-payment-attempted-detail.d.ts +8 -0
- package/dist/types/entities/subscription-history/subscription-history-payment-method-added-detail.d.ts +5 -0
- package/dist/types/entities/subscription-history/subscription-history-payment-method-removed-detail.d.ts +5 -0
- package/dist/types/entities/subscription-history/subscription-history-payment-method-updated-detail.d.ts +5 -0
- package/dist/types/entities/subscription-history/subscription-history-renewed-detail.d.ts +9 -0
- package/dist/types/entities/subscription-history/subscription-history-resumed-detail.d.ts +8 -0
- package/dist/types/entities/subscription-history/subscription-history-scheduled-change-added-detail.d.ts +7 -0
- package/dist/types/entities/subscription-history/subscription-history-scheduled-change-removed-detail.d.ts +7 -0
- package/dist/types/entities/subscription-history/subscription-history-scheduled-change-updated-detail.d.ts +7 -0
- package/dist/types/entities/subscription-history/subscription-history.d.ts +15 -0
- package/dist/types/entities/transaction/adjustment-totals.d.ts +1 -0
- package/dist/types/entities/transaction/transaction-adjustment.d.ts +5 -2
- package/dist/types/entities/transaction/transaction-preview.d.ts +1 -1
- package/dist/types/entities/usage-balance/index.d.ts +5 -0
- package/dist/types/entities/usage-balance/usage-balance-amount.d.ts +6 -0
- package/dist/types/entities/usage-balance/usage-balance-balance.d.ts +9 -0
- package/dist/types/entities/usage-balance/usage-balance-collection.d.ts +6 -0
- package/dist/types/entities/usage-balance/usage-balance-overage.d.ts +6 -0
- package/dist/types/entities/usage-balance/usage-balance.d.ts +11 -0
- package/dist/types/entities/usage-balance-unit/index.d.ts +2 -0
- package/dist/types/entities/usage-balance-unit/usage-balance-unit-collection.d.ts +6 -0
- package/dist/types/entities/usage-balance-unit/usage-balance-unit.d.ts +11 -0
- package/dist/types/entities/verification/index.d.ts +3 -0
- package/dist/types/entities/verification/verification-collection.d.ts +6 -0
- package/dist/types/entities/verification/verification-step.d.ts +11 -0
- package/dist/types/entities/verification/verification.d.ts +12 -0
- package/dist/types/enums/adjustment/adjustment-currency-code.d.ts +1 -1
- package/dist/types/enums/api-key/api-key-permission.d.ts +1 -1
- package/dist/types/enums/checkout-domain/checkout-domain-payment-method-verification-status.d.ts +1 -0
- package/dist/types/enums/checkout-domain/checkout-domain-payment-method.d.ts +1 -0
- package/dist/types/enums/checkout-domain/checkout-domain-status.d.ts +1 -0
- package/dist/types/enums/checkout-domain/index.d.ts +3 -0
- package/dist/types/enums/country/country-code-iso3-non-supported.d.ts +1 -0
- package/dist/types/enums/country/country-code-iso3-supported.d.ts +1 -0
- package/dist/types/enums/country/country-code-iso3.d.ts +3 -0
- package/dist/types/enums/country/country-definition-tax-mode.d.ts +1 -0
- package/dist/types/enums/country/index.d.ts +4 -0
- package/dist/types/enums/index.d.ts +5 -0
- package/dist/types/enums/meter/index.d.ts +1 -0
- package/dist/types/enums/meter/meter-aggregation.d.ts +1 -0
- package/dist/types/enums/metrics/index.d.ts +6 -0
- package/dist/types/enums/metrics/metric-entity.d.ts +1 -0
- package/dist/types/enums/metrics/metrics-aggregation.d.ts +1 -0
- package/dist/types/enums/metrics/metrics-bucket-interval.d.ts +1 -0
- package/dist/types/enums/metrics/metrics-field-type.d.ts +1 -0
- package/dist/types/enums/metrics/metrics-filter-operator.d.ts +1 -0
- package/dist/types/enums/metrics/metrics-sort-direction.d.ts +1 -0
- package/dist/types/enums/payment-method/origin.d.ts +1 -1
- package/dist/types/enums/report/report-filter-name.d.ts +1 -1
- package/dist/types/enums/report/report-type.d.ts +1 -1
- package/dist/types/enums/shared/action-source.d.ts +1 -0
- package/dist/types/enums/shared/actor-type.d.ts +1 -0
- package/dist/types/enums/shared/country-code-non-supported.d.ts +1 -0
- package/dist/types/enums/shared/country-code-supported.d.ts +1 -0
- package/dist/types/enums/shared/country-code.d.ts +3 -1
- package/dist/types/enums/shared/error-code.d.ts +1 -1
- package/dist/types/enums/shared/index.d.ts +4 -0
- package/dist/types/enums/subscription/index.d.ts +3 -0
- package/dist/types/enums/subscription/subscription-consent-requirement-status.d.ts +1 -0
- package/dist/types/enums/subscription/subscription-consent-requirement-type.d.ts +1 -0
- package/dist/types/enums/subscription/subscription-discount-type.d.ts +1 -0
- package/dist/types/enums/subscription-history/index.d.ts +4 -0
- package/dist/types/enums/subscription-history/subscription-history-action.d.ts +1 -0
- package/dist/types/enums/subscription-history/subscription-history-discount-type.d.ts +1 -0
- package/dist/types/enums/subscription-history/subscription-history-payment-attempted-operation.d.ts +1 -0
- package/dist/types/enums/subscription-history/subscription-history-reason.d.ts +1 -0
- package/dist/types/enums/verification/index.d.ts +4 -0
- package/dist/types/enums/verification/verification-status.d.ts +1 -0
- package/dist/types/enums/verification/verification-step-key.d.ts +1 -0
- package/dist/types/enums/verification/verification-step-status.d.ts +1 -0
- package/dist/types/enums/verification/verification-type.d.ts +1 -0
- package/dist/types/internal/providers/crypto/crypto-provider.d.ts +2 -0
- package/dist/types/internal/providers/crypto/edge-crypto.d.ts +2 -0
- package/dist/types/internal/providers/crypto/node-crypto.d.ts +2 -0
- package/dist/types/notifications/entities/adjustment/adjustment-notification.d.ts +3 -1
- package/dist/types/notifications/entities/adjustment/adjustment-tax-rates-used-notification.d.ts +7 -0
- package/dist/types/notifications/entities/adjustment/adjustment-tax-rates-used-totals-notification.d.ts +7 -0
- package/dist/types/notifications/entities/adjustment/index.d.ts +2 -0
- package/dist/types/notifications/entities/api-key/api-key-notification.d.ts +1 -0
- package/dist/types/notifications/entities/report/report-notification.d.ts +1 -0
- package/dist/types/notifications/entities/shared/index.d.ts +2 -0
- package/dist/types/notifications/entities/shared/money-optional-currency-notification.d.ts +7 -0
- package/dist/types/notifications/entities/shared/price-trial-unit-price-override-notification.d.ts +8 -0
- package/dist/types/notifications/entities/shared/trial-period-notification.d.ts +4 -0
- package/dist/types/notifications/entities/subscription/index.d.ts +1 -0
- package/dist/types/notifications/entities/subscription/subscription-consent-requirement-notification.d.ts +13 -0
- package/dist/types/notifications/entities/subscription/subscription-created-notification.d.ts +2 -0
- package/dist/types/notifications/entities/subscription/subscription-discount-notification.d.ts +2 -0
- package/dist/types/notifications/entities/subscription/subscription-notification.d.ts +2 -0
- package/dist/types/notifications/entities/subscription/subscription-price-notification.d.ts +2 -0
- package/dist/types/notifications/types/adjustment/adjustment-notification-response.d.ts +3 -1
- package/dist/types/notifications/types/adjustment/adjustment-tax-rates-used-notification-response.d.ts +9 -0
- package/dist/types/notifications/types/adjustment/index.d.ts +1 -0
- package/dist/types/notifications/types/api-key/api-key-notification-response.d.ts +1 -0
- package/dist/types/notifications/types/product/product-notification-response.d.ts +1 -0
- package/dist/types/notifications/types/report/report-notification-response.d.ts +1 -0
- package/dist/types/notifications/types/shared/index.d.ts +2 -0
- package/dist/types/notifications/types/shared/money-optional-currency-notification-response.d.ts +5 -0
- package/dist/types/notifications/types/shared/price-trial-unit-price-override-notification-response.d.ts +6 -0
- package/dist/types/notifications/types/shared/trial-period-notification-response.d.ts +4 -0
- package/dist/types/notifications/types/shared/trial-period-notification.d.ts +3 -0
- package/dist/types/notifications/types/subscription/index.d.ts +1 -0
- package/dist/types/notifications/types/subscription/subscription-consent-requirement-notification-response.d.ts +11 -0
- package/dist/types/notifications/types/subscription/subscription-created-notification-response.d.ts +2 -1
- package/dist/types/notifications/types/subscription/subscription-discount-notification-response.d.ts +2 -0
- package/dist/types/notifications/types/subscription/subscription-notification-response.d.ts +2 -0
- package/dist/types/notifications/types/subscription/subscription-price-notification-response.d.ts +2 -0
- package/dist/types/paddle.d.ts +10 -1
- package/dist/types/resources/adjustments/operations/create-adjustment-request-body.d.ts +1 -1
- package/dist/types/resources/adjustments/operations/list-adjustment-query-parameters.d.ts +1 -1
- package/dist/types/resources/checkout-domains/index.d.ts +10 -0
- package/dist/types/resources/checkout-domains/operations/index.d.ts +2 -0
- package/dist/types/resources/checkout-domains/operations/list-checkout-domain-query-parameters.d.ts +9 -0
- package/dist/types/resources/checkout-domains/operations/verify-checkout-domain-payment-method-request-body.d.ts +4 -0
- package/dist/types/resources/countries/index.d.ts +5 -0
- package/dist/types/resources/currencies/index.d.ts +5 -0
- package/dist/types/resources/customer-portal-sessions/index.d.ts +1 -1
- package/dist/types/resources/customer-portal-sessions/operations/create-customer-portal-session-request-object.d.ts +1 -1
- package/dist/types/resources/events/operations/list-events-query-parameters.d.ts +3 -0
- package/dist/types/resources/index.d.ts +9 -0
- package/dist/types/resources/ip-addresses/index.d.ts +5 -0
- package/dist/types/resources/meters/index.d.ts +8 -0
- package/dist/types/resources/meters/operations/index.d.ts +1 -0
- package/dist/types/resources/meters/operations/list-meter-query-parameters.d.ts +8 -0
- package/dist/types/resources/metrics/index.d.ts +4 -2
- package/dist/types/resources/metrics/operations/explore-metrics-query-parameters.d.ts +3 -0
- package/dist/types/resources/metrics/operations/explore-metrics-request-body.d.ts +33 -0
- package/dist/types/resources/metrics/operations/index.d.ts +3 -0
- package/dist/types/resources/metrics/operations/list-explore-entities-query-parameters.d.ts +4 -0
- package/dist/types/resources/notifications/operations/list-notification-log-query-parameters.d.ts +2 -2
- package/dist/types/resources/prices/operations/list-price-query-parameters.d.ts +3 -1
- package/dist/types/resources/prices/operations/update-price-request-body.d.ts +2 -2
- package/dist/types/resources/simulation-runs/operations/get-simulation-run-query-parameters.d.ts +1 -1
- package/dist/types/resources/subscriptions/index.d.ts +4 -3
- package/dist/types/resources/subscriptions/operations/index.d.ts +1 -0
- package/dist/types/resources/subscriptions/operations/list-subscription-history-query-parameters.d.ts +14 -0
- package/dist/types/resources/subscriptions/operations/list-subscription-query-parameters.d.ts +2 -1
- package/dist/types/resources/subscriptions/operations/resume-subscription-request-object.d.ts +1 -1
- package/dist/types/resources/transactions/operations/create-transaction-query-parameters.d.ts +1 -1
- package/dist/types/resources/transactions/operations/get-transaction-query-parameters.d.ts +1 -1
- package/dist/types/resources/transactions/operations/list-transaction-query-parameters.d.ts +2 -2
- package/dist/types/resources/transactions/operations/update-transaction-query-parameters.d.ts +1 -1
- package/dist/types/resources/usage-balance-units/index.d.ts +8 -0
- package/dist/types/resources/usage-balance-units/operations/index.d.ts +1 -0
- package/dist/types/resources/usage-balance-units/operations/list-usage-balance-unit-query-parameters.d.ts +8 -0
- package/dist/types/resources/usage-balances/index.d.ts +8 -0
- package/dist/types/resources/usage-balances/operations/index.d.ts +1 -0
- package/dist/types/resources/usage-balances/operations/list-usage-balance-query-parameters.d.ts +6 -0
- package/dist/types/resources/usage-events/helpers/usage-event-key.d.ts +10 -0
- package/dist/types/resources/usage-events/index.d.ts +10 -0
- package/dist/types/resources/usage-events/operations/create-usage-events-request-body.d.ts +10 -0
- package/dist/types/resources/usage-events/operations/index.d.ts +1 -0
- package/dist/types/resources/verifications/index.d.ts +8 -0
- package/dist/types/resources/verifications/operations/index.d.ts +1 -0
- package/dist/types/resources/verifications/operations/list-verification-query-parameters.d.ts +8 -0
- package/dist/types/types/adjustment/adjustment-response.d.ts +3 -1
- package/dist/types/types/adjustment/adjustment-tax-rates-used-response.d.ts +9 -0
- package/dist/types/types/adjustment/index.d.ts +1 -0
- package/dist/types/types/checkout-domain/checkout-domain-apple-pay-verification-response.d.ts +4 -0
- package/dist/types/types/checkout-domain/checkout-domain-payment-method-verification-response.d.ts +4 -0
- package/dist/types/types/checkout-domain/checkout-domain-response.d.ts +10 -0
- package/dist/types/types/checkout-domain/index.d.ts +3 -0
- package/dist/types/types/country/country-definition-response.d.ts +13 -0
- package/dist/types/types/country/index.d.ts +1 -0
- package/dist/types/types/currency/currency-definition-response.d.ts +9 -0
- package/dist/types/types/currency/index.d.ts +1 -0
- package/dist/types/types/customer-portal-session/customer-portal-subscription-url.d.ts +1 -0
- package/dist/types/types/index.d.ts +9 -0
- package/dist/types/types/ip-addresses/index.d.ts +1 -0
- package/dist/types/types/ip-addresses/ip-addresses-response.d.ts +3 -0
- package/dist/types/types/meter/index.d.ts +1 -0
- package/dist/types/types/meter/meter-response.d.ts +16 -0
- package/dist/types/types/metrics/index.d.ts +12 -0
- package/dist/types/types/metrics/metric-entity-definition-response.d.ts +10 -0
- package/dist/types/types/metrics/metric-entity-dimension.d.ts +7 -0
- package/dist/types/types/metrics/metric-entity-measure.d.ts +6 -0
- package/dist/types/types/metrics/metric-entity-time-dimension.d.ts +5 -0
- package/dist/types/types/metrics/metrics-explore-datapoint.d.ts +4 -0
- package/dist/types/types/metrics/metrics-explore-field-dimension.d.ts +5 -0
- package/dist/types/types/metrics/metrics-explore-field-measure.d.ts +7 -0
- package/dist/types/types/metrics/metrics-explore-fields.d.ts +6 -0
- package/dist/types/types/metrics/metrics-explore-paginated-meta.d.ts +5 -0
- package/dist/types/types/metrics/metrics-explore-pagination.d.ts +6 -0
- package/dist/types/types/metrics/metrics-explore-response.d.ts +13 -0
- package/dist/types/types/metrics/metrics-explore-series.d.ts +5 -0
- package/dist/types/types/report/report.d.ts +1 -0
- package/dist/types/types/shared/actor-response.d.ts +5 -0
- package/dist/types/types/shared/billing-details-update.d.ts +4 -4
- package/dist/types/types/shared/index.d.ts +6 -0
- package/dist/types/types/shared/money-optional-currency-response.d.ts +5 -0
- package/dist/types/types/shared/money-optional-currency.d.ts +5 -0
- package/dist/types/types/shared/price-trial-unit-price-override-response.d.ts +6 -0
- package/dist/types/types/shared/price-trial-unit-price-override.d.ts +6 -0
- package/dist/types/types/shared/trial-period-response.d.ts +4 -0
- package/dist/types/types/shared/trial-period-update.d.ts +10 -0
- package/dist/types/types/shared/trial-period.d.ts +4 -0
- package/dist/types/types/subscription/index.d.ts +2 -0
- package/dist/types/types/subscription/subscription-consent-requirement-response.d.ts +11 -0
- package/dist/types/types/subscription/subscription-discount-response.d.ts +2 -0
- package/dist/types/types/subscription/subscription-management-response.d.ts +1 -0
- package/dist/types/types/subscription/subscription-preview-response.d.ts +2 -0
- package/dist/types/types/subscription/subscription-response.d.ts +2 -0
- package/dist/types/types/subscription-history/index.d.ts +5 -0
- package/dist/types/types/subscription-history/subscription-history-detail-response.d.ts +185 -0
- package/dist/types/types/subscription-history/subscription-history-discount-response.d.ts +8 -0
- package/dist/types/types/subscription-history/subscription-history-item-response.d.ts +5 -0
- package/dist/types/types/subscription-history/subscription-history-item-update-summary-response.d.ts +3 -0
- package/dist/types/types/subscription-history/subscription-history-response.d.ts +13 -0
- package/dist/types/types/transaction/adjustment-totals-response.d.ts +1 -0
- package/dist/types/types/transaction/transaction-adjustment-response.d.ts +5 -2
- package/dist/types/types/transaction/transaction-preview-response.d.ts +1 -0
- package/dist/types/types/usage-balance/index.d.ts +1 -0
- package/dist/types/types/usage-balance/usage-balance-response.d.ts +21 -0
- package/dist/types/types/usage-balance-unit/index.d.ts +1 -0
- package/dist/types/types/usage-balance-unit/usage-balance-unit-response.d.ts +9 -0
- package/dist/types/types/verification/index.d.ts +2 -0
- package/dist/types/types/verification/verification-step.d.ts +9 -0
- package/dist/types/types/verification/verification.d.ts +10 -0
- package/dist/types/version.d.ts +1 -1
- package/package.json +1 -1
|
@@ -8,9 +8,7 @@ export class CustomerPortalSessionsResource extends BaseResource {
|
|
|
8
8
|
const urlWithPathParams = new PathParameters(CustomerPortalSessionPaths.create, {
|
|
9
9
|
customer_id: customerId,
|
|
10
10
|
}).deriveUrl();
|
|
11
|
-
const response = await this.client.post(urlWithPathParams, {
|
|
12
|
-
subscriptionIds,
|
|
13
|
-
});
|
|
11
|
+
const response = await this.client.post(urlWithPathParams, subscriptionIds ? { subscriptionIds } : {});
|
|
14
12
|
const data = this.handleResponse(response);
|
|
15
13
|
return new CustomerPortalSession(data);
|
|
16
14
|
}
|
|
@@ -21,3 +21,12 @@ export * from './simulation-runs/index.js';
|
|
|
21
21
|
export * from './simulation-run-events/index.js';
|
|
22
22
|
export * from './client-tokens/index.js';
|
|
23
23
|
export * from './metrics/index.js';
|
|
24
|
+
export * from './usage-events/index.js';
|
|
25
|
+
export * from './usage-balances/index.js';
|
|
26
|
+
export * from './meters/index.js';
|
|
27
|
+
export * from './usage-balance-units/index.js';
|
|
28
|
+
export * from './verifications/index.js';
|
|
29
|
+
export * from './countries/index.js';
|
|
30
|
+
export * from './currencies/index.js';
|
|
31
|
+
export * from './checkout-domains/index.js';
|
|
32
|
+
export * from './ip-addresses/index.js';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { BaseResource } from '../../internal/base/index.js';
|
|
2
|
+
import { IpAddresses } from '../../entities/index.js';
|
|
3
|
+
const IpAddressesPaths = {
|
|
4
|
+
get: '/ips',
|
|
5
|
+
};
|
|
6
|
+
export class IpAddressesResource extends BaseResource {
|
|
7
|
+
async get() {
|
|
8
|
+
const response = await this.client.get(IpAddressesPaths.get);
|
|
9
|
+
const data = this.handleResponse(response);
|
|
10
|
+
return new IpAddresses(data);
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Meter, MeterCollection } from '../../entities/index.js';
|
|
2
|
+
import { BaseResource, PathParameters, QueryParameters } from '../../internal/base/index.js';
|
|
3
|
+
const MeterPaths = {
|
|
4
|
+
list: '/meters',
|
|
5
|
+
get: '/meters/{meter_id}',
|
|
6
|
+
};
|
|
7
|
+
export * from './operations/index.js';
|
|
8
|
+
export class MetersResource extends BaseResource {
|
|
9
|
+
list(queryParams) {
|
|
10
|
+
const queryParameters = new QueryParameters(queryParams);
|
|
11
|
+
return new MeterCollection(this.client, MeterPaths.list + queryParameters.toQueryString());
|
|
12
|
+
}
|
|
13
|
+
async get(meterId) {
|
|
14
|
+
const urlWithPathParams = new PathParameters(MeterPaths.get, {
|
|
15
|
+
meter_id: meterId,
|
|
16
|
+
}).deriveUrl();
|
|
17
|
+
const response = await this.client.get(urlWithPathParams);
|
|
18
|
+
const data = this.handleResponse(response);
|
|
19
|
+
return new Meter(data);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './list-meter-query-parameters.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BaseResource, QueryParameters } from '../../internal/base/index.js';
|
|
2
|
-
import { MetricsTimeseriesActiveSubscribers, MetricsTimeseriesChargebacks, MetricsTimeseriesCheckoutConversion, MetricsTimeseriesMonthlyRecurringRevenue, MetricsTimeseriesMonthlyRecurringRevenueChange, MetricsTimeseriesRefunds, MetricsTimeseriesRevenue, } from '../../entities/index.js';
|
|
2
|
+
import { MetricEntityDefinition, MetricsExplore, MetricsTimeseriesActiveSubscribers, MetricsTimeseriesChargebacks, MetricsTimeseriesCheckoutConversion, MetricsTimeseriesMonthlyRecurringRevenue, MetricsTimeseriesMonthlyRecurringRevenueChange, MetricsTimeseriesRefunds, MetricsTimeseriesRevenue, } from '../../entities/index.js';
|
|
3
3
|
const MetricsPaths = {
|
|
4
4
|
activeSubscribers: '/metrics/active-subscribers',
|
|
5
5
|
monthlyRecurringRevenue: '/metrics/monthly-recurring-revenue',
|
|
@@ -8,6 +8,8 @@ const MetricsPaths = {
|
|
|
8
8
|
refunds: '/metrics/refunds',
|
|
9
9
|
chargebacks: '/metrics/chargebacks',
|
|
10
10
|
checkoutConversion: '/metrics/checkout-conversion',
|
|
11
|
+
explore: '/metrics/explore',
|
|
12
|
+
listExploreEntities: '/metrics/explore/entities',
|
|
11
13
|
};
|
|
12
14
|
export * from './operations/index.js';
|
|
13
15
|
export class MetricsResource extends BaseResource {
|
|
@@ -53,4 +55,17 @@ export class MetricsResource extends BaseResource {
|
|
|
53
55
|
const data = this.handleResponse(response);
|
|
54
56
|
return new MetricsTimeseriesCheckoutConversion(data);
|
|
55
57
|
}
|
|
58
|
+
async explore(exploreMetricsParameters, queryParams) {
|
|
59
|
+
const queryParameters = new QueryParameters(queryParams);
|
|
60
|
+
const response = await this.client.post(MetricsPaths.explore + queryParameters.toQueryString(), exploreMetricsParameters);
|
|
61
|
+
const data = this.handleResponse(response);
|
|
62
|
+
const { pagination } = response.meta;
|
|
63
|
+
return new MetricsExplore(data, pagination);
|
|
64
|
+
}
|
|
65
|
+
async listExploreEntities(queryParams) {
|
|
66
|
+
const queryParameters = new QueryParameters(queryParams);
|
|
67
|
+
const response = await this.client.get(MetricsPaths.listExploreEntities, queryParameters);
|
|
68
|
+
const data = this.handleResponse(response);
|
|
69
|
+
return data.map((definition) => new MetricEntityDefinition(definition));
|
|
70
|
+
}
|
|
56
71
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -5,3 +5,6 @@ export * from './get-revenue-query-parameters.js';
|
|
|
5
5
|
export * from './get-refunds-query-parameters.js';
|
|
6
6
|
export * from './get-chargebacks-query-parameters.js';
|
|
7
7
|
export * from './get-checkout-conversion-query-parameters.js';
|
|
8
|
+
export * from './explore-metrics-request-body.js';
|
|
9
|
+
export * from './explore-metrics-query-parameters.js';
|
|
10
|
+
export * from './list-explore-entities-query-parameters.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BaseResource, PathParameters, QueryParameters } from '../../internal/base/index.js';
|
|
2
|
-
import { Subscription, SubscriptionCollection, SubscriptionPreview, Transaction } from '../../entities/index.js';
|
|
2
|
+
import { Subscription, SubscriptionCollection, SubscriptionHistoryCollection, SubscriptionPreview, Transaction, } from '../../entities/index.js';
|
|
3
3
|
const SubscriptionPaths = {
|
|
4
4
|
get: '/subscriptions/{subscription_id}',
|
|
5
5
|
update: '/subscriptions/{subscription_id}',
|
|
@@ -12,6 +12,7 @@ const SubscriptionPaths = {
|
|
|
12
12
|
createOneTimeCharge: '/subscriptions/{subscription_id}/charge',
|
|
13
13
|
previewOneTimeCharge: '/subscriptions/{subscription_id}/charge/preview',
|
|
14
14
|
getTransactionToUpdatePaymentMethod: '/subscriptions/{subscription_id}/update-payment-method-transaction',
|
|
15
|
+
listHistory: '/subscriptions/{subscription_id}/history',
|
|
15
16
|
};
|
|
16
17
|
export * from './operations/index.js';
|
|
17
18
|
export class SubscriptionsResource extends BaseResource {
|
|
@@ -32,7 +33,10 @@ export class SubscriptionsResource extends BaseResource {
|
|
|
32
33
|
return new Subscription(data);
|
|
33
34
|
}
|
|
34
35
|
list(queryParams) {
|
|
35
|
-
const queryParameters = new QueryParameters(
|
|
36
|
+
const queryParameters = new QueryParameters({
|
|
37
|
+
...queryParams,
|
|
38
|
+
nextBilledAt: queryParams?.nextBilledAt === null ? ['null'] : queryParams?.nextBilledAt,
|
|
39
|
+
});
|
|
36
40
|
return new SubscriptionCollection(this.client, SubscriptionPaths.list + queryParameters.toQueryString());
|
|
37
41
|
}
|
|
38
42
|
async get(subscriptionId, queryParams) {
|
|
@@ -100,4 +104,11 @@ export class SubscriptionsResource extends BaseResource {
|
|
|
100
104
|
const data = this.handleResponse(response);
|
|
101
105
|
return new Transaction(data);
|
|
102
106
|
}
|
|
107
|
+
listHistory(subscriptionId, queryParams) {
|
|
108
|
+
const queryParameters = new QueryParameters(queryParams);
|
|
109
|
+
const urlWithPathParams = new PathParameters(SubscriptionPaths.listHistory, {
|
|
110
|
+
subscription_id: subscriptionId,
|
|
111
|
+
}).deriveUrl();
|
|
112
|
+
return new SubscriptionHistoryCollection(this.client, urlWithPathParams + queryParameters.toQueryString());
|
|
113
|
+
}
|
|
103
114
|
}
|
|
@@ -5,3 +5,4 @@ export * from './pause-subscription-request-object.js';
|
|
|
5
5
|
export * from './resume-subscription-request-object.js';
|
|
6
6
|
export * from './cancel-subscription-request-object.js';
|
|
7
7
|
export * from './create-subscription-charge-request-object.js';
|
|
8
|
+
export * from './list-subscription-history-query-parameters.js';
|
package/dist/esm/resources/subscriptions/operations/list-subscription-history-query-parameters.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { UsageBalanceUnit, UsageBalanceUnitCollection } from '../../entities/index.js';
|
|
2
|
+
import { BaseResource, PathParameters, QueryParameters } from '../../internal/base/index.js';
|
|
3
|
+
const UsageBalanceUnitPaths = {
|
|
4
|
+
list: '/usage-balance-units',
|
|
5
|
+
get: '/usage-balance-units/{usage_balance_unit_id}',
|
|
6
|
+
};
|
|
7
|
+
export * from './operations/index.js';
|
|
8
|
+
export class UsageBalanceUnitsResource extends BaseResource {
|
|
9
|
+
list(queryParams) {
|
|
10
|
+
const queryParameters = new QueryParameters(queryParams);
|
|
11
|
+
return new UsageBalanceUnitCollection(this.client, UsageBalanceUnitPaths.list + queryParameters.toQueryString());
|
|
12
|
+
}
|
|
13
|
+
async get(usageBalanceUnitId) {
|
|
14
|
+
const urlWithPathParams = new PathParameters(UsageBalanceUnitPaths.get, {
|
|
15
|
+
usage_balance_unit_id: usageBalanceUnitId,
|
|
16
|
+
}).deriveUrl();
|
|
17
|
+
const response = await this.client.get(urlWithPathParams);
|
|
18
|
+
const data = this.handleResponse(response);
|
|
19
|
+
return new UsageBalanceUnit(data);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './list-usage-balance-unit-query-parameters.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { UsageBalance, UsageBalanceCollection } from '../../entities/index.js';
|
|
2
|
+
import { BaseResource, PathParameters, QueryParameters } from '../../internal/base/index.js';
|
|
3
|
+
const UsageBalancePaths = {
|
|
4
|
+
list: '/customers/{customer_id}/usage-balances',
|
|
5
|
+
get: '/customers/{customer_id}/usage-balances/{usage_balance_id}',
|
|
6
|
+
};
|
|
7
|
+
export * from './operations/index.js';
|
|
8
|
+
export class UsageBalancesResource extends BaseResource {
|
|
9
|
+
list(customerId, queryParams) {
|
|
10
|
+
const urlWithPathParams = new PathParameters(UsageBalancePaths.list, {
|
|
11
|
+
customer_id: customerId,
|
|
12
|
+
}).deriveUrl();
|
|
13
|
+
const queryParameters = new QueryParameters(queryParams);
|
|
14
|
+
return new UsageBalanceCollection(this.client, urlWithPathParams + queryParameters.toQueryString());
|
|
15
|
+
}
|
|
16
|
+
async get(customerId, usageBalanceId) {
|
|
17
|
+
const urlWithPathParams = new PathParameters(UsageBalancePaths.get, {
|
|
18
|
+
customer_id: customerId,
|
|
19
|
+
usage_balance_id: usageBalanceId,
|
|
20
|
+
}).deriveUrl();
|
|
21
|
+
const response = await this.client.get(urlWithPathParams);
|
|
22
|
+
const data = this.handleResponse(response);
|
|
23
|
+
return new UsageBalance(data);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './list-usage-balance-query-parameters.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { RuntimeProvider } from '../../../internal/providers/runtime-provider.js';
|
|
2
|
+
const EVENT_KEY_MAX_LENGTH = 255;
|
|
3
|
+
const EVENT_KEY_PATTERN = /^[a-z0-9_-]+$/;
|
|
4
|
+
const ULID_ENCODING = '0123456789abcdefghjkmnpqrstvwxyz';
|
|
5
|
+
const ULID_TIME_LENGTH = 10;
|
|
6
|
+
const ULID_RANDOM_LENGTH = 16;
|
|
7
|
+
const ULID_LENGTH = ULID_TIME_LENGTH + ULID_RANDOM_LENGTH;
|
|
8
|
+
export class UsageEventKey {
|
|
9
|
+
static getCryptoProvider() {
|
|
10
|
+
const cryptoProvider = RuntimeProvider.getProvider()?.crypto;
|
|
11
|
+
if (!cryptoProvider) {
|
|
12
|
+
throw new Error('[Paddle] Unknown runtime. Cannot generate event key');
|
|
13
|
+
}
|
|
14
|
+
return cryptoProvider;
|
|
15
|
+
}
|
|
16
|
+
static encodeTime(time) {
|
|
17
|
+
let encodedTime = '';
|
|
18
|
+
for (let i = 0; i < ULID_TIME_LENGTH; i++) {
|
|
19
|
+
encodedTime = ULID_ENCODING[time % 32] + encodedTime;
|
|
20
|
+
time = Math.floor(time / 32);
|
|
21
|
+
}
|
|
22
|
+
return encodedTime;
|
|
23
|
+
}
|
|
24
|
+
static encodeRandom(bytes) {
|
|
25
|
+
return Array.from(bytes, (byte) => ULID_ENCODING[byte % 32]).join('');
|
|
26
|
+
}
|
|
27
|
+
static generate(options) {
|
|
28
|
+
const prefix = options?.prefix;
|
|
29
|
+
const maxPrefixLength = EVENT_KEY_MAX_LENGTH - ULID_LENGTH - 1;
|
|
30
|
+
if (prefix !== undefined && (!EVENT_KEY_PATTERN.test(prefix) || prefix.length > maxPrefixLength)) {
|
|
31
|
+
throw new Error(`[Paddle] Invalid event key prefix. Prefix must be 1-${maxPrefixLength} characters of a-z, 0-9, '_' or '-'`);
|
|
32
|
+
}
|
|
33
|
+
const cryptoProvider = UsageEventKey.getCryptoProvider();
|
|
34
|
+
const ulid = UsageEventKey.encodeTime(Date.now()) +
|
|
35
|
+
UsageEventKey.encodeRandom(cryptoProvider.getRandomValues(new Uint8Array(ULID_RANDOM_LENGTH)));
|
|
36
|
+
return prefix === undefined ? ulid : `${prefix}_${ulid}`;
|
|
37
|
+
}
|
|
38
|
+
static async fromParts(...parts) {
|
|
39
|
+
if (parts.length === 0) {
|
|
40
|
+
throw new Error('[Paddle] At least one part is required to generate an event key');
|
|
41
|
+
}
|
|
42
|
+
return await UsageEventKey.getCryptoProvider().sha256(JSON.stringify(parts));
|
|
43
|
+
}
|
|
44
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { BaseResource } from '../../internal/base/index.js';
|
|
2
|
+
import { UsageEventKey } from './helpers/usage-event-key.js';
|
|
3
|
+
const UsageEventPaths = {
|
|
4
|
+
create: '/usage-events',
|
|
5
|
+
};
|
|
6
|
+
export * from './operations/index.js';
|
|
7
|
+
export class UsageEventsResource extends BaseResource {
|
|
8
|
+
async create(createUsageEventsRequestBody) {
|
|
9
|
+
const response = await this.client.post(UsageEventPaths.create, createUsageEventsRequestBody);
|
|
10
|
+
this.handleResponse(response);
|
|
11
|
+
}
|
|
12
|
+
generateEventKey(options) {
|
|
13
|
+
return UsageEventKey.generate(options);
|
|
14
|
+
}
|
|
15
|
+
async deterministicEventKey(...parts) {
|
|
16
|
+
return await UsageEventKey.fromParts(...parts);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './create-usage-events-request-body.js';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { BaseResource, PathParameters, QueryParameters } from '../../internal/base/index.js';
|
|
2
|
+
import { Verification, VerificationCollection } from '../../entities/index.js';
|
|
3
|
+
const VerificationPaths = {
|
|
4
|
+
list: '/verifications',
|
|
5
|
+
get: '/verifications/{verification_id}',
|
|
6
|
+
};
|
|
7
|
+
export * from './operations/index.js';
|
|
8
|
+
export class VerificationsResource extends BaseResource {
|
|
9
|
+
list(queryParams) {
|
|
10
|
+
const queryParameters = new QueryParameters(queryParams);
|
|
11
|
+
return new VerificationCollection(this.client, VerificationPaths.list + queryParameters.toQueryString());
|
|
12
|
+
}
|
|
13
|
+
async get(verificationId) {
|
|
14
|
+
const urlWithPathParams = new PathParameters(VerificationPaths.get, {
|
|
15
|
+
verification_id: verificationId,
|
|
16
|
+
}).deriveUrl();
|
|
17
|
+
const response = await this.client.get(urlWithPathParams);
|
|
18
|
+
const data = this.handleResponse(response);
|
|
19
|
+
return new Verification(data);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './list-verification-query-parameters.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/esm/types/checkout-domain/checkout-domain-payment-method-verification-response.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './country-definition-response.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './currency-definition-response.js';
|
package/dist/esm/types/index.js
CHANGED
|
@@ -7,6 +7,7 @@ export * from './customer/index.js';
|
|
|
7
7
|
export * from './customer-portal-session/index.js';
|
|
8
8
|
export * from './business/index.js';
|
|
9
9
|
export * from './subscription/index.js';
|
|
10
|
+
export * from './subscription-history/index.js';
|
|
10
11
|
export * from './address/index.js';
|
|
11
12
|
export * from './discount/index.js';
|
|
12
13
|
export * from './discount-group/index.js';
|
|
@@ -24,3 +25,11 @@ export * from './simulation-run/index.js';
|
|
|
24
25
|
export * from './simulation-run-event/index.js';
|
|
25
26
|
export * from './client-token/index.js';
|
|
26
27
|
export * from './metrics/index.js';
|
|
28
|
+
export * from './usage-balance-unit/index.js';
|
|
29
|
+
export * from './meter/index.js';
|
|
30
|
+
export * from './usage-balance/index.js';
|
|
31
|
+
export * from './verification/index.js';
|
|
32
|
+
export * from './country/index.js';
|
|
33
|
+
export * from './currency/index.js';
|
|
34
|
+
export * from './checkout-domain/index.js';
|
|
35
|
+
export * from './ip-addresses/index.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ip-addresses-response.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './meter-response.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -11,3 +11,15 @@ export * from './metrics-timeseries-chargebacks-datapoint.js';
|
|
|
11
11
|
export * from './metrics-timeseries-chargebacks-response.js';
|
|
12
12
|
export * from './metrics-timeseries-checkout-conversion-datapoint.js';
|
|
13
13
|
export * from './metrics-timeseries-checkout-conversion-response.js';
|
|
14
|
+
export * from './metrics-explore-datapoint.js';
|
|
15
|
+
export * from './metrics-explore-series.js';
|
|
16
|
+
export * from './metrics-explore-field-dimension.js';
|
|
17
|
+
export * from './metrics-explore-field-measure.js';
|
|
18
|
+
export * from './metrics-explore-fields.js';
|
|
19
|
+
export * from './metrics-explore-response.js';
|
|
20
|
+
export * from './metrics-explore-pagination.js';
|
|
21
|
+
export * from './metrics-explore-paginated-meta.js';
|
|
22
|
+
export * from './metric-entity-time-dimension.js';
|
|
23
|
+
export * from './metric-entity-dimension.js';
|
|
24
|
+
export * from './metric-entity-measure.js';
|
|
25
|
+
export * from './metric-entity-definition-response.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
export * from './time-period.js';
|
|
2
2
|
export * from './trial-period.js';
|
|
3
|
+
export * from './trial-period-update.js';
|
|
3
4
|
export * from './trial-period-response.js';
|
|
4
5
|
export * from './money.js';
|
|
5
6
|
export * from './money-response.js';
|
|
7
|
+
export * from './money-optional-currency.js';
|
|
8
|
+
export * from './money-optional-currency-response.js';
|
|
6
9
|
export * from './unit-price-override.js';
|
|
7
10
|
export * from './unit-price-override-response.js';
|
|
11
|
+
export * from './price-trial-unit-price-override.js';
|
|
12
|
+
export * from './price-trial-unit-price-override-response.js';
|
|
8
13
|
export * from './price-quantity.js';
|
|
9
14
|
export * from './billing-details-response.js';
|
|
10
15
|
export * from './totals.js';
|
|
@@ -37,3 +42,4 @@ export * from './simulation-payload.js';
|
|
|
37
42
|
export * from './payment-method-underlying-details.js';
|
|
38
43
|
export * from './korean-market-underlying-details.js';
|
|
39
44
|
export * from './south-korea-local-card-response.js';
|
|
45
|
+
export * from './actor-response.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export * from './subscription-discount-response.js';
|
|
2
2
|
export * from './subscription-time-period-response.js';
|
|
3
|
+
export * from './subscription-consent-requirement-response.js';
|
|
3
4
|
export * from './subscription-scheduled-change-response.js';
|
|
4
5
|
export * from './subscription-management-response.js';
|
|
5
6
|
export * from './subscription-item-response.js';
|
|
@@ -11,3 +12,4 @@ export * from './subscription-preview-response.js';
|
|
|
11
12
|
export * from './subscription-preview-update-summary.js';
|
|
12
13
|
export * from './subscription-result-response.js';
|
|
13
14
|
export * from './subscription-update-non-catalog-price-request.js';
|
|
15
|
+
export * from './subscription-consent-requirement-response.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export * from './subscription-history-item-response.js';
|
|
2
|
+
export * from './subscription-history-discount-response.js';
|
|
3
|
+
export * from './subscription-history-item-update-summary-response.js';
|
|
4
|
+
export * from './subscription-history-detail-response.js';
|
|
5
|
+
export * from './subscription-history-response.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/esm/types/subscription-history/subscription-history-item-update-summary-response.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './usage-balance-response.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './usage-balance-unit-response.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/esm/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = '3.
|
|
1
|
+
export const SDK_VERSION = '3.11.0';
|