From b2110896d1438d19bae73396cb527dafecb8a0b4 Mon Sep 17 00:00:00 2001 From: Travis Fischer Date: Sun, 23 Mar 2025 04:38:13 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../fixtures/generated/stripe-client.ts | 774 +++++++++--------- packages/openapi-to-ts-client/src/utils.ts | 4 +- 2 files changed, 388 insertions(+), 390 deletions(-) diff --git a/packages/openapi-to-ts-client/fixtures/generated/stripe-client.ts b/packages/openapi-to-ts-client/fixtures/generated/stripe-client.ts index b71fa1e..9e5465e 100644 --- a/packages/openapi-to-ts-client/fixtures/generated/stripe-client.ts +++ b/packages/openapi-to-ts-client/fixtures/generated/stripe-client.ts @@ -6,8 +6,8 @@ */ import { - aiFunction, AIFunctionsProvider, + aiFunction, assert, getEnv, pick, @@ -16598,7 +16598,7 @@ export namespace stripe { /** A description of the product or service that was sold. */ product_description: z .string() - .max(150_000) + .max(150000) .nullable() .describe('A description of the product or service that was sold.') .optional(), @@ -16668,7 +16668,7 @@ export namespace stripe { /** A description of the product or service that was sold. */ product_description: z .string() - .max(150_000) + .max(150000) .nullable() .describe('A description of the product or service that was sold.') .optional(), @@ -24493,7 +24493,7 @@ export namespace stripe { /** Internal-only description of the product sold or service provided by the business. It's used by Stripe for risk and underwriting purposes. */ product_description: z .string() - .max(40_000) + .max(40000) .nullable() .describe( "Internal-only description of the product sold or service provided by the business. It's used by Stripe for risk and underwriting purposes." @@ -25689,7 +25689,7 @@ export namespace stripe { 'Time at which the result expires and is no longer available for download.' ), /** SQL for the query. */ - sql: z.string().max(100_000).describe('SQL for the query.'), + sql: z.string().max(100000).describe('SQL for the query.'), /** The query's execution status, which will be `completed` for successful runs, and `canceled`, `failed`, or `timed_out` otherwise. */ status: z .string() @@ -27392,7 +27392,7 @@ export namespace stripe { /** Any server or activity logs showing proof that the customer accessed or downloaded the purchased digital product. This information should include IP addresses, corresponding timestamps, and any detailed recorded activity. */ access_activity_log: z .string() - .max(150_000) + .max(150000) .nullable() .describe( 'Any server or activity logs showing proof that the customer accessed or downloaded the purchased digital product. This information should include IP addresses, corresponding timestamps, and any detailed recorded activity.' @@ -27416,7 +27416,7 @@ export namespace stripe { /** An explanation of how and when the customer was shown your refund policy prior to purchase. */ cancellation_policy_disclosure: z .string() - .max(150_000) + .max(150000) .nullable() .describe( 'An explanation of how and when the customer was shown your refund policy prior to purchase.' @@ -27425,7 +27425,7 @@ export namespace stripe { /** A justification for why the customer's subscription was not canceled. */ cancellation_rebuttal: z .string() - .max(150_000) + .max(150000) .nullable() .describe( "A justification for why the customer's subscription was not canceled." @@ -27481,7 +27481,7 @@ export namespace stripe { /** An explanation of the difference between the disputed charge versus the prior charge that appears to be a duplicate. */ duplicate_charge_explanation: z .string() - .max(150_000) + .max(150000) .nullable() .describe( 'An explanation of the difference between the disputed charge versus the prior charge that appears to be a duplicate.' @@ -27500,7 +27500,7 @@ export namespace stripe { /** A description of the product or service that was sold. */ product_description: z .string() - .max(150_000) + .max(150000) .nullable() .describe('A description of the product or service that was sold.') .optional(), @@ -27523,7 +27523,7 @@ export namespace stripe { /** Documentation demonstrating that the customer was shown your refund policy prior to purchase. */ refund_policy_disclosure: z .string() - .max(150_000) + .max(150000) .nullable() .describe( 'Documentation demonstrating that the customer was shown your refund policy prior to purchase.' @@ -27532,7 +27532,7 @@ export namespace stripe { /** A justification for why the customer is not entitled to a refund. */ refund_refusal_explanation: z .string() - .max(150_000) + .max(150000) .nullable() .describe( 'A justification for why the customer is not entitled to a refund.' @@ -27610,7 +27610,7 @@ export namespace stripe { /** Any additional evidence or statements. */ uncategorized_text: z .string() - .max(150_000) + .max(150000) .nullable() .describe('Any additional evidence or statements.') .optional() @@ -32959,7 +32959,7 @@ export namespace stripe { /** A human-readable message providing more details about the error. For card errors, these messages can be shown to your users. */ message: z .string() - .max(40_000) + .max(40000) .describe( 'A human-readable message providing more details about the error. For card errors, these messages can be shown to your users.' ) @@ -34372,7 +34372,7 @@ export namespace stripe { /** An arbitrary string attached to the object. Often useful for displaying to users. */ description: z .string() - .max(40_000) + .max(40000) .nullable() .describe( 'An arbitrary string attached to the object. Often useful for displaying to users.' @@ -61274,7 +61274,7 @@ You can prefill any information on the account.

.`, params: stripe.GetAccountsAccountParams ): Promise { return this.ky - .get(`/v1/accounts/${params.account}`, { + .get(`/v1/accounts/${params['account']}`, { searchParams: sanitizeSearchParams(pick(params, 'expand')) }) .json() @@ -61316,7 +61316,7 @@ after which some properties can no longer be updated.

params: stripe.PostAccountsAccountParams ): Promise { return this.ky - .post(`/v1/accounts/${params.account}`) + .post(`/v1/accounts/${params['account']}`) .json() } @@ -61344,7 +61344,7 @@ after which some properties can no longer be updated.

params: stripe.DeleteAccountsAccountParams ): Promise { return this.ky - .delete(`/v1/accounts/${params.account}`) + .delete(`/v1/accounts/${params['account']}`) .json() } @@ -61360,7 +61360,7 @@ after which some properties can no longer be updated.

params: stripe.PostAccountsAccountBankAccountsParams ): Promise { return this.ky - .post(`/v1/accounts/${params.account}/bank_accounts`) + .post(`/v1/accounts/${params['account']}/bank_accounts`) .json() } @@ -61377,7 +61377,7 @@ after which some properties can no longer be updated.

params: stripe.GetAccountsAccountBankAccountsIdParams ): Promise { return this.ky - .get(`/v1/accounts/${params.account}/bank_accounts/${params.id}`, { + .get(`/v1/accounts/${params['account']}/bank_accounts/${params['id']}`, { searchParams: sanitizeSearchParams(pick(params, 'expand')) }) .json() @@ -61409,7 +61409,7 @@ arguments or changes.

.`, params: stripe.PostAccountsAccountBankAccountsIdParams ): Promise { return this.ky - .post(`/v1/accounts/${params.account}/bank_accounts/${params.id}`) + .post(`/v1/accounts/${params['account']}/bank_accounts/${params['id']}`) .json() } @@ -61426,7 +61426,7 @@ arguments or changes.

.`, params: stripe.DeleteAccountsAccountBankAccountsIdParams ): Promise { return this.ky - .delete(`/v1/accounts/${params.account}/bank_accounts/${params.id}`) + .delete(`/v1/accounts/${params['account']}/bank_accounts/${params['id']}`) .json() } @@ -61443,7 +61443,7 @@ arguments or changes.

.`, params: stripe.GetAccountsAccountCapabilitiesParams ): Promise { return this.ky - .get(`/v1/accounts/${params.account}/capabilities`, { + .get(`/v1/accounts/${params['account']}/capabilities`, { searchParams: sanitizeSearchParams(pick(params, 'expand')) }) .json() @@ -61463,7 +61463,7 @@ arguments or changes.

.`, ): Promise { return this.ky .get( - `/v1/accounts/${params.account}/capabilities/${params.capability}`, + `/v1/accounts/${params['account']}/capabilities/${params['capability']}`, { searchParams: sanitizeSearchParams(pick(params, 'expand')) } @@ -61485,7 +61485,7 @@ arguments or changes.

.`, ): Promise { return this.ky .post( - `/v1/accounts/${params.account}/capabilities/${params.capability}` + `/v1/accounts/${params['account']}/capabilities/${params['capability']}` ) .json() } @@ -61502,7 +61502,7 @@ arguments or changes.

.`, params: stripe.GetAccountsAccountExternalAccountsParams ): Promise { return this.ky - .get(`/v1/accounts/${params.account}/external_accounts`, { + .get(`/v1/accounts/${params['account']}/external_accounts`, { searchParams: sanitizeSearchParams( pick( params, @@ -61529,7 +61529,7 @@ arguments or changes.

.`, params: stripe.PostAccountsAccountExternalAccountsParams ): Promise { return this.ky - .post(`/v1/accounts/${params.account}/external_accounts`) + .post(`/v1/accounts/${params['account']}/external_accounts`) .json() } @@ -61547,7 +61547,7 @@ arguments or changes.

.`, ): Promise { return this.ky .get( - `/v1/accounts/${params.account}/external_accounts/${params.id}`, + `/v1/accounts/${params['account']}/external_accounts/${params['id']}`, { searchParams: sanitizeSearchParams(pick(params, 'expand')) } @@ -61582,7 +61582,7 @@ arguments or changes.

.`, ): Promise { return this.ky .post( - `/v1/accounts/${params.account}/external_accounts/${params.id}` + `/v1/accounts/${params['account']}/external_accounts/${params['id']}` ) .json() } @@ -61601,7 +61601,7 @@ arguments or changes.

.`, ): Promise { return this.ky .delete( - `/v1/accounts/${params.account}/external_accounts/${params.id}` + `/v1/accounts/${params['account']}/external_accounts/${params['id']}` ) .json() } @@ -61622,7 +61622,7 @@ arguments or changes.

.`, params: stripe.PostAccountsAccountLoginLinksParams ): Promise { return this.ky - .post(`/v1/accounts/${params.account}/login_links`) + .post(`/v1/accounts/${params['account']}/login_links`) .json() } @@ -61639,7 +61639,7 @@ arguments or changes.

.`, params: stripe.GetAccountsAccountPeopleParams ): Promise { return this.ky - .get(`/v1/accounts/${params.account}/people`, { + .get(`/v1/accounts/${params['account']}/people`, { searchParams: sanitizeSearchParams( pick( params, @@ -61666,7 +61666,7 @@ arguments or changes.

.`, params: stripe.PostAccountsAccountPeopleParams ): Promise { return this.ky - .post(`/v1/accounts/${params.account}/people`) + .post(`/v1/accounts/${params['account']}/people`) .json() } @@ -61682,7 +61682,7 @@ arguments or changes.

.`, params: stripe.GetAccountsAccountPeoplePersonParams ): Promise { return this.ky - .get(`/v1/accounts/${params.account}/people/${params.person}`, { + .get(`/v1/accounts/${params['account']}/people/${params['person']}`, { searchParams: sanitizeSearchParams(pick(params, 'expand')) }) .json() @@ -61700,7 +61700,7 @@ arguments or changes.

.`, params: stripe.PostAccountsAccountPeoplePersonParams ): Promise { return this.ky - .post(`/v1/accounts/${params.account}/people/${params.person}`) + .post(`/v1/accounts/${params['account']}/people/${params['person']}`) .json() } @@ -61717,7 +61717,7 @@ arguments or changes.

.`, params: stripe.DeleteAccountsAccountPeoplePersonParams ): Promise { return this.ky - .delete(`/v1/accounts/${params.account}/people/${params.person}`) + .delete(`/v1/accounts/${params['account']}/people/${params['person']}`) .json() } @@ -61734,7 +61734,7 @@ arguments or changes.

.`, params: stripe.GetAccountsAccountPersonsParams ): Promise { return this.ky - .get(`/v1/accounts/${params.account}/persons`, { + .get(`/v1/accounts/${params['account']}/persons`, { searchParams: sanitizeSearchParams( pick( params, @@ -61761,7 +61761,7 @@ arguments or changes.

.`, params: stripe.PostAccountsAccountPersonsParams ): Promise { return this.ky - .post(`/v1/accounts/${params.account}/persons`) + .post(`/v1/accounts/${params['account']}/persons`) .json() } @@ -61777,7 +61777,7 @@ arguments or changes.

.`, params: stripe.GetAccountsAccountPersonsPersonParams ): Promise { return this.ky - .get(`/v1/accounts/${params.account}/persons/${params.person}`, { + .get(`/v1/accounts/${params['account']}/persons/${params['person']}`, { searchParams: sanitizeSearchParams(pick(params, 'expand')) }) .json() @@ -61795,7 +61795,7 @@ arguments or changes.

.`, params: stripe.PostAccountsAccountPersonsPersonParams ): Promise { return this.ky - .post(`/v1/accounts/${params.account}/persons/${params.person}`) + .post(`/v1/accounts/${params['account']}/persons/${params['person']}`) .json() } @@ -61812,7 +61812,7 @@ arguments or changes.

.`, params: stripe.DeleteAccountsAccountPersonsPersonParams ): Promise { return this.ky - .delete(`/v1/accounts/${params.account}/persons/${params.person}`) + .delete(`/v1/accounts/${params['account']}/persons/${params['person']}`) .json() } @@ -61832,7 +61832,7 @@ arguments or changes.

.`, params: stripe.PostAccountsAccountRejectParams ): Promise { return this.ky - .post(`/v1/accounts/${params.account}/reject`) + .post(`/v1/accounts/${params['account']}/reject`) .json() } @@ -61882,7 +61882,7 @@ arguments or changes.

.`, params: stripe.GetApplePayDomainsDomainParams ): Promise { return this.ky - .get(`/v1/apple_pay/domains/${params.domain}`, { + .get(`/v1/apple_pay/domains/${params['domain']}`, { searchParams: sanitizeSearchParams(pick(params, 'expand')) }) .json() @@ -61900,7 +61900,7 @@ arguments or changes.

.`, params: stripe.DeleteApplePayDomainsDomainParams ): Promise { return this.ky - .delete(`/v1/apple_pay/domains/${params.domain}`) + .delete(`/v1/apple_pay/domains/${params['domain']}`) .json() } @@ -61936,7 +61936,7 @@ arguments or changes.

.`, params: stripe.GetApplicationFeesFeeRefundsIdParams ): Promise { return this.ky - .get(`/v1/application_fees/${params.fee}/refunds/${params.id}`, { + .get(`/v1/application_fees/${params['fee']}/refunds/${params['id']}`, { searchParams: sanitizeSearchParams(pick(params, 'expand')) }) .json() @@ -61958,7 +61958,7 @@ arguments or changes.

.`, params: stripe.PostApplicationFeesFeeRefundsIdParams ): Promise { return this.ky - .post(`/v1/application_fees/${params.fee}/refunds/${params.id}`) + .post(`/v1/application_fees/${params['fee']}/refunds/${params['id']}`) .json() } @@ -61975,7 +61975,7 @@ arguments or changes.

.`, params: stripe.GetApplicationFeesIdParams ): Promise { return this.ky - .get(`/v1/application_fees/${params.id}`, { + .get(`/v1/application_fees/${params['id']}`, { searchParams: sanitizeSearchParams(pick(params, 'expand')) }) .json() @@ -61990,7 +61990,7 @@ arguments or changes.

.`, params: stripe.PostApplicationFeesIdRefundParams ): Promise { return this.ky - .post(`/v1/application_fees/${params.id}/refund`) + .post(`/v1/application_fees/${params['id']}/refund`) .json() } @@ -62007,7 +62007,7 @@ arguments or changes.

.`, params: stripe.GetApplicationFeesIdRefundsParams ): Promise { return this.ky - .get(`/v1/application_fees/${params.id}/refunds`, { + .get(`/v1/application_fees/${params['id']}/refunds`, { searchParams: sanitizeSearchParams( pick(params, 'ending_before', 'expand', 'limit', 'starting_after') ) @@ -62043,7 +62043,7 @@ or when trying to refund more money than is left on an application fee.

.`, params: stripe.PostApplicationFeesIdRefundsParams ): Promise { return this.ky - .post(`/v1/application_fees/${params.id}/refunds`) + .post(`/v1/application_fees/${params['id']}/refunds`) .json() } @@ -62175,7 +62175,7 @@ or when trying to refund more money than is left on an application fee.

.`, params: stripe.GetBalanceHistoryIdParams ): Promise { return this.ky - .get(`/v1/balance/history/${params.id}`, { + .get(`/v1/balance/history/${params['id']}`, { searchParams: sanitizeSearchParams(pick(params, 'expand')) }) .json() @@ -62219,7 +62219,7 @@ or when trying to refund more money than is left on an application fee.

.`, params: stripe.GetBalanceTransactionsIdParams ): Promise { return this.ky - .get(`/v1/balance_transactions/${params.id}`, { + .get(`/v1/balance_transactions/${params['id']}`, { searchParams: sanitizeSearchParams(pick(params, 'expand')) }) .json() @@ -62271,7 +62271,7 @@ or when trying to refund more money than is left on an application fee.

.`, params: stripe.GetBillingAlertsIdParams ): Promise { return this.ky - .get(`/v1/billing/alerts/${params.id}`, { + .get(`/v1/billing/alerts/${params['id']}`, { searchParams: sanitizeSearchParams(pick(params, 'expand')) }) .json() @@ -62290,7 +62290,7 @@ or when trying to refund more money than is left on an application fee.

.`, params: stripe.PostBillingAlertsIdActivateParams ): Promise { return this.ky - .post(`/v1/billing/alerts/${params.id}/activate`) + .post(`/v1/billing/alerts/${params['id']}/activate`) .json() } @@ -62307,7 +62307,7 @@ or when trying to refund more money than is left on an application fee.

.`, params: stripe.PostBillingAlertsIdArchiveParams ): Promise { return this.ky - .post(`/v1/billing/alerts/${params.id}/archive`) + .post(`/v1/billing/alerts/${params['id']}/archive`) .json() } @@ -62324,7 +62324,7 @@ or when trying to refund more money than is left on an application fee.

.`, params: stripe.PostBillingAlertsIdDeactivateParams ): Promise { return this.ky - .post(`/v1/billing/alerts/${params.id}/deactivate`) + .post(`/v1/billing/alerts/${params['id']}/deactivate`) .json() } @@ -62376,7 +62376,7 @@ or when trying to refund more money than is left on an application fee.

.`, params: stripe.GetBillingCreditBalanceTransactionsIdParams ): Promise { return this.ky - .get(`/v1/billing/credit_balance_transactions/${params.id}`, { + .get(`/v1/billing/credit_balance_transactions/${params['id']}`, { searchParams: sanitizeSearchParams(pick(params, 'expand')) }) .json() @@ -62428,7 +62428,7 @@ or when trying to refund more money than is left on an application fee.

.`, params: stripe.GetBillingCreditGrantsIdParams ): Promise { return this.ky - .get(`/v1/billing/credit_grants/${params.id}`, { + .get(`/v1/billing/credit_grants/${params['id']}`, { searchParams: sanitizeSearchParams(pick(params, 'expand')) }) .json() @@ -62446,7 +62446,7 @@ or when trying to refund more money than is left on an application fee.

.`, params: stripe.PostBillingCreditGrantsIdParams ): Promise { return this.ky - .post(`/v1/billing/credit_grants/${params.id}`) + .post(`/v1/billing/credit_grants/${params['id']}`) .json() } @@ -62462,7 +62462,7 @@ or when trying to refund more money than is left on an application fee.

.`, params: stripe.PostBillingCreditGrantsIdExpireParams ): Promise { return this.ky - .post(`/v1/billing/credit_grants/${params.id}/expire`) + .post(`/v1/billing/credit_grants/${params['id']}/expire`) .json() } @@ -62478,7 +62478,7 @@ or when trying to refund more money than is left on an application fee.

.`, params: stripe.PostBillingCreditGrantsIdVoidParams ): Promise { return this.ky - .post(`/v1/billing/credit_grants/${params.id}/void`) + .post(`/v1/billing/credit_grants/${params['id']}/void`) .json() } @@ -62560,7 +62560,7 @@ or when trying to refund more money than is left on an application fee.

.`, params: stripe.GetBillingMetersIdParams ): Promise { return this.ky - .get(`/v1/billing/meters/${params.id}`, { + .get(`/v1/billing/meters/${params['id']}`, { searchParams: sanitizeSearchParams(pick(params, 'expand')) }) .json() @@ -62578,7 +62578,7 @@ or when trying to refund more money than is left on an application fee.

.`, params: stripe.PostBillingMetersIdParams ): Promise { return this.ky - .post(`/v1/billing/meters/${params.id}`) + .post(`/v1/billing/meters/${params['id']}`) .json() } @@ -62595,7 +62595,7 @@ or when trying to refund more money than is left on an application fee.

.`, params: stripe.PostBillingMetersIdDeactivateParams ): Promise { return this.ky - .post(`/v1/billing/meters/${params.id}/deactivate`) + .post(`/v1/billing/meters/${params['id']}/deactivate`) .json() } @@ -62611,7 +62611,7 @@ or when trying to refund more money than is left on an application fee.

.`, params: stripe.GetBillingMetersIdEventSummariesParams ): Promise { return this.ky - .get(`/v1/billing/meters/${params.id}/event_summaries`, { + .get(`/v1/billing/meters/${params['id']}/event_summaries`, { searchParams: sanitizeSearchParams( pick( params, @@ -62642,7 +62642,7 @@ or when trying to refund more money than is left on an application fee.

.`, params: stripe.PostBillingMetersIdReactivateParams ): Promise { return this.ky - .post(`/v1/billing/meters/${params.id}/reactivate`) + .post(`/v1/billing/meters/${params['id']}/reactivate`) .json() } @@ -62695,7 +62695,7 @@ or when trying to refund more money than is left on an application fee.

.`, params: stripe.GetBillingPortalConfigurationsConfigurationParams ): Promise { return this.ky - .get(`/v1/billing_portal/configurations/${params.configuration}`, { + .get(`/v1/billing_portal/configurations/${params['configuration']}`, { searchParams: sanitizeSearchParams(pick(params, 'expand')) }) .json() @@ -62714,7 +62714,7 @@ or when trying to refund more money than is left on an application fee.

.`, params: stripe.PostBillingPortalConfigurationsConfigurationParams ): Promise { return this.ky - .post(`/v1/billing_portal/configurations/${params.configuration}`) + .post(`/v1/billing_portal/configurations/${params['configuration']}`) .json() } @@ -62808,7 +62808,7 @@ to an hour behind during outages. Search functionality is not available to merch params: stripe.GetChargesChargeParams ): Promise { return this.ky - .get(`/v1/charges/${params.charge}`, { + .get(`/v1/charges/${params['charge']}`, { searchParams: sanitizeSearchParams(pick(params, 'expand')) }) .json() @@ -62827,7 +62827,7 @@ to an hour behind during outages. Search functionality is not available to merch params: stripe.PostChargesChargeParams ): Promise { return this.ky - .post(`/v1/charges/${params.charge}`) + .post(`/v1/charges/${params['charge']}`) .json() } @@ -62851,7 +62851,7 @@ to an hour behind during outages. Search functionality is not available to merch params: stripe.PostChargesChargeCaptureParams ): Promise { return this.ky - .post(`/v1/charges/${params.charge}/capture`) + .post(`/v1/charges/${params['charge']}/capture`) .json() } @@ -62867,7 +62867,7 @@ to an hour behind during outages. Search functionality is not available to merch params: stripe.GetChargesChargeDisputeParams ): Promise { return this.ky - .get(`/v1/charges/${params.charge}/dispute`, { + .get(`/v1/charges/${params['charge']}/dispute`, { searchParams: sanitizeSearchParams(pick(params, 'expand')) }) .json() @@ -62882,7 +62882,7 @@ to an hour behind during outages. Search functionality is not available to merch params: stripe.PostChargesChargeDisputeParams ): Promise { return this.ky - .post(`/v1/charges/${params.charge}/dispute`) + .post(`/v1/charges/${params['charge']}/dispute`) .json() } @@ -62895,7 +62895,7 @@ to an hour behind during outages. Search functionality is not available to merch params: stripe.PostChargesChargeDisputeCloseParams ): Promise { return this.ky - .post(`/v1/charges/${params.charge}/dispute/close`) + .post(`/v1/charges/${params['charge']}/dispute/close`) .json() } @@ -62931,7 +62931,7 @@ or when you attempt to refund more money than is left on a charge.

.`, params: stripe.PostChargesChargeRefundParams ): Promise { return this.ky - .post(`/v1/charges/${params.charge}/refund`) + .post(`/v1/charges/${params['charge']}/refund`) .json() } @@ -62948,7 +62948,7 @@ or when you attempt to refund more money than is left on a charge.

.`, params: stripe.GetChargesChargeRefundsParams ): Promise { return this.ky - .get(`/v1/charges/${params.charge}/refunds`, { + .get(`/v1/charges/${params['charge']}/refunds`, { searchParams: sanitizeSearchParams( pick(params, 'ending_before', 'expand', 'limit', 'starting_after') ) @@ -62988,7 +62988,7 @@ or when trying to refund more money than is left on a charge.

.`, params: stripe.PostChargesChargeRefundsParams ): Promise { return this.ky - .post(`/v1/charges/${params.charge}/refunds`) + .post(`/v1/charges/${params['charge']}/refunds`) .json() } @@ -63004,7 +63004,7 @@ or when trying to refund more money than is left on a charge.

.`, params: stripe.GetChargesChargeRefundsRefundParams ): Promise { return this.ky - .get(`/v1/charges/${params.charge}/refunds/${params.refund}`, { + .get(`/v1/charges/${params['charge']}/refunds/${params['refund']}`, { searchParams: sanitizeSearchParams(pick(params, 'expand')) }) .json() @@ -63022,7 +63022,7 @@ or when trying to refund more money than is left on a charge.

.`, params: stripe.PostChargesChargeRefundsRefundParams ): Promise { return this.ky - .post(`/v1/charges/${params.charge}/refunds/${params.refund}`) + .post(`/v1/charges/${params['charge']}/refunds/${params['refund']}`) .json() } @@ -63072,7 +63072,7 @@ or when trying to refund more money than is left on a charge.

.`, params: stripe.GetCheckoutSessionsSessionParams ): Promise { return this.ky - .get(`/v1/checkout/sessions/${params.session}`, { + .get(`/v1/checkout/sessions/${params['session']}`, { searchParams: sanitizeSearchParams(pick(params, 'expand')) }) .json() @@ -63090,7 +63090,7 @@ or when trying to refund more money than is left on a charge.

.`, params: stripe.PostCheckoutSessionsSessionParams ): Promise { return this.ky - .post(`/v1/checkout/sessions/${params.session}`) + .post(`/v1/checkout/sessions/${params['session']}`) .json() } @@ -63110,7 +63110,7 @@ or when trying to refund more money than is left on a charge.

.`, params: stripe.PostCheckoutSessionsSessionExpireParams ): Promise { return this.ky - .post(`/v1/checkout/sessions/${params.session}/expire`) + .post(`/v1/checkout/sessions/${params['session']}/expire`) .json() } @@ -63127,7 +63127,7 @@ or when trying to refund more money than is left on a charge.

.`, params: stripe.GetCheckoutSessionsSessionLineItemsParams ): Promise { return this.ky - .get(`/v1/checkout/sessions/${params.session}/line_items`, { + .get(`/v1/checkout/sessions/${params['session']}/line_items`, { searchParams: sanitizeSearchParams( pick(params, 'ending_before', 'expand', 'limit', 'starting_after') ) @@ -63186,7 +63186,7 @@ after creation and payment will be deducted your Stripe balance.

.`, params: stripe.GetClimateOrdersOrderParams ): Promise { return this.ky - .get(`/v1/climate/orders/${params.order}`, { + .get(`/v1/climate/orders/${params['order']}`, { searchParams: sanitizeSearchParams(pick(params, 'expand')) }) .json() @@ -63205,7 +63205,7 @@ after creation and payment will be deducted your Stripe balance.

.`, params: stripe.PostClimateOrdersOrderParams ): Promise { return this.ky - .post(`/v1/climate/orders/${params.order}`) + .post(`/v1/climate/orders/${params['order']}`) .json() } @@ -63227,7 +63227,7 @@ provides 90 days advance notice and refunds the amount_total.

.` params: stripe.PostClimateOrdersOrderCancelParams ): Promise { return this.ky - .post(`/v1/climate/orders/${params.order}/cancel`) + .post(`/v1/climate/orders/${params['order']}/cancel`) .json() } @@ -63262,7 +63262,7 @@ provides 90 days advance notice and refunds the amount_total.

.` params: stripe.GetClimateProductsProductParams ): Promise { return this.ky - .get(`/v1/climate/products/${params.product}`, { + .get(`/v1/climate/products/${params['product']}`, { searchParams: sanitizeSearchParams(pick(params, 'expand')) }) .json() @@ -63298,7 +63298,7 @@ provides 90 days advance notice and refunds the amount_total.

.` params: stripe.GetClimateSuppliersSupplierParams ): Promise { return this.ky - .get(`/v1/climate/suppliers/${params.supplier}`, { + .get(`/v1/climate/suppliers/${params['supplier']}`, { searchParams: sanitizeSearchParams(pick(params, 'expand')) }) .json() @@ -63316,7 +63316,7 @@ provides 90 days advance notice and refunds the amount_total.

.` params: stripe.GetConfirmationTokensConfirmationTokenParams ): Promise { return this.ky - .get(`/v1/confirmation_tokens/${params.confirmation_token}`, { + .get(`/v1/confirmation_tokens/${params['confirmation_token']}`, { searchParams: sanitizeSearchParams(pick(params, 'expand')) }) .json() @@ -63352,7 +63352,7 @@ provides 90 days advance notice and refunds the amount_total.

.` params: stripe.GetCountrySpecsCountryParams ): Promise { return this.ky - .get(`/v1/country_specs/${params.country}`, { + .get(`/v1/country_specs/${params['country']}`, { searchParams: sanitizeSearchParams(pick(params, 'expand')) }) .json() @@ -63406,7 +63406,7 @@ provides 90 days advance notice and refunds the amount_total.

.` params: stripe.GetCouponsCouponParams ): Promise { return this.ky - .get(`/v1/coupons/${params.coupon}`, { + .get(`/v1/coupons/${params['coupon']}`, { searchParams: sanitizeSearchParams(pick(params, 'expand')) }) .json() @@ -63425,7 +63425,7 @@ provides 90 days advance notice and refunds the amount_total.

.` params: stripe.PostCouponsCouponParams ): Promise { return this.ky - .post(`/v1/coupons/${params.coupon}`) + .post(`/v1/coupons/${params['coupon']}`) .json() } @@ -63442,7 +63442,7 @@ provides 90 days advance notice and refunds the amount_total.

.` params: stripe.DeleteCouponsCouponParams ): Promise { return this.ky - .delete(`/v1/coupons/${params.coupon}`) + .delete(`/v1/coupons/${params['coupon']}`) .json() } @@ -63556,7 +63556,7 @@ or post_payment_credit_notes_amount depending on its status { return this.ky - .get(`/v1/credit_notes/${params.credit_note}/lines`, { + .get(`/v1/credit_notes/${params['credit_note']}/lines`, { searchParams: sanitizeSearchParams( pick(params, 'ending_before', 'expand', 'limit', 'starting_after') ) @@ -63577,7 +63577,7 @@ or post_payment_credit_notes_amount depending on its status { return this.ky - .get(`/v1/credit_notes/${params.id}`, { + .get(`/v1/credit_notes/${params['id']}`, { searchParams: sanitizeSearchParams(pick(params, 'expand')) }) .json() @@ -63595,7 +63595,7 @@ or post_payment_credit_notes_amount depending on its status { return this.ky - .post(`/v1/credit_notes/${params.id}`) + .post(`/v1/credit_notes/${params['id']}`) .json() } @@ -63612,7 +63612,7 @@ or post_payment_credit_notes_amount depending on its status { return this.ky - .post(`/v1/credit_notes/${params.id}/void`) + .post(`/v1/credit_notes/${params['id']}/void`) .json() } @@ -63702,7 +63702,7 @@ to an hour behind during outages. Search functionality is not available to merch params: stripe.GetCustomersCustomerParams ): Promise { return this.ky - .get(`/v1/customers/${params.customer}`, { + .get(`/v1/customers/${params['customer']}`, { searchParams: sanitizeSearchParams(pick(params, 'expand')) }) .json() @@ -63724,7 +63724,7 @@ to an hour behind during outages. Search functionality is not available to merch params: stripe.PostCustomersCustomerParams ): Promise { return this.ky - .post(`/v1/customers/${params.customer}`) + .post(`/v1/customers/${params['customer']}`) .json() } @@ -63741,7 +63741,7 @@ to an hour behind during outages. Search functionality is not available to merch params: stripe.DeleteCustomersCustomerParams ): Promise { return this.ky - .delete(`/v1/customers/${params.customer}`) + .delete(`/v1/customers/${params['customer']}`) .json() } @@ -63758,7 +63758,7 @@ to an hour behind during outages. Search functionality is not available to merch params: stripe.GetCustomersCustomerBalanceTransactionsParams ): Promise { return this.ky - .get(`/v1/customers/${params.customer}/balance_transactions`, { + .get(`/v1/customers/${params['customer']}/balance_transactions`, { searchParams: sanitizeSearchParams( pick(params, 'ending_before', 'expand', 'limit', 'starting_after') ) @@ -63779,7 +63779,7 @@ to an hour behind during outages. Search functionality is not available to merch params: stripe.PostCustomersCustomerBalanceTransactionsParams ): Promise { return this.ky - .post(`/v1/customers/${params.customer}/balance_transactions`) + .post(`/v1/customers/${params['customer']}/balance_transactions`) .json() } @@ -63798,7 +63798,7 @@ to an hour behind during outages. Search functionality is not available to merch ): Promise { return this.ky .get( - `/v1/customers/${params.customer}/balance_transactions/${params.transaction}`, + `/v1/customers/${params['customer']}/balance_transactions/${params['transaction']}`, { searchParams: sanitizeSearchParams(pick(params, 'expand')) } @@ -63821,7 +63821,7 @@ to an hour behind during outages. Search functionality is not available to merch ): Promise { return this.ky .post( - `/v1/customers/${params.customer}/balance_transactions/${params.transaction}` + `/v1/customers/${params['customer']}/balance_transactions/${params['transaction']}` ) .json() } @@ -63839,7 +63839,7 @@ to an hour behind during outages. Search functionality is not available to merch params: stripe.GetCustomersCustomerBankAccountsParams ): Promise { return this.ky - .get(`/v1/customers/${params.customer}/bank_accounts`, { + .get(`/v1/customers/${params['customer']}/bank_accounts`, { searchParams: sanitizeSearchParams( pick(params, 'ending_before', 'expand', 'limit', 'starting_after') ) @@ -63867,7 +63867,7 @@ To change the default, you should update the params: stripe.PostCustomersCustomerBankAccountsParams ): Promise { return this.ky - .post(`/v1/customers/${params.customer}/bank_accounts`) + .post(`/v1/customers/${params['customer']}/bank_accounts`) .json() } @@ -63885,7 +63885,7 @@ To change the default, you should update the ): Promise { return this.ky .get( - `/v1/customers/${params.customer}/bank_accounts/${params.id}`, + `/v1/customers/${params['customer']}/bank_accounts/${params['id']}`, { searchParams: sanitizeSearchParams(pick(params, 'expand')) } @@ -63905,7 +63905,7 @@ To change the default, you should update the params: stripe.PostCustomersCustomerBankAccountsIdParams ): Promise { return this.ky - .post(`/v1/customers/${params.customer}/bank_accounts/${params.id}`) + .post(`/v1/customers/${params['customer']}/bank_accounts/${params['id']}`) .json() } @@ -63922,7 +63922,7 @@ To change the default, you should update the ): Promise { return this.ky .delete( - `/v1/customers/${params.customer}/bank_accounts/${params.id}` + `/v1/customers/${params['customer']}/bank_accounts/${params['id']}` ) .json() } @@ -63941,7 +63941,7 @@ To change the default, you should update the ): Promise { return this.ky .post( - `/v1/customers/${params.customer}/bank_accounts/${params.id}/verify` + `/v1/customers/${params['customer']}/bank_accounts/${params['id']}/verify` ) .json() } @@ -63962,7 +63962,7 @@ If you need more than those 10, you can use this API method and the limit< params: stripe.GetCustomersCustomerCardsParams ): Promise { return this.ky - .get(`/v1/customers/${params.customer}/cards`, { + .get(`/v1/customers/${params['customer']}/cards`, { searchParams: sanitizeSearchParams( pick(params, 'ending_before', 'expand', 'limit', 'starting_after') ) @@ -63990,7 +63990,7 @@ To change the default, you should update the params: stripe.PostCustomersCustomerCardsParams ): Promise { return this.ky - .post(`/v1/customers/${params.customer}/cards`) + .post(`/v1/customers/${params['customer']}/cards`) .json() } @@ -64007,7 +64007,7 @@ To change the default, you should update the params: stripe.GetCustomersCustomerCardsIdParams ): Promise { return this.ky - .get(`/v1/customers/${params.customer}/cards/${params.id}`, { + .get(`/v1/customers/${params['customer']}/cards/${params['id']}`, { searchParams: sanitizeSearchParams(pick(params, 'expand')) }) .json() @@ -64025,7 +64025,7 @@ To change the default, you should update the params: stripe.PostCustomersCustomerCardsIdParams ): Promise { return this.ky - .post(`/v1/customers/${params.customer}/cards/${params.id}`) + .post(`/v1/customers/${params['customer']}/cards/${params['id']}`) .json() } @@ -64041,7 +64041,7 @@ To change the default, you should update the params: stripe.DeleteCustomersCustomerCardsIdParams ): Promise { return this.ky - .delete(`/v1/customers/${params.customer}/cards/${params.id}`) + .delete(`/v1/customers/${params['customer']}/cards/${params['id']}`) .json() } @@ -64057,7 +64057,7 @@ To change the default, you should update the params: stripe.GetCustomersCustomerCashBalanceParams ): Promise { return this.ky - .get(`/v1/customers/${params.customer}/cash_balance`, { + .get(`/v1/customers/${params['customer']}/cash_balance`, { searchParams: sanitizeSearchParams(pick(params, 'expand')) }) .json() @@ -64075,7 +64075,7 @@ To change the default, you should update the params: stripe.PostCustomersCustomerCashBalanceParams ): Promise { return this.ky - .post(`/v1/customers/${params.customer}/cash_balance`) + .post(`/v1/customers/${params['customer']}/cash_balance`) .json() } @@ -64092,7 +64092,7 @@ To change the default, you should update the params: stripe.GetCustomersCustomerCashBalanceTransactionsParams ): Promise { return this.ky - .get(`/v1/customers/${params.customer}/cash_balance_transactions`, { + .get(`/v1/customers/${params['customer']}/cash_balance_transactions`, { searchParams: sanitizeSearchParams( pick(params, 'ending_before', 'expand', 'limit', 'starting_after') ) @@ -64115,7 +64115,7 @@ To change the default, you should update the ): Promise { return this.ky .get( - `/v1/customers/${params.customer}/cash_balance_transactions/${params.transaction}`, + `/v1/customers/${params['customer']}/cash_balance_transactions/${params['transaction']}`, { searchParams: sanitizeSearchParams(pick(params, 'expand')) } @@ -64132,7 +64132,7 @@ To change the default, you should update the params: stripe.GetCustomersCustomerDiscountParams ): Promise { return this.ky - .get(`/v1/customers/${params.customer}/discount`, { + .get(`/v1/customers/${params['customer']}/discount`, { searchParams: sanitizeSearchParams(pick(params, 'expand')) }) .json() @@ -64151,7 +64151,7 @@ To change the default, you should update the params: stripe.DeleteCustomersCustomerDiscountParams ): Promise { return this.ky - .delete(`/v1/customers/${params.customer}/discount`) + .delete(`/v1/customers/${params['customer']}/discount`) .json() } @@ -64171,7 +64171,7 @@ funding instructions will be retrieved. In other words, we will return the same params: stripe.PostCustomersCustomerFundingInstructionsParams ): Promise { return this.ky - .post(`/v1/customers/${params.customer}/funding_instructions`) + .post(`/v1/customers/${params['customer']}/funding_instructions`) .json() } @@ -64188,7 +64188,7 @@ funding instructions will be retrieved. In other words, we will return the same params: stripe.GetCustomersCustomerPaymentMethodsParams ): Promise { return this.ky - .get(`/v1/customers/${params.customer}/payment_methods`, { + .get(`/v1/customers/${params['customer']}/payment_methods`, { searchParams: sanitizeSearchParams( pick( params, @@ -64219,7 +64219,7 @@ funding instructions will be retrieved. In other words, we will return the same ): Promise { return this.ky .get( - `/v1/customers/${params.customer}/payment_methods/${params.payment_method}`, + `/v1/customers/${params['customer']}/payment_methods/${params['payment_method']}`, { searchParams: sanitizeSearchParams(pick(params, 'expand')) } @@ -64239,7 +64239,7 @@ funding instructions will be retrieved. In other words, we will return the same params: stripe.GetCustomersCustomerSourcesParams ): Promise { return this.ky - .get(`/v1/customers/${params.customer}/sources`, { + .get(`/v1/customers/${params['customer']}/sources`, { searchParams: sanitizeSearchParams( pick( params, @@ -64274,7 +64274,7 @@ To change the default, you should update the params: stripe.PostCustomersCustomerSourcesParams ): Promise { return this.ky - .post(`/v1/customers/${params.customer}/sources`) + .post(`/v1/customers/${params['customer']}/sources`) .json() } @@ -64290,7 +64290,7 @@ To change the default, you should update the params: stripe.GetCustomersCustomerSourcesIdParams ): Promise { return this.ky - .get(`/v1/customers/${params.customer}/sources/${params.id}`, { + .get(`/v1/customers/${params['customer']}/sources/${params['id']}`, { searchParams: sanitizeSearchParams(pick(params, 'expand')) }) .json() @@ -64308,7 +64308,7 @@ To change the default, you should update the params: stripe.PostCustomersCustomerSourcesIdParams ): Promise { return this.ky - .post(`/v1/customers/${params.customer}/sources/${params.id}`) + .post(`/v1/customers/${params['customer']}/sources/${params['id']}`) .json() } @@ -64324,7 +64324,7 @@ To change the default, you should update the params: stripe.DeleteCustomersCustomerSourcesIdParams ): Promise { return this.ky - .delete(`/v1/customers/${params.customer}/sources/${params.id}`) + .delete(`/v1/customers/${params['customer']}/sources/${params['id']}`) .json() } @@ -64342,7 +64342,7 @@ To change the default, you should update the ): Promise { return this.ky .post( - `/v1/customers/${params.customer}/sources/${params.id}/verify` + `/v1/customers/${params['customer']}/sources/${params['id']}/verify` ) .json() } @@ -64360,7 +64360,7 @@ To change the default, you should update the params: stripe.GetCustomersCustomerSubscriptionsParams ): Promise { return this.ky - .get(`/v1/customers/${params.customer}/subscriptions`, { + .get(`/v1/customers/${params['customer']}/subscriptions`, { searchParams: sanitizeSearchParams( pick(params, 'ending_before', 'expand', 'limit', 'starting_after') ) @@ -64380,7 +64380,7 @@ To change the default, you should update the params: stripe.PostCustomersCustomerSubscriptionsParams ): Promise { return this.ky - .post(`/v1/customers/${params.customer}/subscriptions`) + .post(`/v1/customers/${params['customer']}/subscriptions`) .json() } @@ -64398,7 +64398,7 @@ To change the default, you should update the ): Promise { return this.ky .get( - `/v1/customers/${params.customer}/subscriptions/${params.subscription_exposed_id}`, + `/v1/customers/${params['customer']}/subscriptions/${params['subscription_exposed_id']}`, { searchParams: sanitizeSearchParams(pick(params, 'expand')) } @@ -64421,7 +64421,7 @@ To change the default, you should update the ): Promise { return this.ky .post( - `/v1/customers/${params.customer}/subscriptions/${params.subscription_exposed_id}` + `/v1/customers/${params['customer']}/subscriptions/${params['subscription_exposed_id']}` ) .json() } @@ -64448,7 +64448,7 @@ To change the default, you should update the ): Promise { return this.ky .delete( - `/v1/customers/${params.customer}/subscriptions/${params.subscription_exposed_id}` + `/v1/customers/${params['customer']}/subscriptions/${params['subscription_exposed_id']}` ) .json() } @@ -64464,7 +64464,7 @@ To change the default, you should update the ): Promise { return this.ky .get( - `/v1/customers/${params.customer}/subscriptions/${params.subscription_exposed_id}/discount`, + `/v1/customers/${params['customer']}/subscriptions/${params['subscription_exposed_id']}/discount`, { searchParams: sanitizeSearchParams(pick(params, 'expand')) } @@ -64487,7 +64487,7 @@ To change the default, you should update the ): Promise { return this.ky .delete( - `/v1/customers/${params.customer}/subscriptions/${params.subscription_exposed_id}/discount` + `/v1/customers/${params['customer']}/subscriptions/${params['subscription_exposed_id']}/discount` ) .json() } @@ -64504,7 +64504,7 @@ To change the default, you should update the params: stripe.GetCustomersCustomerTaxIdsParams ): Promise { return this.ky - .get(`/v1/customers/${params.customer}/tax_ids`, { + .get(`/v1/customers/${params['customer']}/tax_ids`, { searchParams: sanitizeSearchParams( pick(params, 'ending_before', 'expand', 'limit', 'starting_after') ) @@ -64525,7 +64525,7 @@ To change the default, you should update the params: stripe.PostCustomersCustomerTaxIdsParams ): Promise { return this.ky - .post(`/v1/customers/${params.customer}/tax_ids`) + .post(`/v1/customers/${params['customer']}/tax_ids`) .json() } @@ -64542,7 +64542,7 @@ To change the default, you should update the params: stripe.GetCustomersCustomerTaxIdsIdParams ): Promise { return this.ky - .get(`/v1/customers/${params.customer}/tax_ids/${params.id}`, { + .get(`/v1/customers/${params['customer']}/tax_ids/${params['id']}`, { searchParams: sanitizeSearchParams(pick(params, 'expand')) }) .json() @@ -64560,7 +64560,7 @@ To change the default, you should update the params: stripe.DeleteCustomersCustomerTaxIdsIdParams ): Promise { return this.ky - .delete(`/v1/customers/${params.customer}/tax_ids/${params.id}`) + .delete(`/v1/customers/${params['customer']}/tax_ids/${params['id']}`) .json() } @@ -64594,7 +64594,7 @@ To change the default, you should update the params: stripe.GetDisputesDisputeParams ): Promise { return this.ky - .get(`/v1/disputes/${params.dispute}`, { + .get(`/v1/disputes/${params['dispute']}`, { searchParams: sanitizeSearchParams(pick(params, 'expand')) }) .json() @@ -64616,7 +64616,7 @@ To change the default, you should update the params: stripe.PostDisputesDisputeParams ): Promise { return this.ky - .post(`/v1/disputes/${params.dispute}`) + .post(`/v1/disputes/${params['dispute']}`) .json() } @@ -64636,7 +64636,7 @@ To change the default, you should update the params: stripe.PostDisputesDisputeCloseParams ): Promise { return this.ky - .post(`/v1/disputes/${params.dispute}/close`) + .post(`/v1/disputes/${params['dispute']}/close`) .json() } @@ -64671,7 +64671,7 @@ To change the default, you should update the params: stripe.GetEntitlementsActiveEntitlementsIdParams ): Promise { return this.ky - .get(`/v1/entitlements/active_entitlements/${params.id}`, { + .get(`/v1/entitlements/active_entitlements/${params['id']}`, { searchParams: sanitizeSearchParams(pick(params, 'expand')) }) .json() @@ -64723,7 +64723,7 @@ To change the default, you should update the params: stripe.GetEntitlementsFeaturesIdParams ): Promise { return this.ky - .get(`/v1/entitlements/features/${params.id}`, { + .get(`/v1/entitlements/features/${params['id']}`, { searchParams: sanitizeSearchParams(pick(params, 'expand')) }) .json() @@ -64742,7 +64742,7 @@ To change the default, you should update the params: stripe.PostEntitlementsFeaturesIdParams ): Promise { return this.ky - .post(`/v1/entitlements/features/${params.id}`) + .post(`/v1/entitlements/features/${params['id']}`) .json() } @@ -64775,7 +64775,7 @@ To change the default, you should update the params: stripe.DeleteEphemeralKeysKeyParams ): Promise { return this.ky - .delete(`/v1/ephemeral_keys/${params.key}`) + .delete(`/v1/ephemeral_keys/${params['key']}`) .json() } @@ -64811,7 +64811,7 @@ To change the default, you should update the params: stripe.GetEventsIdParams ): Promise { return this.ky - .get(`/v1/events/${params.id}`, { + .get(`/v1/events/${params['id']}`, { searchParams: sanitizeSearchParams(pick(params, 'expand')) }) .json() @@ -64849,7 +64849,7 @@ To change the default, you should update the params: stripe.GetExchangeRatesRateIdParams ): Promise { return this.ky - .get(`/v1/exchange_rates/${params.rate_id}`, { + .get(`/v1/exchange_rates/${params['rate_id']}`, { searchParams: sanitizeSearchParams(pick(params, 'expand')) }) .json() @@ -64899,7 +64899,7 @@ To change the default, you should update the params: stripe.GetFileLinksLinkParams ): Promise { return this.ky - .get(`/v1/file_links/${params.link}`, { + .get(`/v1/file_links/${params['link']}`, { searchParams: sanitizeSearchParams(pick(params, 'expand')) }) .json() @@ -64918,7 +64918,7 @@ To change the default, you should update the params: stripe.PostFileLinksLinkParams ): Promise { return this.ky - .post(`/v1/file_links/${params.link}`) + .post(`/v1/file_links/${params['link']}`) .json() } @@ -64976,7 +64976,7 @@ To change the default, you should update the params: stripe.GetFilesFileParams ): Promise { return this.ky - .get(`/v1/files/${params.file}`, { + .get(`/v1/files/${params['file']}`, { searchParams: sanitizeSearchParams(pick(params, 'expand')) }) .json() @@ -65014,7 +65014,7 @@ To change the default, you should update the params: stripe.GetFinancialConnectionsAccountsAccountParams ): Promise { return this.ky - .get(`/v1/financial_connections/accounts/${params.account}`, { + .get(`/v1/financial_connections/accounts/${params['account']}`, { searchParams: sanitizeSearchParams(pick(params, 'expand')) }) .json() @@ -65035,7 +65035,7 @@ To change the default, you should update the ): Promise { return this.ky .post( - `/v1/financial_connections/accounts/${params.account}/disconnect` + `/v1/financial_connections/accounts/${params['account']}/disconnect` ) .json() } @@ -65052,7 +65052,7 @@ To change the default, you should update the params: stripe.GetFinancialConnectionsAccountsAccountOwnersParams ): Promise { return this.ky - .get(`/v1/financial_connections/accounts/${params.account}/owners`, { + .get(`/v1/financial_connections/accounts/${params['account']}/owners`, { searchParams: sanitizeSearchParams( pick( params, @@ -65081,7 +65081,7 @@ To change the default, you should update the params: stripe.PostFinancialConnectionsAccountsAccountRefreshParams ): Promise { return this.ky - .post(`/v1/financial_connections/accounts/${params.account}/refresh`) + .post(`/v1/financial_connections/accounts/${params['account']}/refresh`) .json() } @@ -65099,7 +65099,7 @@ To change the default, you should update the params: stripe.PostFinancialConnectionsAccountsAccountSubscribeParams ): Promise { return this.ky - .post(`/v1/financial_connections/accounts/${params.account}/subscribe`) + .post(`/v1/financial_connections/accounts/${params['account']}/subscribe`) .json() } @@ -65118,7 +65118,7 @@ To change the default, you should update the ): Promise { return this.ky .post( - `/v1/financial_connections/accounts/${params.account}/unsubscribe` + `/v1/financial_connections/accounts/${params['account']}/unsubscribe` ) .json() } @@ -65153,7 +65153,7 @@ To change the default, you should update the params: stripe.GetFinancialConnectionsSessionsSessionParams ): Promise { return this.ky - .get(`/v1/financial_connections/sessions/${params.session}`, { + .get(`/v1/financial_connections/sessions/${params['session']}`, { searchParams: sanitizeSearchParams(pick(params, 'expand')) }) .json() @@ -65192,7 +65192,7 @@ To change the default, you should update the params: stripe.GetFinancialConnectionsTransactionsTransactionParams ): Promise { return this.ky - .get(`/v1/financial_connections/transactions/${params.transaction}`, { + .get(`/v1/financial_connections/transactions/${params['transaction']}`, { searchParams: sanitizeSearchParams(pick(params, 'expand')) }) .json() @@ -65244,7 +65244,7 @@ To change the default, you should update the params: stripe.GetForwardingRequestsIdParams ): Promise { return this.ky - .get(`/v1/forwarding/requests/${params.id}`, { + .get(`/v1/forwarding/requests/${params['id']}`, { searchParams: sanitizeSearchParams(pick(params, 'expand')) }) .json() @@ -65280,7 +65280,7 @@ To change the default, you should update the params: stripe.GetIdentityVerificationReportsReportParams ): Promise { return this.ky - .get(`/v1/identity/verification_reports/${params.report}`, { + .get(`/v1/identity/verification_reports/${params['report']}`, { searchParams: sanitizeSearchParams(pick(params, 'expand')) }) .json() @@ -65350,7 +65350,7 @@ To change the default, you should update the params: stripe.GetIdentityVerificationSessionsSessionParams ): Promise { return this.ky - .get(`/v1/identity/verification_sessions/${params.session}`, { + .get(`/v1/identity/verification_sessions/${params['session']}`, { searchParams: sanitizeSearchParams(pick(params, 'expand')) }) .json() @@ -65374,7 +65374,7 @@ verification check and options.

.`, params: stripe.PostIdentityVerificationSessionsSessionParams ): Promise { return this.ky - .post(`/v1/identity/verification_sessions/${params.session}`) + .post(`/v1/identity/verification_sessions/${params['session']}`) .json() } @@ -65395,7 +65395,7 @@ verification check and options.

.`, params: stripe.PostIdentityVerificationSessionsSessionCancelParams ): Promise { return this.ky - .post(`/v1/identity/verification_sessions/${params.session}/cancel`) + .post(`/v1/identity/verification_sessions/${params['session']}/cancel`) .json() } @@ -65448,7 +65448,7 @@ used for any purpose.

params: stripe.PostIdentityVerificationSessionsSessionRedactParams ): Promise { return this.ky - .post(`/v1/identity/verification_sessions/${params.session}/redact`) + .post(`/v1/identity/verification_sessions/${params['session']}/redact`) .json() } @@ -65484,7 +65484,7 @@ used for any purpose.

params: stripe.GetInvoiceRenderingTemplatesTemplateParams ): Promise { return this.ky - .get(`/v1/invoice_rendering_templates/${params.template}`, { + .get(`/v1/invoice_rendering_templates/${params['template']}`, { searchParams: sanitizeSearchParams(pick(params, 'expand', 'version')) }) .json() @@ -65503,7 +65503,7 @@ used for any purpose.

params: stripe.PostInvoiceRenderingTemplatesTemplateArchiveParams ): Promise { return this.ky - .post(`/v1/invoice_rendering_templates/${params.template}/archive`) + .post(`/v1/invoice_rendering_templates/${params['template']}/archive`) .json() } @@ -65521,7 +65521,7 @@ used for any purpose.

params: stripe.PostInvoiceRenderingTemplatesTemplateUnarchiveParams ): Promise { return this.ky - .post(`/v1/invoice_rendering_templates/${params.template}/unarchive`) + .post(`/v1/invoice_rendering_templates/${params['template']}/unarchive`) .json() } @@ -65573,7 +65573,7 @@ used for any purpose.

params: stripe.GetInvoiceitemsInvoiceitemParams ): Promise { return this.ky - .get(`/v1/invoiceitems/${params.invoiceitem}`, { + .get(`/v1/invoiceitems/${params['invoiceitem']}`, { searchParams: sanitizeSearchParams(pick(params, 'expand')) }) .json() @@ -65592,7 +65592,7 @@ used for any purpose.

params: stripe.PostInvoiceitemsInvoiceitemParams ): Promise { return this.ky - .post(`/v1/invoiceitems/${params.invoiceitem}`) + .post(`/v1/invoiceitems/${params['invoiceitem']}`) .json() } @@ -65609,7 +65609,7 @@ used for any purpose.

params: stripe.DeleteInvoiceitemsInvoiceitemParams ): Promise { return this.ky - .delete(`/v1/invoiceitems/${params.invoiceitem}`) + .delete(`/v1/invoiceitems/${params['invoiceitem']}`) .json() } @@ -65760,7 +65760,7 @@ to an hour behind during outages. Search functionality is not available to merch params: stripe.GetInvoicesInvoiceParams ): Promise { return this.ky - .get(`/v1/invoices/${params.invoice}`, { + .get(`/v1/invoices/${params['invoice']}`, { searchParams: sanitizeSearchParams(pick(params, 'expand')) }) .json() @@ -65788,7 +65788,7 @@ sending reminders for, or
automa params: stripe.PostInvoicesInvoiceParams ): Promise { return this.ky - .post(`/v1/invoices/${params.invoice}`) + .post(`/v1/invoices/${params['invoice']}`) .json() } @@ -65805,7 +65805,7 @@ sending reminders for, or automa params: stripe.DeleteInvoicesInvoiceParams ): Promise { return this.ky - .delete(`/v1/invoices/${params.invoice}`) + .delete(`/v1/invoices/${params['invoice']}`) .json() } @@ -65822,7 +65822,7 @@ sending reminders for, or automa params: stripe.PostInvoicesInvoiceAddLinesParams ): Promise { return this.ky - .post(`/v1/invoices/${params.invoice}/add_lines`) + .post(`/v1/invoices/${params['invoice']}/add_lines`) .json() } @@ -65839,7 +65839,7 @@ sending reminders for, or automa params: stripe.PostInvoicesInvoiceFinalizeParams ): Promise { return this.ky - .post(`/v1/invoices/${params.invoice}/finalize`) + .post(`/v1/invoices/${params['invoice']}/finalize`) .json() } @@ -65856,7 +65856,7 @@ sending reminders for, or automa params: stripe.GetInvoicesInvoiceLinesParams ): Promise { return this.ky - .get(`/v1/invoices/${params.invoice}/lines`, { + .get(`/v1/invoices/${params['invoice']}/lines`, { searchParams: sanitizeSearchParams( pick(params, 'ending_before', 'expand', 'limit', 'starting_after') ) @@ -65882,7 +65882,7 @@ Updating an invoice’s line item is only possible before the invoice is finaliz params: stripe.PostInvoicesInvoiceLinesLineItemIdParams ): Promise { return this.ky - .post(`/v1/invoices/${params.invoice}/lines/${params.line_item_id}`) + .post(`/v1/invoices/${params['invoice']}/lines/${params['line_item_id']}`) .json() } @@ -65899,7 +65899,7 @@ Updating an invoice’s line item is only possible before the invoice is finaliz params: stripe.PostInvoicesInvoiceMarkUncollectibleParams ): Promise { return this.ky - .post(`/v1/invoices/${params.invoice}/mark_uncollectible`) + .post(`/v1/invoices/${params['invoice']}/mark_uncollectible`) .json() } @@ -65916,7 +65916,7 @@ Updating an invoice’s line item is only possible before the invoice is finaliz params: stripe.PostInvoicesInvoicePayParams ): Promise { return this.ky - .post(`/v1/invoices/${params.invoice}/pay`) + .post(`/v1/invoices/${params['invoice']}/pay`) .json() } @@ -65933,7 +65933,7 @@ Updating an invoice’s line item is only possible before the invoice is finaliz params: stripe.PostInvoicesInvoiceRemoveLinesParams ): Promise { return this.ky - .post(`/v1/invoices/${params.invoice}/remove_lines`) + .post(`/v1/invoices/${params['invoice']}/remove_lines`) .json() } @@ -65953,7 +65953,7 @@ Updating an invoice’s line item is only possible before the invoice is finaliz params: stripe.PostInvoicesInvoiceSendParams ): Promise { return this.ky - .post(`/v1/invoices/${params.invoice}/send`) + .post(`/v1/invoices/${params['invoice']}/send`) .json() } @@ -65970,7 +65970,7 @@ Updating an invoice’s line item is only possible before the invoice is finaliz params: stripe.PostInvoicesInvoiceUpdateLinesParams ): Promise { return this.ky - .post(`/v1/invoices/${params.invoice}/update_lines`) + .post(`/v1/invoices/${params['invoice']}/update_lines`) .json() } @@ -65990,7 +65990,7 @@ Updating an invoice’s line item is only possible before the invoice is finaliz params: stripe.PostInvoicesInvoiceVoidParams ): Promise { return this.ky - .post(`/v1/invoices/${params.invoice}/void`) + .post(`/v1/invoices/${params['invoice']}/void`) .json() } @@ -66026,7 +66026,7 @@ Updating an invoice’s line item is only possible before the invoice is finaliz params: stripe.GetIssuingAuthorizationsAuthorizationParams ): Promise { return this.ky - .get(`/v1/issuing/authorizations/${params.authorization}`, { + .get(`/v1/issuing/authorizations/${params['authorization']}`, { searchParams: sanitizeSearchParams(pick(params, 'expand')) }) .json() @@ -66045,7 +66045,7 @@ Updating an invoice’s line item is only possible before the invoice is finaliz params: stripe.PostIssuingAuthorizationsAuthorizationParams ): Promise { return this.ky - .post(`/v1/issuing/authorizations/${params.authorization}`) + .post(`/v1/issuing/authorizations/${params['authorization']}`) .json() } @@ -66064,7 +66064,7 @@ This method is deprecated. Instead, { return this.ky - .post(`/v1/issuing/authorizations/${params.authorization}/decline`) + .post(`/v1/issuing/authorizations/${params['authorization']}/decline`) .json() } @@ -66135,7 +66135,7 @@ This method is deprecated. Instead, { return this.ky - .post(`/v1/issuing/cardholders/${params.cardholder}`) + .post(`/v1/issuing/cardholders/${params['cardholder']}`) .json() } @@ -66205,7 +66205,7 @@ This method is deprecated. Instead, { return this.ky - .post(`/v1/issuing/cards/${params.card}`) + .post(`/v1/issuing/cards/${params['card']}`) .json() } @@ -66276,7 +66276,7 @@ This method is deprecated. Instead, { return this.ky - .post(`/v1/issuing/disputes/${params.dispute}`) + .post(`/v1/issuing/disputes/${params['dispute']}`) .json() } @@ -66312,7 +66312,7 @@ This method is deprecated. Instead, { return this.ky .get( - `/v1/issuing/personalization_designs/${params.personalization_design}`, + `/v1/issuing/personalization_designs/${params['personalization_design']}`, { searchParams: sanitizeSearchParams(pick(params, 'expand')) } @@ -66387,7 +66387,7 @@ This method is deprecated. Instead, { return this.ky - .get(`/v1/issuing/physical_bundles/${params.physical_bundle}`, { + .get(`/v1/issuing/physical_bundles/${params['physical_bundle']}`, { searchParams: sanitizeSearchParams(pick(params, 'expand')) }) .json() @@ -66441,7 +66441,7 @@ This method is deprecated. Instead, { return this.ky - .post(`/v1/issuing/settlements/${params.settlement}`) + .post(`/v1/issuing/settlements/${params['settlement']}`) .json() } @@ -66495,7 +66495,7 @@ This method is deprecated. Instead, { return this.ky - .post(`/v1/issuing/tokens/${params.token}`) + .post(`/v1/issuing/tokens/${params['token']}`) .json() } @@ -66550,7 +66550,7 @@ This method is deprecated. Instead, { return this.ky - .post(`/v1/issuing/transactions/${params.transaction}`) + .post(`/v1/issuing/transactions/${params['transaction']}`) .json() } @@ -66603,7 +66603,7 @@ This method is deprecated. Instead, { return this.ky - .get(`/v1/linked_accounts/${params.account}`, { + .get(`/v1/linked_accounts/${params['account']}`, { searchParams: sanitizeSearchParams(pick(params, 'expand')) }) .json() @@ -66660,7 +66660,7 @@ This method is deprecated. Instead, { return this.ky - .get(`/v1/linked_accounts/${params.account}/owners`, { + .get(`/v1/linked_accounts/${params['account']}/owners`, { searchParams: sanitizeSearchParams( pick( params, @@ -66704,7 +66704,7 @@ This method is deprecated. Instead, { return this.ky - .get(`/v1/mandates/${params.mandate}`, { + .get(`/v1/mandates/${params['mandate']}`, { searchParams: sanitizeSearchParams(pick(params, 'expand')) }) .json() @@ -66822,7 +66822,7 @@ to an hour behind during outages. Search functionality is not available to merch params: stripe.GetPaymentIntentsIntentParams ): Promise { return this.ky - .get(`/v1/payment_intents/${params.intent}`, { + .get(`/v1/payment_intents/${params['intent']}`, { searchParams: sanitizeSearchParams( pick(params, 'client_secret', 'expand') ) @@ -66854,7 +66854,7 @@ the confirm API instead.

.`, params: stripe.PostPaymentIntentsIntentParams ): Promise { return this.ky - .post(`/v1/payment_intents/${params.intent}`) + .post(`/v1/payment_intents/${params['intent']}`) .json() } @@ -66871,7 +66871,7 @@ the confirm API instead.

.`, params: stripe.PostPaymentIntentsIntentApplyCustomerBalanceParams ): Promise { return this.ky - .post(`/v1/payment_intents/${params.intent}/apply_customer_balance`) + .post(`/v1/payment_intents/${params['intent']}/apply_customer_balance`) .json() } @@ -66895,7 +66895,7 @@ the confirm API instead.

.`, params: stripe.PostPaymentIntentsIntentCancelParams ): Promise { return this.ky - .post(`/v1/payment_intents/${params.intent}/cancel`) + .post(`/v1/payment_intents/${params['intent']}/cancel`) .json() } @@ -66919,7 +66919,7 @@ the confirm API instead.

.`, params: stripe.PostPaymentIntentsIntentCaptureParams ): Promise { return this.ky - .post(`/v1/payment_intents/${params.intent}/capture`) + .post(`/v1/payment_intents/${params['intent']}/capture`) .json() } @@ -66983,7 +66983,7 @@ transition the PaymentIntent to the canceled state.

.`, params: stripe.PostPaymentIntentsIntentConfirmParams ): Promise { return this.ky - .post(`/v1/payment_intents/${params.intent}/confirm`) + .post(`/v1/payment_intents/${params['intent']}/confirm`) .json() } @@ -67046,7 +67046,7 @@ After it’s captured, a PaymentIntent can no longer be incremented.

params: stripe.PostPaymentIntentsIntentIncrementAuthorizationParams ): Promise { return this.ky - .post(`/v1/payment_intents/${params.intent}/increment_authorization`) + .post(`/v1/payment_intents/${params['intent']}/increment_authorization`) .json() } @@ -67062,7 +67062,7 @@ After it’s captured, a PaymentIntent can no longer be incremented.

params: stripe.PostPaymentIntentsIntentVerifyMicrodepositsParams ): Promise { return this.ky - .post(`/v1/payment_intents/${params.intent}/verify_microdeposits`) + .post(`/v1/payment_intents/${params['intent']}/verify_microdeposits`) .json() } @@ -67112,7 +67112,7 @@ After it’s captured, a PaymentIntent can no longer be incremented.

params: stripe.GetPaymentLinksPaymentLinkParams ): Promise { return this.ky - .get(`/v1/payment_links/${params.payment_link}`, { + .get(`/v1/payment_links/${params['payment_link']}`, { searchParams: sanitizeSearchParams(pick(params, 'expand')) }) .json() @@ -67130,7 +67130,7 @@ After it’s captured, a PaymentIntent can no longer be incremented.

params: stripe.PostPaymentLinksPaymentLinkParams ): Promise { return this.ky - .post(`/v1/payment_links/${params.payment_link}`) + .post(`/v1/payment_links/${params['payment_link']}`) .json() } @@ -67147,7 +67147,7 @@ After it’s captured, a PaymentIntent can no longer be incremented.

params: stripe.GetPaymentLinksPaymentLinkLineItemsParams ): Promise { return this.ky - .get(`/v1/payment_links/${params.payment_link}/line_items`, { + .get(`/v1/payment_links/${params['payment_link']}/line_items`, { searchParams: sanitizeSearchParams( pick(params, 'ending_before', 'expand', 'limit', 'starting_after') ) @@ -67201,7 +67201,7 @@ After it’s captured, a PaymentIntent can no longer be incremented.

params: stripe.GetPaymentMethodConfigurationsConfigurationParams ): Promise { return this.ky - .get(`/v1/payment_method_configurations/${params.configuration}`, { + .get(`/v1/payment_method_configurations/${params['configuration']}`, { searchParams: sanitizeSearchParams(pick(params, 'expand')) }) .json() @@ -67219,7 +67219,7 @@ After it’s captured, a PaymentIntent can no longer be incremented.

params: stripe.PostPaymentMethodConfigurationsConfigurationParams ): Promise { return this.ky - .post(`/v1/payment_method_configurations/${params.configuration}`) + .post(`/v1/payment_method_configurations/${params['configuration']}`) .json() } @@ -67271,7 +67271,7 @@ After it’s captured, a PaymentIntent can no longer be incremented.

params: stripe.GetPaymentMethodDomainsPaymentMethodDomainParams ): Promise { return this.ky - .get(`/v1/payment_method_domains/${params.payment_method_domain}`, { + .get(`/v1/payment_method_domains/${params['payment_method_domain']}`, { searchParams: sanitizeSearchParams(pick(params, 'expand')) }) .json() @@ -67289,7 +67289,7 @@ After it’s captured, a PaymentIntent can no longer be incremented.

params: stripe.PostPaymentMethodDomainsPaymentMethodDomainParams ): Promise { return this.ky - .post(`/v1/payment_method_domains/${params.payment_method_domain}`) + .post(`/v1/payment_method_domains/${params['payment_method_domain']}`) .json() } @@ -67317,7 +67317,7 @@ The payment method doesn’t appear in Elements for this domain until it is acti ): Promise { return this.ky .post( - `/v1/payment_method_domains/${params.payment_method_domain}/validate` + `/v1/payment_method_domains/${params['payment_method_domain']}/validate` ) .json() } @@ -67374,7 +67374,7 @@ The payment method doesn’t appear in Elements for this domain until it is acti params: stripe.GetPaymentMethodsPaymentMethodParams ): Promise { return this.ky - .get(`/v1/payment_methods/${params.payment_method}`, { + .get(`/v1/payment_methods/${params['payment_method']}`, { searchParams: sanitizeSearchParams(pick(params, 'expand')) }) .json() @@ -67393,7 +67393,7 @@ The payment method doesn’t appear in Elements for this domain until it is acti params: stripe.PostPaymentMethodsPaymentMethodParams ): Promise { return this.ky - .post(`/v1/payment_methods/${params.payment_method}`) + .post(`/v1/payment_methods/${params['payment_method']}`) .json() } @@ -67433,7 +67433,7 @@ on the Customer to the PaymentMethod’s ID.

.`, params: stripe.PostPaymentMethodsPaymentMethodAttachParams ): Promise { return this.ky - .post(`/v1/payment_methods/${params.payment_method}/attach`) + .post(`/v1/payment_methods/${params['payment_method']}/attach`) .json() } @@ -67450,7 +67450,7 @@ on the Customer to the PaymentMethod’s ID.

.`, params: stripe.PostPaymentMethodsPaymentMethodDetachParams ): Promise { return this.ky - .post(`/v1/payment_methods/${params.payment_method}/detach`) + .post(`/v1/payment_methods/${params['payment_method']}/detach`) .json() } @@ -67508,7 +67508,7 @@ on the Customer to the PaymentMethod’s ID.

.`, params: stripe.GetPayoutsPayoutParams ): Promise { return this.ky - .get(`/v1/payouts/${params.payout}`, { + .get(`/v1/payouts/${params['payout']}`, { searchParams: sanitizeSearchParams(pick(params, 'expand')) }) .json() @@ -67527,7 +67527,7 @@ on the Customer to the PaymentMethod’s ID.

.`, params: stripe.PostPayoutsPayoutParams ): Promise { return this.ky - .post(`/v1/payouts/${params.payout}`) + .post(`/v1/payouts/${params['payout']}`) .json() } @@ -67544,7 +67544,7 @@ on the Customer to the PaymentMethod’s ID.

.`, params: stripe.PostPayoutsPayoutCancelParams ): Promise { return this.ky - .post(`/v1/payouts/${params.payout}/cancel`) + .post(`/v1/payouts/${params['payout']}/cancel`) .json() } @@ -67564,7 +67564,7 @@ on the Customer to the PaymentMethod’s ID.

.`, params: stripe.PostPayoutsPayoutReverseParams ): Promise { return this.ky - .post(`/v1/payouts/${params.payout}/reverse`) + .post(`/v1/payouts/${params['payout']}/reverse`) .json() } @@ -67613,7 +67613,7 @@ on the Customer to the PaymentMethod’s ID.

.`, params: stripe.GetPlansPlanParams ): Promise { return this.ky - .get(`/v1/plans/${params.plan}`, { + .get(`/v1/plans/${params['plan']}`, { searchParams: sanitizeSearchParams(pick(params, 'expand')) }) .json() @@ -67632,7 +67632,7 @@ on the Customer to the PaymentMethod’s ID.

.`, params: stripe.PostPlansPlanParams ): Promise { return this.ky - .post(`/v1/plans/${params.plan}`) + .post(`/v1/plans/${params['plan']}`) .json() } @@ -67649,7 +67649,7 @@ on the Customer to the PaymentMethod’s ID.

.`, params: stripe.DeletePlansPlanParams ): Promise { return this.ky - .delete(`/v1/plans/${params.plan}`) + .delete(`/v1/plans/${params['plan']}`) .json() } @@ -67723,7 +67723,7 @@ to an hour behind during outages. Search functionality is not available to merch params: stripe.GetPricesPriceParams ): Promise { return this.ky - .get(`/v1/prices/${params.price}`, { + .get(`/v1/prices/${params['price']}`, { searchParams: sanitizeSearchParams(pick(params, 'expand')) }) .json() @@ -67742,7 +67742,7 @@ to an hour behind during outages. Search functionality is not available to merch params: stripe.PostPricesPriceParams ): Promise { return this.ky - .post(`/v1/prices/${params.price}`) + .post(`/v1/prices/${params['price']}`) .json() } @@ -67816,7 +67816,7 @@ to an hour behind during outages. Search functionality is not available to merch params: stripe.GetProductsIdParams ): Promise { return this.ky - .get(`/v1/products/${params.id}`, { + .get(`/v1/products/${params['id']}`, { searchParams: sanitizeSearchParams(pick(params, 'expand')) }) .json() @@ -67835,7 +67835,7 @@ to an hour behind during outages. Search functionality is not available to merch params: stripe.PostProductsIdParams ): Promise { return this.ky - .post(`/v1/products/${params.id}`) + .post(`/v1/products/${params['id']}`) .json() } @@ -67852,7 +67852,7 @@ to an hour behind during outages. Search functionality is not available to merch params: stripe.DeleteProductsIdParams ): Promise { return this.ky - .delete(`/v1/products/${params.id}`) + .delete(`/v1/products/${params['id']}`) .json() } @@ -67868,7 +67868,7 @@ to an hour behind during outages. Search functionality is not available to merch params: stripe.GetProductsProductFeaturesParams ): Promise { return this.ky - .get(`/v1/products/${params.product}/features`, { + .get(`/v1/products/${params['product']}/features`, { searchParams: sanitizeSearchParams( pick(params, 'ending_before', 'expand', 'limit', 'starting_after') ) @@ -67889,7 +67889,7 @@ to an hour behind during outages. Search functionality is not available to merch params: stripe.PostProductsProductFeaturesParams ): Promise { return this.ky - .post(`/v1/products/${params.product}/features`) + .post(`/v1/products/${params['product']}/features`) .json() } @@ -67906,7 +67906,7 @@ to an hour behind during outages. Search functionality is not available to merch params: stripe.GetProductsProductFeaturesIdParams ): Promise { return this.ky - .get(`/v1/products/${params.product}/features/${params.id}`, { + .get(`/v1/products/${params['product']}/features/${params['id']}`, { searchParams: sanitizeSearchParams(pick(params, 'expand')) }) .json() @@ -67924,7 +67924,7 @@ to an hour behind during outages. Search functionality is not available to merch params: stripe.DeleteProductsProductFeaturesIdParams ): Promise { return this.ky - .delete(`/v1/products/${params.product}/features/${params.id}`) + .delete(`/v1/products/${params['product']}/features/${params['id']}`) .json() } @@ -67976,7 +67976,7 @@ to an hour behind during outages. Search functionality is not available to merch params: stripe.GetPromotionCodesPromotionCodeParams ): Promise { return this.ky - .get(`/v1/promotion_codes/${params.promotion_code}`, { + .get(`/v1/promotion_codes/${params['promotion_code']}`, { searchParams: sanitizeSearchParams(pick(params, 'expand')) }) .json() @@ -67995,7 +67995,7 @@ to an hour behind during outages. Search functionality is not available to merch params: stripe.PostPromotionCodesPromotionCodeParams ): Promise { return this.ky - .post(`/v1/promotion_codes/${params.promotion_code}`) + .post(`/v1/promotion_codes/${params['promotion_code']}`) .json() } @@ -68044,7 +68044,7 @@ to an hour behind during outages. Search functionality is not available to merch params: stripe.GetQuotesQuoteParams ): Promise { return this.ky - .get(`/v1/quotes/${params.quote}`, { + .get(`/v1/quotes/${params['quote']}`, { searchParams: sanitizeSearchParams(pick(params, 'expand')) }) .json() @@ -68062,7 +68062,7 @@ to an hour behind during outages. Search functionality is not available to merch params: stripe.PostQuotesQuoteParams ): Promise { return this.ky - .post(`/v1/quotes/${params.quote}`) + .post(`/v1/quotes/${params['quote']}`) .json() } @@ -68078,7 +68078,7 @@ to an hour behind during outages. Search functionality is not available to merch params: stripe.PostQuotesQuoteAcceptParams ): Promise { return this.ky - .post(`/v1/quotes/${params.quote}/accept`) + .post(`/v1/quotes/${params['quote']}/accept`) .json() } @@ -68094,7 +68094,7 @@ to an hour behind during outages. Search functionality is not available to merch params: stripe.PostQuotesQuoteCancelParams ): Promise { return this.ky - .post(`/v1/quotes/${params.quote}/cancel`) + .post(`/v1/quotes/${params['quote']}/cancel`) .json() } @@ -68111,7 +68111,7 @@ to an hour behind during outages. Search functionality is not available to merch params: stripe.GetQuotesQuoteComputedUpfrontLineItemsParams ): Promise { return this.ky - .get(`/v1/quotes/${params.quote}/computed_upfront_line_items`, { + .get(`/v1/quotes/${params['quote']}/computed_upfront_line_items`, { searchParams: sanitizeSearchParams( pick(params, 'ending_before', 'expand', 'limit', 'starting_after') ) @@ -68131,7 +68131,7 @@ to an hour behind during outages. Search functionality is not available to merch params: stripe.PostQuotesQuoteFinalizeParams ): Promise { return this.ky - .post(`/v1/quotes/${params.quote}/finalize`) + .post(`/v1/quotes/${params['quote']}/finalize`) .json() } @@ -68148,7 +68148,7 @@ to an hour behind during outages. Search functionality is not available to merch params: stripe.GetQuotesQuoteLineItemsParams ): Promise { return this.ky - .get(`/v1/quotes/${params.quote}/line_items`, { + .get(`/v1/quotes/${params['quote']}/line_items`, { searchParams: sanitizeSearchParams( pick(params, 'ending_before', 'expand', 'limit', 'starting_after') ) @@ -68169,7 +68169,7 @@ to an hour behind during outages. Search functionality is not available to merch params: stripe.GetQuotesQuotePdfParams ): Promise { return this.ky - .get(`/v1/quotes/${params.quote}/pdf`, { + .get(`/v1/quotes/${params['quote']}/pdf`, { searchParams: sanitizeSearchParams(pick(params, 'expand')) }) .json() @@ -68209,7 +68209,7 @@ to an hour behind during outages. Search functionality is not available to merch params: stripe.GetRadarEarlyFraudWarningsEarlyFraudWarningParams ): Promise { return this.ky - .get(`/v1/radar/early_fraud_warnings/${params.early_fraud_warning}`, { + .get(`/v1/radar/early_fraud_warnings/${params['early_fraud_warning']}`, { searchParams: sanitizeSearchParams(pick(params, 'expand')) }) .json() @@ -68263,7 +68263,7 @@ to an hour behind during outages. Search functionality is not available to merch params: stripe.GetRadarValueListItemsItemParams ): Promise { return this.ky - .get(`/v1/radar/value_list_items/${params.item}`, { + .get(`/v1/radar/value_list_items/${params['item']}`, { searchParams: sanitizeSearchParams(pick(params, 'expand')) }) .json() @@ -68282,7 +68282,7 @@ to an hour behind during outages. Search functionality is not available to merch params: stripe.DeleteRadarValueListItemsItemParams ): Promise { return this.ky - .delete(`/v1/radar/value_list_items/${params.item}`) + .delete(`/v1/radar/value_list_items/${params['item']}`) .json() } @@ -68334,7 +68334,7 @@ to an hour behind during outages. Search functionality is not available to merch params: stripe.GetRadarValueListsValueListParams ): Promise { return this.ky - .get(`/v1/radar/value_lists/${params.value_list}`, { + .get(`/v1/radar/value_lists/${params['value_list']}`, { searchParams: sanitizeSearchParams(pick(params, 'expand')) }) .json() @@ -68353,7 +68353,7 @@ to an hour behind during outages. Search functionality is not available to merch params: stripe.PostRadarValueListsValueListParams ): Promise { return this.ky - .post(`/v1/radar/value_lists/${params.value_list}`) + .post(`/v1/radar/value_lists/${params['value_list']}`) .json() } @@ -68370,7 +68370,7 @@ to an hour behind during outages. Search functionality is not available to merch params: stripe.DeleteRadarValueListsValueListParams ): Promise { return this.ky - .delete(`/v1/radar/value_lists/${params.value_list}`) + .delete(`/v1/radar/value_lists/${params['value_list']}`) .json() } @@ -68439,7 +68439,7 @@ or when trying to refund more money than is left on a charge.

.`, params: stripe.GetRefundsRefundParams ): Promise { return this.ky - .get(`/v1/refunds/${params.refund}`, { + .get(`/v1/refunds/${params['refund']}`, { searchParams: sanitizeSearchParams(pick(params, 'expand')) }) .json() @@ -68461,7 +68461,7 @@ or when trying to refund more money than is left on a charge.

.`, params: stripe.PostRefundsRefundParams ): Promise { return this.ky - .post(`/v1/refunds/${params.refund}`) + .post(`/v1/refunds/${params['refund']}`) .json() } @@ -68481,7 +68481,7 @@ or when trying to refund more money than is left on a charge.

.`, params: stripe.PostRefundsRefundCancelParams ): Promise { return this.ky - .post(`/v1/refunds/${params.refund}/cancel`) + .post(`/v1/refunds/${params['refund']}/cancel`) .json() } @@ -68533,7 +68533,7 @@ or when trying to refund more money than is left on a charge.

.`, params: stripe.GetReportingReportRunsReportRunParams ): Promise { return this.ky - .get(`/v1/reporting/report_runs/${params.report_run}`, { + .get(`/v1/reporting/report_runs/${params['report_run']}`, { searchParams: sanitizeSearchParams(pick(params, 'expand')) }) .json() @@ -68570,7 +68570,7 @@ or when trying to refund more money than is left on a charge.

.`, params: stripe.GetReportingReportTypesReportTypeParams ): Promise { return this.ky - .get(`/v1/reporting/report_types/${params.report_type}`, { + .get(`/v1/reporting/report_types/${params['report_type']}`, { searchParams: sanitizeSearchParams(pick(params, 'expand')) }) .json() @@ -68607,7 +68607,7 @@ or when trying to refund more money than is left on a charge.

.`, params: stripe.GetReviewsReviewParams ): Promise { return this.ky - .get(`/v1/reviews/${params.review}`, { + .get(`/v1/reviews/${params['review']}`, { searchParams: sanitizeSearchParams(pick(params, 'expand')) }) .json() @@ -68626,7 +68626,7 @@ or when trying to refund more money than is left on a charge.

.`, params: stripe.PostReviewsReviewApproveParams ): Promise { return this.ky - .post(`/v1/reviews/${params.review}/approve`) + .post(`/v1/reviews/${params['review']}/approve`) .json() } @@ -68709,7 +68709,7 @@ it to collect any required permissions to charge the payment method later.

.` params: stripe.GetSetupIntentsIntentParams ): Promise { return this.ky - .get(`/v1/setup_intents/${params.intent}`, { + .get(`/v1/setup_intents/${params['intent']}`, { searchParams: sanitizeSearchParams( pick(params, 'client_secret', 'expand') ) @@ -68729,7 +68729,7 @@ it to collect any required permissions to charge the payment method later.

.` params: stripe.PostSetupIntentsIntentParams ): Promise { return this.ky - .post(`/v1/setup_intents/${params.intent}`) + .post(`/v1/setup_intents/${params['intent']}`) .json() } @@ -68749,7 +68749,7 @@ it to collect any required permissions to charge the payment method later.

.` params: stripe.PostSetupIntentsIntentCancelParams ): Promise { return this.ky - .post(`/v1/setup_intents/${params.intent}/cancel`) + .post(`/v1/setup_intents/${params['intent']}/cancel`) .json() } @@ -68791,7 +68791,7 @@ confirmation limit is reached.

.`, params: stripe.PostSetupIntentsIntentConfirmParams ): Promise { return this.ky - .post(`/v1/setup_intents/${params.intent}/confirm`) + .post(`/v1/setup_intents/${params['intent']}/confirm`) .json() } @@ -68807,7 +68807,7 @@ confirmation limit is reached.

.`, params: stripe.PostSetupIntentsIntentVerifyMicrodepositsParams ): Promise { return this.ky - .post(`/v1/setup_intents/${params.intent}/verify_microdeposits`) + .post(`/v1/setup_intents/${params['intent']}/verify_microdeposits`) .json() } @@ -68857,7 +68857,7 @@ confirmation limit is reached.

.`, params: stripe.GetShippingRatesShippingRateTokenParams ): Promise { return this.ky - .get(`/v1/shipping_rates/${params.shipping_rate_token}`, { + .get(`/v1/shipping_rates/${params['shipping_rate_token']}`, { searchParams: sanitizeSearchParams(pick(params, 'expand')) }) .json() @@ -68875,7 +68875,7 @@ confirmation limit is reached.

.`, params: stripe.PostShippingRatesShippingRateTokenParams ): Promise { return this.ky - .post(`/v1/shipping_rates/${params.shipping_rate_token}`) + .post(`/v1/shipping_rates/${params['shipping_rate_token']}`) .json() } @@ -68909,7 +68909,7 @@ confirmation limit is reached.

.`, params: stripe.GetSigmaScheduledQueryRunsScheduledQueryRunParams ): Promise { return this.ky - .get(`/v1/sigma/scheduled_query_runs/${params.scheduled_query_run}`, { + .get(`/v1/sigma/scheduled_query_runs/${params['scheduled_query_run']}`, { searchParams: sanitizeSearchParams(pick(params, 'expand')) }) .json() @@ -68942,7 +68942,7 @@ confirmation limit is reached.

.`, params: stripe.GetSourcesSourceParams ): Promise { return this.ky - .get(`/v1/sources/${params.source}`, { + .get(`/v1/sources/${params['source']}`, { searchParams: sanitizeSearchParams( pick(params, 'client_secret', 'expand') ) @@ -68966,7 +68966,7 @@ confirmation limit is reached.

.`, params: stripe.PostSourcesSourceParams ): Promise { return this.ky - .post(`/v1/sources/${params.source}`) + .post(`/v1/sources/${params['source']}`) .json() } @@ -68984,7 +68984,7 @@ confirmation limit is reached.

.`, ): Promise { return this.ky .get( - `/v1/sources/${params.source}/mandate_notifications/${params.mandate_notification}`, + `/v1/sources/${params['source']}/mandate_notifications/${params['mandate_notification']}`, { searchParams: sanitizeSearchParams(pick(params, 'expand')) } @@ -69004,7 +69004,7 @@ confirmation limit is reached.

.`, params: stripe.GetSourcesSourceSourceTransactionsParams ): Promise { return this.ky - .get(`/v1/sources/${params.source}/source_transactions`, { + .get(`/v1/sources/${params['source']}/source_transactions`, { searchParams: sanitizeSearchParams( pick(params, 'ending_before', 'expand', 'limit', 'starting_after') ) @@ -69027,7 +69027,7 @@ confirmation limit is reached.

.`, ): Promise { return this.ky .get( - `/v1/sources/${params.source}/source_transactions/${params.source_transaction}`, + `/v1/sources/${params['source']}/source_transactions/${params['source_transaction']}`, { searchParams: sanitizeSearchParams(pick(params, 'expand')) } @@ -69047,7 +69047,7 @@ confirmation limit is reached.

.`, params: stripe.PostSourcesSourceVerifyParams ): Promise { return this.ky - .post(`/v1/sources/${params.source}/verify`) + .post(`/v1/sources/${params['source']}/verify`) .json() } @@ -69099,7 +69099,7 @@ confirmation limit is reached.

.`, params: stripe.GetSubscriptionItemsItemParams ): Promise { return this.ky - .get(`/v1/subscription_items/${params.item}`, { + .get(`/v1/subscription_items/${params['item']}`, { searchParams: sanitizeSearchParams(pick(params, 'expand')) }) .json() @@ -69118,7 +69118,7 @@ confirmation limit is reached.

.`, params: stripe.PostSubscriptionItemsItemParams ): Promise { return this.ky - .post(`/v1/subscription_items/${params.item}`) + .post(`/v1/subscription_items/${params['item']}`) .json() } @@ -69135,7 +69135,7 @@ confirmation limit is reached.

.`, params: stripe.DeleteSubscriptionItemsItemParams ): Promise { return this.ky - .delete(`/v1/subscription_items/${params.item}`) + .delete(`/v1/subscription_items/${params['item']}`) .json() } @@ -69157,7 +69157,7 @@ confirmation limit is reached.

.`, ): Promise { return this.ky .get( - `/v1/subscription_items/${params.subscription_item}/usage_record_summaries`, + `/v1/subscription_items/${params['subscription_item']}/usage_record_summaries`, { searchParams: sanitizeSearchParams( pick(params, 'ending_before', 'expand', 'limit', 'starting_after') @@ -69193,7 +69193,7 @@ confirmation limit is reached.

.`, ): Promise { return this.ky .post( - `/v1/subscription_items/${params.subscription_item}/usage_records` + `/v1/subscription_items/${params['subscription_item']}/usage_records` ) .json() } @@ -69246,7 +69246,7 @@ confirmation limit is reached.

.`, params: stripe.GetSubscriptionSchedulesScheduleParams ): Promise { return this.ky - .get(`/v1/subscription_schedules/${params.schedule}`, { + .get(`/v1/subscription_schedules/${params['schedule']}`, { searchParams: sanitizeSearchParams(pick(params, 'expand')) }) .json() @@ -69264,7 +69264,7 @@ confirmation limit is reached.

.`, params: stripe.PostSubscriptionSchedulesScheduleParams ): Promise { return this.ky - .post(`/v1/subscription_schedules/${params.schedule}`) + .post(`/v1/subscription_schedules/${params['schedule']}`) .json() } @@ -69281,7 +69281,7 @@ confirmation limit is reached.

.`, params: stripe.PostSubscriptionSchedulesScheduleCancelParams ): Promise { return this.ky - .post(`/v1/subscription_schedules/${params.schedule}/cancel`) + .post(`/v1/subscription_schedules/${params['schedule']}/cancel`) .json() } @@ -69298,7 +69298,7 @@ confirmation limit is reached.

.`, params: stripe.PostSubscriptionSchedulesScheduleReleaseParams ): Promise { return this.ky - .post(`/v1/subscription_schedules/${params.schedule}/release`) + .post(`/v1/subscription_schedules/${params['schedule']}/release`) .json() } @@ -69385,7 +69385,7 @@ to an hour behind during outages. Search functionality is not available to merch params: stripe.GetSubscriptionsSubscriptionExposedIdParams ): Promise { return this.ky - .get(`/v1/subscriptions/${params.subscription_exposed_id}`, { + .get(`/v1/subscriptions/${params['subscription_exposed_id']}`, { searchParams: sanitizeSearchParams(pick(params, 'expand')) }) .json() @@ -69443,7 +69443,7 @@ To preview how the proration is calculated, use the { return this.ky - .delete(`/v1/subscriptions/${params.subscription_exposed_id}`) + .delete(`/v1/subscriptions/${params['subscription_exposed_id']}`) .json() } @@ -69485,7 +69485,7 @@ To preview how the proration is calculated, use the { return this.ky - .post(`/v1/subscriptions/${params.subscription}/resume`) + .post(`/v1/subscriptions/${params['subscription']}/resume`) .json() } @@ -69536,7 +69536,7 @@ To preview how the proration is calculated, use the { return this.ky - .get(`/v1/tax/calculations/${params.calculation}/line_items`, { + .get(`/v1/tax/calculations/${params['calculation']}/line_items`, { searchParams: sanitizeSearchParams( pick(params, 'ending_before', 'expand', 'limit', 'starting_after') ) @@ -69610,7 +69610,7 @@ To preview how the proration is calculated, use the { return this.ky - .post(`/v1/tax/registrations/${params.id}`) + .post(`/v1/tax/registrations/${params['id']}`) .json() } @@ -69717,7 +69717,7 @@ To preview how the proration is calculated, use the { return this.ky - .get(`/v1/tax/transactions/${params.transaction}/line_items`, { + .get(`/v1/tax/transactions/${params['transaction']}/line_items`, { searchParams: sanitizeSearchParams( pick(params, 'ending_before', 'expand', 'limit', 'starting_after') ) @@ -69776,7 +69776,7 @@ To preview how the proration is calculated, use the { return this.ky - .get(`/v1/tax_ids/${params.id}`, { + .get(`/v1/tax_ids/${params['id']}`, { searchParams: sanitizeSearchParams(pick(params, 'expand')) }) .json() @@ -69847,7 +69847,7 @@ To preview how the proration is calculated, use the { return this.ky - .get(`/v1/tax_rates/${params.tax_rate}`, { + .get(`/v1/tax_rates/${params['tax_rate']}`, { searchParams: sanitizeSearchParams(pick(params, 'expand')) }) .json() @@ -69914,7 +69914,7 @@ To preview how the proration is calculated, use the { return this.ky - .get(`/v1/terminal/configurations/${params.configuration}`, { + .get(`/v1/terminal/configurations/${params['configuration']}`, { searchParams: sanitizeSearchParams(pick(params, 'expand')) }) .json() @@ -69983,7 +69983,7 @@ To preview how the proration is calculated, use the { return this.ky - .delete(`/v1/terminal/configurations/${params.configuration}`) + .delete(`/v1/terminal/configurations/${params['configuration']}`) .json() } @@ -70068,7 +70068,7 @@ For further details, including which address fields are required in each country params: stripe.GetTerminalLocationsLocationParams ): Promise { return this.ky - .get(`/v1/terminal/locations/${params.location}`, { + .get(`/v1/terminal/locations/${params['location']}`, { searchParams: sanitizeSearchParams(pick(params, 'expand')) }) .json() @@ -70087,7 +70087,7 @@ For further details, including which address fields are required in each country params: stripe.PostTerminalLocationsLocationParams ): Promise { return this.ky - .post(`/v1/terminal/locations/${params.location}`) + .post(`/v1/terminal/locations/${params['location']}`) .json() } @@ -70103,7 +70103,7 @@ For further details, including which address fields are required in each country params: stripe.DeleteTerminalLocationsLocationParams ): Promise { return this.ky - .delete(`/v1/terminal/locations/${params.location}`) + .delete(`/v1/terminal/locations/${params['location']}`) .json() } @@ -70153,7 +70153,7 @@ For further details, including which address fields are required in each country params: stripe.GetTerminalReadersReaderParams ): Promise { return this.ky - .get(`/v1/terminal/readers/${params.reader}`, { + .get(`/v1/terminal/readers/${params['reader']}`, { searchParams: sanitizeSearchParams(pick(params, 'expand')) }) .json() @@ -70172,7 +70172,7 @@ For further details, including which address fields are required in each country params: stripe.PostTerminalReadersReaderParams ): Promise { return this.ky - .post(`/v1/terminal/readers/${params.reader}`) + .post(`/v1/terminal/readers/${params['reader']}`) .json() } @@ -70188,7 +70188,7 @@ For further details, including which address fields are required in each country params: stripe.DeleteTerminalReadersReaderParams ): Promise { return this.ky - .delete(`/v1/terminal/readers/${params.reader}`) + .delete(`/v1/terminal/readers/${params['reader']}`) .json() } @@ -70204,7 +70204,7 @@ For further details, including which address fields are required in each country params: stripe.PostTerminalReadersReaderCancelActionParams ): Promise { return this.ky - .post(`/v1/terminal/readers/${params.reader}/cancel_action`) + .post(`/v1/terminal/readers/${params['reader']}/cancel_action`) .json() } @@ -70221,7 +70221,7 @@ For further details, including which address fields are required in each country params: stripe.PostTerminalReadersReaderProcessPaymentIntentParams ): Promise { return this.ky - .post(`/v1/terminal/readers/${params.reader}/process_payment_intent`) + .post(`/v1/terminal/readers/${params['reader']}/process_payment_intent`) .json() } @@ -70237,7 +70237,7 @@ For further details, including which address fields are required in each country params: stripe.PostTerminalReadersReaderProcessSetupIntentParams ): Promise { return this.ky - .post(`/v1/terminal/readers/${params.reader}/process_setup_intent`) + .post(`/v1/terminal/readers/${params['reader']}/process_setup_intent`) .json() } @@ -70253,7 +70253,7 @@ For further details, including which address fields are required in each country params: stripe.PostTerminalReadersReaderRefundPaymentParams ): Promise { return this.ky - .post(`/v1/terminal/readers/${params.reader}/refund_payment`) + .post(`/v1/terminal/readers/${params['reader']}/refund_payment`) .json() } @@ -70269,7 +70269,7 @@ For further details, including which address fields are required in each country params: stripe.PostTerminalReadersReaderSetReaderDisplayParams ): Promise { return this.ky - .post(`/v1/terminal/readers/${params.reader}/set_reader_display`) + .post(`/v1/terminal/readers/${params['reader']}/set_reader_display`) .json() } @@ -70304,7 +70304,7 @@ For further details, including which address fields are required in each country ): Promise { return this.ky .post( - `/v1/test_helpers/customers/${params.customer}/fund_cash_balance` + `/v1/test_helpers/customers/${params['customer']}/fund_cash_balance` ) .json() } @@ -70339,7 +70339,7 @@ For further details, including which address fields are required in each country ): Promise { return this.ky .post( - `/v1/test_helpers/issuing/authorizations/${params.authorization}/capture` + `/v1/test_helpers/issuing/authorizations/${params['authorization']}/capture` ) .json() } @@ -70358,7 +70358,7 @@ For further details, including which address fields are required in each country ): Promise { return this.ky .post( - `/v1/test_helpers/issuing/authorizations/${params.authorization}/expire` + `/v1/test_helpers/issuing/authorizations/${params['authorization']}/expire` ) .json() } @@ -70378,7 +70378,7 @@ For further details, including which address fields are required in each country ): Promise { return this.ky .post( - `/v1/test_helpers/issuing/authorizations/${params.authorization}/finalize_amount` + `/v1/test_helpers/issuing/authorizations/${params['authorization']}/finalize_amount` ) .json() } @@ -70398,7 +70398,7 @@ For further details, including which address fields are required in each country ): Promise { return this.ky .post( - `/v1/test_helpers/issuing/authorizations/${params.authorization}/fraud_challenges/respond` + `/v1/test_helpers/issuing/authorizations/${params['authorization']}/fraud_challenges/respond` ) .json() } @@ -70417,7 +70417,7 @@ For further details, including which address fields are required in each country ): Promise { return this.ky .post( - `/v1/test_helpers/issuing/authorizations/${params.authorization}/increment` + `/v1/test_helpers/issuing/authorizations/${params['authorization']}/increment` ) .json() } @@ -70436,7 +70436,7 @@ For further details, including which address fields are required in each country ): Promise { return this.ky .post( - `/v1/test_helpers/issuing/authorizations/${params.authorization}/reverse` + `/v1/test_helpers/issuing/authorizations/${params['authorization']}/reverse` ) .json() } @@ -70455,7 +70455,7 @@ For further details, including which address fields are required in each country params: stripe.PostTestHelpersIssuingCardsCardShippingDeliverParams ): Promise { return this.ky - .post(`/v1/test_helpers/issuing/cards/${params.card}/shipping/deliver`) + .post(`/v1/test_helpers/issuing/cards/${params['card']}/shipping/deliver`) .json() } @@ -70472,7 +70472,7 @@ For further details, including which address fields are required in each country params: stripe.PostTestHelpersIssuingCardsCardShippingFailParams ): Promise { return this.ky - .post(`/v1/test_helpers/issuing/cards/${params.card}/shipping/fail`) + .post(`/v1/test_helpers/issuing/cards/${params['card']}/shipping/fail`) .json() } @@ -70490,7 +70490,7 @@ For further details, including which address fields are required in each country params: stripe.PostTestHelpersIssuingCardsCardShippingReturnParams ): Promise { return this.ky - .post(`/v1/test_helpers/issuing/cards/${params.card}/shipping/return`) + .post(`/v1/test_helpers/issuing/cards/${params['card']}/shipping/return`) .json() } @@ -70507,7 +70507,7 @@ For further details, including which address fields are required in each country params: stripe.PostTestHelpersIssuingCardsCardShippingShipParams ): Promise { return this.ky - .post(`/v1/test_helpers/issuing/cards/${params.card}/shipping/ship`) + .post(`/v1/test_helpers/issuing/cards/${params['card']}/shipping/ship`) .json() } @@ -70525,7 +70525,7 @@ For further details, including which address fields are required in each country params: stripe.PostTestHelpersIssuingCardsCardShippingSubmitParams ): Promise { return this.ky - .post(`/v1/test_helpers/issuing/cards/${params.card}/shipping/submit`) + .post(`/v1/test_helpers/issuing/cards/${params['card']}/shipping/submit`) .json() } @@ -70544,7 +70544,7 @@ For further details, including which address fields are required in each country ): Promise { return this.ky .post( - `/v1/test_helpers/issuing/personalization_designs/${params.personalization_design}/activate` + `/v1/test_helpers/issuing/personalization_designs/${params['personalization_design']}/activate` ) .json() } @@ -70564,7 +70564,7 @@ For further details, including which address fields are required in each country ): Promise { return this.ky .post( - `/v1/test_helpers/issuing/personalization_designs/${params.personalization_design}/deactivate` + `/v1/test_helpers/issuing/personalization_designs/${params['personalization_design']}/deactivate` ) .json() } @@ -70584,7 +70584,7 @@ For further details, including which address fields are required in each country ): Promise { return this.ky .post( - `/v1/test_helpers/issuing/personalization_designs/${params.personalization_design}/reject` + `/v1/test_helpers/issuing/personalization_designs/${params['personalization_design']}/reject` ) .json() } @@ -70620,7 +70620,7 @@ For further details, including which address fields are required in each country ): Promise { return this.ky .post( - `/v1/test_helpers/issuing/settlements/${params.settlement}/complete` + `/v1/test_helpers/issuing/settlements/${params['settlement']}/complete` ) .json() } @@ -70675,7 +70675,7 @@ For further details, including which address fields are required in each country ): Promise { return this.ky .post( - `/v1/test_helpers/issuing/transactions/${params.transaction}/refund` + `/v1/test_helpers/issuing/transactions/${params['transaction']}/refund` ) .json() } @@ -70693,7 +70693,7 @@ For further details, including which address fields are required in each country params: stripe.PostTestHelpersRefundsRefundExpireParams ): Promise { return this.ky - .post(`/v1/test_helpers/refunds/${params.refund}/expire`) + .post(`/v1/test_helpers/refunds/${params['refund']}/expire`) .json() } @@ -70712,7 +70712,7 @@ For further details, including which address fields are required in each country ): Promise { return this.ky .post( - `/v1/test_helpers/terminal/readers/${params.reader}/present_payment_method` + `/v1/test_helpers/terminal/readers/${params['reader']}/present_payment_method` ) .json() } @@ -70764,7 +70764,7 @@ For further details, including which address fields are required in each country params: stripe.GetTestHelpersTestClocksTestClockParams ): Promise { return this.ky - .get(`/v1/test_helpers/test_clocks/${params.test_clock}`, { + .get(`/v1/test_helpers/test_clocks/${params['test_clock']}`, { searchParams: sanitizeSearchParams(pick(params, 'expand')) }) .json() @@ -70782,7 +70782,7 @@ For further details, including which address fields are required in each country params: stripe.DeleteTestHelpersTestClocksTestClockParams ): Promise { return this.ky - .delete(`/v1/test_helpers/test_clocks/${params.test_clock}`) + .delete(`/v1/test_helpers/test_clocks/${params['test_clock']}`) .json() } @@ -70799,7 +70799,7 @@ For further details, including which address fields are required in each country params: stripe.PostTestHelpersTestClocksTestClockAdvanceParams ): Promise { return this.ky - .post(`/v1/test_helpers/test_clocks/${params.test_clock}/advance`) + .post(`/v1/test_helpers/test_clocks/${params['test_clock']}/advance`) .json() } @@ -70817,7 +70817,7 @@ For further details, including which address fields are required in each country params: stripe.PostTestHelpersTreasuryInboundTransfersIdFailParams ): Promise { return this.ky - .post(`/v1/test_helpers/treasury/inbound_transfers/${params.id}/fail`) + .post(`/v1/test_helpers/treasury/inbound_transfers/${params['id']}/fail`) .json() } @@ -70836,7 +70836,7 @@ For further details, including which address fields are required in each country ): Promise { return this.ky .post( - `/v1/test_helpers/treasury/inbound_transfers/${params.id}/return` + `/v1/test_helpers/treasury/inbound_transfers/${params['id']}/return` ) .json() } @@ -70856,7 +70856,7 @@ For further details, including which address fields are required in each country ): Promise { return this.ky .post( - `/v1/test_helpers/treasury/inbound_transfers/${params.id}/succeed` + `/v1/test_helpers/treasury/inbound_transfers/${params['id']}/succeed` ) .json() } @@ -70874,7 +70874,7 @@ For further details, including which address fields are required in each country params: stripe.PostTestHelpersTreasuryOutboundPaymentsIdParams ): Promise { return this.ky - .post(`/v1/test_helpers/treasury/outbound_payments/${params.id}`) + .post(`/v1/test_helpers/treasury/outbound_payments/${params['id']}`) .json() } @@ -70892,7 +70892,7 @@ For further details, including which address fields are required in each country params: stripe.PostTestHelpersTreasuryOutboundPaymentsIdFailParams ): Promise { return this.ky - .post(`/v1/test_helpers/treasury/outbound_payments/${params.id}/fail`) + .post(`/v1/test_helpers/treasury/outbound_payments/${params['id']}/fail`) .json() } @@ -70910,7 +70910,7 @@ For further details, including which address fields are required in each country params: stripe.PostTestHelpersTreasuryOutboundPaymentsIdPostParams ): Promise { return this.ky - .post(`/v1/test_helpers/treasury/outbound_payments/${params.id}/post`) + .post(`/v1/test_helpers/treasury/outbound_payments/${params['id']}/post`) .json() } @@ -70929,7 +70929,7 @@ For further details, including which address fields are required in each country ): Promise { return this.ky .post( - `/v1/test_helpers/treasury/outbound_payments/${params.id}/return` + `/v1/test_helpers/treasury/outbound_payments/${params['id']}/return` ) .json() } @@ -70949,7 +70949,7 @@ For further details, including which address fields are required in each country ): Promise { return this.ky .post( - `/v1/test_helpers/treasury/outbound_transfers/${params.outbound_transfer}` + `/v1/test_helpers/treasury/outbound_transfers/${params['outbound_transfer']}` ) .json() } @@ -70969,7 +70969,7 @@ For further details, including which address fields are required in each country ): Promise { return this.ky .post( - `/v1/test_helpers/treasury/outbound_transfers/${params.outbound_transfer}/fail` + `/v1/test_helpers/treasury/outbound_transfers/${params['outbound_transfer']}/fail` ) .json() } @@ -70989,7 +70989,7 @@ For further details, including which address fields are required in each country ): Promise { return this.ky .post( - `/v1/test_helpers/treasury/outbound_transfers/${params.outbound_transfer}/post` + `/v1/test_helpers/treasury/outbound_transfers/${params['outbound_transfer']}/post` ) .json() } @@ -71009,7 +71009,7 @@ For further details, including which address fields are required in each country ): Promise { return this.ky .post( - `/v1/test_helpers/treasury/outbound_transfers/${params.outbound_transfer}/return` + `/v1/test_helpers/treasury/outbound_transfers/${params['outbound_transfer']}/return` ) .json() } @@ -71076,7 +71076,7 @@ You can use this token with any v1 API method in place of a bank account diction params: stripe.GetTokensTokenParams ): Promise { return this.ky - .get(`/v1/tokens/${params.token}`, { + .get(`/v1/tokens/${params['token']}`, { searchParams: sanitizeSearchParams(pick(params, 'expand')) }) .json() @@ -71127,7 +71127,7 @@ You can use this token with any v1 API method in place of a bank account diction params: stripe.GetTopupsTopupParams ): Promise { return this.ky - .get(`/v1/topups/${params.topup}`, { + .get(`/v1/topups/${params['topup']}`, { searchParams: sanitizeSearchParams(pick(params, 'expand')) }) .json() @@ -71146,7 +71146,7 @@ You can use this token with any v1 API method in place of a bank account diction params: stripe.PostTopupsTopupParams ): Promise { return this.ky - .post(`/v1/topups/${params.topup}`) + .post(`/v1/topups/${params['topup']}`) .json() } @@ -71163,7 +71163,7 @@ You can use this token with any v1 API method in place of a bank account diction params: stripe.PostTopupsTopupCancelParams ): Promise { return this.ky - .post(`/v1/topups/${params.topup}/cancel`) + .post(`/v1/topups/${params['topup']}/cancel`) .json() } @@ -71214,7 +71214,7 @@ You can use this token with any v1 API method in place of a bank account diction params: stripe.GetTransfersIdReversalsParams ): Promise { return this.ky - .get(`/v1/transfers/${params.id}/reversals`, { + .get(`/v1/transfers/${params['id']}/reversals`, { searchParams: sanitizeSearchParams( pick(params, 'ending_before', 'expand', 'limit', 'starting_after') ) @@ -71242,7 +71242,7 @@ You can use this token with any v1 API method in place of a bank account diction params: stripe.PostTransfersIdReversalsParams ): Promise { return this.ky - .post(`/v1/transfers/${params.id}/reversals`) + .post(`/v1/transfers/${params['id']}/reversals`) .json() } @@ -71259,7 +71259,7 @@ You can use this token with any v1 API method in place of a bank account diction params: stripe.GetTransfersTransferParams ): Promise { return this.ky - .get(`/v1/transfers/${params.transfer}`, { + .get(`/v1/transfers/${params['transfer']}`, { searchParams: sanitizeSearchParams(pick(params, 'expand')) }) .json() @@ -71281,7 +71281,7 @@ You can use this token with any v1 API method in place of a bank account diction params: stripe.PostTransfersTransferParams ): Promise { return this.ky - .post(`/v1/transfers/${params.transfer}`) + .post(`/v1/transfers/${params['transfer']}`) .json() } @@ -71298,7 +71298,7 @@ You can use this token with any v1 API method in place of a bank account diction params: stripe.GetTransfersTransferReversalsIdParams ): Promise { return this.ky - .get(`/v1/transfers/${params.transfer}/reversals/${params.id}`, { + .get(`/v1/transfers/${params['transfer']}/reversals/${params['id']}`, { searchParams: sanitizeSearchParams(pick(params, 'expand')) }) .json() @@ -71320,7 +71320,7 @@ You can use this token with any v1 API method in place of a bank account diction params: stripe.PostTransfersTransferReversalsIdParams ): Promise { return this.ky - .post(`/v1/transfers/${params.transfer}/reversals/${params.id}`) + .post(`/v1/transfers/${params['transfer']}/reversals/${params['id']}`) .json() } @@ -71372,7 +71372,7 @@ You can use this token with any v1 API method in place of a bank account diction params: stripe.GetTreasuryCreditReversalsCreditReversalParams ): Promise { return this.ky - .get(`/v1/treasury/credit_reversals/${params.credit_reversal}`, { + .get(`/v1/treasury/credit_reversals/${params['credit_reversal']}`, { searchParams: sanitizeSearchParams(pick(params, 'expand')) }) .json() @@ -71425,7 +71425,7 @@ You can use this token with any v1 API method in place of a bank account diction params: stripe.GetTreasuryDebitReversalsDebitReversalParams ): Promise { return this.ky - .get(`/v1/treasury/debit_reversals/${params.debit_reversal}`, { + .get(`/v1/treasury/debit_reversals/${params['debit_reversal']}`, { searchParams: sanitizeSearchParams(pick(params, 'expand')) }) .json() @@ -71478,7 +71478,7 @@ You can use this token with any v1 API method in place of a bank account diction params: stripe.GetTreasuryFinancialAccountsFinancialAccountParams ): Promise { return this.ky - .get(`/v1/treasury/financial_accounts/${params.financial_account}`, { + .get(`/v1/treasury/financial_accounts/${params['financial_account']}`, { searchParams: sanitizeSearchParams(pick(params, 'expand')) }) .json() @@ -71497,7 +71497,7 @@ You can use this token with any v1 API method in place of a bank account diction params: stripe.PostTreasuryFinancialAccountsFinancialAccountParams ): Promise { return this.ky - .post(`/v1/treasury/financial_accounts/${params.financial_account}`) + .post(`/v1/treasury/financial_accounts/${params['financial_account']}`) .json() } @@ -71516,7 +71516,7 @@ You can use this token with any v1 API method in place of a bank account diction ): Promise { return this.ky .post( - `/v1/treasury/financial_accounts/${params.financial_account}/close` + `/v1/treasury/financial_accounts/${params['financial_account']}/close` ) .json() } @@ -71536,7 +71536,7 @@ You can use this token with any v1 API method in place of a bank account diction ): Promise { return this.ky .get( - `/v1/treasury/financial_accounts/${params.financial_account}/features`, + `/v1/treasury/financial_accounts/${params['financial_account']}/features`, { searchParams: sanitizeSearchParams(pick(params, 'expand')) } @@ -71559,7 +71559,7 @@ You can use this token with any v1 API method in place of a bank account diction ): Promise { return this.ky .post( - `/v1/treasury/financial_accounts/${params.financial_account}/features` + `/v1/treasury/financial_accounts/${params['financial_account']}/features` ) .json() } @@ -71612,7 +71612,7 @@ You can use this token with any v1 API method in place of a bank account diction params: stripe.GetTreasuryInboundTransfersIdParams ): Promise { return this.ky - .get(`/v1/treasury/inbound_transfers/${params.id}`, { + .get(`/v1/treasury/inbound_transfers/${params['id']}`, { searchParams: sanitizeSearchParams(pick(params, 'expand')) }) .json() @@ -71632,7 +71632,7 @@ You can use this token with any v1 API method in place of a bank account diction ): Promise { return this.ky .post( - `/v1/treasury/inbound_transfers/${params.inbound_transfer}/cancel` + `/v1/treasury/inbound_transfers/${params['inbound_transfer']}/cancel` ) .json() } @@ -71685,7 +71685,7 @@ You can use this token with any v1 API method in place of a bank account diction params: stripe.GetTreasuryOutboundPaymentsIdParams ): Promise { return this.ky - .get(`/v1/treasury/outbound_payments/${params.id}`, { + .get(`/v1/treasury/outbound_payments/${params['id']}`, { searchParams: sanitizeSearchParams(pick(params, 'expand')) }) .json() @@ -71703,7 +71703,7 @@ You can use this token with any v1 API method in place of a bank account diction params: stripe.PostTreasuryOutboundPaymentsIdCancelParams ): Promise { return this.ky - .post(`/v1/treasury/outbound_payments/${params.id}/cancel`) + .post(`/v1/treasury/outbound_payments/${params['id']}/cancel`) .json() } @@ -71755,7 +71755,7 @@ You can use this token with any v1 API method in place of a bank account diction params: stripe.GetTreasuryOutboundTransfersOutboundTransferParams ): Promise { return this.ky - .get(`/v1/treasury/outbound_transfers/${params.outbound_transfer}`, { + .get(`/v1/treasury/outbound_transfers/${params['outbound_transfer']}`, { searchParams: sanitizeSearchParams(pick(params, 'expand')) }) .json() @@ -71776,7 +71776,7 @@ You can use this token with any v1 API method in place of a bank account diction ): Promise { return this.ky .post( - `/v1/treasury/outbound_transfers/${params.outbound_transfer}/cancel` + `/v1/treasury/outbound_transfers/${params['outbound_transfer']}/cancel` ) .json() } @@ -71812,7 +71812,7 @@ You can use this token with any v1 API method in place of a bank account diction params: stripe.GetTreasuryReceivedCreditsIdParams ): Promise { return this.ky - .get(`/v1/treasury/received_credits/${params.id}`, { + .get(`/v1/treasury/received_credits/${params['id']}`, { searchParams: sanitizeSearchParams(pick(params, 'expand')) }) .json() @@ -71849,7 +71849,7 @@ You can use this token with any v1 API method in place of a bank account diction params: stripe.GetTreasuryReceivedDebitsIdParams ): Promise { return this.ky - .get(`/v1/treasury/received_debits/${params.id}`, { + .get(`/v1/treasury/received_debits/${params['id']}`, { searchParams: sanitizeSearchParams(pick(params, 'expand')) }) .json() @@ -71885,7 +71885,7 @@ You can use this token with any v1 API method in place of a bank account diction params: stripe.GetTreasuryTransactionEntriesIdParams ): Promise { return this.ky - .get(`/v1/treasury/transaction_entries/${params.id}`, { + .get(`/v1/treasury/transaction_entries/${params['id']}`, { searchParams: sanitizeSearchParams(pick(params, 'expand')) }) .json() @@ -71921,7 +71921,7 @@ You can use this token with any v1 API method in place of a bank account diction params: stripe.GetTreasuryTransactionsIdParams ): Promise { return this.ky - .get(`/v1/treasury/transactions/${params.id}`, { + .get(`/v1/treasury/transactions/${params['id']}`, { searchParams: sanitizeSearchParams(pick(params, 'expand')) }) .json() @@ -71974,7 +71974,7 @@ You can use this token with any v1 API method in place of a bank account diction params: stripe.GetWebhookEndpointsWebhookEndpointParams ): Promise { return this.ky - .get(`/v1/webhook_endpoints/${params.webhook_endpoint}`, { + .get(`/v1/webhook_endpoints/${params['webhook_endpoint']}`, { searchParams: sanitizeSearchParams(pick(params, 'expand')) }) .json() @@ -71993,7 +71993,7 @@ You can use this token with any v1 API method in place of a bank account diction params: stripe.PostWebhookEndpointsWebhookEndpointParams ): Promise { return this.ky - .post(`/v1/webhook_endpoints/${params.webhook_endpoint}`) + .post(`/v1/webhook_endpoints/${params['webhook_endpoint']}`) .json() } @@ -72010,7 +72010,7 @@ You can use this token with any v1 API method in place of a bank account diction params: stripe.DeleteWebhookEndpointsWebhookEndpointParams ): Promise { return this.ky - .delete(`/v1/webhook_endpoints/${params.webhook_endpoint}`) + .delete(`/v1/webhook_endpoints/${params['webhook_endpoint']}`) .json() } } diff --git a/packages/openapi-to-ts-client/src/utils.ts b/packages/openapi-to-ts-client/src/utils.ts index 7b20567..9330589 100644 --- a/packages/openapi-to-ts-client/src/utils.ts +++ b/packages/openapi-to-ts-client/src/utils.ts @@ -123,11 +123,9 @@ function createParserOverride({ const jsonSchemaToZodParserOverride: ParserOverride = (schema, _refs) => { if ('$ref' in schema) { const ref = schema.$ref as string - if (!ref) return + assert(ref, `Invalid schema: $ref not found for ${schema.$ref}`) const name = getComponentDisplayName(ref) - if (!name) return - if (type === name) { // TODO: Support recursive types. return `\n// TODO: Support recursive types for \`${name}Schema\`.\nz.any()`