diff --git a/legacy/packages/openapi-to-ts-client/fixtures/generated/stripe-client.ts b/legacy/packages/openapi-to-ts-client/fixtures/generated/stripe-client.ts index b71fa1ea..9e5465e8 100644 --- a/legacy/packages/openapi-to-ts-client/fixtures/generated/stripe-client.ts +++ b/legacy/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 ): Promiseamount_total
..`
params: stripe.PostClimateOrdersOrderCancelParams
): Promiseamount_total
..`
params: stripe.GetClimateProductsProductParams
): Promiseamount_total
..`
params: stripe.GetClimateSuppliersSupplierParams
): Promiseamount_total
..`
params: stripe.GetConfirmationTokensConfirmationTokenParams
): Promiseamount_total
..`
params: stripe.GetCountrySpecsCountryParams
): Promiseamount_total
..`
params: stripe.GetCouponsCouponParams
): Promiseamount_total
..`
params: stripe.PostCouponsCouponParams
): Promiseamount_total
..`
params: stripe.DeleteCouponsCouponParams
): Promisepost_payment_credit_notes_amount
depending on its status
params: stripe.GetCreditNotesCreditNoteLinesParams
): Promise {
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
params: stripe.GetCreditNotesIdParams
): Promise {
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
params: stripe.PostCreditNotesIdParams
): Promise {
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
params: stripe.PostCreditNotesIdVoidParams
): Promise {
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