Skip to content

Commit 5c9d97e

Browse files
authored
INTER-3203: Add new alternative payment methods types with fastlane styles (#26)
1 parent f8eaa1b commit 5c9d97e

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

src/types/apiInterfaces.ts

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ export interface IApiTypesDetail {
389389
keysToTest?: Array<string>;
390390
}
391391

392-
export type IAlternativePaymentMethod = Array<IExpressPayStripe | IExpressPayPaypal | IExpressPayBraintreeGoogle | IExpressPayBraintreeApple | IExpressPayPaypalCommercePlatform | IExpressPayPaypalCommercePlatformButton> ;
392+
export type IAlternativePaymentMethod = Array<IExpressPayStripe | IExpressPayPaypal | IExpressPayBraintreeGoogle | IExpressPayBraintreeApple | IExpressPayPaypalCommercePlatform | IExpressPayPaypalCommercePlatformButton | IExpressPayBraintreePayPal | IExpressPayBraintreeFastlane> ;
393393
export type IExternalPaymentGateways = Array<IExternalPaymentGateway>;
394394

395395
export interface IOrderInitialData {
@@ -474,6 +474,7 @@ export interface IExpressPayPaypalCommercePlatform {
474474
apple_pay_enabled: boolean;
475475
partner_id: string;
476476
merchant_id: string;
477+
fastlane_styles: Record<string, unknown>
477478
}
478479

479480
export interface IExpressPayPaypalCommercePlatformButton {
@@ -510,6 +511,16 @@ export interface IExpressPayBraintreeApple extends IExpressPayBraintree {
510511
apple_pay_enabled: boolean;
511512
}
512513

514+
export interface IExpressPayBraintreePayPal extends IExpressPayBraintree {
515+
is_paylater_enabled: boolean;
516+
properties: Record<string, unknown>
517+
}
518+
519+
export interface IExpressPayBraintreeFastlane extends IExpressPayBraintree {
520+
fastlane_styles: Record<string, unknown>
521+
}
522+
523+
513524
export interface IExternalPaymentGateway {
514525
is_test: boolean;
515526
iframe_url: string;

0 commit comments

Comments
 (0)