// This file is auto-generated by @hey-api/openapi-ts import { createClient, createConfig, type Options, urlSearchParamsBodySerializer, formDataBodySerializer } from '@hey-api/client-fetch'; import type { GetAccountData, GetAccountError, GetAccountResponse, PostAccountLinksData, PostAccountLinksError, PostAccountLinksResponse, PostAccountSessionsData, PostAccountSessionsError, PostAccountSessionsResponse, GetAccountsData, GetAccountsError, GetAccountsResponse, PostAccountsData, PostAccountsError, PostAccountsResponse, DeleteAccountsAccountData, DeleteAccountsAccountError, DeleteAccountsAccountResponse, GetAccountsAccountData, GetAccountsAccountError, GetAccountsAccountResponse, PostAccountsAccountData, PostAccountsAccountError, PostAccountsAccountResponse, PostAccountsAccountBankAccountsData, PostAccountsAccountBankAccountsError, PostAccountsAccountBankAccountsResponse, DeleteAccountsAccountBankAccountsIdData, DeleteAccountsAccountBankAccountsIdError, DeleteAccountsAccountBankAccountsIdResponse, GetAccountsAccountBankAccountsIdData, GetAccountsAccountBankAccountsIdError, GetAccountsAccountBankAccountsIdResponse, PostAccountsAccountBankAccountsIdData, PostAccountsAccountBankAccountsIdError, PostAccountsAccountBankAccountsIdResponse, GetAccountsAccountCapabilitiesData, GetAccountsAccountCapabilitiesError, GetAccountsAccountCapabilitiesResponse, GetAccountsAccountCapabilitiesCapabilityData, GetAccountsAccountCapabilitiesCapabilityError, GetAccountsAccountCapabilitiesCapabilityResponse, PostAccountsAccountCapabilitiesCapabilityData, PostAccountsAccountCapabilitiesCapabilityError, PostAccountsAccountCapabilitiesCapabilityResponse, GetAccountsAccountExternalAccountsData, GetAccountsAccountExternalAccountsError, GetAccountsAccountExternalAccountsResponse, PostAccountsAccountExternalAccountsData, PostAccountsAccountExternalAccountsError, PostAccountsAccountExternalAccountsResponse, DeleteAccountsAccountExternalAccountsIdData, DeleteAccountsAccountExternalAccountsIdError, DeleteAccountsAccountExternalAccountsIdResponse, GetAccountsAccountExternalAccountsIdData, GetAccountsAccountExternalAccountsIdError, GetAccountsAccountExternalAccountsIdResponse, PostAccountsAccountExternalAccountsIdData, PostAccountsAccountExternalAccountsIdError, PostAccountsAccountExternalAccountsIdResponse, PostAccountsAccountLoginLinksData, PostAccountsAccountLoginLinksError, PostAccountsAccountLoginLinksResponse, GetAccountsAccountPeopleData, GetAccountsAccountPeopleError, GetAccountsAccountPeopleResponse, PostAccountsAccountPeopleData, PostAccountsAccountPeopleError, PostAccountsAccountPeopleResponse, DeleteAccountsAccountPeoplePersonData, DeleteAccountsAccountPeoplePersonError, DeleteAccountsAccountPeoplePersonResponse, GetAccountsAccountPeoplePersonData, GetAccountsAccountPeoplePersonError, GetAccountsAccountPeoplePersonResponse, PostAccountsAccountPeoplePersonData, PostAccountsAccountPeoplePersonError, PostAccountsAccountPeoplePersonResponse, GetAccountsAccountPersonsData, GetAccountsAccountPersonsError, GetAccountsAccountPersonsResponse, PostAccountsAccountPersonsData, PostAccountsAccountPersonsError, PostAccountsAccountPersonsResponse, DeleteAccountsAccountPersonsPersonData, DeleteAccountsAccountPersonsPersonError, DeleteAccountsAccountPersonsPersonResponse, GetAccountsAccountPersonsPersonData, GetAccountsAccountPersonsPersonError, GetAccountsAccountPersonsPersonResponse, PostAccountsAccountPersonsPersonData, PostAccountsAccountPersonsPersonError, PostAccountsAccountPersonsPersonResponse, PostAccountsAccountRejectData, PostAccountsAccountRejectError, PostAccountsAccountRejectResponse, GetApplePayDomainsData, GetApplePayDomainsError, GetApplePayDomainsResponse, PostApplePayDomainsData, PostApplePayDomainsError, PostApplePayDomainsResponse, DeleteApplePayDomainsDomainData, DeleteApplePayDomainsDomainError, DeleteApplePayDomainsDomainResponse, GetApplePayDomainsDomainData, GetApplePayDomainsDomainError, GetApplePayDomainsDomainResponse, GetApplicationFeesData, GetApplicationFeesError, GetApplicationFeesResponse, GetApplicationFeesFeeRefundsIdData, GetApplicationFeesFeeRefundsIdError, GetApplicationFeesFeeRefundsIdResponse, PostApplicationFeesFeeRefundsIdData, PostApplicationFeesFeeRefundsIdError, PostApplicationFeesFeeRefundsIdResponse, GetApplicationFeesIdData, GetApplicationFeesIdError, GetApplicationFeesIdResponse, PostApplicationFeesIdRefundData, PostApplicationFeesIdRefundError, PostApplicationFeesIdRefundResponse, GetApplicationFeesIdRefundsData, GetApplicationFeesIdRefundsError, GetApplicationFeesIdRefundsResponse, PostApplicationFeesIdRefundsData, PostApplicationFeesIdRefundsError, PostApplicationFeesIdRefundsResponse, GetAppsSecretsData, GetAppsSecretsError, GetAppsSecretsResponse, PostAppsSecretsData, PostAppsSecretsError, PostAppsSecretsResponse, PostAppsSecretsDeleteData, PostAppsSecretsDeleteError, PostAppsSecretsDeleteResponse, GetAppsSecretsFindData, GetAppsSecretsFindError, GetAppsSecretsFindResponse, GetBalanceData, GetBalanceError, GetBalanceResponse, GetBalanceHistoryData, GetBalanceHistoryError, GetBalanceHistoryResponse, GetBalanceHistoryIdData, GetBalanceHistoryIdError, GetBalanceHistoryIdResponse, GetBalanceTransactionsData, GetBalanceTransactionsError, GetBalanceTransactionsResponse, GetBalanceTransactionsIdData, GetBalanceTransactionsIdError, GetBalanceTransactionsIdResponse, PostBillingMeterEventAdjustmentsData, PostBillingMeterEventAdjustmentsError, PostBillingMeterEventAdjustmentsResponse, PostBillingMeterEventsData, PostBillingMeterEventsError, PostBillingMeterEventsResponse, GetBillingMetersData, GetBillingMetersError, GetBillingMetersResponse, PostBillingMetersData, PostBillingMetersError, PostBillingMetersResponse, GetBillingMetersIdData, GetBillingMetersIdError, GetBillingMetersIdResponse, PostBillingMetersIdData, PostBillingMetersIdError, PostBillingMetersIdResponse, PostBillingMetersIdDeactivateData, PostBillingMetersIdDeactivateError, PostBillingMetersIdDeactivateResponse, GetBillingMetersIdEventSummariesData, GetBillingMetersIdEventSummariesError, GetBillingMetersIdEventSummariesResponse, PostBillingMetersIdReactivateData, PostBillingMetersIdReactivateError, PostBillingMetersIdReactivateResponse, GetBillingPortalConfigurationsData, GetBillingPortalConfigurationsError, GetBillingPortalConfigurationsResponse, PostBillingPortalConfigurationsData, PostBillingPortalConfigurationsError, PostBillingPortalConfigurationsResponse, GetBillingPortalConfigurationsConfigurationData, GetBillingPortalConfigurationsConfigurationError, GetBillingPortalConfigurationsConfigurationResponse, PostBillingPortalConfigurationsConfigurationData, PostBillingPortalConfigurationsConfigurationError, PostBillingPortalConfigurationsConfigurationResponse, PostBillingPortalSessionsData, PostBillingPortalSessionsError, PostBillingPortalSessionsResponse, GetChargesData, GetChargesError, GetChargesResponse, PostChargesData, PostChargesError, PostChargesResponse, GetChargesSearchData, GetChargesSearchError, GetChargesSearchResponse, GetChargesChargeData, GetChargesChargeError, GetChargesChargeResponse, PostChargesChargeData, PostChargesChargeError, PostChargesChargeResponse, PostChargesChargeCaptureData, PostChargesChargeCaptureError, PostChargesChargeCaptureResponse, GetChargesChargeDisputeData, GetChargesChargeDisputeError, GetChargesChargeDisputeResponse, PostChargesChargeDisputeData, PostChargesChargeDisputeError, PostChargesChargeDisputeResponse, PostChargesChargeDisputeCloseData, PostChargesChargeDisputeCloseError, PostChargesChargeDisputeCloseResponse, PostChargesChargeRefundData, PostChargesChargeRefundError, PostChargesChargeRefundResponse, GetChargesChargeRefundsData, GetChargesChargeRefundsError, GetChargesChargeRefundsResponse, PostChargesChargeRefundsData, PostChargesChargeRefundsError, PostChargesChargeRefundsResponse, GetChargesChargeRefundsRefundData, GetChargesChargeRefundsRefundError, GetChargesChargeRefundsRefundResponse, PostChargesChargeRefundsRefundData, PostChargesChargeRefundsRefundError, PostChargesChargeRefundsRefundResponse, GetCheckoutSessionsData, GetCheckoutSessionsError, GetCheckoutSessionsResponse, PostCheckoutSessionsData, PostCheckoutSessionsError, PostCheckoutSessionsResponse, GetCheckoutSessionsSessionData, GetCheckoutSessionsSessionError, GetCheckoutSessionsSessionResponse, PostCheckoutSessionsSessionExpireData, PostCheckoutSessionsSessionExpireError, PostCheckoutSessionsSessionExpireResponse, GetCheckoutSessionsSessionLineItemsData, GetCheckoutSessionsSessionLineItemsError, GetCheckoutSessionsSessionLineItemsResponse, GetClimateOrdersData, GetClimateOrdersError, GetClimateOrdersResponse, PostClimateOrdersData, PostClimateOrdersError, PostClimateOrdersResponse, GetClimateOrdersOrderData, GetClimateOrdersOrderError, GetClimateOrdersOrderResponse, PostClimateOrdersOrderData, PostClimateOrdersOrderError, PostClimateOrdersOrderResponse, PostClimateOrdersOrderCancelData, PostClimateOrdersOrderCancelError, PostClimateOrdersOrderCancelResponse, GetClimateProductsData, GetClimateProductsError, GetClimateProductsResponse, GetClimateProductsProductData, GetClimateProductsProductError, GetClimateProductsProductResponse, GetClimateSuppliersData, GetClimateSuppliersError, GetClimateSuppliersResponse, GetClimateSuppliersSupplierData, GetClimateSuppliersSupplierError, GetClimateSuppliersSupplierResponse, GetConfirmationTokensConfirmationTokenData, GetConfirmationTokensConfirmationTokenError, GetConfirmationTokensConfirmationTokenResponse, GetCountrySpecsData, GetCountrySpecsError, GetCountrySpecsResponse, GetCountrySpecsCountryData, GetCountrySpecsCountryError, GetCountrySpecsCountryResponse, GetCouponsData, GetCouponsError, GetCouponsResponse, PostCouponsData, PostCouponsError, PostCouponsResponse, DeleteCouponsCouponData, DeleteCouponsCouponError, DeleteCouponsCouponResponse, GetCouponsCouponData, GetCouponsCouponError, GetCouponsCouponResponse, PostCouponsCouponData, PostCouponsCouponError, PostCouponsCouponResponse, GetCreditNotesData, GetCreditNotesError, GetCreditNotesResponse, PostCreditNotesData, PostCreditNotesError, PostCreditNotesResponse, GetCreditNotesPreviewData, GetCreditNotesPreviewError, GetCreditNotesPreviewResponse, GetCreditNotesPreviewLinesData, GetCreditNotesPreviewLinesError, GetCreditNotesPreviewLinesResponse, GetCreditNotesCreditNoteLinesData, GetCreditNotesCreditNoteLinesError, GetCreditNotesCreditNoteLinesResponse, GetCreditNotesIdData, GetCreditNotesIdError, GetCreditNotesIdResponse, PostCreditNotesIdData, PostCreditNotesIdError, PostCreditNotesIdResponse, PostCreditNotesIdVoidData, PostCreditNotesIdVoidError, PostCreditNotesIdVoidResponse, PostCustomerSessionsData, PostCustomerSessionsError, PostCustomerSessionsResponse, GetCustomersData, GetCustomersError, GetCustomersResponse, PostCustomersData, PostCustomersError, PostCustomersResponse, GetCustomersSearchData, GetCustomersSearchError, GetCustomersSearchResponse, DeleteCustomersCustomerData, DeleteCustomersCustomerError, DeleteCustomersCustomerResponse, GetCustomersCustomerData, GetCustomersCustomerError, GetCustomersCustomerResponse, PostCustomersCustomerData, PostCustomersCustomerError, PostCustomersCustomerResponse, GetCustomersCustomerBalanceTransactionsData, GetCustomersCustomerBalanceTransactionsError, GetCustomersCustomerBalanceTransactionsResponse, PostCustomersCustomerBalanceTransactionsData, PostCustomersCustomerBalanceTransactionsError, PostCustomersCustomerBalanceTransactionsResponse, GetCustomersCustomerBalanceTransactionsTransactionData, GetCustomersCustomerBalanceTransactionsTransactionError, GetCustomersCustomerBalanceTransactionsTransactionResponse, PostCustomersCustomerBalanceTransactionsTransactionData, PostCustomersCustomerBalanceTransactionsTransactionError, PostCustomersCustomerBalanceTransactionsTransactionResponse, GetCustomersCustomerBankAccountsData, GetCustomersCustomerBankAccountsError, GetCustomersCustomerBankAccountsResponse, PostCustomersCustomerBankAccountsData, PostCustomersCustomerBankAccountsError, PostCustomersCustomerBankAccountsResponse, DeleteCustomersCustomerBankAccountsIdData, DeleteCustomersCustomerBankAccountsIdError, DeleteCustomersCustomerBankAccountsIdResponse, GetCustomersCustomerBankAccountsIdData, GetCustomersCustomerBankAccountsIdError, GetCustomersCustomerBankAccountsIdResponse, PostCustomersCustomerBankAccountsIdData, PostCustomersCustomerBankAccountsIdError, PostCustomersCustomerBankAccountsIdResponse, PostCustomersCustomerBankAccountsIdVerifyData, PostCustomersCustomerBankAccountsIdVerifyError, PostCustomersCustomerBankAccountsIdVerifyResponse, GetCustomersCustomerCardsData, GetCustomersCustomerCardsError, GetCustomersCustomerCardsResponse, PostCustomersCustomerCardsData, PostCustomersCustomerCardsError, PostCustomersCustomerCardsResponse, DeleteCustomersCustomerCardsIdData, DeleteCustomersCustomerCardsIdError, DeleteCustomersCustomerCardsIdResponse, GetCustomersCustomerCardsIdData, GetCustomersCustomerCardsIdError, GetCustomersCustomerCardsIdResponse, PostCustomersCustomerCardsIdData, PostCustomersCustomerCardsIdError, PostCustomersCustomerCardsIdResponse, GetCustomersCustomerCashBalanceData, GetCustomersCustomerCashBalanceError, GetCustomersCustomerCashBalanceResponse, PostCustomersCustomerCashBalanceData, PostCustomersCustomerCashBalanceError, PostCustomersCustomerCashBalanceResponse, GetCustomersCustomerCashBalanceTransactionsData, GetCustomersCustomerCashBalanceTransactionsError, GetCustomersCustomerCashBalanceTransactionsResponse, GetCustomersCustomerCashBalanceTransactionsTransactionData, GetCustomersCustomerCashBalanceTransactionsTransactionError, GetCustomersCustomerCashBalanceTransactionsTransactionResponse, DeleteCustomersCustomerDiscountData, DeleteCustomersCustomerDiscountError, DeleteCustomersCustomerDiscountResponse, GetCustomersCustomerDiscountData, GetCustomersCustomerDiscountError, GetCustomersCustomerDiscountResponse, PostCustomersCustomerFundingInstructionsData, PostCustomersCustomerFundingInstructionsError, PostCustomersCustomerFundingInstructionsResponse, GetCustomersCustomerPaymentMethodsData, GetCustomersCustomerPaymentMethodsError, GetCustomersCustomerPaymentMethodsResponse, GetCustomersCustomerPaymentMethodsPaymentMethodData, GetCustomersCustomerPaymentMethodsPaymentMethodError, GetCustomersCustomerPaymentMethodsPaymentMethodResponse, GetCustomersCustomerSourcesData, GetCustomersCustomerSourcesError, GetCustomersCustomerSourcesResponse, PostCustomersCustomerSourcesData, PostCustomersCustomerSourcesError, PostCustomersCustomerSourcesResponse, DeleteCustomersCustomerSourcesIdData, DeleteCustomersCustomerSourcesIdError, DeleteCustomersCustomerSourcesIdResponse, GetCustomersCustomerSourcesIdData, GetCustomersCustomerSourcesIdError, GetCustomersCustomerSourcesIdResponse, PostCustomersCustomerSourcesIdData, PostCustomersCustomerSourcesIdError, PostCustomersCustomerSourcesIdResponse, PostCustomersCustomerSourcesIdVerifyData, PostCustomersCustomerSourcesIdVerifyError, PostCustomersCustomerSourcesIdVerifyResponse, GetCustomersCustomerSubscriptionsData, GetCustomersCustomerSubscriptionsError, GetCustomersCustomerSubscriptionsResponse, PostCustomersCustomerSubscriptionsData, PostCustomersCustomerSubscriptionsError, PostCustomersCustomerSubscriptionsResponse, DeleteCustomersCustomerSubscriptionsSubscriptionExposedIdData, DeleteCustomersCustomerSubscriptionsSubscriptionExposedIdError, DeleteCustomersCustomerSubscriptionsSubscriptionExposedIdResponse, GetCustomersCustomerSubscriptionsSubscriptionExposedIdData, GetCustomersCustomerSubscriptionsSubscriptionExposedIdError, GetCustomersCustomerSubscriptionsSubscriptionExposedIdResponse, PostCustomersCustomerSubscriptionsSubscriptionExposedIdData, PostCustomersCustomerSubscriptionsSubscriptionExposedIdError, PostCustomersCustomerSubscriptionsSubscriptionExposedIdResponse, DeleteCustomersCustomerSubscriptionsSubscriptionExposedIdDiscountData, DeleteCustomersCustomerSubscriptionsSubscriptionExposedIdDiscountError, DeleteCustomersCustomerSubscriptionsSubscriptionExposedIdDiscountResponse, GetCustomersCustomerSubscriptionsSubscriptionExposedIdDiscountData, GetCustomersCustomerSubscriptionsSubscriptionExposedIdDiscountError, GetCustomersCustomerSubscriptionsSubscriptionExposedIdDiscountResponse, GetCustomersCustomerTaxIdsData, GetCustomersCustomerTaxIdsError, GetCustomersCustomerTaxIdsResponse, PostCustomersCustomerTaxIdsData, PostCustomersCustomerTaxIdsError, PostCustomersCustomerTaxIdsResponse, DeleteCustomersCustomerTaxIdsIdData, DeleteCustomersCustomerTaxIdsIdError, DeleteCustomersCustomerTaxIdsIdResponse, GetCustomersCustomerTaxIdsIdData, GetCustomersCustomerTaxIdsIdError, GetCustomersCustomerTaxIdsIdResponse, GetDisputesData, GetDisputesError, GetDisputesResponse, GetDisputesDisputeData, GetDisputesDisputeError, GetDisputesDisputeResponse, PostDisputesDisputeData, PostDisputesDisputeError, PostDisputesDisputeResponse, PostDisputesDisputeCloseData, PostDisputesDisputeCloseError, PostDisputesDisputeCloseResponse, GetEntitlementsActiveEntitlementsData, GetEntitlementsActiveEntitlementsError, GetEntitlementsActiveEntitlementsResponse, GetEntitlementsActiveEntitlementsIdData, GetEntitlementsActiveEntitlementsIdError, GetEntitlementsActiveEntitlementsIdResponse, GetEntitlementsFeaturesData, GetEntitlementsFeaturesError, GetEntitlementsFeaturesResponse, PostEntitlementsFeaturesData, PostEntitlementsFeaturesError, PostEntitlementsFeaturesResponse, GetEntitlementsFeaturesIdData, GetEntitlementsFeaturesIdError, GetEntitlementsFeaturesIdResponse, PostEntitlementsFeaturesIdData, PostEntitlementsFeaturesIdError, PostEntitlementsFeaturesIdResponse, PostEphemeralKeysData, PostEphemeralKeysError, PostEphemeralKeysResponse, DeleteEphemeralKeysKeyData, DeleteEphemeralKeysKeyError, DeleteEphemeralKeysKeyResponse, GetEventsData, GetEventsError, GetEventsResponse, GetEventsIdData, GetEventsIdError, GetEventsIdResponse, GetExchangeRatesData, GetExchangeRatesError, GetExchangeRatesResponse, GetExchangeRatesRateIdData, GetExchangeRatesRateIdError, GetExchangeRatesRateIdResponse, GetFileLinksData, GetFileLinksError, GetFileLinksResponse, PostFileLinksData, PostFileLinksError, PostFileLinksResponse, GetFileLinksLinkData, GetFileLinksLinkError, GetFileLinksLinkResponse, PostFileLinksLinkData, PostFileLinksLinkError, PostFileLinksLinkResponse, GetFilesData, GetFilesError, GetFilesResponse, PostFilesData, PostFilesError, PostFilesResponse, GetFilesFileData, GetFilesFileError, GetFilesFileResponse, GetFinancialConnectionsAccountsData, GetFinancialConnectionsAccountsError, GetFinancialConnectionsAccountsResponse, GetFinancialConnectionsAccountsAccountData, GetFinancialConnectionsAccountsAccountError, GetFinancialConnectionsAccountsAccountResponse, PostFinancialConnectionsAccountsAccountDisconnectData, PostFinancialConnectionsAccountsAccountDisconnectError, PostFinancialConnectionsAccountsAccountDisconnectResponse, GetFinancialConnectionsAccountsAccountOwnersData, GetFinancialConnectionsAccountsAccountOwnersError, GetFinancialConnectionsAccountsAccountOwnersResponse, PostFinancialConnectionsAccountsAccountRefreshData, PostFinancialConnectionsAccountsAccountRefreshError, PostFinancialConnectionsAccountsAccountRefreshResponse, PostFinancialConnectionsAccountsAccountSubscribeData, PostFinancialConnectionsAccountsAccountSubscribeError, PostFinancialConnectionsAccountsAccountSubscribeResponse, PostFinancialConnectionsAccountsAccountUnsubscribeData, PostFinancialConnectionsAccountsAccountUnsubscribeError, PostFinancialConnectionsAccountsAccountUnsubscribeResponse, PostFinancialConnectionsSessionsData, PostFinancialConnectionsSessionsError, PostFinancialConnectionsSessionsResponse, GetFinancialConnectionsSessionsSessionData, GetFinancialConnectionsSessionsSessionError, GetFinancialConnectionsSessionsSessionResponse, GetFinancialConnectionsTransactionsData, GetFinancialConnectionsTransactionsError, GetFinancialConnectionsTransactionsResponse, GetFinancialConnectionsTransactionsTransactionData, GetFinancialConnectionsTransactionsTransactionError, GetFinancialConnectionsTransactionsTransactionResponse, GetForwardingRequestsData, GetForwardingRequestsError, GetForwardingRequestsResponse, PostForwardingRequestsData, PostForwardingRequestsError, PostForwardingRequestsResponse, GetForwardingRequestsIdData, GetForwardingRequestsIdError, GetForwardingRequestsIdResponse, GetIdentityVerificationReportsData, GetIdentityVerificationReportsError, GetIdentityVerificationReportsResponse, GetIdentityVerificationReportsReportData, GetIdentityVerificationReportsReportError, GetIdentityVerificationReportsReportResponse, GetIdentityVerificationSessionsData, GetIdentityVerificationSessionsError, GetIdentityVerificationSessionsResponse, PostIdentityVerificationSessionsData, PostIdentityVerificationSessionsError, PostIdentityVerificationSessionsResponse, GetIdentityVerificationSessionsSessionData, GetIdentityVerificationSessionsSessionError, GetIdentityVerificationSessionsSessionResponse, PostIdentityVerificationSessionsSessionData, PostIdentityVerificationSessionsSessionError, PostIdentityVerificationSessionsSessionResponse, PostIdentityVerificationSessionsSessionCancelData, PostIdentityVerificationSessionsSessionCancelError, PostIdentityVerificationSessionsSessionCancelResponse, PostIdentityVerificationSessionsSessionRedactData, PostIdentityVerificationSessionsSessionRedactError, PostIdentityVerificationSessionsSessionRedactResponse, GetInvoiceitemsData, GetInvoiceitemsError, GetInvoiceitemsResponse, PostInvoiceitemsData, PostInvoiceitemsError, PostInvoiceitemsResponse, DeleteInvoiceitemsInvoiceitemData, DeleteInvoiceitemsInvoiceitemError, DeleteInvoiceitemsInvoiceitemResponse, GetInvoiceitemsInvoiceitemData, GetInvoiceitemsInvoiceitemError, GetInvoiceitemsInvoiceitemResponse, PostInvoiceitemsInvoiceitemData, PostInvoiceitemsInvoiceitemError, PostInvoiceitemsInvoiceitemResponse, GetInvoicesData, GetInvoicesError, GetInvoicesResponse, PostInvoicesData, PostInvoicesError, PostInvoicesResponse, PostInvoicesCreatePreviewData, PostInvoicesCreatePreviewError, PostInvoicesCreatePreviewResponse, GetInvoicesSearchData, GetInvoicesSearchError, GetInvoicesSearchResponse, GetInvoicesUpcomingData, GetInvoicesUpcomingError, GetInvoicesUpcomingResponse, GetInvoicesUpcomingLinesData, GetInvoicesUpcomingLinesError, GetInvoicesUpcomingLinesResponse, DeleteInvoicesInvoiceData, DeleteInvoicesInvoiceError, DeleteInvoicesInvoiceResponse, GetInvoicesInvoiceData, GetInvoicesInvoiceError, GetInvoicesInvoiceResponse, PostInvoicesInvoiceData, PostInvoicesInvoiceError, PostInvoicesInvoiceResponse, PostInvoicesInvoiceFinalizeData, PostInvoicesInvoiceFinalizeError, PostInvoicesInvoiceFinalizeResponse, GetInvoicesInvoiceLinesData, GetInvoicesInvoiceLinesError, GetInvoicesInvoiceLinesResponse, PostInvoicesInvoiceLinesLineItemIdData, PostInvoicesInvoiceLinesLineItemIdError, PostInvoicesInvoiceLinesLineItemIdResponse, PostInvoicesInvoiceMarkUncollectibleData, PostInvoicesInvoiceMarkUncollectibleError, PostInvoicesInvoiceMarkUncollectibleResponse, PostInvoicesInvoicePayData, PostInvoicesInvoicePayError, PostInvoicesInvoicePayResponse, PostInvoicesInvoiceSendData, PostInvoicesInvoiceSendError, PostInvoicesInvoiceSendResponse, PostInvoicesInvoiceVoidData, PostInvoicesInvoiceVoidError, PostInvoicesInvoiceVoidResponse, GetIssuingAuthorizationsData, GetIssuingAuthorizationsError, GetIssuingAuthorizationsResponse, GetIssuingAuthorizationsAuthorizationData, GetIssuingAuthorizationsAuthorizationError, GetIssuingAuthorizationsAuthorizationResponse, PostIssuingAuthorizationsAuthorizationData, PostIssuingAuthorizationsAuthorizationError, PostIssuingAuthorizationsAuthorizationResponse, PostIssuingAuthorizationsAuthorizationApproveData, PostIssuingAuthorizationsAuthorizationApproveError, PostIssuingAuthorizationsAuthorizationApproveResponse, PostIssuingAuthorizationsAuthorizationDeclineData, PostIssuingAuthorizationsAuthorizationDeclineError, PostIssuingAuthorizationsAuthorizationDeclineResponse, GetIssuingCardholdersData, GetIssuingCardholdersError, GetIssuingCardholdersResponse, PostIssuingCardholdersData, PostIssuingCardholdersError, PostIssuingCardholdersResponse, GetIssuingCardholdersCardholderData, GetIssuingCardholdersCardholderError, GetIssuingCardholdersCardholderResponse, PostIssuingCardholdersCardholderData, PostIssuingCardholdersCardholderError, PostIssuingCardholdersCardholderResponse, GetIssuingCardsData, GetIssuingCardsError, GetIssuingCardsResponse, PostIssuingCardsData, PostIssuingCardsError, PostIssuingCardsResponse, GetIssuingCardsCardData, GetIssuingCardsCardError, GetIssuingCardsCardResponse, PostIssuingCardsCardData, PostIssuingCardsCardError, PostIssuingCardsCardResponse, GetIssuingDisputesData, GetIssuingDisputesError, GetIssuingDisputesResponse, PostIssuingDisputesData, PostIssuingDisputesError, PostIssuingDisputesResponse, GetIssuingDisputesDisputeData, GetIssuingDisputesDisputeError, GetIssuingDisputesDisputeResponse, PostIssuingDisputesDisputeData, PostIssuingDisputesDisputeError, PostIssuingDisputesDisputeResponse, PostIssuingDisputesDisputeSubmitData, PostIssuingDisputesDisputeSubmitError, PostIssuingDisputesDisputeSubmitResponse, GetIssuingPersonalizationDesignsData, GetIssuingPersonalizationDesignsError, GetIssuingPersonalizationDesignsResponse, PostIssuingPersonalizationDesignsData, PostIssuingPersonalizationDesignsError, PostIssuingPersonalizationDesignsResponse, GetIssuingPersonalizationDesignsPersonalizationDesignData, GetIssuingPersonalizationDesignsPersonalizationDesignError, GetIssuingPersonalizationDesignsPersonalizationDesignResponse, PostIssuingPersonalizationDesignsPersonalizationDesignData, PostIssuingPersonalizationDesignsPersonalizationDesignError, PostIssuingPersonalizationDesignsPersonalizationDesignResponse, GetIssuingPhysicalBundlesData, GetIssuingPhysicalBundlesError, GetIssuingPhysicalBundlesResponse, GetIssuingPhysicalBundlesPhysicalBundleData, GetIssuingPhysicalBundlesPhysicalBundleError, GetIssuingPhysicalBundlesPhysicalBundleResponse, GetIssuingSettlementsSettlementData, GetIssuingSettlementsSettlementError, GetIssuingSettlementsSettlementResponse, PostIssuingSettlementsSettlementData, PostIssuingSettlementsSettlementError, PostIssuingSettlementsSettlementResponse, GetIssuingTokensData, GetIssuingTokensError, GetIssuingTokensResponse, GetIssuingTokensTokenData, GetIssuingTokensTokenError, GetIssuingTokensTokenResponse, PostIssuingTokensTokenData, PostIssuingTokensTokenError, PostIssuingTokensTokenResponse, GetIssuingTransactionsData, GetIssuingTransactionsError, GetIssuingTransactionsResponse, GetIssuingTransactionsTransactionData, GetIssuingTransactionsTransactionError, GetIssuingTransactionsTransactionResponse, PostIssuingTransactionsTransactionData, PostIssuingTransactionsTransactionError, PostIssuingTransactionsTransactionResponse, PostLinkAccountSessionsData, PostLinkAccountSessionsError, PostLinkAccountSessionsResponse, GetLinkAccountSessionsSessionData, GetLinkAccountSessionsSessionError, GetLinkAccountSessionsSessionResponse, GetLinkedAccountsData, GetLinkedAccountsError, GetLinkedAccountsResponse, GetLinkedAccountsAccountData, GetLinkedAccountsAccountError, GetLinkedAccountsAccountResponse, PostLinkedAccountsAccountDisconnectData, PostLinkedAccountsAccountDisconnectError, PostLinkedAccountsAccountDisconnectResponse, GetLinkedAccountsAccountOwnersData, GetLinkedAccountsAccountOwnersError, GetLinkedAccountsAccountOwnersResponse, PostLinkedAccountsAccountRefreshData, PostLinkedAccountsAccountRefreshError, PostLinkedAccountsAccountRefreshResponse, GetMandatesMandateData, GetMandatesMandateError, GetMandatesMandateResponse, GetPaymentIntentsData, GetPaymentIntentsError, GetPaymentIntentsResponse, PostPaymentIntentsData, PostPaymentIntentsError, PostPaymentIntentsResponse, GetPaymentIntentsSearchData, GetPaymentIntentsSearchError, GetPaymentIntentsSearchResponse, GetPaymentIntentsIntentData, GetPaymentIntentsIntentError, GetPaymentIntentsIntentResponse, PostPaymentIntentsIntentData, PostPaymentIntentsIntentError, PostPaymentIntentsIntentResponse, PostPaymentIntentsIntentApplyCustomerBalanceData, PostPaymentIntentsIntentApplyCustomerBalanceError, PostPaymentIntentsIntentApplyCustomerBalanceResponse, PostPaymentIntentsIntentCancelData, PostPaymentIntentsIntentCancelError, PostPaymentIntentsIntentCancelResponse, PostPaymentIntentsIntentCaptureData, PostPaymentIntentsIntentCaptureError, PostPaymentIntentsIntentCaptureResponse, PostPaymentIntentsIntentConfirmData, PostPaymentIntentsIntentConfirmError, PostPaymentIntentsIntentConfirmResponse, PostPaymentIntentsIntentIncrementAuthorizationData, PostPaymentIntentsIntentIncrementAuthorizationError, PostPaymentIntentsIntentIncrementAuthorizationResponse, PostPaymentIntentsIntentVerifyMicrodepositsData, PostPaymentIntentsIntentVerifyMicrodepositsError, PostPaymentIntentsIntentVerifyMicrodepositsResponse, GetPaymentLinksData, GetPaymentLinksError, GetPaymentLinksResponse, PostPaymentLinksData, PostPaymentLinksError, PostPaymentLinksResponse, GetPaymentLinksPaymentLinkData, GetPaymentLinksPaymentLinkError, GetPaymentLinksPaymentLinkResponse, PostPaymentLinksPaymentLinkData, PostPaymentLinksPaymentLinkError, PostPaymentLinksPaymentLinkResponse, GetPaymentLinksPaymentLinkLineItemsData, GetPaymentLinksPaymentLinkLineItemsError, GetPaymentLinksPaymentLinkLineItemsResponse, GetPaymentMethodConfigurationsData, GetPaymentMethodConfigurationsError, GetPaymentMethodConfigurationsResponse, PostPaymentMethodConfigurationsData, PostPaymentMethodConfigurationsError, PostPaymentMethodConfigurationsResponse, GetPaymentMethodConfigurationsConfigurationData, GetPaymentMethodConfigurationsConfigurationError, GetPaymentMethodConfigurationsConfigurationResponse, PostPaymentMethodConfigurationsConfigurationData, PostPaymentMethodConfigurationsConfigurationError, PostPaymentMethodConfigurationsConfigurationResponse, GetPaymentMethodDomainsData, GetPaymentMethodDomainsError, GetPaymentMethodDomainsResponse, PostPaymentMethodDomainsData, PostPaymentMethodDomainsError, PostPaymentMethodDomainsResponse, GetPaymentMethodDomainsPaymentMethodDomainData, GetPaymentMethodDomainsPaymentMethodDomainError, GetPaymentMethodDomainsPaymentMethodDomainResponse, PostPaymentMethodDomainsPaymentMethodDomainData, PostPaymentMethodDomainsPaymentMethodDomainError, PostPaymentMethodDomainsPaymentMethodDomainResponse, PostPaymentMethodDomainsPaymentMethodDomainValidateData, PostPaymentMethodDomainsPaymentMethodDomainValidateError, PostPaymentMethodDomainsPaymentMethodDomainValidateResponse, GetPaymentMethodsData, GetPaymentMethodsError, GetPaymentMethodsResponse, PostPaymentMethodsData, PostPaymentMethodsError, PostPaymentMethodsResponse, GetPaymentMethodsPaymentMethodData, GetPaymentMethodsPaymentMethodError, GetPaymentMethodsPaymentMethodResponse, PostPaymentMethodsPaymentMethodData, PostPaymentMethodsPaymentMethodError, PostPaymentMethodsPaymentMethodResponse, PostPaymentMethodsPaymentMethodAttachData, PostPaymentMethodsPaymentMethodAttachError, PostPaymentMethodsPaymentMethodAttachResponse, PostPaymentMethodsPaymentMethodDetachData, PostPaymentMethodsPaymentMethodDetachError, PostPaymentMethodsPaymentMethodDetachResponse, GetPayoutsData, GetPayoutsError, GetPayoutsResponse, PostPayoutsData, PostPayoutsError, PostPayoutsResponse, GetPayoutsPayoutData, GetPayoutsPayoutError, GetPayoutsPayoutResponse, PostPayoutsPayoutData, PostPayoutsPayoutError, PostPayoutsPayoutResponse, PostPayoutsPayoutCancelData, PostPayoutsPayoutCancelError, PostPayoutsPayoutCancelResponse, PostPayoutsPayoutReverseData, PostPayoutsPayoutReverseError, PostPayoutsPayoutReverseResponse, GetPlansData, GetPlansError, GetPlansResponse, PostPlansData, PostPlansError, PostPlansResponse, DeletePlansPlanData, DeletePlansPlanError, DeletePlansPlanResponse, GetPlansPlanData, GetPlansPlanError, GetPlansPlanResponse, PostPlansPlanData, PostPlansPlanError, PostPlansPlanResponse, GetPricesData, GetPricesError, GetPricesResponse, PostPricesData, PostPricesError, PostPricesResponse, GetPricesSearchData, GetPricesSearchError, GetPricesSearchResponse, GetPricesPriceData, GetPricesPriceError, GetPricesPriceResponse, PostPricesPriceData, PostPricesPriceError, PostPricesPriceResponse, GetProductsData, GetProductsError, GetProductsResponse, PostProductsData, PostProductsError, PostProductsResponse, GetProductsSearchData, GetProductsSearchError, GetProductsSearchResponse, DeleteProductsIdData, DeleteProductsIdError, DeleteProductsIdResponse, GetProductsIdData, GetProductsIdError, GetProductsIdResponse, PostProductsIdData, PostProductsIdError, PostProductsIdResponse, GetProductsProductFeaturesData, GetProductsProductFeaturesError, GetProductsProductFeaturesResponse, PostProductsProductFeaturesData, PostProductsProductFeaturesError, PostProductsProductFeaturesResponse, DeleteProductsProductFeaturesIdData, DeleteProductsProductFeaturesIdError, DeleteProductsProductFeaturesIdResponse, GetProductsProductFeaturesIdData, GetProductsProductFeaturesIdError, GetProductsProductFeaturesIdResponse, GetPromotionCodesData, GetPromotionCodesError, GetPromotionCodesResponse, PostPromotionCodesData, PostPromotionCodesError, PostPromotionCodesResponse, GetPromotionCodesPromotionCodeData, GetPromotionCodesPromotionCodeError, GetPromotionCodesPromotionCodeResponse, PostPromotionCodesPromotionCodeData, PostPromotionCodesPromotionCodeError, PostPromotionCodesPromotionCodeResponse, GetQuotesData, GetQuotesError, GetQuotesResponse, PostQuotesData, PostQuotesError, PostQuotesResponse, GetQuotesQuoteData, GetQuotesQuoteError, GetQuotesQuoteResponse, PostQuotesQuoteData, PostQuotesQuoteError, PostQuotesQuoteResponse, PostQuotesQuoteAcceptData, PostQuotesQuoteAcceptError, PostQuotesQuoteAcceptResponse, PostQuotesQuoteCancelData, PostQuotesQuoteCancelError, PostQuotesQuoteCancelResponse, GetQuotesQuoteComputedUpfrontLineItemsData, GetQuotesQuoteComputedUpfrontLineItemsError, GetQuotesQuoteComputedUpfrontLineItemsResponse, PostQuotesQuoteFinalizeData, PostQuotesQuoteFinalizeError, PostQuotesQuoteFinalizeResponse, GetQuotesQuoteLineItemsData, GetQuotesQuoteLineItemsError, GetQuotesQuoteLineItemsResponse, GetQuotesQuotePdfData, GetQuotesQuotePdfError, GetQuotesQuotePdfResponse, GetRadarEarlyFraudWarningsData, GetRadarEarlyFraudWarningsError, GetRadarEarlyFraudWarningsResponse, GetRadarEarlyFraudWarningsEarlyFraudWarningData, GetRadarEarlyFraudWarningsEarlyFraudWarningError, GetRadarEarlyFraudWarningsEarlyFraudWarningResponse, GetRadarValueListItemsData, GetRadarValueListItemsError, GetRadarValueListItemsResponse, PostRadarValueListItemsData, PostRadarValueListItemsError, PostRadarValueListItemsResponse, DeleteRadarValueListItemsItemData, DeleteRadarValueListItemsItemError, DeleteRadarValueListItemsItemResponse, GetRadarValueListItemsItemData, GetRadarValueListItemsItemError, GetRadarValueListItemsItemResponse, GetRadarValueListsData, GetRadarValueListsError, GetRadarValueListsResponse, PostRadarValueListsData, PostRadarValueListsError, PostRadarValueListsResponse, DeleteRadarValueListsValueListData, DeleteRadarValueListsValueListError, DeleteRadarValueListsValueListResponse, GetRadarValueListsValueListData, GetRadarValueListsValueListError, GetRadarValueListsValueListResponse, PostRadarValueListsValueListData, PostRadarValueListsValueListError, PostRadarValueListsValueListResponse, GetRefundsData, GetRefundsError, GetRefundsResponse, PostRefundsData, PostRefundsError, PostRefundsResponse, GetRefundsRefundData, GetRefundsRefundError, GetRefundsRefundResponse, PostRefundsRefundData, PostRefundsRefundError, PostRefundsRefundResponse, PostRefundsRefundCancelData, PostRefundsRefundCancelError, PostRefundsRefundCancelResponse, GetReportingReportRunsData, GetReportingReportRunsError, GetReportingReportRunsResponse, PostReportingReportRunsData, PostReportingReportRunsError, PostReportingReportRunsResponse, GetReportingReportRunsReportRunData, GetReportingReportRunsReportRunError, GetReportingReportRunsReportRunResponse, GetReportingReportTypesData, GetReportingReportTypesError, GetReportingReportTypesResponse, GetReportingReportTypesReportTypeData, GetReportingReportTypesReportTypeError, GetReportingReportTypesReportTypeResponse, GetReviewsData, GetReviewsError, GetReviewsResponse, GetReviewsReviewData, GetReviewsReviewError, GetReviewsReviewResponse, PostReviewsReviewApproveData, PostReviewsReviewApproveError, PostReviewsReviewApproveResponse, GetSetupAttemptsData, GetSetupAttemptsError, GetSetupAttemptsResponse, GetSetupIntentsData, GetSetupIntentsError, GetSetupIntentsResponse, PostSetupIntentsData, PostSetupIntentsError, PostSetupIntentsResponse, GetSetupIntentsIntentData, GetSetupIntentsIntentError, GetSetupIntentsIntentResponse, PostSetupIntentsIntentData, PostSetupIntentsIntentError, PostSetupIntentsIntentResponse, PostSetupIntentsIntentCancelData, PostSetupIntentsIntentCancelError, PostSetupIntentsIntentCancelResponse, PostSetupIntentsIntentConfirmData, PostSetupIntentsIntentConfirmError, PostSetupIntentsIntentConfirmResponse, PostSetupIntentsIntentVerifyMicrodepositsData, PostSetupIntentsIntentVerifyMicrodepositsError, PostSetupIntentsIntentVerifyMicrodepositsResponse, GetShippingRatesData, GetShippingRatesError, GetShippingRatesResponse, PostShippingRatesData, PostShippingRatesError, PostShippingRatesResponse, GetShippingRatesShippingRateTokenData, GetShippingRatesShippingRateTokenError, GetShippingRatesShippingRateTokenResponse, PostShippingRatesShippingRateTokenData, PostShippingRatesShippingRateTokenError, PostShippingRatesShippingRateTokenResponse, GetSigmaScheduledQueryRunsData, GetSigmaScheduledQueryRunsError, GetSigmaScheduledQueryRunsResponse, GetSigmaScheduledQueryRunsScheduledQueryRunData, GetSigmaScheduledQueryRunsScheduledQueryRunError, GetSigmaScheduledQueryRunsScheduledQueryRunResponse, PostSourcesData, PostSourcesError, PostSourcesResponse, GetSourcesSourceData, GetSourcesSourceError, GetSourcesSourceResponse, PostSourcesSourceData, PostSourcesSourceError, PostSourcesSourceResponse, GetSourcesSourceMandateNotificationsMandateNotificationData, GetSourcesSourceMandateNotificationsMandateNotificationError, GetSourcesSourceMandateNotificationsMandateNotificationResponse, GetSourcesSourceSourceTransactionsData, GetSourcesSourceSourceTransactionsError, GetSourcesSourceSourceTransactionsResponse, GetSourcesSourceSourceTransactionsSourceTransactionData, GetSourcesSourceSourceTransactionsSourceTransactionError, GetSourcesSourceSourceTransactionsSourceTransactionResponse, PostSourcesSourceVerifyData, PostSourcesSourceVerifyError, PostSourcesSourceVerifyResponse, GetSubscriptionItemsData, GetSubscriptionItemsError, GetSubscriptionItemsResponse, PostSubscriptionItemsData, PostSubscriptionItemsError, PostSubscriptionItemsResponse, DeleteSubscriptionItemsItemData, DeleteSubscriptionItemsItemError, DeleteSubscriptionItemsItemResponse, GetSubscriptionItemsItemData, GetSubscriptionItemsItemError, GetSubscriptionItemsItemResponse, PostSubscriptionItemsItemData, PostSubscriptionItemsItemError, PostSubscriptionItemsItemResponse, GetSubscriptionItemsSubscriptionItemUsageRecordSummariesData, GetSubscriptionItemsSubscriptionItemUsageRecordSummariesError, GetSubscriptionItemsSubscriptionItemUsageRecordSummariesResponse, PostSubscriptionItemsSubscriptionItemUsageRecordsData, PostSubscriptionItemsSubscriptionItemUsageRecordsError, PostSubscriptionItemsSubscriptionItemUsageRecordsResponse, GetSubscriptionSchedulesData, GetSubscriptionSchedulesError, GetSubscriptionSchedulesResponse, PostSubscriptionSchedulesData, PostSubscriptionSchedulesError, PostSubscriptionSchedulesResponse, GetSubscriptionSchedulesScheduleData, GetSubscriptionSchedulesScheduleError, GetSubscriptionSchedulesScheduleResponse, PostSubscriptionSchedulesScheduleData, PostSubscriptionSchedulesScheduleError, PostSubscriptionSchedulesScheduleResponse, PostSubscriptionSchedulesScheduleCancelData, PostSubscriptionSchedulesScheduleCancelError, PostSubscriptionSchedulesScheduleCancelResponse, PostSubscriptionSchedulesScheduleReleaseData, PostSubscriptionSchedulesScheduleReleaseError, PostSubscriptionSchedulesScheduleReleaseResponse, GetSubscriptionsData, GetSubscriptionsError, GetSubscriptionsResponse, PostSubscriptionsData, PostSubscriptionsError, PostSubscriptionsResponse, GetSubscriptionsSearchData, GetSubscriptionsSearchError, GetSubscriptionsSearchResponse, DeleteSubscriptionsSubscriptionExposedIdData, DeleteSubscriptionsSubscriptionExposedIdError, DeleteSubscriptionsSubscriptionExposedIdResponse, GetSubscriptionsSubscriptionExposedIdData, GetSubscriptionsSubscriptionExposedIdError, GetSubscriptionsSubscriptionExposedIdResponse, PostSubscriptionsSubscriptionExposedIdData, PostSubscriptionsSubscriptionExposedIdError, PostSubscriptionsSubscriptionExposedIdResponse, DeleteSubscriptionsSubscriptionExposedIdDiscountData, DeleteSubscriptionsSubscriptionExposedIdDiscountError, DeleteSubscriptionsSubscriptionExposedIdDiscountResponse, PostSubscriptionsSubscriptionResumeData, PostSubscriptionsSubscriptionResumeError, PostSubscriptionsSubscriptionResumeResponse, PostTaxCalculationsData, PostTaxCalculationsError, PostTaxCalculationsResponse, GetTaxCalculationsCalculationLineItemsData, GetTaxCalculationsCalculationLineItemsError, GetTaxCalculationsCalculationLineItemsResponse, GetTaxRegistrationsData, GetTaxRegistrationsError, GetTaxRegistrationsResponse, PostTaxRegistrationsData, PostTaxRegistrationsError, PostTaxRegistrationsResponse, GetTaxRegistrationsIdData, GetTaxRegistrationsIdError, GetTaxRegistrationsIdResponse, PostTaxRegistrationsIdData, PostTaxRegistrationsIdError, PostTaxRegistrationsIdResponse, GetTaxSettingsData, GetTaxSettingsError, GetTaxSettingsResponse, PostTaxSettingsData, PostTaxSettingsError, PostTaxSettingsResponse, PostTaxTransactionsCreateFromCalculationData, PostTaxTransactionsCreateFromCalculationError, PostTaxTransactionsCreateFromCalculationResponse, PostTaxTransactionsCreateReversalData, PostTaxTransactionsCreateReversalError, PostTaxTransactionsCreateReversalResponse, GetTaxTransactionsTransactionData, GetTaxTransactionsTransactionError, GetTaxTransactionsTransactionResponse, GetTaxTransactionsTransactionLineItemsData, GetTaxTransactionsTransactionLineItemsError, GetTaxTransactionsTransactionLineItemsResponse, GetTaxCodesData, GetTaxCodesError, GetTaxCodesResponse, GetTaxCodesIdData, GetTaxCodesIdError, GetTaxCodesIdResponse, GetTaxIdsData, GetTaxIdsError, GetTaxIdsResponse, PostTaxIdsData, PostTaxIdsError, PostTaxIdsResponse, DeleteTaxIdsIdData, DeleteTaxIdsIdError, DeleteTaxIdsIdResponse, GetTaxIdsIdData, GetTaxIdsIdError, GetTaxIdsIdResponse, GetTaxRatesData, GetTaxRatesError, GetTaxRatesResponse, PostTaxRatesData, PostTaxRatesError, PostTaxRatesResponse, GetTaxRatesTaxRateData, GetTaxRatesTaxRateError, GetTaxRatesTaxRateResponse, PostTaxRatesTaxRateData, PostTaxRatesTaxRateError, PostTaxRatesTaxRateResponse, GetTerminalConfigurationsData, GetTerminalConfigurationsError, GetTerminalConfigurationsResponse, PostTerminalConfigurationsData, PostTerminalConfigurationsError, PostTerminalConfigurationsResponse, DeleteTerminalConfigurationsConfigurationData, DeleteTerminalConfigurationsConfigurationError, DeleteTerminalConfigurationsConfigurationResponse, GetTerminalConfigurationsConfigurationData, GetTerminalConfigurationsConfigurationError, GetTerminalConfigurationsConfigurationResponse, PostTerminalConfigurationsConfigurationData, PostTerminalConfigurationsConfigurationError, PostTerminalConfigurationsConfigurationResponse, PostTerminalConnectionTokensData, PostTerminalConnectionTokensError, PostTerminalConnectionTokensResponse, GetTerminalLocationsData, GetTerminalLocationsError, GetTerminalLocationsResponse, PostTerminalLocationsData, PostTerminalLocationsError, PostTerminalLocationsResponse, DeleteTerminalLocationsLocationData, DeleteTerminalLocationsLocationError, DeleteTerminalLocationsLocationResponse, GetTerminalLocationsLocationData, GetTerminalLocationsLocationError, GetTerminalLocationsLocationResponse, PostTerminalLocationsLocationData, PostTerminalLocationsLocationError, PostTerminalLocationsLocationResponse, GetTerminalReadersData, GetTerminalReadersError, GetTerminalReadersResponse, PostTerminalReadersData, PostTerminalReadersError, PostTerminalReadersResponse, DeleteTerminalReadersReaderData, DeleteTerminalReadersReaderError, DeleteTerminalReadersReaderResponse, GetTerminalReadersReaderData, GetTerminalReadersReaderError, GetTerminalReadersReaderResponse, PostTerminalReadersReaderData, PostTerminalReadersReaderError, PostTerminalReadersReaderResponse, PostTerminalReadersReaderCancelActionData, PostTerminalReadersReaderCancelActionError, PostTerminalReadersReaderCancelActionResponse, PostTerminalReadersReaderProcessPaymentIntentData, PostTerminalReadersReaderProcessPaymentIntentError, PostTerminalReadersReaderProcessPaymentIntentResponse, PostTerminalReadersReaderProcessSetupIntentData, PostTerminalReadersReaderProcessSetupIntentError, PostTerminalReadersReaderProcessSetupIntentResponse, PostTerminalReadersReaderRefundPaymentData, PostTerminalReadersReaderRefundPaymentError, PostTerminalReadersReaderRefundPaymentResponse, PostTerminalReadersReaderSetReaderDisplayData, PostTerminalReadersReaderSetReaderDisplayError, PostTerminalReadersReaderSetReaderDisplayResponse, PostTestHelpersConfirmationTokensData, PostTestHelpersConfirmationTokensError, PostTestHelpersConfirmationTokensResponse, PostTestHelpersCustomersCustomerFundCashBalanceData, PostTestHelpersCustomersCustomerFundCashBalanceError, PostTestHelpersCustomersCustomerFundCashBalanceResponse, PostTestHelpersIssuingAuthorizationsData, PostTestHelpersIssuingAuthorizationsError, PostTestHelpersIssuingAuthorizationsResponse, PostTestHelpersIssuingAuthorizationsAuthorizationCaptureData, PostTestHelpersIssuingAuthorizationsAuthorizationCaptureError, PostTestHelpersIssuingAuthorizationsAuthorizationCaptureResponse, PostTestHelpersIssuingAuthorizationsAuthorizationExpireData, PostTestHelpersIssuingAuthorizationsAuthorizationExpireError, PostTestHelpersIssuingAuthorizationsAuthorizationExpireResponse, PostTestHelpersIssuingAuthorizationsAuthorizationIncrementData, PostTestHelpersIssuingAuthorizationsAuthorizationIncrementError, PostTestHelpersIssuingAuthorizationsAuthorizationIncrementResponse, PostTestHelpersIssuingAuthorizationsAuthorizationReverseData, PostTestHelpersIssuingAuthorizationsAuthorizationReverseError, PostTestHelpersIssuingAuthorizationsAuthorizationReverseResponse, PostTestHelpersIssuingCardsCardShippingDeliverData, PostTestHelpersIssuingCardsCardShippingDeliverError, PostTestHelpersIssuingCardsCardShippingDeliverResponse, PostTestHelpersIssuingCardsCardShippingFailData, PostTestHelpersIssuingCardsCardShippingFailError, PostTestHelpersIssuingCardsCardShippingFailResponse, PostTestHelpersIssuingCardsCardShippingReturnData, PostTestHelpersIssuingCardsCardShippingReturnError, PostTestHelpersIssuingCardsCardShippingReturnResponse, PostTestHelpersIssuingCardsCardShippingShipData, PostTestHelpersIssuingCardsCardShippingShipError, PostTestHelpersIssuingCardsCardShippingShipResponse, PostTestHelpersIssuingPersonalizationDesignsPersonalizationDesignActivateData, PostTestHelpersIssuingPersonalizationDesignsPersonalizationDesignActivateError, PostTestHelpersIssuingPersonalizationDesignsPersonalizationDesignActivateResponse, PostTestHelpersIssuingPersonalizationDesignsPersonalizationDesignDeactivateData, PostTestHelpersIssuingPersonalizationDesignsPersonalizationDesignDeactivateError, PostTestHelpersIssuingPersonalizationDesignsPersonalizationDesignDeactivateResponse, PostTestHelpersIssuingPersonalizationDesignsPersonalizationDesignRejectData, PostTestHelpersIssuingPersonalizationDesignsPersonalizationDesignRejectError, PostTestHelpersIssuingPersonalizationDesignsPersonalizationDesignRejectResponse, PostTestHelpersIssuingTransactionsCreateForceCaptureData, PostTestHelpersIssuingTransactionsCreateForceCaptureError, PostTestHelpersIssuingTransactionsCreateForceCaptureResponse, PostTestHelpersIssuingTransactionsCreateUnlinkedRefundData, PostTestHelpersIssuingTransactionsCreateUnlinkedRefundError, PostTestHelpersIssuingTransactionsCreateUnlinkedRefundResponse, PostTestHelpersIssuingTransactionsTransactionRefundData, PostTestHelpersIssuingTransactionsTransactionRefundError, PostTestHelpersIssuingTransactionsTransactionRefundResponse, PostTestHelpersRefundsRefundExpireData, PostTestHelpersRefundsRefundExpireError, PostTestHelpersRefundsRefundExpireResponse, PostTestHelpersTerminalReadersReaderPresentPaymentMethodData, PostTestHelpersTerminalReadersReaderPresentPaymentMethodError, PostTestHelpersTerminalReadersReaderPresentPaymentMethodResponse, GetTestHelpersTestClocksData, GetTestHelpersTestClocksError, GetTestHelpersTestClocksResponse, PostTestHelpersTestClocksData, PostTestHelpersTestClocksError, PostTestHelpersTestClocksResponse, DeleteTestHelpersTestClocksTestClockData, DeleteTestHelpersTestClocksTestClockError, DeleteTestHelpersTestClocksTestClockResponse, GetTestHelpersTestClocksTestClockData, GetTestHelpersTestClocksTestClockError, GetTestHelpersTestClocksTestClockResponse, PostTestHelpersTestClocksTestClockAdvanceData, PostTestHelpersTestClocksTestClockAdvanceError, PostTestHelpersTestClocksTestClockAdvanceResponse, PostTestHelpersTreasuryInboundTransfersIdFailData, PostTestHelpersTreasuryInboundTransfersIdFailError, PostTestHelpersTreasuryInboundTransfersIdFailResponse, PostTestHelpersTreasuryInboundTransfersIdReturnData, PostTestHelpersTreasuryInboundTransfersIdReturnError, PostTestHelpersTreasuryInboundTransfersIdReturnResponse, PostTestHelpersTreasuryInboundTransfersIdSucceedData, PostTestHelpersTreasuryInboundTransfersIdSucceedError, PostTestHelpersTreasuryInboundTransfersIdSucceedResponse, PostTestHelpersTreasuryOutboundPaymentsIdData, PostTestHelpersTreasuryOutboundPaymentsIdError, PostTestHelpersTreasuryOutboundPaymentsIdResponse, PostTestHelpersTreasuryOutboundPaymentsIdFailData, PostTestHelpersTreasuryOutboundPaymentsIdFailError, PostTestHelpersTreasuryOutboundPaymentsIdFailResponse, PostTestHelpersTreasuryOutboundPaymentsIdPostData, PostTestHelpersTreasuryOutboundPaymentsIdPostError, PostTestHelpersTreasuryOutboundPaymentsIdPostResponse, PostTestHelpersTreasuryOutboundPaymentsIdReturnData, PostTestHelpersTreasuryOutboundPaymentsIdReturnError, PostTestHelpersTreasuryOutboundPaymentsIdReturnResponse, PostTestHelpersTreasuryOutboundTransfersOutboundTransferData, PostTestHelpersTreasuryOutboundTransfersOutboundTransferError, PostTestHelpersTreasuryOutboundTransfersOutboundTransferResponse, PostTestHelpersTreasuryOutboundTransfersOutboundTransferFailData, PostTestHelpersTreasuryOutboundTransfersOutboundTransferFailError, PostTestHelpersTreasuryOutboundTransfersOutboundTransferFailResponse, PostTestHelpersTreasuryOutboundTransfersOutboundTransferPostData, PostTestHelpersTreasuryOutboundTransfersOutboundTransferPostError, PostTestHelpersTreasuryOutboundTransfersOutboundTransferPostResponse, PostTestHelpersTreasuryOutboundTransfersOutboundTransferReturnData, PostTestHelpersTreasuryOutboundTransfersOutboundTransferReturnError, PostTestHelpersTreasuryOutboundTransfersOutboundTransferReturnResponse, PostTestHelpersTreasuryReceivedCreditsData, PostTestHelpersTreasuryReceivedCreditsError, PostTestHelpersTreasuryReceivedCreditsResponse, PostTestHelpersTreasuryReceivedDebitsData, PostTestHelpersTreasuryReceivedDebitsError, PostTestHelpersTreasuryReceivedDebitsResponse, PostTokensData, PostTokensError, PostTokensResponse, GetTokensTokenData, GetTokensTokenError, GetTokensTokenResponse, GetTopupsData, GetTopupsError, GetTopupsResponse, PostTopupsData, PostTopupsError, PostTopupsResponse, GetTopupsTopupData, GetTopupsTopupError, GetTopupsTopupResponse, PostTopupsTopupData, PostTopupsTopupError, PostTopupsTopupResponse, PostTopupsTopupCancelData, PostTopupsTopupCancelError, PostTopupsTopupCancelResponse, GetTransfersData, GetTransfersError, GetTransfersResponse, PostTransfersData, PostTransfersError, PostTransfersResponse, GetTransfersIdReversalsData, GetTransfersIdReversalsError, GetTransfersIdReversalsResponse, PostTransfersIdReversalsData, PostTransfersIdReversalsError, PostTransfersIdReversalsResponse, GetTransfersTransferData, GetTransfersTransferError, GetTransfersTransferResponse, PostTransfersTransferData, PostTransfersTransferError, PostTransfersTransferResponse, GetTransfersTransferReversalsIdData, GetTransfersTransferReversalsIdError, GetTransfersTransferReversalsIdResponse, PostTransfersTransferReversalsIdData, PostTransfersTransferReversalsIdError, PostTransfersTransferReversalsIdResponse, GetTreasuryCreditReversalsData, GetTreasuryCreditReversalsError, GetTreasuryCreditReversalsResponse, PostTreasuryCreditReversalsData, PostTreasuryCreditReversalsError, PostTreasuryCreditReversalsResponse, GetTreasuryCreditReversalsCreditReversalData, GetTreasuryCreditReversalsCreditReversalError, GetTreasuryCreditReversalsCreditReversalResponse, GetTreasuryDebitReversalsData, GetTreasuryDebitReversalsError, GetTreasuryDebitReversalsResponse, PostTreasuryDebitReversalsData, PostTreasuryDebitReversalsError, PostTreasuryDebitReversalsResponse, GetTreasuryDebitReversalsDebitReversalData, GetTreasuryDebitReversalsDebitReversalError, GetTreasuryDebitReversalsDebitReversalResponse, GetTreasuryFinancialAccountsData, GetTreasuryFinancialAccountsError, GetTreasuryFinancialAccountsResponse, PostTreasuryFinancialAccountsData, PostTreasuryFinancialAccountsError, PostTreasuryFinancialAccountsResponse, GetTreasuryFinancialAccountsFinancialAccountData, GetTreasuryFinancialAccountsFinancialAccountError, GetTreasuryFinancialAccountsFinancialAccountResponse, PostTreasuryFinancialAccountsFinancialAccountData, PostTreasuryFinancialAccountsFinancialAccountError, PostTreasuryFinancialAccountsFinancialAccountResponse, GetTreasuryFinancialAccountsFinancialAccountFeaturesData, GetTreasuryFinancialAccountsFinancialAccountFeaturesError, GetTreasuryFinancialAccountsFinancialAccountFeaturesResponse, PostTreasuryFinancialAccountsFinancialAccountFeaturesData, PostTreasuryFinancialAccountsFinancialAccountFeaturesError, PostTreasuryFinancialAccountsFinancialAccountFeaturesResponse, GetTreasuryInboundTransfersData, GetTreasuryInboundTransfersError, GetTreasuryInboundTransfersResponse, PostTreasuryInboundTransfersData, PostTreasuryInboundTransfersError, PostTreasuryInboundTransfersResponse, GetTreasuryInboundTransfersIdData, GetTreasuryInboundTransfersIdError, GetTreasuryInboundTransfersIdResponse, PostTreasuryInboundTransfersInboundTransferCancelData, PostTreasuryInboundTransfersInboundTransferCancelError, PostTreasuryInboundTransfersInboundTransferCancelResponse, GetTreasuryOutboundPaymentsData, GetTreasuryOutboundPaymentsError, GetTreasuryOutboundPaymentsResponse, PostTreasuryOutboundPaymentsData, PostTreasuryOutboundPaymentsError, PostTreasuryOutboundPaymentsResponse, GetTreasuryOutboundPaymentsIdData, GetTreasuryOutboundPaymentsIdError, GetTreasuryOutboundPaymentsIdResponse, PostTreasuryOutboundPaymentsIdCancelData, PostTreasuryOutboundPaymentsIdCancelError, PostTreasuryOutboundPaymentsIdCancelResponse, GetTreasuryOutboundTransfersData, GetTreasuryOutboundTransfersError, GetTreasuryOutboundTransfersResponse, PostTreasuryOutboundTransfersData, PostTreasuryOutboundTransfersError, PostTreasuryOutboundTransfersResponse, GetTreasuryOutboundTransfersOutboundTransferData, GetTreasuryOutboundTransfersOutboundTransferError, GetTreasuryOutboundTransfersOutboundTransferResponse, PostTreasuryOutboundTransfersOutboundTransferCancelData, PostTreasuryOutboundTransfersOutboundTransferCancelError, PostTreasuryOutboundTransfersOutboundTransferCancelResponse, GetTreasuryReceivedCreditsData, GetTreasuryReceivedCreditsError, GetTreasuryReceivedCreditsResponse, GetTreasuryReceivedCreditsIdData, GetTreasuryReceivedCreditsIdError, GetTreasuryReceivedCreditsIdResponse, GetTreasuryReceivedDebitsData, GetTreasuryReceivedDebitsError, GetTreasuryReceivedDebitsResponse, GetTreasuryReceivedDebitsIdData, GetTreasuryReceivedDebitsIdError, GetTreasuryReceivedDebitsIdResponse, GetTreasuryTransactionEntriesData, GetTreasuryTransactionEntriesError, GetTreasuryTransactionEntriesResponse, GetTreasuryTransactionEntriesIdData, GetTreasuryTransactionEntriesIdError, GetTreasuryTransactionEntriesIdResponse, GetTreasuryTransactionsData, GetTreasuryTransactionsError, GetTreasuryTransactionsResponse, GetTreasuryTransactionsIdData, GetTreasuryTransactionsIdError, GetTreasuryTransactionsIdResponse, GetWebhookEndpointsData, GetWebhookEndpointsError, GetWebhookEndpointsResponse, PostWebhookEndpointsData, PostWebhookEndpointsError, PostWebhookEndpointsResponse, DeleteWebhookEndpointsWebhookEndpointData, DeleteWebhookEndpointsWebhookEndpointError, DeleteWebhookEndpointsWebhookEndpointResponse, GetWebhookEndpointsWebhookEndpointData, GetWebhookEndpointsWebhookEndpointError, GetWebhookEndpointsWebhookEndpointResponse, PostWebhookEndpointsWebhookEndpointData, PostWebhookEndpointsWebhookEndpointError, PostWebhookEndpointsWebhookEndpointResponse } from './types.gen'; export const client = createClient(createConfig()); /** *

