@yuno-payments/sdk-web-types 5.5.0 → 5.7.1-CORECM-17780.1
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 +21 -1
- package/dist/index.d.ts +21 -1
- package/package.json +2 -2
package/dist/global.d.ts
CHANGED
|
@@ -784,10 +784,18 @@ declare namespace ExternalButtonsNameSpace {
|
|
|
784
784
|
borderRadius?: number;
|
|
785
785
|
locale?: string;
|
|
786
786
|
};
|
|
787
|
+
type RevolutPayButtonConfig = {
|
|
788
|
+
variant?: 'dark' | 'light' | 'light-outlined';
|
|
789
|
+
size?: 'large' | 'small';
|
|
790
|
+
radius?: 'none' | 'small' | 'large' | 'round';
|
|
791
|
+
action?: 'pay' | 'buy' | 'donate' | 'subscribe';
|
|
792
|
+
locale?: string;
|
|
793
|
+
};
|
|
787
794
|
type ExternalButtonsConfig = {
|
|
788
795
|
googlePay?: GooglePayButtonConfig;
|
|
789
796
|
applePay?: ApplePayButtonConfig;
|
|
790
797
|
paypal?: PayPalButtonConfig;
|
|
798
|
+
revolutPay?: RevolutPayButtonConfig;
|
|
791
799
|
};
|
|
792
800
|
}
|
|
793
801
|
|
|
@@ -987,13 +995,25 @@ interface MountStatusPaymentArgs {
|
|
|
987
995
|
yunoError?: SdkPaymentsConfig["error"];
|
|
988
996
|
}
|
|
989
997
|
type ContinuePaymentResponse = {
|
|
998
|
+
/**
|
|
999
|
+
* Redirect handed back to the integrator (`open_external_browser`):
|
|
1000
|
+
* the SDK does NOT navigate in this case.
|
|
1001
|
+
*/
|
|
990
1002
|
action: "REDIRECT_URL";
|
|
991
1003
|
type: string;
|
|
992
|
-
|
|
1004
|
+
redirect_url: {
|
|
993
1005
|
init_url: string;
|
|
994
1006
|
success_url: string;
|
|
995
1007
|
error_url: string;
|
|
996
1008
|
};
|
|
1009
|
+
} | {
|
|
1010
|
+
/**
|
|
1011
|
+
* In-page navigation redirect: the SDK navigates (window.location or
|
|
1012
|
+
* form POST) right after resolving. Integrators can keep their own
|
|
1013
|
+
* loader visible until the navigation commits.
|
|
1014
|
+
*/
|
|
1015
|
+
action: "REDIRECT_URL" | "THREE_D_SECURE_REDIRECT_URL";
|
|
1016
|
+
type: string;
|
|
997
1017
|
} | null;
|
|
998
1018
|
type ContinuePaymentArgs = {
|
|
999
1019
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -784,10 +784,18 @@ declare namespace ExternalButtonsNameSpace {
|
|
|
784
784
|
borderRadius?: number;
|
|
785
785
|
locale?: string;
|
|
786
786
|
};
|
|
787
|
+
type RevolutPayButtonConfig = {
|
|
788
|
+
variant?: 'dark' | 'light' | 'light-outlined';
|
|
789
|
+
size?: 'large' | 'small';
|
|
790
|
+
radius?: 'none' | 'small' | 'large' | 'round';
|
|
791
|
+
action?: 'pay' | 'buy' | 'donate' | 'subscribe';
|
|
792
|
+
locale?: string;
|
|
793
|
+
};
|
|
787
794
|
type ExternalButtonsConfig = {
|
|
788
795
|
googlePay?: GooglePayButtonConfig;
|
|
789
796
|
applePay?: ApplePayButtonConfig;
|
|
790
797
|
paypal?: PayPalButtonConfig;
|
|
798
|
+
revolutPay?: RevolutPayButtonConfig;
|
|
791
799
|
};
|
|
792
800
|
}
|
|
793
801
|
|
|
@@ -987,13 +995,25 @@ interface MountStatusPaymentArgs {
|
|
|
987
995
|
yunoError?: SdkPaymentsConfig["error"];
|
|
988
996
|
}
|
|
989
997
|
type ContinuePaymentResponse = {
|
|
998
|
+
/**
|
|
999
|
+
* Redirect handed back to the integrator (`open_external_browser`):
|
|
1000
|
+
* the SDK does NOT navigate in this case.
|
|
1001
|
+
*/
|
|
990
1002
|
action: "REDIRECT_URL";
|
|
991
1003
|
type: string;
|
|
992
|
-
|
|
1004
|
+
redirect_url: {
|
|
993
1005
|
init_url: string;
|
|
994
1006
|
success_url: string;
|
|
995
1007
|
error_url: string;
|
|
996
1008
|
};
|
|
1009
|
+
} | {
|
|
1010
|
+
/**
|
|
1011
|
+
* In-page navigation redirect: the SDK navigates (window.location or
|
|
1012
|
+
* form POST) right after resolving. Integrators can keep their own
|
|
1013
|
+
* loader visible until the navigation commits.
|
|
1014
|
+
*/
|
|
1015
|
+
action: "REDIRECT_URL" | "THREE_D_SECURE_REDIRECT_URL";
|
|
1016
|
+
type: string;
|
|
997
1017
|
} | null;
|
|
998
1018
|
type ContinuePaymentArgs = {
|
|
999
1019
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yuno-payments/sdk-web-types",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.7.1-CORECM-17780.1",
|
|
4
4
|
"types": "dist/index.d.ts",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"publishConfig": {
|
|
@@ -22,4 +22,4 @@
|
|
|
22
22
|
"rollup-plugin-dts": "^6.1.1",
|
|
23
23
|
"typescript": "^5.2.2"
|
|
24
24
|
}
|
|
25
|
-
}
|
|
25
|
+
}
|