From 449c42470f8c86226cb8aa90d96022a25dda3bf1 Mon Sep 17 00:00:00 2001 From: Alexandre Couret Date: Tue, 23 Jul 2019 15:39:26 -0400 Subject: [PATCH] [googlepay] Add INTERAC in AllowedCardNetwork (#37078) * [ADD] INTERAC as an AllowedCardNetwork * [FORMAT] --- types/googlepay/googlepay-tests.ts | 9 ++++++++- types/googlepay/index.d.ts | 3 ++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/types/googlepay/googlepay-tests.ts b/types/googlepay/googlepay-tests.ts index 729eb93cfa..a429ba977b 100644 --- a/types/googlepay/googlepay-tests.ts +++ b/types/googlepay/googlepay-tests.ts @@ -1,4 +1,11 @@ -const allowedCardNetworks = new Array('AMEX', 'DISCOVER', 'JCB', 'MASTERCARD', 'VISA'); +const allowedCardNetworks = new Array( + 'AMEX', + 'DISCOVER', + 'JCB', + 'MASTERCARD', + 'VISA', + 'INTERAC' +); const allowedPaymentMethods = new Array({ type: 'CARD', diff --git a/types/googlepay/index.d.ts b/types/googlepay/index.d.ts index a8d5603abd..e7706405df 100644 --- a/types/googlepay/index.d.ts +++ b/types/googlepay/index.d.ts @@ -3,6 +3,7 @@ // Definitions by: Florian Luccioni , // Radu Raicea , // Filip Stanis +// Alexandre Couret // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare namespace google.payments.api { @@ -72,7 +73,7 @@ declare namespace google.payments.api { } type AllowedAuthMethod = 'PAN_ONLY' | 'CRYPTOGRAM_3DS'; - type AllowedCardNetwork = 'AMEX' | 'DISCOVER' | 'JCB' | 'MASTERCARD' | 'VISA'; + type AllowedCardNetwork = 'AMEX' | 'DISCOVER' | 'JCB' | 'MASTERCARD' | 'VISA' | 'INTERAC'; interface CardParameters { allowedAuthMethods: AllowedAuthMethod[];