Skip to content

Commit

Permalink
INTER-3203: Add new alternative payment methods types with fastlane s…
Browse files Browse the repository at this point in the history
…tyles (#26)
  • Loading branch information
kfalkowski11 committed May 29, 2024
1 parent f8eaa1b commit 5c9d97e
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion src/types/apiInterfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ export interface IApiTypesDetail {
keysToTest?: Array<string>;
}

export type IAlternativePaymentMethod = Array<IExpressPayStripe | IExpressPayPaypal | IExpressPayBraintreeGoogle | IExpressPayBraintreeApple | IExpressPayPaypalCommercePlatform | IExpressPayPaypalCommercePlatformButton> ;
export type IAlternativePaymentMethod = Array<IExpressPayStripe | IExpressPayPaypal | IExpressPayBraintreeGoogle | IExpressPayBraintreeApple | IExpressPayPaypalCommercePlatform | IExpressPayPaypalCommercePlatformButton | IExpressPayBraintreePayPal | IExpressPayBraintreeFastlane> ;
export type IExternalPaymentGateways = Array<IExternalPaymentGateway>;

export interface IOrderInitialData {
Expand Down Expand Up @@ -474,6 +474,7 @@ export interface IExpressPayPaypalCommercePlatform {
apple_pay_enabled: boolean;
partner_id: string;
merchant_id: string;
fastlane_styles: Record<string, unknown>
}

export interface IExpressPayPaypalCommercePlatformButton {
Expand Down Expand Up @@ -510,6 +511,16 @@ export interface IExpressPayBraintreeApple extends IExpressPayBraintree {
apple_pay_enabled: boolean;
}

export interface IExpressPayBraintreePayPal extends IExpressPayBraintree {
is_paylater_enabled: boolean;
properties: Record<string, unknown>
}

export interface IExpressPayBraintreeFastlane extends IExpressPayBraintree {
fastlane_styles: Record<string, unknown>
}


export interface IExternalPaymentGateway {
is_test: boolean;
iframe_url: string;
Expand Down

0 comments on commit 5c9d97e

Please sign in to comment.