@yuno-payments/sdk-web-types 3.0.0 → 3.2.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
@@ -605,6 +605,21 @@ interface MountStatusPaymentArgs {
605
605
  yunoPaymentResult?: YunoConfig['yunoPaymentResult'];
606
606
  yunoError?: YunoConfig['yunoError'];
607
607
  }
608
+ type ContinuePaymentResponse = {
609
+ action: 'REDIRECT_URL';
610
+ type: string;
611
+ redirect: {
612
+ init_url: string;
613
+ success_url: string;
614
+ error_url: string;
615
+ };
616
+ } | null;
617
+ type ContinuePaymentArgs = {
618
+ /**
619
+ * @default true
620
+ */
621
+ showPaymentStatus?: boolean;
622
+ };
608
623
  interface YunoInstance {
609
624
  startCheckout(args: StartCheckoutArgs): Promise<void>;
610
625
  mountCheckout(args: MountCheckoutArgs): Promise<void>;
@@ -613,7 +628,7 @@ interface YunoInstance {
613
628
  updateCheckoutSession(checkout: string): Promise<void>;
614
629
  submitOneTimeTokenForm(): Promise<void>;
615
630
  startPayment(): Promise<void>;
616
- continuePayment(): Promise<void>;
631
+ continuePayment(args?: ContinuePaymentArgs): Promise<ContinuePaymentResponse>;
617
632
  notifyError(): Promise<void>;
618
633
  mountEnrollmentLite(args: MountEnrollmentLiteArgs): Promise<void>;
619
634
  showLoader(): Promise<void>;
package/dist/index.d.ts CHANGED
@@ -605,6 +605,21 @@ interface MountStatusPaymentArgs {
605
605
  yunoPaymentResult?: YunoConfig['yunoPaymentResult'];
606
606
  yunoError?: YunoConfig['yunoError'];
607
607
  }
608
+ type ContinuePaymentResponse = {
609
+ action: 'REDIRECT_URL';
610
+ type: string;
611
+ redirect: {
612
+ init_url: string;
613
+ success_url: string;
614
+ error_url: string;
615
+ };
616
+ } | null;
617
+ type ContinuePaymentArgs = {
618
+ /**
619
+ * @default true
620
+ */
621
+ showPaymentStatus?: boolean;
622
+ };
608
623
  interface YunoInstance {
609
624
  startCheckout(args: StartCheckoutArgs): Promise<void>;
610
625
  mountCheckout(args: MountCheckoutArgs): Promise<void>;
@@ -613,7 +628,7 @@ interface YunoInstance {
613
628
  updateCheckoutSession(checkout: string): Promise<void>;
614
629
  submitOneTimeTokenForm(): Promise<void>;
615
630
  startPayment(): Promise<void>;
616
- continuePayment(): Promise<void>;
631
+ continuePayment(args?: ContinuePaymentArgs): Promise<ContinuePaymentResponse>;
617
632
  notifyError(): Promise<void>;
618
633
  mountEnrollmentLite(args: MountEnrollmentLiteArgs): Promise<void>;
619
634
  showLoader(): Promise<void>;
@@ -629,4 +644,4 @@ interface Yuno {
629
644
  initialize(publicApiKey: string): Promise<YunoInstance>;
630
645
  }
631
646
 
632
- export { type ButtonTextCard, type CardConfig, type CreateArgsSF, type ExternalPaymentButtons, ExternalPaymentButtonsTypes, type Font, type FormElementSelector, type Language, type LoadingType, type MountCheckoutArgs, type MountCheckoutLiteArgs, type MountEnrollmentLiteArgs, type MountSeamlessCheckoutLiteArgs, type MountStatusPaymentArgs, type OnChangeDataSF, type RenderMode, type SecureFieldInstance, type SecureFieldsArgs, type StartCheckoutArgs, type TextsCustom, type Yuno, type YunoConfig, type YunoInstance, type mountFraudArgs };
647
+ export { type ButtonTextCard, type CardConfig, type ContinuePaymentArgs, type ContinuePaymentResponse, type CreateArgsSF, type ExternalPaymentButtons, ExternalPaymentButtonsTypes, type Font, type FormElementSelector, type Language, type LoadingType, type MountCheckoutArgs, type MountCheckoutLiteArgs, type MountEnrollmentLiteArgs, type MountSeamlessCheckoutLiteArgs, type MountStatusPaymentArgs, type OnChangeDataSF, type RenderMode, type SecureFieldInstance, type SecureFieldsArgs, type StartCheckoutArgs, 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": "3.0.0",
3
+ "version": "3.2.0",
4
4
  "types": "dist/index.d.ts",
5
5
  "type": "module",
6
6
  "publishConfig": {