@yuno-payments/sdk-web-types 3.1.0 → 3.3.0-beta.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
@@ -352,6 +352,7 @@ type CreateArgs = {
352
352
  enableFocusAnimation?: boolean;
353
353
  defaultCardConfig?: CardConfig$1;
354
354
  externalFonts?: ExternalFont[];
355
+ inputMode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search";
355
356
  };
356
357
  cardLoadPreviewConfig?: CardLoadPreviewSecureConfig;
357
358
  };
@@ -614,15 +615,25 @@ type ContinuePaymentResponse = {
614
615
  error_url: string;
615
616
  };
616
617
  } | null;
618
+ type ContinuePaymentArgs = {
619
+ /**
620
+ * @default true
621
+ */
622
+ showPaymentStatus?: boolean;
623
+ };
624
+ type StartSeamlessCheckoutArgs = Omit<StartCheckoutArgs, 'yunoCreatePayment'>;
625
+ type MountSeamlessCheckoutArgs = MountCheckoutArgs;
617
626
  interface YunoInstance {
618
627
  startCheckout(args: StartCheckoutArgs): Promise<void>;
619
- mountCheckout(args: MountCheckoutArgs): Promise<void>;
628
+ startSeamlessCheckout(args: StartSeamlessCheckoutArgs): Promise<void>;
629
+ mountCheckout(args?: MountCheckoutArgs): Promise<void>;
630
+ mountSeamlessCheckout(args?: MountSeamlessCheckoutArgs): Promise<void>;
620
631
  mountCheckoutLite(args: MountCheckoutLiteArgs): Promise<void>;
621
632
  mountSeamlessCheckoutLite(args: MountSeamlessCheckoutLiteArgs): Promise<void>;
622
633
  updateCheckoutSession(checkout: string): Promise<void>;
623
634
  submitOneTimeTokenForm(): Promise<void>;
624
635
  startPayment(): Promise<void>;
625
- continuePayment(): Promise<ContinuePaymentResponse>;
636
+ continuePayment(args?: ContinuePaymentArgs): Promise<ContinuePaymentResponse>;
626
637
  notifyError(): Promise<void>;
627
638
  mountEnrollmentLite(args: MountEnrollmentLiteArgs): Promise<void>;
628
639
  showLoader(): Promise<void>;
package/dist/index.d.ts CHANGED
@@ -352,6 +352,7 @@ type CreateArgs = {
352
352
  enableFocusAnimation?: boolean;
353
353
  defaultCardConfig?: CardConfig$1;
354
354
  externalFonts?: ExternalFont[];
355
+ inputMode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search";
355
356
  };
356
357
  cardLoadPreviewConfig?: CardLoadPreviewSecureConfig;
357
358
  };
@@ -614,15 +615,25 @@ type ContinuePaymentResponse = {
614
615
  error_url: string;
615
616
  };
616
617
  } | null;
618
+ type ContinuePaymentArgs = {
619
+ /**
620
+ * @default true
621
+ */
622
+ showPaymentStatus?: boolean;
623
+ };
624
+ type StartSeamlessCheckoutArgs = Omit<StartCheckoutArgs, 'yunoCreatePayment'>;
625
+ type MountSeamlessCheckoutArgs = MountCheckoutArgs;
617
626
  interface YunoInstance {
618
627
  startCheckout(args: StartCheckoutArgs): Promise<void>;
619
- mountCheckout(args: MountCheckoutArgs): Promise<void>;
628
+ startSeamlessCheckout(args: StartSeamlessCheckoutArgs): Promise<void>;
629
+ mountCheckout(args?: MountCheckoutArgs): Promise<void>;
630
+ mountSeamlessCheckout(args?: MountSeamlessCheckoutArgs): Promise<void>;
620
631
  mountCheckoutLite(args: MountCheckoutLiteArgs): Promise<void>;
621
632
  mountSeamlessCheckoutLite(args: MountSeamlessCheckoutLiteArgs): Promise<void>;
622
633
  updateCheckoutSession(checkout: string): Promise<void>;
623
634
  submitOneTimeTokenForm(): Promise<void>;
624
635
  startPayment(): Promise<void>;
625
- continuePayment(): Promise<ContinuePaymentResponse>;
636
+ continuePayment(args?: ContinuePaymentArgs): Promise<ContinuePaymentResponse>;
626
637
  notifyError(): Promise<void>;
627
638
  mountEnrollmentLite(args: MountEnrollmentLiteArgs): Promise<void>;
628
639
  showLoader(): Promise<void>;
@@ -638,4 +649,4 @@ interface Yuno {
638
649
  initialize(publicApiKey: string): Promise<YunoInstance>;
639
650
  }
640
651
 
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 };
652
+ 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 MountSeamlessCheckoutArgs, type MountSeamlessCheckoutLiteArgs, type MountStatusPaymentArgs, type OnChangeDataSF, type RenderMode, 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": "3.1.0",
3
+ "version": "3.3.0-beta.1",
4
4
  "types": "dist/index.d.ts",
5
5
  "type": "module",
6
6
  "publishConfig": {