Skip to content

Commit

Permalink
Update generated code for v992
Browse files Browse the repository at this point in the history
  • Loading branch information
stripe-openapi[bot] committed Apr 25, 2024
1 parent 0b48b33 commit 2413fdc
Show file tree
Hide file tree
Showing 3 changed files with 87 additions and 1 deletion.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
@@ -1 +1 @@
v991
v992
36 changes: 36 additions & 0 deletions types/PaymentMethodConfigurations.d.ts
Expand Up @@ -99,6 +99,8 @@ declare module 'stripe' {
*/
livemode: boolean;

mobilepay?: PaymentMethodConfiguration.Mobilepay;

/**
* The configuration's name.
*/
Expand Down Expand Up @@ -985,6 +987,40 @@ declare module 'stripe' {
}
}

interface Mobilepay {
/**
* Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
*/
available: boolean;

display_preference: Mobilepay.DisplayPreference;
}

namespace Mobilepay {
interface DisplayPreference {
/**
* For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
*/
overridable: boolean | null;

/**
* The account's display preference.
*/
preference: DisplayPreference.Preference;

/**
* The effective display preference value.
*/
value: DisplayPreference.Value;
}

namespace DisplayPreference {
type Preference = 'none' | 'off' | 'on';

type Value = 'off' | 'on';
}
}

interface Oxxo {
/**
* Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
Expand Down
50 changes: 50 additions & 0 deletions types/PaymentMethodConfigurationsResource.d.ts
Expand Up @@ -138,6 +138,11 @@ declare module 'stripe' {
*/
link?: PaymentMethodConfigurationCreateParams.Link;

/**
* MobilePay is a [single-use](https://stripe.com/docs/payments/payment-methods#usage) card wallet payment method used in Denmark and Finland. It allows customers to [authenticate and approve](https://stripe.com/docs/payments/payment-methods#customer-actions) payments using the MobilePay app. Check this [page](https://stripe.com/docs/payments/mobilepay) for more details.
*/
mobilepay?: PaymentMethodConfigurationCreateParams.Mobilepay;

/**
* Configuration name.
*/
Expand Down Expand Up @@ -730,6 +735,26 @@ declare module 'stripe' {
}
}

interface Mobilepay {
/**
* Whether or not the payment method should be displayed.
*/
display_preference?: Mobilepay.DisplayPreference;
}

namespace Mobilepay {
interface DisplayPreference {
/**
* The account's preference for whether or not to display this payment method.
*/
preference?: DisplayPreference.Preference;
}

namespace DisplayPreference {
type Preference = 'none' | 'off' | 'on';
}
}

interface Oxxo {
/**
* Whether or not the payment method should be displayed.
Expand Down Expand Up @@ -1119,6 +1144,11 @@ declare module 'stripe' {
*/
link?: PaymentMethodConfigurationUpdateParams.Link;

/**
* MobilePay is a [single-use](https://stripe.com/docs/payments/payment-methods#usage) card wallet payment method used in Denmark and Finland. It allows customers to [authenticate and approve](https://stripe.com/docs/payments/payment-methods#customer-actions) payments using the MobilePay app. Check this [page](https://stripe.com/docs/payments/mobilepay) for more details.
*/
mobilepay?: PaymentMethodConfigurationUpdateParams.Mobilepay;

/**
* Configuration name.
*/
Expand Down Expand Up @@ -1706,6 +1736,26 @@ declare module 'stripe' {
}
}

interface Mobilepay {
/**
* Whether or not the payment method should be displayed.
*/
display_preference?: Mobilepay.DisplayPreference;
}

namespace Mobilepay {
interface DisplayPreference {
/**
* The account's preference for whether or not to display this payment method.
*/
preference?: DisplayPreference.Preference;
}

namespace DisplayPreference {
type Preference = 'none' | 'off' | 'on';
}
}

interface Oxxo {
/**
* Whether or not the payment method should be displayed.
Expand Down

0 comments on commit 2413fdc

Please sign in to comment.