From 5c441fa4896e078262e638b3042f84f51c10345e Mon Sep 17 00:00:00 2001 From: Yejia Chen Date: Thu, 3 Feb 2022 15:03:10 -0800 Subject: [PATCH] Codegen for openapi 10fe9f5 --- types/2020-08-27/Checkout/Sessions.d.ts | 7 ++----- types/2020-08-27/Refunds.d.ts | 10 +++++++++- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/types/2020-08-27/Checkout/Sessions.d.ts b/types/2020-08-27/Checkout/Sessions.d.ts index 55b997d540..05a55caab1 100644 --- a/types/2020-08-27/Checkout/Sessions.d.ts +++ b/types/2020-08-27/Checkout/Sessions.d.ts @@ -1364,11 +1364,7 @@ declare module 'stripe' { interface PaymentIntentData { /** - * The amount of the application fee (if any) that will be requested to be applied to the payment and - * transferred to the application owner's Stripe account. The amount of the application fee collected - * will be capped at the total payment amount. To use an application fee, the request must be made on - * behalf of another account, using the `Stripe-Account` header or an OAuth key. For more information, - * see the PaymentIntents [use case for connected accounts](https://stripe.com/docs/payments/connected-accounts). + * The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner's Stripe account. The amount of the application fee collected will be capped at the total payment amount. For more information, see the PaymentIntents [use case for connected accounts](https://stripe.com/docs/payments/connected-accounts). */ application_fee_amount?: number; @@ -1619,6 +1615,7 @@ declare module 'stripe' { | 'acss_debit' | 'afterpay_clearpay' | 'alipay' + | 'au_becs_debit' | 'bacs_debit' | 'bancontact' | 'boleto' diff --git a/types/2020-08-27/Refunds.d.ts b/types/2020-08-27/Refunds.d.ts index 6a1d4048f0..b6016e300b 100644 --- a/types/2020-08-27/Refunds.d.ts +++ b/types/2020-08-27/Refunds.d.ts @@ -69,7 +69,7 @@ declare module 'stripe' { /** * Reason for the refund, either user-provided (`duplicate`, `fraudulent`, or `requested_by_customer`) or generated by Stripe internally (`expired_uncaptured_charge`). */ - reason: string | null; + reason: Refund.Reason | null; /** * This is the transaction number that appears on email receipts sent for this refund. @@ -92,6 +92,14 @@ declare module 'stripe' { transfer_reversal: string | Stripe.TransferReversal | null; } + namespace Refund { + type Reason = + | 'duplicate' + | 'expired_uncaptured_charge' + | 'fraudulent' + | 'requested_by_customer'; + } + interface RefundCreateParams { amount?: number;