Retrieves the details of an account.

*/ export const getAccount = (options?: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/account' }); }; /** *

Creates an AccountLink object that includes a single-use Stripe URL that the platform can redirect their user to in order to take them through the Connect Onboarding flow.

*/ export const postAccountLinks = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/account_links' }); }; /** *

Creates a AccountSession object that includes a single-use token that the platform can use on their front-end to grant client-side API access.

*/ export const postAccountSessions = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/account_sessions' }); }; /** *

Returns a list of accounts connected to your platform via Connect. If you’re not a platform, the list is empty.

*/ export const getAccounts = (options?: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/accounts' }); }; /** *

With Connect, you can create Stripe accounts for your users. * To do this, you’ll first need to register your platform.

* *

If you’ve already collected information for your connected accounts, you can prefill that information when * creating the account. Connect Onboarding won’t ask for the prefilled information during account onboarding. * You can prefill any information on the account.

*/ export const postAccounts = (options?: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/accounts' }); }; /** *

With Connect, you can delete accounts you manage.

* *

Test-mode accounts can be deleted at any time.

* *

Live-mode accounts where Stripe is responsible for negative account balances cannot be deleted, which includes Standard accounts. Live-mode accounts where your platform is liable for negative account balances, which includes Custom and Express accounts, can be deleted when all balances are zero.

* *

If you want to delete your own account, use the account information tab in your account settings instead.

*/ export const deleteAccountsAccount = (options: Options) => { return (options?.client ?? client).delete({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/accounts/{account}' }); }; /** *

Retrieves the details of an account.

*/ export const getAccountsAccount = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/accounts/{account}' }); }; /** *

Updates a connected account by setting the values of the parameters passed. Any parameters not provided are * left unchanged.

* *

For accounts where controller.requirement_collection * is application, which includes Custom accounts, you can update any information on the account.

* *

For accounts where controller.requirement_collection * is stripe, which includes Standard and Express accounts, you can update all information until you create * an Account Link or Account Session to start Connect onboarding, * after which some properties can no longer be updated.

* *

To update your own account, use the Dashboard. Refer to our * Connect documentation to learn more about updating accounts.

*/ export const postAccountsAccount = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/accounts/{account}' }); }; /** *

Create an external account for a given account.

*/ export const postAccountsAccountBankAccounts = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/accounts/{account}/bank_accounts' }); }; /** *

Delete a specified external account for a given account.

*/ export const deleteAccountsAccountBankAccountsId = (options: Options) => { return (options?.client ?? client).delete({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/accounts/{account}/bank_accounts/{id}' }); }; /** *

Retrieve a specified external account for a given account.

*/ export const getAccountsAccountBankAccountsId = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/accounts/{account}/bank_accounts/{id}' }); }; /** *

Updates the metadata, account holder name, account holder type of a bank account belonging to * a connected account and optionally sets it as the default for its currency. Other bank account * details are not editable by design.

* *

You can only update bank accounts when account.controller.requirement_collection is application, which includes Custom accounts.

* *

You can re-enable a disabled bank account by performing an update call without providing any * arguments or changes.

*/ export const postAccountsAccountBankAccountsId = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/accounts/{account}/bank_accounts/{id}' }); }; /** *

Returns a list of capabilities associated with the account. The capabilities are returned sorted by creation date, with the most recent capability appearing first.

*/ export const getAccountsAccountCapabilities = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/accounts/{account}/capabilities' }); }; /** *

Retrieves information about the specified Account Capability.

*/ export const getAccountsAccountCapabilitiesCapability = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/accounts/{account}/capabilities/{capability}' }); }; /** *

Updates an existing Account Capability. Request or remove a capability by updating its requested parameter.

*/ export const postAccountsAccountCapabilitiesCapability = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/accounts/{account}/capabilities/{capability}' }); }; /** *

List external accounts for an account.

*/ export const getAccountsAccountExternalAccounts = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/accounts/{account}/external_accounts' }); }; /** *

Create an external account for a given account.

*/ export const postAccountsAccountExternalAccounts = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/accounts/{account}/external_accounts' }); }; /** *

Delete a specified external account for a given account.

*/ export const deleteAccountsAccountExternalAccountsId = (options: Options) => { return (options?.client ?? client).delete({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/accounts/{account}/external_accounts/{id}' }); }; /** *

Retrieve a specified external account for a given account.

*/ export const getAccountsAccountExternalAccountsId = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/accounts/{account}/external_accounts/{id}' }); }; /** *

Updates the metadata, account holder name, account holder type of a bank account belonging to * a connected account and optionally sets it as the default for its currency. Other bank account * details are not editable by design.

* *

You can only update bank accounts when account.controller.requirement_collection is application, which includes Custom accounts.

* *

You can re-enable a disabled bank account by performing an update call without providing any * arguments or changes.

*/ export const postAccountsAccountExternalAccountsId = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/accounts/{account}/external_accounts/{id}' }); }; /** *

Creates a single-use login link for a connected account to access the Express Dashboard.

* *

You can only create login links for accounts that use the Express Dashboard and are connected to your platform.

*/ export const postAccountsAccountLoginLinks = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/accounts/{account}/login_links' }); }; /** *

Returns a list of people associated with the account’s legal entity. The people are returned sorted by creation date, with the most recent people appearing first.

*/ export const getAccountsAccountPeople = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/accounts/{account}/people' }); }; /** *

Creates a new person.

*/ export const postAccountsAccountPeople = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/accounts/{account}/people' }); }; /** *

Deletes an existing person’s relationship to the account’s legal entity. Any person with a relationship for an account can be deleted through the API, except if the person is the account_opener. If your integration is using the executive parameter, you cannot delete the only verified executive on file.

*/ export const deleteAccountsAccountPeoplePerson = (options: Options) => { return (options?.client ?? client).delete({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/accounts/{account}/people/{person}' }); }; /** *

Retrieves an existing person.

*/ export const getAccountsAccountPeoplePerson = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/accounts/{account}/people/{person}' }); }; /** *

Updates an existing person.

*/ export const postAccountsAccountPeoplePerson = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/accounts/{account}/people/{person}' }); }; /** *

Returns a list of people associated with the account’s legal entity. The people are returned sorted by creation date, with the most recent people appearing first.

*/ export const getAccountsAccountPersons = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/accounts/{account}/persons' }); }; /** *

Creates a new person.

*/ export const postAccountsAccountPersons = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/accounts/{account}/persons' }); }; /** *

Deletes an existing person’s relationship to the account’s legal entity. Any person with a relationship for an account can be deleted through the API, except if the person is the account_opener. If your integration is using the executive parameter, you cannot delete the only verified executive on file.

*/ export const deleteAccountsAccountPersonsPerson = (options: Options) => { return (options?.client ?? client).delete({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/accounts/{account}/persons/{person}' }); }; /** *

Retrieves an existing person.

*/ export const getAccountsAccountPersonsPerson = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/accounts/{account}/persons/{person}' }); }; /** *

Updates an existing person.

*/ export const postAccountsAccountPersonsPerson = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/accounts/{account}/persons/{person}' }); }; /** *

With Connect, you can reject accounts that you have flagged as suspicious.

* *

Only accounts where your platform is liable for negative account balances, which includes Custom and Express accounts, can be rejected. Test-mode accounts can be rejected at any time. Live-mode accounts can only be rejected after all balances are zero.

*/ export const postAccountsAccountReject = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/accounts/{account}/reject' }); }; /** *

List apple pay domains.

*/ export const getApplePayDomains = (options?: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/apple_pay/domains' }); }; /** *

Create an apple pay domain.

*/ export const postApplePayDomains = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/apple_pay/domains' }); }; /** *

Delete an apple pay domain.

*/ export const deleteApplePayDomainsDomain = (options: Options) => { return (options?.client ?? client).delete({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/apple_pay/domains/{domain}' }); }; /** *

Retrieve an apple pay domain.

*/ export const getApplePayDomainsDomain = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/apple_pay/domains/{domain}' }); }; /** *

Returns a list of application fees you’ve previously collected. The application fees are returned in sorted order, with the most recent fees appearing first.

*/ export const getApplicationFees = (options?: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/application_fees' }); }; /** *

By default, you can see the 10 most recent refunds stored directly on the application fee object, but you can also retrieve details about a specific refund stored on the application fee.

*/ export const getApplicationFeesFeeRefundsId = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/application_fees/{fee}/refunds/{id}' }); }; /** *

Updates the specified application fee refund by setting the values of the parameters passed. Any parameters not provided will be left unchanged.

* *

This request only accepts metadata as an argument.

*/ export const postApplicationFeesFeeRefundsId = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/application_fees/{fee}/refunds/{id}' }); }; /** *

Retrieves the details of an application fee that your account has collected. The same information is returned when refunding the application fee.

*/ export const getApplicationFeesId = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/application_fees/{id}' }); }; export const postApplicationFeesIdRefund = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/application_fees/{id}/refund' }); }; /** *

You can see a list of the refunds belonging to a specific application fee. Note that the 10 most recent refunds are always available by default on the application fee object. If you need more than those 10, you can use this API method and the limit and starting_after parameters to page through additional refunds.

*/ export const getApplicationFeesIdRefunds = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/application_fees/{id}/refunds' }); }; /** *

Refunds an application fee that has previously been collected but not yet refunded. * Funds will be refunded to the Stripe account from which the fee was originally collected.

* *

You can optionally refund only part of an application fee. * You can do so multiple times, until the entire fee has been refunded.

* *

Once entirely refunded, an application fee can’t be refunded again. * This method will raise an error when called on an already-refunded application fee, * or when trying to refund more money than is left on an application fee.

*/ export const postApplicationFeesIdRefunds = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/application_fees/{id}/refunds' }); }; /** *

List all secrets stored on the given scope.

*/ export const getAppsSecrets = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/apps/secrets' }); }; /** *

Create or replace a secret in the secret store.

*/ export const postAppsSecrets = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/apps/secrets' }); }; /** *

Deletes a secret from the secret store by name and scope.

*/ export const postAppsSecretsDelete = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/apps/secrets/delete' }); }; /** *

Finds a secret in the secret store by name and scope.

*/ export const getAppsSecretsFind = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/apps/secrets/find' }); }; /** *

Retrieves the current account balance, based on the authentication that was used to make the request. * For a sample request, see Accounting for negative balances.

*/ export const getBalance = (options?: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/balance' }); }; /** *

Returns a list of transactions that have contributed to the Stripe account balance (e.g., charges, transfers, and so forth). The transactions are returned in sorted order, with the most recent transactions appearing first.

* *

Note that this endpoint was previously called “Balance history” and used the path /v1/balance/history.

*/ export const getBalanceHistory = (options?: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/balance/history' }); }; /** *

Retrieves the balance transaction with the given ID.

* *

Note that this endpoint previously used the path /v1/balance/history/:id.

*/ export const getBalanceHistoryId = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/balance/history/{id}' }); }; /** *

Returns a list of transactions that have contributed to the Stripe account balance (e.g., charges, transfers, and so forth). The transactions are returned in sorted order, with the most recent transactions appearing first.

* *

Note that this endpoint was previously called “Balance history” and used the path /v1/balance/history.

*/ export const getBalanceTransactions = (options?: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/balance_transactions' }); }; /** *

Retrieves the balance transaction with the given ID.

* *

Note that this endpoint previously used the path /v1/balance/history/:id.

*/ export const getBalanceTransactionsId = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/balance_transactions/{id}' }); }; /** *

Creates a billing meter event adjustment

*/ export const postBillingMeterEventAdjustments = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/billing/meter_event_adjustments' }); }; /** *

Creates a billing meter event

*/ export const postBillingMeterEvents = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/billing/meter_events' }); }; /** *

Retrieve a list of billing meters.

*/ export const getBillingMeters = (options?: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/billing/meters' }); }; /** *

Creates a billing meter

*/ export const postBillingMeters = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/billing/meters' }); }; /** *

Retrieves a billing meter given an ID

*/ export const getBillingMetersId = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/billing/meters/{id}' }); }; /** *

Updates a billing meter

*/ export const postBillingMetersId = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/billing/meters/{id}' }); }; /** *

Deactivates a billing meter

*/ export const postBillingMetersIdDeactivate = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/billing/meters/{id}/deactivate' }); }; /** *

Retrieve a list of billing meter event summaries.

*/ export const getBillingMetersIdEventSummaries = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/billing/meters/{id}/event_summaries' }); }; /** *

Reactivates a billing meter

*/ export const postBillingMetersIdReactivate = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/billing/meters/{id}/reactivate' }); }; /** *

Returns a list of configurations that describe the functionality of the customer portal.

*/ export const getBillingPortalConfigurations = (options?: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/billing_portal/configurations' }); }; /** *

Creates a configuration that describes the functionality and behavior of a PortalSession

*/ export const postBillingPortalConfigurations = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/billing_portal/configurations' }); }; /** *

Retrieves a configuration that describes the functionality of the customer portal.

*/ export const getBillingPortalConfigurationsConfiguration = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/billing_portal/configurations/{configuration}' }); }; /** *

Updates a configuration that describes the functionality of the customer portal.

*/ export const postBillingPortalConfigurationsConfiguration = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/billing_portal/configurations/{configuration}' }); }; /** *

Creates a session of the customer portal.

*/ export const postBillingPortalSessions = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/billing_portal/sessions' }); }; /** *

Returns a list of charges you’ve previously created. The charges are returned in sorted order, with the most recent charges appearing first.

*/ export const getCharges = (options?: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/charges' }); }; /** *

This method is no longer recommended—use the Payment Intents API * to initiate a new payment instead. Confirmation of the PaymentIntent creates the Charge * object used to request payment.

*/ export const postCharges = (options?: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/charges' }); }; /** *

Search for charges you’ve previously created using Stripe’s Search Query Language. * Don’t use search in read-after-write flows where strict consistency is necessary. Under normal operating * conditions, data is searchable in less than a minute. Occasionally, propagation of new or updated data can be up * to an hour behind during outages. Search functionality is not available to merchants in India.

*/ export const getChargesSearch = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/charges/search' }); }; /** *

Retrieves the details of a charge that has previously been created. Supply the unique charge ID that was returned from your previous request, and Stripe will return the corresponding charge information. The same information is returned when creating or refunding the charge.

*/ export const getChargesCharge = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/charges/{charge}' }); }; /** *

Updates the specified charge by setting the values of the parameters passed. Any parameters not provided will be left unchanged.

*/ export const postChargesCharge = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/charges/{charge}' }); }; /** *

Capture the payment of an existing, uncaptured charge that was created with the capture option set to false.

* *

Uncaptured payments expire a set number of days after they are created (7 by default), after which they are marked as refunded and capture attempts will fail.

* *

Don’t use this method to capture a PaymentIntent-initiated charge. Use Capture a PaymentIntent.

*/ export const postChargesChargeCapture = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/charges/{charge}/capture' }); }; /** *

Retrieve a dispute for a specified charge.

*/ export const getChargesChargeDispute = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/charges/{charge}/dispute' }); }; export const postChargesChargeDispute = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/charges/{charge}/dispute' }); }; export const postChargesChargeDisputeClose = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/charges/{charge}/dispute/close' }); }; /** *

When you create a new refund, you must specify either a Charge or a PaymentIntent object.

* *

This action refunds a previously created charge that’s not refunded yet. * Funds are refunded to the credit or debit card that’s originally charged.

* *

You can optionally refund only part of a charge. * You can repeat this until the entire charge is refunded.

* *

After you entirely refund a charge, you can’t refund it again. * This method raises an error when it’s called on an already-refunded charge, * or when you attempt to refund more money than is left on a charge.

*/ export const postChargesChargeRefund = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/charges/{charge}/refund' }); }; /** *

You can see a list of the refunds belonging to a specific charge. Note that the 10 most recent refunds are always available by default on the charge object. If you need more than those 10, you can use this API method and the limit and starting_after parameters to page through additional refunds.

*/ export const getChargesChargeRefunds = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/charges/{charge}/refunds' }); }; /** *

When you create a new refund, you must specify a Charge or a PaymentIntent object on which to create it.

* *

Creating a new refund will refund a charge that has previously been created but not yet refunded. * Funds will be refunded to the credit or debit card that was originally charged.

* *

You can optionally refund only part of a charge. * You can do so multiple times, until the entire charge has been refunded.

* *

Once entirely refunded, a charge can’t be refunded again. * This method will raise an error when called on an already-refunded charge, * or when trying to refund more money than is left on a charge.

*/ export const postChargesChargeRefunds = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/charges/{charge}/refunds' }); }; /** *

Retrieves the details of an existing refund.

*/ export const getChargesChargeRefundsRefund = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/charges/{charge}/refunds/{refund}' }); }; /** *

Update a specified refund.

*/ export const postChargesChargeRefundsRefund = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/charges/{charge}/refunds/{refund}' }); }; /** *

Returns a list of Checkout Sessions.

*/ export const getCheckoutSessions = (options?: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/checkout/sessions' }); }; /** *

Creates a Session object.

*/ export const postCheckoutSessions = (options?: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/checkout/sessions' }); }; /** *

Retrieves a Session object.

*/ export const getCheckoutSessionsSession = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/checkout/sessions/{session}' }); }; /** *

A Session can be expired when it is in one of these statuses: open

* *

After it expires, a customer can’t complete a Session and customers loading the Session see a message saying the Session is expired.

*/ export const postCheckoutSessionsSessionExpire = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/checkout/sessions/{session}/expire' }); }; /** *

When retrieving a Checkout Session, there is an includable line_items property containing the first handful of those items. There is also a URL where you can retrieve the full (paginated) list of line items.

*/ export const getCheckoutSessionsSessionLineItems = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/checkout/sessions/{session}/line_items' }); }; /** *

Lists all Climate order objects. The orders are returned sorted by creation date, with the * most recently created orders appearing first.

*/ export const getClimateOrders = (options?: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/climate/orders' }); }; /** *

Creates a Climate order object for a given Climate product. The order will be processed immediately * after creation and payment will be deducted your Stripe balance.

*/ export const postClimateOrders = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/climate/orders' }); }; /** *

Retrieves the details of a Climate order object with the given ID.

*/ export const getClimateOrdersOrder = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/climate/orders/{order}' }); }; /** *

Updates the specified order by setting the values of the parameters passed.

*/ export const postClimateOrdersOrder = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/climate/orders/{order}' }); }; /** *

Cancels a Climate order. You can cancel an order within 24 hours of creation. Stripe refunds the * reservation amount_subtotal, but not the amount_fees for user-triggered cancellations. Frontier * might cancel reservations if suppliers fail to deliver. If Frontier cancels the reservation, Stripe * provides 90 days advance notice and refunds the amount_total.

*/ export const postClimateOrdersOrderCancel = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/climate/orders/{order}/cancel' }); }; /** *

Lists all available Climate product objects.

*/ export const getClimateProducts = (options?: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/climate/products' }); }; /** *

Retrieves the details of a Climate product with the given ID.

*/ export const getClimateProductsProduct = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/climate/products/{product}' }); }; /** *

Lists all available Climate supplier objects.

*/ export const getClimateSuppliers = (options?: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/climate/suppliers' }); }; /** *

Retrieves a Climate supplier object.

*/ export const getClimateSuppliersSupplier = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/climate/suppliers/{supplier}' }); }; /** *

Retrieves an existing ConfirmationToken object

*/ export const getConfirmationTokensConfirmationToken = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/confirmation_tokens/{confirmation_token}' }); }; /** *

Lists all Country Spec objects available in the API.

*/ export const getCountrySpecs = (options?: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/country_specs' }); }; /** *

Returns a Country Spec for a given Country code.

*/ export const getCountrySpecsCountry = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/country_specs/{country}' }); }; /** *

Returns a list of your coupons.

*/ export const getCoupons = (options?: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/coupons' }); }; /** *

You can create coupons easily via the coupon management page of the Stripe dashboard. Coupon creation is also accessible via the API if you need to create coupons on the fly.

* *

A coupon has either a percent_off or an amount_off and currency. If you set an amount_off, that amount will be subtracted from any invoice’s subtotal. For example, an invoice with a subtotal of 100 will have a final total of 0 if a coupon with an amount_off of 200 is applied to it and an invoice with a subtotal of 300 will have a final total of 100 if a coupon with an amount_off of 200 is applied to it.

*/ export const postCoupons = (options?: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/coupons' }); }; /** *

You can delete coupons via the coupon management page of the Stripe dashboard. However, deleting a coupon does not affect any customers who have already applied the coupon; it means that new customers can’t redeem the coupon. You can also delete coupons via the API.

*/ export const deleteCouponsCoupon = (options: Options) => { return (options?.client ?? client).delete({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/coupons/{coupon}' }); }; /** *

Retrieves the coupon with the given ID.

*/ export const getCouponsCoupon = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/coupons/{coupon}' }); }; /** *

Updates the metadata of a coupon. Other coupon details (currency, duration, amount_off) are, by design, not editable.

*/ export const postCouponsCoupon = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/coupons/{coupon}' }); }; /** *

Returns a list of credit notes.

*/ export const getCreditNotes = (options?: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/credit_notes' }); }; /** *

Issue a credit note to adjust the amount of a finalized invoice. For a status=open invoice, a credit note reduces * its amount_due. For a status=paid invoice, a credit note does not affect its amount_due. Instead, it can result * in any combination of the following:

* *
    *
  • Refund: create a new refund (using refund_amount) or link an existing refund (using refund).
  • *
  • Customer balance credit: credit the customer’s balance (using credit_amount) which will be automatically applied to their next invoice when it’s finalized.
  • *
  • Outside of Stripe credit: record the amount that is or will be credited outside of Stripe (using out_of_band_amount).
  • *
* *

For post-payment credit notes the sum of the refund, credit and outside of Stripe amounts must equal the credit note total.

* *

You may issue multiple credit notes for an invoice. Each credit note will increment the invoice’s pre_payment_credit_notes_amount * or post_payment_credit_notes_amount depending on its status at the time of credit note creation.

*/ export const postCreditNotes = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/credit_notes' }); }; /** *

Get a preview of a credit note without creating it.

*/ export const getCreditNotesPreview = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/credit_notes/preview' }); }; /** *

When retrieving a credit note preview, you’ll get a lines property containing the first handful of those items. This URL you can retrieve the full (paginated) list of line items.

*/ export const getCreditNotesPreviewLines = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/credit_notes/preview/lines' }); }; /** *

When retrieving a credit note, you’ll get a lines property containing the first handful of those items. There is also a URL where you can retrieve the full (paginated) list of line items.

*/ export const getCreditNotesCreditNoteLines = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/credit_notes/{credit_note}/lines' }); }; /** *

Retrieves the credit note object with the given identifier.

*/ export const getCreditNotesId = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/credit_notes/{id}' }); }; /** *

Updates an existing credit note.

*/ export const postCreditNotesId = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/credit_notes/{id}' }); }; /** *

Marks a credit note as void. Learn more about voiding credit notes.

*/ export const postCreditNotesIdVoid = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/credit_notes/{id}/void' }); }; /** *

Creates a customer session object that includes a single-use client secret that you can use on your front-end to grant client-side API access for certain customer resources.

*/ export const postCustomerSessions = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/customer_sessions' }); }; /** *

Returns a list of your customers. The customers are returned sorted by creation date, with the most recent customers appearing first.

*/ export const getCustomers = (options?: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/customers' }); }; /** *

Creates a new customer object.

*/ export const postCustomers = (options?: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/customers' }); }; /** *

Search for customers you’ve previously created using Stripe’s Search Query Language. * Don’t use search in read-after-write flows where strict consistency is necessary. Under normal operating * conditions, data is searchable in less than a minute. Occasionally, propagation of new or updated data can be up * to an hour behind during outages. Search functionality is not available to merchants in India.

*/ export const getCustomersSearch = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/customers/search' }); }; /** *

Permanently deletes a customer. It cannot be undone. Also immediately cancels any active subscriptions on the customer.

*/ export const deleteCustomersCustomer = (options: Options) => { return (options?.client ?? client).delete({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/customers/{customer}' }); }; /** *

Retrieves a Customer object.

*/ export const getCustomersCustomer = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/customers/{customer}' }); }; /** *

Updates the specified customer by setting the values of the parameters passed. Any parameters not provided will be left unchanged. For example, if you pass the source parameter, that becomes the customer’s active source (e.g., a card) to be used for all charges in the future. When you update a customer to a new valid card source by passing the source parameter: for each of the customer’s current subscriptions, if the subscription bills automatically and is in the past_due state, then the latest open invoice for the subscription with automatic collection enabled will be retried. This retry will not count as an automatic retry, and will not affect the next regularly scheduled payment for the invoice. Changing the default_source for a customer will not trigger this behavior.

* *

This request accepts mostly the same arguments as the customer creation call.

*/ export const postCustomersCustomer = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/customers/{customer}' }); }; /** *

Returns a list of transactions that updated the customer’s balances.

*/ export const getCustomersCustomerBalanceTransactions = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/customers/{customer}/balance_transactions' }); }; /** *

Creates an immutable transaction that updates the customer’s credit balance.

*/ export const postCustomersCustomerBalanceTransactions = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/customers/{customer}/balance_transactions' }); }; /** *

Retrieves a specific customer balance transaction that updated the customer’s balances.

*/ export const getCustomersCustomerBalanceTransactionsTransaction = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/customers/{customer}/balance_transactions/{transaction}' }); }; /** *

Most credit balance transaction fields are immutable, but you may update its description and metadata.

*/ export const postCustomersCustomerBalanceTransactionsTransaction = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/customers/{customer}/balance_transactions/{transaction}' }); }; /** * @deprecated *

You can see a list of the bank accounts belonging to a Customer. Note that the 10 most recent sources are always available by default on the Customer. If you need more than those 10, you can use this API method and the limit and starting_after parameters to page through additional bank accounts.

*/ export const getCustomersCustomerBankAccounts = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/customers/{customer}/bank_accounts' }); }; /** *

When you create a new credit card, you must specify a customer or recipient on which to create it.

* *

If the card’s owner has no default card, then the new card will become the default. * However, if the owner already has a default, then it will not change. * To change the default, you should update the customer to have a new default_source.

*/ export const postCustomersCustomerBankAccounts = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/customers/{customer}/bank_accounts' }); }; /** *

Delete a specified source for a given customer.

*/ export const deleteCustomersCustomerBankAccountsId = (options: Options) => { return (options?.client ?? client).delete({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/customers/{customer}/bank_accounts/{id}' }); }; /** * @deprecated *

By default, you can see the 10 most recent sources stored on a Customer directly on the object, but you can also retrieve details about a specific bank account stored on the Stripe account.

*/ export const getCustomersCustomerBankAccountsId = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/customers/{customer}/bank_accounts/{id}' }); }; /** *

Update a specified source for a given customer.

*/ export const postCustomersCustomerBankAccountsId = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/customers/{customer}/bank_accounts/{id}' }); }; /** *

Verify a specified bank account for a given customer.

*/ export const postCustomersCustomerBankAccountsIdVerify = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/customers/{customer}/bank_accounts/{id}/verify' }); }; /** * @deprecated *

You can see a list of the cards belonging to a customer. * Note that the 10 most recent sources are always available on the Customer object. * If you need more than those 10, you can use this API method and the limit and starting_after parameters to page through additional cards.

*/ export const getCustomersCustomerCards = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/customers/{customer}/cards' }); }; /** *

When you create a new credit card, you must specify a customer or recipient on which to create it.

* *

If the card’s owner has no default card, then the new card will become the default. * However, if the owner already has a default, then it will not change. * To change the default, you should update the customer to have a new default_source.

*/ export const postCustomersCustomerCards = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/customers/{customer}/cards' }); }; /** *

Delete a specified source for a given customer.

*/ export const deleteCustomersCustomerCardsId = (options: Options) => { return (options?.client ?? client).delete({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/customers/{customer}/cards/{id}' }); }; /** * @deprecated *

You can always see the 10 most recent cards directly on a customer; this method lets you retrieve details about a specific card stored on the customer.

*/ export const getCustomersCustomerCardsId = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/customers/{customer}/cards/{id}' }); }; /** *

Update a specified source for a given customer.

*/ export const postCustomersCustomerCardsId = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/customers/{customer}/cards/{id}' }); }; /** *

Retrieves a customer’s cash balance.

*/ export const getCustomersCustomerCashBalance = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/customers/{customer}/cash_balance' }); }; /** *

Changes the settings on a customer’s cash balance.

*/ export const postCustomersCustomerCashBalance = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/customers/{customer}/cash_balance' }); }; /** *

Returns a list of transactions that modified the customer’s cash balance.

*/ export const getCustomersCustomerCashBalanceTransactions = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/customers/{customer}/cash_balance_transactions' }); }; /** *

Retrieves a specific cash balance transaction, which updated the customer’s cash balance.

*/ export const getCustomersCustomerCashBalanceTransactionsTransaction = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/customers/{customer}/cash_balance_transactions/{transaction}' }); }; /** *

Removes the currently applied discount on a customer.

*/ export const deleteCustomersCustomerDiscount = (options: Options) => { return (options?.client ?? client).delete({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/customers/{customer}/discount' }); }; export const getCustomersCustomerDiscount = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/customers/{customer}/discount' }); }; /** *

Retrieve funding instructions for a customer cash balance. If funding instructions do not yet exist for the customer, new * funding instructions will be created. If funding instructions have already been created for a given customer, the same * funding instructions will be retrieved. In other words, we will return the same funding instructions each time.

*/ export const postCustomersCustomerFundingInstructions = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/customers/{customer}/funding_instructions' }); }; /** *

Returns a list of PaymentMethods for a given Customer

*/ export const getCustomersCustomerPaymentMethods = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/customers/{customer}/payment_methods' }); }; /** *

Retrieves a PaymentMethod object for a given Customer.

*/ export const getCustomersCustomerPaymentMethodsPaymentMethod = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/customers/{customer}/payment_methods/{payment_method}' }); }; /** *

List sources for a specified customer.

*/ export const getCustomersCustomerSources = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/customers/{customer}/sources' }); }; /** *

When you create a new credit card, you must specify a customer or recipient on which to create it.

* *

If the card’s owner has no default card, then the new card will become the default. * However, if the owner already has a default, then it will not change. * To change the default, you should update the customer to have a new default_source.

*/ export const postCustomersCustomerSources = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/customers/{customer}/sources' }); }; /** *

Delete a specified source for a given customer.

*/ export const deleteCustomersCustomerSourcesId = (options: Options) => { return (options?.client ?? client).delete({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/customers/{customer}/sources/{id}' }); }; /** *

Retrieve a specified source for a given customer.

*/ export const getCustomersCustomerSourcesId = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/customers/{customer}/sources/{id}' }); }; /** *

Update a specified source for a given customer.

*/ export const postCustomersCustomerSourcesId = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/customers/{customer}/sources/{id}' }); }; /** *

Verify a specified bank account for a given customer.

*/ export const postCustomersCustomerSourcesIdVerify = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/customers/{customer}/sources/{id}/verify' }); }; /** *

You can see a list of the customer’s active subscriptions. Note that the 10 most recent active subscriptions are always available by default on the customer object. If you need more than those 10, you can use the limit and starting_after parameters to page through additional subscriptions.

*/ export const getCustomersCustomerSubscriptions = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/customers/{customer}/subscriptions' }); }; /** *

Creates a new subscription on an existing customer.

*/ export const postCustomersCustomerSubscriptions = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/customers/{customer}/subscriptions' }); }; /** *

Cancels a customer’s subscription. If you set the at_period_end parameter to true, the subscription will remain active until the end of the period, at which point it will be canceled and not renewed. Otherwise, with the default false value, the subscription is terminated immediately. In either case, the customer will not be charged again for the subscription.

* *

Note, however, that any pending invoice items that you’ve created will still be charged for at the end of the period, unless manually deleted. If you’ve set the subscription to cancel at the end of the period, any pending prorations will also be left in place and collected at the end of the period. But if the subscription is set to cancel immediately, pending prorations will be removed.

* *

By default, upon subscription cancellation, Stripe will stop automatic collection of all finalized invoices for the customer. This is intended to prevent unexpected payment attempts after the customer has canceled a subscription. However, you can resume automatic collection of the invoices manually after subscription cancellation to have us proceed. Or, you could check for unpaid invoices before allowing the customer to cancel the subscription at all.

*/ export const deleteCustomersCustomerSubscriptionsSubscriptionExposedId = (options: Options) => { return (options?.client ?? client).delete({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/customers/{customer}/subscriptions/{subscription_exposed_id}' }); }; /** *

Retrieves the subscription with the given ID.

*/ export const getCustomersCustomerSubscriptionsSubscriptionExposedId = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/customers/{customer}/subscriptions/{subscription_exposed_id}' }); }; /** *

Updates an existing subscription on a customer to match the specified parameters. When changing plans or quantities, we will optionally prorate the price we charge next month to make up for any price changes. To preview how the proration will be calculated, use the upcoming invoice endpoint.

*/ export const postCustomersCustomerSubscriptionsSubscriptionExposedId = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/customers/{customer}/subscriptions/{subscription_exposed_id}' }); }; /** *

Removes the currently applied discount on a customer.

*/ export const deleteCustomersCustomerSubscriptionsSubscriptionExposedIdDiscount = (options: Options) => { return (options?.client ?? client).delete({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/customers/{customer}/subscriptions/{subscription_exposed_id}/discount' }); }; export const getCustomersCustomerSubscriptionsSubscriptionExposedIdDiscount = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/customers/{customer}/subscriptions/{subscription_exposed_id}/discount' }); }; /** *

Returns a list of tax IDs for a customer.

*/ export const getCustomersCustomerTaxIds = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/customers/{customer}/tax_ids' }); }; /** *

Creates a new tax_id object for a customer.

*/ export const postCustomersCustomerTaxIds = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/customers/{customer}/tax_ids' }); }; /** *

Deletes an existing tax_id object.

*/ export const deleteCustomersCustomerTaxIdsId = (options: Options) => { return (options?.client ?? client).delete({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/customers/{customer}/tax_ids/{id}' }); }; /** *

Retrieves the tax_id object with the given identifier.

*/ export const getCustomersCustomerTaxIdsId = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/customers/{customer}/tax_ids/{id}' }); }; /** *

Returns a list of your disputes.

*/ export const getDisputes = (options?: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/disputes' }); }; /** *

Retrieves the dispute with the given ID.

*/ export const getDisputesDispute = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/disputes/{dispute}' }); }; /** *

When you get a dispute, contacting your customer is always the best first step. If that doesn’t work, you can submit evidence to help us resolve the dispute in your favor. You can do this in your dashboard, but if you prefer, you can use the API to submit evidence programmatically.

* *

Depending on your dispute type, different evidence fields will give you a better chance of winning your dispute. To figure out which evidence fields to provide, see our guide to dispute types.

*/ export const postDisputesDispute = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/disputes/{dispute}' }); }; /** *

Closing the dispute for a charge indicates that you do not have any evidence to submit and are essentially dismissing the dispute, acknowledging it as lost.

* *

The status of the dispute will change from needs_response to lost. Closing a dispute is irreversible.

*/ export const postDisputesDisputeClose = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/disputes/{dispute}/close' }); }; /** *

Retrieve a list of active entitlements for a customer

*/ export const getEntitlementsActiveEntitlements = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/entitlements/active_entitlements' }); }; /** *

Retrieve an active entitlement

*/ export const getEntitlementsActiveEntitlementsId = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/entitlements/active_entitlements/{id}' }); }; /** *

Retrieve a list of features

*/ export const getEntitlementsFeatures = (options?: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/entitlements/features' }); }; /** *

Creates a feature

*/ export const postEntitlementsFeatures = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/entitlements/features' }); }; /** *

Retrieves a feature

*/ export const getEntitlementsFeaturesId = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/entitlements/features/{id}' }); }; /** *

Update a feature’s metadata or permanently deactivate it.

*/ export const postEntitlementsFeaturesId = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/entitlements/features/{id}' }); }; /** *

Creates a short-lived API key for a given resource.

*/ export const postEphemeralKeys = (options?: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/ephemeral_keys' }); }; /** *

Invalidates a short-lived API key for a given resource.

*/ export const deleteEphemeralKeysKey = (options: Options) => { return (options?.client ?? client).delete({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/ephemeral_keys/{key}' }); }; /** *

List events, going back up to 30 days. Each event data is rendered according to Stripe API version at its creation time, specified in event object api_version attribute (not according to your current Stripe API version or Stripe-Version header).

*/ export const getEvents = (options?: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/events' }); }; /** *

Retrieves the details of an event. Supply the unique identifier of the event, which you might have received in a webhook.

*/ export const getEventsId = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/events/{id}' }); }; /** *

Returns a list of objects that contain the rates at which foreign currencies are converted to one another. Only shows the currencies for which Stripe supports.

*/ export const getExchangeRates = (options?: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/exchange_rates' }); }; /** *

Retrieves the exchange rates from the given currency to every supported currency.

*/ export const getExchangeRatesRateId = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/exchange_rates/{rate_id}' }); }; /** *

Returns a list of file links.

*/ export const getFileLinks = (options?: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/file_links' }); }; /** *

Creates a new file link object.

*/ export const postFileLinks = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/file_links' }); }; /** *

Retrieves the file link with the given ID.

*/ export const getFileLinksLink = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/file_links/{link}' }); }; /** *

Updates an existing file link object. Expired links can no longer be updated.

*/ export const postFileLinksLink = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/file_links/{link}' }); }; /** *

Returns a list of the files that your account has access to. Stripe sorts and returns the files by their creation dates, placing the most recently created files at the top.

*/ export const getFiles = (options?: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/files' }); }; /** *

To upload a file to Stripe, you need to send a request of type multipart/form-data. Include the file you want to upload in the request, and the parameters for creating a file.

* *

All of Stripe’s officially supported Client libraries support sending multipart/form-data.

*/ export const postFiles = (options: Options) => { return (options?.client ?? client).post({ ...options, ...formDataBodySerializer, headers: { 'Content-Type': null, ...options?.headers }, url: '/v1/files' }); }; /** *

Retrieves the details of an existing file object. After you supply a unique file ID, Stripe returns the corresponding file object. Learn how to access file contents.

*/ export const getFilesFile = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/files/{file}' }); }; /** *

Returns a list of Financial Connections Account objects.

*/ export const getFinancialConnectionsAccounts = (options?: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/financial_connections/accounts' }); }; /** *

Retrieves the details of an Financial Connections Account.

*/ export const getFinancialConnectionsAccountsAccount = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/financial_connections/accounts/{account}' }); }; /** *

Disables your access to a Financial Connections Account. You will no longer be able to access data associated with the account (e.g. balances, transactions).

*/ export const postFinancialConnectionsAccountsAccountDisconnect = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/financial_connections/accounts/{account}/disconnect' }); }; /** *

Lists all owners for a given Account

*/ export const getFinancialConnectionsAccountsAccountOwners = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/financial_connections/accounts/{account}/owners' }); }; /** *

Refreshes the data associated with a Financial Connections Account.

*/ export const postFinancialConnectionsAccountsAccountRefresh = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/financial_connections/accounts/{account}/refresh' }); }; /** *

Subscribes to periodic refreshes of data associated with a Financial Connections Account.

*/ export const postFinancialConnectionsAccountsAccountSubscribe = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/financial_connections/accounts/{account}/subscribe' }); }; /** *

Unsubscribes from periodic refreshes of data associated with a Financial Connections Account.

*/ export const postFinancialConnectionsAccountsAccountUnsubscribe = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/financial_connections/accounts/{account}/unsubscribe' }); }; /** *

To launch the Financial Connections authorization flow, create a Session. The session’s client_secret can be used to launch the flow using Stripe.js.

*/ export const postFinancialConnectionsSessions = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/financial_connections/sessions' }); }; /** *

Retrieves the details of a Financial Connections Session

*/ export const getFinancialConnectionsSessionsSession = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/financial_connections/sessions/{session}' }); }; /** *

Returns a list of Financial Connections Transaction objects.

*/ export const getFinancialConnectionsTransactions = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/financial_connections/transactions' }); }; /** *

Retrieves the details of a Financial Connections Transaction

*/ export const getFinancialConnectionsTransactionsTransaction = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/financial_connections/transactions/{transaction}' }); }; /** *

Lists all ForwardingRequest objects.

*/ export const getForwardingRequests = (options?: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/forwarding/requests' }); }; /** *

Creates a ForwardingRequest object.

*/ export const postForwardingRequests = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/forwarding/requests' }); }; /** *

Retrieves a ForwardingRequest object.

*/ export const getForwardingRequestsId = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/forwarding/requests/{id}' }); }; /** *

List all verification reports.

*/ export const getIdentityVerificationReports = (options?: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/identity/verification_reports' }); }; /** *

Retrieves an existing VerificationReport

*/ export const getIdentityVerificationReportsReport = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/identity/verification_reports/{report}' }); }; /** *

Returns a list of VerificationSessions

*/ export const getIdentityVerificationSessions = (options?: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/identity/verification_sessions' }); }; /** *

Creates a VerificationSession object.

* *

After the VerificationSession is created, display a verification modal using the session client_secret or send your users to the session’s url.

* *

If your API key is in test mode, verification checks won’t actually process, though everything else will occur as if in live mode.

* *

Related guide: Verify your users’ identity documents

*/ export const postIdentityVerificationSessions = (options?: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/identity/verification_sessions' }); }; /** *

Retrieves the details of a VerificationSession that was previously created.

* *

When the session status is requires_input, you can use this method to retrieve a valid * client_secret or url to allow re-submission.

*/ export const getIdentityVerificationSessionsSession = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/identity/verification_sessions/{session}' }); }; /** *

Updates a VerificationSession object.

* *

When the session status is requires_input, you can use this method to update the * verification check and options.

*/ export const postIdentityVerificationSessionsSession = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/identity/verification_sessions/{session}' }); }; /** *

A VerificationSession object can be canceled when it is in requires_input status.

* *

Once canceled, future submission attempts are disabled. This cannot be undone. Learn more.

*/ export const postIdentityVerificationSessionsSessionCancel = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/identity/verification_sessions/{session}/cancel' }); }; /** *

Redact a VerificationSession to remove all collected information from Stripe. This will redact * the VerificationSession and all objects related to it, including VerificationReports, Events, * request logs, etc.

* *

A VerificationSession object can be redacted when it is in requires_input or verified * status. Redacting a VerificationSession in requires_action * state will automatically cancel it.

* *

The redaction process may take up to four days. When the redaction process is in progress, the * VerificationSession’s redaction.status field will be set to processing; when the process is * finished, it will change to redacted and an identity.verification_session.redacted event * will be emitted.

* *

Redaction is irreversible. Redacted objects are still accessible in the Stripe API, but all the * fields that contain personal data will be replaced by the string [redacted] or a similar * placeholder. The metadata field will also be erased. Redacted objects cannot be updated or * used for any purpose.

* *

Learn more.

*/ export const postIdentityVerificationSessionsSessionRedact = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/identity/verification_sessions/{session}/redact' }); }; /** *

Returns a list of your invoice items. Invoice items are returned sorted by creation date, with the most recently created invoice items appearing first.

*/ export const getInvoiceitems = (options?: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/invoiceitems' }); }; /** *

Creates an item to be added to a draft invoice (up to 250 items per invoice). If no invoice is specified, the item will be on the next invoice created for the customer specified.

*/ export const postInvoiceitems = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/invoiceitems' }); }; /** *

Deletes an invoice item, removing it from an invoice. Deleting invoice items is only possible when they’re not attached to invoices, or if it’s attached to a draft invoice.

*/ export const deleteInvoiceitemsInvoiceitem = (options: Options) => { return (options?.client ?? client).delete({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/invoiceitems/{invoiceitem}' }); }; /** *

Retrieves the invoice item with the given ID.

*/ export const getInvoiceitemsInvoiceitem = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/invoiceitems/{invoiceitem}' }); }; /** *

Updates the amount or description of an invoice item on an upcoming invoice. Updating an invoice item is only possible before the invoice it’s attached to is closed.

*/ export const postInvoiceitemsInvoiceitem = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/invoiceitems/{invoiceitem}' }); }; /** *

You can list all invoices, or list the invoices for a specific customer. The invoices are returned sorted by creation date, with the most recently created invoices appearing first.

*/ export const getInvoices = (options?: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/invoices' }); }; /** *

This endpoint creates a draft invoice for a given customer. The invoice remains a draft until you finalize the invoice, which allows you to pay or send the invoice to your customers.

*/ export const postInvoices = (options?: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/invoices' }); }; /** *

At any time, you can preview the upcoming invoice for a customer. This will show you all the charges that are pending, including subscription renewal charges, invoice item charges, etc. It will also show you any discounts that are applicable to the invoice.

* *

Note that when you are viewing an upcoming invoice, you are simply viewing a preview – the invoice has not yet been created. As such, the upcoming invoice will not show up in invoice listing calls, and you cannot use the API to pay or edit the invoice. If you want to change the amount that your customer will be billed, you can add, remove, or update pending invoice items, or update the customer’s discount.

* *

You can preview the effects of updating a subscription, including a preview of what proration will take place. To ensure that the actual proration is calculated exactly the same as the previewed proration, you should pass the subscription_details.proration_date parameter when doing the actual subscription update. The recommended way to get only the prorations being previewed is to consider only proration line items where period[start] is equal to the subscription_details.proration_date value passed in the request.

* *

Note: Currency conversion calculations use the latest exchange rates. Exchange rates may vary between the time of the preview and the time of the actual invoice creation. Learn more

*/ export const postInvoicesCreatePreview = (options?: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/invoices/create_preview' }); }; /** *

Search for invoices you’ve previously created using Stripe’s Search Query Language. * Don’t use search in read-after-write flows where strict consistency is necessary. Under normal operating * conditions, data is searchable in less than a minute. Occasionally, propagation of new or updated data can be up * to an hour behind during outages. Search functionality is not available to merchants in India.

*/ export const getInvoicesSearch = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/invoices/search' }); }; /** *

At any time, you can preview the upcoming invoice for a customer. This will show you all the charges that are pending, including subscription renewal charges, invoice item charges, etc. It will also show you any discounts that are applicable to the invoice.

* *

Note that when you are viewing an upcoming invoice, you are simply viewing a preview – the invoice has not yet been created. As such, the upcoming invoice will not show up in invoice listing calls, and you cannot use the API to pay or edit the invoice. If you want to change the amount that your customer will be billed, you can add, remove, or update pending invoice items, or update the customer’s discount.

* *

You can preview the effects of updating a subscription, including a preview of what proration will take place. To ensure that the actual proration is calculated exactly the same as the previewed proration, you should pass the subscription_details.proration_date parameter when doing the actual subscription update. The recommended way to get only the prorations being previewed is to consider only proration line items where period[start] is equal to the subscription_details.proration_date value passed in the request.

* *

Note: Currency conversion calculations use the latest exchange rates. Exchange rates may vary between the time of the preview and the time of the actual invoice creation. Learn more

*/ export const getInvoicesUpcoming = (options?: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/invoices/upcoming' }); }; /** *

When retrieving an upcoming invoice, you’ll get a lines property containing the total count of line items and the first handful of those items. There is also a URL where you can retrieve the full (paginated) list of line items.

*/ export const getInvoicesUpcomingLines = (options?: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/invoices/upcoming/lines' }); }; /** *

Permanently deletes a one-off invoice draft. This cannot be undone. Attempts to delete invoices that are no longer in a draft state will fail; once an invoice has been finalized or if an invoice is for a subscription, it must be voided.

*/ export const deleteInvoicesInvoice = (options: Options) => { return (options?.client ?? client).delete({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/invoices/{invoice}' }); }; /** *

Retrieves the invoice with the given ID.

*/ export const getInvoicesInvoice = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/invoices/{invoice}' }); }; /** *

Draft invoices are fully editable. Once an invoice is finalized, * monetary values, as well as collection_method, become uneditable.

* *

If you would like to stop the Stripe Billing engine from automatically finalizing, reattempting payments on, * sending reminders for, or automatically reconciling invoices, pass * auto_advance=false.

*/ export const postInvoicesInvoice = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/invoices/{invoice}' }); }; /** *

Stripe automatically finalizes drafts before sending and attempting payment on invoices. However, if you’d like to finalize a draft invoice manually, you can do so using this method.

*/ export const postInvoicesInvoiceFinalize = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/invoices/{invoice}/finalize' }); }; /** *

When retrieving an invoice, you’ll get a lines property containing the total count of line items and the first handful of those items. There is also a URL where you can retrieve the full (paginated) list of line items.

*/ export const getInvoicesInvoiceLines = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/invoices/{invoice}/lines' }); }; /** *

Updates an invoice’s line item. Some fields, such as tax_amounts, only live on the invoice line item, * so they can only be updated through this endpoint. Other fields, such as amount, live on both the invoice * item and the invoice line item, so updates on this endpoint will propagate to the invoice item as well. * Updating an invoice’s line item is only possible before the invoice is finalized.

*/ export const postInvoicesInvoiceLinesLineItemId = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/invoices/{invoice}/lines/{line_item_id}' }); }; /** *

Marking an invoice as uncollectible is useful for keeping track of bad debts that can be written off for accounting purposes.

*/ export const postInvoicesInvoiceMarkUncollectible = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/invoices/{invoice}/mark_uncollectible' }); }; /** *

Stripe automatically creates and then attempts to collect payment on invoices for customers on subscriptions according to your subscriptions settings. However, if you’d like to attempt payment on an invoice out of the normal collection schedule or for some other reason, you can do so.

*/ export const postInvoicesInvoicePay = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/invoices/{invoice}/pay' }); }; /** *

Stripe will automatically send invoices to customers according to your subscriptions settings. However, if you’d like to manually send an invoice to your customer out of the normal schedule, you can do so. When sending invoices that have already been paid, there will be no reference to the payment in the email.

* *

Requests made in test-mode result in no emails being sent, despite sending an invoice.sent event.

*/ export const postInvoicesInvoiceSend = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/invoices/{invoice}/send' }); }; /** *

Mark a finalized invoice as void. This cannot be undone. Voiding an invoice is similar to deletion, however it only applies to finalized invoices and maintains a papertrail where the invoice can still be found.

* *

Consult with local regulations to determine whether and how an invoice might be amended, canceled, or voided in the jurisdiction you’re doing business in. You might need to issue another invoice or credit note instead. Stripe recommends that you consult with your legal counsel for advice specific to your business.

*/ export const postInvoicesInvoiceVoid = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/invoices/{invoice}/void' }); }; /** *

Returns a list of Issuing Authorization objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first.

*/ export const getIssuingAuthorizations = (options?: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/issuing/authorizations' }); }; /** *

Retrieves an Issuing Authorization object.

*/ export const getIssuingAuthorizationsAuthorization = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/issuing/authorizations/{authorization}' }); }; /** *

Updates the specified Issuing Authorization object by setting the values of the parameters passed. Any parameters not provided will be left unchanged.

*/ export const postIssuingAuthorizationsAuthorization = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/issuing/authorizations/{authorization}' }); }; /** * @deprecated *

[Deprecated] Approves a pending Issuing Authorization object. This request should be made within the timeout window of the real-time authorization flow. * This method is deprecated. Instead, respond directly to the webhook request to approve an authorization.

*/ export const postIssuingAuthorizationsAuthorizationApprove = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/issuing/authorizations/{authorization}/approve' }); }; /** * @deprecated *

[Deprecated] Declines a pending Issuing Authorization object. This request should be made within the timeout window of the real time authorization flow. * This method is deprecated. Instead, respond directly to the webhook request to decline an authorization.

*/ export const postIssuingAuthorizationsAuthorizationDecline = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/issuing/authorizations/{authorization}/decline' }); }; /** *

Returns a list of Issuing Cardholder objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first.

*/ export const getIssuingCardholders = (options?: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/issuing/cardholders' }); }; /** *

Creates a new Issuing Cardholder object that can be issued cards.

*/ export const postIssuingCardholders = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/issuing/cardholders' }); }; /** *

Retrieves an Issuing Cardholder object.

*/ export const getIssuingCardholdersCardholder = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/issuing/cardholders/{cardholder}' }); }; /** *

Updates the specified Issuing Cardholder object by setting the values of the parameters passed. Any parameters not provided will be left unchanged.

*/ export const postIssuingCardholdersCardholder = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/issuing/cardholders/{cardholder}' }); }; /** *

Returns a list of Issuing Card objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first.

*/ export const getIssuingCards = (options?: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/issuing/cards' }); }; /** *

Creates an Issuing Card object.

*/ export const postIssuingCards = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/issuing/cards' }); }; /** *

Retrieves an Issuing Card object.

*/ export const getIssuingCardsCard = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/issuing/cards/{card}' }); }; /** *

Updates the specified Issuing Card object by setting the values of the parameters passed. Any parameters not provided will be left unchanged.

*/ export const postIssuingCardsCard = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/issuing/cards/{card}' }); }; /** *

Returns a list of Issuing Dispute objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first.

*/ export const getIssuingDisputes = (options?: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/issuing/disputes' }); }; /** *

Creates an Issuing Dispute object. Individual pieces of evidence within the evidence object are optional at this point. Stripe only validates that required evidence is present during submission. Refer to Dispute reasons and evidence for more details about evidence requirements.

*/ export const postIssuingDisputes = (options?: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/issuing/disputes' }); }; /** *

Retrieves an Issuing Dispute object.

*/ export const getIssuingDisputesDispute = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/issuing/disputes/{dispute}' }); }; /** *

Updates the specified Issuing Dispute object by setting the values of the parameters passed. Any parameters not provided will be left unchanged. Properties on the evidence object can be unset by passing in an empty string.

*/ export const postIssuingDisputesDispute = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/issuing/disputes/{dispute}' }); }; /** *

Submits an Issuing Dispute to the card network. Stripe validates that all evidence fields required for the dispute’s reason are present. For more details, see Dispute reasons and evidence.

*/ export const postIssuingDisputesDisputeSubmit = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/issuing/disputes/{dispute}/submit' }); }; /** *

Returns a list of personalization design objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first.

*/ export const getIssuingPersonalizationDesigns = (options?: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/issuing/personalization_designs' }); }; /** *

Creates a personalization design object.

*/ export const postIssuingPersonalizationDesigns = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/issuing/personalization_designs' }); }; /** *

Retrieves a personalization design object.

*/ export const getIssuingPersonalizationDesignsPersonalizationDesign = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/issuing/personalization_designs/{personalization_design}' }); }; /** *

Updates a card personalization object.

*/ export const postIssuingPersonalizationDesignsPersonalizationDesign = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/issuing/personalization_designs/{personalization_design}' }); }; /** *

Returns a list of physical bundle objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first.

*/ export const getIssuingPhysicalBundles = (options?: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/issuing/physical_bundles' }); }; /** *

Retrieves a physical bundle object.

*/ export const getIssuingPhysicalBundlesPhysicalBundle = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/issuing/physical_bundles/{physical_bundle}' }); }; /** *

Retrieves an Issuing Settlement object.

*/ export const getIssuingSettlementsSettlement = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/issuing/settlements/{settlement}' }); }; /** *

Updates the specified Issuing Settlement object by setting the values of the parameters passed. Any parameters not provided will be left unchanged.

*/ export const postIssuingSettlementsSettlement = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/issuing/settlements/{settlement}' }); }; /** *

Lists all Issuing Token objects for a given card.

*/ export const getIssuingTokens = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/issuing/tokens' }); }; /** *

Retrieves an Issuing Token object.

*/ export const getIssuingTokensToken = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/issuing/tokens/{token}' }); }; /** *

Attempts to update the specified Issuing Token object to the status specified.

*/ export const postIssuingTokensToken = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/issuing/tokens/{token}' }); }; /** *

Returns a list of Issuing Transaction objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first.

*/ export const getIssuingTransactions = (options?: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/issuing/transactions' }); }; /** *

Retrieves an Issuing Transaction object.

*/ export const getIssuingTransactionsTransaction = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/issuing/transactions/{transaction}' }); }; /** *

Updates the specified Issuing Transaction object by setting the values of the parameters passed. Any parameters not provided will be left unchanged.

*/ export const postIssuingTransactionsTransaction = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/issuing/transactions/{transaction}' }); }; /** *

To launch the Financial Connections authorization flow, create a Session. The session’s client_secret can be used to launch the flow using Stripe.js.

*/ export const postLinkAccountSessions = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/link_account_sessions' }); }; /** *

Retrieves the details of a Financial Connections Session

*/ export const getLinkAccountSessionsSession = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/link_account_sessions/{session}' }); }; /** *

Returns a list of Financial Connections Account objects.

*/ export const getLinkedAccounts = (options?: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/linked_accounts' }); }; /** *

Retrieves the details of an Financial Connections Account.

*/ export const getLinkedAccountsAccount = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/linked_accounts/{account}' }); }; /** *

Disables your access to a Financial Connections Account. You will no longer be able to access data associated with the account (e.g. balances, transactions).

*/ export const postLinkedAccountsAccountDisconnect = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/linked_accounts/{account}/disconnect' }); }; /** *

Lists all owners for a given Account

*/ export const getLinkedAccountsAccountOwners = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/linked_accounts/{account}/owners' }); }; /** *

Refreshes the data associated with a Financial Connections Account.

*/ export const postLinkedAccountsAccountRefresh = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/linked_accounts/{account}/refresh' }); }; /** *

Retrieves a Mandate object.

*/ export const getMandatesMandate = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/mandates/{mandate}' }); }; /** *

Returns a list of PaymentIntents.

*/ export const getPaymentIntents = (options?: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/payment_intents' }); }; /** *

Creates a PaymentIntent object.

* *

After the PaymentIntent is created, attach a payment method and confirm * to continue the payment. Learn more about the available payment flows * with the Payment Intents API.

* *

When you use confirm=true during creation, it’s equivalent to creating * and confirming the PaymentIntent in the same call. You can use any parameters * available in the confirm API when you supply * confirm=true.

*/ export const postPaymentIntents = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/payment_intents' }); }; /** *

Search for PaymentIntents you’ve previously created using Stripe’s Search Query Language. * Don’t use search in read-after-write flows where strict consistency is necessary. Under normal operating * conditions, data is searchable in less than a minute. Occasionally, propagation of new or updated data can be up * to an hour behind during outages. Search functionality is not available to merchants in India.

*/ export const getPaymentIntentsSearch = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/payment_intents/search' }); }; /** *

Retrieves the details of a PaymentIntent that has previously been created.

* *

You can retrieve a PaymentIntent client-side using a publishable key when the client_secret is in the query string.

* *

If you retrieve a PaymentIntent with a publishable key, it only returns a subset of properties. Refer to the payment intent object reference for more details.

*/ export const getPaymentIntentsIntent = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/payment_intents/{intent}' }); }; /** *

Updates properties on a PaymentIntent object without confirming.

* *

Depending on which properties you update, you might need to confirm the * PaymentIntent again. For example, updating the payment_method * always requires you to confirm the PaymentIntent again. If you prefer to * update and confirm at the same time, we recommend updating properties through * the confirm API instead.

*/ export const postPaymentIntentsIntent = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/payment_intents/{intent}' }); }; /** *

Manually reconcile the remaining amount for a customer_balance PaymentIntent.

*/ export const postPaymentIntentsIntentApplyCustomerBalance = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/payment_intents/{intent}/apply_customer_balance' }); }; /** *

You can cancel a PaymentIntent object when it’s in one of these statuses: requires_payment_method, requires_capture, requires_confirmation, requires_action or, in rare cases, processing.

* *

After it’s canceled, no additional charges are made by the PaymentIntent and any operations on the PaymentIntent fail with an error. For PaymentIntents with a status of requires_capture, the remaining amount_capturable is automatically refunded.

* *

You can’t cancel the PaymentIntent for a Checkout Session. Expire the Checkout Session instead.

*/ export const postPaymentIntentsIntentCancel = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/payment_intents/{intent}/cancel' }); }; /** *

Capture the funds of an existing uncaptured PaymentIntent when its status is requires_capture.

* *

Uncaptured PaymentIntents are cancelled a set number of days (7 by default) after their creation.

* *

Learn more about separate authorization and capture.

*/ export const postPaymentIntentsIntentCapture = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/payment_intents/{intent}/capture' }); }; /** *

Confirm that your customer intends to pay with current or provided * payment method. Upon confirmation, the PaymentIntent will attempt to initiate * a payment. * If the selected payment method requires additional authentication steps, the * PaymentIntent will transition to the requires_action status and * suggest additional actions via next_action. If payment fails, * the PaymentIntent transitions to the requires_payment_method status or the * canceled status if the confirmation limit is reached. If * payment succeeds, the PaymentIntent will transition to the succeeded * status (or requires_capture, if capture_method is set to manual). * If the confirmation_method is automatic, payment may be attempted * using our client SDKs * and the PaymentIntent’s client_secret. * After next_actions are handled by the client, no additional * confirmation is required to complete the payment. * If the confirmation_method is manual, all payment attempts must be * initiated using a secret key. * If any actions are required for the payment, the PaymentIntent will * return to the requires_confirmation state * after those actions are completed. Your server needs to then * explicitly re-confirm the PaymentIntent to initiate the next payment * attempt.

*/ export const postPaymentIntentsIntentConfirm = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/payment_intents/{intent}/confirm' }); }; /** *

Perform an incremental authorization on an eligible * PaymentIntent. To be eligible, the * PaymentIntent’s status must be requires_capture and * incremental_authorization_supported * must be true.

* *

Incremental authorizations attempt to increase the authorized amount on * your customer’s card to the new, higher amount provided. Similar to the * initial authorization, incremental authorizations can be declined. A * single PaymentIntent can call this endpoint multiple times to further * increase the authorized amount.

* *

If the incremental authorization succeeds, the PaymentIntent object * returns with the updated * amount. * If the incremental authorization fails, a * card_declined error returns, and no other * fields on the PaymentIntent or Charge update. The PaymentIntent * object remains capturable for the previously authorized amount.

* *

Each PaymentIntent can have a maximum of 10 incremental authorization attempts, including declines. * After it’s captured, a PaymentIntent can no longer be incremented.

* *

Learn more about incremental authorizations.

*/ export const postPaymentIntentsIntentIncrementAuthorization = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/payment_intents/{intent}/increment_authorization' }); }; /** *

Verifies microdeposits on a PaymentIntent object.

*/ export const postPaymentIntentsIntentVerifyMicrodeposits = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/payment_intents/{intent}/verify_microdeposits' }); }; /** *

Returns a list of your payment links.

*/ export const getPaymentLinks = (options?: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/payment_links' }); }; /** *

Creates a payment link.

*/ export const postPaymentLinks = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/payment_links' }); }; /** *

Retrieve a payment link.

*/ export const getPaymentLinksPaymentLink = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/payment_links/{payment_link}' }); }; /** *

Updates a payment link.

*/ export const postPaymentLinksPaymentLink = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/payment_links/{payment_link}' }); }; /** *

When retrieving a payment link, there is an includable line_items property containing the first handful of those items. There is also a URL where you can retrieve the full (paginated) list of line items.

*/ export const getPaymentLinksPaymentLinkLineItems = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/payment_links/{payment_link}/line_items' }); }; /** *

List payment method configurations

*/ export const getPaymentMethodConfigurations = (options?: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/payment_method_configurations' }); }; /** *

Creates a payment method configuration

*/ export const postPaymentMethodConfigurations = (options?: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/payment_method_configurations' }); }; /** *

Retrieve payment method configuration

*/ export const getPaymentMethodConfigurationsConfiguration = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/payment_method_configurations/{configuration}' }); }; /** *

Update payment method configuration

*/ export const postPaymentMethodConfigurationsConfiguration = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/payment_method_configurations/{configuration}' }); }; /** *

Lists the details of existing payment method domains.

*/ export const getPaymentMethodDomains = (options?: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/payment_method_domains' }); }; /** *

Creates a payment method domain.

*/ export const postPaymentMethodDomains = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/payment_method_domains' }); }; /** *

Retrieves the details of an existing payment method domain.

*/ export const getPaymentMethodDomainsPaymentMethodDomain = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/payment_method_domains/{payment_method_domain}' }); }; /** *

Updates an existing payment method domain.

*/ export const postPaymentMethodDomainsPaymentMethodDomain = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/payment_method_domains/{payment_method_domain}' }); }; /** *

Some payment methods such as Apple Pay require additional steps to verify a domain. If the requirements weren’t satisfied when the domain was created, the payment method will be inactive on the domain. * The payment method doesn’t appear in Elements for this domain until it is active.

* *

To activate a payment method on an existing payment method domain, complete the required validation steps specific to the payment method, and then validate the payment method domain with this endpoint.

* *

Related guides: Payment method domains.

*/ export const postPaymentMethodDomainsPaymentMethodDomainValidate = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/payment_method_domains/{payment_method_domain}/validate' }); }; /** *

Returns a list of PaymentMethods for Treasury flows. If you want to list the PaymentMethods attached to a Customer for payments, you should use the List a Customer’s PaymentMethods API instead.

*/ export const getPaymentMethods = (options?: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/payment_methods' }); }; /** *

Creates a PaymentMethod object. Read the Stripe.js reference to learn how to create PaymentMethods via Stripe.js.

* *

Instead of creating a PaymentMethod directly, we recommend using the PaymentIntents API to accept a payment immediately or the SetupIntent API to collect payment method details ahead of a future payment.

*/ export const postPaymentMethods = (options?: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/payment_methods' }); }; /** *

Retrieves a PaymentMethod object attached to the StripeAccount. To retrieve a payment method attached to a Customer, you should use Retrieve a Customer’s PaymentMethods

*/ export const getPaymentMethodsPaymentMethod = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/payment_methods/{payment_method}' }); }; /** *

Updates a PaymentMethod object. A PaymentMethod must be attached a customer to be updated.

*/ export const postPaymentMethodsPaymentMethod = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/payment_methods/{payment_method}' }); }; /** *

Attaches a PaymentMethod object to a Customer.

* *

To attach a new PaymentMethod to a customer for future payments, we recommend you use a SetupIntent * or a PaymentIntent with setup_future_usage. * These approaches will perform any necessary steps to set up the PaymentMethod for future payments. Using the /v1/payment_methods/:id/attach * endpoint without first using a SetupIntent or PaymentIntent with setup_future_usage does not optimize the PaymentMethod for * future use, which makes later declines and payment friction more likely. * See Optimizing cards for future payments for more information about setting up * future payments.

* *

To use this PaymentMethod as the default for invoice or subscription payments, * set invoice_settings.default_payment_method, * on the Customer to the PaymentMethod’s ID.

*/ export const postPaymentMethodsPaymentMethodAttach = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/payment_methods/{payment_method}/attach' }); }; /** *

Detaches a PaymentMethod object from a Customer. After a PaymentMethod is detached, it can no longer be used for a payment or re-attached to a Customer.

*/ export const postPaymentMethodsPaymentMethodDetach = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/payment_methods/{payment_method}/detach' }); }; /** *

Returns a list of existing payouts sent to third-party bank accounts or payouts that Stripe sent to you. The payouts return in sorted order, with the most recently created payouts appearing first.

*/ export const getPayouts = (options?: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/payouts' }); }; /** *

To send funds to your own bank account, create a new payout object. Your Stripe balance must cover the payout amount. If it doesn’t, you receive an “Insufficient Funds” error.

* *

If your API key is in test mode, money won’t actually be sent, though every other action occurs as if you’re in live mode.

* *

If you create a manual payout on a Stripe account that uses multiple payment source types, you need to specify the source type balance that the payout draws from. The balance object details available and pending amounts by source type.

*/ export const postPayouts = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/payouts' }); }; /** *

Retrieves the details of an existing payout. Supply the unique payout ID from either a payout creation request or the payout list. Stripe returns the corresponding payout information.

*/ export const getPayoutsPayout = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/payouts/{payout}' }); }; /** *

Updates the specified payout by setting the values of the parameters you pass. We don’t change parameters that you don’t provide. This request only accepts the metadata as arguments.

*/ export const postPayoutsPayout = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/payouts/{payout}' }); }; /** *

You can cancel a previously created payout if its status is pending. Stripe refunds the funds to your available balance. You can’t cancel automatic Stripe payouts.

*/ export const postPayoutsPayoutCancel = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/payouts/{payout}/cancel' }); }; /** *

Reverses a payout by debiting the destination bank account. At this time, you can only reverse payouts for connected accounts to US bank accounts. If the payout is manual and in the pending status, use /v1/payouts/:id/cancel instead.

* *

By requesting a reversal through /v1/payouts/:id/reverse, you confirm that the authorized signatory of the selected bank account authorizes the debit on the bank account and that no other authorization is required.

*/ export const postPayoutsPayoutReverse = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/payouts/{payout}/reverse' }); }; /** *

Returns a list of your plans.

*/ export const getPlans = (options?: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/plans' }); }; /** *

You can now model subscriptions more flexibly using the Prices API. It replaces the Plans API and is backwards compatible to simplify your migration.

*/ export const postPlans = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/plans' }); }; /** *

Deleting plans means new subscribers can’t be added. Existing subscribers aren’t affected.

*/ export const deletePlansPlan = (options: Options) => { return (options?.client ?? client).delete({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/plans/{plan}' }); }; /** *

Retrieves the plan with the given ID.

*/ export const getPlansPlan = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/plans/{plan}' }); }; /** *

Updates the specified plan by setting the values of the parameters passed. Any parameters not provided are left unchanged. By design, you cannot change a plan’s ID, amount, currency, or billing cycle.

*/ export const postPlansPlan = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/plans/{plan}' }); }; /** *

Returns a list of your active prices, excluding inline prices. For the list of inactive prices, set active to false.

*/ export const getPrices = (options?: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/prices' }); }; /** *

Creates a new price for an existing product. The price can be recurring or one-time.

*/ export const postPrices = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/prices' }); }; /** *

Search for prices you’ve previously created using Stripe’s Search Query Language. * Don’t use search in read-after-write flows where strict consistency is necessary. Under normal operating * conditions, data is searchable in less than a minute. Occasionally, propagation of new or updated data can be up * to an hour behind during outages. Search functionality is not available to merchants in India.

*/ export const getPricesSearch = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/prices/search' }); }; /** *

Retrieves the price with the given ID.

*/ export const getPricesPrice = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/prices/{price}' }); }; /** *

Updates the specified price by setting the values of the parameters passed. Any parameters not provided are left unchanged.

*/ export const postPricesPrice = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/prices/{price}' }); }; /** *

Returns a list of your products. The products are returned sorted by creation date, with the most recently created products appearing first.

*/ export const getProducts = (options?: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/products' }); }; /** *

Creates a new product object.

*/ export const postProducts = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/products' }); }; /** *

Search for products you’ve previously created using Stripe’s Search Query Language. * Don’t use search in read-after-write flows where strict consistency is necessary. Under normal operating * conditions, data is searchable in less than a minute. Occasionally, propagation of new or updated data can be up * to an hour behind during outages. Search functionality is not available to merchants in India.

*/ export const getProductsSearch = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/products/search' }); }; /** *

Delete a product. Deleting a product is only possible if it has no prices associated with it. Additionally, deleting a product with type=good is only possible if it has no SKUs associated with it.

*/ export const deleteProductsId = (options: Options) => { return (options?.client ?? client).delete({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/products/{id}' }); }; /** *

Retrieves the details of an existing product. Supply the unique product ID from either a product creation request or the product list, and Stripe will return the corresponding product information.

*/ export const getProductsId = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/products/{id}' }); }; /** *

Updates the specific product by setting the values of the parameters passed. Any parameters not provided will be left unchanged.

*/ export const postProductsId = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/products/{id}' }); }; /** *

Retrieve a list of features for a product

*/ export const getProductsProductFeatures = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/products/{product}/features' }); }; /** *

Creates a product_feature, which represents a feature attachment to a product

*/ export const postProductsProductFeatures = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/products/{product}/features' }); }; /** *

Deletes the feature attachment to a product

*/ export const deleteProductsProductFeaturesId = (options: Options) => { return (options?.client ?? client).delete({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/products/{product}/features/{id}' }); }; /** *

Retrieves a product_feature, which represents a feature attachment to a product

*/ export const getProductsProductFeaturesId = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/products/{product}/features/{id}' }); }; /** *

Returns a list of your promotion codes.

*/ export const getPromotionCodes = (options?: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/promotion_codes' }); }; /** *

A promotion code points to a coupon. You can optionally restrict the code to a specific customer, redemption limit, and expiration date.

*/ export const postPromotionCodes = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/promotion_codes' }); }; /** *

Retrieves the promotion code with the given ID. In order to retrieve a promotion code by the customer-facing code use list with the desired code.

*/ export const getPromotionCodesPromotionCode = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/promotion_codes/{promotion_code}' }); }; /** *

Updates the specified promotion code by setting the values of the parameters passed. Most fields are, by design, not editable.

*/ export const postPromotionCodesPromotionCode = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/promotion_codes/{promotion_code}' }); }; /** *

Returns a list of your quotes.

*/ export const getQuotes = (options?: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/quotes' }); }; /** *

A quote models prices and services for a customer. Default options for header, description, footer, and expires_at can be set in the dashboard via the quote template.

*/ export const postQuotes = (options?: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/quotes' }); }; /** *

Retrieves the quote with the given ID.

*/ export const getQuotesQuote = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/quotes/{quote}' }); }; /** *

A quote models prices and services for a customer.

*/ export const postQuotesQuote = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/quotes/{quote}' }); }; /** *

Accepts the specified quote.

*/ export const postQuotesQuoteAccept = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/quotes/{quote}/accept' }); }; /** *

Cancels the quote.

*/ export const postQuotesQuoteCancel = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/quotes/{quote}/cancel' }); }; /** *

When retrieving a quote, there is an includable computed.upfront.line_items property containing the first handful of those items. There is also a URL where you can retrieve the full (paginated) list of upfront line items.

*/ export const getQuotesQuoteComputedUpfrontLineItems = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/quotes/{quote}/computed_upfront_line_items' }); }; /** *

Finalizes the quote.

*/ export const postQuotesQuoteFinalize = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/quotes/{quote}/finalize' }); }; /** *

When retrieving a quote, there is an includable line_items property containing the first handful of those items. There is also a URL where you can retrieve the full (paginated) list of line items.

*/ export const getQuotesQuoteLineItems = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/quotes/{quote}/line_items' }); }; /** *

Download the PDF for a finalized quote. Explanation for special handling can be found here

*/ export const getQuotesQuotePdf = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/quotes/{quote}/pdf' }); }; /** *

Returns a list of early fraud warnings.

*/ export const getRadarEarlyFraudWarnings = (options?: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/radar/early_fraud_warnings' }); }; /** *

Retrieves the details of an early fraud warning that has previously been created.

* *

Please refer to the early fraud warning object reference for more details.

*/ export const getRadarEarlyFraudWarningsEarlyFraudWarning = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/radar/early_fraud_warnings/{early_fraud_warning}' }); }; /** *

Returns a list of ValueListItem objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first.

*/ export const getRadarValueListItems = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/radar/value_list_items' }); }; /** *

Creates a new ValueListItem object, which is added to the specified parent value list.

*/ export const postRadarValueListItems = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/radar/value_list_items' }); }; /** *

Deletes a ValueListItem object, removing it from its parent value list.

*/ export const deleteRadarValueListItemsItem = (options: Options) => { return (options?.client ?? client).delete({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/radar/value_list_items/{item}' }); }; /** *

Retrieves a ValueListItem object.

*/ export const getRadarValueListItemsItem = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/radar/value_list_items/{item}' }); }; /** *

Returns a list of ValueList objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first.

*/ export const getRadarValueLists = (options?: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/radar/value_lists' }); }; /** *

Creates a new ValueList object, which can then be referenced in rules.

*/ export const postRadarValueLists = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/radar/value_lists' }); }; /** *

Deletes a ValueList object, also deleting any items contained within the value list. To be deleted, a value list must not be referenced in any rules.

*/ export const deleteRadarValueListsValueList = (options: Options) => { return (options?.client ?? client).delete({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/radar/value_lists/{value_list}' }); }; /** *

Retrieves a ValueList object.

*/ export const getRadarValueListsValueList = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/radar/value_lists/{value_list}' }); }; /** *

Updates a ValueList object by setting the values of the parameters passed. Any parameters not provided will be left unchanged. Note that item_type is immutable.

*/ export const postRadarValueListsValueList = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/radar/value_lists/{value_list}' }); }; /** *

Returns a list of all refunds you created. We return the refunds in sorted order, with the most recent refunds appearing first The 10 most recent refunds are always available by default on the Charge object.

*/ export const getRefunds = (options?: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/refunds' }); }; /** *

When you create a new refund, you must specify a Charge or a PaymentIntent object on which to create it.

* *

Creating a new refund will refund a charge that has previously been created but not yet refunded. * Funds will be refunded to the credit or debit card that was originally charged.

* *

You can optionally refund only part of a charge. * You can do so multiple times, until the entire charge has been refunded.

* *

Once entirely refunded, a charge can’t be refunded again. * This method will raise an error when called on an already-refunded charge, * or when trying to refund more money than is left on a charge.

*/ export const postRefunds = (options?: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/refunds' }); }; /** *

Retrieves the details of an existing refund.

*/ export const getRefundsRefund = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/refunds/{refund}' }); }; /** *

Updates the refund that you specify by setting the values of the passed parameters. Any parameters that you don’t provide remain unchanged.

* *

This request only accepts metadata as an argument.

*/ export const postRefundsRefund = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/refunds/{refund}' }); }; /** *

Cancels a refund with a status of requires_action.

* *

You can’t cancel refunds in other states. Only refunds for payment methods that require customer action can enter the requires_action state.

*/ export const postRefundsRefundCancel = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/refunds/{refund}/cancel' }); }; /** *

Returns a list of Report Runs, with the most recent appearing first.

*/ export const getReportingReportRuns = (options?: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/reporting/report_runs' }); }; /** *

Creates a new object and begin running the report. (Certain report types require a live-mode API key.)

*/ export const postReportingReportRuns = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/reporting/report_runs' }); }; /** *

Retrieves the details of an existing Report Run.

*/ export const getReportingReportRunsReportRun = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/reporting/report_runs/{report_run}' }); }; /** *

Returns a full list of Report Types.

*/ export const getReportingReportTypes = (options?: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/reporting/report_types' }); }; /** *

Retrieves the details of a Report Type. (Certain report types require a live-mode API key.)

*/ export const getReportingReportTypesReportType = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/reporting/report_types/{report_type}' }); }; /** *

Returns a list of Review objects that have open set to true. The objects are sorted in descending order by creation date, with the most recently created object appearing first.

*/ export const getReviews = (options?: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/reviews' }); }; /** *

Retrieves a Review object.

*/ export const getReviewsReview = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/reviews/{review}' }); }; /** *

Approves a Review object, closing it and removing it from the list of reviews.

*/ export const postReviewsReviewApprove = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/reviews/{review}/approve' }); }; /** *

Returns a list of SetupAttempts that associate with a provided SetupIntent.

*/ export const getSetupAttempts = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/setup_attempts' }); }; /** *

Returns a list of SetupIntents.

*/ export const getSetupIntents = (options?: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/setup_intents' }); }; /** *

Creates a SetupIntent object.

* *

After you create the SetupIntent, attach a payment method and confirm * it to collect any required permissions to charge the payment method later.

*/ export const postSetupIntents = (options?: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/setup_intents' }); }; /** *

Retrieves the details of a SetupIntent that has previously been created.

* *

Client-side retrieval using a publishable key is allowed when the client_secret is provided in the query string.

* *

When retrieved with a publishable key, only a subset of properties will be returned. Please refer to the SetupIntent object reference for more details.

*/ export const getSetupIntentsIntent = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/setup_intents/{intent}' }); }; /** *

Updates a SetupIntent object.

*/ export const postSetupIntentsIntent = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/setup_intents/{intent}' }); }; /** *

You can cancel a SetupIntent object when it’s in one of these statuses: requires_payment_method, requires_confirmation, or requires_action.

* *

After you cancel it, setup is abandoned and any operations on the SetupIntent fail with an error. You can’t cancel the SetupIntent for a Checkout Session. Expire the Checkout Session instead.

*/ export const postSetupIntentsIntentCancel = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/setup_intents/{intent}/cancel' }); }; /** *

Confirm that your customer intends to set up the current or * provided payment method. For example, you would confirm a SetupIntent * when a customer hits the “Save” button on a payment method management * page on your website.

* *

If the selected payment method does not require any additional * steps from the customer, the SetupIntent will transition to the * succeeded status.

* *

Otherwise, it will transition to the requires_action status and * suggest additional actions via next_action. If setup fails, * the SetupIntent will transition to the * requires_payment_method status or the canceled status if the * confirmation limit is reached.

*/ export const postSetupIntentsIntentConfirm = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/setup_intents/{intent}/confirm' }); }; /** *

Verifies microdeposits on a SetupIntent object.

*/ export const postSetupIntentsIntentVerifyMicrodeposits = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/setup_intents/{intent}/verify_microdeposits' }); }; /** *

Returns a list of your shipping rates.

*/ export const getShippingRates = (options?: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/shipping_rates' }); }; /** *

Creates a new shipping rate object.

*/ export const postShippingRates = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/shipping_rates' }); }; /** *

Returns the shipping rate object with the given ID.

*/ export const getShippingRatesShippingRateToken = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/shipping_rates/{shipping_rate_token}' }); }; /** *

Updates an existing shipping rate object.

*/ export const postShippingRatesShippingRateToken = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/shipping_rates/{shipping_rate_token}' }); }; /** *

Returns a list of scheduled query runs.

*/ export const getSigmaScheduledQueryRuns = (options?: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/sigma/scheduled_query_runs' }); }; /** *

Retrieves the details of an scheduled query run.

*/ export const getSigmaScheduledQueryRunsScheduledQueryRun = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/sigma/scheduled_query_runs/{scheduled_query_run}' }); }; /** *

Creates a new source object.

*/ export const postSources = (options?: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/sources' }); }; /** *

Retrieves an existing source object. Supply the unique source ID from a source creation request and Stripe will return the corresponding up-to-date source object information.

*/ export const getSourcesSource = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/sources/{source}' }); }; /** *

Updates the specified source by setting the values of the parameters passed. Any parameters not provided will be left unchanged.

* *

This request accepts the metadata and owner as arguments. It is also possible to update type specific information for selected payment methods. Please refer to our payment method guides for more detail.

*/ export const postSourcesSource = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/sources/{source}' }); }; /** *

Retrieves a new Source MandateNotification.

*/ export const getSourcesSourceMandateNotificationsMandateNotification = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/sources/{source}/mandate_notifications/{mandate_notification}' }); }; /** *

List source transactions for a given source.

*/ export const getSourcesSourceSourceTransactions = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/sources/{source}/source_transactions' }); }; /** *

Retrieve an existing source transaction object. Supply the unique source ID from a source creation request and the source transaction ID and Stripe will return the corresponding up-to-date source object information.

*/ export const getSourcesSourceSourceTransactionsSourceTransaction = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/sources/{source}/source_transactions/{source_transaction}' }); }; /** *

Verify a given source.

*/ export const postSourcesSourceVerify = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/sources/{source}/verify' }); }; /** *

Returns a list of your subscription items for a given subscription.

*/ export const getSubscriptionItems = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/subscription_items' }); }; /** *

Adds a new item to an existing subscription. No existing items will be changed or replaced.

*/ export const postSubscriptionItems = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/subscription_items' }); }; /** *

Deletes an item from the subscription. Removing a subscription item from a subscription will not cancel the subscription.

*/ export const deleteSubscriptionItemsItem = (options: Options) => { return (options?.client ?? client).delete({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/subscription_items/{item}' }); }; /** *

Retrieves the subscription item with the given ID.

*/ export const getSubscriptionItemsItem = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/subscription_items/{item}' }); }; /** *

Updates the plan or quantity of an item on a current subscription.

*/ export const postSubscriptionItemsItem = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/subscription_items/{item}' }); }; /** *

For the specified subscription item, returns a list of summary objects. Each object in the list provides usage information that’s been summarized from multiple usage records and over a subscription billing period (e.g., 15 usage records in the month of September).

* *

The list is sorted in reverse-chronological order (newest first). The first list item represents the most current usage period that hasn’t ended yet. Since new usage records can still be added, the returned summary information for the subscription item’s ID should be seen as unstable until the subscription billing period ends.

*/ export const getSubscriptionItemsSubscriptionItemUsageRecordSummaries = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/subscription_items/{subscription_item}/usage_record_summaries' }); }; /** *

Creates a usage record for a specified subscription item and date, and fills it with a quantity.

* *

Usage records provide quantity information that Stripe uses to track how much a customer is using your service. With usage information and the pricing model set up by the metered billing plan, Stripe helps you send accurate invoices to your customers.

* *

The default calculation for usage is to add up all the quantity values of the usage records within a billing period. You can change this default behavior with the billing plan’s aggregate_usage parameter. When there is more than one usage record with the same timestamp, Stripe adds the quantity values together. In most cases, this is the desired resolution, however, you can change this behavior with the action parameter.

* *

The default pricing model for metered billing is per-unit pricing. For finer granularity, you can configure metered billing to have a tiered pricing model.

*/ export const postSubscriptionItemsSubscriptionItemUsageRecords = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/subscription_items/{subscription_item}/usage_records' }); }; /** *

Retrieves the list of your subscription schedules.

*/ export const getSubscriptionSchedules = (options?: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/subscription_schedules' }); }; /** *

Creates a new subscription schedule object. Each customer can have up to 500 active or scheduled subscriptions.

*/ export const postSubscriptionSchedules = (options?: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/subscription_schedules' }); }; /** *

Retrieves the details of an existing subscription schedule. You only need to supply the unique subscription schedule identifier that was returned upon subscription schedule creation.

*/ export const getSubscriptionSchedulesSchedule = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/subscription_schedules/{schedule}' }); }; /** *

Updates an existing subscription schedule.

*/ export const postSubscriptionSchedulesSchedule = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/subscription_schedules/{schedule}' }); }; /** *

Cancels a subscription schedule and its associated subscription immediately (if the subscription schedule has an active subscription). A subscription schedule can only be canceled if its status is not_started or active.

*/ export const postSubscriptionSchedulesScheduleCancel = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/subscription_schedules/{schedule}/cancel' }); }; /** *

Releases the subscription schedule immediately, which will stop scheduling of its phases, but leave any existing subscription in place. A schedule can only be released if its status is not_started or active. If the subscription schedule is currently associated with a subscription, releasing it will remove its subscription property and set the subscription’s ID to the released_subscription property.

*/ export const postSubscriptionSchedulesScheduleRelease = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/subscription_schedules/{schedule}/release' }); }; /** *

By default, returns a list of subscriptions that have not been canceled. In order to list canceled subscriptions, specify status=canceled.

*/ export const getSubscriptions = (options?: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/subscriptions' }); }; /** *

Creates a new subscription on an existing customer. Each customer can have up to 500 active or scheduled subscriptions.

* *

When you create a subscription with collection_method=charge_automatically, the first invoice is finalized as part of the request. * The payment_behavior parameter determines the exact behavior of the initial payment.

* *

To start subscriptions where the first invoice always begins in a draft status, use subscription schedules instead. * Schedules provide the flexibility to model more complex billing configurations that change over time.

*/ export const postSubscriptions = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/subscriptions' }); }; /** *

Search for subscriptions you’ve previously created using Stripe’s Search Query Language. * Don’t use search in read-after-write flows where strict consistency is necessary. Under normal operating * conditions, data is searchable in less than a minute. Occasionally, propagation of new or updated data can be up * to an hour behind during outages. Search functionality is not available to merchants in India.

*/ export const getSubscriptionsSearch = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/subscriptions/search' }); }; /** *

Cancels a customer’s subscription immediately. The customer will not be charged again for the subscription.

* *

Note, however, that any pending invoice items that you’ve created will still be charged for at the end of the period, unless manually deleted. If you’ve set the subscription to cancel at the end of the period, any pending prorations will also be left in place and collected at the end of the period. But if the subscription is set to cancel immediately, pending prorations will be removed.

* *

By default, upon subscription cancellation, Stripe will stop automatic collection of all finalized invoices for the customer. This is intended to prevent unexpected payment attempts after the customer has canceled a subscription. However, you can resume automatic collection of the invoices manually after subscription cancellation to have us proceed. Or, you could check for unpaid invoices before allowing the customer to cancel the subscription at all.

*/ export const deleteSubscriptionsSubscriptionExposedId = (options: Options) => { return (options?.client ?? client).delete({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/subscriptions/{subscription_exposed_id}' }); }; /** *

Retrieves the subscription with the given ID.

*/ export const getSubscriptionsSubscriptionExposedId = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/subscriptions/{subscription_exposed_id}' }); }; /** *

Updates an existing subscription to match the specified parameters. * When changing prices or quantities, we optionally prorate the price we charge next month to make up for any price changes. * To preview how the proration is calculated, use the upcoming invoice endpoint.

* *

By default, we prorate subscription changes. For example, if a customer signs up on May 1 for a 100 price, they’ll be billed 100 immediately. If on May 15 they switch to a 200 price, then on June 1 they’ll be billed 250 (200 for a renewal of her subscription, plus a 50 prorating adjustment for half of the previous month’s 100 difference). Similarly, a downgrade generates a credit that is applied to the next invoice. We also prorate when you make quantity changes.

* *

Switching prices does not normally change the billing date or generate an immediate charge unless:

* *
    *
  • The billing interval is changed (for example, from monthly to yearly).
  • *
  • The subscription moves from free to paid, or paid to free.
  • *
  • A trial starts or ends.
  • *
* *

In these cases, we apply a credit for the unused time on the previous price, immediately charge the customer using the new price, and reset the billing date.

* *

If you want to charge for an upgrade immediately, pass proration_behavior as always_invoice to create prorations, automatically invoice the customer for those proration adjustments, and attempt to collect payment. If you pass create_prorations, the prorations are created but not automatically invoiced. If you want to bill the customer for the prorations before the subscription’s renewal date, you need to manually invoice the customer.

* *

If you don’t want to prorate, set the proration_behavior option to none. With this option, the customer is billed 100 on May 1 and 200 on June 1. Similarly, if you set proration_behavior to none when switching between different billing intervals (for example, from monthly to yearly), we don’t generate any credits for the old subscription’s unused time. We still reset the billing date and bill immediately for the new subscription.

* *

Updating the quantity on a subscription many times in an hour may result in rate limiting. If you need to bill for a frequently changing quantity, consider integrating usage-based billing instead.

*/ export const postSubscriptionsSubscriptionExposedId = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/subscriptions/{subscription_exposed_id}' }); }; /** *

Removes the currently applied discount on a subscription.

*/ export const deleteSubscriptionsSubscriptionExposedIdDiscount = (options: Options) => { return (options?.client ?? client).delete({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/subscriptions/{subscription_exposed_id}/discount' }); }; /** *

Initiates resumption of a paused subscription, optionally resetting the billing cycle anchor and creating prorations. If a resumption invoice is generated, it must be paid or marked uncollectible before the subscription will be unpaused. If payment succeeds the subscription will become active, and if payment fails the subscription will be past_due. The resumption invoice will void automatically if not paid by the expiration date.

*/ export const postSubscriptionsSubscriptionResume = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/subscriptions/{subscription}/resume' }); }; /** *

Calculates tax based on input and returns a Tax Calculation object.

*/ export const postTaxCalculations = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/tax/calculations' }); }; /** *

Retrieves the line items of a tax calculation as a collection, if the calculation hasn’t expired.

*/ export const getTaxCalculationsCalculationLineItems = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/tax/calculations/{calculation}/line_items' }); }; /** *

Returns a list of Tax Registration objects.

*/ export const getTaxRegistrations = (options?: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/tax/registrations' }); }; /** *

Creates a new Tax Registration object.

*/ export const postTaxRegistrations = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/tax/registrations' }); }; /** *

Returns a Tax Registration object.

*/ export const getTaxRegistrationsId = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/tax/registrations/{id}' }); }; /** *

Updates an existing Tax Registration object.

* *

A registration cannot be deleted after it has been created. If you wish to end a registration you may do so by setting expires_at.

*/ export const postTaxRegistrationsId = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/tax/registrations/{id}' }); }; /** *

Retrieves Tax Settings for a merchant.

*/ export const getTaxSettings = (options?: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/tax/settings' }); }; /** *

Updates Tax Settings parameters used in tax calculations. All parameters are editable but none can be removed once set.

*/ export const postTaxSettings = (options?: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/tax/settings' }); }; /** *

Creates a Tax Transaction from a calculation, if that calculation hasn’t expired. Calculations expire after 90 days.

*/ export const postTaxTransactionsCreateFromCalculation = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/tax/transactions/create_from_calculation' }); }; /** *

Partially or fully reverses a previously created Transaction.

*/ export const postTaxTransactionsCreateReversal = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/tax/transactions/create_reversal' }); }; /** *

Retrieves a Tax Transaction object.

*/ export const getTaxTransactionsTransaction = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/tax/transactions/{transaction}' }); }; /** *

Retrieves the line items of a committed standalone transaction as a collection.

*/ export const getTaxTransactionsTransactionLineItems = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/tax/transactions/{transaction}/line_items' }); }; /** *

A list of all tax codes available to add to Products in order to allow specific tax calculations.

*/ export const getTaxCodes = (options?: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/tax_codes' }); }; /** *

Retrieves the details of an existing tax code. Supply the unique tax code ID and Stripe will return the corresponding tax code information.

*/ export const getTaxCodesId = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/tax_codes/{id}' }); }; /** *

Returns a list of tax IDs.

*/ export const getTaxIds = (options?: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/tax_ids' }); }; /** *

Creates a new account or customer tax_id object.

*/ export const postTaxIds = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/tax_ids' }); }; /** *

Deletes an existing account or customer tax_id object.

*/ export const deleteTaxIdsId = (options: Options) => { return (options?.client ?? client).delete({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/tax_ids/{id}' }); }; /** *

Retrieves an account or customer tax_id object.

*/ export const getTaxIdsId = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/tax_ids/{id}' }); }; /** *

Returns a list of your tax rates. Tax rates are returned sorted by creation date, with the most recently created tax rates appearing first.

*/ export const getTaxRates = (options?: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/tax_rates' }); }; /** *

Creates a new tax rate.

*/ export const postTaxRates = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/tax_rates' }); }; /** *

Retrieves a tax rate with the given ID

*/ export const getTaxRatesTaxRate = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/tax_rates/{tax_rate}' }); }; /** *

Updates an existing tax rate.

*/ export const postTaxRatesTaxRate = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/tax_rates/{tax_rate}' }); }; /** *

Returns a list of Configuration objects.

*/ export const getTerminalConfigurations = (options?: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/terminal/configurations' }); }; /** *

Creates a new Configuration object.

*/ export const postTerminalConfigurations = (options?: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/terminal/configurations' }); }; /** *

Deletes a Configuration object.

*/ export const deleteTerminalConfigurationsConfiguration = (options: Options) => { return (options?.client ?? client).delete({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/terminal/configurations/{configuration}' }); }; /** *

Retrieves a Configuration object.

*/ export const getTerminalConfigurationsConfiguration = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/terminal/configurations/{configuration}' }); }; /** *

Updates a new Configuration object.

*/ export const postTerminalConfigurationsConfiguration = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/terminal/configurations/{configuration}' }); }; /** *

To connect to a reader the Stripe Terminal SDK needs to retrieve a short-lived connection token from Stripe, proxied through your server. On your backend, add an endpoint that creates and returns a connection token.

*/ export const postTerminalConnectionTokens = (options?: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/terminal/connection_tokens' }); }; /** *

Returns a list of Location objects.

*/ export const getTerminalLocations = (options?: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/terminal/locations' }); }; /** *

Creates a new Location object. * For further details, including which address fields are required in each country, see the Manage locations guide.

*/ export const postTerminalLocations = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/terminal/locations' }); }; /** *

Deletes a Location object.

*/ export const deleteTerminalLocationsLocation = (options: Options) => { return (options?.client ?? client).delete({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/terminal/locations/{location}' }); }; /** *

Retrieves a Location object.

*/ export const getTerminalLocationsLocation = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/terminal/locations/{location}' }); }; /** *

Updates a Location object by setting the values of the parameters passed. Any parameters not provided will be left unchanged.

*/ export const postTerminalLocationsLocation = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/terminal/locations/{location}' }); }; /** *

Returns a list of Reader objects.

*/ export const getTerminalReaders = (options?: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/terminal/readers' }); }; /** *

Creates a new Reader object.

*/ export const postTerminalReaders = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/terminal/readers' }); }; /** *

Deletes a Reader object.

*/ export const deleteTerminalReadersReader = (options: Options) => { return (options?.client ?? client).delete({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/terminal/readers/{reader}' }); }; /** *

Retrieves a Reader object.

*/ export const getTerminalReadersReader = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/terminal/readers/{reader}' }); }; /** *

Updates a Reader object by setting the values of the parameters passed. Any parameters not provided will be left unchanged.

*/ export const postTerminalReadersReader = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/terminal/readers/{reader}' }); }; /** *

Cancels the current reader action.

*/ export const postTerminalReadersReaderCancelAction = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/terminal/readers/{reader}/cancel_action' }); }; /** *

Initiates a payment flow on a Reader.

*/ export const postTerminalReadersReaderProcessPaymentIntent = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/terminal/readers/{reader}/process_payment_intent' }); }; /** *

Initiates a setup intent flow on a Reader.

*/ export const postTerminalReadersReaderProcessSetupIntent = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/terminal/readers/{reader}/process_setup_intent' }); }; /** *

Initiates a refund on a Reader

*/ export const postTerminalReadersReaderRefundPayment = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/terminal/readers/{reader}/refund_payment' }); }; /** *

Sets reader display to show cart details.

*/ export const postTerminalReadersReaderSetReaderDisplay = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/terminal/readers/{reader}/set_reader_display' }); }; /** *

Creates a test mode Confirmation Token server side for your integration tests.

*/ export const postTestHelpersConfirmationTokens = (options?: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/test_helpers/confirmation_tokens' }); }; /** *

Create an incoming testmode bank transfer

*/ export const postTestHelpersCustomersCustomerFundCashBalance = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/test_helpers/customers/{customer}/fund_cash_balance' }); }; /** *

Create a test-mode authorization.

*/ export const postTestHelpersIssuingAuthorizations = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/test_helpers/issuing/authorizations' }); }; /** *

Capture a test-mode authorization.

*/ export const postTestHelpersIssuingAuthorizationsAuthorizationCapture = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/test_helpers/issuing/authorizations/{authorization}/capture' }); }; /** *

Expire a test-mode Authorization.

*/ export const postTestHelpersIssuingAuthorizationsAuthorizationExpire = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/test_helpers/issuing/authorizations/{authorization}/expire' }); }; /** *

Increment a test-mode Authorization.

*/ export const postTestHelpersIssuingAuthorizationsAuthorizationIncrement = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/test_helpers/issuing/authorizations/{authorization}/increment' }); }; /** *

Reverse a test-mode Authorization.

*/ export const postTestHelpersIssuingAuthorizationsAuthorizationReverse = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/test_helpers/issuing/authorizations/{authorization}/reverse' }); }; /** *

Updates the shipping status of the specified Issuing Card object to delivered.

*/ export const postTestHelpersIssuingCardsCardShippingDeliver = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/test_helpers/issuing/cards/{card}/shipping/deliver' }); }; /** *

Updates the shipping status of the specified Issuing Card object to failure.

*/ export const postTestHelpersIssuingCardsCardShippingFail = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/test_helpers/issuing/cards/{card}/shipping/fail' }); }; /** *

Updates the shipping status of the specified Issuing Card object to returned.

*/ export const postTestHelpersIssuingCardsCardShippingReturn = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/test_helpers/issuing/cards/{card}/shipping/return' }); }; /** *

Updates the shipping status of the specified Issuing Card object to shipped.

*/ export const postTestHelpersIssuingCardsCardShippingShip = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/test_helpers/issuing/cards/{card}/shipping/ship' }); }; /** *

Updates the status of the specified testmode personalization design object to active.

*/ export const postTestHelpersIssuingPersonalizationDesignsPersonalizationDesignActivate = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/test_helpers/issuing/personalization_designs/{personalization_design}/activate' }); }; /** *

Updates the status of the specified testmode personalization design object to inactive.

*/ export const postTestHelpersIssuingPersonalizationDesignsPersonalizationDesignDeactivate = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/test_helpers/issuing/personalization_designs/{personalization_design}/deactivate' }); }; /** *

Updates the status of the specified testmode personalization design object to rejected.

*/ export const postTestHelpersIssuingPersonalizationDesignsPersonalizationDesignReject = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/test_helpers/issuing/personalization_designs/{personalization_design}/reject' }); }; /** *

Allows the user to capture an arbitrary amount, also known as a forced capture.

*/ export const postTestHelpersIssuingTransactionsCreateForceCapture = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/test_helpers/issuing/transactions/create_force_capture' }); }; /** *

Allows the user to refund an arbitrary amount, also known as a unlinked refund.

*/ export const postTestHelpersIssuingTransactionsCreateUnlinkedRefund = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/test_helpers/issuing/transactions/create_unlinked_refund' }); }; /** *

Refund a test-mode Transaction.

*/ export const postTestHelpersIssuingTransactionsTransactionRefund = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/test_helpers/issuing/transactions/{transaction}/refund' }); }; /** *

Expire a refund with a status of requires_action.

*/ export const postTestHelpersRefundsRefundExpire = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/test_helpers/refunds/{refund}/expire' }); }; /** *

Presents a payment method on a simulated reader. Can be used to simulate accepting a payment, saving a card or refunding a transaction.

*/ export const postTestHelpersTerminalReadersReaderPresentPaymentMethod = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/test_helpers/terminal/readers/{reader}/present_payment_method' }); }; /** *

Returns a list of your test clocks.

*/ export const getTestHelpersTestClocks = (options?: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/test_helpers/test_clocks' }); }; /** *

Creates a new test clock that can be attached to new customers and quotes.

*/ export const postTestHelpersTestClocks = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/test_helpers/test_clocks' }); }; /** *

Deletes a test clock.

*/ export const deleteTestHelpersTestClocksTestClock = (options: Options) => { return (options?.client ?? client).delete({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/test_helpers/test_clocks/{test_clock}' }); }; /** *

Retrieves a test clock.

*/ export const getTestHelpersTestClocksTestClock = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/test_helpers/test_clocks/{test_clock}' }); }; /** *

Starts advancing a test clock to a specified time in the future. Advancement is done when status changes to Ready.

*/ export const postTestHelpersTestClocksTestClockAdvance = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/test_helpers/test_clocks/{test_clock}/advance' }); }; /** *

Transitions a test mode created InboundTransfer to the failed status. The InboundTransfer must already be in the processing state.

*/ export const postTestHelpersTreasuryInboundTransfersIdFail = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/test_helpers/treasury/inbound_transfers/{id}/fail' }); }; /** *

Marks the test mode InboundTransfer object as returned and links the InboundTransfer to a ReceivedDebit. The InboundTransfer must already be in the succeeded state.

*/ export const postTestHelpersTreasuryInboundTransfersIdReturn = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/test_helpers/treasury/inbound_transfers/{id}/return' }); }; /** *

Transitions a test mode created InboundTransfer to the succeeded status. The InboundTransfer must already be in the processing state.

*/ export const postTestHelpersTreasuryInboundTransfersIdSucceed = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/test_helpers/treasury/inbound_transfers/{id}/succeed' }); }; /** *

Updates a test mode created OutboundPayment with tracking details. The OutboundPayment must not be cancelable, and cannot be in the canceled or failed states.

*/ export const postTestHelpersTreasuryOutboundPaymentsId = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/test_helpers/treasury/outbound_payments/{id}' }); }; /** *

Transitions a test mode created OutboundPayment to the failed status. The OutboundPayment must already be in the processing state.

*/ export const postTestHelpersTreasuryOutboundPaymentsIdFail = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/test_helpers/treasury/outbound_payments/{id}/fail' }); }; /** *

Transitions a test mode created OutboundPayment to the posted status. The OutboundPayment must already be in the processing state.

*/ export const postTestHelpersTreasuryOutboundPaymentsIdPost = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/test_helpers/treasury/outbound_payments/{id}/post' }); }; /** *

Transitions a test mode created OutboundPayment to the returned status. The OutboundPayment must already be in the processing state.

*/ export const postTestHelpersTreasuryOutboundPaymentsIdReturn = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/test_helpers/treasury/outbound_payments/{id}/return' }); }; /** *

Updates a test mode created OutboundTransfer with tracking details. The OutboundTransfer must not be cancelable, and cannot be in the canceled or failed states.

*/ export const postTestHelpersTreasuryOutboundTransfersOutboundTransfer = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/test_helpers/treasury/outbound_transfers/{outbound_transfer}' }); }; /** *

Transitions a test mode created OutboundTransfer to the failed status. The OutboundTransfer must already be in the processing state.

*/ export const postTestHelpersTreasuryOutboundTransfersOutboundTransferFail = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/test_helpers/treasury/outbound_transfers/{outbound_transfer}/fail' }); }; /** *

Transitions a test mode created OutboundTransfer to the posted status. The OutboundTransfer must already be in the processing state.

*/ export const postTestHelpersTreasuryOutboundTransfersOutboundTransferPost = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/test_helpers/treasury/outbound_transfers/{outbound_transfer}/post' }); }; /** *

Transitions a test mode created OutboundTransfer to the returned status. The OutboundTransfer must already be in the processing state.

*/ export const postTestHelpersTreasuryOutboundTransfersOutboundTransferReturn = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/test_helpers/treasury/outbound_transfers/{outbound_transfer}/return' }); }; /** *

Use this endpoint to simulate a test mode ReceivedCredit initiated by a third party. In live mode, you can’t directly create ReceivedCredits initiated by third parties.

*/ export const postTestHelpersTreasuryReceivedCredits = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/test_helpers/treasury/received_credits' }); }; /** *

Use this endpoint to simulate a test mode ReceivedDebit initiated by a third party. In live mode, you can’t directly create ReceivedDebits initiated by third parties.

*/ export const postTestHelpersTreasuryReceivedDebits = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/test_helpers/treasury/received_debits' }); }; /** *

Creates a single-use token that represents a bank account’s details. * You can use this token with any API method in place of a bank account dictionary. You can only use this token once. To do so, attach it to a connected account where controller.requirement_collection is application, which includes Custom accounts.

*/ export const postTokens = (options?: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/tokens' }); }; /** *

Retrieves the token with the given ID.

*/ export const getTokensToken = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/tokens/{token}' }); }; /** *

Returns a list of top-ups.

*/ export const getTopups = (options?: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/topups' }); }; /** *

Top up the balance of an account

*/ export const postTopups = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/topups' }); }; /** *

Retrieves the details of a top-up that has previously been created. Supply the unique top-up ID that was returned from your previous request, and Stripe will return the corresponding top-up information.

*/ export const getTopupsTopup = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/topups/{topup}' }); }; /** *

Updates the metadata of a top-up. Other top-up details are not editable by design.

*/ export const postTopupsTopup = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/topups/{topup}' }); }; /** *

Cancels a top-up. Only pending top-ups can be canceled.

*/ export const postTopupsTopupCancel = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/topups/{topup}/cancel' }); }; /** *

Returns a list of existing transfers sent to connected accounts. The transfers are returned in sorted order, with the most recently created transfers appearing first.

*/ export const getTransfers = (options?: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/transfers' }); }; /** *

To send funds from your Stripe account to a connected account, you create a new transfer object. Your Stripe balance must be able to cover the transfer amount, or you’ll receive an “Insufficient Funds” error.

*/ export const postTransfers = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/transfers' }); }; /** *

You can see a list of the reversals belonging to a specific transfer. Note that the 10 most recent reversals are always available by default on the transfer object. If you need more than those 10, you can use this API method and the limit and starting_after parameters to page through additional reversals.

*/ export const getTransfersIdReversals = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/transfers/{id}/reversals' }); }; /** *

When you create a new reversal, you must specify a transfer to create it on.

* *

When reversing transfers, you can optionally reverse part of the transfer. You can do so as many times as you wish until the entire transfer has been reversed.

* *

Once entirely reversed, a transfer can’t be reversed again. This method will return an error when called on an already-reversed transfer, or when trying to reverse more money than is left on a transfer.

*/ export const postTransfersIdReversals = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/transfers/{id}/reversals' }); }; /** *

Retrieves the details of an existing transfer. Supply the unique transfer ID from either a transfer creation request or the transfer list, and Stripe will return the corresponding transfer information.

*/ export const getTransfersTransfer = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/transfers/{transfer}' }); }; /** *

Updates the specified transfer by setting the values of the parameters passed. Any parameters not provided will be left unchanged.

* *

This request accepts only metadata as an argument.

*/ export const postTransfersTransfer = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/transfers/{transfer}' }); }; /** *

By default, you can see the 10 most recent reversals stored directly on the transfer object, but you can also retrieve details about a specific reversal stored on the transfer.

*/ export const getTransfersTransferReversalsId = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/transfers/{transfer}/reversals/{id}' }); }; /** *

Updates the specified reversal by setting the values of the parameters passed. Any parameters not provided will be left unchanged.

* *

This request only accepts metadata and description as arguments.

*/ export const postTransfersTransferReversalsId = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/transfers/{transfer}/reversals/{id}' }); }; /** *

Returns a list of CreditReversals.

*/ export const getTreasuryCreditReversals = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/treasury/credit_reversals' }); }; /** *

Reverses a ReceivedCredit and creates a CreditReversal object.

*/ export const postTreasuryCreditReversals = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/treasury/credit_reversals' }); }; /** *

Retrieves the details of an existing CreditReversal by passing the unique CreditReversal ID from either the CreditReversal creation request or CreditReversal list

*/ export const getTreasuryCreditReversalsCreditReversal = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/treasury/credit_reversals/{credit_reversal}' }); }; /** *

Returns a list of DebitReversals.

*/ export const getTreasuryDebitReversals = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/treasury/debit_reversals' }); }; /** *

Reverses a ReceivedDebit and creates a DebitReversal object.

*/ export const postTreasuryDebitReversals = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/treasury/debit_reversals' }); }; /** *

Retrieves a DebitReversal object.

*/ export const getTreasuryDebitReversalsDebitReversal = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/treasury/debit_reversals/{debit_reversal}' }); }; /** *

Returns a list of FinancialAccounts.

*/ export const getTreasuryFinancialAccounts = (options?: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/treasury/financial_accounts' }); }; /** *

Creates a new FinancialAccount. For now, each connected account can only have one FinancialAccount.

*/ export const postTreasuryFinancialAccounts = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/treasury/financial_accounts' }); }; /** *

Retrieves the details of a FinancialAccount.

*/ export const getTreasuryFinancialAccountsFinancialAccount = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/treasury/financial_accounts/{financial_account}' }); }; /** *

Updates the details of a FinancialAccount.

*/ export const postTreasuryFinancialAccountsFinancialAccount = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/treasury/financial_accounts/{financial_account}' }); }; /** *

Retrieves Features information associated with the FinancialAccount.

*/ export const getTreasuryFinancialAccountsFinancialAccountFeatures = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/treasury/financial_accounts/{financial_account}/features' }); }; /** *

Updates the Features associated with a FinancialAccount.

*/ export const postTreasuryFinancialAccountsFinancialAccountFeatures = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/treasury/financial_accounts/{financial_account}/features' }); }; /** *

Returns a list of InboundTransfers sent from the specified FinancialAccount.

*/ export const getTreasuryInboundTransfers = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/treasury/inbound_transfers' }); }; /** *

Creates an InboundTransfer.

*/ export const postTreasuryInboundTransfers = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/treasury/inbound_transfers' }); }; /** *

Retrieves the details of an existing InboundTransfer.

*/ export const getTreasuryInboundTransfersId = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/treasury/inbound_transfers/{id}' }); }; /** *

Cancels an InboundTransfer.

*/ export const postTreasuryInboundTransfersInboundTransferCancel = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/treasury/inbound_transfers/{inbound_transfer}/cancel' }); }; /** *

Returns a list of OutboundPayments sent from the specified FinancialAccount.

*/ export const getTreasuryOutboundPayments = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/treasury/outbound_payments' }); }; /** *

Creates an OutboundPayment.

*/ export const postTreasuryOutboundPayments = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/treasury/outbound_payments' }); }; /** *

Retrieves the details of an existing OutboundPayment by passing the unique OutboundPayment ID from either the OutboundPayment creation request or OutboundPayment list.

*/ export const getTreasuryOutboundPaymentsId = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/treasury/outbound_payments/{id}' }); }; /** *

Cancel an OutboundPayment.

*/ export const postTreasuryOutboundPaymentsIdCancel = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/treasury/outbound_payments/{id}/cancel' }); }; /** *

Returns a list of OutboundTransfers sent from the specified FinancialAccount.

*/ export const getTreasuryOutboundTransfers = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/treasury/outbound_transfers' }); }; /** *

Creates an OutboundTransfer.

*/ export const postTreasuryOutboundTransfers = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/treasury/outbound_transfers' }); }; /** *

Retrieves the details of an existing OutboundTransfer by passing the unique OutboundTransfer ID from either the OutboundTransfer creation request or OutboundTransfer list.

*/ export const getTreasuryOutboundTransfersOutboundTransfer = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/treasury/outbound_transfers/{outbound_transfer}' }); }; /** *

An OutboundTransfer can be canceled if the funds have not yet been paid out.

*/ export const postTreasuryOutboundTransfersOutboundTransferCancel = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/treasury/outbound_transfers/{outbound_transfer}/cancel' }); }; /** *

Returns a list of ReceivedCredits.

*/ export const getTreasuryReceivedCredits = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/treasury/received_credits' }); }; /** *

Retrieves the details of an existing ReceivedCredit by passing the unique ReceivedCredit ID from the ReceivedCredit list.

*/ export const getTreasuryReceivedCreditsId = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/treasury/received_credits/{id}' }); }; /** *

Returns a list of ReceivedDebits.

*/ export const getTreasuryReceivedDebits = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/treasury/received_debits' }); }; /** *

Retrieves the details of an existing ReceivedDebit by passing the unique ReceivedDebit ID from the ReceivedDebit list

*/ export const getTreasuryReceivedDebitsId = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/treasury/received_debits/{id}' }); }; /** *

Retrieves a list of TransactionEntry objects.

*/ export const getTreasuryTransactionEntries = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/treasury/transaction_entries' }); }; /** *

Retrieves a TransactionEntry object.

*/ export const getTreasuryTransactionEntriesId = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/treasury/transaction_entries/{id}' }); }; /** *

Retrieves a list of Transaction objects.

*/ export const getTreasuryTransactions = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/treasury/transactions' }); }; /** *

Retrieves the details of an existing Transaction.

*/ export const getTreasuryTransactionsId = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/treasury/transactions/{id}' }); }; /** *

Returns a list of your webhook endpoints.

*/ export const getWebhookEndpoints = (options?: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/webhook_endpoints' }); }; /** *

A webhook endpoint must have a url and a list of enabled_events. You may optionally specify the Boolean connect parameter. If set to true, then a Connect webhook endpoint that notifies the specified url about events from all connected accounts is created; otherwise an account webhook endpoint that notifies the specified url only about events from your account is created. You can also create webhook endpoints in the webhooks settings section of the Dashboard.

*/ export const postWebhookEndpoints = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/webhook_endpoints' }); }; /** *

You can also delete webhook endpoints via the webhook endpoint management page of the Stripe dashboard.

*/ export const deleteWebhookEndpointsWebhookEndpoint = (options: Options) => { return (options?.client ?? client).delete({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/webhook_endpoints/{webhook_endpoint}' }); }; /** *

Retrieves the webhook endpoint with the given ID.

*/ export const getWebhookEndpointsWebhookEndpoint = (options: Options) => { return (options?.client ?? client).get({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/webhook_endpoints/{webhook_endpoint}' }); }; /** *

Updates the webhook endpoint. You may edit the url, the list of enabled_events, and the status of your endpoint.

*/ export const postWebhookEndpointsWebhookEndpoint = (options: Options) => { return (options?.client ?? client).post({ ...options, ...urlSearchParamsBodySerializer, headers: { 'Content-Type': 'application/x-www-form-urlencoded', ...options?.headers }, url: '/v1/webhook_endpoints/{webhook_endpoint}' }); };