@yuno-payments/sdk-web-types 3.1.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
@@ -614,6 +614,12 @@ type ContinuePaymentResponse = {
614
614
  error_url: string;
615
615
  };
616
616
  } | null;
617
+ type ContinuePaymentArgs = {
618
+ /**
619
+ * @default true
620
+ */
621
+ showPaymentStatus?: boolean;
622
+ };
617
623
  interface YunoInstance {
618
624
  startCheckout(args: StartCheckoutArgs): Promise<void>;
619
625
  mountCheckout(args: MountCheckoutArgs): Promise<void>;
@@ -622,7 +628,7 @@ interface YunoInstance {
622
628
  updateCheckoutSession(checkout: string): Promise<void>;
623
629
  submitOneTimeTokenForm(): Promise<void>;
624
630
  startPayment(): Promise<void>;
625
- continuePayment(): Promise<ContinuePaymentResponse>;
631
+ continuePayment(args?: ContinuePaymentArgs): Promise<ContinuePaymentResponse>;
626
632
  notifyError(): Promise<void>;
627
633
  mountEnrollmentLite(args: MountEnrollmentLiteArgs): Promise<void>;
628
634
  showLoader(): Promise<void>;
package/dist/index.d.ts CHANGED
@@ -614,6 +614,12 @@ type ContinuePaymentResponse = {
614
614
  error_url: string;
615
615
  };
616
616
  } | null;
617
+ type ContinuePaymentArgs = {
618
+ /**
619
+ * @default true
620
+ */
621
+ showPaymentStatus?: boolean;
622
+ };
617
623
  interface YunoInstance {
618
624
  startCheckout(args: StartCheckoutArgs): Promise<void>;
619
625
  mountCheckout(args: MountCheckoutArgs): Promise<void>;
@@ -622,7 +628,7 @@ interface YunoInstance {
622
628
  updateCheckoutSession(checkout: string): Promise<void>;
623
629
  submitOneTimeTokenForm(): Promise<void>;
624
630
  startPayment(): Promise<void>;
625
- continuePayment(): Promise<ContinuePaymentResponse>;
631
+ continuePayment(args?: ContinuePaymentArgs): Promise<ContinuePaymentResponse>;
626
632
  notifyError(): Promise<void>;
627
633
  mountEnrollmentLite(args: MountEnrollmentLiteArgs): Promise<void>;
628
634
  showLoader(): Promise<void>;
@@ -638,4 +644,4 @@ interface Yuno {
638
644
  initialize(publicApiKey: string): Promise<YunoInstance>;
639
645
  }
640
646
 
641
- export { type ButtonTextCard, type CardConfig, 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 };
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.1.0",
3
+ "version": "3.2.0",
4
4
  "types": "dist/index.d.ts",
5
5
  "type": "module",
6
6
  "publishConfig": {