Skip to content

Commit 4f46138

Browse files
authored
Merge pull request stripe#918 from stripe/remi/codegen-56aa36d
Add support for Cartes Bancaires payments on `PaymentIntent` and `Pay…
2 parents a3c2730 + 69de274 commit 4f46138

File tree

3 files changed

+88
-3
lines changed

3 files changed

+88
-3
lines changed

types/2020-03-02/Charges.d.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -687,7 +687,7 @@ declare module 'stripe' {
687687
moto?: boolean | null;
688688

689689
/**
690-
* Identifies which network this charge was processed on. Can be `amex`, `diners`, `discover`, `interac`, `jcb`, `mastercard`, `unionpay`, `visa`, or `unknown`.
690+
* Identifies which network this charge was processed on. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `interac`, `jcb`, `mastercard`, `unionpay`, `visa`, or `unknown`.
691691
*/
692692
network: string | null;
693693

@@ -942,7 +942,7 @@ declare module 'stripe' {
942942
last4: string | null;
943943

944944
/**
945-
* Identifies which network this charge was processed on. Can be `amex`, `diners`, `discover`, `interac`, `jcb`, `mastercard`, `unionpay`, `visa`, or `unknown`.
945+
* Identifies which network this charge was processed on. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `interac`, `jcb`, `mastercard`, `unionpay`, `visa`, or `unknown`.
946946
*/
947947
network: string | null;
948948

@@ -1182,7 +1182,7 @@ declare module 'stripe' {
11821182
last4: string | null;
11831183

11841184
/**
1185-
* Identifies which network this charge was processed on. Can be `amex`, `diners`, `discover`, `interac`, `jcb`, `mastercard`, `unionpay`, `visa`, or `unknown`.
1185+
* Identifies which network this charge was processed on. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `interac`, `jcb`, `mastercard`, `unionpay`, `visa`, or `unknown`.
11861186
*/
11871187
network: string | null;
11881188

types/2020-03-02/PaymentIntents.d.ts

+68
Original file line numberDiff line numberDiff line change
@@ -371,6 +371,11 @@ declare module 'stripe' {
371371
*/
372372
installments: Card.Installments | null;
373373

374+
/**
375+
* 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.
376+
*/
377+
network: Card.Network | null;
378+
374379
/**
375380
* 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.
376381
*/
@@ -433,6 +438,18 @@ declare module 'stripe' {
433438
}
434439
}
435440

441+
type Network =
442+
| 'amex'
443+
| 'cartes_bancaires'
444+
| 'diners'
445+
| 'discover'
446+
| 'interac'
447+
| 'jcb'
448+
| 'mastercard'
449+
| 'unionpay'
450+
| 'unknown'
451+
| 'visa';
452+
436453
type RequestThreeDSecure = 'any' | 'automatic' | 'challenge_only';
437454
}
438455
}
@@ -743,6 +760,11 @@ declare module 'stripe' {
743760
*/
744761
moto?: boolean;
745762

763+
/**
764+
* 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.
765+
*/
766+
network?: Card.Network;
767+
746768
/**
747769
* 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.
748770
*/
@@ -785,6 +807,18 @@ declare module 'stripe' {
785807
}
786808
}
787809

810+
type Network =
811+
| 'amex'
812+
| 'cartes_bancaires'
813+
| 'diners'
814+
| 'discover'
815+
| 'interac'
816+
| 'jcb'
817+
| 'mastercard'
818+
| 'unionpay'
819+
| 'unknown'
820+
| 'visa';
821+
788822
type RequestThreeDSecure = 'any' | 'automatic';
789823
}
790824
}
@@ -1003,6 +1037,11 @@ declare module 'stripe' {
10031037
*/
10041038
moto?: boolean;
10051039

1040+
/**
1041+
* 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.
1042+
*/
1043+
network?: Card.Network;
1044+
10061045
/**
10071046
* 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.
10081047
*/
@@ -1045,6 +1084,18 @@ declare module 'stripe' {
10451084
}
10461085
}
10471086

1087+
type Network =
1088+
| 'amex'
1089+
| 'cartes_bancaires'
1090+
| 'diners'
1091+
| 'discover'
1092+
| 'interac'
1093+
| 'jcb'
1094+
| 'mastercard'
1095+
| 'unionpay'
1096+
| 'unknown'
1097+
| 'visa';
1098+
10481099
type RequestThreeDSecure = 'any' | 'automatic';
10491100
}
10501101
}
@@ -1379,6 +1430,11 @@ declare module 'stripe' {
13791430
*/
13801431
moto?: boolean;
13811432

1433+
/**
1434+
* 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.
1435+
*/
1436+
network?: Card.Network;
1437+
13821438
/**
13831439
* 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.
13841440
*/
@@ -1421,6 +1477,18 @@ declare module 'stripe' {
14211477
}
14221478
}
14231479

1480+
type Network =
1481+
| 'amex'
1482+
| 'cartes_bancaires'
1483+
| 'diners'
1484+
| 'discover'
1485+
| 'interac'
1486+
| 'jcb'
1487+
| 'mastercard'
1488+
| 'unionpay'
1489+
| 'unknown'
1490+
| 'visa';
1491+
14241492
type RequestThreeDSecure = 'any' | 'automatic';
14251493
}
14261494
}

types/2020-03-02/PaymentMethods.d.ts

+17
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,11 @@ declare module 'stripe' {
181181
*/
182182
last4: string;
183183

184+
/**
185+
* Contains information about card networks that can be used to process the payment.
186+
*/
187+
networks: Card.Networks | null;
188+
184189
/**
185190
* Contains details on how this Card maybe be used for 3D Secure authentication.
186191
*/
@@ -210,6 +215,18 @@ declare module 'stripe' {
210215
cvc_check: string | null;
211216
}
212217

218+
interface Networks {
219+
/**
220+
* All available networks for the card.
221+
*/
222+
available: Array<string>;
223+
224+
/**
225+
* The preferred network for the card.
226+
*/
227+
preferred: string | null;
228+
}
229+
213230
interface ThreeDSecureUsage {
214231
/**
215232
* Whether 3D Secure is supported on this card.

0 commit comments

Comments
 (0)