Skip to content

Commit

Permalink
Merge pull request #1344 from stripe/latest-codegen
Browse files Browse the repository at this point in the history
API Updates
  • Loading branch information
yejia-stripe committed Feb 3, 2022
2 parents 7a9e181 + 5c441fa commit 62e6502
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
7 changes: 2 additions & 5 deletions types/2020-08-27/Checkout/Sessions.d.ts
Expand Up @@ -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;

Expand Down Expand Up @@ -1619,6 +1615,7 @@ declare module 'stripe' {
| 'acss_debit'
| 'afterpay_clearpay'
| 'alipay'
| 'au_becs_debit'
| 'bacs_debit'
| 'bancontact'
| 'boleto'
Expand Down
10 changes: 9 additions & 1 deletion types/2020-08-27/Refunds.d.ts
Expand Up @@ -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.
Expand All @@ -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;

Expand Down

0 comments on commit 62e6502

Please sign in to comment.