Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API Updates #1344

Merged
merged 1 commit into from Feb 3, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's do the other languages as well for this change - looks like we missed it!

| '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