@distilled.cloud/stripe 0.25.0 → 0.25.2
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/lib/client.d.ts +13 -2
- package/lib/client.d.ts.map +1 -1
- package/lib/client.js +17 -0
- package/lib/client.js.map +1 -1
- package/lib/errors.d.ts +29 -0
- package/lib/errors.d.ts.map +1 -1
- package/lib/errors.js +19 -0
- package/lib/errors.js.map +1 -1
- package/lib/index.d.ts +1 -0
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +1 -0
- package/lib/index.js.map +1 -1
- package/lib/operations/DeleteAccountsAccount.d.ts +1 -1
- package/lib/operations/DeleteAccountsAccount.d.ts.map +1 -1
- package/lib/operations/DeleteAccountsAccountExternalAccountsId.d.ts +1 -1
- package/lib/operations/DeleteAccountsAccountExternalAccountsId.d.ts.map +1 -1
- package/lib/operations/DeleteAccountsAccountPersonsPerson.d.ts +1 -1
- package/lib/operations/DeleteAccountsAccountPersonsPerson.d.ts.map +1 -1
- package/lib/operations/DeleteApplePayDomainsDomain.d.ts +1 -1
- package/lib/operations/DeleteApplePayDomainsDomain.d.ts.map +1 -1
- package/lib/operations/DeleteCouponsCoupon.d.ts +1 -1
- package/lib/operations/DeleteCouponsCoupon.d.ts.map +1 -1
- package/lib/operations/DeleteCustomersCustomer.d.ts +1 -1
- package/lib/operations/DeleteCustomersCustomer.d.ts.map +1 -1
- package/lib/operations/DeleteCustomersCustomerDiscount.d.ts +1 -1
- package/lib/operations/DeleteCustomersCustomerDiscount.d.ts.map +1 -1
- package/lib/operations/DeleteCustomersCustomerSourcesId.d.ts +1 -1
- package/lib/operations/DeleteCustomersCustomerSourcesId.d.ts.map +1 -1
- package/lib/operations/DeleteCustomersCustomerTaxIdsId.d.ts +1 -1
- package/lib/operations/DeleteCustomersCustomerTaxIdsId.d.ts.map +1 -1
- package/lib/operations/DeleteEphemeralKeysKey.d.ts +1 -1
- package/lib/operations/DeleteEphemeralKeysKey.d.ts.map +1 -1
- package/lib/operations/DeleteInvoiceitemsInvoiceitem.d.ts +1 -1
- package/lib/operations/DeleteInvoiceitemsInvoiceitem.d.ts.map +1 -1
- package/lib/operations/DeleteInvoicesInvoice.d.ts +1 -1
- package/lib/operations/DeleteInvoicesInvoice.d.ts.map +1 -1
- package/lib/operations/DeletePlansPlan.d.ts +1 -1
- package/lib/operations/DeletePlansPlan.d.ts.map +1 -1
- package/lib/operations/DeleteProductsId.d.ts +1 -1
- package/lib/operations/DeleteProductsId.d.ts.map +1 -1
- package/lib/operations/DeleteProductsProductFeaturesId.d.ts +1 -1
- package/lib/operations/DeleteProductsProductFeaturesId.d.ts.map +1 -1
- package/lib/operations/DeleteRadarValueListItemsItem.d.ts +1 -1
- package/lib/operations/DeleteRadarValueListItemsItem.d.ts.map +1 -1
- package/lib/operations/DeleteRadarValueListsValueList.d.ts +1 -1
- package/lib/operations/DeleteRadarValueListsValueList.d.ts.map +1 -1
- package/lib/operations/DeleteSubscriptionItemsItem.d.ts +1 -1
- package/lib/operations/DeleteSubscriptionItemsItem.d.ts.map +1 -1
- package/lib/operations/DeleteSubscriptionsSubscriptionExposedId.d.ts +1 -1
- package/lib/operations/DeleteSubscriptionsSubscriptionExposedId.d.ts.map +1 -1
- package/lib/operations/DeleteSubscriptionsSubscriptionExposedIdDiscount.d.ts +1 -1
- package/lib/operations/DeleteSubscriptionsSubscriptionExposedIdDiscount.d.ts.map +1 -1
- package/lib/operations/DeleteTaxIdsId.d.ts +1 -1
- package/lib/operations/DeleteTaxIdsId.d.ts.map +1 -1
- package/lib/operations/DeleteTerminalConfigurationsConfiguration.d.ts +1 -1
- package/lib/operations/DeleteTerminalConfigurationsConfiguration.d.ts.map +1 -1
- package/lib/operations/DeleteTerminalLocationsLocation.d.ts +1 -1
- package/lib/operations/DeleteTerminalLocationsLocation.d.ts.map +1 -1
- package/lib/operations/DeleteTerminalReadersReader.d.ts +1 -1
- package/lib/operations/DeleteTerminalReadersReader.d.ts.map +1 -1
- package/lib/operations/DeleteTestHelpersTestClocksTestClock.d.ts +1 -1
- package/lib/operations/DeleteTestHelpersTestClocksTestClock.d.ts.map +1 -1
- package/lib/operations/DeleteV2CoreAccountsAccountIdPersonsId.d.ts +1 -1
- package/lib/operations/DeleteV2CoreAccountsAccountIdPersonsId.d.ts.map +1 -1
- package/lib/operations/DeleteV2CoreEventDestinationsId.d.ts +1 -1
- package/lib/operations/DeleteV2CoreEventDestinationsId.d.ts.map +1 -1
- package/lib/operations/DeleteWebhookEndpointsWebhookEndpoint.d.ts +1 -1
- package/lib/operations/DeleteWebhookEndpointsWebhookEndpoint.d.ts.map +1 -1
- package/lib/operations/GetAccount.d.ts +1 -1
- package/lib/operations/GetAccount.d.ts.map +1 -1
- package/lib/operations/GetAccounts.d.ts +1 -1
- package/lib/operations/GetAccounts.d.ts.map +1 -1
- package/lib/operations/GetAccountsAccount.d.ts +1 -1
- package/lib/operations/GetAccountsAccount.d.ts.map +1 -1
- package/lib/operations/GetAccountsAccountCapabilities.d.ts +1 -1
- package/lib/operations/GetAccountsAccountCapabilities.d.ts.map +1 -1
- package/lib/operations/GetAccountsAccountCapabilitiesCapability.d.ts +1 -1
- package/lib/operations/GetAccountsAccountCapabilitiesCapability.d.ts.map +1 -1
- package/lib/operations/GetAccountsAccountExternalAccounts.d.ts +1 -1
- package/lib/operations/GetAccountsAccountExternalAccounts.d.ts.map +1 -1
- package/lib/operations/GetAccountsAccountExternalAccountsId.d.ts +1 -1
- package/lib/operations/GetAccountsAccountExternalAccountsId.d.ts.map +1 -1
- package/lib/operations/GetAccountsAccountPersons.d.ts +1 -1
- package/lib/operations/GetAccountsAccountPersons.d.ts.map +1 -1
- package/lib/operations/GetAccountsAccountPersonsPerson.d.ts +1 -1
- package/lib/operations/GetAccountsAccountPersonsPerson.d.ts.map +1 -1
- package/lib/operations/GetApplePayDomains.d.ts +1 -1
- package/lib/operations/GetApplePayDomains.d.ts.map +1 -1
- package/lib/operations/GetApplePayDomainsDomain.d.ts +1 -1
- package/lib/operations/GetApplePayDomainsDomain.d.ts.map +1 -1
- package/lib/operations/GetApplicationFees.d.ts +1 -1
- package/lib/operations/GetApplicationFees.d.ts.map +1 -1
- package/lib/operations/GetApplicationFeesFeeRefundsId.d.ts +1 -1
- package/lib/operations/GetApplicationFeesFeeRefundsId.d.ts.map +1 -1
- package/lib/operations/GetApplicationFeesId.d.ts +1 -1
- package/lib/operations/GetApplicationFeesId.d.ts.map +1 -1
- package/lib/operations/GetApplicationFeesIdRefunds.d.ts +1 -1
- package/lib/operations/GetApplicationFeesIdRefunds.d.ts.map +1 -1
- package/lib/operations/GetAppsSecrets.d.ts +1 -1
- package/lib/operations/GetAppsSecrets.d.ts.map +1 -1
- package/lib/operations/GetAppsSecretsFind.d.ts +1 -1
- package/lib/operations/GetAppsSecretsFind.d.ts.map +1 -1
- package/lib/operations/GetBalance.d.ts +1 -1
- package/lib/operations/GetBalance.d.ts.map +1 -1
- package/lib/operations/GetBalanceSettings.d.ts +1 -1
- package/lib/operations/GetBalanceSettings.d.ts.map +1 -1
- package/lib/operations/GetBalanceTransactions.d.ts +1 -1
- package/lib/operations/GetBalanceTransactions.d.ts.map +1 -1
- package/lib/operations/GetBalanceTransactionsId.d.ts +1 -1
- package/lib/operations/GetBalanceTransactionsId.d.ts.map +1 -1
- package/lib/operations/GetBillingAlerts.d.ts +1 -1
- package/lib/operations/GetBillingAlerts.d.ts.map +1 -1
- package/lib/operations/GetBillingAlertsId.d.ts +1 -1
- package/lib/operations/GetBillingAlertsId.d.ts.map +1 -1
- package/lib/operations/GetBillingCreditBalanceSummary.d.ts +1 -1
- package/lib/operations/GetBillingCreditBalanceSummary.d.ts.map +1 -1
- package/lib/operations/GetBillingCreditBalanceTransactions.d.ts +1 -1
- package/lib/operations/GetBillingCreditBalanceTransactions.d.ts.map +1 -1
- package/lib/operations/GetBillingCreditBalanceTransactionsId.d.ts +1 -1
- package/lib/operations/GetBillingCreditBalanceTransactionsId.d.ts.map +1 -1
- package/lib/operations/GetBillingCreditGrants.d.ts +1 -1
- package/lib/operations/GetBillingCreditGrants.d.ts.map +1 -1
- package/lib/operations/GetBillingCreditGrantsId.d.ts +1 -1
- package/lib/operations/GetBillingCreditGrantsId.d.ts.map +1 -1
- package/lib/operations/GetBillingMeters.d.ts +1 -1
- package/lib/operations/GetBillingMeters.d.ts.map +1 -1
- package/lib/operations/GetBillingMetersId.d.ts +1 -1
- package/lib/operations/GetBillingMetersId.d.ts.map +1 -1
- package/lib/operations/GetBillingMetersIdEventSummaries.d.ts +1 -1
- package/lib/operations/GetBillingMetersIdEventSummaries.d.ts.map +1 -1
- package/lib/operations/GetBillingPortalConfigurations.d.ts +1 -1
- package/lib/operations/GetBillingPortalConfigurations.d.ts.map +1 -1
- package/lib/operations/GetBillingPortalConfigurationsConfiguration.d.ts +1 -1
- package/lib/operations/GetBillingPortalConfigurationsConfiguration.d.ts.map +1 -1
- package/lib/operations/GetCharges.d.ts +1 -1
- package/lib/operations/GetCharges.d.ts.map +1 -1
- package/lib/operations/GetChargesCharge.d.ts +1 -1
- package/lib/operations/GetChargesCharge.d.ts.map +1 -1
- package/lib/operations/GetChargesChargeRefunds.d.ts +1 -1
- package/lib/operations/GetChargesChargeRefunds.d.ts.map +1 -1
- package/lib/operations/GetChargesChargeRefundsRefund.d.ts +1 -1
- package/lib/operations/GetChargesChargeRefundsRefund.d.ts.map +1 -1
- package/lib/operations/GetChargesSearch.d.ts +1 -1
- package/lib/operations/GetChargesSearch.d.ts.map +1 -1
- package/lib/operations/GetCheckoutSessions.d.ts +1 -1
- package/lib/operations/GetCheckoutSessions.d.ts.map +1 -1
- package/lib/operations/GetCheckoutSessionsSession.d.ts +1 -1
- package/lib/operations/GetCheckoutSessionsSession.d.ts.map +1 -1
- package/lib/operations/GetCheckoutSessionsSessionLineItems.d.ts +1 -1
- package/lib/operations/GetCheckoutSessionsSessionLineItems.d.ts.map +1 -1
- package/lib/operations/GetClimateOrders.d.ts +1 -1
- package/lib/operations/GetClimateOrders.d.ts.map +1 -1
- package/lib/operations/GetClimateOrdersOrder.d.ts +1 -1
- package/lib/operations/GetClimateOrdersOrder.d.ts.map +1 -1
- package/lib/operations/GetClimateProducts.d.ts +1 -1
- package/lib/operations/GetClimateProducts.d.ts.map +1 -1
- package/lib/operations/GetClimateProductsProduct.d.ts +1 -1
- package/lib/operations/GetClimateProductsProduct.d.ts.map +1 -1
- package/lib/operations/GetClimateSuppliers.d.ts +1 -1
- package/lib/operations/GetClimateSuppliers.d.ts.map +1 -1
- package/lib/operations/GetClimateSuppliersSupplier.d.ts +1 -1
- package/lib/operations/GetClimateSuppliersSupplier.d.ts.map +1 -1
- package/lib/operations/GetConfirmationTokensConfirmationToken.d.ts +1 -1
- package/lib/operations/GetConfirmationTokensConfirmationToken.d.ts.map +1 -1
- package/lib/operations/GetCountrySpecs.d.ts +1 -1
- package/lib/operations/GetCountrySpecs.d.ts.map +1 -1
- package/lib/operations/GetCountrySpecsCountry.d.ts +1 -1
- package/lib/operations/GetCountrySpecsCountry.d.ts.map +1 -1
- package/lib/operations/GetCoupons.d.ts +1 -1
- package/lib/operations/GetCoupons.d.ts.map +1 -1
- package/lib/operations/GetCouponsCoupon.d.ts +1 -1
- package/lib/operations/GetCouponsCoupon.d.ts.map +1 -1
- package/lib/operations/GetCreditNotes.d.ts +1 -1
- package/lib/operations/GetCreditNotes.d.ts.map +1 -1
- package/lib/operations/GetCreditNotesCreditNoteLines.d.ts +1 -1
- package/lib/operations/GetCreditNotesCreditNoteLines.d.ts.map +1 -1
- package/lib/operations/GetCreditNotesId.d.ts +1 -1
- package/lib/operations/GetCreditNotesId.d.ts.map +1 -1
- package/lib/operations/GetCreditNotesPreview.d.ts +1 -1
- package/lib/operations/GetCreditNotesPreview.d.ts.map +1 -1
- package/lib/operations/GetCreditNotesPreviewLines.d.ts +1 -1
- package/lib/operations/GetCreditNotesPreviewLines.d.ts.map +1 -1
- package/lib/operations/GetCustomers.d.ts +1 -1
- package/lib/operations/GetCustomers.d.ts.map +1 -1
- package/lib/operations/GetCustomersCustomer.d.ts +1 -1
- package/lib/operations/GetCustomersCustomer.d.ts.map +1 -1
- package/lib/operations/GetCustomersCustomerBalanceTransactions.d.ts +1 -1
- package/lib/operations/GetCustomersCustomerBalanceTransactions.d.ts.map +1 -1
- package/lib/operations/GetCustomersCustomerBalanceTransactionsTransaction.d.ts +1 -1
- package/lib/operations/GetCustomersCustomerBalanceTransactionsTransaction.d.ts.map +1 -1
- package/lib/operations/GetCustomersCustomerCashBalance.d.ts +1 -1
- package/lib/operations/GetCustomersCustomerCashBalance.d.ts.map +1 -1
- package/lib/operations/GetCustomersCustomerCashBalanceTransactions.d.ts +1 -1
- package/lib/operations/GetCustomersCustomerCashBalanceTransactions.d.ts.map +1 -1
- package/lib/operations/GetCustomersCustomerCashBalanceTransactionsTransaction.d.ts +1 -1
- package/lib/operations/GetCustomersCustomerCashBalanceTransactionsTransaction.d.ts.map +1 -1
- package/lib/operations/GetCustomersCustomerPaymentMethods.d.ts +1 -1
- package/lib/operations/GetCustomersCustomerPaymentMethods.d.ts.map +1 -1
- package/lib/operations/GetCustomersCustomerPaymentMethodsPaymentMethod.d.ts +1 -1
- package/lib/operations/GetCustomersCustomerPaymentMethodsPaymentMethod.d.ts.map +1 -1
- package/lib/operations/GetCustomersCustomerSources.d.ts +1 -1
- package/lib/operations/GetCustomersCustomerSources.d.ts.map +1 -1
- package/lib/operations/GetCustomersCustomerSourcesId.d.ts +1 -1
- package/lib/operations/GetCustomersCustomerSourcesId.d.ts.map +1 -1
- package/lib/operations/GetCustomersCustomerTaxIds.d.ts +1 -1
- package/lib/operations/GetCustomersCustomerTaxIds.d.ts.map +1 -1
- package/lib/operations/GetCustomersCustomerTaxIdsId.d.ts +1 -1
- package/lib/operations/GetCustomersCustomerTaxIdsId.d.ts.map +1 -1
- package/lib/operations/GetCustomersSearch.d.ts +1 -1
- package/lib/operations/GetCustomersSearch.d.ts.map +1 -1
- package/lib/operations/GetDisputes.d.ts +1 -1
- package/lib/operations/GetDisputes.d.ts.map +1 -1
- package/lib/operations/GetDisputesDispute.d.ts +1 -1
- package/lib/operations/GetDisputesDispute.d.ts.map +1 -1
- package/lib/operations/GetEntitlementsActiveEntitlements.d.ts +1 -1
- package/lib/operations/GetEntitlementsActiveEntitlements.d.ts.map +1 -1
- package/lib/operations/GetEntitlementsActiveEntitlementsId.d.ts +1 -1
- package/lib/operations/GetEntitlementsActiveEntitlementsId.d.ts.map +1 -1
- package/lib/operations/GetEntitlementsFeatures.d.ts +1 -1
- package/lib/operations/GetEntitlementsFeatures.d.ts.map +1 -1
- package/lib/operations/GetEntitlementsFeaturesId.d.ts +1 -1
- package/lib/operations/GetEntitlementsFeaturesId.d.ts.map +1 -1
- package/lib/operations/GetEvents.d.ts +1 -1
- package/lib/operations/GetEvents.d.ts.map +1 -1
- package/lib/operations/GetEventsId.d.ts +1 -1
- package/lib/operations/GetEventsId.d.ts.map +1 -1
- package/lib/operations/GetExchangeRates.d.ts +1 -1
- package/lib/operations/GetExchangeRates.d.ts.map +1 -1
- package/lib/operations/GetExchangeRatesRateId.d.ts +1 -1
- package/lib/operations/GetExchangeRatesRateId.d.ts.map +1 -1
- package/lib/operations/GetFileLinks.d.ts +1 -1
- package/lib/operations/GetFileLinks.d.ts.map +1 -1
- package/lib/operations/GetFileLinksLink.d.ts +1 -1
- package/lib/operations/GetFileLinksLink.d.ts.map +1 -1
- package/lib/operations/GetFiles.d.ts +1 -1
- package/lib/operations/GetFiles.d.ts.map +1 -1
- package/lib/operations/GetFilesFile.d.ts +1 -1
- package/lib/operations/GetFilesFile.d.ts.map +1 -1
- package/lib/operations/GetFinancialConnectionsAccounts.d.ts +1 -1
- package/lib/operations/GetFinancialConnectionsAccounts.d.ts.map +1 -1
- package/lib/operations/GetFinancialConnectionsAccountsAccount.d.ts +1 -1
- package/lib/operations/GetFinancialConnectionsAccountsAccount.d.ts.map +1 -1
- package/lib/operations/GetFinancialConnectionsAccountsAccountOwners.d.ts +1 -1
- package/lib/operations/GetFinancialConnectionsAccountsAccountOwners.d.ts.map +1 -1
- package/lib/operations/GetFinancialConnectionsSessionsSession.d.ts +1 -1
- package/lib/operations/GetFinancialConnectionsSessionsSession.d.ts.map +1 -1
- package/lib/operations/GetFinancialConnectionsTransactions.d.ts +1 -1
- package/lib/operations/GetFinancialConnectionsTransactions.d.ts.map +1 -1
- package/lib/operations/GetFinancialConnectionsTransactionsTransaction.d.ts +1 -1
- package/lib/operations/GetFinancialConnectionsTransactionsTransaction.d.ts.map +1 -1
- package/lib/operations/GetForwardingRequests.d.ts +1 -1
- package/lib/operations/GetForwardingRequests.d.ts.map +1 -1
- package/lib/operations/GetForwardingRequestsId.d.ts +1 -1
- package/lib/operations/GetForwardingRequestsId.d.ts.map +1 -1
- package/lib/operations/GetIdentityVerificationReports.d.ts +1 -1
- package/lib/operations/GetIdentityVerificationReports.d.ts.map +1 -1
- package/lib/operations/GetIdentityVerificationReportsReport.d.ts +1 -1
- package/lib/operations/GetIdentityVerificationReportsReport.d.ts.map +1 -1
- package/lib/operations/GetIdentityVerificationSessions.d.ts +1 -1
- package/lib/operations/GetIdentityVerificationSessions.d.ts.map +1 -1
- package/lib/operations/GetIdentityVerificationSessionsSession.d.ts +1 -1
- package/lib/operations/GetIdentityVerificationSessionsSession.d.ts.map +1 -1
- package/lib/operations/GetInvoicePayments.d.ts +1 -1
- package/lib/operations/GetInvoicePayments.d.ts.map +1 -1
- package/lib/operations/GetInvoicePaymentsInvoicePayment.d.ts +1 -1
- package/lib/operations/GetInvoicePaymentsInvoicePayment.d.ts.map +1 -1
- package/lib/operations/GetInvoiceRenderingTemplates.d.ts +1 -1
- package/lib/operations/GetInvoiceRenderingTemplates.d.ts.map +1 -1
- package/lib/operations/GetInvoiceRenderingTemplatesTemplate.d.ts +1 -1
- package/lib/operations/GetInvoiceRenderingTemplatesTemplate.d.ts.map +1 -1
- package/lib/operations/GetInvoiceitems.d.ts +1 -1
- package/lib/operations/GetInvoiceitems.d.ts.map +1 -1
- package/lib/operations/GetInvoiceitemsInvoiceitem.d.ts +1 -1
- package/lib/operations/GetInvoiceitemsInvoiceitem.d.ts.map +1 -1
- package/lib/operations/GetInvoices.d.ts +1 -1
- package/lib/operations/GetInvoices.d.ts.map +1 -1
- package/lib/operations/GetInvoicesInvoice.d.ts +1 -1
- package/lib/operations/GetInvoicesInvoice.d.ts.map +1 -1
- package/lib/operations/GetInvoicesInvoiceLines.d.ts +1 -1
- package/lib/operations/GetInvoicesInvoiceLines.d.ts.map +1 -1
- package/lib/operations/GetInvoicesSearch.d.ts +1 -1
- package/lib/operations/GetInvoicesSearch.d.ts.map +1 -1
- package/lib/operations/GetIssuingAuthorizations.d.ts +1 -1
- package/lib/operations/GetIssuingAuthorizations.d.ts.map +1 -1
- package/lib/operations/GetIssuingAuthorizationsAuthorization.d.ts +1 -1
- package/lib/operations/GetIssuingAuthorizationsAuthorization.d.ts.map +1 -1
- package/lib/operations/GetIssuingCardholders.d.ts +1 -1
- package/lib/operations/GetIssuingCardholders.d.ts.map +1 -1
- package/lib/operations/GetIssuingCardholdersCardholder.d.ts +1 -1
- package/lib/operations/GetIssuingCardholdersCardholder.d.ts.map +1 -1
- package/lib/operations/GetIssuingCards.d.ts +1 -1
- package/lib/operations/GetIssuingCards.d.ts.map +1 -1
- package/lib/operations/GetIssuingCardsCard.d.ts +1 -1
- package/lib/operations/GetIssuingCardsCard.d.ts.map +1 -1
- package/lib/operations/GetIssuingDisputes.d.ts +1 -1
- package/lib/operations/GetIssuingDisputes.d.ts.map +1 -1
- package/lib/operations/GetIssuingDisputesDispute.d.ts +1 -1
- package/lib/operations/GetIssuingDisputesDispute.d.ts.map +1 -1
- package/lib/operations/GetIssuingPersonalizationDesigns.d.ts +1 -1
- package/lib/operations/GetIssuingPersonalizationDesigns.d.ts.map +1 -1
- package/lib/operations/GetIssuingPersonalizationDesignsPersonalizationDesign.d.ts +1 -1
- package/lib/operations/GetIssuingPersonalizationDesignsPersonalizationDesign.d.ts.map +1 -1
- package/lib/operations/GetIssuingPhysicalBundles.d.ts +1 -1
- package/lib/operations/GetIssuingPhysicalBundles.d.ts.map +1 -1
- package/lib/operations/GetIssuingPhysicalBundlesPhysicalBundle.d.ts +1 -1
- package/lib/operations/GetIssuingPhysicalBundlesPhysicalBundle.d.ts.map +1 -1
- package/lib/operations/GetIssuingTokens.d.ts +1 -1
- package/lib/operations/GetIssuingTokens.d.ts.map +1 -1
- package/lib/operations/GetIssuingTokensToken.d.ts +1 -1
- package/lib/operations/GetIssuingTokensToken.d.ts.map +1 -1
- package/lib/operations/GetIssuingTransactions.d.ts +1 -1
- package/lib/operations/GetIssuingTransactions.d.ts.map +1 -1
- package/lib/operations/GetIssuingTransactionsTransaction.d.ts +1 -1
- package/lib/operations/GetIssuingTransactionsTransaction.d.ts.map +1 -1
- package/lib/operations/GetMandatesMandate.d.ts +1 -1
- package/lib/operations/GetMandatesMandate.d.ts.map +1 -1
- package/lib/operations/GetPaymentAttemptRecords.d.ts +1 -1
- package/lib/operations/GetPaymentAttemptRecords.d.ts.map +1 -1
- package/lib/operations/GetPaymentAttemptRecordsId.d.ts +1 -1
- package/lib/operations/GetPaymentAttemptRecordsId.d.ts.map +1 -1
- package/lib/operations/GetPaymentIntents.d.ts +1 -1
- package/lib/operations/GetPaymentIntents.d.ts.map +1 -1
- package/lib/operations/GetPaymentIntentsIntent.d.ts +1 -1
- package/lib/operations/GetPaymentIntentsIntent.d.ts.map +1 -1
- package/lib/operations/GetPaymentIntentsIntentAmountDetailsLineItems.d.ts +1 -1
- package/lib/operations/GetPaymentIntentsIntentAmountDetailsLineItems.d.ts.map +1 -1
- package/lib/operations/GetPaymentIntentsSearch.d.ts +1 -1
- package/lib/operations/GetPaymentIntentsSearch.d.ts.map +1 -1
- package/lib/operations/GetPaymentLinks.d.ts +1 -1
- package/lib/operations/GetPaymentLinks.d.ts.map +1 -1
- package/lib/operations/GetPaymentLinksPaymentLink.d.ts +1 -1
- package/lib/operations/GetPaymentLinksPaymentLink.d.ts.map +1 -1
- package/lib/operations/GetPaymentLinksPaymentLinkLineItems.d.ts +1 -1
- package/lib/operations/GetPaymentLinksPaymentLinkLineItems.d.ts.map +1 -1
- package/lib/operations/GetPaymentMethodConfigurations.d.ts +1 -1
- package/lib/operations/GetPaymentMethodConfigurations.d.ts.map +1 -1
- package/lib/operations/GetPaymentMethodConfigurationsConfiguration.d.ts +1 -1
- package/lib/operations/GetPaymentMethodConfigurationsConfiguration.d.ts.map +1 -1
- package/lib/operations/GetPaymentMethodDomains.d.ts +1 -1
- package/lib/operations/GetPaymentMethodDomains.d.ts.map +1 -1
- package/lib/operations/GetPaymentMethodDomainsPaymentMethodDomain.d.ts +1 -1
- package/lib/operations/GetPaymentMethodDomainsPaymentMethodDomain.d.ts.map +1 -1
- package/lib/operations/GetPaymentMethods.d.ts +1 -1
- package/lib/operations/GetPaymentMethods.d.ts.map +1 -1
- package/lib/operations/GetPaymentMethodsPaymentMethod.d.ts +1 -1
- package/lib/operations/GetPaymentMethodsPaymentMethod.d.ts.map +1 -1
- package/lib/operations/GetPaymentRecordsId.d.ts +1 -1
- package/lib/operations/GetPaymentRecordsId.d.ts.map +1 -1
- package/lib/operations/GetPayouts.d.ts +1 -1
- package/lib/operations/GetPayouts.d.ts.map +1 -1
- package/lib/operations/GetPayoutsPayout.d.ts +1 -1
- package/lib/operations/GetPayoutsPayout.d.ts.map +1 -1
- package/lib/operations/GetPlans.d.ts +1 -1
- package/lib/operations/GetPlans.d.ts.map +1 -1
- package/lib/operations/GetPlansPlan.d.ts +1 -1
- package/lib/operations/GetPlansPlan.d.ts.map +1 -1
- package/lib/operations/GetPrices.d.ts +1 -1
- package/lib/operations/GetPrices.d.ts.map +1 -1
- package/lib/operations/GetPricesPrice.d.ts +1 -1
- package/lib/operations/GetPricesPrice.d.ts.map +1 -1
- package/lib/operations/GetPricesSearch.d.ts +1 -1
- package/lib/operations/GetPricesSearch.d.ts.map +1 -1
- package/lib/operations/GetProducts.d.ts +1 -1
- package/lib/operations/GetProducts.d.ts.map +1 -1
- package/lib/operations/GetProductsId.d.ts +1 -1
- package/lib/operations/GetProductsId.d.ts.map +1 -1
- package/lib/operations/GetProductsProductFeatures.d.ts +1 -1
- package/lib/operations/GetProductsProductFeatures.d.ts.map +1 -1
- package/lib/operations/GetProductsProductFeaturesId.d.ts +1 -1
- package/lib/operations/GetProductsProductFeaturesId.d.ts.map +1 -1
- package/lib/operations/GetProductsSearch.d.ts +1 -1
- package/lib/operations/GetProductsSearch.d.ts.map +1 -1
- package/lib/operations/GetPromotionCodes.d.ts +1 -1
- package/lib/operations/GetPromotionCodes.d.ts.map +1 -1
- package/lib/operations/GetPromotionCodesPromotionCode.d.ts +1 -1
- package/lib/operations/GetPromotionCodesPromotionCode.d.ts.map +1 -1
- package/lib/operations/GetQuotes.d.ts +1 -1
- package/lib/operations/GetQuotes.d.ts.map +1 -1
- package/lib/operations/GetQuotesQuote.d.ts +1 -1
- package/lib/operations/GetQuotesQuote.d.ts.map +1 -1
- package/lib/operations/GetQuotesQuoteComputedUpfrontLineItems.d.ts +1 -1
- package/lib/operations/GetQuotesQuoteComputedUpfrontLineItems.d.ts.map +1 -1
- package/lib/operations/GetQuotesQuoteLineItems.d.ts +1 -1
- package/lib/operations/GetQuotesQuoteLineItems.d.ts.map +1 -1
- package/lib/operations/GetQuotesQuotePdf.d.ts +1 -1
- package/lib/operations/GetQuotesQuotePdf.d.ts.map +1 -1
- package/lib/operations/GetRadarEarlyFraudWarnings.d.ts +1 -1
- package/lib/operations/GetRadarEarlyFraudWarnings.d.ts.map +1 -1
- package/lib/operations/GetRadarEarlyFraudWarningsEarlyFraudWarning.d.ts +1 -1
- package/lib/operations/GetRadarEarlyFraudWarningsEarlyFraudWarning.d.ts.map +1 -1
- package/lib/operations/GetRadarValueListItems.d.ts +1 -1
- package/lib/operations/GetRadarValueListItems.d.ts.map +1 -1
- package/lib/operations/GetRadarValueListItemsItem.d.ts +1 -1
- package/lib/operations/GetRadarValueListItemsItem.d.ts.map +1 -1
- package/lib/operations/GetRadarValueLists.d.ts +1 -1
- package/lib/operations/GetRadarValueLists.d.ts.map +1 -1
- package/lib/operations/GetRadarValueListsValueList.d.ts +1 -1
- package/lib/operations/GetRadarValueListsValueList.d.ts.map +1 -1
- package/lib/operations/GetRefunds.d.ts +1 -1
- package/lib/operations/GetRefunds.d.ts.map +1 -1
- package/lib/operations/GetRefundsRefund.d.ts +1 -1
- package/lib/operations/GetRefundsRefund.d.ts.map +1 -1
- package/lib/operations/GetReportingReportRuns.d.ts +1 -1
- package/lib/operations/GetReportingReportRuns.d.ts.map +1 -1
- package/lib/operations/GetReportingReportRunsReportRun.d.ts +1 -1
- package/lib/operations/GetReportingReportRunsReportRun.d.ts.map +1 -1
- package/lib/operations/GetReportingReportTypes.d.ts +1 -1
- package/lib/operations/GetReportingReportTypes.d.ts.map +1 -1
- package/lib/operations/GetReportingReportTypesReportType.d.ts +1 -1
- package/lib/operations/GetReportingReportTypesReportType.d.ts.map +1 -1
- package/lib/operations/GetReviews.d.ts +1 -1
- package/lib/operations/GetReviews.d.ts.map +1 -1
- package/lib/operations/GetReviewsReview.d.ts +1 -1
- package/lib/operations/GetReviewsReview.d.ts.map +1 -1
- package/lib/operations/GetSetupAttempts.d.ts +1 -1
- package/lib/operations/GetSetupAttempts.d.ts.map +1 -1
- package/lib/operations/GetSetupIntents.d.ts +1 -1
- package/lib/operations/GetSetupIntents.d.ts.map +1 -1
- package/lib/operations/GetSetupIntentsIntent.d.ts +1 -1
- package/lib/operations/GetSetupIntentsIntent.d.ts.map +1 -1
- package/lib/operations/GetShippingRates.d.ts +1 -1
- package/lib/operations/GetShippingRates.d.ts.map +1 -1
- package/lib/operations/GetShippingRatesShippingRateToken.d.ts +1 -1
- package/lib/operations/GetShippingRatesShippingRateToken.d.ts.map +1 -1
- package/lib/operations/GetSigmaScheduledQueryRuns.d.ts +1 -1
- package/lib/operations/GetSigmaScheduledQueryRuns.d.ts.map +1 -1
- package/lib/operations/GetSigmaScheduledQueryRunsScheduledQueryRun.d.ts +1 -1
- package/lib/operations/GetSigmaScheduledQueryRunsScheduledQueryRun.d.ts.map +1 -1
- package/lib/operations/GetSourcesSource.d.ts +1 -1
- package/lib/operations/GetSourcesSource.d.ts.map +1 -1
- package/lib/operations/GetSourcesSourceSourceTransactions.d.ts +1 -1
- package/lib/operations/GetSourcesSourceSourceTransactions.d.ts.map +1 -1
- package/lib/operations/GetSubscriptionItems.d.ts +1 -1
- package/lib/operations/GetSubscriptionItems.d.ts.map +1 -1
- package/lib/operations/GetSubscriptionItemsItem.d.ts +1 -1
- package/lib/operations/GetSubscriptionItemsItem.d.ts.map +1 -1
- package/lib/operations/GetSubscriptionSchedules.d.ts +1 -1
- package/lib/operations/GetSubscriptionSchedules.d.ts.map +1 -1
- package/lib/operations/GetSubscriptionSchedulesSchedule.d.ts +1 -1
- package/lib/operations/GetSubscriptionSchedulesSchedule.d.ts.map +1 -1
- package/lib/operations/GetSubscriptions.d.ts +1 -1
- package/lib/operations/GetSubscriptions.d.ts.map +1 -1
- package/lib/operations/GetSubscriptionsSearch.d.ts +1 -1
- package/lib/operations/GetSubscriptionsSearch.d.ts.map +1 -1
- package/lib/operations/GetSubscriptionsSubscriptionExposedId.d.ts +1 -1
- package/lib/operations/GetSubscriptionsSubscriptionExposedId.d.ts.map +1 -1
- package/lib/operations/GetTaxAssociationsFind.d.ts +1 -1
- package/lib/operations/GetTaxAssociationsFind.d.ts.map +1 -1
- package/lib/operations/GetTaxCalculationsCalculation.d.ts +1 -1
- package/lib/operations/GetTaxCalculationsCalculation.d.ts.map +1 -1
- package/lib/operations/GetTaxCalculationsCalculationLineItems.d.ts +1 -1
- package/lib/operations/GetTaxCalculationsCalculationLineItems.d.ts.map +1 -1
- package/lib/operations/GetTaxCodes.d.ts +1 -1
- package/lib/operations/GetTaxCodes.d.ts.map +1 -1
- package/lib/operations/GetTaxCodesId.d.ts +1 -1
- package/lib/operations/GetTaxCodesId.d.ts.map +1 -1
- package/lib/operations/GetTaxIds.d.ts +1 -1
- package/lib/operations/GetTaxIds.d.ts.map +1 -1
- package/lib/operations/GetTaxIdsId.d.ts +1 -1
- package/lib/operations/GetTaxIdsId.d.ts.map +1 -1
- package/lib/operations/GetTaxRates.d.ts +1 -1
- package/lib/operations/GetTaxRates.d.ts.map +1 -1
- package/lib/operations/GetTaxRatesTaxRate.d.ts +1 -1
- package/lib/operations/GetTaxRatesTaxRate.d.ts.map +1 -1
- package/lib/operations/GetTaxRegistrations.d.ts +1 -1
- package/lib/operations/GetTaxRegistrations.d.ts.map +1 -1
- package/lib/operations/GetTaxRegistrationsId.d.ts +1 -1
- package/lib/operations/GetTaxRegistrationsId.d.ts.map +1 -1
- package/lib/operations/GetTaxSettings.d.ts +1 -1
- package/lib/operations/GetTaxSettings.d.ts.map +1 -1
- package/lib/operations/GetTaxTransactionsTransaction.d.ts +1 -1
- package/lib/operations/GetTaxTransactionsTransaction.d.ts.map +1 -1
- package/lib/operations/GetTaxTransactionsTransactionLineItems.d.ts +1 -1
- package/lib/operations/GetTaxTransactionsTransactionLineItems.d.ts.map +1 -1
- package/lib/operations/GetTerminalConfigurations.d.ts +1 -1
- package/lib/operations/GetTerminalConfigurations.d.ts.map +1 -1
- package/lib/operations/GetTerminalConfigurationsConfiguration.d.ts +1 -1
- package/lib/operations/GetTerminalConfigurationsConfiguration.d.ts.map +1 -1
- package/lib/operations/GetTerminalLocations.d.ts +1 -1
- package/lib/operations/GetTerminalLocations.d.ts.map +1 -1
- package/lib/operations/GetTerminalLocationsLocation.d.ts +1 -1
- package/lib/operations/GetTerminalLocationsLocation.d.ts.map +1 -1
- package/lib/operations/GetTerminalReaders.d.ts +1 -1
- package/lib/operations/GetTerminalReaders.d.ts.map +1 -1
- package/lib/operations/GetTerminalReadersReader.d.ts +1 -1
- package/lib/operations/GetTerminalReadersReader.d.ts.map +1 -1
- package/lib/operations/GetTestHelpersTestClocks.d.ts +1 -1
- package/lib/operations/GetTestHelpersTestClocks.d.ts.map +1 -1
- package/lib/operations/GetTestHelpersTestClocksTestClock.d.ts +1 -1
- package/lib/operations/GetTestHelpersTestClocksTestClock.d.ts.map +1 -1
- package/lib/operations/GetTokensToken.d.ts +1 -1
- package/lib/operations/GetTokensToken.d.ts.map +1 -1
- package/lib/operations/GetTopups.d.ts +1 -1
- package/lib/operations/GetTopups.d.ts.map +1 -1
- package/lib/operations/GetTopupsTopup.d.ts +1 -1
- package/lib/operations/GetTopupsTopup.d.ts.map +1 -1
- package/lib/operations/GetTransfers.d.ts +1 -1
- package/lib/operations/GetTransfers.d.ts.map +1 -1
- package/lib/operations/GetTransfersIdReversals.d.ts +1 -1
- package/lib/operations/GetTransfersIdReversals.d.ts.map +1 -1
- package/lib/operations/GetTransfersTransfer.d.ts +1 -1
- package/lib/operations/GetTransfersTransfer.d.ts.map +1 -1
- package/lib/operations/GetTransfersTransferReversalsId.d.ts +1 -1
- package/lib/operations/GetTransfersTransferReversalsId.d.ts.map +1 -1
- package/lib/operations/GetTreasuryCreditReversals.d.ts +1 -1
- package/lib/operations/GetTreasuryCreditReversals.d.ts.map +1 -1
- package/lib/operations/GetTreasuryCreditReversalsCreditReversal.d.ts +1 -1
- package/lib/operations/GetTreasuryCreditReversalsCreditReversal.d.ts.map +1 -1
- package/lib/operations/GetTreasuryDebitReversals.d.ts +1 -1
- package/lib/operations/GetTreasuryDebitReversals.d.ts.map +1 -1
- package/lib/operations/GetTreasuryDebitReversalsDebitReversal.d.ts +1 -1
- package/lib/operations/GetTreasuryDebitReversalsDebitReversal.d.ts.map +1 -1
- package/lib/operations/GetTreasuryFinancialAccounts.d.ts +1 -1
- package/lib/operations/GetTreasuryFinancialAccounts.d.ts.map +1 -1
- package/lib/operations/GetTreasuryFinancialAccountsFinancialAccount.d.ts +1 -1
- package/lib/operations/GetTreasuryFinancialAccountsFinancialAccount.d.ts.map +1 -1
- package/lib/operations/GetTreasuryFinancialAccountsFinancialAccountFeatures.d.ts +1 -1
- package/lib/operations/GetTreasuryFinancialAccountsFinancialAccountFeatures.d.ts.map +1 -1
- package/lib/operations/GetTreasuryInboundTransfers.d.ts +1 -1
- package/lib/operations/GetTreasuryInboundTransfers.d.ts.map +1 -1
- package/lib/operations/GetTreasuryInboundTransfersId.d.ts +1 -1
- package/lib/operations/GetTreasuryInboundTransfersId.d.ts.map +1 -1
- package/lib/operations/GetTreasuryOutboundPayments.d.ts +1 -1
- package/lib/operations/GetTreasuryOutboundPayments.d.ts.map +1 -1
- package/lib/operations/GetTreasuryOutboundPaymentsId.d.ts +1 -1
- package/lib/operations/GetTreasuryOutboundPaymentsId.d.ts.map +1 -1
- package/lib/operations/GetTreasuryOutboundTransfers.d.ts +1 -1
- package/lib/operations/GetTreasuryOutboundTransfers.d.ts.map +1 -1
- package/lib/operations/GetTreasuryOutboundTransfersOutboundTransfer.d.ts +1 -1
- package/lib/operations/GetTreasuryOutboundTransfersOutboundTransfer.d.ts.map +1 -1
- package/lib/operations/GetTreasuryReceivedCredits.d.ts +1 -1
- package/lib/operations/GetTreasuryReceivedCredits.d.ts.map +1 -1
- package/lib/operations/GetTreasuryReceivedCreditsId.d.ts +1 -1
- package/lib/operations/GetTreasuryReceivedCreditsId.d.ts.map +1 -1
- package/lib/operations/GetTreasuryReceivedDebits.d.ts +1 -1
- package/lib/operations/GetTreasuryReceivedDebits.d.ts.map +1 -1
- package/lib/operations/GetTreasuryReceivedDebitsId.d.ts +1 -1
- package/lib/operations/GetTreasuryReceivedDebitsId.d.ts.map +1 -1
- package/lib/operations/GetTreasuryTransactionEntries.d.ts +1 -1
- package/lib/operations/GetTreasuryTransactionEntries.d.ts.map +1 -1
- package/lib/operations/GetTreasuryTransactionEntriesId.d.ts +1 -1
- package/lib/operations/GetTreasuryTransactionEntriesId.d.ts.map +1 -1
- package/lib/operations/GetTreasuryTransactions.d.ts +1 -1
- package/lib/operations/GetTreasuryTransactions.d.ts.map +1 -1
- package/lib/operations/GetTreasuryTransactionsId.d.ts +1 -1
- package/lib/operations/GetTreasuryTransactionsId.d.ts.map +1 -1
- package/lib/operations/GetV2CommerceProductCatalogImports.d.ts +1 -1
- package/lib/operations/GetV2CommerceProductCatalogImports.d.ts.map +1 -1
- package/lib/operations/GetV2CommerceProductCatalogImportsId.d.ts +1 -1
- package/lib/operations/GetV2CommerceProductCatalogImportsId.d.ts.map +1 -1
- package/lib/operations/GetV2CoreAccountTokensId.d.ts +1 -1
- package/lib/operations/GetV2CoreAccountTokensId.d.ts.map +1 -1
- package/lib/operations/GetV2CoreAccounts.d.ts +1 -1
- package/lib/operations/GetV2CoreAccounts.d.ts.map +1 -1
- package/lib/operations/GetV2CoreAccountsAccountIdPersonTokensId.d.ts +1 -1
- package/lib/operations/GetV2CoreAccountsAccountIdPersonTokensId.d.ts.map +1 -1
- package/lib/operations/GetV2CoreAccountsAccountIdPersons.d.ts +1 -1
- package/lib/operations/GetV2CoreAccountsAccountIdPersons.d.ts.map +1 -1
- package/lib/operations/GetV2CoreAccountsAccountIdPersonsId.d.ts +1 -1
- package/lib/operations/GetV2CoreAccountsAccountIdPersonsId.d.ts.map +1 -1
- package/lib/operations/GetV2CoreAccountsId.d.ts +1 -1
- package/lib/operations/GetV2CoreAccountsId.d.ts.map +1 -1
- package/lib/operations/GetV2CoreEventDestinations.d.ts +1 -1
- package/lib/operations/GetV2CoreEventDestinations.d.ts.map +1 -1
- package/lib/operations/GetV2CoreEventDestinationsId.d.ts +1 -1
- package/lib/operations/GetV2CoreEventDestinationsId.d.ts.map +1 -1
- package/lib/operations/GetV2CoreEvents.d.ts +1 -1
- package/lib/operations/GetV2CoreEvents.d.ts.map +1 -1
- package/lib/operations/GetV2CoreEventsId.d.ts +1 -1
- package/lib/operations/GetV2CoreEventsId.d.ts.map +1 -1
- package/lib/operations/GetWebhookEndpoints.d.ts +1 -1
- package/lib/operations/GetWebhookEndpoints.d.ts.map +1 -1
- package/lib/operations/GetWebhookEndpointsWebhookEndpoint.d.ts +1 -1
- package/lib/operations/GetWebhookEndpointsWebhookEndpoint.d.ts.map +1 -1
- package/lib/operations/PostAccountLinks.d.ts +1 -1
- package/lib/operations/PostAccountLinks.d.ts.map +1 -1
- package/lib/operations/PostAccountSessions.d.ts +1 -1
- package/lib/operations/PostAccountSessions.d.ts.map +1 -1
- package/lib/operations/PostAccounts.d.ts +1 -1
- package/lib/operations/PostAccounts.d.ts.map +1 -1
- package/lib/operations/PostAccountsAccount.d.ts +1 -1
- package/lib/operations/PostAccountsAccount.d.ts.map +1 -1
- package/lib/operations/PostAccountsAccountCapabilitiesCapability.d.ts +1 -1
- package/lib/operations/PostAccountsAccountCapabilitiesCapability.d.ts.map +1 -1
- package/lib/operations/PostAccountsAccountExternalAccounts.d.ts +1 -1
- package/lib/operations/PostAccountsAccountExternalAccounts.d.ts.map +1 -1
- package/lib/operations/PostAccountsAccountExternalAccountsId.d.ts +1 -1
- package/lib/operations/PostAccountsAccountExternalAccountsId.d.ts.map +1 -1
- package/lib/operations/PostAccountsAccountLoginLinks.d.ts +1 -1
- package/lib/operations/PostAccountsAccountLoginLinks.d.ts.map +1 -1
- package/lib/operations/PostAccountsAccountPersons.d.ts +1 -1
- package/lib/operations/PostAccountsAccountPersons.d.ts.map +1 -1
- package/lib/operations/PostAccountsAccountPersonsPerson.d.ts +1 -1
- package/lib/operations/PostAccountsAccountPersonsPerson.d.ts.map +1 -1
- package/lib/operations/PostAccountsAccountReject.d.ts +1 -1
- package/lib/operations/PostAccountsAccountReject.d.ts.map +1 -1
- package/lib/operations/PostApplePayDomains.d.ts +1 -1
- package/lib/operations/PostApplePayDomains.d.ts.map +1 -1
- package/lib/operations/PostApplicationFeesFeeRefundsId.d.ts +1 -1
- package/lib/operations/PostApplicationFeesFeeRefundsId.d.ts.map +1 -1
- package/lib/operations/PostApplicationFeesIdRefunds.d.ts +1 -1
- package/lib/operations/PostApplicationFeesIdRefunds.d.ts.map +1 -1
- package/lib/operations/PostAppsSecrets.d.ts +1 -1
- package/lib/operations/PostAppsSecrets.d.ts.map +1 -1
- package/lib/operations/PostAppsSecretsDelete.d.ts +1 -1
- package/lib/operations/PostAppsSecretsDelete.d.ts.map +1 -1
- package/lib/operations/PostBalanceSettings.d.ts +1 -1
- package/lib/operations/PostBalanceSettings.d.ts.map +1 -1
- package/lib/operations/PostBillingAlerts.d.ts +1 -1
- package/lib/operations/PostBillingAlerts.d.ts.map +1 -1
- package/lib/operations/PostBillingAlertsIdActivate.d.ts +1 -1
- package/lib/operations/PostBillingAlertsIdActivate.d.ts.map +1 -1
- package/lib/operations/PostBillingAlertsIdArchive.d.ts +1 -1
- package/lib/operations/PostBillingAlertsIdArchive.d.ts.map +1 -1
- package/lib/operations/PostBillingAlertsIdDeactivate.d.ts +1 -1
- package/lib/operations/PostBillingAlertsIdDeactivate.d.ts.map +1 -1
- package/lib/operations/PostBillingCreditGrants.d.ts +1 -1
- package/lib/operations/PostBillingCreditGrants.d.ts.map +1 -1
- package/lib/operations/PostBillingCreditGrantsId.d.ts +1 -1
- package/lib/operations/PostBillingCreditGrantsId.d.ts.map +1 -1
- package/lib/operations/PostBillingCreditGrantsIdExpire.d.ts +1 -1
- package/lib/operations/PostBillingCreditGrantsIdExpire.d.ts.map +1 -1
- package/lib/operations/PostBillingCreditGrantsIdVoid.d.ts +1 -1
- package/lib/operations/PostBillingCreditGrantsIdVoid.d.ts.map +1 -1
- package/lib/operations/PostBillingMeterEventAdjustments.d.ts +1 -1
- package/lib/operations/PostBillingMeterEventAdjustments.d.ts.map +1 -1
- package/lib/operations/PostBillingMeterEvents.d.ts +1 -1
- package/lib/operations/PostBillingMeterEvents.d.ts.map +1 -1
- package/lib/operations/PostBillingMeters.d.ts +1 -1
- package/lib/operations/PostBillingMeters.d.ts.map +1 -1
- package/lib/operations/PostBillingMetersId.d.ts +1 -1
- package/lib/operations/PostBillingMetersId.d.ts.map +1 -1
- package/lib/operations/PostBillingMetersIdDeactivate.d.ts +1 -1
- package/lib/operations/PostBillingMetersIdDeactivate.d.ts.map +1 -1
- package/lib/operations/PostBillingMetersIdReactivate.d.ts +1 -1
- package/lib/operations/PostBillingMetersIdReactivate.d.ts.map +1 -1
- package/lib/operations/PostBillingPortalConfigurations.d.ts +1 -1
- package/lib/operations/PostBillingPortalConfigurations.d.ts.map +1 -1
- package/lib/operations/PostBillingPortalConfigurationsConfiguration.d.ts +1 -1
- package/lib/operations/PostBillingPortalConfigurationsConfiguration.d.ts.map +1 -1
- package/lib/operations/PostBillingPortalSessions.d.ts +1 -1
- package/lib/operations/PostBillingPortalSessions.d.ts.map +1 -1
- package/lib/operations/PostCharges.d.ts +1 -1
- package/lib/operations/PostCharges.d.ts.map +1 -1
- package/lib/operations/PostChargesCharge.d.ts +1 -1
- package/lib/operations/PostChargesCharge.d.ts.map +1 -1
- package/lib/operations/PostChargesChargeCapture.d.ts +1 -1
- package/lib/operations/PostChargesChargeCapture.d.ts.map +1 -1
- package/lib/operations/PostCheckoutSessions.d.ts +1 -1
- package/lib/operations/PostCheckoutSessions.d.ts.map +1 -1
- package/lib/operations/PostCheckoutSessionsSession.d.ts +1 -1
- package/lib/operations/PostCheckoutSessionsSession.d.ts.map +1 -1
- package/lib/operations/PostCheckoutSessionsSessionExpire.d.ts +1 -1
- package/lib/operations/PostCheckoutSessionsSessionExpire.d.ts.map +1 -1
- package/lib/operations/PostClimateOrders.d.ts +1 -1
- package/lib/operations/PostClimateOrders.d.ts.map +1 -1
- package/lib/operations/PostClimateOrdersOrder.d.ts +1 -1
- package/lib/operations/PostClimateOrdersOrder.d.ts.map +1 -1
- package/lib/operations/PostClimateOrdersOrderCancel.d.ts +1 -1
- package/lib/operations/PostClimateOrdersOrderCancel.d.ts.map +1 -1
- package/lib/operations/PostCoupons.d.ts +1 -1
- package/lib/operations/PostCoupons.d.ts.map +1 -1
- package/lib/operations/PostCouponsCoupon.d.ts +1 -1
- package/lib/operations/PostCouponsCoupon.d.ts.map +1 -1
- package/lib/operations/PostCreditNotes.d.ts +1 -1
- package/lib/operations/PostCreditNotes.d.ts.map +1 -1
- package/lib/operations/PostCreditNotesId.d.ts +1 -1
- package/lib/operations/PostCreditNotesId.d.ts.map +1 -1
- package/lib/operations/PostCreditNotesIdVoid.d.ts +1 -1
- package/lib/operations/PostCreditNotesIdVoid.d.ts.map +1 -1
- package/lib/operations/PostCustomerSessions.d.ts +1 -1
- package/lib/operations/PostCustomerSessions.d.ts.map +1 -1
- package/lib/operations/PostCustomers.d.ts +1 -1
- package/lib/operations/PostCustomers.d.ts.map +1 -1
- package/lib/operations/PostCustomersCustomer.d.ts +1 -1
- package/lib/operations/PostCustomersCustomer.d.ts.map +1 -1
- package/lib/operations/PostCustomersCustomerBalanceTransactions.d.ts +1 -1
- package/lib/operations/PostCustomersCustomerBalanceTransactions.d.ts.map +1 -1
- package/lib/operations/PostCustomersCustomerBalanceTransactionsTransaction.d.ts +1 -1
- package/lib/operations/PostCustomersCustomerBalanceTransactionsTransaction.d.ts.map +1 -1
- package/lib/operations/PostCustomersCustomerCashBalance.d.ts +1 -1
- package/lib/operations/PostCustomersCustomerCashBalance.d.ts.map +1 -1
- package/lib/operations/PostCustomersCustomerFundingInstructions.d.ts +1 -1
- package/lib/operations/PostCustomersCustomerFundingInstructions.d.ts.map +1 -1
- package/lib/operations/PostCustomersCustomerSources.d.ts +1 -1
- package/lib/operations/PostCustomersCustomerSources.d.ts.map +1 -1
- package/lib/operations/PostCustomersCustomerSourcesId.d.ts +1 -1
- package/lib/operations/PostCustomersCustomerSourcesId.d.ts.map +1 -1
- package/lib/operations/PostCustomersCustomerSourcesIdVerify.d.ts +1 -1
- package/lib/operations/PostCustomersCustomerSourcesIdVerify.d.ts.map +1 -1
- package/lib/operations/PostCustomersCustomerTaxIds.d.ts +1 -1
- package/lib/operations/PostCustomersCustomerTaxIds.d.ts.map +1 -1
- package/lib/operations/PostDisputesDispute.d.ts +1 -1
- package/lib/operations/PostDisputesDispute.d.ts.map +1 -1
- package/lib/operations/PostDisputesDisputeClose.d.ts +1 -1
- package/lib/operations/PostDisputesDisputeClose.d.ts.map +1 -1
- package/lib/operations/PostEntitlementsFeatures.d.ts +1 -1
- package/lib/operations/PostEntitlementsFeatures.d.ts.map +1 -1
- package/lib/operations/PostEntitlementsFeaturesId.d.ts +1 -1
- package/lib/operations/PostEntitlementsFeaturesId.d.ts.map +1 -1
- package/lib/operations/PostEphemeralKeys.d.ts +1 -1
- package/lib/operations/PostEphemeralKeys.d.ts.map +1 -1
- package/lib/operations/PostFileLinks.d.ts +1 -1
- package/lib/operations/PostFileLinks.d.ts.map +1 -1
- package/lib/operations/PostFileLinksLink.d.ts +1 -1
- package/lib/operations/PostFileLinksLink.d.ts.map +1 -1
- package/lib/operations/PostFiles.d.ts +1 -1
- package/lib/operations/PostFiles.d.ts.map +1 -1
- package/lib/operations/PostFinancialConnectionsAccountsAccountDisconnect.d.ts +1 -1
- package/lib/operations/PostFinancialConnectionsAccountsAccountDisconnect.d.ts.map +1 -1
- package/lib/operations/PostFinancialConnectionsAccountsAccountRefresh.d.ts +1 -1
- package/lib/operations/PostFinancialConnectionsAccountsAccountRefresh.d.ts.map +1 -1
- package/lib/operations/PostFinancialConnectionsAccountsAccountSubscribe.d.ts +1 -1
- package/lib/operations/PostFinancialConnectionsAccountsAccountSubscribe.d.ts.map +1 -1
- package/lib/operations/PostFinancialConnectionsAccountsAccountUnsubscribe.d.ts +1 -1
- package/lib/operations/PostFinancialConnectionsAccountsAccountUnsubscribe.d.ts.map +1 -1
- package/lib/operations/PostFinancialConnectionsSessions.d.ts +1 -1
- package/lib/operations/PostFinancialConnectionsSessions.d.ts.map +1 -1
- package/lib/operations/PostForwardingRequests.d.ts +1 -1
- package/lib/operations/PostForwardingRequests.d.ts.map +1 -1
- package/lib/operations/PostIdentityVerificationSessions.d.ts +1 -1
- package/lib/operations/PostIdentityVerificationSessions.d.ts.map +1 -1
- package/lib/operations/PostIdentityVerificationSessionsSession.d.ts +1 -1
- package/lib/operations/PostIdentityVerificationSessionsSession.d.ts.map +1 -1
- package/lib/operations/PostIdentityVerificationSessionsSessionCancel.d.ts +1 -1
- package/lib/operations/PostIdentityVerificationSessionsSessionCancel.d.ts.map +1 -1
- package/lib/operations/PostIdentityVerificationSessionsSessionRedact.d.ts +1 -1
- package/lib/operations/PostIdentityVerificationSessionsSessionRedact.d.ts.map +1 -1
- package/lib/operations/PostInvoiceRenderingTemplatesTemplateArchive.d.ts +1 -1
- package/lib/operations/PostInvoiceRenderingTemplatesTemplateArchive.d.ts.map +1 -1
- package/lib/operations/PostInvoiceRenderingTemplatesTemplateUnarchive.d.ts +1 -1
- package/lib/operations/PostInvoiceRenderingTemplatesTemplateUnarchive.d.ts.map +1 -1
- package/lib/operations/PostInvoiceitems.d.ts +1 -1
- package/lib/operations/PostInvoiceitems.d.ts.map +1 -1
- package/lib/operations/PostInvoiceitemsInvoiceitem.d.ts +1 -1
- package/lib/operations/PostInvoiceitemsInvoiceitem.d.ts.map +1 -1
- package/lib/operations/PostInvoices.d.ts +1 -1
- package/lib/operations/PostInvoices.d.ts.map +1 -1
- package/lib/operations/PostInvoicesCreatePreview.d.ts +1 -1
- package/lib/operations/PostInvoicesCreatePreview.d.ts.map +1 -1
- package/lib/operations/PostInvoicesInvoice.d.ts +1 -1
- package/lib/operations/PostInvoicesInvoice.d.ts.map +1 -1
- package/lib/operations/PostInvoicesInvoiceAddLines.d.ts +1 -1
- package/lib/operations/PostInvoicesInvoiceAddLines.d.ts.map +1 -1
- package/lib/operations/PostInvoicesInvoiceAttachPayment.d.ts +1 -1
- package/lib/operations/PostInvoicesInvoiceAttachPayment.d.ts.map +1 -1
- package/lib/operations/PostInvoicesInvoiceFinalize.d.ts +1 -1
- package/lib/operations/PostInvoicesInvoiceFinalize.d.ts.map +1 -1
- package/lib/operations/PostInvoicesInvoiceLinesLineItemId.d.ts +1 -1
- package/lib/operations/PostInvoicesInvoiceLinesLineItemId.d.ts.map +1 -1
- package/lib/operations/PostInvoicesInvoiceMarkUncollectible.d.ts +1 -1
- package/lib/operations/PostInvoicesInvoiceMarkUncollectible.d.ts.map +1 -1
- package/lib/operations/PostInvoicesInvoicePay.d.ts +1 -1
- package/lib/operations/PostInvoicesInvoicePay.d.ts.map +1 -1
- package/lib/operations/PostInvoicesInvoiceRemoveLines.d.ts +1 -1
- package/lib/operations/PostInvoicesInvoiceRemoveLines.d.ts.map +1 -1
- package/lib/operations/PostInvoicesInvoiceSend.d.ts +1 -1
- package/lib/operations/PostInvoicesInvoiceSend.d.ts.map +1 -1
- package/lib/operations/PostInvoicesInvoiceUpdateLines.d.ts +1 -1
- package/lib/operations/PostInvoicesInvoiceUpdateLines.d.ts.map +1 -1
- package/lib/operations/PostInvoicesInvoiceVoid.d.ts +1 -1
- package/lib/operations/PostInvoicesInvoiceVoid.d.ts.map +1 -1
- package/lib/operations/PostIssuingAuthorizationsAuthorization.d.ts +1 -1
- package/lib/operations/PostIssuingAuthorizationsAuthorization.d.ts.map +1 -1
- package/lib/operations/PostIssuingCardholders.d.ts +1 -1
- package/lib/operations/PostIssuingCardholders.d.ts.map +1 -1
- package/lib/operations/PostIssuingCardholdersCardholder.d.ts +1 -1
- package/lib/operations/PostIssuingCardholdersCardholder.d.ts.map +1 -1
- package/lib/operations/PostIssuingCards.d.ts +1 -1
- package/lib/operations/PostIssuingCards.d.ts.map +1 -1
- package/lib/operations/PostIssuingCardsCard.d.ts +1 -1
- package/lib/operations/PostIssuingCardsCard.d.ts.map +1 -1
- package/lib/operations/PostIssuingDisputes.d.ts +1 -1
- package/lib/operations/PostIssuingDisputes.d.ts.map +1 -1
- package/lib/operations/PostIssuingDisputesDispute.d.ts +1 -1
- package/lib/operations/PostIssuingDisputesDispute.d.ts.map +1 -1
- package/lib/operations/PostIssuingDisputesDisputeSubmit.d.ts +1 -1
- package/lib/operations/PostIssuingDisputesDisputeSubmit.d.ts.map +1 -1
- package/lib/operations/PostIssuingPersonalizationDesigns.d.ts +1 -1
- package/lib/operations/PostIssuingPersonalizationDesigns.d.ts.map +1 -1
- package/lib/operations/PostIssuingPersonalizationDesignsPersonalizationDesign.d.ts +1 -1
- package/lib/operations/PostIssuingPersonalizationDesignsPersonalizationDesign.d.ts.map +1 -1
- package/lib/operations/PostIssuingTokensToken.d.ts +1 -1
- package/lib/operations/PostIssuingTokensToken.d.ts.map +1 -1
- package/lib/operations/PostIssuingTransactionsTransaction.d.ts +1 -1
- package/lib/operations/PostIssuingTransactionsTransaction.d.ts.map +1 -1
- package/lib/operations/PostPaymentIntents.d.ts +1 -1
- package/lib/operations/PostPaymentIntents.d.ts.map +1 -1
- package/lib/operations/PostPaymentIntentsIntent.d.ts +1 -1
- package/lib/operations/PostPaymentIntentsIntent.d.ts.map +1 -1
- package/lib/operations/PostPaymentIntentsIntentApplyCustomerBalance.d.ts +1 -1
- package/lib/operations/PostPaymentIntentsIntentApplyCustomerBalance.d.ts.map +1 -1
- package/lib/operations/PostPaymentIntentsIntentCancel.d.ts +1 -1
- package/lib/operations/PostPaymentIntentsIntentCancel.d.ts.map +1 -1
- package/lib/operations/PostPaymentIntentsIntentCapture.d.ts +1 -1
- package/lib/operations/PostPaymentIntentsIntentCapture.d.ts.map +1 -1
- package/lib/operations/PostPaymentIntentsIntentConfirm.d.ts +1 -1
- package/lib/operations/PostPaymentIntentsIntentConfirm.d.ts.map +1 -1
- package/lib/operations/PostPaymentIntentsIntentIncrementAuthorization.d.ts +1 -1
- package/lib/operations/PostPaymentIntentsIntentIncrementAuthorization.d.ts.map +1 -1
- package/lib/operations/PostPaymentIntentsIntentVerifyMicrodeposits.d.ts +1 -1
- package/lib/operations/PostPaymentIntentsIntentVerifyMicrodeposits.d.ts.map +1 -1
- package/lib/operations/PostPaymentLinks.d.ts +1 -1
- package/lib/operations/PostPaymentLinks.d.ts.map +1 -1
- package/lib/operations/PostPaymentLinksPaymentLink.d.ts +1 -1
- package/lib/operations/PostPaymentLinksPaymentLink.d.ts.map +1 -1
- package/lib/operations/PostPaymentMethodConfigurations.d.ts +1 -1
- package/lib/operations/PostPaymentMethodConfigurations.d.ts.map +1 -1
- package/lib/operations/PostPaymentMethodConfigurationsConfiguration.d.ts +1 -1
- package/lib/operations/PostPaymentMethodConfigurationsConfiguration.d.ts.map +1 -1
- package/lib/operations/PostPaymentMethodDomains.d.ts +1 -1
- package/lib/operations/PostPaymentMethodDomains.d.ts.map +1 -1
- package/lib/operations/PostPaymentMethodDomainsPaymentMethodDomain.d.ts +1 -1
- package/lib/operations/PostPaymentMethodDomainsPaymentMethodDomain.d.ts.map +1 -1
- package/lib/operations/PostPaymentMethodDomainsPaymentMethodDomainValidate.d.ts +1 -1
- package/lib/operations/PostPaymentMethodDomainsPaymentMethodDomainValidate.d.ts.map +1 -1
- package/lib/operations/PostPaymentMethods.d.ts +1 -1
- package/lib/operations/PostPaymentMethods.d.ts.map +1 -1
- package/lib/operations/PostPaymentMethodsPaymentMethod.d.ts +1 -1
- package/lib/operations/PostPaymentMethodsPaymentMethod.d.ts.map +1 -1
- package/lib/operations/PostPaymentMethodsPaymentMethodAttach.d.ts +1 -1
- package/lib/operations/PostPaymentMethodsPaymentMethodAttach.d.ts.map +1 -1
- package/lib/operations/PostPaymentMethodsPaymentMethodDetach.d.ts +1 -1
- package/lib/operations/PostPaymentMethodsPaymentMethodDetach.d.ts.map +1 -1
- package/lib/operations/PostPaymentRecordsIdReportPaymentAttempt.d.ts +1 -1
- package/lib/operations/PostPaymentRecordsIdReportPaymentAttempt.d.ts.map +1 -1
- package/lib/operations/PostPaymentRecordsIdReportPaymentAttemptCanceled.d.ts +1 -1
- package/lib/operations/PostPaymentRecordsIdReportPaymentAttemptCanceled.d.ts.map +1 -1
- package/lib/operations/PostPaymentRecordsIdReportPaymentAttemptFailed.d.ts +1 -1
- package/lib/operations/PostPaymentRecordsIdReportPaymentAttemptFailed.d.ts.map +1 -1
- package/lib/operations/PostPaymentRecordsIdReportPaymentAttemptGuaranteed.d.ts +1 -1
- package/lib/operations/PostPaymentRecordsIdReportPaymentAttemptGuaranteed.d.ts.map +1 -1
- package/lib/operations/PostPaymentRecordsIdReportPaymentAttemptInformational.d.ts +1 -1
- package/lib/operations/PostPaymentRecordsIdReportPaymentAttemptInformational.d.ts.map +1 -1
- package/lib/operations/PostPaymentRecordsIdReportRefund.d.ts +1 -1
- package/lib/operations/PostPaymentRecordsIdReportRefund.d.ts.map +1 -1
- package/lib/operations/PostPaymentRecordsReportPayment.d.ts +1 -1
- package/lib/operations/PostPaymentRecordsReportPayment.d.ts.map +1 -1
- package/lib/operations/PostPayouts.d.ts +1 -1
- package/lib/operations/PostPayouts.d.ts.map +1 -1
- package/lib/operations/PostPayoutsPayout.d.ts +1 -1
- package/lib/operations/PostPayoutsPayout.d.ts.map +1 -1
- package/lib/operations/PostPayoutsPayoutCancel.d.ts +1 -1
- package/lib/operations/PostPayoutsPayoutCancel.d.ts.map +1 -1
- package/lib/operations/PostPayoutsPayoutReverse.d.ts +1 -1
- package/lib/operations/PostPayoutsPayoutReverse.d.ts.map +1 -1
- package/lib/operations/PostPlans.d.ts +1 -1
- package/lib/operations/PostPlans.d.ts.map +1 -1
- package/lib/operations/PostPlansPlan.d.ts +1 -1
- package/lib/operations/PostPlansPlan.d.ts.map +1 -1
- package/lib/operations/PostPrices.d.ts +1 -1
- package/lib/operations/PostPrices.d.ts.map +1 -1
- package/lib/operations/PostPricesPrice.d.ts +1 -1
- package/lib/operations/PostPricesPrice.d.ts.map +1 -1
- package/lib/operations/PostProducts.d.ts +1 -1
- package/lib/operations/PostProducts.d.ts.map +1 -1
- package/lib/operations/PostProductsId.d.ts +1 -1
- package/lib/operations/PostProductsId.d.ts.map +1 -1
- package/lib/operations/PostProductsProductFeatures.d.ts +1 -1
- package/lib/operations/PostProductsProductFeatures.d.ts.map +1 -1
- package/lib/operations/PostPromotionCodes.d.ts +1 -1
- package/lib/operations/PostPromotionCodes.d.ts.map +1 -1
- package/lib/operations/PostPromotionCodesPromotionCode.d.ts +1 -1
- package/lib/operations/PostPromotionCodesPromotionCode.d.ts.map +1 -1
- package/lib/operations/PostQuotes.d.ts +1 -1
- package/lib/operations/PostQuotes.d.ts.map +1 -1
- package/lib/operations/PostQuotesQuote.d.ts +1 -1
- package/lib/operations/PostQuotesQuote.d.ts.map +1 -1
- package/lib/operations/PostQuotesQuoteAccept.d.ts +1 -1
- package/lib/operations/PostQuotesQuoteAccept.d.ts.map +1 -1
- package/lib/operations/PostQuotesQuoteCancel.d.ts +1 -1
- package/lib/operations/PostQuotesQuoteCancel.d.ts.map +1 -1
- package/lib/operations/PostQuotesQuoteFinalize.d.ts +1 -1
- package/lib/operations/PostQuotesQuoteFinalize.d.ts.map +1 -1
- package/lib/operations/PostRadarPaymentEvaluations.d.ts +1 -1
- package/lib/operations/PostRadarPaymentEvaluations.d.ts.map +1 -1
- package/lib/operations/PostRadarValueListItems.d.ts +1 -1
- package/lib/operations/PostRadarValueListItems.d.ts.map +1 -1
- package/lib/operations/PostRadarValueLists.d.ts +1 -1
- package/lib/operations/PostRadarValueLists.d.ts.map +1 -1
- package/lib/operations/PostRadarValueListsValueList.d.ts +1 -1
- package/lib/operations/PostRadarValueListsValueList.d.ts.map +1 -1
- package/lib/operations/PostRefunds.d.ts +1 -1
- package/lib/operations/PostRefunds.d.ts.map +1 -1
- package/lib/operations/PostRefundsRefund.d.ts +1 -1
- package/lib/operations/PostRefundsRefund.d.ts.map +1 -1
- package/lib/operations/PostRefundsRefundCancel.d.ts +1 -1
- package/lib/operations/PostRefundsRefundCancel.d.ts.map +1 -1
- package/lib/operations/PostReportingReportRuns.d.ts +1 -1
- package/lib/operations/PostReportingReportRuns.d.ts.map +1 -1
- package/lib/operations/PostReviewsReviewApprove.d.ts +1 -1
- package/lib/operations/PostReviewsReviewApprove.d.ts.map +1 -1
- package/lib/operations/PostSetupIntents.d.ts +1 -1
- package/lib/operations/PostSetupIntents.d.ts.map +1 -1
- package/lib/operations/PostSetupIntentsIntent.d.ts +1 -1
- package/lib/operations/PostSetupIntentsIntent.d.ts.map +1 -1
- package/lib/operations/PostSetupIntentsIntentCancel.d.ts +1 -1
- package/lib/operations/PostSetupIntentsIntentCancel.d.ts.map +1 -1
- package/lib/operations/PostSetupIntentsIntentConfirm.d.ts +1 -1
- package/lib/operations/PostSetupIntentsIntentConfirm.d.ts.map +1 -1
- package/lib/operations/PostSetupIntentsIntentVerifyMicrodeposits.d.ts +1 -1
- package/lib/operations/PostSetupIntentsIntentVerifyMicrodeposits.d.ts.map +1 -1
- package/lib/operations/PostShippingRates.d.ts +1 -1
- package/lib/operations/PostShippingRates.d.ts.map +1 -1
- package/lib/operations/PostShippingRatesShippingRateToken.d.ts +1 -1
- package/lib/operations/PostShippingRatesShippingRateToken.d.ts.map +1 -1
- package/lib/operations/PostSources.d.ts +1 -1
- package/lib/operations/PostSources.d.ts.map +1 -1
- package/lib/operations/PostSourcesSource.d.ts +1 -1
- package/lib/operations/PostSourcesSource.d.ts.map +1 -1
- package/lib/operations/PostSourcesSourceVerify.d.ts +1 -1
- package/lib/operations/PostSourcesSourceVerify.d.ts.map +1 -1
- package/lib/operations/PostSubscriptionItems.d.ts +1 -1
- package/lib/operations/PostSubscriptionItems.d.ts.map +1 -1
- package/lib/operations/PostSubscriptionItemsItem.d.ts +1 -1
- package/lib/operations/PostSubscriptionItemsItem.d.ts.map +1 -1
- package/lib/operations/PostSubscriptionSchedules.d.ts +1 -1
- package/lib/operations/PostSubscriptionSchedules.d.ts.map +1 -1
- package/lib/operations/PostSubscriptionSchedulesSchedule.d.ts +1 -1
- package/lib/operations/PostSubscriptionSchedulesSchedule.d.ts.map +1 -1
- package/lib/operations/PostSubscriptionSchedulesScheduleCancel.d.ts +1 -1
- package/lib/operations/PostSubscriptionSchedulesScheduleCancel.d.ts.map +1 -1
- package/lib/operations/PostSubscriptionSchedulesScheduleRelease.d.ts +1 -1
- package/lib/operations/PostSubscriptionSchedulesScheduleRelease.d.ts.map +1 -1
- package/lib/operations/PostSubscriptions.d.ts +1 -1
- package/lib/operations/PostSubscriptions.d.ts.map +1 -1
- package/lib/operations/PostSubscriptionsSubscriptionExposedId.d.ts +1 -1
- package/lib/operations/PostSubscriptionsSubscriptionExposedId.d.ts.map +1 -1
- package/lib/operations/PostSubscriptionsSubscriptionMigrate.d.ts +1 -1
- package/lib/operations/PostSubscriptionsSubscriptionMigrate.d.ts.map +1 -1
- package/lib/operations/PostSubscriptionsSubscriptionResume.d.ts +1 -1
- package/lib/operations/PostSubscriptionsSubscriptionResume.d.ts.map +1 -1
- package/lib/operations/PostTaxCalculations.d.ts +1 -1
- package/lib/operations/PostTaxCalculations.d.ts.map +1 -1
- package/lib/operations/PostTaxIds.d.ts +1 -1
- package/lib/operations/PostTaxIds.d.ts.map +1 -1
- package/lib/operations/PostTaxRates.d.ts +1 -1
- package/lib/operations/PostTaxRates.d.ts.map +1 -1
- package/lib/operations/PostTaxRatesTaxRate.d.ts +1 -1
- package/lib/operations/PostTaxRatesTaxRate.d.ts.map +1 -1
- package/lib/operations/PostTaxRegistrations.d.ts +1 -1
- package/lib/operations/PostTaxRegistrations.d.ts.map +1 -1
- package/lib/operations/PostTaxRegistrationsId.d.ts +1 -1
- package/lib/operations/PostTaxRegistrationsId.d.ts.map +1 -1
- package/lib/operations/PostTaxSettings.d.ts +1 -1
- package/lib/operations/PostTaxSettings.d.ts.map +1 -1
- package/lib/operations/PostTaxTransactionsCreateFromCalculation.d.ts +1 -1
- package/lib/operations/PostTaxTransactionsCreateFromCalculation.d.ts.map +1 -1
- package/lib/operations/PostTaxTransactionsCreateReversal.d.ts +1 -1
- package/lib/operations/PostTaxTransactionsCreateReversal.d.ts.map +1 -1
- package/lib/operations/PostTerminalConfigurations.d.ts +1 -1
- package/lib/operations/PostTerminalConfigurations.d.ts.map +1 -1
- package/lib/operations/PostTerminalConfigurationsConfiguration.d.ts +1 -1
- package/lib/operations/PostTerminalConfigurationsConfiguration.d.ts.map +1 -1
- package/lib/operations/PostTerminalConnectionTokens.d.ts +1 -1
- package/lib/operations/PostTerminalConnectionTokens.d.ts.map +1 -1
- package/lib/operations/PostTerminalLocations.d.ts +1 -1
- package/lib/operations/PostTerminalLocations.d.ts.map +1 -1
- package/lib/operations/PostTerminalLocationsLocation.d.ts +1 -1
- package/lib/operations/PostTerminalLocationsLocation.d.ts.map +1 -1
- package/lib/operations/PostTerminalOnboardingLinks.d.ts +1 -1
- package/lib/operations/PostTerminalOnboardingLinks.d.ts.map +1 -1
- package/lib/operations/PostTerminalReaders.d.ts +1 -1
- package/lib/operations/PostTerminalReaders.d.ts.map +1 -1
- package/lib/operations/PostTerminalReadersReader.d.ts +1 -1
- package/lib/operations/PostTerminalReadersReader.d.ts.map +1 -1
- package/lib/operations/PostTerminalReadersReaderCancelAction.d.ts +1 -1
- package/lib/operations/PostTerminalReadersReaderCancelAction.d.ts.map +1 -1
- package/lib/operations/PostTerminalReadersReaderCollectInputs.d.ts +1 -1
- package/lib/operations/PostTerminalReadersReaderCollectInputs.d.ts.map +1 -1
- package/lib/operations/PostTerminalReadersReaderCollectPaymentMethod.d.ts +1 -1
- package/lib/operations/PostTerminalReadersReaderCollectPaymentMethod.d.ts.map +1 -1
- package/lib/operations/PostTerminalReadersReaderConfirmPaymentIntent.d.ts +1 -1
- package/lib/operations/PostTerminalReadersReaderConfirmPaymentIntent.d.ts.map +1 -1
- package/lib/operations/PostTerminalReadersReaderProcessPaymentIntent.d.ts +1 -1
- package/lib/operations/PostTerminalReadersReaderProcessPaymentIntent.d.ts.map +1 -1
- package/lib/operations/PostTerminalReadersReaderProcessSetupIntent.d.ts +1 -1
- package/lib/operations/PostTerminalReadersReaderProcessSetupIntent.d.ts.map +1 -1
- package/lib/operations/PostTerminalReadersReaderRefundPayment.d.ts +1 -1
- package/lib/operations/PostTerminalReadersReaderRefundPayment.d.ts.map +1 -1
- package/lib/operations/PostTerminalReadersReaderSetReaderDisplay.d.ts +1 -1
- package/lib/operations/PostTerminalReadersReaderSetReaderDisplay.d.ts.map +1 -1
- package/lib/operations/PostTestHelpersConfirmationTokens.d.ts +1 -1
- package/lib/operations/PostTestHelpersConfirmationTokens.d.ts.map +1 -1
- package/lib/operations/PostTestHelpersCustomersCustomerFundCashBalance.d.ts +1 -1
- package/lib/operations/PostTestHelpersCustomersCustomerFundCashBalance.d.ts.map +1 -1
- package/lib/operations/PostTestHelpersIssuingAuthorizations.d.ts +1 -1
- package/lib/operations/PostTestHelpersIssuingAuthorizations.d.ts.map +1 -1
- package/lib/operations/PostTestHelpersIssuingAuthorizationsAuthorizationCapture.d.ts +1 -1
- package/lib/operations/PostTestHelpersIssuingAuthorizationsAuthorizationCapture.d.ts.map +1 -1
- package/lib/operations/PostTestHelpersIssuingAuthorizationsAuthorizationExpire.d.ts +1 -1
- package/lib/operations/PostTestHelpersIssuingAuthorizationsAuthorizationExpire.d.ts.map +1 -1
- package/lib/operations/PostTestHelpersIssuingAuthorizationsAuthorizationFinalizeAmount.d.ts +1 -1
- package/lib/operations/PostTestHelpersIssuingAuthorizationsAuthorizationFinalizeAmount.d.ts.map +1 -1
- package/lib/operations/PostTestHelpersIssuingAuthorizationsAuthorizationFraudChallengesRespond.d.ts +1 -1
- package/lib/operations/PostTestHelpersIssuingAuthorizationsAuthorizationFraudChallengesRespond.d.ts.map +1 -1
- package/lib/operations/PostTestHelpersIssuingAuthorizationsAuthorizationIncrement.d.ts +1 -1
- package/lib/operations/PostTestHelpersIssuingAuthorizationsAuthorizationIncrement.d.ts.map +1 -1
- package/lib/operations/PostTestHelpersIssuingAuthorizationsAuthorizationReverse.d.ts +1 -1
- package/lib/operations/PostTestHelpersIssuingAuthorizationsAuthorizationReverse.d.ts.map +1 -1
- package/lib/operations/PostTestHelpersIssuingCardsCardShippingDeliver.d.ts +1 -1
- package/lib/operations/PostTestHelpersIssuingCardsCardShippingDeliver.d.ts.map +1 -1
- package/lib/operations/PostTestHelpersIssuingCardsCardShippingFail.d.ts +1 -1
- package/lib/operations/PostTestHelpersIssuingCardsCardShippingFail.d.ts.map +1 -1
- package/lib/operations/PostTestHelpersIssuingCardsCardShippingReturn.d.ts +1 -1
- package/lib/operations/PostTestHelpersIssuingCardsCardShippingReturn.d.ts.map +1 -1
- package/lib/operations/PostTestHelpersIssuingCardsCardShippingShip.d.ts +1 -1
- package/lib/operations/PostTestHelpersIssuingCardsCardShippingShip.d.ts.map +1 -1
- package/lib/operations/PostTestHelpersIssuingCardsCardShippingSubmit.d.ts +1 -1
- package/lib/operations/PostTestHelpersIssuingCardsCardShippingSubmit.d.ts.map +1 -1
- package/lib/operations/PostTestHelpersIssuingPersonalizationDesignsPersonalizationDesignActivate.d.ts +1 -1
- package/lib/operations/PostTestHelpersIssuingPersonalizationDesignsPersonalizationDesignActivate.d.ts.map +1 -1
- package/lib/operations/PostTestHelpersIssuingPersonalizationDesignsPersonalizationDesignDeactivate.d.ts +1 -1
- package/lib/operations/PostTestHelpersIssuingPersonalizationDesignsPersonalizationDesignDeactivate.d.ts.map +1 -1
- package/lib/operations/PostTestHelpersIssuingPersonalizationDesignsPersonalizationDesignReject.d.ts +1 -1
- package/lib/operations/PostTestHelpersIssuingPersonalizationDesignsPersonalizationDesignReject.d.ts.map +1 -1
- package/lib/operations/PostTestHelpersIssuingTransactionsCreateForceCapture.d.ts +1 -1
- package/lib/operations/PostTestHelpersIssuingTransactionsCreateForceCapture.d.ts.map +1 -1
- package/lib/operations/PostTestHelpersIssuingTransactionsCreateUnlinkedRefund.d.ts +1 -1
- package/lib/operations/PostTestHelpersIssuingTransactionsCreateUnlinkedRefund.d.ts.map +1 -1
- package/lib/operations/PostTestHelpersIssuingTransactionsTransactionRefund.d.ts +1 -1
- package/lib/operations/PostTestHelpersIssuingTransactionsTransactionRefund.d.ts.map +1 -1
- package/lib/operations/PostTestHelpersRefundsRefundExpire.d.ts +1 -1
- package/lib/operations/PostTestHelpersRefundsRefundExpire.d.ts.map +1 -1
- package/lib/operations/PostTestHelpersTerminalReadersReaderPresentPaymentMethod.d.ts +1 -1
- package/lib/operations/PostTestHelpersTerminalReadersReaderPresentPaymentMethod.d.ts.map +1 -1
- package/lib/operations/PostTestHelpersTerminalReadersReaderSucceedInputCollection.d.ts +1 -1
- package/lib/operations/PostTestHelpersTerminalReadersReaderSucceedInputCollection.d.ts.map +1 -1
- package/lib/operations/PostTestHelpersTerminalReadersReaderTimeoutInputCollection.d.ts +1 -1
- package/lib/operations/PostTestHelpersTerminalReadersReaderTimeoutInputCollection.d.ts.map +1 -1
- package/lib/operations/PostTestHelpersTestClocks.d.ts +1 -1
- package/lib/operations/PostTestHelpersTestClocks.d.ts.map +1 -1
- package/lib/operations/PostTestHelpersTestClocksTestClockAdvance.d.ts +1 -1
- package/lib/operations/PostTestHelpersTestClocksTestClockAdvance.d.ts.map +1 -1
- package/lib/operations/PostTestHelpersTreasuryInboundTransfersIdFail.d.ts +1 -1
- package/lib/operations/PostTestHelpersTreasuryInboundTransfersIdFail.d.ts.map +1 -1
- package/lib/operations/PostTestHelpersTreasuryInboundTransfersIdReturn.d.ts +1 -1
- package/lib/operations/PostTestHelpersTreasuryInboundTransfersIdReturn.d.ts.map +1 -1
- package/lib/operations/PostTestHelpersTreasuryInboundTransfersIdSucceed.d.ts +1 -1
- package/lib/operations/PostTestHelpersTreasuryInboundTransfersIdSucceed.d.ts.map +1 -1
- package/lib/operations/PostTestHelpersTreasuryOutboundPaymentsId.d.ts +1 -1
- package/lib/operations/PostTestHelpersTreasuryOutboundPaymentsId.d.ts.map +1 -1
- package/lib/operations/PostTestHelpersTreasuryOutboundPaymentsIdFail.d.ts +1 -1
- package/lib/operations/PostTestHelpersTreasuryOutboundPaymentsIdFail.d.ts.map +1 -1
- package/lib/operations/PostTestHelpersTreasuryOutboundPaymentsIdPost.d.ts +1 -1
- package/lib/operations/PostTestHelpersTreasuryOutboundPaymentsIdPost.d.ts.map +1 -1
- package/lib/operations/PostTestHelpersTreasuryOutboundPaymentsIdReturn.d.ts +1 -1
- package/lib/operations/PostTestHelpersTreasuryOutboundPaymentsIdReturn.d.ts.map +1 -1
- package/lib/operations/PostTestHelpersTreasuryOutboundTransfersOutboundTransfer.d.ts +1 -1
- package/lib/operations/PostTestHelpersTreasuryOutboundTransfersOutboundTransfer.d.ts.map +1 -1
- package/lib/operations/PostTestHelpersTreasuryOutboundTransfersOutboundTransferFail.d.ts +1 -1
- package/lib/operations/PostTestHelpersTreasuryOutboundTransfersOutboundTransferFail.d.ts.map +1 -1
- package/lib/operations/PostTestHelpersTreasuryOutboundTransfersOutboundTransferPost.d.ts +1 -1
- package/lib/operations/PostTestHelpersTreasuryOutboundTransfersOutboundTransferPost.d.ts.map +1 -1
- package/lib/operations/PostTestHelpersTreasuryOutboundTransfersOutboundTransferReturn.d.ts +1 -1
- package/lib/operations/PostTestHelpersTreasuryOutboundTransfersOutboundTransferReturn.d.ts.map +1 -1
- package/lib/operations/PostTestHelpersTreasuryReceivedCredits.d.ts +1 -1
- package/lib/operations/PostTestHelpersTreasuryReceivedCredits.d.ts.map +1 -1
- package/lib/operations/PostTestHelpersTreasuryReceivedDebits.d.ts +1 -1
- package/lib/operations/PostTestHelpersTreasuryReceivedDebits.d.ts.map +1 -1
- package/lib/operations/PostTokens.d.ts +1 -1
- package/lib/operations/PostTokens.d.ts.map +1 -1
- package/lib/operations/PostTopups.d.ts +1 -1
- package/lib/operations/PostTopups.d.ts.map +1 -1
- package/lib/operations/PostTopupsTopup.d.ts +1 -1
- package/lib/operations/PostTopupsTopup.d.ts.map +1 -1
- package/lib/operations/PostTopupsTopupCancel.d.ts +1 -1
- package/lib/operations/PostTopupsTopupCancel.d.ts.map +1 -1
- package/lib/operations/PostTransfers.d.ts +1 -1
- package/lib/operations/PostTransfers.d.ts.map +1 -1
- package/lib/operations/PostTransfersIdReversals.d.ts +1 -1
- package/lib/operations/PostTransfersIdReversals.d.ts.map +1 -1
- package/lib/operations/PostTransfersTransfer.d.ts +1 -1
- package/lib/operations/PostTransfersTransfer.d.ts.map +1 -1
- package/lib/operations/PostTransfersTransferReversalsId.d.ts +1 -1
- package/lib/operations/PostTransfersTransferReversalsId.d.ts.map +1 -1
- package/lib/operations/PostTreasuryCreditReversals.d.ts +1 -1
- package/lib/operations/PostTreasuryCreditReversals.d.ts.map +1 -1
- package/lib/operations/PostTreasuryDebitReversals.d.ts +1 -1
- package/lib/operations/PostTreasuryDebitReversals.d.ts.map +1 -1
- package/lib/operations/PostTreasuryFinancialAccounts.d.ts +1 -1
- package/lib/operations/PostTreasuryFinancialAccounts.d.ts.map +1 -1
- package/lib/operations/PostTreasuryFinancialAccountsFinancialAccount.d.ts +1 -1
- package/lib/operations/PostTreasuryFinancialAccountsFinancialAccount.d.ts.map +1 -1
- package/lib/operations/PostTreasuryFinancialAccountsFinancialAccountClose.d.ts +1 -1
- package/lib/operations/PostTreasuryFinancialAccountsFinancialAccountClose.d.ts.map +1 -1
- package/lib/operations/PostTreasuryFinancialAccountsFinancialAccountFeatures.d.ts +1 -1
- package/lib/operations/PostTreasuryFinancialAccountsFinancialAccountFeatures.d.ts.map +1 -1
- package/lib/operations/PostTreasuryInboundTransfers.d.ts +1 -1
- package/lib/operations/PostTreasuryInboundTransfers.d.ts.map +1 -1
- package/lib/operations/PostTreasuryInboundTransfersInboundTransferCancel.d.ts +1 -1
- package/lib/operations/PostTreasuryInboundTransfersInboundTransferCancel.d.ts.map +1 -1
- package/lib/operations/PostTreasuryOutboundPayments.d.ts +1 -1
- package/lib/operations/PostTreasuryOutboundPayments.d.ts.map +1 -1
- package/lib/operations/PostTreasuryOutboundPaymentsIdCancel.d.ts +1 -1
- package/lib/operations/PostTreasuryOutboundPaymentsIdCancel.d.ts.map +1 -1
- package/lib/operations/PostTreasuryOutboundTransfers.d.ts +1 -1
- package/lib/operations/PostTreasuryOutboundTransfers.d.ts.map +1 -1
- package/lib/operations/PostTreasuryOutboundTransfersOutboundTransferCancel.d.ts +1 -1
- package/lib/operations/PostTreasuryOutboundTransfersOutboundTransferCancel.d.ts.map +1 -1
- package/lib/operations/PostV2BillingMeterEventAdjustments.d.ts +1 -1
- package/lib/operations/PostV2BillingMeterEventAdjustments.d.ts.map +1 -1
- package/lib/operations/PostV2BillingMeterEventSession.d.ts +1 -1
- package/lib/operations/PostV2BillingMeterEventSession.d.ts.map +1 -1
- package/lib/operations/PostV2BillingMeterEventStream.d.ts +1 -1
- package/lib/operations/PostV2BillingMeterEventStream.d.ts.map +1 -1
- package/lib/operations/PostV2BillingMeterEvents.d.ts +1 -1
- package/lib/operations/PostV2BillingMeterEvents.d.ts.map +1 -1
- package/lib/operations/PostV2CommerceProductCatalogImports.d.ts +1 -1
- package/lib/operations/PostV2CommerceProductCatalogImports.d.ts.map +1 -1
- package/lib/operations/PostV2CoreAccountLinks.d.ts +1 -1
- package/lib/operations/PostV2CoreAccountLinks.d.ts.map +1 -1
- package/lib/operations/PostV2CoreAccountTokens.d.ts +1 -1
- package/lib/operations/PostV2CoreAccountTokens.d.ts.map +1 -1
- package/lib/operations/PostV2CoreAccounts.d.ts +1 -1
- package/lib/operations/PostV2CoreAccounts.d.ts.map +1 -1
- package/lib/operations/PostV2CoreAccountsAccountIdPersonTokens.d.ts +1 -1
- package/lib/operations/PostV2CoreAccountsAccountIdPersonTokens.d.ts.map +1 -1
- package/lib/operations/PostV2CoreAccountsAccountIdPersons.d.ts +1 -1
- package/lib/operations/PostV2CoreAccountsAccountIdPersons.d.ts.map +1 -1
- package/lib/operations/PostV2CoreAccountsAccountIdPersonsId.d.ts +1 -1
- package/lib/operations/PostV2CoreAccountsAccountIdPersonsId.d.ts.map +1 -1
- package/lib/operations/PostV2CoreAccountsId.d.ts +1 -1
- package/lib/operations/PostV2CoreAccountsId.d.ts.map +1 -1
- package/lib/operations/PostV2CoreAccountsIdClose.d.ts +1 -1
- package/lib/operations/PostV2CoreAccountsIdClose.d.ts.map +1 -1
- package/lib/operations/PostV2CoreEventDestinations.d.ts +1 -1
- package/lib/operations/PostV2CoreEventDestinations.d.ts.map +1 -1
- package/lib/operations/PostV2CoreEventDestinationsId.d.ts +1 -1
- package/lib/operations/PostV2CoreEventDestinationsId.d.ts.map +1 -1
- package/lib/operations/PostV2CoreEventDestinationsIdDisable.d.ts +1 -1
- package/lib/operations/PostV2CoreEventDestinationsIdDisable.d.ts.map +1 -1
- package/lib/operations/PostV2CoreEventDestinationsIdEnable.d.ts +1 -1
- package/lib/operations/PostV2CoreEventDestinationsIdEnable.d.ts.map +1 -1
- package/lib/operations/PostV2CoreEventDestinationsIdPing.d.ts +1 -1
- package/lib/operations/PostV2CoreEventDestinationsIdPing.d.ts.map +1 -1
- package/lib/operations/PostWebhookEndpoints.d.ts +1 -1
- package/lib/operations/PostWebhookEndpoints.d.ts.map +1 -1
- package/lib/operations/PostWebhookEndpointsWebhookEndpoint.d.ts +1 -1
- package/lib/operations/PostWebhookEndpointsWebhookEndpoint.d.ts.map +1 -1
- package/lib/webhooks.d.ts +37 -0
- package/lib/webhooks.d.ts.map +1 -0
- package/lib/webhooks.js +161 -0
- package/lib/webhooks.js.map +1 -0
- package/package.json +7 -2
- package/src/client.ts +36 -1
- package/src/errors.ts +25 -0
- package/src/index.ts +1 -0
- package/src/webhooks.ts +307 -0
package/lib/webhooks.js
ADDED
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
import * as Effect from "effect/Effect";
|
|
2
|
+
import * as Redacted from "effect/Redacted";
|
|
3
|
+
import { StripeWebhookPayloadParseError, StripeWebhookSignatureError, } from "./errors.js";
|
|
4
|
+
export const DEFAULT_WEBHOOK_TOLERANCE_SECONDS = 300;
|
|
5
|
+
const textEncoder = new TextEncoder();
|
|
6
|
+
const textDecoder = new TextDecoder("utf-8", { fatal: true });
|
|
7
|
+
const payloadToBytes = (payload) => {
|
|
8
|
+
if (typeof payload === "string") {
|
|
9
|
+
return textEncoder.encode(payload);
|
|
10
|
+
}
|
|
11
|
+
if (payload instanceof ArrayBuffer) {
|
|
12
|
+
return new Uint8Array(payload);
|
|
13
|
+
}
|
|
14
|
+
return payload;
|
|
15
|
+
};
|
|
16
|
+
const payloadToString = (payload) => {
|
|
17
|
+
if (typeof payload === "string") {
|
|
18
|
+
return payload;
|
|
19
|
+
}
|
|
20
|
+
return textDecoder.decode(payloadToBytes(payload));
|
|
21
|
+
};
|
|
22
|
+
const secretToString = (secret) => Redacted.isRedacted(secret) ? Redacted.value(secret) : secret;
|
|
23
|
+
const parseSignatureHeader = (signature) => {
|
|
24
|
+
if (signature == null || signature.trim() === "") {
|
|
25
|
+
return new StripeWebhookSignatureError({
|
|
26
|
+
message: "Stripe-Signature header is required",
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
let timestamp;
|
|
30
|
+
const signatures = [];
|
|
31
|
+
for (const part of signature.split(",")) {
|
|
32
|
+
const separatorIndex = part.indexOf("=");
|
|
33
|
+
if (separatorIndex === -1) {
|
|
34
|
+
continue;
|
|
35
|
+
}
|
|
36
|
+
const key = part.slice(0, separatorIndex).trim();
|
|
37
|
+
const value = part.slice(separatorIndex + 1).trim();
|
|
38
|
+
if (key === "t" && timestamp === undefined) {
|
|
39
|
+
timestamp = value;
|
|
40
|
+
}
|
|
41
|
+
else if (key === "v1") {
|
|
42
|
+
signatures.push(value);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
if (timestamp === undefined || timestamp === "") {
|
|
46
|
+
return new StripeWebhookSignatureError({
|
|
47
|
+
message: "Stripe-Signature header is missing a timestamp",
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
const timestampSeconds = Number(timestamp);
|
|
51
|
+
if (!Number.isSafeInteger(timestampSeconds) ||
|
|
52
|
+
timestampSeconds < 0 ||
|
|
53
|
+
String(timestampSeconds) !== timestamp) {
|
|
54
|
+
return new StripeWebhookSignatureError({
|
|
55
|
+
message: "Stripe-Signature header timestamp is invalid",
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
if (signatures.length === 0) {
|
|
59
|
+
return new StripeWebhookSignatureError({
|
|
60
|
+
message: "Stripe-Signature header is missing a v1 signature",
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
return { timestamp, timestampSeconds, signatures };
|
|
64
|
+
};
|
|
65
|
+
const signedPayloadBytes = (timestamp, payload) => {
|
|
66
|
+
const timestampBytes = textEncoder.encode(`${timestamp}.`);
|
|
67
|
+
const bodyBytes = payloadToBytes(payload);
|
|
68
|
+
const signedPayload = new Uint8Array(timestampBytes.byteLength + bodyBytes.byteLength);
|
|
69
|
+
signedPayload.set(timestampBytes, 0);
|
|
70
|
+
signedPayload.set(bodyBytes, timestampBytes.byteLength);
|
|
71
|
+
return signedPayload.buffer;
|
|
72
|
+
};
|
|
73
|
+
const hmacSha256 = (secret, timestamp, payload) => Effect.tryPromise({
|
|
74
|
+
try: async () => {
|
|
75
|
+
const key = await crypto.subtle.importKey("raw", textEncoder.encode(secret), { name: "HMAC", hash: "SHA-256" }, false, ["sign"]);
|
|
76
|
+
const signature = await crypto.subtle.sign("HMAC", key, signedPayloadBytes(timestamp, payload));
|
|
77
|
+
return new Uint8Array(signature);
|
|
78
|
+
},
|
|
79
|
+
catch: (cause) => new StripeWebhookSignatureError({
|
|
80
|
+
message: "Unable to compute Stripe webhook signature",
|
|
81
|
+
cause,
|
|
82
|
+
}),
|
|
83
|
+
});
|
|
84
|
+
const hexToBytes = (hex) => {
|
|
85
|
+
if (hex.length % 2 !== 0 || !/^[0-9a-fA-F]+$/.test(hex)) {
|
|
86
|
+
return undefined;
|
|
87
|
+
}
|
|
88
|
+
const bytes = new Uint8Array(hex.length / 2);
|
|
89
|
+
for (let index = 0; index < bytes.length; index += 1) {
|
|
90
|
+
bytes[index] = Number.parseInt(hex.slice(index * 2, index * 2 + 2), 16);
|
|
91
|
+
}
|
|
92
|
+
return bytes;
|
|
93
|
+
};
|
|
94
|
+
const constantTimeEqual = (expected, candidate) => {
|
|
95
|
+
// JavaScript cannot guarantee CPU-level constant time, but length mismatches
|
|
96
|
+
// are folded into the accumulator so a matching prefix can never succeed.
|
|
97
|
+
let difference = expected.byteLength ^ candidate.byteLength;
|
|
98
|
+
const byteLength = Math.max(expected.byteLength, candidate.byteLength);
|
|
99
|
+
for (let index = 0; index < byteLength; index += 1) {
|
|
100
|
+
const expectedByte = index < expected.byteLength ? expected[index] : 0;
|
|
101
|
+
const candidateByte = index < candidate.byteLength ? candidate[index] : 0;
|
|
102
|
+
difference |= expectedByte ^ candidateByte;
|
|
103
|
+
}
|
|
104
|
+
return difference === 0;
|
|
105
|
+
};
|
|
106
|
+
const hasMatchingSignature = (expectedSignature, signatures) => {
|
|
107
|
+
let matched = false;
|
|
108
|
+
for (const signature of signatures) {
|
|
109
|
+
const candidate = hexToBytes(signature) ?? new Uint8Array(0);
|
|
110
|
+
matched = constantTimeEqual(expectedSignature, candidate) || matched;
|
|
111
|
+
}
|
|
112
|
+
return matched;
|
|
113
|
+
};
|
|
114
|
+
const validateTolerance = (timestampSeconds, toleranceSeconds) => {
|
|
115
|
+
if (!Number.isFinite(toleranceSeconds) || toleranceSeconds < 0) {
|
|
116
|
+
return new StripeWebhookSignatureError({
|
|
117
|
+
message: "Stripe webhook tolerance must be a non-negative number",
|
|
118
|
+
});
|
|
119
|
+
}
|
|
120
|
+
if (toleranceSeconds === 0) {
|
|
121
|
+
return undefined;
|
|
122
|
+
}
|
|
123
|
+
const ageSeconds = Math.abs(Math.floor(Date.now() / 1000) - timestampSeconds);
|
|
124
|
+
if (ageSeconds > toleranceSeconds) {
|
|
125
|
+
return new StripeWebhookSignatureError({
|
|
126
|
+
message: `Stripe webhook timestamp is outside the tolerance window of ${toleranceSeconds} seconds`,
|
|
127
|
+
});
|
|
128
|
+
}
|
|
129
|
+
return undefined;
|
|
130
|
+
};
|
|
131
|
+
export const verifySignature = ({ payload, signature, secret, toleranceSeconds = DEFAULT_WEBHOOK_TOLERANCE_SECONDS, }) => Effect.gen(function* () {
|
|
132
|
+
const parsed = parseSignatureHeader(signature);
|
|
133
|
+
if (parsed instanceof StripeWebhookSignatureError) {
|
|
134
|
+
return yield* Effect.fail(parsed);
|
|
135
|
+
}
|
|
136
|
+
const expectedSignature = yield* hmacSha256(secretToString(secret), parsed.timestamp, payload);
|
|
137
|
+
if (!hasMatchingSignature(expectedSignature, parsed.signatures)) {
|
|
138
|
+
return yield* Effect.fail(new StripeWebhookSignatureError({
|
|
139
|
+
message: "No v1 signature matches the expected Stripe webhook signature",
|
|
140
|
+
}));
|
|
141
|
+
}
|
|
142
|
+
const toleranceError = validateTolerance(parsed.timestampSeconds, toleranceSeconds);
|
|
143
|
+
if (toleranceError !== undefined) {
|
|
144
|
+
return yield* Effect.fail(toleranceError);
|
|
145
|
+
}
|
|
146
|
+
});
|
|
147
|
+
const isRecord = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
|
|
148
|
+
export const constructEvent = ({ payload, signature, secret, toleranceSeconds, }) => verifySignature({ payload, signature, secret, toleranceSeconds }).pipe(Effect.flatMap(() => Effect.try({
|
|
149
|
+
try: () => {
|
|
150
|
+
const parsed = JSON.parse(payloadToString(payload));
|
|
151
|
+
if (!isRecord(parsed)) {
|
|
152
|
+
throw new Error("Stripe webhook payload must be a JSON object");
|
|
153
|
+
}
|
|
154
|
+
return parsed;
|
|
155
|
+
},
|
|
156
|
+
catch: (cause) => new StripeWebhookPayloadParseError({
|
|
157
|
+
message: "Unable to parse Stripe webhook payload as JSON",
|
|
158
|
+
cause,
|
|
159
|
+
}),
|
|
160
|
+
})));
|
|
161
|
+
//# sourceMappingURL=webhooks.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"webhooks.js","sourceRoot":"","sources":["../src/webhooks.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,QAAQ,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EACL,8BAA8B,EAC9B,2BAA2B,GAC5B,MAAM,aAAa,CAAC;AAErB,MAAM,CAAC,MAAM,iCAAiC,GAAG,GAAG,CAAC;AAyCrD,MAAM,WAAW,GAAG,IAAI,WAAW,EAAE,CAAC;AACtC,MAAM,WAAW,GAAG,IAAI,WAAW,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;AAE9D,MAAM,cAAc,GAAG,CAAC,OAAuB,EAAc,EAAE;IAC7D,IAAI,OAA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AO,MAAM,CAAC;IAChB,CAAC;IACD,KAAK,EAAE,CAAC,KAAK,EAAE,EAAE,CACf,IAAI,8BAA8B,CAAC;QACjC,OAAO,EAAE,gDAAgD;QACzD,KAAK;KACN,CAAC;CACL,CAAC,CACH,CACF,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@distilled.cloud/stripe",
|
|
3
|
-
"version": "0.25.
|
|
3
|
+
"version": "0.25.2",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/alchemy-run/distilled",
|
|
@@ -40,6 +40,11 @@
|
|
|
40
40
|
"bun": "./src/errors.ts",
|
|
41
41
|
"default": "./lib/errors.js"
|
|
42
42
|
},
|
|
43
|
+
"./Webhooks": {
|
|
44
|
+
"types": "./lib/webhooks.d.ts",
|
|
45
|
+
"bun": "./src/webhooks.ts",
|
|
46
|
+
"default": "./lib/webhooks.js"
|
|
47
|
+
},
|
|
43
48
|
"./Operations": {
|
|
44
49
|
"types": "./lib/operations/index.d.ts",
|
|
45
50
|
"bun": "./src/operations/index.ts",
|
|
@@ -75,7 +80,7 @@
|
|
|
75
80
|
"specs:update": "git -C specs/stripe-openapi fetch && git -C specs/stripe-openapi checkout master && git -C specs/stripe-openapi pull"
|
|
76
81
|
},
|
|
77
82
|
"dependencies": {
|
|
78
|
-
"@distilled.cloud/core": "0.25.
|
|
83
|
+
"@distilled.cloud/core": "0.25.2"
|
|
79
84
|
},
|
|
80
85
|
"devDependencies": {
|
|
81
86
|
"@types/bun": "^1.3.0",
|
package/src/client.ts
CHANGED
|
@@ -25,6 +25,40 @@ import { Credentials } from "./credentials.ts";
|
|
|
25
25
|
// Re-export for convenience
|
|
26
26
|
export { UnknownStripeError } from "./errors.ts";
|
|
27
27
|
|
|
28
|
+
type StripeConnectRequestOptions =
|
|
29
|
+
| {
|
|
30
|
+
readonly stripeAccount?: string | undefined;
|
|
31
|
+
readonly stripeContext?: never;
|
|
32
|
+
}
|
|
33
|
+
| {
|
|
34
|
+
readonly stripeAccount?: never;
|
|
35
|
+
readonly stripeContext?: string | undefined;
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
export type StripeRequestOptions = {
|
|
39
|
+
readonly idempotencyKey?: string | undefined;
|
|
40
|
+
readonly apiVersion?: string | undefined;
|
|
41
|
+
} & StripeConnectRequestOptions;
|
|
42
|
+
|
|
43
|
+
const stripeRequestHeaders = (
|
|
44
|
+
options: StripeRequestOptions | undefined,
|
|
45
|
+
): Record<string, string> => {
|
|
46
|
+
const headers: Record<string, string> = {};
|
|
47
|
+
if (options?.idempotencyKey !== undefined) {
|
|
48
|
+
headers["Idempotency-Key"] = options.idempotencyKey;
|
|
49
|
+
}
|
|
50
|
+
if (options?.stripeAccount !== undefined) {
|
|
51
|
+
headers["Stripe-Account"] = options.stripeAccount;
|
|
52
|
+
}
|
|
53
|
+
if (options?.stripeContext !== undefined) {
|
|
54
|
+
headers["Stripe-Context"] = options.stripeContext;
|
|
55
|
+
}
|
|
56
|
+
if (options?.apiVersion !== undefined) {
|
|
57
|
+
headers["Stripe-Version"] = options.apiVersion;
|
|
58
|
+
}
|
|
59
|
+
return headers;
|
|
60
|
+
};
|
|
61
|
+
|
|
28
62
|
// Stripe API Error Response Schema
|
|
29
63
|
// Stripe wraps errors in { error: { type, code, message, ... } }
|
|
30
64
|
const StripeErrorInner = Schema.Struct({
|
|
@@ -160,12 +194,13 @@ const matchError = (
|
|
|
160
194
|
/**
|
|
161
195
|
* Stripe API client.
|
|
162
196
|
*/
|
|
163
|
-
export const API = makeAPI<Credentials>({
|
|
197
|
+
export const API = makeAPI<Credentials, StripeRequestOptions>({
|
|
164
198
|
credentials: Credentials as any,
|
|
165
199
|
getBaseUrl: (creds: any) => creds.apiBaseUrl,
|
|
166
200
|
getAuthHeaders: (creds: any) => ({
|
|
167
201
|
Authorization: `Bearer ${Redacted.value(creds.apiKey)}`,
|
|
168
202
|
}),
|
|
203
|
+
getRequestHeaders: stripeRequestHeaders,
|
|
169
204
|
matchError,
|
|
170
205
|
ParseError: StripeParseError as any,
|
|
171
206
|
retry: Retry as any,
|
package/src/errors.ts
CHANGED
|
@@ -148,3 +148,28 @@ export class StripeParseError extends Schema.TaggedErrorClass<StripeParseError>(
|
|
|
148
148
|
cause: Schema.Unknown,
|
|
149
149
|
},
|
|
150
150
|
).pipe(Category.withParseError) {}
|
|
151
|
+
|
|
152
|
+
/**
|
|
153
|
+
* Stripe webhook signature verification failed.
|
|
154
|
+
*
|
|
155
|
+
* This is raised by the local webhook helpers when the Stripe-Signature header
|
|
156
|
+
* is missing, malformed, expired, or does not match the raw request payload.
|
|
157
|
+
*/
|
|
158
|
+
export class StripeWebhookSignatureError extends Schema.TaggedErrorClass<StripeWebhookSignatureError>()(
|
|
159
|
+
"StripeWebhookSignatureError",
|
|
160
|
+
{
|
|
161
|
+
message: Schema.String,
|
|
162
|
+
cause: Schema.optional(Schema.Unknown),
|
|
163
|
+
},
|
|
164
|
+
).pipe(Category.withAuthError) {}
|
|
165
|
+
|
|
166
|
+
/**
|
|
167
|
+
* Stripe webhook payload JSON parsing failed after signature verification.
|
|
168
|
+
*/
|
|
169
|
+
export class StripeWebhookPayloadParseError extends Schema.TaggedErrorClass<StripeWebhookPayloadParseError>()(
|
|
170
|
+
"StripeWebhookPayloadParseError",
|
|
171
|
+
{
|
|
172
|
+
message: Schema.String,
|
|
173
|
+
cause: Schema.optional(Schema.Unknown),
|
|
174
|
+
},
|
|
175
|
+
).pipe(Category.withParseError) {}
|
package/src/index.ts
CHANGED
|
@@ -10,6 +10,7 @@ export * from "./credentials.ts";
|
|
|
10
10
|
export * as Category from "./category.ts";
|
|
11
11
|
export * as T from "./traits.ts";
|
|
12
12
|
export * as Retry from "./retry.ts";
|
|
13
|
+
export * as Webhooks from "./webhooks.ts";
|
|
13
14
|
export { API } from "./client.ts";
|
|
14
15
|
export * from "./errors.ts";
|
|
15
16
|
export * from "./operations/index.ts";
|
package/src/webhooks.ts
ADDED
|
@@ -0,0 +1,307 @@
|
|
|
1
|
+
import * as Effect from "effect/Effect";
|
|
2
|
+
import * as Redacted from "effect/Redacted";
|
|
3
|
+
import {
|
|
4
|
+
StripeWebhookPayloadParseError,
|
|
5
|
+
StripeWebhookSignatureError,
|
|
6
|
+
} from "./errors.ts";
|
|
7
|
+
|
|
8
|
+
export const DEFAULT_WEBHOOK_TOLERANCE_SECONDS = 300;
|
|
9
|
+
|
|
10
|
+
export type WebhookPayload = string | Uint8Array | ArrayBuffer;
|
|
11
|
+
export type WebhookSecret = string | Redacted.Redacted<string>;
|
|
12
|
+
|
|
13
|
+
export interface StripeEvent {
|
|
14
|
+
readonly id?: string;
|
|
15
|
+
readonly object?: string;
|
|
16
|
+
readonly api_version?: string;
|
|
17
|
+
readonly created?: number;
|
|
18
|
+
readonly data?: unknown;
|
|
19
|
+
readonly livemode?: boolean;
|
|
20
|
+
readonly pending_webhooks?: number;
|
|
21
|
+
readonly request?: unknown;
|
|
22
|
+
readonly type?: string;
|
|
23
|
+
readonly [key: string]: unknown;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export interface VerifySignatureOptions {
|
|
27
|
+
/**
|
|
28
|
+
* Raw request body exactly as Stripe sent it. Do not pass parsed or
|
|
29
|
+
* reserialized JSON.
|
|
30
|
+
*/
|
|
31
|
+
readonly payload: WebhookPayload;
|
|
32
|
+
readonly signature: string | null | undefined;
|
|
33
|
+
readonly secret: WebhookSecret;
|
|
34
|
+
/**
|
|
35
|
+
* Maximum allowed webhook age in seconds. Pass `0` to skip timestamp
|
|
36
|
+
* tolerance verification for tests or offline reprocessing.
|
|
37
|
+
*/
|
|
38
|
+
readonly toleranceSeconds?: number | undefined;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export interface ConstructEventOptions extends VerifySignatureOptions {}
|
|
42
|
+
|
|
43
|
+
interface ParsedSignatureHeader {
|
|
44
|
+
readonly timestamp: string;
|
|
45
|
+
readonly timestampSeconds: number;
|
|
46
|
+
readonly signatures: ReadonlyArray<string>;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
const textEncoder = new TextEncoder();
|
|
50
|
+
const textDecoder = new TextDecoder("utf-8", { fatal: true });
|
|
51
|
+
|
|
52
|
+
const payloadToBytes = (payload: WebhookPayload): Uint8Array => {
|
|
53
|
+
if (typeof payload === "string") {
|
|
54
|
+
return textEncoder.encode(payload);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
if (payload instanceof ArrayBuffer) {
|
|
58
|
+
return new Uint8Array(payload);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
return payload;
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
const payloadToString = (payload: WebhookPayload): string => {
|
|
65
|
+
if (typeof payload === "string") {
|
|
66
|
+
return payload;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return textDecoder.decode(payloadToBytes(payload));
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
const secretToString = (secret: WebhookSecret): string =>
|
|
73
|
+
Redacted.isRedacted(secret) ? (Redacted.value(secret) as string) : secret;
|
|
74
|
+
|
|
75
|
+
const parseSignatureHeader = (
|
|
76
|
+
signature: string | null | undefined,
|
|
77
|
+
): ParsedSignatureHeader | StripeWebhookSignatureError => {
|
|
78
|
+
if (signature == null || signature.trim() === "") {
|
|
79
|
+
return new StripeWebhookSignatureError({
|
|
80
|
+
message: "Stripe-Signature header is required",
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
let timestamp: string | undefined;
|
|
85
|
+
const signatures: Array<string> = [];
|
|
86
|
+
|
|
87
|
+
for (const part of signature.split(",")) {
|
|
88
|
+
const separatorIndex = part.indexOf("=");
|
|
89
|
+
if (separatorIndex === -1) {
|
|
90
|
+
continue;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
const key = part.slice(0, separatorIndex).trim();
|
|
94
|
+
const value = part.slice(separatorIndex + 1).trim();
|
|
95
|
+
|
|
96
|
+
if (key === "t" && timestamp === undefined) {
|
|
97
|
+
timestamp = value;
|
|
98
|
+
} else if (key === "v1") {
|
|
99
|
+
signatures.push(value);
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
if (timestamp === undefined || timestamp === "") {
|
|
104
|
+
return new StripeWebhookSignatureError({
|
|
105
|
+
message: "Stripe-Signature header is missing a timestamp",
|
|
106
|
+
});
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
const timestampSeconds = Number(timestamp);
|
|
110
|
+
if (
|
|
111
|
+
!Number.isSafeInteger(timestampSeconds) ||
|
|
112
|
+
timestampSeconds < 0 ||
|
|
113
|
+
String(timestampSeconds) !== timestamp
|
|
114
|
+
) {
|
|
115
|
+
return new StripeWebhookSignatureError({
|
|
116
|
+
message: "Stripe-Signature header timestamp is invalid",
|
|
117
|
+
});
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
if (signatures.length === 0) {
|
|
121
|
+
return new StripeWebhookSignatureError({
|
|
122
|
+
message: "Stripe-Signature header is missing a v1 signature",
|
|
123
|
+
});
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
return { timestamp, timestampSeconds, signatures };
|
|
127
|
+
};
|
|
128
|
+
|
|
129
|
+
const signedPayloadBytes = (
|
|
130
|
+
timestamp: string,
|
|
131
|
+
payload: WebhookPayload,
|
|
132
|
+
): ArrayBuffer => {
|
|
133
|
+
const timestampBytes = textEncoder.encode(`${timestamp}.`);
|
|
134
|
+
const bodyBytes = payloadToBytes(payload);
|
|
135
|
+
const signedPayload = new Uint8Array(
|
|
136
|
+
timestampBytes.byteLength + bodyBytes.byteLength,
|
|
137
|
+
);
|
|
138
|
+
|
|
139
|
+
signedPayload.set(timestampBytes, 0);
|
|
140
|
+
signedPayload.set(bodyBytes, timestampBytes.byteLength);
|
|
141
|
+
|
|
142
|
+
return signedPayload.buffer;
|
|
143
|
+
};
|
|
144
|
+
|
|
145
|
+
const hmacSha256 = (
|
|
146
|
+
secret: string,
|
|
147
|
+
timestamp: string,
|
|
148
|
+
payload: WebhookPayload,
|
|
149
|
+
): Effect.Effect<Uint8Array, StripeWebhookSignatureError> =>
|
|
150
|
+
Effect.tryPromise({
|
|
151
|
+
try: async () => {
|
|
152
|
+
const key = await crypto.subtle.importKey(
|
|
153
|
+
"raw",
|
|
154
|
+
textEncoder.encode(secret),
|
|
155
|
+
{ name: "HMAC", hash: "SHA-256" },
|
|
156
|
+
false,
|
|
157
|
+
["sign"],
|
|
158
|
+
);
|
|
159
|
+
const signature = await crypto.subtle.sign(
|
|
160
|
+
"HMAC",
|
|
161
|
+
key,
|
|
162
|
+
signedPayloadBytes(timestamp, payload),
|
|
163
|
+
);
|
|
164
|
+
|
|
165
|
+
return new Uint8Array(signature);
|
|
166
|
+
},
|
|
167
|
+
catch: (cause) =>
|
|
168
|
+
new StripeWebhookSignatureError({
|
|
169
|
+
message: "Unable to compute Stripe webhook signature",
|
|
170
|
+
cause,
|
|
171
|
+
}),
|
|
172
|
+
});
|
|
173
|
+
|
|
174
|
+
const hexToBytes = (hex: string): Uint8Array | undefined => {
|
|
175
|
+
if (hex.length % 2 !== 0 || !/^[0-9a-fA-F]+$/.test(hex)) {
|
|
176
|
+
return undefined;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
const bytes = new Uint8Array(hex.length / 2);
|
|
180
|
+
for (let index = 0; index < bytes.length; index += 1) {
|
|
181
|
+
bytes[index] = Number.parseInt(hex.slice(index * 2, index * 2 + 2), 16);
|
|
182
|
+
}
|
|
183
|
+
return bytes;
|
|
184
|
+
};
|
|
185
|
+
|
|
186
|
+
const constantTimeEqual = (
|
|
187
|
+
expected: Uint8Array,
|
|
188
|
+
candidate: Uint8Array,
|
|
189
|
+
): boolean => {
|
|
190
|
+
// JavaScript cannot guarantee CPU-level constant time, but length mismatches
|
|
191
|
+
// are folded into the accumulator so a matching prefix can never succeed.
|
|
192
|
+
let difference = expected.byteLength ^ candidate.byteLength;
|
|
193
|
+
const byteLength = Math.max(expected.byteLength, candidate.byteLength);
|
|
194
|
+
|
|
195
|
+
for (let index = 0; index < byteLength; index += 1) {
|
|
196
|
+
const expectedByte = index < expected.byteLength ? expected[index] : 0;
|
|
197
|
+
const candidateByte = index < candidate.byteLength ? candidate[index] : 0;
|
|
198
|
+
difference |= expectedByte ^ candidateByte;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
return difference === 0;
|
|
202
|
+
};
|
|
203
|
+
|
|
204
|
+
const hasMatchingSignature = (
|
|
205
|
+
expectedSignature: Uint8Array,
|
|
206
|
+
signatures: ReadonlyArray<string>,
|
|
207
|
+
): boolean => {
|
|
208
|
+
let matched = false;
|
|
209
|
+
|
|
210
|
+
for (const signature of signatures) {
|
|
211
|
+
const candidate = hexToBytes(signature) ?? new Uint8Array(0);
|
|
212
|
+
matched = constantTimeEqual(expectedSignature, candidate) || matched;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
return matched;
|
|
216
|
+
};
|
|
217
|
+
|
|
218
|
+
const validateTolerance = (
|
|
219
|
+
timestampSeconds: number,
|
|
220
|
+
toleranceSeconds: number,
|
|
221
|
+
): StripeWebhookSignatureError | undefined => {
|
|
222
|
+
if (!Number.isFinite(toleranceSeconds) || toleranceSeconds < 0) {
|
|
223
|
+
return new StripeWebhookSignatureError({
|
|
224
|
+
message: "Stripe webhook tolerance must be a non-negative number",
|
|
225
|
+
});
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
if (toleranceSeconds === 0) {
|
|
229
|
+
return undefined;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
const ageSeconds = Math.abs(Math.floor(Date.now() / 1000) - timestampSeconds);
|
|
233
|
+
if (ageSeconds > toleranceSeconds) {
|
|
234
|
+
return new StripeWebhookSignatureError({
|
|
235
|
+
message: `Stripe webhook timestamp is outside the tolerance window of ${toleranceSeconds} seconds`,
|
|
236
|
+
});
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
return undefined;
|
|
240
|
+
};
|
|
241
|
+
|
|
242
|
+
export const verifySignature = ({
|
|
243
|
+
payload,
|
|
244
|
+
signature,
|
|
245
|
+
secret,
|
|
246
|
+
toleranceSeconds = DEFAULT_WEBHOOK_TOLERANCE_SECONDS,
|
|
247
|
+
}: VerifySignatureOptions): Effect.Effect<void, StripeWebhookSignatureError> =>
|
|
248
|
+
Effect.gen(function* () {
|
|
249
|
+
const parsed = parseSignatureHeader(signature);
|
|
250
|
+
if (parsed instanceof StripeWebhookSignatureError) {
|
|
251
|
+
return yield* Effect.fail(parsed);
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
const expectedSignature = yield* hmacSha256(
|
|
255
|
+
secretToString(secret),
|
|
256
|
+
parsed.timestamp,
|
|
257
|
+
payload,
|
|
258
|
+
);
|
|
259
|
+
|
|
260
|
+
if (!hasMatchingSignature(expectedSignature, parsed.signatures)) {
|
|
261
|
+
return yield* Effect.fail(
|
|
262
|
+
new StripeWebhookSignatureError({
|
|
263
|
+
message:
|
|
264
|
+
"No v1 signature matches the expected Stripe webhook signature",
|
|
265
|
+
}),
|
|
266
|
+
);
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
const toleranceError = validateTolerance(
|
|
270
|
+
parsed.timestampSeconds,
|
|
271
|
+
toleranceSeconds,
|
|
272
|
+
);
|
|
273
|
+
if (toleranceError !== undefined) {
|
|
274
|
+
return yield* Effect.fail(toleranceError);
|
|
275
|
+
}
|
|
276
|
+
});
|
|
277
|
+
|
|
278
|
+
const isRecord = (value: unknown): value is StripeEvent =>
|
|
279
|
+
typeof value === "object" && value !== null && !Array.isArray(value);
|
|
280
|
+
|
|
281
|
+
export const constructEvent = ({
|
|
282
|
+
payload,
|
|
283
|
+
signature,
|
|
284
|
+
secret,
|
|
285
|
+
toleranceSeconds,
|
|
286
|
+
}: ConstructEventOptions): Effect.Effect<
|
|
287
|
+
StripeEvent,
|
|
288
|
+
StripeWebhookSignatureError | StripeWebhookPayloadParseError
|
|
289
|
+
> =>
|
|
290
|
+
verifySignature({ payload, signature, secret, toleranceSeconds }).pipe(
|
|
291
|
+
Effect.flatMap(() =>
|
|
292
|
+
Effect.try({
|
|
293
|
+
try: () => {
|
|
294
|
+
const parsed = JSON.parse(payloadToString(payload)) as unknown;
|
|
295
|
+
if (!isRecord(parsed)) {
|
|
296
|
+
throw new Error("Stripe webhook payload must be a JSON object");
|
|
297
|
+
}
|
|
298
|
+
return parsed;
|
|
299
|
+
},
|
|
300
|
+
catch: (cause) =>
|
|
301
|
+
new StripeWebhookPayloadParseError({
|
|
302
|
+
message: "Unable to parse Stripe webhook payload as JSON",
|
|
303
|
+
cause,
|
|
304
|
+
}),
|
|
305
|
+
}),
|
|
306
|
+
),
|
|
307
|
+
);
|