Skip to content

Commit

Permalink
Update generated code (#1879)
Browse files Browse the repository at this point in the history
* Update generated code for v469

* Update generated code for v470

* Update generated code for v471

* Update generated code for v474

* Update generated code for v475

* Update generated code for v476

* Update generated code for v477

* Update generated code for v478

* Update generated code for v481

* Update generated code for v482

---------

Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
Co-authored-by: anniel-stripe <[email protected]>
  • Loading branch information
stripe-openapi[bot] and anniel-stripe authored Aug 24, 2023
1 parent 2452692 commit 247d651
Show file tree
Hide file tree
Showing 23 changed files with 206 additions and 21 deletions.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v468
v482
28 changes: 28 additions & 0 deletions types/BillingPortal/Sessions.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,12 +138,40 @@ declare module 'stripe' {
}

interface SubscriptionCancel {
/**
* Specify a retention strategy to be used in the cancellation flow.
*/
retention: SubscriptionCancel.Retention | null;

/**
* The ID of the subscription to be canceled.
*/
subscription: string;
}

namespace SubscriptionCancel {
interface Retention {
/**
* Configuration when `retention.type=coupon_offer`.
*/
coupon_offer: Retention.CouponOffer | null;

/**
* Type of retention strategy that will be used.
*/
type: 'coupon_offer';
}

namespace Retention {
interface CouponOffer {
/**
* The ID of the coupon to be offered.
*/
coupon: string;
}
}
}

interface SubscriptionUpdate {
/**
* The ID of the subscription to be updated.
Expand Down
28 changes: 28 additions & 0 deletions types/BillingPortal/SessionsResource.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,12 +105,40 @@ declare module 'stripe' {
}

interface SubscriptionCancel {
/**
* Specify a retention strategy to be used in the cancellation flow.
*/
retention?: SubscriptionCancel.Retention;

/**
* The ID of the subscription to be canceled.
*/
subscription: string;
}

namespace SubscriptionCancel {
interface Retention {
/**
* Configuration when `retention.type=coupon_offer`.
*/
coupon_offer: Retention.CouponOffer;

/**
* Type of retention strategy to use with the customer.
*/
type: 'coupon_offer';
}

namespace Retention {
interface CouponOffer {
/**
* The ID of the coupon to be offered.
*/
coupon: string;
}
}
}

interface SubscriptionUpdate {
/**
* The ID of the subscription to be updated.
Expand Down
2 changes: 1 addition & 1 deletion types/Cards.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ declare module 'stripe' {
/**
* Uniquely identifies this particular card number. You can use this attribute to check whether two customers who've signed up with you are using the same card number, for example. For payment methods that tokenize card information (Apple Pay, Google Pay), the tokenized number might be provided instead of the underlying card number.
*
* *Starting May 1, 2021, card fingerprint in India for Connect will change to allow two fingerprints for the same card --- one for India and one for the rest of the world.*
* *As of May 1, 2021, card fingerprint in India for Connect changed to allow two fingerprints for the same card---one for India and one for the rest of the world.*
*/
fingerprint?: string | null;

Expand Down
6 changes: 3 additions & 3 deletions types/Charges.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -709,7 +709,7 @@ declare module 'stripe' {
/**
* Uniquely identifies this particular card number. You can use this attribute to check whether two customers who've signed up with you are using the same card number, for example. For payment methods that tokenize card information (Apple Pay, Google Pay), the tokenized number might be provided instead of the underlying card number.
*
* *Starting May 1, 2021, card fingerprint in India for Connect will change to allow two fingerprints for the same card --- one for India and one for the rest of the world.*
* *As of May 1, 2021, card fingerprint in India for Connect changed to allow two fingerprints for the same card---one for India and one for the rest of the world.*
*/
fingerprint?: string | null;

Expand Down Expand Up @@ -1011,7 +1011,7 @@ declare module 'stripe' {
/**
* Uniquely identifies this particular card number. You can use this attribute to check whether two customers who've signed up with you are using the same card number, for example. For payment methods that tokenize card information (Apple Pay, Google Pay), the tokenized number might be provided instead of the underlying card number.
*
* *Starting May 1, 2021, card fingerprint in India for Connect will change to allow two fingerprints for the same card --- one for India and one for the rest of the world.*
* *As of May 1, 2021, card fingerprint in India for Connect changed to allow two fingerprints for the same card---one for India and one for the rest of the world.*
*/
fingerprint: string | null;

Expand Down Expand Up @@ -1369,7 +1369,7 @@ declare module 'stripe' {
/**
* Uniquely identifies this particular card number. You can use this attribute to check whether two customers who've signed up with you are using the same card number, for example. For payment methods that tokenize card information (Apple Pay, Google Pay), the tokenized number might be provided instead of the underlying card number.
*
* *Starting May 1, 2021, card fingerprint in India for Connect will change to allow two fingerprints for the same card --- one for India and one for the rest of the world.*
* *As of May 1, 2021, card fingerprint in India for Connect changed to allow two fingerprints for the same card---one for India and one for the rest of the world.*
*/
fingerprint: string | null;

Expand Down
5 changes: 5 additions & 0 deletions types/Checkout/Sessions.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1275,6 +1275,11 @@ declare module 'stripe' {
*/
permissions?: Array<FinancialConnections.Permission>;

/**
* Data features requested to be retrieved upon account creation.
*/
prefetch: Array<'balances'> | null;

/**
* For webview integrations only. Upon completing OAuth login in the native browser, the user will be redirected to this URL to return to your app.
*/
Expand Down
9 changes: 7 additions & 2 deletions types/Checkout/SessionsResource.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ declare module 'stripe' {
shipping_address_collection?: SessionCreateParams.ShippingAddressCollection;

/**
* The shipping rate options to apply to this Session.
* The shipping rate options to apply to this Session. Up to a maximum of 5.
*/
shipping_options?: Array<SessionCreateParams.ShippingOption>;

Expand Down Expand Up @@ -783,7 +783,7 @@ declare module 'stripe' {
transfer_data?: PaymentIntentData.TransferData;

/**
* A string that identifies the resulting payment as part of a group. See the PaymentIntents [use case for connected accounts](https://stripe.com/docs/payments/connected-accounts) for details.
* A string that identifies the resulting payment as part of a group. See the PaymentIntents [use case for connected accounts](https://stripe.com/docs/connect/separate-charges-and-transfers) for details.
*/
transfer_group?: string;
}
Expand Down Expand Up @@ -1524,6 +1524,11 @@ declare module 'stripe' {
* The list of permissions to request. If this parameter is passed, the `payment_method` permission must be included. Valid permissions include: `balances`, `ownership`, `payment_method`, and `transactions`.
*/
permissions?: Array<FinancialConnections.Permission>;

/**
* List of data features that you would like to retrieve upon account creation.
*/
prefetch?: Array<'balances'>;
}

namespace FinancialConnections {
Expand Down
5 changes: 5 additions & 0 deletions types/CustomerCashBalanceTransactions.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,11 @@ declare module 'stripe' {

namespace CustomerCashBalanceTransaction {
interface AdjustedForOverdraft {
/**
* The [Balance Transaction](docs/api/balance_transactions/object) that corresponds to funds taken out of your Stripe balance.
*/
balance_transaction: string | Stripe.BalanceTransaction;

/**
* The [Cash Balance Transaction](https://stripe.com/docs/api/cash_balance_transactions/object) that brought the customer balance negative, triggering the clawback of funds.
*/
Expand Down
28 changes: 28 additions & 0 deletions types/Disputes.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ declare module 'stripe' {
*/
payment_intent: string | Stripe.PaymentIntent | null;

payment_method_details?: Dispute.PaymentMethodDetails;

/**
* Reason given by cardholder for dispute. Possible values are `bank_cannot_process`, `check_returned`, `credit_not_processed`, `customer_initiated`, `debit_not_authorized`, `duplicate`, `fraudulent`, `general`, `incorrect_account_details`, `insufficient_funds`, `product_not_received`, `product_unacceptable`, `subscription_canceled`, or `unrecognized`. Read more about [dispute reasons](https://stripe.com/docs/disputes/categories).
*/
Expand Down Expand Up @@ -247,6 +249,32 @@ declare module 'stripe' {
submission_count: number;
}

interface PaymentMethodDetails {
/**
* Card specific dispute details.
*/
card: PaymentMethodDetails.Card | null;

/**
* Payment method type.
*/
type: 'card';
}

namespace PaymentMethodDetails {
interface Card {
/**
* Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `mastercard`, `unionpay`, `visa`, or `unknown`.
*/
brand: string;

/**
* The card network's specific dispute reason code, which maps to one of Stripe's primary dispute categories to simplify response guidance. The [Network code map](https://stripe.com/docs/disputes/categories#network-code-map) lists all available dispute reason codes by network.
*/
network_reason_code: string | null;
}
}

type Status =
| 'lost'
| 'needs_response'
Expand Down
7 changes: 7 additions & 0 deletions types/FinancialConnections/Sessions.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,11 @@ declare module 'stripe' {
*/
permissions: Array<Session.Permission>;

/**
* Data features requested to be retrieved upon account creation.
*/
prefetch: Array<Session.Prefetch> | null;

/**
* For webview integrations only. Upon completing OAuth login in the native browser, the user will be redirected to this URL to return to your app.
*/
Expand Down Expand Up @@ -84,6 +89,8 @@ declare module 'stripe' {
| 'ownership'
| 'payment_method'
| 'transactions';

type Prefetch = 'balances' | 'ownership';
}
}
}
Expand Down
7 changes: 7 additions & 0 deletions types/FinancialConnections/SessionsResource.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ declare module 'stripe' {
*/
filters?: SessionCreateParams.Filters;

/**
* List of data features that you would like to retrieve upon account creation.
*/
prefetch?: Array<SessionCreateParams.Prefetch>;

/**
* For webview integrations only. Upon completing OAuth login in the native browser, the user will be redirected to this URL to return to your app.
*/
Expand Down Expand Up @@ -66,6 +71,8 @@ declare module 'stripe' {
| 'ownership'
| 'payment_method'
| 'transactions';

type Prefetch = 'balances' | 'ownership';
}

interface SessionRetrieveParams {
Expand Down
5 changes: 5 additions & 0 deletions types/Invoices.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1025,6 +1025,11 @@ declare module 'stripe' {
* The list of permissions to request. The `payment_method` permission must be included.
*/
permissions?: Array<FinancialConnections.Permission>;

/**
* Data features requested to be retrieved upon account creation.
*/
prefetch: Array<'balances'> | null;
}

namespace FinancialConnections {
Expand Down
10 changes: 10 additions & 0 deletions types/InvoicesResource.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -398,6 +398,11 @@ declare module 'stripe' {
* The list of permissions to request. If this parameter is passed, the `payment_method` permission must be included. Valid permissions include: `balances`, `ownership`, `payment_method`, and `transactions`.
*/
permissions?: Array<FinancialConnections.Permission>;

/**
* List of data features that you would like to retrieve upon account creation.
*/
prefetch?: Array<'balances'>;
}

namespace FinancialConnections {
Expand Down Expand Up @@ -991,6 +996,11 @@ declare module 'stripe' {
* The list of permissions to request. If this parameter is passed, the `payment_method` permission must be included. Valid permissions include: `balances`, `ownership`, `payment_method`, and `transactions`.
*/
permissions?: Array<FinancialConnections.Permission>;

/**
* List of data features that you would like to retrieve upon account creation.
*/
prefetch?: Array<'balances'>;
}

namespace FinancialConnections {
Expand Down
7 changes: 6 additions & 1 deletion types/PaymentIntents.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ declare module 'stripe' {
transfer_data: PaymentIntent.TransferData | null;

/**
* A string that identifies the resulting payment as part of a group. See the PaymentIntents [use case for connected accounts](https://stripe.com/docs/payments/connected-accounts) for details.
* A string that identifies the resulting payment as part of a group. See the PaymentIntents [use case for connected accounts](https://stripe.com/docs/connect/separate-charges-and-transfers) for details.
*/
transfer_group: string | null;
}
Expand Down Expand Up @@ -1963,6 +1963,11 @@ declare module 'stripe' {
*/
permissions?: Array<FinancialConnections.Permission>;

/**
* Data features requested to be retrieved upon account creation.
*/
prefetch: Array<'balances'> | null;

/**
* For webview integrations only. Upon completing OAuth login in the native browser, the user will be redirected to this URL to return to your app.
*/
Expand Down
24 changes: 20 additions & 4 deletions types/PaymentIntentsResource.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ declare module 'stripe' {
/**
* This hash contains details about the Mandate to create. This parameter can only be used with [`confirm=true`](https://stripe.com/docs/api/payment_intents/create#create_payment_intent-confirm).
*/
mandate_data?: PaymentIntentCreateParams.MandateData;
mandate_data?: Stripe.Emptyable<PaymentIntentCreateParams.MandateData>;

/**
* Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
Expand Down Expand Up @@ -154,7 +154,7 @@ declare module 'stripe' {
transfer_data?: PaymentIntentCreateParams.TransferData;

/**
* A string that identifies the resulting payment as part of a group. See the PaymentIntents [use case for connected accounts](https://stripe.com/docs/payments/connected-accounts) for details.
* A string that identifies the resulting payment as part of a group. See the PaymentIntents [use case for connected accounts](https://stripe.com/docs/connect/separate-charges-and-transfers) for details.
*/
transfer_group?: string;

Expand Down Expand Up @@ -1903,6 +1903,11 @@ declare module 'stripe' {
*/
permissions?: Array<FinancialConnections.Permission>;

/**
* List of data features that you would like to retrieve upon account creation.
*/
prefetch?: Array<'balances'>;

/**
* For webview integrations only. Upon completing OAuth login in the native browser, the user will be redirected to this URL to return to your app.
*/
Expand Down Expand Up @@ -3825,6 +3830,11 @@ declare module 'stripe' {
*/
permissions?: Array<FinancialConnections.Permission>;

/**
* List of data features that you would like to retrieve upon account creation.
*/
prefetch?: Array<'balances'>;

/**
* For webview integrations only. Upon completing OAuth login in the native browser, the user will be redirected to this URL to return to your app.
*/
Expand Down Expand Up @@ -4066,9 +4076,10 @@ declare module 'stripe' {
/**
* This hash contains details about the Mandate to create
*/
mandate_data?:
mandate_data?: Stripe.Emptyable<
| PaymentIntentConfirmParams.MandateData1
| PaymentIntentConfirmParams.MandateData2;
| PaymentIntentConfirmParams.MandateData2
>;

/**
* Set to `true` to indicate that the customer is not in your checkout flow during this payment attempt, and therefore is unable to authenticate. This parameter is intended for scenarios where you collect card details and [charge them later](https://stripe.com/docs/payments/cards/charging-saved-cards).
Expand Down Expand Up @@ -5887,6 +5898,11 @@ declare module 'stripe' {
*/
permissions?: Array<FinancialConnections.Permission>;

/**
* List of data features that you would like to retrieve upon account creation.
*/
prefetch?: Array<'balances'>;

/**
* For webview integrations only. Upon completing OAuth login in the native browser, the user will be redirected to this URL to return to your app.
*/
Expand Down
Loading

0 comments on commit 247d651

Please sign in to comment.