@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
package/dist/cjs/paddle.js
CHANGED
|
@@ -37,6 +37,15 @@ class Paddle {
|
|
|
37
37
|
simulationRunEvents;
|
|
38
38
|
clientTokens;
|
|
39
39
|
metrics;
|
|
40
|
+
usageEvents;
|
|
41
|
+
usageBalances;
|
|
42
|
+
meters;
|
|
43
|
+
usageBalanceUnits;
|
|
44
|
+
verifications;
|
|
45
|
+
countries;
|
|
46
|
+
currencies;
|
|
47
|
+
checkoutDomains;
|
|
48
|
+
ipAddresses;
|
|
40
49
|
constructor(apiKey, options) {
|
|
41
50
|
this.client = new client_js_1.Client(apiKey, options ? { ...this.defaultPaddleOptions, ...options } : { ...this.defaultPaddleOptions });
|
|
42
51
|
this.products = new index_js_2.ProductsResource(this.client);
|
|
@@ -64,6 +73,15 @@ class Paddle {
|
|
|
64
73
|
this.simulationRunEvents = new index_js_2.SimulationRunEventsResource(this.client);
|
|
65
74
|
this.clientTokens = new index_js_2.ClientTokensResource(this.client);
|
|
66
75
|
this.metrics = new index_js_2.MetricsResource(this.client);
|
|
76
|
+
this.usageEvents = new index_js_2.UsageEventsResource(this.client);
|
|
77
|
+
this.usageBalances = new index_js_2.UsageBalancesResource(this.client);
|
|
78
|
+
this.meters = new index_js_2.MetersResource(this.client);
|
|
79
|
+
this.usageBalanceUnits = new index_js_2.UsageBalanceUnitsResource(this.client);
|
|
80
|
+
this.verifications = new index_js_2.VerificationsResource(this.client);
|
|
81
|
+
this.countries = new index_js_2.CountriesResource(this.client);
|
|
82
|
+
this.currencies = new index_js_2.CurrenciesResource(this.client);
|
|
83
|
+
this.checkoutDomains = new index_js_2.CheckoutDomainsResource(this.client);
|
|
84
|
+
this.ipAddresses = new index_js_2.IpAddressesResource(this.client);
|
|
67
85
|
}
|
|
68
86
|
}
|
|
69
87
|
exports.Paddle = Paddle;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.CheckoutDomainsResource = void 0;
|
|
18
|
+
const index_js_1 = require("../../internal/base/index.js");
|
|
19
|
+
const index_js_2 = require("../../entities/index.js");
|
|
20
|
+
const CheckoutDomainPaths = {
|
|
21
|
+
list: '/checkout-domains',
|
|
22
|
+
get: '/checkout-domains/{domain_id}',
|
|
23
|
+
delete: '/checkout-domains/{domain_id}',
|
|
24
|
+
verifyPaymentMethod: '/checkout-domains/{domain_id}/verify-payment-method',
|
|
25
|
+
};
|
|
26
|
+
__exportStar(require("./operations/index.js"), exports);
|
|
27
|
+
class CheckoutDomainsResource extends index_js_1.BaseResource {
|
|
28
|
+
list(queryParams) {
|
|
29
|
+
const queryParameters = new index_js_1.QueryParameters(queryParams);
|
|
30
|
+
return new index_js_2.CheckoutDomainCollection(this.client, CheckoutDomainPaths.list + queryParameters.toQueryString());
|
|
31
|
+
}
|
|
32
|
+
async get(domainId) {
|
|
33
|
+
const urlWithPathParams = new index_js_1.PathParameters(CheckoutDomainPaths.get, {
|
|
34
|
+
domain_id: domainId,
|
|
35
|
+
}).deriveUrl();
|
|
36
|
+
const response = await this.client.get(urlWithPathParams);
|
|
37
|
+
const data = this.handleResponse(response);
|
|
38
|
+
return new index_js_2.CheckoutDomain(data);
|
|
39
|
+
}
|
|
40
|
+
async delete(domainId) {
|
|
41
|
+
const urlWithPathParams = new index_js_1.PathParameters(CheckoutDomainPaths.delete, {
|
|
42
|
+
domain_id: domainId,
|
|
43
|
+
}).deriveUrl();
|
|
44
|
+
const response = await this.client.delete(urlWithPathParams);
|
|
45
|
+
if (response) {
|
|
46
|
+
this.handleResponse(response);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
async verifyPaymentMethod(domainId, requestBody) {
|
|
50
|
+
const urlWithPathParams = new index_js_1.PathParameters(CheckoutDomainPaths.verifyPaymentMethod, {
|
|
51
|
+
domain_id: domainId,
|
|
52
|
+
}).deriveUrl();
|
|
53
|
+
const response = await this.client.post(urlWithPathParams, requestBody);
|
|
54
|
+
const data = this.handleResponse(response);
|
|
55
|
+
return new index_js_2.CheckoutDomain(data);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
exports.CheckoutDomainsResource = CheckoutDomainsResource;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./list-checkout-domain-query-parameters.js"), exports);
|
|
18
|
+
__exportStar(require("./verify-checkout-domain-payment-method-request-body.js"), exports);
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CountriesResource = void 0;
|
|
4
|
+
const index_js_1 = require("../../internal/base/index.js");
|
|
5
|
+
const index_js_2 = require("../../entities/index.js");
|
|
6
|
+
const CountriesPaths = {
|
|
7
|
+
list: '/countries',
|
|
8
|
+
};
|
|
9
|
+
class CountriesResource extends index_js_1.BaseResource {
|
|
10
|
+
async list() {
|
|
11
|
+
const response = await this.client.get(CountriesPaths.list);
|
|
12
|
+
const data = this.handleResponse(response);
|
|
13
|
+
return data.map((country) => new index_js_2.CountryDefinition(country));
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
exports.CountriesResource = CountriesResource;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CurrenciesResource = void 0;
|
|
4
|
+
const index_js_1 = require("../../internal/base/index.js");
|
|
5
|
+
const index_js_2 = require("../../entities/index.js");
|
|
6
|
+
const CurrenciesPaths = {
|
|
7
|
+
list: '/currencies',
|
|
8
|
+
};
|
|
9
|
+
class CurrenciesResource extends index_js_1.BaseResource {
|
|
10
|
+
async list() {
|
|
11
|
+
const response = await this.client.get(CurrenciesPaths.list);
|
|
12
|
+
const data = this.handleResponse(response);
|
|
13
|
+
return data.map((currency) => new index_js_2.CurrencyDefinition(currency));
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
exports.CurrenciesResource = CurrenciesResource;
|
|
@@ -11,9 +11,7 @@ class CustomerPortalSessionsResource extends index_js_2.BaseResource {
|
|
|
11
11
|
const urlWithPathParams = new index_js_2.PathParameters(CustomerPortalSessionPaths.create, {
|
|
12
12
|
customer_id: customerId,
|
|
13
13
|
}).deriveUrl();
|
|
14
|
-
const response = await this.client.post(urlWithPathParams, {
|
|
15
|
-
subscriptionIds,
|
|
16
|
-
});
|
|
14
|
+
const response = await this.client.post(urlWithPathParams, subscriptionIds ? { subscriptionIds } : {});
|
|
17
15
|
const data = this.handleResponse(response);
|
|
18
16
|
return new index_js_1.CustomerPortalSession(data);
|
|
19
17
|
}
|
|
@@ -37,3 +37,12 @@ __exportStar(require("./simulation-runs/index.js"), exports);
|
|
|
37
37
|
__exportStar(require("./simulation-run-events/index.js"), exports);
|
|
38
38
|
__exportStar(require("./client-tokens/index.js"), exports);
|
|
39
39
|
__exportStar(require("./metrics/index.js"), exports);
|
|
40
|
+
__exportStar(require("./usage-events/index.js"), exports);
|
|
41
|
+
__exportStar(require("./usage-balances/index.js"), exports);
|
|
42
|
+
__exportStar(require("./meters/index.js"), exports);
|
|
43
|
+
__exportStar(require("./usage-balance-units/index.js"), exports);
|
|
44
|
+
__exportStar(require("./verifications/index.js"), exports);
|
|
45
|
+
__exportStar(require("./countries/index.js"), exports);
|
|
46
|
+
__exportStar(require("./currencies/index.js"), exports);
|
|
47
|
+
__exportStar(require("./checkout-domains/index.js"), exports);
|
|
48
|
+
__exportStar(require("./ip-addresses/index.js"), exports);
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.IpAddressesResource = void 0;
|
|
4
|
+
const index_js_1 = require("../../internal/base/index.js");
|
|
5
|
+
const index_js_2 = require("../../entities/index.js");
|
|
6
|
+
const IpAddressesPaths = {
|
|
7
|
+
get: '/ips',
|
|
8
|
+
};
|
|
9
|
+
class IpAddressesResource extends index_js_1.BaseResource {
|
|
10
|
+
async get() {
|
|
11
|
+
const response = await this.client.get(IpAddressesPaths.get);
|
|
12
|
+
const data = this.handleResponse(response);
|
|
13
|
+
return new index_js_2.IpAddresses(data);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
exports.IpAddressesResource = IpAddressesResource;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.MetersResource = void 0;
|
|
18
|
+
const index_js_1 = require("../../entities/index.js");
|
|
19
|
+
const index_js_2 = require("../../internal/base/index.js");
|
|
20
|
+
const MeterPaths = {
|
|
21
|
+
list: '/meters',
|
|
22
|
+
get: '/meters/{meter_id}',
|
|
23
|
+
};
|
|
24
|
+
__exportStar(require("./operations/index.js"), exports);
|
|
25
|
+
class MetersResource extends index_js_2.BaseResource {
|
|
26
|
+
list(queryParams) {
|
|
27
|
+
const queryParameters = new index_js_2.QueryParameters(queryParams);
|
|
28
|
+
return new index_js_1.MeterCollection(this.client, MeterPaths.list + queryParameters.toQueryString());
|
|
29
|
+
}
|
|
30
|
+
async get(meterId) {
|
|
31
|
+
const urlWithPathParams = new index_js_2.PathParameters(MeterPaths.get, {
|
|
32
|
+
meter_id: meterId,
|
|
33
|
+
}).deriveUrl();
|
|
34
|
+
const response = await this.client.get(urlWithPathParams);
|
|
35
|
+
const data = this.handleResponse(response);
|
|
36
|
+
return new index_js_1.Meter(data);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
exports.MetersResource = MetersResource;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./list-meter-query-parameters.js"), exports);
|
|
@@ -25,6 +25,8 @@ const MetricsPaths = {
|
|
|
25
25
|
refunds: '/metrics/refunds',
|
|
26
26
|
chargebacks: '/metrics/chargebacks',
|
|
27
27
|
checkoutConversion: '/metrics/checkout-conversion',
|
|
28
|
+
explore: '/metrics/explore',
|
|
29
|
+
listExploreEntities: '/metrics/explore/entities',
|
|
28
30
|
};
|
|
29
31
|
__exportStar(require("./operations/index.js"), exports);
|
|
30
32
|
class MetricsResource extends index_js_1.BaseResource {
|
|
@@ -70,5 +72,18 @@ class MetricsResource extends index_js_1.BaseResource {
|
|
|
70
72
|
const data = this.handleResponse(response);
|
|
71
73
|
return new index_js_2.MetricsTimeseriesCheckoutConversion(data);
|
|
72
74
|
}
|
|
75
|
+
async explore(exploreMetricsParameters, queryParams) {
|
|
76
|
+
const queryParameters = new index_js_1.QueryParameters(queryParams);
|
|
77
|
+
const response = await this.client.post(MetricsPaths.explore + queryParameters.toQueryString(), exploreMetricsParameters);
|
|
78
|
+
const data = this.handleResponse(response);
|
|
79
|
+
const { pagination } = response.meta;
|
|
80
|
+
return new index_js_2.MetricsExplore(data, pagination);
|
|
81
|
+
}
|
|
82
|
+
async listExploreEntities(queryParams) {
|
|
83
|
+
const queryParameters = new index_js_1.QueryParameters(queryParams);
|
|
84
|
+
const response = await this.client.get(MetricsPaths.listExploreEntities, queryParameters);
|
|
85
|
+
const data = this.handleResponse(response);
|
|
86
|
+
return data.map((definition) => new index_js_2.MetricEntityDefinition(definition));
|
|
87
|
+
}
|
|
73
88
|
}
|
|
74
89
|
exports.MetricsResource = MetricsResource;
|
|
@@ -21,3 +21,6 @@ __exportStar(require("./get-revenue-query-parameters.js"), exports);
|
|
|
21
21
|
__exportStar(require("./get-refunds-query-parameters.js"), exports);
|
|
22
22
|
__exportStar(require("./get-chargebacks-query-parameters.js"), exports);
|
|
23
23
|
__exportStar(require("./get-checkout-conversion-query-parameters.js"), exports);
|
|
24
|
+
__exportStar(require("./explore-metrics-request-body.js"), exports);
|
|
25
|
+
__exportStar(require("./explore-metrics-query-parameters.js"), exports);
|
|
26
|
+
__exportStar(require("./list-explore-entities-query-parameters.js"), exports);
|
|
@@ -29,6 +29,7 @@ const SubscriptionPaths = {
|
|
|
29
29
|
createOneTimeCharge: '/subscriptions/{subscription_id}/charge',
|
|
30
30
|
previewOneTimeCharge: '/subscriptions/{subscription_id}/charge/preview',
|
|
31
31
|
getTransactionToUpdatePaymentMethod: '/subscriptions/{subscription_id}/update-payment-method-transaction',
|
|
32
|
+
listHistory: '/subscriptions/{subscription_id}/history',
|
|
32
33
|
};
|
|
33
34
|
__exportStar(require("./operations/index.js"), exports);
|
|
34
35
|
class SubscriptionsResource extends index_js_1.BaseResource {
|
|
@@ -49,7 +50,10 @@ class SubscriptionsResource extends index_js_1.BaseResource {
|
|
|
49
50
|
return new index_js_2.Subscription(data);
|
|
50
51
|
}
|
|
51
52
|
list(queryParams) {
|
|
52
|
-
const queryParameters = new index_js_1.QueryParameters(
|
|
53
|
+
const queryParameters = new index_js_1.QueryParameters({
|
|
54
|
+
...queryParams,
|
|
55
|
+
nextBilledAt: queryParams?.nextBilledAt === null ? ['null'] : queryParams?.nextBilledAt,
|
|
56
|
+
});
|
|
53
57
|
return new index_js_2.SubscriptionCollection(this.client, SubscriptionPaths.list + queryParameters.toQueryString());
|
|
54
58
|
}
|
|
55
59
|
async get(subscriptionId, queryParams) {
|
|
@@ -117,5 +121,12 @@ class SubscriptionsResource extends index_js_1.BaseResource {
|
|
|
117
121
|
const data = this.handleResponse(response);
|
|
118
122
|
return new index_js_2.Transaction(data);
|
|
119
123
|
}
|
|
124
|
+
listHistory(subscriptionId, queryParams) {
|
|
125
|
+
const queryParameters = new index_js_1.QueryParameters(queryParams);
|
|
126
|
+
const urlWithPathParams = new index_js_1.PathParameters(SubscriptionPaths.listHistory, {
|
|
127
|
+
subscription_id: subscriptionId,
|
|
128
|
+
}).deriveUrl();
|
|
129
|
+
return new index_js_2.SubscriptionHistoryCollection(this.client, urlWithPathParams + queryParameters.toQueryString());
|
|
130
|
+
}
|
|
120
131
|
}
|
|
121
132
|
exports.SubscriptionsResource = SubscriptionsResource;
|
|
@@ -21,3 +21,4 @@ __exportStar(require("./pause-subscription-request-object.js"), exports);
|
|
|
21
21
|
__exportStar(require("./resume-subscription-request-object.js"), exports);
|
|
22
22
|
__exportStar(require("./cancel-subscription-request-object.js"), exports);
|
|
23
23
|
__exportStar(require("./create-subscription-charge-request-object.js"), exports);
|
|
24
|
+
__exportStar(require("./list-subscription-history-query-parameters.js"), exports);
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.UsageBalanceUnitsResource = void 0;
|
|
18
|
+
const index_js_1 = require("../../entities/index.js");
|
|
19
|
+
const index_js_2 = require("../../internal/base/index.js");
|
|
20
|
+
const UsageBalanceUnitPaths = {
|
|
21
|
+
list: '/usage-balance-units',
|
|
22
|
+
get: '/usage-balance-units/{usage_balance_unit_id}',
|
|
23
|
+
};
|
|
24
|
+
__exportStar(require("./operations/index.js"), exports);
|
|
25
|
+
class UsageBalanceUnitsResource extends index_js_2.BaseResource {
|
|
26
|
+
list(queryParams) {
|
|
27
|
+
const queryParameters = new index_js_2.QueryParameters(queryParams);
|
|
28
|
+
return new index_js_1.UsageBalanceUnitCollection(this.client, UsageBalanceUnitPaths.list + queryParameters.toQueryString());
|
|
29
|
+
}
|
|
30
|
+
async get(usageBalanceUnitId) {
|
|
31
|
+
const urlWithPathParams = new index_js_2.PathParameters(UsageBalanceUnitPaths.get, {
|
|
32
|
+
usage_balance_unit_id: usageBalanceUnitId,
|
|
33
|
+
}).deriveUrl();
|
|
34
|
+
const response = await this.client.get(urlWithPathParams);
|
|
35
|
+
const data = this.handleResponse(response);
|
|
36
|
+
return new index_js_1.UsageBalanceUnit(data);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
exports.UsageBalanceUnitsResource = UsageBalanceUnitsResource;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./list-usage-balance-unit-query-parameters.js"), exports);
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.UsageBalancesResource = void 0;
|
|
18
|
+
const index_js_1 = require("../../entities/index.js");
|
|
19
|
+
const index_js_2 = require("../../internal/base/index.js");
|
|
20
|
+
const UsageBalancePaths = {
|
|
21
|
+
list: '/customers/{customer_id}/usage-balances',
|
|
22
|
+
get: '/customers/{customer_id}/usage-balances/{usage_balance_id}',
|
|
23
|
+
};
|
|
24
|
+
__exportStar(require("./operations/index.js"), exports);
|
|
25
|
+
class UsageBalancesResource extends index_js_2.BaseResource {
|
|
26
|
+
list(customerId, queryParams) {
|
|
27
|
+
const urlWithPathParams = new index_js_2.PathParameters(UsageBalancePaths.list, {
|
|
28
|
+
customer_id: customerId,
|
|
29
|
+
}).deriveUrl();
|
|
30
|
+
const queryParameters = new index_js_2.QueryParameters(queryParams);
|
|
31
|
+
return new index_js_1.UsageBalanceCollection(this.client, urlWithPathParams + queryParameters.toQueryString());
|
|
32
|
+
}
|
|
33
|
+
async get(customerId, usageBalanceId) {
|
|
34
|
+
const urlWithPathParams = new index_js_2.PathParameters(UsageBalancePaths.get, {
|
|
35
|
+
customer_id: customerId,
|
|
36
|
+
usage_balance_id: usageBalanceId,
|
|
37
|
+
}).deriveUrl();
|
|
38
|
+
const response = await this.client.get(urlWithPathParams);
|
|
39
|
+
const data = this.handleResponse(response);
|
|
40
|
+
return new index_js_1.UsageBalance(data);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
exports.UsageBalancesResource = UsageBalancesResource;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./list-usage-balance-query-parameters.js"), exports);
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UsageEventKey = void 0;
|
|
4
|
+
const runtime_provider_js_1 = require("../../../internal/providers/runtime-provider.js");
|
|
5
|
+
const EVENT_KEY_MAX_LENGTH = 255;
|
|
6
|
+
const EVENT_KEY_PATTERN = /^[a-z0-9_-]+$/;
|
|
7
|
+
const ULID_ENCODING = '0123456789abcdefghjkmnpqrstvwxyz';
|
|
8
|
+
const ULID_TIME_LENGTH = 10;
|
|
9
|
+
const ULID_RANDOM_LENGTH = 16;
|
|
10
|
+
const ULID_LENGTH = ULID_TIME_LENGTH + ULID_RANDOM_LENGTH;
|
|
11
|
+
class UsageEventKey {
|
|
12
|
+
static getCryptoProvider() {
|
|
13
|
+
const cryptoProvider = runtime_provider_js_1.RuntimeProvider.getProvider()?.crypto;
|
|
14
|
+
if (!cryptoProvider) {
|
|
15
|
+
throw new Error('[Paddle] Unknown runtime. Cannot generate event key');
|
|
16
|
+
}
|
|
17
|
+
return cryptoProvider;
|
|
18
|
+
}
|
|
19
|
+
static encodeTime(time) {
|
|
20
|
+
let encodedTime = '';
|
|
21
|
+
for (let i = 0; i < ULID_TIME_LENGTH; i++) {
|
|
22
|
+
encodedTime = ULID_ENCODING[time % 32] + encodedTime;
|
|
23
|
+
time = Math.floor(time / 32);
|
|
24
|
+
}
|
|
25
|
+
return encodedTime;
|
|
26
|
+
}
|
|
27
|
+
static encodeRandom(bytes) {
|
|
28
|
+
return Array.from(bytes, (byte) => ULID_ENCODING[byte % 32]).join('');
|
|
29
|
+
}
|
|
30
|
+
static generate(options) {
|
|
31
|
+
const prefix = options?.prefix;
|
|
32
|
+
const maxPrefixLength = EVENT_KEY_MAX_LENGTH - ULID_LENGTH - 1;
|
|
33
|
+
if (prefix !== undefined && (!EVENT_KEY_PATTERN.test(prefix) || prefix.length > maxPrefixLength)) {
|
|
34
|
+
throw new Error(`[Paddle] Invalid event key prefix. Prefix must be 1-${maxPrefixLength} characters of a-z, 0-9, '_' or '-'`);
|
|
35
|
+
}
|
|
36
|
+
const cryptoProvider = UsageEventKey.getCryptoProvider();
|
|
37
|
+
const ulid = UsageEventKey.encodeTime(Date.now()) +
|
|
38
|
+
UsageEventKey.encodeRandom(cryptoProvider.getRandomValues(new Uint8Array(ULID_RANDOM_LENGTH)));
|
|
39
|
+
return prefix === undefined ? ulid : `${prefix}_${ulid}`;
|
|
40
|
+
}
|
|
41
|
+
static async fromParts(...parts) {
|
|
42
|
+
if (parts.length === 0) {
|
|
43
|
+
throw new Error('[Paddle] At least one part is required to generate an event key');
|
|
44
|
+
}
|
|
45
|
+
return await UsageEventKey.getCryptoProvider().sha256(JSON.stringify(parts));
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
exports.UsageEventKey = UsageEventKey;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.UsageEventsResource = void 0;
|
|
18
|
+
const index_js_1 = require("../../internal/base/index.js");
|
|
19
|
+
const usage_event_key_js_1 = require("./helpers/usage-event-key.js");
|
|
20
|
+
const UsageEventPaths = {
|
|
21
|
+
create: '/usage-events',
|
|
22
|
+
};
|
|
23
|
+
__exportStar(require("./operations/index.js"), exports);
|
|
24
|
+
class UsageEventsResource extends index_js_1.BaseResource {
|
|
25
|
+
async create(createUsageEventsRequestBody) {
|
|
26
|
+
const response = await this.client.post(UsageEventPaths.create, createUsageEventsRequestBody);
|
|
27
|
+
this.handleResponse(response);
|
|
28
|
+
}
|
|
29
|
+
generateEventKey(options) {
|
|
30
|
+
return usage_event_key_js_1.UsageEventKey.generate(options);
|
|
31
|
+
}
|
|
32
|
+
async deterministicEventKey(...parts) {
|
|
33
|
+
return await usage_event_key_js_1.UsageEventKey.fromParts(...parts);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.UsageEventsResource = UsageEventsResource;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./create-usage-events-request-body.js"), exports);
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.VerificationsResource = void 0;
|
|
18
|
+
const index_js_1 = require("../../internal/base/index.js");
|
|
19
|
+
const index_js_2 = require("../../entities/index.js");
|
|
20
|
+
const VerificationPaths = {
|
|
21
|
+
list: '/verifications',
|
|
22
|
+
get: '/verifications/{verification_id}',
|
|
23
|
+
};
|
|
24
|
+
__exportStar(require("./operations/index.js"), exports);
|
|
25
|
+
class VerificationsResource extends index_js_1.BaseResource {
|
|
26
|
+
list(queryParams) {
|
|
27
|
+
const queryParameters = new index_js_1.QueryParameters(queryParams);
|
|
28
|
+
return new index_js_2.VerificationCollection(this.client, VerificationPaths.list + queryParameters.toQueryString());
|
|
29
|
+
}
|
|
30
|
+
async get(verificationId) {
|
|
31
|
+
const urlWithPathParams = new index_js_1.PathParameters(VerificationPaths.get, {
|
|
32
|
+
verification_id: verificationId,
|
|
33
|
+
}).deriveUrl();
|
|
34
|
+
const response = await this.client.get(urlWithPathParams);
|
|
35
|
+
const data = this.handleResponse(response);
|
|
36
|
+
return new index_js_2.Verification(data);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
exports.VerificationsResource = VerificationsResource;
|