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 b8c668d commit be33310
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;

multibanco?: PaymentMethodConfiguration.Multibanco;

/**
Expand Down Expand Up @@ -987,6 +989,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 Multibanco {
/**
* 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;

/**
* Stripe users in Europe and the United States can accept Multibanco payments from customers in Portugal using [Sources](https://stripe.com/docs/sources)—a single integration path for creating payments using any supported method.
*/
Expand Down Expand Up @@ -735,6 +740,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 Multibanco {
/**
* Whether or not the payment method should be displayed.
Expand Down Expand Up @@ -1144,6 +1169,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;

/**
* Stripe users in Europe and the United States can accept Multibanco payments from customers in Portugal using [Sources](https://stripe.com/docs/sources)—a single integration path for creating payments using any supported method.
*/
Expand Down Expand Up @@ -1736,6 +1766,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 Multibanco {
/**
* Whether or not the payment method should be displayed.
Expand Down

0 comments on commit be33310

Please sign in to comment.