Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

INTER-3203: Add new alternative payment methods types with fastlane styles #26

Merged
merged 1 commit into from
May 29, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading