Skip to content

Commit d8164ee

Browse files
authored
Merge pull request #1050 from stripe/remi/codegen-e2fcf75
Add support for passing `p24[bank]` for P24 on `PaymentIntent` or `PaymentMethod`
2 parents 968143c + ce5c89e commit d8164ee

2 files changed

Lines changed: 175 additions & 5 deletions

File tree

types/2020-08-27/PaymentIntents.d.ts

Lines changed: 105 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1025,7 +1025,41 @@ declare module 'stripe' {
10251025

10261026
interface Oxxo {}
10271027

1028-
interface P24 {}
1028+
interface P24 {
1029+
/**
1030+
* The customer's bank.
1031+
*/
1032+
bank?: P24.Bank;
1033+
}
1034+
1035+
namespace P24 {
1036+
type Bank =
1037+
| 'alior_bank'
1038+
| 'bank_millennium'
1039+
| 'bank_nowy_bfg_sa'
1040+
| 'bank_pekao_sa'
1041+
| 'banki_spbdzielcze'
1042+
| 'blik'
1043+
| 'bnp_paribas'
1044+
| 'boz'
1045+
| 'citi_handlowy'
1046+
| 'credit_agricole'
1047+
| 'envelobank'
1048+
| 'etransfer_pocztowy24'
1049+
| 'getin_bank'
1050+
| 'ideabank'
1051+
| 'ing'
1052+
| 'inteligo'
1053+
| 'mbank_mtransfer'
1054+
| 'nest_przelew'
1055+
| 'noble_pay'
1056+
| 'pbac_z_ipko'
1057+
| 'plus_bank'
1058+
| 'santander_przelew24'
1059+
| 'tmobile_usbugi_bankowe'
1060+
| 'toyota_bank'
1061+
| 'volkswagen_bank';
1062+
}
10291063

10301064
interface SepaDebit {
10311065
/**
@@ -1608,7 +1642,41 @@ declare module 'stripe' {
16081642

16091643
interface Oxxo {}
16101644

1611-
interface P24 {}
1645+
interface P24 {
1646+
/**
1647+
* The customer's bank.
1648+
*/
1649+
bank?: P24.Bank;
1650+
}
1651+
1652+
namespace P24 {
1653+
type Bank =
1654+
| 'alior_bank'
1655+
| 'bank_millennium'
1656+
| 'bank_nowy_bfg_sa'
1657+
| 'bank_pekao_sa'
1658+
| 'banki_spbdzielcze'
1659+
| 'blik'
1660+
| 'bnp_paribas'
1661+
| 'boz'
1662+
| 'citi_handlowy'
1663+
| 'credit_agricole'
1664+
| 'envelobank'
1665+
| 'etransfer_pocztowy24'
1666+
| 'getin_bank'
1667+
| 'ideabank'
1668+
| 'ing'
1669+
| 'inteligo'
1670+
| 'mbank_mtransfer'
1671+
| 'nest_przelew'
1672+
| 'noble_pay'
1673+
| 'pbac_z_ipko'
1674+
| 'plus_bank'
1675+
| 'santander_przelew24'
1676+
| 'tmobile_usbugi_bankowe'
1677+
| 'toyota_bank'
1678+
| 'volkswagen_bank';
1679+
}
16121680

16131681
interface SepaDebit {
16141682
/**
@@ -2305,7 +2373,41 @@ declare module 'stripe' {
23052373

23062374
interface Oxxo {}
23072375

2308-
interface P24 {}
2376+
interface P24 {
2377+
/**
2378+
* The customer's bank.
2379+
*/
2380+
bank?: P24.Bank;
2381+
}
2382+
2383+
namespace P24 {
2384+
type Bank =
2385+
| 'alior_bank'
2386+
| 'bank_millennium'
2387+
| 'bank_nowy_bfg_sa'
2388+
| 'bank_pekao_sa'
2389+
| 'banki_spbdzielcze'
2390+
| 'blik'
2391+
| 'bnp_paribas'
2392+
| 'boz'
2393+
| 'citi_handlowy'
2394+
| 'credit_agricole'
2395+
| 'envelobank'
2396+
| 'etransfer_pocztowy24'
2397+
| 'getin_bank'
2398+
| 'ideabank'
2399+
| 'ing'
2400+
| 'inteligo'
2401+
| 'mbank_mtransfer'
2402+
| 'nest_przelew'
2403+
| 'noble_pay'
2404+
| 'pbac_z_ipko'
2405+
| 'plus_bank'
2406+
| 'santander_przelew24'
2407+
| 'tmobile_usbugi_bankowe'
2408+
| 'toyota_bank'
2409+
| 'volkswagen_bank';
2410+
}
23092411

23102412
interface SepaDebit {
23112413
/**

types/2020-08-27/PaymentMethods.d.ts

Lines changed: 70 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,41 @@ declare module 'stripe' {
420420

421421
interface Oxxo {}
422422

423-
interface P24 {}
423+
interface P24 {
424+
/**
425+
* The customer's bank, if provided.
426+
*/
427+
bank: P24.Bank | null;
428+
}
429+
430+
namespace P24 {
431+
type Bank =
432+
| 'alior_bank'
433+
| 'bank_millennium'
434+
| 'bank_nowy_bfg_sa'
435+
| 'bank_pekao_sa'
436+
| 'banki_spbdzielcze'
437+
| 'blik'
438+
| 'bnp_paribas'
439+
| 'boz'
440+
| 'citi_handlowy'
441+
| 'credit_agricole'
442+
| 'envelobank'
443+
| 'etransfer_pocztowy24'
444+
| 'getin_bank'
445+
| 'ideabank'
446+
| 'ing'
447+
| 'inteligo'
448+
| 'mbank_mtransfer'
449+
| 'nest_przelew'
450+
| 'noble_pay'
451+
| 'pbac_z_ipko'
452+
| 'plus_bank'
453+
| 'santander_przelew24'
454+
| 'tmobile_usbugi_bankowe'
455+
| 'toyota_bank'
456+
| 'volkswagen_bank';
457+
}
424458

425459
interface SepaDebit {
426460
/**
@@ -773,7 +807,41 @@ declare module 'stripe' {
773807

774808
interface Oxxo {}
775809

776-
interface P24 {}
810+
interface P24 {
811+
/**
812+
* The customer's bank.
813+
*/
814+
bank?: P24.Bank;
815+
}
816+
817+
namespace P24 {
818+
type Bank =
819+
| 'alior_bank'
820+
| 'bank_millennium'
821+
| 'bank_nowy_bfg_sa'
822+
| 'bank_pekao_sa'
823+
| 'banki_spbdzielcze'
824+
| 'blik'
825+
| 'bnp_paribas'
826+
| 'boz'
827+
| 'citi_handlowy'
828+
| 'credit_agricole'
829+
| 'envelobank'
830+
| 'etransfer_pocztowy24'
831+
| 'getin_bank'
832+
| 'ideabank'
833+
| 'ing'
834+
| 'inteligo'
835+
| 'mbank_mtransfer'
836+
| 'nest_przelew'
837+
| 'noble_pay'
838+
| 'pbac_z_ipko'
839+
| 'plus_bank'
840+
| 'santander_przelew24'
841+
| 'tmobile_usbugi_bankowe'
842+
| 'toyota_bank'
843+
| 'volkswagen_bank';
844+
}
777845

778846
interface SepaDebit {
779847
/**

0 commit comments

Comments
 (0)