From e0b43c6751aa500469318ddd6bf965c93524e3a7 Mon Sep 17 00:00:00 2001 From: Remi Jannel Date: Wed, 10 Jun 2020 09:54:44 -0700 Subject: [PATCH] Codegen for openapi 56aa36d --- types/2020-03-02/Charges.d.ts | 6 +-- types/2020-03-02/PaymentIntents.d.ts | 68 ++++++++++++++++++++++++++++ types/2020-03-02/PaymentMethods.d.ts | 17 +++++++ 3 files changed, 88 insertions(+), 3 deletions(-) diff --git a/types/2020-03-02/Charges.d.ts b/types/2020-03-02/Charges.d.ts index 6feb5f405f..fe58b75396 100644 --- a/types/2020-03-02/Charges.d.ts +++ b/types/2020-03-02/Charges.d.ts @@ -687,7 +687,7 @@ declare module 'stripe' { moto?: boolean | null; /** - * Identifies which network this charge was processed on. Can be `amex`, `diners`, `discover`, `interac`, `jcb`, `mastercard`, `unionpay`, `visa`, or `unknown`. + * Identifies which network this charge was processed on. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `interac`, `jcb`, `mastercard`, `unionpay`, `visa`, or `unknown`. */ network: string | null; @@ -942,7 +942,7 @@ declare module 'stripe' { last4: string | null; /** - * Identifies which network this charge was processed on. Can be `amex`, `diners`, `discover`, `interac`, `jcb`, `mastercard`, `unionpay`, `visa`, or `unknown`. + * Identifies which network this charge was processed on. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `interac`, `jcb`, `mastercard`, `unionpay`, `visa`, or `unknown`. */ network: string | null; @@ -1182,7 +1182,7 @@ declare module 'stripe' { last4: string | null; /** - * Identifies which network this charge was processed on. Can be `amex`, `diners`, `discover`, `interac`, `jcb`, `mastercard`, `unionpay`, `visa`, or `unknown`. + * Identifies which network this charge was processed on. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `interac`, `jcb`, `mastercard`, `unionpay`, `visa`, or `unknown`. */ network: string | null; diff --git a/types/2020-03-02/PaymentIntents.d.ts b/types/2020-03-02/PaymentIntents.d.ts index d4fab4192a..06ac923b45 100644 --- a/types/2020-03-02/PaymentIntents.d.ts +++ b/types/2020-03-02/PaymentIntents.d.ts @@ -371,6 +371,11 @@ declare module 'stripe' { */ installments: Card.Installments | null; + /** + * Selected network to process this PaymentIntent on. Depends on the available networks of the card attached to the PaymentIntent. Can be only set confirm-time. + */ + network: Card.Network | null; + /** * We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. Permitted values include: `automatic` or `any`. If not provided, defaults to `automatic`. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine. */ @@ -433,6 +438,18 @@ declare module 'stripe' { } } + type Network = + | 'amex' + | 'cartes_bancaires' + | 'diners' + | 'discover' + | 'interac' + | 'jcb' + | 'mastercard' + | 'unionpay' + | 'unknown' + | 'visa'; + type RequestThreeDSecure = 'any' | 'automatic' | 'challenge_only'; } } @@ -743,6 +760,11 @@ declare module 'stripe' { */ moto?: boolean; + /** + * Selected network to process this PaymentIntent on. Depends on the available networks of the card attached to the PaymentIntent. Can be only set confirm-time. + */ + network?: Card.Network; + /** * We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. Permitted values include: `automatic` or `any`. If not provided, defaults to `automatic`. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine. */ @@ -785,6 +807,18 @@ declare module 'stripe' { } } + type Network = + | 'amex' + | 'cartes_bancaires' + | 'diners' + | 'discover' + | 'interac' + | 'jcb' + | 'mastercard' + | 'unionpay' + | 'unknown' + | 'visa'; + type RequestThreeDSecure = 'any' | 'automatic'; } } @@ -1003,6 +1037,11 @@ declare module 'stripe' { */ moto?: boolean; + /** + * Selected network to process this PaymentIntent on. Depends on the available networks of the card attached to the PaymentIntent. Can be only set confirm-time. + */ + network?: Card.Network; + /** * We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. Permitted values include: `automatic` or `any`. If not provided, defaults to `automatic`. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine. */ @@ -1045,6 +1084,18 @@ declare module 'stripe' { } } + type Network = + | 'amex' + | 'cartes_bancaires' + | 'diners' + | 'discover' + | 'interac' + | 'jcb' + | 'mastercard' + | 'unionpay' + | 'unknown' + | 'visa'; + type RequestThreeDSecure = 'any' | 'automatic'; } } @@ -1379,6 +1430,11 @@ declare module 'stripe' { */ moto?: boolean; + /** + * Selected network to process this PaymentIntent on. Depends on the available networks of the card attached to the PaymentIntent. Can be only set confirm-time. + */ + network?: Card.Network; + /** * We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. Permitted values include: `automatic` or `any`. If not provided, defaults to `automatic`. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine. */ @@ -1421,6 +1477,18 @@ declare module 'stripe' { } } + type Network = + | 'amex' + | 'cartes_bancaires' + | 'diners' + | 'discover' + | 'interac' + | 'jcb' + | 'mastercard' + | 'unionpay' + | 'unknown' + | 'visa'; + type RequestThreeDSecure = 'any' | 'automatic'; } } diff --git a/types/2020-03-02/PaymentMethods.d.ts b/types/2020-03-02/PaymentMethods.d.ts index d39900c2d1..8e027beb62 100644 --- a/types/2020-03-02/PaymentMethods.d.ts +++ b/types/2020-03-02/PaymentMethods.d.ts @@ -181,6 +181,11 @@ declare module 'stripe' { */ last4: string; + /** + * Contains information about card networks that can be used to process the payment. + */ + networks: Card.Networks | null; + /** * Contains details on how this Card maybe be used for 3D Secure authentication. */ @@ -210,6 +215,18 @@ declare module 'stripe' { cvc_check: string | null; } + interface Networks { + /** + * All available networks for the card. + */ + available: Array; + + /** + * The preferred network for the card. + */ + preferred: string | null; + } + interface ThreeDSecureUsage { /** * Whether 3D Secure is supported on this card.