heymegabyte/agent-skills / skills/stripe
stripe
UnverifiedStripe API API skill — auto-forged from OpenAPI 2026-05-27.dahlia. The Stripe REST API. Please see https://stripe.com/docs/api for more details.
client.ts
View on GitHub// Auto-generated by forge-skill-from-openapi
// API: stripe
// DO NOT EDIT — re-run forge to regenerate
import type * as T from './types.js';
function appendQuery(url: string, query?: Record<string, string>): string {
if (!query || Object.keys(query).length === 0) return url;
const qs = new URLSearchParams(query).toString();
return url.includes('?') ? `${url}&${qs}` : `${url}?${qs}`;
}
export class StripeClient {
constructor(
private readonly apiToken: string,
private readonly baseUrl: string = 'https://api.stripe.com/',
) {}
private async request<T>(method: string, url: string, body?: string): Promise<T> {
const res = await fetch(url, {
method,
headers: {
'Authorization': `Bearer ${this.apiToken}`,
'Content-Type': 'application/json',
'Accept': 'application/json',
},
body,
});
if (!res.ok) {
const text = await res.text().catch(() => '');
throw new Error(`${method} ${url} → ${res.status}: ${text}`);
}
if (res.status === 204) return undefined as T;
return res.json() as T;
}
async GetAccount(query?: Record<string, string>): Promise<GetAccountResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/account`, query));
},
async PostAccountLinks(body?: PostAccountLinksBody): Promise<PostAccountLinksResponse> {
return this.request('POST', `https://api.stripe.com//v1/account_links`, body ? JSON.stringify(body) : undefined);
},
async PostAccountSessions(body?: PostAccountSessionsBody): Promise<PostAccountSessionsResponse> {
return this.request('POST', `https://api.stripe.com//v1/account_sessions`, body ? JSON.stringify(body) : undefined);
},
async GetAccounts(query?: Record<string, string>): Promise<GetAccountsResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/accounts`, query));
},
async PostAccounts(body?: PostAccountsBody): Promise<PostAccountsResponse> {
return this.request('POST', `https://api.stripe.com//v1/accounts`, body ? JSON.stringify(body) : undefined);
},
async GetAccountsAccount(account: string, query?: Record<string, string>): Promise<GetAccountsAccountResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/accounts/${account}`, query));
},
async PostAccountsAccount(account: string, body?: PostAccountsAccountBody): Promise<PostAccountsAccountResponse> {
return this.request('POST', `https://api.stripe.com//v1/accounts/${account}`, body ? JSON.stringify(body) : undefined);
},
async DeleteAccountsAccount(account: string): Promise<DeleteAccountsAccountResponse> {
return this.request('DELETE', `https://api.stripe.com//v1/accounts/${account}`);
},
async PostAccountsAccountBankAccounts(account: string, body?: PostAccountsAccountBankAccountsBody): Promise<PostAccountsAccountBankAccountsResponse> {
return this.request('POST', `https://api.stripe.com//v1/accounts/${account}/bank_accounts`, body ? JSON.stringify(body) : undefined);
},
async GetAccountsAccountBankAccountsId(account: string, id: string, query?: Record<string, string>): Promise<GetAccountsAccountBankAccountsIdResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/accounts/${account}/bank_accounts/${id}`, query));
},
async PostAccountsAccountBankAccountsId(account: string, id: string, body?: PostAccountsAccountBankAccountsIdBody): Promise<PostAccountsAccountBankAccountsIdResponse> {
return this.request('POST', `https://api.stripe.com//v1/accounts/${account}/bank_accounts/${id}`, body ? JSON.stringify(body) : undefined);
},
async DeleteAccountsAccountBankAccountsId(account: string, id: string): Promise<DeleteAccountsAccountBankAccountsIdResponse> {
return this.request('DELETE', `https://api.stripe.com//v1/accounts/${account}/bank_accounts/${id}`);
},
async GetAccountsAccountCapabilities(account: string, query?: Record<string, string>): Promise<GetAccountsAccountCapabilitiesResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/accounts/${account}/capabilities`, query));
},
async GetAccountsAccountCapabilitiesCapability(account: string, capability: string, query?: Record<string, string>): Promise<GetAccountsAccountCapabilitiesCapabilityResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/accounts/${account}/capabilities/${capability}`, query));
},
async PostAccountsAccountCapabilitiesCapability(account: string, capability: string, body?: PostAccountsAccountCapabilitiesCapabilityBody): Promise<PostAccountsAccountCapabilitiesCapabilityResponse> {
return this.request('POST', `https://api.stripe.com//v1/accounts/${account}/capabilities/${capability}`, body ? JSON.stringify(body) : undefined);
},
async GetAccountsAccountExternalAccounts(account: string, query?: Record<string, string>): Promise<GetAccountsAccountExternalAccountsResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/accounts/${account}/external_accounts`, query));
},
async PostAccountsAccountExternalAccounts(account: string, body?: PostAccountsAccountExternalAccountsBody): Promise<PostAccountsAccountExternalAccountsResponse> {
return this.request('POST', `https://api.stripe.com//v1/accounts/${account}/external_accounts`, body ? JSON.stringify(body) : undefined);
},
async GetAccountsAccountExternalAccountsId(account: string, id: string, query?: Record<string, string>): Promise<GetAccountsAccountExternalAccountsIdResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/accounts/${account}/external_accounts/${id}`, query));
},
async PostAccountsAccountExternalAccountsId(account: string, id: string, body?: PostAccountsAccountExternalAccountsIdBody): Promise<PostAccountsAccountExternalAccountsIdResponse> {
return this.request('POST', `https://api.stripe.com//v1/accounts/${account}/external_accounts/${id}`, body ? JSON.stringify(body) : undefined);
},
async DeleteAccountsAccountExternalAccountsId(account: string, id: string): Promise<DeleteAccountsAccountExternalAccountsIdResponse> {
return this.request('DELETE', `https://api.stripe.com//v1/accounts/${account}/external_accounts/${id}`);
},
async PostAccountsAccountLoginLinks(account: string, body?: PostAccountsAccountLoginLinksBody): Promise<PostAccountsAccountLoginLinksResponse> {
return this.request('POST', `https://api.stripe.com//v1/accounts/${account}/login_links`, body ? JSON.stringify(body) : undefined);
},
async GetAccountsAccountPeople(account: string, query?: Record<string, string>): Promise<GetAccountsAccountPeopleResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/accounts/${account}/people`, query));
},
async PostAccountsAccountPeople(account: string, body?: PostAccountsAccountPeopleBody): Promise<PostAccountsAccountPeopleResponse> {
return this.request('POST', `https://api.stripe.com//v1/accounts/${account}/people`, body ? JSON.stringify(body) : undefined);
},
async GetAccountsAccountPeoplePerson(account: string, person: string, query?: Record<string, string>): Promise<GetAccountsAccountPeoplePersonResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/accounts/${account}/people/${person}`, query));
},
async PostAccountsAccountPeoplePerson(account: string, person: string, body?: PostAccountsAccountPeoplePersonBody): Promise<PostAccountsAccountPeoplePersonResponse> {
return this.request('POST', `https://api.stripe.com//v1/accounts/${account}/people/${person}`, body ? JSON.stringify(body) : undefined);
},
async DeleteAccountsAccountPeoplePerson(account: string, person: string): Promise<DeleteAccountsAccountPeoplePersonResponse> {
return this.request('DELETE', `https://api.stripe.com//v1/accounts/${account}/people/${person}`);
},
async GetAccountsAccountPersons(account: string, query?: Record<string, string>): Promise<GetAccountsAccountPersonsResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/accounts/${account}/persons`, query));
},
async PostAccountsAccountPersons(account: string, body?: PostAccountsAccountPersonsBody): Promise<PostAccountsAccountPersonsResponse> {
return this.request('POST', `https://api.stripe.com//v1/accounts/${account}/persons`, body ? JSON.stringify(body) : undefined);
},
async GetAccountsAccountPersonsPerson(account: string, person: string, query?: Record<string, string>): Promise<GetAccountsAccountPersonsPersonResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/accounts/${account}/persons/${person}`, query));
},
async PostAccountsAccountPersonsPerson(account: string, person: string, body?: PostAccountsAccountPersonsPersonBody): Promise<PostAccountsAccountPersonsPersonResponse> {
return this.request('POST', `https://api.stripe.com//v1/accounts/${account}/persons/${person}`, body ? JSON.stringify(body) : undefined);
},
async DeleteAccountsAccountPersonsPerson(account: string, person: string): Promise<DeleteAccountsAccountPersonsPersonResponse> {
return this.request('DELETE', `https://api.stripe.com//v1/accounts/${account}/persons/${person}`);
},
async PostAccountsAccountReject(account: string, body?: PostAccountsAccountRejectBody): Promise<PostAccountsAccountRejectResponse> {
return this.request('POST', `https://api.stripe.com//v1/accounts/${account}/reject`, body ? JSON.stringify(body) : undefined);
},
async GetApplePayDomains(query?: Record<string, string>): Promise<GetApplePayDomainsResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/apple_pay/domains`, query));
},
async PostApplePayDomains(body?: PostApplePayDomainsBody): Promise<PostApplePayDomainsResponse> {
return this.request('POST', `https://api.stripe.com//v1/apple_pay/domains`, body ? JSON.stringify(body) : undefined);
},
async GetApplePayDomainsDomain(domain: string, query?: Record<string, string>): Promise<GetApplePayDomainsDomainResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/apple_pay/domains/${domain}`, query));
},
async DeleteApplePayDomainsDomain(domain: string): Promise<DeleteApplePayDomainsDomainResponse> {
return this.request('DELETE', `https://api.stripe.com//v1/apple_pay/domains/${domain}`);
},
async GetApplicationFees(query?: Record<string, string>): Promise<GetApplicationFeesResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/application_fees`, query));
},
async GetApplicationFeesFeeRefundsId(fee: string, id: string, query?: Record<string, string>): Promise<GetApplicationFeesFeeRefundsIdResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/application_fees/${fee}/refunds/${id}`, query));
},
async PostApplicationFeesFeeRefundsId(fee: string, id: string, body?: PostApplicationFeesFeeRefundsIdBody): Promise<PostApplicationFeesFeeRefundsIdResponse> {
return this.request('POST', `https://api.stripe.com//v1/application_fees/${fee}/refunds/${id}`, body ? JSON.stringify(body) : undefined);
},
async GetApplicationFeesId(id: string, query?: Record<string, string>): Promise<GetApplicationFeesIdResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/application_fees/${id}`, query));
},
async PostApplicationFeesIdRefund(id: string, body?: PostApplicationFeesIdRefundBody): Promise<PostApplicationFeesIdRefundResponse> {
return this.request('POST', `https://api.stripe.com//v1/application_fees/${id}/refund`, body ? JSON.stringify(body) : undefined);
},
async GetApplicationFeesIdRefunds(id: string, query?: Record<string, string>): Promise<GetApplicationFeesIdRefundsResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/application_fees/${id}/refunds`, query));
},
async PostApplicationFeesIdRefunds(id: string, body?: PostApplicationFeesIdRefundsBody): Promise<PostApplicationFeesIdRefundsResponse> {
return this.request('POST', `https://api.stripe.com//v1/application_fees/${id}/refunds`, body ? JSON.stringify(body) : undefined);
},
async GetAppsSecrets(query?: Record<string, string>): Promise<GetAppsSecretsResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/apps/secrets`, query));
},
async PostAppsSecrets(body?: PostAppsSecretsBody): Promise<PostAppsSecretsResponse> {
return this.request('POST', `https://api.stripe.com//v1/apps/secrets`, body ? JSON.stringify(body) : undefined);
},
async PostAppsSecretsDelete(body?: PostAppsSecretsDeleteBody): Promise<PostAppsSecretsDeleteResponse> {
return this.request('POST', `https://api.stripe.com//v1/apps/secrets/delete`, body ? JSON.stringify(body) : undefined);
},
async GetAppsSecretsFind(query?: Record<string, string>): Promise<GetAppsSecretsFindResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/apps/secrets/find`, query));
},
async GetBalance(query?: Record<string, string>): Promise<GetBalanceResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/balance`, query));
},
async GetBalanceHistory(query?: Record<string, string>): Promise<GetBalanceHistoryResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/balance/history`, query));
},
async GetBalanceHistoryId(id: string, query?: Record<string, string>): Promise<GetBalanceHistoryIdResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/balance/history/${id}`, query));
},
async GetBalanceSettings(query?: Record<string, string>): Promise<GetBalanceSettingsResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/balance_settings`, query));
},
async PostBalanceSettings(body?: PostBalanceSettingsBody): Promise<PostBalanceSettingsResponse> {
return this.request('POST', `https://api.stripe.com//v1/balance_settings`, body ? JSON.stringify(body) : undefined);
},
async GetBalanceTransactions(query?: Record<string, string>): Promise<GetBalanceTransactionsResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/balance_transactions`, query));
},
async GetBalanceTransactionsId(id: string, query?: Record<string, string>): Promise<GetBalanceTransactionsIdResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/balance_transactions/${id}`, query));
},
async GetBillingAlerts(query?: Record<string, string>): Promise<GetBillingAlertsResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/billing/alerts`, query));
},
async PostBillingAlerts(body?: PostBillingAlertsBody): Promise<PostBillingAlertsResponse> {
return this.request('POST', `https://api.stripe.com//v1/billing/alerts`, body ? JSON.stringify(body) : undefined);
},
async GetBillingAlertsId(id: string, query?: Record<string, string>): Promise<GetBillingAlertsIdResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/billing/alerts/${id}`, query));
},
async PostBillingAlertsIdActivate(id: string, body?: PostBillingAlertsIdActivateBody): Promise<PostBillingAlertsIdActivateResponse> {
return this.request('POST', `https://api.stripe.com//v1/billing/alerts/${id}/activate`, body ? JSON.stringify(body) : undefined);
},
async PostBillingAlertsIdArchive(id: string, body?: PostBillingAlertsIdArchiveBody): Promise<PostBillingAlertsIdArchiveResponse> {
return this.request('POST', `https://api.stripe.com//v1/billing/alerts/${id}/archive`, body ? JSON.stringify(body) : undefined);
},
async PostBillingAlertsIdDeactivate(id: string, body?: PostBillingAlertsIdDeactivateBody): Promise<PostBillingAlertsIdDeactivateResponse> {
return this.request('POST', `https://api.stripe.com//v1/billing/alerts/${id}/deactivate`, body ? JSON.stringify(body) : undefined);
},
async GetBillingCreditBalanceSummary(query?: Record<string, string>): Promise<GetBillingCreditBalanceSummaryResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/billing/credit_balance_summary`, query));
},
async GetBillingCreditBalanceTransactions(query?: Record<string, string>): Promise<GetBillingCreditBalanceTransactionsResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/billing/credit_balance_transactions`, query));
},
async GetBillingCreditBalanceTransactionsId(id: string, query?: Record<string, string>): Promise<GetBillingCreditBalanceTransactionsIdResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/billing/credit_balance_transactions/${id}`, query));
},
async GetBillingCreditGrants(query?: Record<string, string>): Promise<GetBillingCreditGrantsResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/billing/credit_grants`, query));
},
async PostBillingCreditGrants(body?: PostBillingCreditGrantsBody): Promise<PostBillingCreditGrantsResponse> {
return this.request('POST', `https://api.stripe.com//v1/billing/credit_grants`, body ? JSON.stringify(body) : undefined);
},
async GetBillingCreditGrantsId(id: string, query?: Record<string, string>): Promise<GetBillingCreditGrantsIdResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/billing/credit_grants/${id}`, query));
},
async PostBillingCreditGrantsId(id: string, body?: PostBillingCreditGrantsIdBody): Promise<PostBillingCreditGrantsIdResponse> {
return this.request('POST', `https://api.stripe.com//v1/billing/credit_grants/${id}`, body ? JSON.stringify(body) : undefined);
},
async PostBillingCreditGrantsIdExpire(id: string, body?: PostBillingCreditGrantsIdExpireBody): Promise<PostBillingCreditGrantsIdExpireResponse> {
return this.request('POST', `https://api.stripe.com//v1/billing/credit_grants/${id}/expire`, body ? JSON.stringify(body) : undefined);
},
async PostBillingCreditGrantsIdVoid(id: string, body?: PostBillingCreditGrantsIdVoidBody): Promise<PostBillingCreditGrantsIdVoidResponse> {
return this.request('POST', `https://api.stripe.com//v1/billing/credit_grants/${id}/void`, body ? JSON.stringify(body) : undefined);
},
async PostBillingMeterEventAdjustments(body?: PostBillingMeterEventAdjustmentsBody): Promise<PostBillingMeterEventAdjustmentsResponse> {
return this.request('POST', `https://api.stripe.com//v1/billing/meter_event_adjustments`, body ? JSON.stringify(body) : undefined);
},
async PostBillingMeterEvents(body?: PostBillingMeterEventsBody): Promise<PostBillingMeterEventsResponse> {
return this.request('POST', `https://api.stripe.com//v1/billing/meter_events`, body ? JSON.stringify(body) : undefined);
},
async GetBillingMeters(query?: Record<string, string>): Promise<GetBillingMetersResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/billing/meters`, query));
},
async PostBillingMeters(body?: PostBillingMetersBody): Promise<PostBillingMetersResponse> {
return this.request('POST', `https://api.stripe.com//v1/billing/meters`, body ? JSON.stringify(body) : undefined);
},
async GetBillingMetersId(id: string, query?: Record<string, string>): Promise<GetBillingMetersIdResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/billing/meters/${id}`, query));
},
async PostBillingMetersId(id: string, body?: PostBillingMetersIdBody): Promise<PostBillingMetersIdResponse> {
return this.request('POST', `https://api.stripe.com//v1/billing/meters/${id}`, body ? JSON.stringify(body) : undefined);
},
async PostBillingMetersIdDeactivate(id: string, body?: PostBillingMetersIdDeactivateBody): Promise<PostBillingMetersIdDeactivateResponse> {
return this.request('POST', `https://api.stripe.com//v1/billing/meters/${id}/deactivate`, body ? JSON.stringify(body) : undefined);
},
async GetBillingMetersIdEventSummaries(id: string, query?: Record<string, string>): Promise<GetBillingMetersIdEventSummariesResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/billing/meters/${id}/event_summaries`, query));
},
async PostBillingMetersIdReactivate(id: string, body?: PostBillingMetersIdReactivateBody): Promise<PostBillingMetersIdReactivateResponse> {
return this.request('POST', `https://api.stripe.com//v1/billing/meters/${id}/reactivate`, body ? JSON.stringify(body) : undefined);
},
async GetBillingPortalConfigurations(query?: Record<string, string>): Promise<GetBillingPortalConfigurationsResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/billing_portal/configurations`, query));
},
async PostBillingPortalConfigurations(body?: PostBillingPortalConfigurationsBody): Promise<PostBillingPortalConfigurationsResponse> {
return this.request('POST', `https://api.stripe.com//v1/billing_portal/configurations`, body ? JSON.stringify(body) : undefined);
},
async GetBillingPortalConfigurationsConfiguration(configuration: string, query?: Record<string, string>): Promise<GetBillingPortalConfigurationsConfigurationResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/billing_portal/configurations/${configuration}`, query));
},
async PostBillingPortalConfigurationsConfiguration(configuration: string, body?: PostBillingPortalConfigurationsConfigurationBody): Promise<PostBillingPortalConfigurationsConfigurationResponse> {
return this.request('POST', `https://api.stripe.com//v1/billing_portal/configurations/${configuration}`, body ? JSON.stringify(body) : undefined);
},
async PostBillingPortalSessions(body?: PostBillingPortalSessionsBody): Promise<PostBillingPortalSessionsResponse> {
return this.request('POST', `https://api.stripe.com//v1/billing_portal/sessions`, body ? JSON.stringify(body) : undefined);
},
async GetCharges(query?: Record<string, string>): Promise<GetChargesResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/charges`, query));
},
async PostCharges(body?: PostChargesBody): Promise<PostChargesResponse> {
return this.request('POST', `https://api.stripe.com//v1/charges`, body ? JSON.stringify(body) : undefined);
},
async GetChargesSearch(query?: Record<string, string>): Promise<GetChargesSearchResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/charges/search`, query));
},
async GetChargesCharge(charge: string, query?: Record<string, string>): Promise<GetChargesChargeResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/charges/${charge}`, query));
},
async PostChargesCharge(charge: string, body?: PostChargesChargeBody): Promise<PostChargesChargeResponse> {
return this.request('POST', `https://api.stripe.com//v1/charges/${charge}`, body ? JSON.stringify(body) : undefined);
},
async PostChargesChargeCapture(charge: string, body?: PostChargesChargeCaptureBody): Promise<PostChargesChargeCaptureResponse> {
return this.request('POST', `https://api.stripe.com//v1/charges/${charge}/capture`, body ? JSON.stringify(body) : undefined);
},
async GetChargesChargeDispute(charge: string, query?: Record<string, string>): Promise<GetChargesChargeDisputeResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/charges/${charge}/dispute`, query));
},
async PostChargesChargeDispute(charge: string, body?: PostChargesChargeDisputeBody): Promise<PostChargesChargeDisputeResponse> {
return this.request('POST', `https://api.stripe.com//v1/charges/${charge}/dispute`, body ? JSON.stringify(body) : undefined);
},
async PostChargesChargeDisputeClose(charge: string, body?: PostChargesChargeDisputeCloseBody): Promise<PostChargesChargeDisputeCloseResponse> {
return this.request('POST', `https://api.stripe.com//v1/charges/${charge}/dispute/close`, body ? JSON.stringify(body) : undefined);
},
async PostChargesChargeRefund(charge: string, body?: PostChargesChargeRefundBody): Promise<PostChargesChargeRefundResponse> {
return this.request('POST', `https://api.stripe.com//v1/charges/${charge}/refund`, body ? JSON.stringify(body) : undefined);
},
async GetChargesChargeRefunds(charge: string, query?: Record<string, string>): Promise<GetChargesChargeRefundsResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/charges/${charge}/refunds`, query));
},
async PostChargesChargeRefunds(charge: string, body?: PostChargesChargeRefundsBody): Promise<PostChargesChargeRefundsResponse> {
return this.request('POST', `https://api.stripe.com//v1/charges/${charge}/refunds`, body ? JSON.stringify(body) : undefined);
},
async GetChargesChargeRefundsRefund(charge: string, refund: string, query?: Record<string, string>): Promise<GetChargesChargeRefundsRefundResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/charges/${charge}/refunds/${refund}`, query));
},
async PostChargesChargeRefundsRefund(charge: string, refund: string, body?: PostChargesChargeRefundsRefundBody): Promise<PostChargesChargeRefundsRefundResponse> {
return this.request('POST', `https://api.stripe.com//v1/charges/${charge}/refunds/${refund}`, body ? JSON.stringify(body) : undefined);
},
async GetCheckoutSessions(query?: Record<string, string>): Promise<GetCheckoutSessionsResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/checkout/sessions`, query));
},
async PostCheckoutSessions(body?: PostCheckoutSessionsBody): Promise<PostCheckoutSessionsResponse> {
return this.request('POST', `https://api.stripe.com//v1/checkout/sessions`, body ? JSON.stringify(body) : undefined);
},
async GetCheckoutSessionsSession(session: string, query?: Record<string, string>): Promise<GetCheckoutSessionsSessionResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/checkout/sessions/${session}`, query));
},
async PostCheckoutSessionsSession(session: string, body?: PostCheckoutSessionsSessionBody): Promise<PostCheckoutSessionsSessionResponse> {
return this.request('POST', `https://api.stripe.com//v1/checkout/sessions/${session}`, body ? JSON.stringify(body) : undefined);
},
async PostCheckoutSessionsSessionExpire(session: string, body?: PostCheckoutSessionsSessionExpireBody): Promise<PostCheckoutSessionsSessionExpireResponse> {
return this.request('POST', `https://api.stripe.com//v1/checkout/sessions/${session}/expire`, body ? JSON.stringify(body) : undefined);
},
async GetCheckoutSessionsSessionLineItems(session: string, query?: Record<string, string>): Promise<GetCheckoutSessionsSessionLineItemsResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/checkout/sessions/${session}/line_items`, query));
},
async GetClimateOrders(query?: Record<string, string>): Promise<GetClimateOrdersResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/climate/orders`, query));
},
async PostClimateOrders(body?: PostClimateOrdersBody): Promise<PostClimateOrdersResponse> {
return this.request('POST', `https://api.stripe.com//v1/climate/orders`, body ? JSON.stringify(body) : undefined);
},
async GetClimateOrdersOrder(order: string, query?: Record<string, string>): Promise<GetClimateOrdersOrderResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/climate/orders/${order}`, query));
},
async PostClimateOrdersOrder(order: string, body?: PostClimateOrdersOrderBody): Promise<PostClimateOrdersOrderResponse> {
return this.request('POST', `https://api.stripe.com//v1/climate/orders/${order}`, body ? JSON.stringify(body) : undefined);
},
async PostClimateOrdersOrderCancel(order: string, body?: PostClimateOrdersOrderCancelBody): Promise<PostClimateOrdersOrderCancelResponse> {
return this.request('POST', `https://api.stripe.com//v1/climate/orders/${order}/cancel`, body ? JSON.stringify(body) : undefined);
},
async GetClimateProducts(query?: Record<string, string>): Promise<GetClimateProductsResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/climate/products`, query));
},
async GetClimateProductsProduct(product: string, query?: Record<string, string>): Promise<GetClimateProductsProductResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/climate/products/${product}`, query));
},
async GetClimateSuppliers(query?: Record<string, string>): Promise<GetClimateSuppliersResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/climate/suppliers`, query));
},
async GetClimateSuppliersSupplier(supplier: string, query?: Record<string, string>): Promise<GetClimateSuppliersSupplierResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/climate/suppliers/${supplier}`, query));
},
async GetConfirmationTokensConfirmationToken(confirmation_token: string, query?: Record<string, string>): Promise<GetConfirmationTokensConfirmationTokenResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/confirmation_tokens/${confirmation_token}`, query));
},
async GetCountrySpecs(query?: Record<string, string>): Promise<GetCountrySpecsResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/country_specs`, query));
},
async GetCountrySpecsCountry(country: string, query?: Record<string, string>): Promise<GetCountrySpecsCountryResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/country_specs/${country}`, query));
},
async GetCoupons(query?: Record<string, string>): Promise<GetCouponsResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/coupons`, query));
},
async PostCoupons(body?: PostCouponsBody): Promise<PostCouponsResponse> {
return this.request('POST', `https://api.stripe.com//v1/coupons`, body ? JSON.stringify(body) : undefined);
},
async GetCouponsCoupon(coupon: string, query?: Record<string, string>): Promise<GetCouponsCouponResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/coupons/${coupon}`, query));
},
async PostCouponsCoupon(coupon: string, body?: PostCouponsCouponBody): Promise<PostCouponsCouponResponse> {
return this.request('POST', `https://api.stripe.com//v1/coupons/${coupon}`, body ? JSON.stringify(body) : undefined);
},
async DeleteCouponsCoupon(coupon: string): Promise<DeleteCouponsCouponResponse> {
return this.request('DELETE', `https://api.stripe.com//v1/coupons/${coupon}`);
},
async GetCreditNotes(query?: Record<string, string>): Promise<GetCreditNotesResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/credit_notes`, query));
},
async PostCreditNotes(body?: PostCreditNotesBody): Promise<PostCreditNotesResponse> {
return this.request('POST', `https://api.stripe.com//v1/credit_notes`, body ? JSON.stringify(body) : undefined);
},
async GetCreditNotesPreview(query?: Record<string, string>): Promise<GetCreditNotesPreviewResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/credit_notes/preview`, query));
},
async GetCreditNotesPreviewLines(query?: Record<string, string>): Promise<GetCreditNotesPreviewLinesResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/credit_notes/preview/lines`, query));
},
async GetCreditNotesCreditNoteLines(credit_note: string, query?: Record<string, string>): Promise<GetCreditNotesCreditNoteLinesResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/credit_notes/${credit_note}/lines`, query));
},
async GetCreditNotesId(id: string, query?: Record<string, string>): Promise<GetCreditNotesIdResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/credit_notes/${id}`, query));
},
async PostCreditNotesId(id: string, body?: PostCreditNotesIdBody): Promise<PostCreditNotesIdResponse> {
return this.request('POST', `https://api.stripe.com//v1/credit_notes/${id}`, body ? JSON.stringify(body) : undefined);
},
async PostCreditNotesIdVoid(id: string, body?: PostCreditNotesIdVoidBody): Promise<PostCreditNotesIdVoidResponse> {
return this.request('POST', `https://api.stripe.com//v1/credit_notes/${id}/void`, body ? JSON.stringify(body) : undefined);
},
async PostCustomerSessions(body?: PostCustomerSessionsBody): Promise<PostCustomerSessionsResponse> {
return this.request('POST', `https://api.stripe.com//v1/customer_sessions`, body ? JSON.stringify(body) : undefined);
},
async GetCustomers(query?: Record<string, string>): Promise<GetCustomersResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/customers`, query));
},
async PostCustomers(body?: PostCustomersBody): Promise<PostCustomersResponse> {
return this.request('POST', `https://api.stripe.com//v1/customers`, body ? JSON.stringify(body) : undefined);
},
async GetCustomersSearch(query?: Record<string, string>): Promise<GetCustomersSearchResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/customers/search`, query));
},
async GetCustomersCustomer(customer: string, query?: Record<string, string>): Promise<GetCustomersCustomerResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/customers/${customer}`, query));
},
async PostCustomersCustomer(customer: string, body?: PostCustomersCustomerBody): Promise<PostCustomersCustomerResponse> {
return this.request('POST', `https://api.stripe.com//v1/customers/${customer}`, body ? JSON.stringify(body) : undefined);
},
async DeleteCustomersCustomer(customer: string): Promise<DeleteCustomersCustomerResponse> {
return this.request('DELETE', `https://api.stripe.com//v1/customers/${customer}`);
},
async GetCustomersCustomerBalanceTransactions(customer: string, query?: Record<string, string>): Promise<GetCustomersCustomerBalanceTransactionsResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/customers/${customer}/balance_transactions`, query));
},
async PostCustomersCustomerBalanceTransactions(customer: string, body?: PostCustomersCustomerBalanceTransactionsBody): Promise<PostCustomersCustomerBalanceTransactionsResponse> {
return this.request('POST', `https://api.stripe.com//v1/customers/${customer}/balance_transactions`, body ? JSON.stringify(body) : undefined);
},
async GetCustomersCustomerBalanceTransactionsTransaction(customer: string, transaction: string, query?: Record<string, string>): Promise<GetCustomersCustomerBalanceTransactionsTransactionResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/customers/${customer}/balance_transactions/${transaction}`, query));
},
async PostCustomersCustomerBalanceTransactionsTransaction(customer: string, transaction: string, body?: PostCustomersCustomerBalanceTransactionsTransactionBody): Promise<PostCustomersCustomerBalanceTransactionsTransactionResponse> {
return this.request('POST', `https://api.stripe.com//v1/customers/${customer}/balance_transactions/${transaction}`, body ? JSON.stringify(body) : undefined);
},
async GetCustomersCustomerBankAccounts(customer: string, query?: Record<string, string>): Promise<GetCustomersCustomerBankAccountsResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/customers/${customer}/bank_accounts`, query));
},
async PostCustomersCustomerBankAccounts(customer: string, body?: PostCustomersCustomerBankAccountsBody): Promise<PostCustomersCustomerBankAccountsResponse> {
return this.request('POST', `https://api.stripe.com//v1/customers/${customer}/bank_accounts`, body ? JSON.stringify(body) : undefined);
},
async GetCustomersCustomerBankAccountsId(customer: string, id: string, query?: Record<string, string>): Promise<GetCustomersCustomerBankAccountsIdResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/customers/${customer}/bank_accounts/${id}`, query));
},
async PostCustomersCustomerBankAccountsId(customer: string, id: string, body?: PostCustomersCustomerBankAccountsIdBody): Promise<PostCustomersCustomerBankAccountsIdResponse> {
return this.request('POST', `https://api.stripe.com//v1/customers/${customer}/bank_accounts/${id}`, body ? JSON.stringify(body) : undefined);
},
async DeleteCustomersCustomerBankAccountsId(customer: string, id: string): Promise<DeleteCustomersCustomerBankAccountsIdResponse> {
return this.request('DELETE', `https://api.stripe.com//v1/customers/${customer}/bank_accounts/${id}`);
},
async PostCustomersCustomerBankAccountsIdVerify(customer: string, id: string, body?: PostCustomersCustomerBankAccountsIdVerifyBody): Promise<PostCustomersCustomerBankAccountsIdVerifyResponse> {
return this.request('POST', `https://api.stripe.com//v1/customers/${customer}/bank_accounts/${id}/verify`, body ? JSON.stringify(body) : undefined);
},
async GetCustomersCustomerCards(customer: string, query?: Record<string, string>): Promise<GetCustomersCustomerCardsResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/customers/${customer}/cards`, query));
},
async PostCustomersCustomerCards(customer: string, body?: PostCustomersCustomerCardsBody): Promise<PostCustomersCustomerCardsResponse> {
return this.request('POST', `https://api.stripe.com//v1/customers/${customer}/cards`, body ? JSON.stringify(body) : undefined);
},
async GetCustomersCustomerCardsId(customer: string, id: string, query?: Record<string, string>): Promise<GetCustomersCustomerCardsIdResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/customers/${customer}/cards/${id}`, query));
},
async PostCustomersCustomerCardsId(customer: string, id: string, body?: PostCustomersCustomerCardsIdBody): Promise<PostCustomersCustomerCardsIdResponse> {
return this.request('POST', `https://api.stripe.com//v1/customers/${customer}/cards/${id}`, body ? JSON.stringify(body) : undefined);
},
async DeleteCustomersCustomerCardsId(customer: string, id: string): Promise<DeleteCustomersCustomerCardsIdResponse> {
return this.request('DELETE', `https://api.stripe.com//v1/customers/${customer}/cards/${id}`);
},
async GetCustomersCustomerCashBalance(customer: string, query?: Record<string, string>): Promise<GetCustomersCustomerCashBalanceResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/customers/${customer}/cash_balance`, query));
},
async PostCustomersCustomerCashBalance(customer: string, body?: PostCustomersCustomerCashBalanceBody): Promise<PostCustomersCustomerCashBalanceResponse> {
return this.request('POST', `https://api.stripe.com//v1/customers/${customer}/cash_balance`, body ? JSON.stringify(body) : undefined);
},
async GetCustomersCustomerCashBalanceTransactions(customer: string, query?: Record<string, string>): Promise<GetCustomersCustomerCashBalanceTransactionsResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/customers/${customer}/cash_balance_transactions`, query));
},
async GetCustomersCustomerCashBalanceTransactionsTransaction(customer: string, transaction: string, query?: Record<string, string>): Promise<GetCustomersCustomerCashBalanceTransactionsTransactionResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/customers/${customer}/cash_balance_transactions/${transaction}`, query));
},
async GetCustomersCustomerDiscount(customer: string, query?: Record<string, string>): Promise<GetCustomersCustomerDiscountResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/customers/${customer}/discount`, query));
},
async DeleteCustomersCustomerDiscount(customer: string): Promise<DeleteCustomersCustomerDiscountResponse> {
return this.request('DELETE', `https://api.stripe.com//v1/customers/${customer}/discount`);
},
async PostCustomersCustomerFundingInstructions(customer: string, body?: PostCustomersCustomerFundingInstructionsBody): Promise<PostCustomersCustomerFundingInstructionsResponse> {
return this.request('POST', `https://api.stripe.com//v1/customers/${customer}/funding_instructions`, body ? JSON.stringify(body) : undefined);
},
async GetCustomersCustomerPaymentMethods(customer: string, query?: Record<string, string>): Promise<GetCustomersCustomerPaymentMethodsResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/customers/${customer}/payment_methods`, query));
},
async GetCustomersCustomerPaymentMethodsPaymentMethod(customer: string, payment_method: string, query?: Record<string, string>): Promise<GetCustomersCustomerPaymentMethodsPaymentMethodResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/customers/${customer}/payment_methods/${payment_method}`, query));
},
async GetCustomersCustomerSources(customer: string, query?: Record<string, string>): Promise<GetCustomersCustomerSourcesResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/customers/${customer}/sources`, query));
},
async PostCustomersCustomerSources(customer: string, body?: PostCustomersCustomerSourcesBody): Promise<PostCustomersCustomerSourcesResponse> {
return this.request('POST', `https://api.stripe.com//v1/customers/${customer}/sources`, body ? JSON.stringify(body) : undefined);
},
async GetCustomersCustomerSourcesId(customer: string, id: string, query?: Record<string, string>): Promise<GetCustomersCustomerSourcesIdResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/customers/${customer}/sources/${id}`, query));
},
async PostCustomersCustomerSourcesId(customer: string, id: string, body?: PostCustomersCustomerSourcesIdBody): Promise<PostCustomersCustomerSourcesIdResponse> {
return this.request('POST', `https://api.stripe.com//v1/customers/${customer}/sources/${id}`, body ? JSON.stringify(body) : undefined);
},
async DeleteCustomersCustomerSourcesId(customer: string, id: string): Promise<DeleteCustomersCustomerSourcesIdResponse> {
return this.request('DELETE', `https://api.stripe.com//v1/customers/${customer}/sources/${id}`);
},
async PostCustomersCustomerSourcesIdVerify(customer: string, id: string, body?: PostCustomersCustomerSourcesIdVerifyBody): Promise<PostCustomersCustomerSourcesIdVerifyResponse> {
return this.request('POST', `https://api.stripe.com//v1/customers/${customer}/sources/${id}/verify`, body ? JSON.stringify(body) : undefined);
},
async GetCustomersCustomerSubscriptions(customer: string, query?: Record<string, string>): Promise<GetCustomersCustomerSubscriptionsResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/customers/${customer}/subscriptions`, query));
},
async PostCustomersCustomerSubscriptions(customer: string, body?: PostCustomersCustomerSubscriptionsBody): Promise<PostCustomersCustomerSubscriptionsResponse> {
return this.request('POST', `https://api.stripe.com//v1/customers/${customer}/subscriptions`, body ? JSON.stringify(body) : undefined);
},
async GetCustomersCustomerSubscriptionsSubscriptionExposedId(customer: string, subscription_exposed_id: string, query?: Record<string, string>): Promise<GetCustomersCustomerSubscriptionsSubscriptionExposedIdResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/customers/${customer}/subscriptions/${subscription_exposed_id}`, query));
},
async PostCustomersCustomerSubscriptionsSubscriptionExposedId(customer: string, subscription_exposed_id: string, body?: PostCustomersCustomerSubscriptionsSubscriptionExposedIdBody): Promise<PostCustomersCustomerSubscriptionsSubscriptionExposedIdResponse> {
return this.request('POST', `https://api.stripe.com//v1/customers/${customer}/subscriptions/${subscription_exposed_id}`, body ? JSON.stringify(body) : undefined);
},
async DeleteCustomersCustomerSubscriptionsSubscriptionExposedId(customer: string, subscription_exposed_id: string): Promise<DeleteCustomersCustomerSubscriptionsSubscriptionExposedIdResponse> {
return this.request('DELETE', `https://api.stripe.com//v1/customers/${customer}/subscriptions/${subscription_exposed_id}`);
},
async GetCustomersCustomerSubscriptionsSubscriptionExposedIdDiscount(customer: string, subscription_exposed_id: string, query?: Record<string, string>): Promise<GetCustomersCustomerSubscriptionsSubscriptionExposedIdDiscountResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/customers/${customer}/subscriptions/${subscription_exposed_id}/discount`, query));
},
async DeleteCustomersCustomerSubscriptionsSubscriptionExposedIdDiscount(customer: string, subscription_exposed_id: string): Promise<DeleteCustomersCustomerSubscriptionsSubscriptionExposedIdDiscountResponse> {
return this.request('DELETE', `https://api.stripe.com//v1/customers/${customer}/subscriptions/${subscription_exposed_id}/discount`);
},
async GetCustomersCustomerTaxIds(customer: string, query?: Record<string, string>): Promise<GetCustomersCustomerTaxIdsResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/customers/${customer}/tax_ids`, query));
},
async PostCustomersCustomerTaxIds(customer: string, body?: PostCustomersCustomerTaxIdsBody): Promise<PostCustomersCustomerTaxIdsResponse> {
return this.request('POST', `https://api.stripe.com//v1/customers/${customer}/tax_ids`, body ? JSON.stringify(body) : undefined);
},
async GetCustomersCustomerTaxIdsId(customer: string, id: string, query?: Record<string, string>): Promise<GetCustomersCustomerTaxIdsIdResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/customers/${customer}/tax_ids/${id}`, query));
},
async DeleteCustomersCustomerTaxIdsId(customer: string, id: string): Promise<DeleteCustomersCustomerTaxIdsIdResponse> {
return this.request('DELETE', `https://api.stripe.com//v1/customers/${customer}/tax_ids/${id}`);
},
async GetDisputes(query?: Record<string, string>): Promise<GetDisputesResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/disputes`, query));
},
async GetDisputesDispute(dispute: string, query?: Record<string, string>): Promise<GetDisputesDisputeResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/disputes/${dispute}`, query));
},
async PostDisputesDispute(dispute: string, body?: PostDisputesDisputeBody): Promise<PostDisputesDisputeResponse> {
return this.request('POST', `https://api.stripe.com//v1/disputes/${dispute}`, body ? JSON.stringify(body) : undefined);
},
async PostDisputesDisputeClose(dispute: string, body?: PostDisputesDisputeCloseBody): Promise<PostDisputesDisputeCloseResponse> {
return this.request('POST', `https://api.stripe.com//v1/disputes/${dispute}/close`, body ? JSON.stringify(body) : undefined);
},
async GetEntitlementsActiveEntitlements(query?: Record<string, string>): Promise<GetEntitlementsActiveEntitlementsResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/entitlements/active_entitlements`, query));
},
async GetEntitlementsActiveEntitlementsId(id: string, query?: Record<string, string>): Promise<GetEntitlementsActiveEntitlementsIdResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/entitlements/active_entitlements/${id}`, query));
},
async GetEntitlementsFeatures(query?: Record<string, string>): Promise<GetEntitlementsFeaturesResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/entitlements/features`, query));
},
async PostEntitlementsFeatures(body?: PostEntitlementsFeaturesBody): Promise<PostEntitlementsFeaturesResponse> {
return this.request('POST', `https://api.stripe.com//v1/entitlements/features`, body ? JSON.stringify(body) : undefined);
},
async GetEntitlementsFeaturesId(id: string, query?: Record<string, string>): Promise<GetEntitlementsFeaturesIdResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/entitlements/features/${id}`, query));
},
async PostEntitlementsFeaturesId(id: string, body?: PostEntitlementsFeaturesIdBody): Promise<PostEntitlementsFeaturesIdResponse> {
return this.request('POST', `https://api.stripe.com//v1/entitlements/features/${id}`, body ? JSON.stringify(body) : undefined);
},
async PostEphemeralKeys(body?: PostEphemeralKeysBody): Promise<PostEphemeralKeysResponse> {
return this.request('POST', `https://api.stripe.com//v1/ephemeral_keys`, body ? JSON.stringify(body) : undefined);
},
async DeleteEphemeralKeysKey(key: string): Promise<DeleteEphemeralKeysKeyResponse> {
return this.request('DELETE', `https://api.stripe.com//v1/ephemeral_keys/${key}`);
},
async GetEvents(query?: Record<string, string>): Promise<GetEventsResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/events`, query));
},
async GetEventsId(id: string, query?: Record<string, string>): Promise<GetEventsIdResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/events/${id}`, query));
},
async GetExchangeRates(query?: Record<string, string>): Promise<GetExchangeRatesResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/exchange_rates`, query));
},
async GetExchangeRatesRateId(rate_id: string, query?: Record<string, string>): Promise<GetExchangeRatesRateIdResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/exchange_rates/${rate_id}`, query));
},
async PostExternalAccountsId(id: string, body?: PostExternalAccountsIdBody): Promise<PostExternalAccountsIdResponse> {
return this.request('POST', `https://api.stripe.com//v1/external_accounts/${id}`, body ? JSON.stringify(body) : undefined);
},
async GetFileLinks(query?: Record<string, string>): Promise<GetFileLinksResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/file_links`, query));
},
async PostFileLinks(body?: PostFileLinksBody): Promise<PostFileLinksResponse> {
return this.request('POST', `https://api.stripe.com//v1/file_links`, body ? JSON.stringify(body) : undefined);
},
async GetFileLinksLink(link: string, query?: Record<string, string>): Promise<GetFileLinksLinkResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/file_links/${link}`, query));
},
async PostFileLinksLink(link: string, body?: PostFileLinksLinkBody): Promise<PostFileLinksLinkResponse> {
return this.request('POST', `https://api.stripe.com//v1/file_links/${link}`, body ? JSON.stringify(body) : undefined);
},
async GetFiles(query?: Record<string, string>): Promise<GetFilesResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/files`, query));
},
async PostFiles(body?: PostFilesBody): Promise<PostFilesResponse> {
return this.request('POST', `https://api.stripe.com//v1/files`, body ? JSON.stringify(body) : undefined);
},
async GetFilesFile(file: string, query?: Record<string, string>): Promise<GetFilesFileResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/files/${file}`, query));
},
async GetFinancialConnectionsAccounts(query?: Record<string, string>): Promise<GetFinancialConnectionsAccountsResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/financial_connections/accounts`, query));
},
async GetFinancialConnectionsAccountsAccount(account: string, query?: Record<string, string>): Promise<GetFinancialConnectionsAccountsAccountResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/financial_connections/accounts/${account}`, query));
},
async PostFinancialConnectionsAccountsAccountDisconnect(account: string, body?: PostFinancialConnectionsAccountsAccountDisconnectBody): Promise<PostFinancialConnectionsAccountsAccountDisconnectResponse> {
return this.request('POST', `https://api.stripe.com//v1/financial_connections/accounts/${account}/disconnect`, body ? JSON.stringify(body) : undefined);
},
async GetFinancialConnectionsAccountsAccountOwners(account: string, query?: Record<string, string>): Promise<GetFinancialConnectionsAccountsAccountOwnersResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/financial_connections/accounts/${account}/owners`, query));
},
async PostFinancialConnectionsAccountsAccountRefresh(account: string, body?: PostFinancialConnectionsAccountsAccountRefreshBody): Promise<PostFinancialConnectionsAccountsAccountRefreshResponse> {
return this.request('POST', `https://api.stripe.com//v1/financial_connections/accounts/${account}/refresh`, body ? JSON.stringify(body) : undefined);
},
async PostFinancialConnectionsAccountsAccountSubscribe(account: string, body?: PostFinancialConnectionsAccountsAccountSubscribeBody): Promise<PostFinancialConnectionsAccountsAccountSubscribeResponse> {
return this.request('POST', `https://api.stripe.com//v1/financial_connections/accounts/${account}/subscribe`, body ? JSON.stringify(body) : undefined);
},
async PostFinancialConnectionsAccountsAccountUnsubscribe(account: string, body?: PostFinancialConnectionsAccountsAccountUnsubscribeBody): Promise<PostFinancialConnectionsAccountsAccountUnsubscribeResponse> {
return this.request('POST', `https://api.stripe.com//v1/financial_connections/accounts/${account}/unsubscribe`, body ? JSON.stringify(body) : undefined);
},
async PostFinancialConnectionsSessions(body?: PostFinancialConnectionsSessionsBody): Promise<PostFinancialConnectionsSessionsResponse> {
return this.request('POST', `https://api.stripe.com//v1/financial_connections/sessions`, body ? JSON.stringify(body) : undefined);
},
async GetFinancialConnectionsSessionsSession(session: string, query?: Record<string, string>): Promise<GetFinancialConnectionsSessionsSessionResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/financial_connections/sessions/${session}`, query));
},
async GetFinancialConnectionsTransactions(query?: Record<string, string>): Promise<GetFinancialConnectionsTransactionsResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/financial_connections/transactions`, query));
},
async GetFinancialConnectionsTransactionsTransaction(transaction: string, query?: Record<string, string>): Promise<GetFinancialConnectionsTransactionsTransactionResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/financial_connections/transactions/${transaction}`, query));
},
async GetForwardingRequests(query?: Record<string, string>): Promise<GetForwardingRequestsResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/forwarding/requests`, query));
},
async PostForwardingRequests(body?: PostForwardingRequestsBody): Promise<PostForwardingRequestsResponse> {
return this.request('POST', `https://api.stripe.com//v1/forwarding/requests`, body ? JSON.stringify(body) : undefined);
},
async GetForwardingRequestsId(id: string, query?: Record<string, string>): Promise<GetForwardingRequestsIdResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/forwarding/requests/${id}`, query));
},
async GetIdentityVerificationReports(query?: Record<string, string>): Promise<GetIdentityVerificationReportsResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/identity/verification_reports`, query));
},
async GetIdentityVerificationReportsReport(report: string, query?: Record<string, string>): Promise<GetIdentityVerificationReportsReportResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/identity/verification_reports/${report}`, query));
},
async GetIdentityVerificationSessions(query?: Record<string, string>): Promise<GetIdentityVerificationSessionsResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/identity/verification_sessions`, query));
},
async PostIdentityVerificationSessions(body?: PostIdentityVerificationSessionsBody): Promise<PostIdentityVerificationSessionsResponse> {
return this.request('POST', `https://api.stripe.com//v1/identity/verification_sessions`, body ? JSON.stringify(body) : undefined);
},
async GetIdentityVerificationSessionsSession(session: string, query?: Record<string, string>): Promise<GetIdentityVerificationSessionsSessionResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/identity/verification_sessions/${session}`, query));
},
async PostIdentityVerificationSessionsSession(session: string, body?: PostIdentityVerificationSessionsSessionBody): Promise<PostIdentityVerificationSessionsSessionResponse> {
return this.request('POST', `https://api.stripe.com//v1/identity/verification_sessions/${session}`, body ? JSON.stringify(body) : undefined);
},
async PostIdentityVerificationSessionsSessionCancel(session: string, body?: PostIdentityVerificationSessionsSessionCancelBody): Promise<PostIdentityVerificationSessionsSessionCancelResponse> {
return this.request('POST', `https://api.stripe.com//v1/identity/verification_sessions/${session}/cancel`, body ? JSON.stringify(body) : undefined);
},
async PostIdentityVerificationSessionsSessionRedact(session: string, body?: PostIdentityVerificationSessionsSessionRedactBody): Promise<PostIdentityVerificationSessionsSessionRedactResponse> {
return this.request('POST', `https://api.stripe.com//v1/identity/verification_sessions/${session}/redact`, body ? JSON.stringify(body) : undefined);
},
async GetInvoicePayments(query?: Record<string, string>): Promise<GetInvoicePaymentsResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/invoice_payments`, query));
},
async GetInvoicePaymentsInvoicePayment(invoice_payment: string, query?: Record<string, string>): Promise<GetInvoicePaymentsInvoicePaymentResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/invoice_payments/${invoice_payment}`, query));
},
async GetInvoiceRenderingTemplates(query?: Record<string, string>): Promise<GetInvoiceRenderingTemplatesResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/invoice_rendering_templates`, query));
},
async GetInvoiceRenderingTemplatesTemplate(template: string, query?: Record<string, string>): Promise<GetInvoiceRenderingTemplatesTemplateResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/invoice_rendering_templates/${template}`, query));
},
async PostInvoiceRenderingTemplatesTemplateArchive(template: string, body?: PostInvoiceRenderingTemplatesTemplateArchiveBody): Promise<PostInvoiceRenderingTemplatesTemplateArchiveResponse> {
return this.request('POST', `https://api.stripe.com//v1/invoice_rendering_templates/${template}/archive`, body ? JSON.stringify(body) : undefined);
},
async PostInvoiceRenderingTemplatesTemplateUnarchive(template: string, body?: PostInvoiceRenderingTemplatesTemplateUnarchiveBody): Promise<PostInvoiceRenderingTemplatesTemplateUnarchiveResponse> {
return this.request('POST', `https://api.stripe.com//v1/invoice_rendering_templates/${template}/unarchive`, body ? JSON.stringify(body) : undefined);
},
async GetInvoiceitems(query?: Record<string, string>): Promise<GetInvoiceitemsResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/invoiceitems`, query));
},
async PostInvoiceitems(body?: PostInvoiceitemsBody): Promise<PostInvoiceitemsResponse> {
return this.request('POST', `https://api.stripe.com//v1/invoiceitems`, body ? JSON.stringify(body) : undefined);
},
async GetInvoiceitemsInvoiceitem(invoiceitem: string, query?: Record<string, string>): Promise<GetInvoiceitemsInvoiceitemResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/invoiceitems/${invoiceitem}`, query));
},
async PostInvoiceitemsInvoiceitem(invoiceitem: string, body?: PostInvoiceitemsInvoiceitemBody): Promise<PostInvoiceitemsInvoiceitemResponse> {
return this.request('POST', `https://api.stripe.com//v1/invoiceitems/${invoiceitem}`, body ? JSON.stringify(body) : undefined);
},
async DeleteInvoiceitemsInvoiceitem(invoiceitem: string): Promise<DeleteInvoiceitemsInvoiceitemResponse> {
return this.request('DELETE', `https://api.stripe.com//v1/invoiceitems/${invoiceitem}`);
},
async GetInvoices(query?: Record<string, string>): Promise<GetInvoicesResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/invoices`, query));
},
async PostInvoices(body?: PostInvoicesBody): Promise<PostInvoicesResponse> {
return this.request('POST', `https://api.stripe.com//v1/invoices`, body ? JSON.stringify(body) : undefined);
},
async PostInvoicesCreatePreview(body?: PostInvoicesCreatePreviewBody): Promise<PostInvoicesCreatePreviewResponse> {
return this.request('POST', `https://api.stripe.com//v1/invoices/create_preview`, body ? JSON.stringify(body) : undefined);
},
async GetInvoicesSearch(query?: Record<string, string>): Promise<GetInvoicesSearchResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/invoices/search`, query));
},
async GetInvoicesInvoice(invoice: string, query?: Record<string, string>): Promise<GetInvoicesInvoiceResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/invoices/${invoice}`, query));
},
async PostInvoicesInvoice(invoice: string, body?: PostInvoicesInvoiceBody): Promise<PostInvoicesInvoiceResponse> {
return this.request('POST', `https://api.stripe.com//v1/invoices/${invoice}`, body ? JSON.stringify(body) : undefined);
},
async DeleteInvoicesInvoice(invoice: string): Promise<DeleteInvoicesInvoiceResponse> {
return this.request('DELETE', `https://api.stripe.com//v1/invoices/${invoice}`);
},
async PostInvoicesInvoiceAddLines(invoice: string, body?: PostInvoicesInvoiceAddLinesBody): Promise<PostInvoicesInvoiceAddLinesResponse> {
return this.request('POST', `https://api.stripe.com//v1/invoices/${invoice}/add_lines`, body ? JSON.stringify(body) : undefined);
},
async PostInvoicesInvoiceAttachPayment(invoice: string, body?: PostInvoicesInvoiceAttachPaymentBody): Promise<PostInvoicesInvoiceAttachPaymentResponse> {
return this.request('POST', `https://api.stripe.com//v1/invoices/${invoice}/attach_payment`, body ? JSON.stringify(body) : undefined);
},
async PostInvoicesInvoiceFinalize(invoice: string, body?: PostInvoicesInvoiceFinalizeBody): Promise<PostInvoicesInvoiceFinalizeResponse> {
return this.request('POST', `https://api.stripe.com//v1/invoices/${invoice}/finalize`, body ? JSON.stringify(body) : undefined);
},
async GetInvoicesInvoiceLines(invoice: string, query?: Record<string, string>): Promise<GetInvoicesInvoiceLinesResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/invoices/${invoice}/lines`, query));
},
async PostInvoicesInvoiceLinesLineItemId(invoice: string, line_item_id: string, body?: PostInvoicesInvoiceLinesLineItemIdBody): Promise<PostInvoicesInvoiceLinesLineItemIdResponse> {
return this.request('POST', `https://api.stripe.com//v1/invoices/${invoice}/lines/${line_item_id}`, body ? JSON.stringify(body) : undefined);
},
async PostInvoicesInvoiceMarkUncollectible(invoice: string, body?: PostInvoicesInvoiceMarkUncollectibleBody): Promise<PostInvoicesInvoiceMarkUncollectibleResponse> {
return this.request('POST', `https://api.stripe.com//v1/invoices/${invoice}/mark_uncollectible`, body ? JSON.stringify(body) : undefined);
},
async PostInvoicesInvoicePay(invoice: string, body?: PostInvoicesInvoicePayBody): Promise<PostInvoicesInvoicePayResponse> {
return this.request('POST', `https://api.stripe.com//v1/invoices/${invoice}/pay`, body ? JSON.stringify(body) : undefined);
},
async PostInvoicesInvoiceRemoveLines(invoice: string, body?: PostInvoicesInvoiceRemoveLinesBody): Promise<PostInvoicesInvoiceRemoveLinesResponse> {
return this.request('POST', `https://api.stripe.com//v1/invoices/${invoice}/remove_lines`, body ? JSON.stringify(body) : undefined);
},
async PostInvoicesInvoiceSend(invoice: string, body?: PostInvoicesInvoiceSendBody): Promise<PostInvoicesInvoiceSendResponse> {
return this.request('POST', `https://api.stripe.com//v1/invoices/${invoice}/send`, body ? JSON.stringify(body) : undefined);
},
async PostInvoicesInvoiceUpdateLines(invoice: string, body?: PostInvoicesInvoiceUpdateLinesBody): Promise<PostInvoicesInvoiceUpdateLinesResponse> {
return this.request('POST', `https://api.stripe.com//v1/invoices/${invoice}/update_lines`, body ? JSON.stringify(body) : undefined);
},
async PostInvoicesInvoiceVoid(invoice: string, body?: PostInvoicesInvoiceVoidBody): Promise<PostInvoicesInvoiceVoidResponse> {
return this.request('POST', `https://api.stripe.com//v1/invoices/${invoice}/void`, body ? JSON.stringify(body) : undefined);
},
async GetIssuingAuthorizations(query?: Record<string, string>): Promise<GetIssuingAuthorizationsResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/issuing/authorizations`, query));
},
async GetIssuingAuthorizationsAuthorization(authorization: string, query?: Record<string, string>): Promise<GetIssuingAuthorizationsAuthorizationResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/issuing/authorizations/${authorization}`, query));
},
async PostIssuingAuthorizationsAuthorization(authorization: string, body?: PostIssuingAuthorizationsAuthorizationBody): Promise<PostIssuingAuthorizationsAuthorizationResponse> {
return this.request('POST', `https://api.stripe.com//v1/issuing/authorizations/${authorization}`, body ? JSON.stringify(body) : undefined);
},
async PostIssuingAuthorizationsAuthorizationApprove(authorization: string, body?: PostIssuingAuthorizationsAuthorizationApproveBody): Promise<PostIssuingAuthorizationsAuthorizationApproveResponse> {
return this.request('POST', `https://api.stripe.com//v1/issuing/authorizations/${authorization}/approve`, body ? JSON.stringify(body) : undefined);
},
async PostIssuingAuthorizationsAuthorizationDecline(authorization: string, body?: PostIssuingAuthorizationsAuthorizationDeclineBody): Promise<PostIssuingAuthorizationsAuthorizationDeclineResponse> {
return this.request('POST', `https://api.stripe.com//v1/issuing/authorizations/${authorization}/decline`, body ? JSON.stringify(body) : undefined);
},
async GetIssuingCardholders(query?: Record<string, string>): Promise<GetIssuingCardholdersResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/issuing/cardholders`, query));
},
async PostIssuingCardholders(body?: PostIssuingCardholdersBody): Promise<PostIssuingCardholdersResponse> {
return this.request('POST', `https://api.stripe.com//v1/issuing/cardholders`, body ? JSON.stringify(body) : undefined);
},
async GetIssuingCardholdersCardholder(cardholder: string, query?: Record<string, string>): Promise<GetIssuingCardholdersCardholderResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/issuing/cardholders/${cardholder}`, query));
},
async PostIssuingCardholdersCardholder(cardholder: string, body?: PostIssuingCardholdersCardholderBody): Promise<PostIssuingCardholdersCardholderResponse> {
return this.request('POST', `https://api.stripe.com//v1/issuing/cardholders/${cardholder}`, body ? JSON.stringify(body) : undefined);
},
async GetIssuingCards(query?: Record<string, string>): Promise<GetIssuingCardsResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/issuing/cards`, query));
},
async PostIssuingCards(body?: PostIssuingCardsBody): Promise<PostIssuingCardsResponse> {
return this.request('POST', `https://api.stripe.com//v1/issuing/cards`, body ? JSON.stringify(body) : undefined);
},
async GetIssuingCardsCard(card: string, query?: Record<string, string>): Promise<GetIssuingCardsCardResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/issuing/cards/${card}`, query));
},
async PostIssuingCardsCard(card: string, body?: PostIssuingCardsCardBody): Promise<PostIssuingCardsCardResponse> {
return this.request('POST', `https://api.stripe.com//v1/issuing/cards/${card}`, body ? JSON.stringify(body) : undefined);
},
async GetIssuingDisputes(query?: Record<string, string>): Promise<GetIssuingDisputesResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/issuing/disputes`, query));
},
async PostIssuingDisputes(body?: PostIssuingDisputesBody): Promise<PostIssuingDisputesResponse> {
return this.request('POST', `https://api.stripe.com//v1/issuing/disputes`, body ? JSON.stringify(body) : undefined);
},
async GetIssuingDisputesDispute(dispute: string, query?: Record<string, string>): Promise<GetIssuingDisputesDisputeResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/issuing/disputes/${dispute}`, query));
},
async PostIssuingDisputesDispute(dispute: string, body?: PostIssuingDisputesDisputeBody): Promise<PostIssuingDisputesDisputeResponse> {
return this.request('POST', `https://api.stripe.com//v1/issuing/disputes/${dispute}`, body ? JSON.stringify(body) : undefined);
},
async PostIssuingDisputesDisputeSubmit(dispute: string, body?: PostIssuingDisputesDisputeSubmitBody): Promise<PostIssuingDisputesDisputeSubmitResponse> {
return this.request('POST', `https://api.stripe.com//v1/issuing/disputes/${dispute}/submit`, body ? JSON.stringify(body) : undefined);
},
async GetIssuingPersonalizationDesigns(query?: Record<string, string>): Promise<GetIssuingPersonalizationDesignsResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/issuing/personalization_designs`, query));
},
async PostIssuingPersonalizationDesigns(body?: PostIssuingPersonalizationDesignsBody): Promise<PostIssuingPersonalizationDesignsResponse> {
return this.request('POST', `https://api.stripe.com//v1/issuing/personalization_designs`, body ? JSON.stringify(body) : undefined);
},
async GetIssuingPersonalizationDesignsPersonalizationDesign(personalization_design: string, query?: Record<string, string>): Promise<GetIssuingPersonalizationDesignsPersonalizationDesignResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/issuing/personalization_designs/${personalization_design}`, query));
},
async PostIssuingPersonalizationDesignsPersonalizationDesign(personalization_design: string, body?: PostIssuingPersonalizationDesignsPersonalizationDesignBody): Promise<PostIssuingPersonalizationDesignsPersonalizationDesignResponse> {
return this.request('POST', `https://api.stripe.com//v1/issuing/personalization_designs/${personalization_design}`, body ? JSON.stringify(body) : undefined);
},
async GetIssuingPhysicalBundles(query?: Record<string, string>): Promise<GetIssuingPhysicalBundlesResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/issuing/physical_bundles`, query));
},
async GetIssuingPhysicalBundlesPhysicalBundle(physical_bundle: string, query?: Record<string, string>): Promise<GetIssuingPhysicalBundlesPhysicalBundleResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/issuing/physical_bundles/${physical_bundle}`, query));
},
async GetIssuingSettlementsSettlement(settlement: string, query?: Record<string, string>): Promise<GetIssuingSettlementsSettlementResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/issuing/settlements/${settlement}`, query));
},
async PostIssuingSettlementsSettlement(settlement: string, body?: PostIssuingSettlementsSettlementBody): Promise<PostIssuingSettlementsSettlementResponse> {
return this.request('POST', `https://api.stripe.com//v1/issuing/settlements/${settlement}`, body ? JSON.stringify(body) : undefined);
},
async GetIssuingTokens(query?: Record<string, string>): Promise<GetIssuingTokensResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/issuing/tokens`, query));
},
async GetIssuingTokensToken(token: string, query?: Record<string, string>): Promise<GetIssuingTokensTokenResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/issuing/tokens/${token}`, query));
},
async PostIssuingTokensToken(token: string, body?: PostIssuingTokensTokenBody): Promise<PostIssuingTokensTokenResponse> {
return this.request('POST', `https://api.stripe.com//v1/issuing/tokens/${token}`, body ? JSON.stringify(body) : undefined);
},
async GetIssuingTransactions(query?: Record<string, string>): Promise<GetIssuingTransactionsResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/issuing/transactions`, query));
},
async GetIssuingTransactionsTransaction(transaction: string, query?: Record<string, string>): Promise<GetIssuingTransactionsTransactionResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/issuing/transactions/${transaction}`, query));
},
async PostIssuingTransactionsTransaction(transaction: string, body?: PostIssuingTransactionsTransactionBody): Promise<PostIssuingTransactionsTransactionResponse> {
return this.request('POST', `https://api.stripe.com//v1/issuing/transactions/${transaction}`, body ? JSON.stringify(body) : undefined);
},
async PostLinkAccountSessions(body?: PostLinkAccountSessionsBody): Promise<PostLinkAccountSessionsResponse> {
return this.request('POST', `https://api.stripe.com//v1/link_account_sessions`, body ? JSON.stringify(body) : undefined);
},
async GetLinkAccountSessionsSession(session: string, query?: Record<string, string>): Promise<GetLinkAccountSessionsSessionResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/link_account_sessions/${session}`, query));
},
async GetLinkedAccounts(query?: Record<string, string>): Promise<GetLinkedAccountsResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/linked_accounts`, query));
},
async GetLinkedAccountsAccount(account: string, query?: Record<string, string>): Promise<GetLinkedAccountsAccountResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/linked_accounts/${account}`, query));
},
async PostLinkedAccountsAccountDisconnect(account: string, body?: PostLinkedAccountsAccountDisconnectBody): Promise<PostLinkedAccountsAccountDisconnectResponse> {
return this.request('POST', `https://api.stripe.com//v1/linked_accounts/${account}/disconnect`, body ? JSON.stringify(body) : undefined);
},
async GetLinkedAccountsAccountOwners(account: string, query?: Record<string, string>): Promise<GetLinkedAccountsAccountOwnersResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/linked_accounts/${account}/owners`, query));
},
async PostLinkedAccountsAccountRefresh(account: string, body?: PostLinkedAccountsAccountRefreshBody): Promise<PostLinkedAccountsAccountRefreshResponse> {
return this.request('POST', `https://api.stripe.com//v1/linked_accounts/${account}/refresh`, body ? JSON.stringify(body) : undefined);
},
async GetMandatesMandate(mandate: string, query?: Record<string, string>): Promise<GetMandatesMandateResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/mandates/${mandate}`, query));
},
async GetPaymentAttemptRecords(query?: Record<string, string>): Promise<GetPaymentAttemptRecordsResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/payment_attempt_records`, query));
},
async GetPaymentAttemptRecordsId(id: string, query?: Record<string, string>): Promise<GetPaymentAttemptRecordsIdResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/payment_attempt_records/${id}`, query));
},
async GetPaymentIntents(query?: Record<string, string>): Promise<GetPaymentIntentsResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/payment_intents`, query));
},
async PostPaymentIntents(body?: PostPaymentIntentsBody): Promise<PostPaymentIntentsResponse> {
return this.request('POST', `https://api.stripe.com//v1/payment_intents`, body ? JSON.stringify(body) : undefined);
},
async GetPaymentIntentsSearch(query?: Record<string, string>): Promise<GetPaymentIntentsSearchResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/payment_intents/search`, query));
},
async GetPaymentIntentsIntent(intent: string, query?: Record<string, string>): Promise<GetPaymentIntentsIntentResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/payment_intents/${intent}`, query));
},
async PostPaymentIntentsIntent(intent: string, body?: PostPaymentIntentsIntentBody): Promise<PostPaymentIntentsIntentResponse> {
return this.request('POST', `https://api.stripe.com//v1/payment_intents/${intent}`, body ? JSON.stringify(body) : undefined);
},
async GetPaymentIntentsIntentAmountDetailsLineItems(intent: string, query?: Record<string, string>): Promise<GetPaymentIntentsIntentAmountDetailsLineItemsResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/payment_intents/${intent}/amount_details_line_items`, query));
},
async PostPaymentIntentsIntentApplyCustomerBalance(intent: string, body?: PostPaymentIntentsIntentApplyCustomerBalanceBody): Promise<PostPaymentIntentsIntentApplyCustomerBalanceResponse> {
return this.request('POST', `https://api.stripe.com//v1/payment_intents/${intent}/apply_customer_balance`, body ? JSON.stringify(body) : undefined);
},
async PostPaymentIntentsIntentCancel(intent: string, body?: PostPaymentIntentsIntentCancelBody): Promise<PostPaymentIntentsIntentCancelResponse> {
return this.request('POST', `https://api.stripe.com//v1/payment_intents/${intent}/cancel`, body ? JSON.stringify(body) : undefined);
},
async PostPaymentIntentsIntentCapture(intent: string, body?: PostPaymentIntentsIntentCaptureBody): Promise<PostPaymentIntentsIntentCaptureResponse> {
return this.request('POST', `https://api.stripe.com//v1/payment_intents/${intent}/capture`, body ? JSON.stringify(body) : undefined);
},
async PostPaymentIntentsIntentConfirm(intent: string, body?: PostPaymentIntentsIntentConfirmBody): Promise<PostPaymentIntentsIntentConfirmResponse> {
return this.request('POST', `https://api.stripe.com//v1/payment_intents/${intent}/confirm`, body ? JSON.stringify(body) : undefined);
},
async PostPaymentIntentsIntentIncrementAuthorization(intent: string, body?: PostPaymentIntentsIntentIncrementAuthorizationBody): Promise<PostPaymentIntentsIntentIncrementAuthorizationResponse> {
return this.request('POST', `https://api.stripe.com//v1/payment_intents/${intent}/increment_authorization`, body ? JSON.stringify(body) : undefined);
},
async PostPaymentIntentsIntentVerifyMicrodeposits(intent: string, body?: PostPaymentIntentsIntentVerifyMicrodepositsBody): Promise<PostPaymentIntentsIntentVerifyMicrodepositsResponse> {
return this.request('POST', `https://api.stripe.com//v1/payment_intents/${intent}/verify_microdeposits`, body ? JSON.stringify(body) : undefined);
},
async GetPaymentLinks(query?: Record<string, string>): Promise<GetPaymentLinksResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/payment_links`, query));
},
async PostPaymentLinks(body?: PostPaymentLinksBody): Promise<PostPaymentLinksResponse> {
return this.request('POST', `https://api.stripe.com//v1/payment_links`, body ? JSON.stringify(body) : undefined);
},
async GetPaymentLinksPaymentLink(payment_link: string, query?: Record<string, string>): Promise<GetPaymentLinksPaymentLinkResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/payment_links/${payment_link}`, query));
},
async PostPaymentLinksPaymentLink(payment_link: string, body?: PostPaymentLinksPaymentLinkBody): Promise<PostPaymentLinksPaymentLinkResponse> {
return this.request('POST', `https://api.stripe.com//v1/payment_links/${payment_link}`, body ? JSON.stringify(body) : undefined);
},
async GetPaymentLinksPaymentLinkLineItems(payment_link: string, query?: Record<string, string>): Promise<GetPaymentLinksPaymentLinkLineItemsResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/payment_links/${payment_link}/line_items`, query));
},
async GetPaymentMethodConfigurations(query?: Record<string, string>): Promise<GetPaymentMethodConfigurationsResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/payment_method_configurations`, query));
},
async PostPaymentMethodConfigurations(body?: PostPaymentMethodConfigurationsBody): Promise<PostPaymentMethodConfigurationsResponse> {
return this.request('POST', `https://api.stripe.com//v1/payment_method_configurations`, body ? JSON.stringify(body) : undefined);
},
async GetPaymentMethodConfigurationsConfiguration(configuration: string, query?: Record<string, string>): Promise<GetPaymentMethodConfigurationsConfigurationResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/payment_method_configurations/${configuration}`, query));
},
async PostPaymentMethodConfigurationsConfiguration(configuration: string, body?: PostPaymentMethodConfigurationsConfigurationBody): Promise<PostPaymentMethodConfigurationsConfigurationResponse> {
return this.request('POST', `https://api.stripe.com//v1/payment_method_configurations/${configuration}`, body ? JSON.stringify(body) : undefined);
},
async GetPaymentMethodDomains(query?: Record<string, string>): Promise<GetPaymentMethodDomainsResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/payment_method_domains`, query));
},
async PostPaymentMethodDomains(body?: PostPaymentMethodDomainsBody): Promise<PostPaymentMethodDomainsResponse> {
return this.request('POST', `https://api.stripe.com//v1/payment_method_domains`, body ? JSON.stringify(body) : undefined);
},
async GetPaymentMethodDomainsPaymentMethodDomain(payment_method_domain: string, query?: Record<string, string>): Promise<GetPaymentMethodDomainsPaymentMethodDomainResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/payment_method_domains/${payment_method_domain}`, query));
},
async PostPaymentMethodDomainsPaymentMethodDomain(payment_method_domain: string, body?: PostPaymentMethodDomainsPaymentMethodDomainBody): Promise<PostPaymentMethodDomainsPaymentMethodDomainResponse> {
return this.request('POST', `https://api.stripe.com//v1/payment_method_domains/${payment_method_domain}`, body ? JSON.stringify(body) : undefined);
},
async PostPaymentMethodDomainsPaymentMethodDomainValidate(payment_method_domain: string, body?: PostPaymentMethodDomainsPaymentMethodDomainValidateBody): Promise<PostPaymentMethodDomainsPaymentMethodDomainValidateResponse> {
return this.request('POST', `https://api.stripe.com//v1/payment_method_domains/${payment_method_domain}/validate`, body ? JSON.stringify(body) : undefined);
},
async GetPaymentMethods(query?: Record<string, string>): Promise<GetPaymentMethodsResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/payment_methods`, query));
},
async PostPaymentMethods(body?: PostPaymentMethodsBody): Promise<PostPaymentMethodsResponse> {
return this.request('POST', `https://api.stripe.com//v1/payment_methods`, body ? JSON.stringify(body) : undefined);
},
async GetPaymentMethodsPaymentMethod(payment_method: string, query?: Record<string, string>): Promise<GetPaymentMethodsPaymentMethodResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/payment_methods/${payment_method}`, query));
},
async PostPaymentMethodsPaymentMethod(payment_method: string, body?: PostPaymentMethodsPaymentMethodBody): Promise<PostPaymentMethodsPaymentMethodResponse> {
return this.request('POST', `https://api.stripe.com//v1/payment_methods/${payment_method}`, body ? JSON.stringify(body) : undefined);
},
async PostPaymentMethodsPaymentMethodAttach(payment_method: string, body?: PostPaymentMethodsPaymentMethodAttachBody): Promise<PostPaymentMethodsPaymentMethodAttachResponse> {
return this.request('POST', `https://api.stripe.com//v1/payment_methods/${payment_method}/attach`, body ? JSON.stringify(body) : undefined);
},
async PostPaymentMethodsPaymentMethodDetach(payment_method: string, body?: PostPaymentMethodsPaymentMethodDetachBody): Promise<PostPaymentMethodsPaymentMethodDetachResponse> {
return this.request('POST', `https://api.stripe.com//v1/payment_methods/${payment_method}/detach`, body ? JSON.stringify(body) : undefined);
},
async PostPaymentRecordsReportPayment(body?: PostPaymentRecordsReportPaymentBody): Promise<PostPaymentRecordsReportPaymentResponse> {
return this.request('POST', `https://api.stripe.com//v1/payment_records/report_payment`, body ? JSON.stringify(body) : undefined);
},
async GetPaymentRecordsId(id: string, query?: Record<string, string>): Promise<GetPaymentRecordsIdResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/payment_records/${id}`, query));
},
async PostPaymentRecordsIdReportPaymentAttempt(id: string, body?: PostPaymentRecordsIdReportPaymentAttemptBody): Promise<PostPaymentRecordsIdReportPaymentAttemptResponse> {
return this.request('POST', `https://api.stripe.com//v1/payment_records/${id}/report_payment_attempt`, body ? JSON.stringify(body) : undefined);
},
async PostPaymentRecordsIdReportPaymentAttemptCanceled(id: string, body?: PostPaymentRecordsIdReportPaymentAttemptCanceledBody): Promise<PostPaymentRecordsIdReportPaymentAttemptCanceledResponse> {
return this.request('POST', `https://api.stripe.com//v1/payment_records/${id}/report_payment_attempt_canceled`, body ? JSON.stringify(body) : undefined);
},
async PostPaymentRecordsIdReportPaymentAttemptFailed(id: string, body?: PostPaymentRecordsIdReportPaymentAttemptFailedBody): Promise<PostPaymentRecordsIdReportPaymentAttemptFailedResponse> {
return this.request('POST', `https://api.stripe.com//v1/payment_records/${id}/report_payment_attempt_failed`, body ? JSON.stringify(body) : undefined);
},
async PostPaymentRecordsIdReportPaymentAttemptGuaranteed(id: string, body?: PostPaymentRecordsIdReportPaymentAttemptGuaranteedBody): Promise<PostPaymentRecordsIdReportPaymentAttemptGuaranteedResponse> {
return this.request('POST', `https://api.stripe.com//v1/payment_records/${id}/report_payment_attempt_guaranteed`, body ? JSON.stringify(body) : undefined);
},
async PostPaymentRecordsIdReportPaymentAttemptInformational(id: string, body?: PostPaymentRecordsIdReportPaymentAttemptInformationalBody): Promise<PostPaymentRecordsIdReportPaymentAttemptInformationalResponse> {
return this.request('POST', `https://api.stripe.com//v1/payment_records/${id}/report_payment_attempt_informational`, body ? JSON.stringify(body) : undefined);
},
async PostPaymentRecordsIdReportRefund(id: string, body?: PostPaymentRecordsIdReportRefundBody): Promise<PostPaymentRecordsIdReportRefundResponse> {
return this.request('POST', `https://api.stripe.com//v1/payment_records/${id}/report_refund`, body ? JSON.stringify(body) : undefined);
},
async GetPayouts(query?: Record<string, string>): Promise<GetPayoutsResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/payouts`, query));
},
async PostPayouts(body?: PostPayoutsBody): Promise<PostPayoutsResponse> {
return this.request('POST', `https://api.stripe.com//v1/payouts`, body ? JSON.stringify(body) : undefined);
},
async GetPayoutsPayout(payout: string, query?: Record<string, string>): Promise<GetPayoutsPayoutResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/payouts/${payout}`, query));
},
async PostPayoutsPayout(payout: string, body?: PostPayoutsPayoutBody): Promise<PostPayoutsPayoutResponse> {
return this.request('POST', `https://api.stripe.com//v1/payouts/${payout}`, body ? JSON.stringify(body) : undefined);
},
async PostPayoutsPayoutCancel(payout: string, body?: PostPayoutsPayoutCancelBody): Promise<PostPayoutsPayoutCancelResponse> {
return this.request('POST', `https://api.stripe.com//v1/payouts/${payout}/cancel`, body ? JSON.stringify(body) : undefined);
},
async PostPayoutsPayoutReverse(payout: string, body?: PostPayoutsPayoutReverseBody): Promise<PostPayoutsPayoutReverseResponse> {
return this.request('POST', `https://api.stripe.com//v1/payouts/${payout}/reverse`, body ? JSON.stringify(body) : undefined);
},
async GetPlans(query?: Record<string, string>): Promise<GetPlansResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/plans`, query));
},
async PostPlans(body?: PostPlansBody): Promise<PostPlansResponse> {
return this.request('POST', `https://api.stripe.com//v1/plans`, body ? JSON.stringify(body) : undefined);
},
async GetPlansPlan(plan: string, query?: Record<string, string>): Promise<GetPlansPlanResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/plans/${plan}`, query));
},
async PostPlansPlan(plan: string, body?: PostPlansPlanBody): Promise<PostPlansPlanResponse> {
return this.request('POST', `https://api.stripe.com//v1/plans/${plan}`, body ? JSON.stringify(body) : undefined);
},
async DeletePlansPlan(plan: string): Promise<DeletePlansPlanResponse> {
return this.request('DELETE', `https://api.stripe.com//v1/plans/${plan}`);
},
async GetPrices(query?: Record<string, string>): Promise<GetPricesResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/prices`, query));
},
async PostPrices(body?: PostPricesBody): Promise<PostPricesResponse> {
return this.request('POST', `https://api.stripe.com//v1/prices`, body ? JSON.stringify(body) : undefined);
},
async GetPricesSearch(query?: Record<string, string>): Promise<GetPricesSearchResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/prices/search`, query));
},
async GetPricesPrice(price: string, query?: Record<string, string>): Promise<GetPricesPriceResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/prices/${price}`, query));
},
async PostPricesPrice(price: string, body?: PostPricesPriceBody): Promise<PostPricesPriceResponse> {
return this.request('POST', `https://api.stripe.com//v1/prices/${price}`, body ? JSON.stringify(body) : undefined);
},
async GetProducts(query?: Record<string, string>): Promise<GetProductsResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/products`, query));
},
async PostProducts(body?: PostProductsBody): Promise<PostProductsResponse> {
return this.request('POST', `https://api.stripe.com//v1/products`, body ? JSON.stringify(body) : undefined);
},
async GetProductsSearch(query?: Record<string, string>): Promise<GetProductsSearchResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/products/search`, query));
},
async GetProductsId(id: string, query?: Record<string, string>): Promise<GetProductsIdResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/products/${id}`, query));
},
async PostProductsId(id: string, body?: PostProductsIdBody): Promise<PostProductsIdResponse> {
return this.request('POST', `https://api.stripe.com//v1/products/${id}`, body ? JSON.stringify(body) : undefined);
},
async DeleteProductsId(id: string): Promise<DeleteProductsIdResponse> {
return this.request('DELETE', `https://api.stripe.com//v1/products/${id}`);
},
async GetProductsProductFeatures(product: string, query?: Record<string, string>): Promise<GetProductsProductFeaturesResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/products/${product}/features`, query));
},
async PostProductsProductFeatures(product: string, body?: PostProductsProductFeaturesBody): Promise<PostProductsProductFeaturesResponse> {
return this.request('POST', `https://api.stripe.com//v1/products/${product}/features`, body ? JSON.stringify(body) : undefined);
},
async GetProductsProductFeaturesId(id: string, product: string, query?: Record<string, string>): Promise<GetProductsProductFeaturesIdResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/products/${product}/features/${id}`, query));
},
async DeleteProductsProductFeaturesId(id: string, product: string): Promise<DeleteProductsProductFeaturesIdResponse> {
return this.request('DELETE', `https://api.stripe.com//v1/products/${product}/features/${id}`);
},
async GetPromotionCodes(query?: Record<string, string>): Promise<GetPromotionCodesResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/promotion_codes`, query));
},
async PostPromotionCodes(body?: PostPromotionCodesBody): Promise<PostPromotionCodesResponse> {
return this.request('POST', `https://api.stripe.com//v1/promotion_codes`, body ? JSON.stringify(body) : undefined);
},
async GetPromotionCodesPromotionCode(promotion_code: string, query?: Record<string, string>): Promise<GetPromotionCodesPromotionCodeResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/promotion_codes/${promotion_code}`, query));
},
async PostPromotionCodesPromotionCode(promotion_code: string, body?: PostPromotionCodesPromotionCodeBody): Promise<PostPromotionCodesPromotionCodeResponse> {
return this.request('POST', `https://api.stripe.com//v1/promotion_codes/${promotion_code}`, body ? JSON.stringify(body) : undefined);
},
async GetQuotes(query?: Record<string, string>): Promise<GetQuotesResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/quotes`, query));
},
async PostQuotes(body?: PostQuotesBody): Promise<PostQuotesResponse> {
return this.request('POST', `https://api.stripe.com//v1/quotes`, body ? JSON.stringify(body) : undefined);
},
async GetQuotesQuote(quote: string, query?: Record<string, string>): Promise<GetQuotesQuoteResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/quotes/${quote}`, query));
},
async PostQuotesQuote(quote: string, body?: PostQuotesQuoteBody): Promise<PostQuotesQuoteResponse> {
return this.request('POST', `https://api.stripe.com//v1/quotes/${quote}`, body ? JSON.stringify(body) : undefined);
},
async PostQuotesQuoteAccept(quote: string, body?: PostQuotesQuoteAcceptBody): Promise<PostQuotesQuoteAcceptResponse> {
return this.request('POST', `https://api.stripe.com//v1/quotes/${quote}/accept`, body ? JSON.stringify(body) : undefined);
},
async PostQuotesQuoteCancel(quote: string, body?: PostQuotesQuoteCancelBody): Promise<PostQuotesQuoteCancelResponse> {
return this.request('POST', `https://api.stripe.com//v1/quotes/${quote}/cancel`, body ? JSON.stringify(body) : undefined);
},
async GetQuotesQuoteComputedUpfrontLineItems(quote: string, query?: Record<string, string>): Promise<GetQuotesQuoteComputedUpfrontLineItemsResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/quotes/${quote}/computed_upfront_line_items`, query));
},
async PostQuotesQuoteFinalize(quote: string, body?: PostQuotesQuoteFinalizeBody): Promise<PostQuotesQuoteFinalizeResponse> {
return this.request('POST', `https://api.stripe.com//v1/quotes/${quote}/finalize`, body ? JSON.stringify(body) : undefined);
},
async GetQuotesQuoteLineItems(quote: string, query?: Record<string, string>): Promise<GetQuotesQuoteLineItemsResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/quotes/${quote}/line_items`, query));
},
async GetQuotesQuotePdf(quote: string, query?: Record<string, string>): Promise<GetQuotesQuotePdfResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/quotes/${quote}/pdf`, query));
},
async GetRadarEarlyFraudWarnings(query?: Record<string, string>): Promise<GetRadarEarlyFraudWarningsResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/radar/early_fraud_warnings`, query));
},
async GetRadarEarlyFraudWarningsEarlyFraudWarning(early_fraud_warning: string, query?: Record<string, string>): Promise<GetRadarEarlyFraudWarningsEarlyFraudWarningResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/radar/early_fraud_warnings/${early_fraud_warning}`, query));
},
async PostRadarPaymentEvaluations(body?: PostRadarPaymentEvaluationsBody): Promise<PostRadarPaymentEvaluationsResponse> {
return this.request('POST', `https://api.stripe.com//v1/radar/payment_evaluations`, body ? JSON.stringify(body) : undefined);
},
async GetRadarValueListItems(query?: Record<string, string>): Promise<GetRadarValueListItemsResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/radar/value_list_items`, query));
},
async PostRadarValueListItems(body?: PostRadarValueListItemsBody): Promise<PostRadarValueListItemsResponse> {
return this.request('POST', `https://api.stripe.com//v1/radar/value_list_items`, body ? JSON.stringify(body) : undefined);
},
async GetRadarValueListItemsItem(item: string, query?: Record<string, string>): Promise<GetRadarValueListItemsItemResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/radar/value_list_items/${item}`, query));
},
async DeleteRadarValueListItemsItem(item: string): Promise<DeleteRadarValueListItemsItemResponse> {
return this.request('DELETE', `https://api.stripe.com//v1/radar/value_list_items/${item}`);
},
async GetRadarValueLists(query?: Record<string, string>): Promise<GetRadarValueListsResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/radar/value_lists`, query));
},
async PostRadarValueLists(body?: PostRadarValueListsBody): Promise<PostRadarValueListsResponse> {
return this.request('POST', `https://api.stripe.com//v1/radar/value_lists`, body ? JSON.stringify(body) : undefined);
},
async GetRadarValueListsValueList(value_list: string, query?: Record<string, string>): Promise<GetRadarValueListsValueListResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/radar/value_lists/${value_list}`, query));
},
async PostRadarValueListsValueList(value_list: string, body?: PostRadarValueListsValueListBody): Promise<PostRadarValueListsValueListResponse> {
return this.request('POST', `https://api.stripe.com//v1/radar/value_lists/${value_list}`, body ? JSON.stringify(body) : undefined);
},
async DeleteRadarValueListsValueList(value_list: string): Promise<DeleteRadarValueListsValueListResponse> {
return this.request('DELETE', `https://api.stripe.com//v1/radar/value_lists/${value_list}`);
},
async GetRefunds(query?: Record<string, string>): Promise<GetRefundsResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/refunds`, query));
},
async PostRefunds(body?: PostRefundsBody): Promise<PostRefundsResponse> {
return this.request('POST', `https://api.stripe.com//v1/refunds`, body ? JSON.stringify(body) : undefined);
},
async GetRefundsRefund(refund: string, query?: Record<string, string>): Promise<GetRefundsRefundResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/refunds/${refund}`, query));
},
async PostRefundsRefund(refund: string, body?: PostRefundsRefundBody): Promise<PostRefundsRefundResponse> {
return this.request('POST', `https://api.stripe.com//v1/refunds/${refund}`, body ? JSON.stringify(body) : undefined);
},
async PostRefundsRefundCancel(refund: string, body?: PostRefundsRefundCancelBody): Promise<PostRefundsRefundCancelResponse> {
return this.request('POST', `https://api.stripe.com//v1/refunds/${refund}/cancel`, body ? JSON.stringify(body) : undefined);
},
async GetReportingReportRuns(query?: Record<string, string>): Promise<GetReportingReportRunsResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/reporting/report_runs`, query));
},
async PostReportingReportRuns(body?: PostReportingReportRunsBody): Promise<PostReportingReportRunsResponse> {
return this.request('POST', `https://api.stripe.com//v1/reporting/report_runs`, body ? JSON.stringify(body) : undefined);
},
async GetReportingReportRunsReportRun(report_run: string, query?: Record<string, string>): Promise<GetReportingReportRunsReportRunResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/reporting/report_runs/${report_run}`, query));
},
async GetReportingReportTypes(query?: Record<string, string>): Promise<GetReportingReportTypesResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/reporting/report_types`, query));
},
async GetReportingReportTypesReportType(report_type: string, query?: Record<string, string>): Promise<GetReportingReportTypesReportTypeResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/reporting/report_types/${report_type}`, query));
},
async GetReviews(query?: Record<string, string>): Promise<GetReviewsResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/reviews`, query));
},
async GetReviewsReview(review: string, query?: Record<string, string>): Promise<GetReviewsReviewResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/reviews/${review}`, query));
},
async PostReviewsReviewApprove(review: string, body?: PostReviewsReviewApproveBody): Promise<PostReviewsReviewApproveResponse> {
return this.request('POST', `https://api.stripe.com//v1/reviews/${review}/approve`, body ? JSON.stringify(body) : undefined);
},
async GetSetupAttempts(query?: Record<string, string>): Promise<GetSetupAttemptsResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/setup_attempts`, query));
},
async GetSetupIntents(query?: Record<string, string>): Promise<GetSetupIntentsResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/setup_intents`, query));
},
async PostSetupIntents(body?: PostSetupIntentsBody): Promise<PostSetupIntentsResponse> {
return this.request('POST', `https://api.stripe.com//v1/setup_intents`, body ? JSON.stringify(body) : undefined);
},
async GetSetupIntentsIntent(intent: string, query?: Record<string, string>): Promise<GetSetupIntentsIntentResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/setup_intents/${intent}`, query));
},
async PostSetupIntentsIntent(intent: string, body?: PostSetupIntentsIntentBody): Promise<PostSetupIntentsIntentResponse> {
return this.request('POST', `https://api.stripe.com//v1/setup_intents/${intent}`, body ? JSON.stringify(body) : undefined);
},
async PostSetupIntentsIntentCancel(intent: string, body?: PostSetupIntentsIntentCancelBody): Promise<PostSetupIntentsIntentCancelResponse> {
return this.request('POST', `https://api.stripe.com//v1/setup_intents/${intent}/cancel`, body ? JSON.stringify(body) : undefined);
},
async PostSetupIntentsIntentConfirm(intent: string, body?: PostSetupIntentsIntentConfirmBody): Promise<PostSetupIntentsIntentConfirmResponse> {
return this.request('POST', `https://api.stripe.com//v1/setup_intents/${intent}/confirm`, body ? JSON.stringify(body) : undefined);
},
async PostSetupIntentsIntentVerifyMicrodeposits(intent: string, body?: PostSetupIntentsIntentVerifyMicrodepositsBody): Promise<PostSetupIntentsIntentVerifyMicrodepositsResponse> {
return this.request('POST', `https://api.stripe.com//v1/setup_intents/${intent}/verify_microdeposits`, body ? JSON.stringify(body) : undefined);
},
async GetShippingRates(query?: Record<string, string>): Promise<GetShippingRatesResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/shipping_rates`, query));
},
async PostShippingRates(body?: PostShippingRatesBody): Promise<PostShippingRatesResponse> {
return this.request('POST', `https://api.stripe.com//v1/shipping_rates`, body ? JSON.stringify(body) : undefined);
},
async GetShippingRatesShippingRateToken(shipping_rate_token: string, query?: Record<string, string>): Promise<GetShippingRatesShippingRateTokenResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/shipping_rates/${shipping_rate_token}`, query));
},
async PostShippingRatesShippingRateToken(shipping_rate_token: string, body?: PostShippingRatesShippingRateTokenBody): Promise<PostShippingRatesShippingRateTokenResponse> {
return this.request('POST', `https://api.stripe.com//v1/shipping_rates/${shipping_rate_token}`, body ? JSON.stringify(body) : undefined);
},
async PostSigmaSavedQueriesId(id: string, body?: PostSigmaSavedQueriesIdBody): Promise<PostSigmaSavedQueriesIdResponse> {
return this.request('POST', `https://api.stripe.com//v1/sigma/saved_queries/${id}`, body ? JSON.stringify(body) : undefined);
},
async GetSigmaScheduledQueryRuns(query?: Record<string, string>): Promise<GetSigmaScheduledQueryRunsResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/sigma/scheduled_query_runs`, query));
},
async GetSigmaScheduledQueryRunsScheduledQueryRun(scheduled_query_run: string, query?: Record<string, string>): Promise<GetSigmaScheduledQueryRunsScheduledQueryRunResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/sigma/scheduled_query_runs/${scheduled_query_run}`, query));
},
async PostSources(body?: PostSourcesBody): Promise<PostSourcesResponse> {
return this.request('POST', `https://api.stripe.com//v1/sources`, body ? JSON.stringify(body) : undefined);
},
async GetSourcesSource(source: string, query?: Record<string, string>): Promise<GetSourcesSourceResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/sources/${source}`, query));
},
async PostSourcesSource(source: string, body?: PostSourcesSourceBody): Promise<PostSourcesSourceResponse> {
return this.request('POST', `https://api.stripe.com//v1/sources/${source}`, body ? JSON.stringify(body) : undefined);
},
async GetSourcesSourceMandateNotificationsMandateNotification(mandate_notification: string, source: string, query?: Record<string, string>): Promise<GetSourcesSourceMandateNotificationsMandateNotificationResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/sources/${source}/mandate_notifications/${mandate_notification}`, query));
},
async GetSourcesSourceSourceTransactions(source: string, query?: Record<string, string>): Promise<GetSourcesSourceSourceTransactionsResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/sources/${source}/source_transactions`, query));
},
async GetSourcesSourceSourceTransactionsSourceTransaction(source: string, source_transaction: string, query?: Record<string, string>): Promise<GetSourcesSourceSourceTransactionsSourceTransactionResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/sources/${source}/source_transactions/${source_transaction}`, query));
},
async PostSourcesSourceVerify(source: string, body?: PostSourcesSourceVerifyBody): Promise<PostSourcesSourceVerifyResponse> {
return this.request('POST', `https://api.stripe.com//v1/sources/${source}/verify`, body ? JSON.stringify(body) : undefined);
},
async GetSubscriptionItems(query?: Record<string, string>): Promise<GetSubscriptionItemsResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/subscription_items`, query));
},
async PostSubscriptionItems(body?: PostSubscriptionItemsBody): Promise<PostSubscriptionItemsResponse> {
return this.request('POST', `https://api.stripe.com//v1/subscription_items`, body ? JSON.stringify(body) : undefined);
},
async GetSubscriptionItemsItem(item: string, query?: Record<string, string>): Promise<GetSubscriptionItemsItemResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/subscription_items/${item}`, query));
},
async PostSubscriptionItemsItem(item: string, body?: PostSubscriptionItemsItemBody): Promise<PostSubscriptionItemsItemResponse> {
return this.request('POST', `https://api.stripe.com//v1/subscription_items/${item}`, body ? JSON.stringify(body) : undefined);
},
async DeleteSubscriptionItemsItem(item: string): Promise<DeleteSubscriptionItemsItemResponse> {
return this.request('DELETE', `https://api.stripe.com//v1/subscription_items/${item}`);
},
async GetSubscriptionSchedules(query?: Record<string, string>): Promise<GetSubscriptionSchedulesResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/subscription_schedules`, query));
},
async PostSubscriptionSchedules(body?: PostSubscriptionSchedulesBody): Promise<PostSubscriptionSchedulesResponse> {
return this.request('POST', `https://api.stripe.com//v1/subscription_schedules`, body ? JSON.stringify(body) : undefined);
},
async GetSubscriptionSchedulesSchedule(schedule: string, query?: Record<string, string>): Promise<GetSubscriptionSchedulesScheduleResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/subscription_schedules/${schedule}`, query));
},
async PostSubscriptionSchedulesSchedule(schedule: string, body?: PostSubscriptionSchedulesScheduleBody): Promise<PostSubscriptionSchedulesScheduleResponse> {
return this.request('POST', `https://api.stripe.com//v1/subscription_schedules/${schedule}`, body ? JSON.stringify(body) : undefined);
},
async PostSubscriptionSchedulesScheduleCancel(schedule: string, body?: PostSubscriptionSchedulesScheduleCancelBody): Promise<PostSubscriptionSchedulesScheduleCancelResponse> {
return this.request('POST', `https://api.stripe.com//v1/subscription_schedules/${schedule}/cancel`, body ? JSON.stringify(body) : undefined);
},
async PostSubscriptionSchedulesScheduleRelease(schedule: string, body?: PostSubscriptionSchedulesScheduleReleaseBody): Promise<PostSubscriptionSchedulesScheduleReleaseResponse> {
return this.request('POST', `https://api.stripe.com//v1/subscription_schedules/${schedule}/release`, body ? JSON.stringify(body) : undefined);
},
async GetSubscriptions(query?: Record<string, string>): Promise<GetSubscriptionsResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/subscriptions`, query));
},
async PostSubscriptions(body?: PostSubscriptionsBody): Promise<PostSubscriptionsResponse> {
return this.request('POST', `https://api.stripe.com//v1/subscriptions`, body ? JSON.stringify(body) : undefined);
},
async GetSubscriptionsSearch(query?: Record<string, string>): Promise<GetSubscriptionsSearchResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/subscriptions/search`, query));
},
async GetSubscriptionsSubscriptionExposedId(subscription_exposed_id: string, query?: Record<string, string>): Promise<GetSubscriptionsSubscriptionExposedIdResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/subscriptions/${subscription_exposed_id}`, query));
},
async PostSubscriptionsSubscriptionExposedId(subscription_exposed_id: string, body?: PostSubscriptionsSubscriptionExposedIdBody): Promise<PostSubscriptionsSubscriptionExposedIdResponse> {
return this.request('POST', `https://api.stripe.com//v1/subscriptions/${subscription_exposed_id}`, body ? JSON.stringify(body) : undefined);
},
async DeleteSubscriptionsSubscriptionExposedId(subscription_exposed_id: string): Promise<DeleteSubscriptionsSubscriptionExposedIdResponse> {
return this.request('DELETE', `https://api.stripe.com//v1/subscriptions/${subscription_exposed_id}`);
},
async DeleteSubscriptionsSubscriptionExposedIdDiscount(subscription_exposed_id: string): Promise<DeleteSubscriptionsSubscriptionExposedIdDiscountResponse> {
return this.request('DELETE', `https://api.stripe.com//v1/subscriptions/${subscription_exposed_id}/discount`);
},
async PostSubscriptionsSubscriptionMigrate(subscription: string, body?: PostSubscriptionsSubscriptionMigrateBody): Promise<PostSubscriptionsSubscriptionMigrateResponse> {
return this.request('POST', `https://api.stripe.com//v1/subscriptions/${subscription}/migrate`, body ? JSON.stringify(body) : undefined);
},
async PostSubscriptionsSubscriptionResume(subscription: string, body?: PostSubscriptionsSubscriptionResumeBody): Promise<PostSubscriptionsSubscriptionResumeResponse> {
return this.request('POST', `https://api.stripe.com//v1/subscriptions/${subscription}/resume`, body ? JSON.stringify(body) : undefined);
},
async GetTaxAssociationsFind(query?: Record<string, string>): Promise<GetTaxAssociationsFindResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/tax/associations/find`, query));
},
async PostTaxCalculations(body?: PostTaxCalculationsBody): Promise<PostTaxCalculationsResponse> {
return this.request('POST', `https://api.stripe.com//v1/tax/calculations`, body ? JSON.stringify(body) : undefined);
},
async GetTaxCalculationsCalculation(calculation: string, query?: Record<string, string>): Promise<GetTaxCalculationsCalculationResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/tax/calculations/${calculation}`, query));
},
async GetTaxCalculationsCalculationLineItems(calculation: string, query?: Record<string, string>): Promise<GetTaxCalculationsCalculationLineItemsResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/tax/calculations/${calculation}/line_items`, query));
},
async GetTaxRegistrations(query?: Record<string, string>): Promise<GetTaxRegistrationsResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/tax/registrations`, query));
},
async PostTaxRegistrations(body?: PostTaxRegistrationsBody): Promise<PostTaxRegistrationsResponse> {
return this.request('POST', `https://api.stripe.com//v1/tax/registrations`, body ? JSON.stringify(body) : undefined);
},
async GetTaxRegistrationsId(id: string, query?: Record<string, string>): Promise<GetTaxRegistrationsIdResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/tax/registrations/${id}`, query));
},
async PostTaxRegistrationsId(id: string, body?: PostTaxRegistrationsIdBody): Promise<PostTaxRegistrationsIdResponse> {
return this.request('POST', `https://api.stripe.com//v1/tax/registrations/${id}`, body ? JSON.stringify(body) : undefined);
},
async GetTaxSettings(query?: Record<string, string>): Promise<GetTaxSettingsResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/tax/settings`, query));
},
async PostTaxSettings(body?: PostTaxSettingsBody): Promise<PostTaxSettingsResponse> {
return this.request('POST', `https://api.stripe.com//v1/tax/settings`, body ? JSON.stringify(body) : undefined);
},
async PostTaxTransactionsCreateFromCalculation(body?: PostTaxTransactionsCreateFromCalculationBody): Promise<PostTaxTransactionsCreateFromCalculationResponse> {
return this.request('POST', `https://api.stripe.com//v1/tax/transactions/create_from_calculation`, body ? JSON.stringify(body) : undefined);
},
async PostTaxTransactionsCreateReversal(body?: PostTaxTransactionsCreateReversalBody): Promise<PostTaxTransactionsCreateReversalResponse> {
return this.request('POST', `https://api.stripe.com//v1/tax/transactions/create_reversal`, body ? JSON.stringify(body) : undefined);
},
async GetTaxTransactionsTransaction(transaction: string, query?: Record<string, string>): Promise<GetTaxTransactionsTransactionResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/tax/transactions/${transaction}`, query));
},
async GetTaxTransactionsTransactionLineItems(transaction: string, query?: Record<string, string>): Promise<GetTaxTransactionsTransactionLineItemsResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/tax/transactions/${transaction}/line_items`, query));
},
async GetTaxCodes(query?: Record<string, string>): Promise<GetTaxCodesResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/tax_codes`, query));
},
async GetTaxCodesId(id: string, query?: Record<string, string>): Promise<GetTaxCodesIdResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/tax_codes/${id}`, query));
},
async GetTaxIds(query?: Record<string, string>): Promise<GetTaxIdsResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/tax_ids`, query));
},
async PostTaxIds(body?: PostTaxIdsBody): Promise<PostTaxIdsResponse> {
return this.request('POST', `https://api.stripe.com//v1/tax_ids`, body ? JSON.stringify(body) : undefined);
},
async GetTaxIdsId(id: string, query?: Record<string, string>): Promise<GetTaxIdsIdResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/tax_ids/${id}`, query));
},
async DeleteTaxIdsId(id: string): Promise<DeleteTaxIdsIdResponse> {
return this.request('DELETE', `https://api.stripe.com//v1/tax_ids/${id}`);
},
async GetTaxRates(query?: Record<string, string>): Promise<GetTaxRatesResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/tax_rates`, query));
},
async PostTaxRates(body?: PostTaxRatesBody): Promise<PostTaxRatesResponse> {
return this.request('POST', `https://api.stripe.com//v1/tax_rates`, body ? JSON.stringify(body) : undefined);
},
async GetTaxRatesTaxRate(tax_rate: string, query?: Record<string, string>): Promise<GetTaxRatesTaxRateResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/tax_rates/${tax_rate}`, query));
},
async PostTaxRatesTaxRate(tax_rate: string, body?: PostTaxRatesTaxRateBody): Promise<PostTaxRatesTaxRateResponse> {
return this.request('POST', `https://api.stripe.com//v1/tax_rates/${tax_rate}`, body ? JSON.stringify(body) : undefined);
},
async GetTerminalConfigurations(query?: Record<string, string>): Promise<GetTerminalConfigurationsResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/terminal/configurations`, query));
},
async PostTerminalConfigurations(body?: PostTerminalConfigurationsBody): Promise<PostTerminalConfigurationsResponse> {
return this.request('POST', `https://api.stripe.com//v1/terminal/configurations`, body ? JSON.stringify(body) : undefined);
},
async GetTerminalConfigurationsConfiguration(configuration: string, query?: Record<string, string>): Promise<GetTerminalConfigurationsConfigurationResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/terminal/configurations/${configuration}`, query));
},
async PostTerminalConfigurationsConfiguration(configuration: string, body?: PostTerminalConfigurationsConfigurationBody): Promise<PostTerminalConfigurationsConfigurationResponse> {
return this.request('POST', `https://api.stripe.com//v1/terminal/configurations/${configuration}`, body ? JSON.stringify(body) : undefined);
},
async DeleteTerminalConfigurationsConfiguration(configuration: string): Promise<DeleteTerminalConfigurationsConfigurationResponse> {
return this.request('DELETE', `https://api.stripe.com//v1/terminal/configurations/${configuration}`);
},
async PostTerminalConnectionTokens(body?: PostTerminalConnectionTokensBody): Promise<PostTerminalConnectionTokensResponse> {
return this.request('POST', `https://api.stripe.com//v1/terminal/connection_tokens`, body ? JSON.stringify(body) : undefined);
},
async GetTerminalLocations(query?: Record<string, string>): Promise<GetTerminalLocationsResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/terminal/locations`, query));
},
async PostTerminalLocations(body?: PostTerminalLocationsBody): Promise<PostTerminalLocationsResponse> {
return this.request('POST', `https://api.stripe.com//v1/terminal/locations`, body ? JSON.stringify(body) : undefined);
},
async GetTerminalLocationsLocation(location: string, query?: Record<string, string>): Promise<GetTerminalLocationsLocationResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/terminal/locations/${location}`, query));
},
async PostTerminalLocationsLocation(location: string, body?: PostTerminalLocationsLocationBody): Promise<PostTerminalLocationsLocationResponse> {
return this.request('POST', `https://api.stripe.com//v1/terminal/locations/${location}`, body ? JSON.stringify(body) : undefined);
},
async DeleteTerminalLocationsLocation(location: string): Promise<DeleteTerminalLocationsLocationResponse> {
return this.request('DELETE', `https://api.stripe.com//v1/terminal/locations/${location}`);
},
async PostTerminalOnboardingLinks(body?: PostTerminalOnboardingLinksBody): Promise<PostTerminalOnboardingLinksResponse> {
return this.request('POST', `https://api.stripe.com//v1/terminal/onboarding_links`, body ? JSON.stringify(body) : undefined);
},
async GetTerminalReaders(query?: Record<string, string>): Promise<GetTerminalReadersResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/terminal/readers`, query));
},
async PostTerminalReaders(body?: PostTerminalReadersBody): Promise<PostTerminalReadersResponse> {
return this.request('POST', `https://api.stripe.com//v1/terminal/readers`, body ? JSON.stringify(body) : undefined);
},
async GetTerminalReadersReader(reader: string, query?: Record<string, string>): Promise<GetTerminalReadersReaderResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/terminal/readers/${reader}`, query));
},
async PostTerminalReadersReader(reader: string, body?: PostTerminalReadersReaderBody): Promise<PostTerminalReadersReaderResponse> {
return this.request('POST', `https://api.stripe.com//v1/terminal/readers/${reader}`, body ? JSON.stringify(body) : undefined);
},
async DeleteTerminalReadersReader(reader: string): Promise<DeleteTerminalReadersReaderResponse> {
return this.request('DELETE', `https://api.stripe.com//v1/terminal/readers/${reader}`);
},
async PostTerminalReadersReaderCancelAction(reader: string, body?: PostTerminalReadersReaderCancelActionBody): Promise<PostTerminalReadersReaderCancelActionResponse> {
return this.request('POST', `https://api.stripe.com//v1/terminal/readers/${reader}/cancel_action`, body ? JSON.stringify(body) : undefined);
},
async PostTerminalReadersReaderCollectInputs(reader: string, body?: PostTerminalReadersReaderCollectInputsBody): Promise<PostTerminalReadersReaderCollectInputsResponse> {
return this.request('POST', `https://api.stripe.com//v1/terminal/readers/${reader}/collect_inputs`, body ? JSON.stringify(body) : undefined);
},
async PostTerminalReadersReaderCollectPaymentMethod(reader: string, body?: PostTerminalReadersReaderCollectPaymentMethodBody): Promise<PostTerminalReadersReaderCollectPaymentMethodResponse> {
return this.request('POST', `https://api.stripe.com//v1/terminal/readers/${reader}/collect_payment_method`, body ? JSON.stringify(body) : undefined);
},
async PostTerminalReadersReaderConfirmPaymentIntent(reader: string, body?: PostTerminalReadersReaderConfirmPaymentIntentBody): Promise<PostTerminalReadersReaderConfirmPaymentIntentResponse> {
return this.request('POST', `https://api.stripe.com//v1/terminal/readers/${reader}/confirm_payment_intent`, body ? JSON.stringify(body) : undefined);
},
async PostTerminalReadersReaderProcessPaymentIntent(reader: string, body?: PostTerminalReadersReaderProcessPaymentIntentBody): Promise<PostTerminalReadersReaderProcessPaymentIntentResponse> {
return this.request('POST', `https://api.stripe.com//v1/terminal/readers/${reader}/process_payment_intent`, body ? JSON.stringify(body) : undefined);
},
async PostTerminalReadersReaderProcessSetupIntent(reader: string, body?: PostTerminalReadersReaderProcessSetupIntentBody): Promise<PostTerminalReadersReaderProcessSetupIntentResponse> {
return this.request('POST', `https://api.stripe.com//v1/terminal/readers/${reader}/process_setup_intent`, body ? JSON.stringify(body) : undefined);
},
async PostTerminalReadersReaderRefundPayment(reader: string, body?: PostTerminalReadersReaderRefundPaymentBody): Promise<PostTerminalReadersReaderRefundPaymentResponse> {
return this.request('POST', `https://api.stripe.com//v1/terminal/readers/${reader}/refund_payment`, body ? JSON.stringify(body) : undefined);
},
async PostTerminalReadersReaderSetReaderDisplay(reader: string, body?: PostTerminalReadersReaderSetReaderDisplayBody): Promise<PostTerminalReadersReaderSetReaderDisplayResponse> {
return this.request('POST', `https://api.stripe.com//v1/terminal/readers/${reader}/set_reader_display`, body ? JSON.stringify(body) : undefined);
},
async PostTerminalRefunds(body?: PostTerminalRefundsBody): Promise<PostTerminalRefundsResponse> {
return this.request('POST', `https://api.stripe.com//v1/terminal/refunds`, body ? JSON.stringify(body) : undefined);
},
async PostTestHelpersConfirmationTokens(body?: PostTestHelpersConfirmationTokensBody): Promise<PostTestHelpersConfirmationTokensResponse> {
return this.request('POST', `https://api.stripe.com//v1/test_helpers/confirmation_tokens`, body ? JSON.stringify(body) : undefined);
},
async PostTestHelpersCustomersCustomerFundCashBalance(customer: string, body?: PostTestHelpersCustomersCustomerFundCashBalanceBody): Promise<PostTestHelpersCustomersCustomerFundCashBalanceResponse> {
return this.request('POST', `https://api.stripe.com//v1/test_helpers/customers/${customer}/fund_cash_balance`, body ? JSON.stringify(body) : undefined);
},
async PostTestHelpersIssuingAuthorizations(body?: PostTestHelpersIssuingAuthorizationsBody): Promise<PostTestHelpersIssuingAuthorizationsResponse> {
return this.request('POST', `https://api.stripe.com//v1/test_helpers/issuing/authorizations`, body ? JSON.stringify(body) : undefined);
},
async PostTestHelpersIssuingAuthorizationsAuthorizationCapture(authorization: string, body?: PostTestHelpersIssuingAuthorizationsAuthorizationCaptureBody): Promise<PostTestHelpersIssuingAuthorizationsAuthorizationCaptureResponse> {
return this.request('POST', `https://api.stripe.com//v1/test_helpers/issuing/authorizations/${authorization}/capture`, body ? JSON.stringify(body) : undefined);
},
async PostTestHelpersIssuingAuthorizationsAuthorizationExpire(authorization: string, body?: PostTestHelpersIssuingAuthorizationsAuthorizationExpireBody): Promise<PostTestHelpersIssuingAuthorizationsAuthorizationExpireResponse> {
return this.request('POST', `https://api.stripe.com//v1/test_helpers/issuing/authorizations/${authorization}/expire`, body ? JSON.stringify(body) : undefined);
},
async PostTestHelpersIssuingAuthorizationsAuthorizationFinalizeAmount(authorization: string, body?: PostTestHelpersIssuingAuthorizationsAuthorizationFinalizeAmountBody): Promise<PostTestHelpersIssuingAuthorizationsAuthorizationFinalizeAmountResponse> {
return this.request('POST', `https://api.stripe.com//v1/test_helpers/issuing/authorizations/${authorization}/finalize_amount`, body ? JSON.stringify(body) : undefined);
},
async PostTestHelpersIssuingAuthorizationsAuthorizationFraudChallengesRespond(authorization: string, body?: PostTestHelpersIssuingAuthorizationsAuthorizationFraudChallengesRespondBody): Promise<PostTestHelpersIssuingAuthorizationsAuthorizationFraudChallengesRespondResponse> {
return this.request('POST', `https://api.stripe.com//v1/test_helpers/issuing/authorizations/${authorization}/fraud_challenges/respond`, body ? JSON.stringify(body) : undefined);
},
async PostTestHelpersIssuingAuthorizationsAuthorizationIncrement(authorization: string, body?: PostTestHelpersIssuingAuthorizationsAuthorizationIncrementBody): Promise<PostTestHelpersIssuingAuthorizationsAuthorizationIncrementResponse> {
return this.request('POST', `https://api.stripe.com//v1/test_helpers/issuing/authorizations/${authorization}/increment`, body ? JSON.stringify(body) : undefined);
},
async PostTestHelpersIssuingAuthorizationsAuthorizationReverse(authorization: string, body?: PostTestHelpersIssuingAuthorizationsAuthorizationReverseBody): Promise<PostTestHelpersIssuingAuthorizationsAuthorizationReverseResponse> {
return this.request('POST', `https://api.stripe.com//v1/test_helpers/issuing/authorizations/${authorization}/reverse`, body ? JSON.stringify(body) : undefined);
},
async PostTestHelpersIssuingCardsCardShippingDeliver(card: string, body?: PostTestHelpersIssuingCardsCardShippingDeliverBody): Promise<PostTestHelpersIssuingCardsCardShippingDeliverResponse> {
return this.request('POST', `https://api.stripe.com//v1/test_helpers/issuing/cards/${card}/shipping/deliver`, body ? JSON.stringify(body) : undefined);
},
async PostTestHelpersIssuingCardsCardShippingFail(card: string, body?: PostTestHelpersIssuingCardsCardShippingFailBody): Promise<PostTestHelpersIssuingCardsCardShippingFailResponse> {
return this.request('POST', `https://api.stripe.com//v1/test_helpers/issuing/cards/${card}/shipping/fail`, body ? JSON.stringify(body) : undefined);
},
async PostTestHelpersIssuingCardsCardShippingReturn(card: string, body?: PostTestHelpersIssuingCardsCardShippingReturnBody): Promise<PostTestHelpersIssuingCardsCardShippingReturnResponse> {
return this.request('POST', `https://api.stripe.com//v1/test_helpers/issuing/cards/${card}/shipping/return`, body ? JSON.stringify(body) : undefined);
},
async PostTestHelpersIssuingCardsCardShippingShip(card: string, body?: PostTestHelpersIssuingCardsCardShippingShipBody): Promise<PostTestHelpersIssuingCardsCardShippingShipResponse> {
return this.request('POST', `https://api.stripe.com//v1/test_helpers/issuing/cards/${card}/shipping/ship`, body ? JSON.stringify(body) : undefined);
},
async PostTestHelpersIssuingCardsCardShippingSubmit(card: string, body?: PostTestHelpersIssuingCardsCardShippingSubmitBody): Promise<PostTestHelpersIssuingCardsCardShippingSubmitResponse> {
return this.request('POST', `https://api.stripe.com//v1/test_helpers/issuing/cards/${card}/shipping/submit`, body ? JSON.stringify(body) : undefined);
},
async PostTestHelpersIssuingPersonalizationDesignsPersonalizationDesignActivate(personalization_design: string, body?: PostTestHelpersIssuingPersonalizationDesignsPersonalizationDesignActivateBody): Promise<PostTestHelpersIssuingPersonalizationDesignsPersonalizationDesignActivateResponse> {
return this.request('POST', `https://api.stripe.com//v1/test_helpers/issuing/personalization_designs/${personalization_design}/activate`, body ? JSON.stringify(body) : undefined);
},
async PostTestHelpersIssuingPersonalizationDesignsPersonalizationDesignDeactivate(personalization_design: string, body?: PostTestHelpersIssuingPersonalizationDesignsPersonalizationDesignDeactivateBody): Promise<PostTestHelpersIssuingPersonalizationDesignsPersonalizationDesignDeactivateResponse> {
return this.request('POST', `https://api.stripe.com//v1/test_helpers/issuing/personalization_designs/${personalization_design}/deactivate`, body ? JSON.stringify(body) : undefined);
},
async PostTestHelpersIssuingPersonalizationDesignsPersonalizationDesignReject(personalization_design: string, body?: PostTestHelpersIssuingPersonalizationDesignsPersonalizationDesignRejectBody): Promise<PostTestHelpersIssuingPersonalizationDesignsPersonalizationDesignRejectResponse> {
return this.request('POST', `https://api.stripe.com//v1/test_helpers/issuing/personalization_designs/${personalization_design}/reject`, body ? JSON.stringify(body) : undefined);
},
async PostTestHelpersIssuingSettlements(body?: PostTestHelpersIssuingSettlementsBody): Promise<PostTestHelpersIssuingSettlementsResponse> {
return this.request('POST', `https://api.stripe.com//v1/test_helpers/issuing/settlements`, body ? JSON.stringify(body) : undefined);
},
async PostTestHelpersIssuingSettlementsSettlementComplete(settlement: string, body?: PostTestHelpersIssuingSettlementsSettlementCompleteBody): Promise<PostTestHelpersIssuingSettlementsSettlementCompleteResponse> {
return this.request('POST', `https://api.stripe.com//v1/test_helpers/issuing/settlements/${settlement}/complete`, body ? JSON.stringify(body) : undefined);
},
async PostTestHelpersIssuingTransactionsCreateForceCapture(body?: PostTestHelpersIssuingTransactionsCreateForceCaptureBody): Promise<PostTestHelpersIssuingTransactionsCreateForceCaptureResponse> {
return this.request('POST', `https://api.stripe.com//v1/test_helpers/issuing/transactions/create_force_capture`, body ? JSON.stringify(body) : undefined);
},
async PostTestHelpersIssuingTransactionsCreateUnlinkedRefund(body?: PostTestHelpersIssuingTransactionsCreateUnlinkedRefundBody): Promise<PostTestHelpersIssuingTransactionsCreateUnlinkedRefundResponse> {
return this.request('POST', `https://api.stripe.com//v1/test_helpers/issuing/transactions/create_unlinked_refund`, body ? JSON.stringify(body) : undefined);
},
async PostTestHelpersIssuingTransactionsTransactionRefund(transaction: string, body?: PostTestHelpersIssuingTransactionsTransactionRefundBody): Promise<PostTestHelpersIssuingTransactionsTransactionRefundResponse> {
return this.request('POST', `https://api.stripe.com//v1/test_helpers/issuing/transactions/${transaction}/refund`, body ? JSON.stringify(body) : undefined);
},
async PostTestHelpersRefundsRefundExpire(refund: string, body?: PostTestHelpersRefundsRefundExpireBody): Promise<PostTestHelpersRefundsRefundExpireResponse> {
return this.request('POST', `https://api.stripe.com//v1/test_helpers/refunds/${refund}/expire`, body ? JSON.stringify(body) : undefined);
},
async PostTestHelpersTerminalReadersReaderPresentPaymentMethod(reader: string, body?: PostTestHelpersTerminalReadersReaderPresentPaymentMethodBody): Promise<PostTestHelpersTerminalReadersReaderPresentPaymentMethodResponse> {
return this.request('POST', `https://api.stripe.com//v1/test_helpers/terminal/readers/${reader}/present_payment_method`, body ? JSON.stringify(body) : undefined);
},
async PostTestHelpersTerminalReadersReaderSucceedInputCollection(reader: string, body?: PostTestHelpersTerminalReadersReaderSucceedInputCollectionBody): Promise<PostTestHelpersTerminalReadersReaderSucceedInputCollectionResponse> {
return this.request('POST', `https://api.stripe.com//v1/test_helpers/terminal/readers/${reader}/succeed_input_collection`, body ? JSON.stringify(body) : undefined);
},
async PostTestHelpersTerminalReadersReaderTimeoutInputCollection(reader: string, body?: PostTestHelpersTerminalReadersReaderTimeoutInputCollectionBody): Promise<PostTestHelpersTerminalReadersReaderTimeoutInputCollectionResponse> {
return this.request('POST', `https://api.stripe.com//v1/test_helpers/terminal/readers/${reader}/timeout_input_collection`, body ? JSON.stringify(body) : undefined);
},
async GetTestHelpersTestClocks(query?: Record<string, string>): Promise<GetTestHelpersTestClocksResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/test_helpers/test_clocks`, query));
},
async PostTestHelpersTestClocks(body?: PostTestHelpersTestClocksBody): Promise<PostTestHelpersTestClocksResponse> {
return this.request('POST', `https://api.stripe.com//v1/test_helpers/test_clocks`, body ? JSON.stringify(body) : undefined);
},
async GetTestHelpersTestClocksTestClock(test_clock: string, query?: Record<string, string>): Promise<GetTestHelpersTestClocksTestClockResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/test_helpers/test_clocks/${test_clock}`, query));
},
async DeleteTestHelpersTestClocksTestClock(test_clock: string): Promise<DeleteTestHelpersTestClocksTestClockResponse> {
return this.request('DELETE', `https://api.stripe.com//v1/test_helpers/test_clocks/${test_clock}`);
},
async PostTestHelpersTestClocksTestClockAdvance(test_clock: string, body?: PostTestHelpersTestClocksTestClockAdvanceBody): Promise<PostTestHelpersTestClocksTestClockAdvanceResponse> {
return this.request('POST', `https://api.stripe.com//v1/test_helpers/test_clocks/${test_clock}/advance`, body ? JSON.stringify(body) : undefined);
},
async PostTestHelpersTreasuryInboundTransfersIdFail(id: string, body?: PostTestHelpersTreasuryInboundTransfersIdFailBody): Promise<PostTestHelpersTreasuryInboundTransfersIdFailResponse> {
return this.request('POST', `https://api.stripe.com//v1/test_helpers/treasury/inbound_transfers/${id}/fail`, body ? JSON.stringify(body) : undefined);
},
async PostTestHelpersTreasuryInboundTransfersIdReturn(id: string, body?: PostTestHelpersTreasuryInboundTransfersIdReturnBody): Promise<PostTestHelpersTreasuryInboundTransfersIdReturnResponse> {
return this.request('POST', `https://api.stripe.com//v1/test_helpers/treasury/inbound_transfers/${id}/return`, body ? JSON.stringify(body) : undefined);
},
async PostTestHelpersTreasuryInboundTransfersIdSucceed(id: string, body?: PostTestHelpersTreasuryInboundTransfersIdSucceedBody): Promise<PostTestHelpersTreasuryInboundTransfersIdSucceedResponse> {
return this.request('POST', `https://api.stripe.com//v1/test_helpers/treasury/inbound_transfers/${id}/succeed`, body ? JSON.stringify(body) : undefined);
},
async PostTestHelpersTreasuryOutboundPaymentsId(id: string, body?: PostTestHelpersTreasuryOutboundPaymentsIdBody): Promise<PostTestHelpersTreasuryOutboundPaymentsIdResponse> {
return this.request('POST', `https://api.stripe.com//v1/test_helpers/treasury/outbound_payments/${id}`, body ? JSON.stringify(body) : undefined);
},
async PostTestHelpersTreasuryOutboundPaymentsIdFail(id: string, body?: PostTestHelpersTreasuryOutboundPaymentsIdFailBody): Promise<PostTestHelpersTreasuryOutboundPaymentsIdFailResponse> {
return this.request('POST', `https://api.stripe.com//v1/test_helpers/treasury/outbound_payments/${id}/fail`, body ? JSON.stringify(body) : undefined);
},
async PostTestHelpersTreasuryOutboundPaymentsIdPost(id: string, body?: PostTestHelpersTreasuryOutboundPaymentsIdPostBody): Promise<PostTestHelpersTreasuryOutboundPaymentsIdPostResponse> {
return this.request('POST', `https://api.stripe.com//v1/test_helpers/treasury/outbound_payments/${id}/post`, body ? JSON.stringify(body) : undefined);
},
async PostTestHelpersTreasuryOutboundPaymentsIdReturn(id: string, body?: PostTestHelpersTreasuryOutboundPaymentsIdReturnBody): Promise<PostTestHelpersTreasuryOutboundPaymentsIdReturnResponse> {
return this.request('POST', `https://api.stripe.com//v1/test_helpers/treasury/outbound_payments/${id}/return`, body ? JSON.stringify(body) : undefined);
},
async PostTestHelpersTreasuryOutboundTransfersOutboundTransfer(outbound_transfer: string, body?: PostTestHelpersTreasuryOutboundTransfersOutboundTransferBody): Promise<PostTestHelpersTreasuryOutboundTransfersOutboundTransferResponse> {
return this.request('POST', `https://api.stripe.com//v1/test_helpers/treasury/outbound_transfers/${outbound_transfer}`, body ? JSON.stringify(body) : undefined);
},
async PostTestHelpersTreasuryOutboundTransfersOutboundTransferFail(outbound_transfer: string, body?: PostTestHelpersTreasuryOutboundTransfersOutboundTransferFailBody): Promise<PostTestHelpersTreasuryOutboundTransfersOutboundTransferFailResponse> {
return this.request('POST', `https://api.stripe.com//v1/test_helpers/treasury/outbound_transfers/${outbound_transfer}/fail`, body ? JSON.stringify(body) : undefined);
},
async PostTestHelpersTreasuryOutboundTransfersOutboundTransferPost(outbound_transfer: string, body?: PostTestHelpersTreasuryOutboundTransfersOutboundTransferPostBody): Promise<PostTestHelpersTreasuryOutboundTransfersOutboundTransferPostResponse> {
return this.request('POST', `https://api.stripe.com//v1/test_helpers/treasury/outbound_transfers/${outbound_transfer}/post`, body ? JSON.stringify(body) : undefined);
},
async PostTestHelpersTreasuryOutboundTransfersOutboundTransferReturn(outbound_transfer: string, body?: PostTestHelpersTreasuryOutboundTransfersOutboundTransferReturnBody): Promise<PostTestHelpersTreasuryOutboundTransfersOutboundTransferReturnResponse> {
return this.request('POST', `https://api.stripe.com//v1/test_helpers/treasury/outbound_transfers/${outbound_transfer}/return`, body ? JSON.stringify(body) : undefined);
},
async PostTestHelpersTreasuryReceivedCredits(body?: PostTestHelpersTreasuryReceivedCreditsBody): Promise<PostTestHelpersTreasuryReceivedCreditsResponse> {
return this.request('POST', `https://api.stripe.com//v1/test_helpers/treasury/received_credits`, body ? JSON.stringify(body) : undefined);
},
async PostTestHelpersTreasuryReceivedDebits(body?: PostTestHelpersTreasuryReceivedDebitsBody): Promise<PostTestHelpersTreasuryReceivedDebitsResponse> {
return this.request('POST', `https://api.stripe.com//v1/test_helpers/treasury/received_debits`, body ? JSON.stringify(body) : undefined);
},
async PostTokens(body?: PostTokensBody): Promise<PostTokensResponse> {
return this.request('POST', `https://api.stripe.com//v1/tokens`, body ? JSON.stringify(body) : undefined);
},
async GetTokensToken(token: string, query?: Record<string, string>): Promise<GetTokensTokenResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/tokens/${token}`, query));
},
async GetTopups(query?: Record<string, string>): Promise<GetTopupsResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/topups`, query));
},
async PostTopups(body?: PostTopupsBody): Promise<PostTopupsResponse> {
return this.request('POST', `https://api.stripe.com//v1/topups`, body ? JSON.stringify(body) : undefined);
},
async GetTopupsTopup(topup: string, query?: Record<string, string>): Promise<GetTopupsTopupResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/topups/${topup}`, query));
},
async PostTopupsTopup(topup: string, body?: PostTopupsTopupBody): Promise<PostTopupsTopupResponse> {
return this.request('POST', `https://api.stripe.com//v1/topups/${topup}`, body ? JSON.stringify(body) : undefined);
},
async PostTopupsTopupCancel(topup: string, body?: PostTopupsTopupCancelBody): Promise<PostTopupsTopupCancelResponse> {
return this.request('POST', `https://api.stripe.com//v1/topups/${topup}/cancel`, body ? JSON.stringify(body) : undefined);
},
async GetTransfers(query?: Record<string, string>): Promise<GetTransfersResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/transfers`, query));
},
async PostTransfers(body?: PostTransfersBody): Promise<PostTransfersResponse> {
return this.request('POST', `https://api.stripe.com//v1/transfers`, body ? JSON.stringify(body) : undefined);
},
async GetTransfersIdReversals(id: string, query?: Record<string, string>): Promise<GetTransfersIdReversalsResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/transfers/${id}/reversals`, query));
},
async PostTransfersIdReversals(id: string, body?: PostTransfersIdReversalsBody): Promise<PostTransfersIdReversalsResponse> {
return this.request('POST', `https://api.stripe.com//v1/transfers/${id}/reversals`, body ? JSON.stringify(body) : undefined);
},
async GetTransfersTransfer(transfer: string, query?: Record<string, string>): Promise<GetTransfersTransferResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/transfers/${transfer}`, query));
},
async PostTransfersTransfer(transfer: string, body?: PostTransfersTransferBody): Promise<PostTransfersTransferResponse> {
return this.request('POST', `https://api.stripe.com//v1/transfers/${transfer}`, body ? JSON.stringify(body) : undefined);
},
async GetTransfersTransferReversalsId(id: string, transfer: string, query?: Record<string, string>): Promise<GetTransfersTransferReversalsIdResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/transfers/${transfer}/reversals/${id}`, query));
},
async PostTransfersTransferReversalsId(id: string, transfer: string, body?: PostTransfersTransferReversalsIdBody): Promise<PostTransfersTransferReversalsIdResponse> {
return this.request('POST', `https://api.stripe.com//v1/transfers/${transfer}/reversals/${id}`, body ? JSON.stringify(body) : undefined);
},
async GetTreasuryCreditReversals(query?: Record<string, string>): Promise<GetTreasuryCreditReversalsResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/treasury/credit_reversals`, query));
},
async PostTreasuryCreditReversals(body?: PostTreasuryCreditReversalsBody): Promise<PostTreasuryCreditReversalsResponse> {
return this.request('POST', `https://api.stripe.com//v1/treasury/credit_reversals`, body ? JSON.stringify(body) : undefined);
},
async GetTreasuryCreditReversalsCreditReversal(credit_reversal: string, query?: Record<string, string>): Promise<GetTreasuryCreditReversalsCreditReversalResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/treasury/credit_reversals/${credit_reversal}`, query));
},
async GetTreasuryDebitReversals(query?: Record<string, string>): Promise<GetTreasuryDebitReversalsResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/treasury/debit_reversals`, query));
},
async PostTreasuryDebitReversals(body?: PostTreasuryDebitReversalsBody): Promise<PostTreasuryDebitReversalsResponse> {
return this.request('POST', `https://api.stripe.com//v1/treasury/debit_reversals`, body ? JSON.stringify(body) : undefined);
},
async GetTreasuryDebitReversalsDebitReversal(debit_reversal: string, query?: Record<string, string>): Promise<GetTreasuryDebitReversalsDebitReversalResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/treasury/debit_reversals/${debit_reversal}`, query));
},
async GetTreasuryFinancialAccounts(query?: Record<string, string>): Promise<GetTreasuryFinancialAccountsResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/treasury/financial_accounts`, query));
},
async PostTreasuryFinancialAccounts(body?: PostTreasuryFinancialAccountsBody): Promise<PostTreasuryFinancialAccountsResponse> {
return this.request('POST', `https://api.stripe.com//v1/treasury/financial_accounts`, body ? JSON.stringify(body) : undefined);
},
async GetTreasuryFinancialAccountsFinancialAccount(financial_account: string, query?: Record<string, string>): Promise<GetTreasuryFinancialAccountsFinancialAccountResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/treasury/financial_accounts/${financial_account}`, query));
},
async PostTreasuryFinancialAccountsFinancialAccount(financial_account: string, body?: PostTreasuryFinancialAccountsFinancialAccountBody): Promise<PostTreasuryFinancialAccountsFinancialAccountResponse> {
return this.request('POST', `https://api.stripe.com//v1/treasury/financial_accounts/${financial_account}`, body ? JSON.stringify(body) : undefined);
},
async PostTreasuryFinancialAccountsFinancialAccountClose(financial_account: string, body?: PostTreasuryFinancialAccountsFinancialAccountCloseBody): Promise<PostTreasuryFinancialAccountsFinancialAccountCloseResponse> {
return this.request('POST', `https://api.stripe.com//v1/treasury/financial_accounts/${financial_account}/close`, body ? JSON.stringify(body) : undefined);
},
async GetTreasuryFinancialAccountsFinancialAccountFeatures(financial_account: string, query?: Record<string, string>): Promise<GetTreasuryFinancialAccountsFinancialAccountFeaturesResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/treasury/financial_accounts/${financial_account}/features`, query));
},
async PostTreasuryFinancialAccountsFinancialAccountFeatures(financial_account: string, body?: PostTreasuryFinancialAccountsFinancialAccountFeaturesBody): Promise<PostTreasuryFinancialAccountsFinancialAccountFeaturesResponse> {
return this.request('POST', `https://api.stripe.com//v1/treasury/financial_accounts/${financial_account}/features`, body ? JSON.stringify(body) : undefined);
},
async GetTreasuryInboundTransfers(query?: Record<string, string>): Promise<GetTreasuryInboundTransfersResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/treasury/inbound_transfers`, query));
},
async PostTreasuryInboundTransfers(body?: PostTreasuryInboundTransfersBody): Promise<PostTreasuryInboundTransfersResponse> {
return this.request('POST', `https://api.stripe.com//v1/treasury/inbound_transfers`, body ? JSON.stringify(body) : undefined);
},
async GetTreasuryInboundTransfersId(id: string, query?: Record<string, string>): Promise<GetTreasuryInboundTransfersIdResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/treasury/inbound_transfers/${id}`, query));
},
async PostTreasuryInboundTransfersInboundTransferCancel(inbound_transfer: string, body?: PostTreasuryInboundTransfersInboundTransferCancelBody): Promise<PostTreasuryInboundTransfersInboundTransferCancelResponse> {
return this.request('POST', `https://api.stripe.com//v1/treasury/inbound_transfers/${inbound_transfer}/cancel`, body ? JSON.stringify(body) : undefined);
},
async GetTreasuryOutboundPayments(query?: Record<string, string>): Promise<GetTreasuryOutboundPaymentsResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/treasury/outbound_payments`, query));
},
async PostTreasuryOutboundPayments(body?: PostTreasuryOutboundPaymentsBody): Promise<PostTreasuryOutboundPaymentsResponse> {
return this.request('POST', `https://api.stripe.com//v1/treasury/outbound_payments`, body ? JSON.stringify(body) : undefined);
},
async GetTreasuryOutboundPaymentsId(id: string, query?: Record<string, string>): Promise<GetTreasuryOutboundPaymentsIdResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/treasury/outbound_payments/${id}`, query));
},
async PostTreasuryOutboundPaymentsIdCancel(id: string, body?: PostTreasuryOutboundPaymentsIdCancelBody): Promise<PostTreasuryOutboundPaymentsIdCancelResponse> {
return this.request('POST', `https://api.stripe.com//v1/treasury/outbound_payments/${id}/cancel`, body ? JSON.stringify(body) : undefined);
},
async GetTreasuryOutboundTransfers(query?: Record<string, string>): Promise<GetTreasuryOutboundTransfersResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/treasury/outbound_transfers`, query));
},
async PostTreasuryOutboundTransfers(body?: PostTreasuryOutboundTransfersBody): Promise<PostTreasuryOutboundTransfersResponse> {
return this.request('POST', `https://api.stripe.com//v1/treasury/outbound_transfers`, body ? JSON.stringify(body) : undefined);
},
async GetTreasuryOutboundTransfersOutboundTransfer(outbound_transfer: string, query?: Record<string, string>): Promise<GetTreasuryOutboundTransfersOutboundTransferResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/treasury/outbound_transfers/${outbound_transfer}`, query));
},
async PostTreasuryOutboundTransfersOutboundTransferCancel(outbound_transfer: string, body?: PostTreasuryOutboundTransfersOutboundTransferCancelBody): Promise<PostTreasuryOutboundTransfersOutboundTransferCancelResponse> {
return this.request('POST', `https://api.stripe.com//v1/treasury/outbound_transfers/${outbound_transfer}/cancel`, body ? JSON.stringify(body) : undefined);
},
async GetTreasuryReceivedCredits(query?: Record<string, string>): Promise<GetTreasuryReceivedCreditsResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/treasury/received_credits`, query));
},
async GetTreasuryReceivedCreditsId(id: string, query?: Record<string, string>): Promise<GetTreasuryReceivedCreditsIdResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/treasury/received_credits/${id}`, query));
},
async GetTreasuryReceivedDebits(query?: Record<string, string>): Promise<GetTreasuryReceivedDebitsResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/treasury/received_debits`, query));
},
async GetTreasuryReceivedDebitsId(id: string, query?: Record<string, string>): Promise<GetTreasuryReceivedDebitsIdResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/treasury/received_debits/${id}`, query));
},
async GetTreasuryTransactionEntries(query?: Record<string, string>): Promise<GetTreasuryTransactionEntriesResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/treasury/transaction_entries`, query));
},
async GetTreasuryTransactionEntriesId(id: string, query?: Record<string, string>): Promise<GetTreasuryTransactionEntriesIdResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/treasury/transaction_entries/${id}`, query));
},
async GetTreasuryTransactions(query?: Record<string, string>): Promise<GetTreasuryTransactionsResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/treasury/transactions`, query));
},
async GetTreasuryTransactionsId(id: string, query?: Record<string, string>): Promise<GetTreasuryTransactionsIdResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/treasury/transactions/${id}`, query));
},
async GetWebhookEndpoints(query?: Record<string, string>): Promise<GetWebhookEndpointsResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/webhook_endpoints`, query));
},
async PostWebhookEndpoints(body?: PostWebhookEndpointsBody): Promise<PostWebhookEndpointsResponse> {
return this.request('POST', `https://api.stripe.com//v1/webhook_endpoints`, body ? JSON.stringify(body) : undefined);
},
async GetWebhookEndpointsWebhookEndpoint(webhook_endpoint: string, query?: Record<string, string>): Promise<GetWebhookEndpointsWebhookEndpointResponse> {
return this.request('GET', appendQuery(`https://api.stripe.com//v1/webhook_endpoints/${webhook_endpoint}`, query));
},
async PostWebhookEndpointsWebhookEndpoint(webhook_endpoint: string, body?: PostWebhookEndpointsWebhookEndpointBody): Promise<PostWebhookEndpointsWebhookEndpointResponse> {
return this.request('POST', `https://api.stripe.com//v1/webhook_endpoints/${webhook_endpoint}`, body ? JSON.stringify(body) : undefined);
},
async DeleteWebhookEndpointsWebhookEndpoint(webhook_endpoint: string): Promise<DeleteWebhookEndpointsWebhookEndpointResponse> {
return this.request('DELETE', `https://api.stripe.com//v1/webhook_endpoints/${webhook_endpoint}`);
},
}
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| rea-changelog-updatemorluto/reaPrepare or rewrite REA release changelogs and GitHub release notes from pinned Git history, with verified contributor thanks and Release Please synchronization. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| academy-guideanthropics/skillsStop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials, and use cases from Claude Academy (academy.claude.com), Anthropic's learning hub. Trigger on: "how do I", "how can I", "getting started with", "what can Claude do", "teach me", "learn to use"; questions about artifacts, projects, skills, plugins, connectors, MCP; requests about rolling Claude out to a team, class, or organization; and any ask for training materials, onboarding content, or learning resources. Use it when the user is learning how to use a feature or product — not when they are mid-task and just want the task done. This skill composes with other skills: after consulting product documentation to answer how a Claude feature works, also check here for a matching course or tutorial — a docs-grounded answer and an Academy recommendation belong together. Only recommend on a strong match; never invent Academy content. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| claude-apianthropics/skillsReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER — read BEFORE opening the target file; don't skip because it "looks like a one-liner" — whenever: the prompt names Claude/Anthropic in any form (Claude, Anthropic, Fable, Opus, Sonnet, Haiku, `anthropic`, `@anthropic-ai`, `claude-*`, `us.anthropic.*`, `[1m]`); the user asks about an LLM (pricing/model choice/limits/caching) — never answer from memory; OR the task is LLM-shaped with provider unstated (agent/MCP/tool-definition/multi-agent/RAG/LLM-judge/computer-use; generate/summarize/extract/classify/rewrite/converse over NL; debugging refusals/cutoffs/streaming/tool-calls/tokens). SKIP only when another provider is being worked on (overrides all triggers): OpenAI/GPT/Gemini/Llama/Mistral/Cohere/Ollama named in the query; OR `grep -rE 'openai|langchain_openai|google.generativeai|genai|mistralai|cohere|ollama'` over the project hits (run this grep FIRST if no provider named — don't Read the file). | Stars: 198k | Updated | Claude CodeCodex | Unverified | Install |
| doc-coauthoringanthropics/skillsGuide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision docs, or similar structured content. This workflow helps users efficiently transfer context, refine content through iteration, and verify the doc works for readers. Trigger when user mentions writing docs, creating proposals, drafting specs, or similar documentation tasks. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |