@yuno-payments/sdk-web-types 5.6.0 → 5.7.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 CHANGED
@@ -995,19 +995,21 @@ interface MountStatusPaymentArgs {
995
995
  yunoError?: SdkPaymentsConfig["error"];
996
996
  }
997
997
  type ContinuePaymentResponse = {
998
- action: "REDIRECT_URL";
999
998
  type: string;
1000
- redirect: {
1001
- init_url: string;
1002
- success_url: string;
1003
- error_url: string;
999
+ action: string;
1000
+ redirect_url?: {
1001
+ init_url?: string;
1002
+ success_url?: string;
1003
+ error_url?: string;
1004
1004
  };
1005
- } | null;
1005
+ };
1006
+ type OnActionExecuted = (result: ContinuePaymentResponse) => void;
1006
1007
  type ContinuePaymentArgs = {
1007
1008
  /**
1008
1009
  * @default true
1009
1010
  */
1010
1011
  showPaymentStatus?: boolean;
1012
+ onActionExecuted?: OnActionExecuted;
1011
1013
  };
1012
1014
  type StartSeamlessCheckoutArgs = Omit<StartCheckoutArgs, "createPayment" | "yunoCreatePayment">;
1013
1015
  type ShowLoaderOptions = {
@@ -1033,7 +1035,7 @@ interface SdkPaymentsInstance extends ExternalButtonsNameSpace.ExternalButtonMet
1033
1035
  updateCheckoutSession(checkout: string): Promise<void>;
1034
1036
  submitOneTimeTokenForm(): Promise<void>;
1035
1037
  startPayment(): Promise<void>;
1036
- continuePayment(args?: ContinuePaymentArgs): Promise<ContinuePaymentResponse>;
1038
+ continuePayment(args?: ContinuePaymentArgs): Promise<ContinuePaymentResponse | null>;
1037
1039
  notifyError(): Promise<void>;
1038
1040
  mountEnrollmentLite(args: MountEnrollmentLiteArgs): Promise<void>;
1039
1041
  showLoader(args?: ShowLoaderOptions): Promise<void>;
package/dist/index.d.ts CHANGED
@@ -995,19 +995,21 @@ interface MountStatusPaymentArgs {
995
995
  yunoError?: SdkPaymentsConfig["error"];
996
996
  }
997
997
  type ContinuePaymentResponse = {
998
- action: "REDIRECT_URL";
999
998
  type: string;
1000
- redirect: {
1001
- init_url: string;
1002
- success_url: string;
1003
- error_url: string;
999
+ action: string;
1000
+ redirect_url?: {
1001
+ init_url?: string;
1002
+ success_url?: string;
1003
+ error_url?: string;
1004
1004
  };
1005
- } | null;
1005
+ };
1006
+ type OnActionExecuted = (result: ContinuePaymentResponse) => void;
1006
1007
  type ContinuePaymentArgs = {
1007
1008
  /**
1008
1009
  * @default true
1009
1010
  */
1010
1011
  showPaymentStatus?: boolean;
1012
+ onActionExecuted?: OnActionExecuted;
1011
1013
  };
1012
1014
  type StartSeamlessCheckoutArgs = Omit<StartCheckoutArgs, "createPayment" | "yunoCreatePayment">;
1013
1015
  type ShowLoaderOptions = {
@@ -1033,7 +1035,7 @@ interface SdkPaymentsInstance extends ExternalButtonsNameSpace.ExternalButtonMet
1033
1035
  updateCheckoutSession(checkout: string): Promise<void>;
1034
1036
  submitOneTimeTokenForm(): Promise<void>;
1035
1037
  startPayment(): Promise<void>;
1036
- continuePayment(args?: ContinuePaymentArgs): Promise<ContinuePaymentResponse>;
1038
+ continuePayment(args?: ContinuePaymentArgs): Promise<ContinuePaymentResponse | null>;
1037
1039
  notifyError(): Promise<void>;
1038
1040
  mountEnrollmentLite(args: MountEnrollmentLiteArgs): Promise<void>;
1039
1041
  showLoader(args?: ShowLoaderOptions): Promise<void>;
@@ -1064,4 +1066,4 @@ interface SdkPayments {
1064
1066
  interface Yuno extends SdkPayments {
1065
1067
  }
1066
1068
 
1067
- export { type ButtonTextCard, C2PHeadless, type CardConfig, type ContinuePaymentArgs, type ContinuePaymentResponse, type CreateArgsSF, type ExternalButton, type ExternalPaymentButtons, ExternalPaymentButtonsTypes, type ExternalProviderId, type Font, type FormElementSelector, type Language, type LoadingType, type MountCheckoutLiteArgs, type MountEnrollmentLiteArgs, type MountSeamlessCheckoutLiteArgs, type MountSeamlessExternalButtonsArgs, type MountStatusPaymentArgs, type OnChangeDataSF, type RenderMode, type SdkPayments, type SdkPaymentsConfig, type SdkPaymentsInstance, type SecureFieldInstance, type SecureFieldsArgs, type StartCheckoutArgs, type StartSeamlessCheckoutArgs, type TextsCustom, type Yuno, type YunoConfig, type YunoInstance, type mountFraudArgs };
1069
+ export { type ButtonTextCard, C2PHeadless, type CardConfig, type ContinuePaymentArgs, type ContinuePaymentResponse, type CreateArgsSF, type ExternalButton, type ExternalPaymentButtons, ExternalPaymentButtonsTypes, type ExternalProviderId, type Font, type FormElementSelector, type Language, type LoadingType, type MountCheckoutLiteArgs, type MountEnrollmentLiteArgs, type MountSeamlessCheckoutLiteArgs, type MountSeamlessExternalButtonsArgs, type MountStatusPaymentArgs, type OnActionExecuted, type OnChangeDataSF, type RenderMode, type SdkPayments, type SdkPaymentsConfig, type SdkPaymentsInstance, type SecureFieldInstance, type SecureFieldsArgs, type StartCheckoutArgs, type StartSeamlessCheckoutArgs, type TextsCustom, type Yuno, type YunoConfig, type YunoInstance, type mountFraudArgs };
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.0",
4
4
  "types": "dist/index.d.ts",
5
5
  "type": "module",
6
6
  "publishConfig": {