@yuno-payments/sdk-web-types 5.6.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 CHANGED
@@ -995,13 +995,25 @@ interface MountStatusPaymentArgs {
995
995
  yunoError?: SdkPaymentsConfig["error"];
996
996
  }
997
997
  type ContinuePaymentResponse = {
998
+ /**
999
+ * Redirect handed back to the integrator (`open_external_browser`):
1000
+ * the SDK does NOT navigate in this case.
1001
+ */
998
1002
  action: "REDIRECT_URL";
999
1003
  type: string;
1000
- redirect: {
1004
+ redirect_url: {
1001
1005
  init_url: string;
1002
1006
  success_url: string;
1003
1007
  error_url: string;
1004
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;
1005
1017
  } | null;
1006
1018
  type ContinuePaymentArgs = {
1007
1019
  /**
package/dist/index.d.ts CHANGED
@@ -995,13 +995,25 @@ interface MountStatusPaymentArgs {
995
995
  yunoError?: SdkPaymentsConfig["error"];
996
996
  }
997
997
  type ContinuePaymentResponse = {
998
+ /**
999
+ * Redirect handed back to the integrator (`open_external_browser`):
1000
+ * the SDK does NOT navigate in this case.
1001
+ */
998
1002
  action: "REDIRECT_URL";
999
1003
  type: string;
1000
- redirect: {
1004
+ redirect_url: {
1001
1005
  init_url: string;
1002
1006
  success_url: string;
1003
1007
  error_url: string;
1004
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;
1005
1017
  } | null;
1006
1018
  type ContinuePaymentArgs = {
1007
1019
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yuno-payments/sdk-web-types",
3
- "version": "5.6.0",
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
+ }