Skip to content

Commit

Permalink
Update generated code for v1322
Browse files Browse the repository at this point in the history
  • Loading branch information
stripe-openapi[bot] committed Nov 1, 2024
1 parent 9be6171 commit 119ab5a
Show file tree
Hide file tree
Showing 12 changed files with 50 additions and 23 deletions.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1321
v1322
10 changes: 5 additions & 5 deletions types/Charges.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -739,7 +739,7 @@ declare module 'stripe' {
authorization_code: string | null;

/**
* Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `mastercard`, `unionpay`, `visa`, or `unknown`.
* Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`.
*/
brand: string | null;

Expand Down Expand Up @@ -826,7 +826,7 @@ declare module 'stripe' {
multicapture?: Card.Multicapture;

/**
* Identifies which network this charge was processed on. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `interac`, `jcb`, `mastercard`, `unionpay`, `visa`, or `unknown`.
* Identifies which network this charge was processed on. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `interac`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`.
*/
network: string | null;

Expand Down Expand Up @@ -1133,7 +1133,7 @@ declare module 'stripe' {
amount_authorized: number | null;

/**
* Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `mastercard`, `unionpay`, `visa`, or `unknown`.
* Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`.
*/
brand: string | null;

Expand Down Expand Up @@ -1215,7 +1215,7 @@ declare module 'stripe' {
last4: string | null;

/**
* Identifies which network this charge was processed on. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `interac`, `jcb`, `mastercard`, `unionpay`, `visa`, or `unknown`.
* Identifies which network this charge was processed on. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `interac`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`.
*/
network: string | null;

Expand Down Expand Up @@ -1645,7 +1645,7 @@ declare module 'stripe' {
last4: string | null;

/**
* Identifies which network this charge was processed on. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `interac`, `jcb`, `mastercard`, `unionpay`, `visa`, or `unknown`.
* Identifies which network this charge was processed on. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `interac`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`.
*/
network: string | null;

Expand Down
8 changes: 4 additions & 4 deletions types/ConfirmationTokens.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ declare module 'stripe' {

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

Expand Down Expand Up @@ -504,7 +504,7 @@ declare module 'stripe' {
amount_authorized: number | null;

/**
* Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `mastercard`, `unionpay`, `visa`, or `unknown`.
* Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`.
*/
brand: string | null;

Expand Down Expand Up @@ -586,7 +586,7 @@ declare module 'stripe' {
last4: string | null;

/**
* Identifies which network this charge was processed on. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `interac`, `jcb`, `mastercard`, `unionpay`, `visa`, or `unknown`.
* Identifies which network this charge was processed on. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `interac`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`.
*/
network: string | null;

Expand Down Expand Up @@ -829,7 +829,7 @@ declare module 'stripe' {

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

Expand Down
2 changes: 1 addition & 1 deletion types/Disputes.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@ declare module 'stripe' {

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

Expand Down
3 changes: 2 additions & 1 deletion types/PaymentIntents.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ declare module 'stripe' {
payment_method: string | Stripe.PaymentMethod | null;

/**
* Information about the payment method configuration used for this PaymentIntent.
* Information about the [payment method configuration](https://stripe.com/docs/api/payment_method_configurations) used for this PaymentIntent.
*/
payment_method_configuration_details: PaymentIntent.PaymentMethodConfigurationDetails | null;

Expand Down Expand Up @@ -2145,6 +2145,7 @@ declare module 'stripe' {
| 'girocard'
| 'interac'
| 'jcb'
| 'link'
| 'mastercard'
| 'unionpay'
| 'unknown'
Expand Down
23 changes: 21 additions & 2 deletions types/PaymentIntentsResource.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ declare module 'stripe' {
payment_method?: string;

/**
* The ID of the payment method configuration to use with this PaymentIntent.
* The ID of the [payment method configuration](https://stripe.com/docs/api/payment_method_configurations) to use with this PaymentIntent.
*/
payment_method_configuration?: string;

Expand Down Expand Up @@ -2468,6 +2468,7 @@ declare module 'stripe' {
| 'girocard'
| 'interac'
| 'jcb'
| 'link'
| 'mastercard'
| 'unionpay'
| 'unknown'
Expand Down Expand Up @@ -3920,7 +3921,7 @@ declare module 'stripe' {
payment_method?: string;

/**
* The ID of the payment method configuration to use with this PaymentIntent.
* The ID of the [payment method configuration](https://stripe.com/docs/api/payment_method_configurations) to use with this PaymentIntent.
*/
payment_method_configuration?: string;

Expand Down Expand Up @@ -6223,6 +6224,7 @@ declare module 'stripe' {
| 'girocard'
| 'interac'
| 'jcb'
| 'link'
| 'mastercard'
| 'unionpay'
| 'unknown'
Expand Down Expand Up @@ -10733,6 +10735,7 @@ declare module 'stripe' {
| 'girocard'
| 'interac'
| 'jcb'
| 'link'
| 'mastercard'
| 'unionpay'
| 'unknown'
Expand Down Expand Up @@ -12188,6 +12191,11 @@ declare module 'stripe' {
*/
metadata?: Stripe.MetadataParam;

/**
* Payment method-specific configuration for this PaymentIntent.
*/
payment_method_options?: PaymentIntentIncrementAuthorizationParams.PaymentMethodOptions;

/**
* Text that appears on the customer's statement as the statement descriptor for a non-card or card charge. This value overrides the account's default statement descriptor. For information about requirements, including the 22-character limit, see [the Statement Descriptor docs](https://docs.stripe.com/get-started/account/statement-descriptors).
*/
Expand Down Expand Up @@ -12226,6 +12234,17 @@ declare module 'stripe' {
}
}

interface PaymentMethodOptions {
/**
* Configuration for any card payments attempted on this PaymentIntent.
*/
card?: Stripe.Emptyable<PaymentMethodOptions.Card>;
}

namespace PaymentMethodOptions {
interface Card {}
}

interface TransferData {
/**
* The amount that will be transferred automatically when a charge succeeds.
Expand Down
8 changes: 4 additions & 4 deletions types/PaymentMethods.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ declare module 'stripe' {

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

Expand Down Expand Up @@ -406,7 +406,7 @@ declare module 'stripe' {
amount_authorized: number | null;

/**
* Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `mastercard`, `unionpay`, `visa`, or `unknown`.
* Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`.
*/
brand: string | null;

Expand Down Expand Up @@ -488,7 +488,7 @@ declare module 'stripe' {
last4: string | null;

/**
* Identifies which network this charge was processed on. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `interac`, `jcb`, `mastercard`, `unionpay`, `visa`, or `unknown`.
* Identifies which network this charge was processed on. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `interac`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`.
*/
network: string | null;

Expand Down Expand Up @@ -731,7 +731,7 @@ declare module 'stripe' {

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

Expand Down
4 changes: 2 additions & 2 deletions types/SetupAttempts.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ declare module 'stripe' {

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

Expand Down Expand Up @@ -256,7 +256,7 @@ declare module 'stripe' {
last4: string | null;

/**
* Identifies which network this charge was processed on. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `interac`, `jcb`, `mastercard`, `unionpay`, `visa`, or `unknown`.
* Identifies which network this charge was processed on. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `interac`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`.
*/
network: string | null;

Expand Down
3 changes: 2 additions & 1 deletion types/SetupIntents.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ declare module 'stripe' {
payment_method: string | Stripe.PaymentMethod | null;

/**
* Information about the payment method configuration used for this Setup Intent.
* Information about the [payment method configuration](https://stripe.com/docs/api/payment_method_configurations) used for this Setup Intent.
*/
payment_method_configuration_details: SetupIntent.PaymentMethodConfigurationDetails | null;

Expand Down Expand Up @@ -747,6 +747,7 @@ declare module 'stripe' {
| 'girocard'
| 'interac'
| 'jcb'
| 'link'
| 'mastercard'
| 'unionpay'
| 'unknown'
Expand Down
7 changes: 5 additions & 2 deletions types/SetupIntentsResource.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ declare module 'stripe' {
payment_method?: string;

/**
* The ID of the payment method configuration to use with this SetupIntent.
* The ID of the [payment method configuration](https://stripe.com/docs/api/payment_method_configurations) to use with this SetupIntent.
*/
payment_method_configuration?: string;

Expand Down Expand Up @@ -1169,6 +1169,7 @@ declare module 'stripe' {
| 'girocard'
| 'interac'
| 'jcb'
| 'link'
| 'mastercard'
| 'unionpay'
| 'unknown'
Expand Down Expand Up @@ -1557,7 +1558,7 @@ declare module 'stripe' {
payment_method?: string;

/**
* The ID of the payment method configuration to use with this SetupIntent.
* The ID of the [payment method configuration](https://stripe.com/docs/api/payment_method_configurations) to use with this SetupIntent.
*/
payment_method_configuration?: string;

Expand Down Expand Up @@ -2567,6 +2568,7 @@ declare module 'stripe' {
| 'girocard'
| 'interac'
| 'jcb'
| 'link'
| 'mastercard'
| 'unionpay'
| 'unknown'
Expand Down Expand Up @@ -4014,6 +4016,7 @@ declare module 'stripe' {
| 'girocard'
| 'interac'
| 'jcb'
| 'link'
| 'mastercard'
| 'unionpay'
| 'unknown'
Expand Down
1 change: 1 addition & 0 deletions types/Subscriptions.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -580,6 +580,7 @@ declare module 'stripe' {
| 'girocard'
| 'interac'
| 'jcb'
| 'link'
| 'mastercard'
| 'unionpay'
| 'unknown'
Expand Down
2 changes: 2 additions & 0 deletions types/SubscriptionsResource.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -828,6 +828,7 @@ declare module 'stripe' {
| 'girocard'
| 'interac'
| 'jcb'
| 'link'
| 'mastercard'
| 'unionpay'
| 'unknown'
Expand Down Expand Up @@ -1880,6 +1881,7 @@ declare module 'stripe' {
| 'girocard'
| 'interac'
| 'jcb'
| 'link'
| 'mastercard'
| 'unionpay'
| 'unknown'
Expand Down

0 comments on commit 119ab5a

Please sign in to comment.