@yuno-payments/sdk-web-types 5.2.0 → 5.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/global.d.ts +33 -0
- package/dist/index.d.ts +33 -0
- package/package.json +1 -1
package/dist/global.d.ts
CHANGED
|
@@ -474,6 +474,7 @@ type CookieConfig = {
|
|
|
474
474
|
type CookiesConfig = Record<CookieKey, CookieConfig>;
|
|
475
475
|
type InitializeOptions = {
|
|
476
476
|
cookies: CookiesConfig | undefined;
|
|
477
|
+
sdkType?: string;
|
|
477
478
|
};
|
|
478
479
|
|
|
479
480
|
type Status = 'FAIL' | 'REJECT' | 'SUCCEEDED' | 'PROCESSING' | 'READY';
|
|
@@ -730,6 +731,37 @@ declare namespace ExternalButtonsNameSpace {
|
|
|
730
731
|
unmountExternalButton(paymentMethodType: string): Promise<void>;
|
|
731
732
|
unmountAllExternalButtons(): Promise<void>;
|
|
732
733
|
}
|
|
734
|
+
type GooglePayButtonConfig = {
|
|
735
|
+
buttonColor?: 'default' | 'black' | 'white';
|
|
736
|
+
buttonType?: 'book' | 'buy' | 'checkout' | 'donate' | 'order' | 'pay' | 'plain' | 'subscribe';
|
|
737
|
+
buttonRadius?: number;
|
|
738
|
+
buttonLocale?: string;
|
|
739
|
+
buttonSizeMode?: 'fill' | 'static';
|
|
740
|
+
buttonWidth?: number;
|
|
741
|
+
buttonHeight?: number;
|
|
742
|
+
};
|
|
743
|
+
type ApplePayButtonConfig = {
|
|
744
|
+
buttonType?: 'plain' | 'add-money' | 'book' | 'buy' | 'check-out' | 'contribute' | 'donate' | 'order' | 'pay' | 'reload' | 'rent' | 'set-up' | 'subscribe' | 'support' | 'tip' | 'top-up';
|
|
745
|
+
buttonStyle?: 'black' | 'white' | 'white-outline';
|
|
746
|
+
locale?: string;
|
|
747
|
+
buttonWidth?: number;
|
|
748
|
+
buttonHeight?: number;
|
|
749
|
+
buttonBorderRadius?: number;
|
|
750
|
+
};
|
|
751
|
+
type PayPalButtonConfig = {
|
|
752
|
+
color?: 'gold' | 'blue' | 'silver' | 'white' | 'black';
|
|
753
|
+
shape?: 'rect' | 'pill' | 'sharp';
|
|
754
|
+
label?: 'paypal' | 'checkout' | 'buynow' | 'pay' | 'installment';
|
|
755
|
+
layout?: 'vertical' | 'horizontal';
|
|
756
|
+
height?: number;
|
|
757
|
+
width?: number;
|
|
758
|
+
borderRadius?: number;
|
|
759
|
+
};
|
|
760
|
+
type ExternalButtonsConfig = {
|
|
761
|
+
googlePay?: GooglePayButtonConfig;
|
|
762
|
+
applePay?: ApplePayButtonConfig;
|
|
763
|
+
paypal?: PayPalButtonConfig;
|
|
764
|
+
};
|
|
733
765
|
}
|
|
734
766
|
|
|
735
767
|
interface ButtonTextCard {
|
|
@@ -873,6 +905,7 @@ interface YunoConfig {
|
|
|
873
905
|
visibleTriggerOffsetPx?: number;
|
|
874
906
|
bottomOffsetPx?: number;
|
|
875
907
|
};
|
|
908
|
+
externalButtons?: ExternalButtonsNameSpace.ExternalButtonsConfig;
|
|
876
909
|
}
|
|
877
910
|
type StartCheckoutArgs = Omit<YunoConfig, "yunoEnrollmentStatus" | "customerSession" | "publicApiKey" | "card"> & {
|
|
878
911
|
card?: CardConfig & {
|
package/dist/index.d.ts
CHANGED
|
@@ -474,6 +474,7 @@ type CookieConfig = {
|
|
|
474
474
|
type CookiesConfig = Record<CookieKey, CookieConfig>;
|
|
475
475
|
type InitializeOptions = {
|
|
476
476
|
cookies: CookiesConfig | undefined;
|
|
477
|
+
sdkType?: string;
|
|
477
478
|
};
|
|
478
479
|
|
|
479
480
|
type Status = 'FAIL' | 'REJECT' | 'SUCCEEDED' | 'PROCESSING' | 'READY';
|
|
@@ -730,6 +731,37 @@ declare namespace ExternalButtonsNameSpace {
|
|
|
730
731
|
unmountExternalButton(paymentMethodType: string): Promise<void>;
|
|
731
732
|
unmountAllExternalButtons(): Promise<void>;
|
|
732
733
|
}
|
|
734
|
+
type GooglePayButtonConfig = {
|
|
735
|
+
buttonColor?: 'default' | 'black' | 'white';
|
|
736
|
+
buttonType?: 'book' | 'buy' | 'checkout' | 'donate' | 'order' | 'pay' | 'plain' | 'subscribe';
|
|
737
|
+
buttonRadius?: number;
|
|
738
|
+
buttonLocale?: string;
|
|
739
|
+
buttonSizeMode?: 'fill' | 'static';
|
|
740
|
+
buttonWidth?: number;
|
|
741
|
+
buttonHeight?: number;
|
|
742
|
+
};
|
|
743
|
+
type ApplePayButtonConfig = {
|
|
744
|
+
buttonType?: 'plain' | 'add-money' | 'book' | 'buy' | 'check-out' | 'contribute' | 'donate' | 'order' | 'pay' | 'reload' | 'rent' | 'set-up' | 'subscribe' | 'support' | 'tip' | 'top-up';
|
|
745
|
+
buttonStyle?: 'black' | 'white' | 'white-outline';
|
|
746
|
+
locale?: string;
|
|
747
|
+
buttonWidth?: number;
|
|
748
|
+
buttonHeight?: number;
|
|
749
|
+
buttonBorderRadius?: number;
|
|
750
|
+
};
|
|
751
|
+
type PayPalButtonConfig = {
|
|
752
|
+
color?: 'gold' | 'blue' | 'silver' | 'white' | 'black';
|
|
753
|
+
shape?: 'rect' | 'pill' | 'sharp';
|
|
754
|
+
label?: 'paypal' | 'checkout' | 'buynow' | 'pay' | 'installment';
|
|
755
|
+
layout?: 'vertical' | 'horizontal';
|
|
756
|
+
height?: number;
|
|
757
|
+
width?: number;
|
|
758
|
+
borderRadius?: number;
|
|
759
|
+
};
|
|
760
|
+
type ExternalButtonsConfig = {
|
|
761
|
+
googlePay?: GooglePayButtonConfig;
|
|
762
|
+
applePay?: ApplePayButtonConfig;
|
|
763
|
+
paypal?: PayPalButtonConfig;
|
|
764
|
+
};
|
|
733
765
|
}
|
|
734
766
|
|
|
735
767
|
interface ButtonTextCard {
|
|
@@ -873,6 +905,7 @@ interface YunoConfig {
|
|
|
873
905
|
visibleTriggerOffsetPx?: number;
|
|
874
906
|
bottomOffsetPx?: number;
|
|
875
907
|
};
|
|
908
|
+
externalButtons?: ExternalButtonsNameSpace.ExternalButtonsConfig;
|
|
876
909
|
}
|
|
877
910
|
type StartCheckoutArgs = Omit<YunoConfig, "yunoEnrollmentStatus" | "customerSession" | "publicApiKey" | "card"> & {
|
|
878
911
|
card?: CardConfig & {
|