@yuno-payments/sdk-web-types 4.2.0 → 4.4.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
@@ -87,7 +87,7 @@ declare enum StatusEnrollment {
87
87
  ERROR = "ERROR",
88
88
  UNENROLLED = "UNENROLLED"
89
89
  }
90
- type ExternalProviderId = {
90
+ type ExternalProviderId$1 = {
91
91
  provider_id: string;
92
92
  session_id: string;
93
93
  };
@@ -202,7 +202,7 @@ declare namespace C2PHeadless {
202
202
  checkoutSession: string;
203
203
  language: string;
204
204
  countryCode: string;
205
- deviceFingerprints?: ExternalProviderId[];
205
+ deviceFingerprints?: ExternalProviderId$1[];
206
206
  recognitionToken?: string;
207
207
  isGoldenFlow?: boolean;
208
208
  dpaLocale?: string;
@@ -795,6 +795,16 @@ type ExternalPaymentButtons = {
795
795
  };
796
796
  type LoadingType = "DOCUMENT" | "ONE_TIME_TOKEN";
797
797
  type Language = "es" | "en" | "pt" | "de" | "fil" | "fr" | "id" | "it" | "ms" | "nl" | "pl" | "po" | "ru" | "sv" | "th" | "tr" | "vi" | "zh-CN" | "zh-TW";
798
+ /**
799
+ * Represents the identification details for an external provider.
800
+ *
801
+ * @property provider_id - The unique identifier for the external provider. Such as 'RISKIFIED'
802
+ * @property session_id - The unique identifier associated with the entity within the provider's system.
803
+ */
804
+ type ExternalProviderId = {
805
+ provider_id: string;
806
+ session_id: string;
807
+ };
798
808
  interface YunoConfig {
799
809
  publicApiKey: string;
800
810
  checkoutSession: string;
@@ -843,6 +853,7 @@ interface YunoConfig {
843
853
  isLoading: boolean;
844
854
  type: LoadingType;
845
855
  }): void;
856
+ deviceFingerprints?: ExternalProviderId[];
846
857
  }
847
858
  type StartCheckoutArgs = Omit<YunoConfig, "yunoEnrollmentStatus" | "customerSession" | "publicApiKey">;
848
859
  type MountEnrollmentLiteArgs = Pick<YunoConfig, "language" | "countryCode" | "renderMode" | "yunoEnrollmentStatus" | "yunoError" | "showLoading" | "onRendered" | "onOneTimeTokenCreationStart" | "onLoading" | "customerSession">;
@@ -888,6 +899,16 @@ type ContinuePaymentArgs = {
888
899
  showPaymentStatus?: boolean;
889
900
  };
890
901
  type StartSeamlessCheckoutArgs = Omit<StartCheckoutArgs, "yunoCreatePayment">;
902
+ type ShowLoaderOptions = {
903
+ onRendered?: () => void;
904
+ language?: string;
905
+ };
906
+ type ExternalButton = {
907
+ elementSelector: string;
908
+ paymentMethodType: string;
909
+ checkoutSession?: string;
910
+ };
911
+ type MountSeamlessExternalButtonsArgs = ExternalButton[];
891
912
  interface YunoInstance {
892
913
  startCheckout(args: StartCheckoutArgs): Promise<void>;
893
914
  startSeamlessCheckout(args: StartSeamlessCheckoutArgs): Promise<void>;
@@ -895,13 +916,16 @@ interface YunoInstance {
895
916
  mountSeamlessCheckout(): Promise<void>;
896
917
  mountCheckoutLite(args: MountCheckoutLiteArgs): Promise<void>;
897
918
  mountSeamlessCheckoutLite(args: MountSeamlessCheckoutLiteArgs): Promise<void>;
919
+ mountSeamlessExternalButtons(args: MountSeamlessExternalButtonsArgs): Promise<void>;
920
+ unmountSeamlessExternalButtons(): Promise<void>;
921
+ unmountSeamlessExternalButton(paymentMethodType: string): Promise<void>;
898
922
  updateCheckoutSession(checkout: string): Promise<void>;
899
923
  submitOneTimeTokenForm(): Promise<void>;
900
924
  startPayment(): Promise<void>;
901
925
  continuePayment(args?: ContinuePaymentArgs): Promise<ContinuePaymentResponse>;
902
926
  notifyError(): Promise<void>;
903
927
  mountEnrollmentLite(args: MountEnrollmentLiteArgs): Promise<void>;
904
- showLoader(): Promise<void>;
928
+ showLoader(args?: ShowLoaderOptions): Promise<void>;
905
929
  hideLoader(): Promise<void>;
906
930
  updateCheckoutSession(checkoutSession: string): Promise<void>;
907
931
  mountFraud(args: mountFraudArgs): Promise<void>;
package/dist/index.d.ts CHANGED
@@ -87,7 +87,7 @@ declare enum StatusEnrollment {
87
87
  ERROR = "ERROR",
88
88
  UNENROLLED = "UNENROLLED"
89
89
  }
90
- type ExternalProviderId = {
90
+ type ExternalProviderId$1 = {
91
91
  provider_id: string;
92
92
  session_id: string;
93
93
  };
@@ -202,7 +202,7 @@ declare namespace C2PHeadless {
202
202
  checkoutSession: string;
203
203
  language: string;
204
204
  countryCode: string;
205
- deviceFingerprints?: ExternalProviderId[];
205
+ deviceFingerprints?: ExternalProviderId$1[];
206
206
  recognitionToken?: string;
207
207
  isGoldenFlow?: boolean;
208
208
  dpaLocale?: string;
@@ -795,6 +795,16 @@ type ExternalPaymentButtons = {
795
795
  };
796
796
  type LoadingType = "DOCUMENT" | "ONE_TIME_TOKEN";
797
797
  type Language = "es" | "en" | "pt" | "de" | "fil" | "fr" | "id" | "it" | "ms" | "nl" | "pl" | "po" | "ru" | "sv" | "th" | "tr" | "vi" | "zh-CN" | "zh-TW";
798
+ /**
799
+ * Represents the identification details for an external provider.
800
+ *
801
+ * @property provider_id - The unique identifier for the external provider. Such as 'RISKIFIED'
802
+ * @property session_id - The unique identifier associated with the entity within the provider's system.
803
+ */
804
+ type ExternalProviderId = {
805
+ provider_id: string;
806
+ session_id: string;
807
+ };
798
808
  interface YunoConfig {
799
809
  publicApiKey: string;
800
810
  checkoutSession: string;
@@ -843,6 +853,7 @@ interface YunoConfig {
843
853
  isLoading: boolean;
844
854
  type: LoadingType;
845
855
  }): void;
856
+ deviceFingerprints?: ExternalProviderId[];
846
857
  }
847
858
  type StartCheckoutArgs = Omit<YunoConfig, "yunoEnrollmentStatus" | "customerSession" | "publicApiKey">;
848
859
  type MountEnrollmentLiteArgs = Pick<YunoConfig, "language" | "countryCode" | "renderMode" | "yunoEnrollmentStatus" | "yunoError" | "showLoading" | "onRendered" | "onOneTimeTokenCreationStart" | "onLoading" | "customerSession">;
@@ -888,6 +899,16 @@ type ContinuePaymentArgs = {
888
899
  showPaymentStatus?: boolean;
889
900
  };
890
901
  type StartSeamlessCheckoutArgs = Omit<StartCheckoutArgs, "yunoCreatePayment">;
902
+ type ShowLoaderOptions = {
903
+ onRendered?: () => void;
904
+ language?: string;
905
+ };
906
+ type ExternalButton = {
907
+ elementSelector: string;
908
+ paymentMethodType: string;
909
+ checkoutSession?: string;
910
+ };
911
+ type MountSeamlessExternalButtonsArgs = ExternalButton[];
891
912
  interface YunoInstance {
892
913
  startCheckout(args: StartCheckoutArgs): Promise<void>;
893
914
  startSeamlessCheckout(args: StartSeamlessCheckoutArgs): Promise<void>;
@@ -895,13 +916,16 @@ interface YunoInstance {
895
916
  mountSeamlessCheckout(): Promise<void>;
896
917
  mountCheckoutLite(args: MountCheckoutLiteArgs): Promise<void>;
897
918
  mountSeamlessCheckoutLite(args: MountSeamlessCheckoutLiteArgs): Promise<void>;
919
+ mountSeamlessExternalButtons(args: MountSeamlessExternalButtonsArgs): Promise<void>;
920
+ unmountSeamlessExternalButtons(): Promise<void>;
921
+ unmountSeamlessExternalButton(paymentMethodType: string): Promise<void>;
898
922
  updateCheckoutSession(checkout: string): Promise<void>;
899
923
  submitOneTimeTokenForm(): Promise<void>;
900
924
  startPayment(): Promise<void>;
901
925
  continuePayment(args?: ContinuePaymentArgs): Promise<ContinuePaymentResponse>;
902
926
  notifyError(): Promise<void>;
903
927
  mountEnrollmentLite(args: MountEnrollmentLiteArgs): Promise<void>;
904
- showLoader(): Promise<void>;
928
+ showLoader(args?: ShowLoaderOptions): Promise<void>;
905
929
  hideLoader(): Promise<void>;
906
930
  updateCheckoutSession(checkoutSession: string): Promise<void>;
907
931
  mountFraud(args: mountFraudArgs): Promise<void>;
@@ -916,4 +940,4 @@ interface Yuno {
916
940
  initialize(publicApiKey: string, applicationSession?: string, options?: InitializeOptions): Promise<YunoInstance>;
917
941
  }
918
942
 
919
- export { type ButtonTextCard, C2PHeadless, type CardConfig, type ContinuePaymentArgs, type ContinuePaymentResponse, type CreateArgsSF, type ExternalPaymentButtons, ExternalPaymentButtonsTypes, type Font, type FormElementSelector, type Language, type LoadingType, type MountCheckoutLiteArgs, type MountEnrollmentLiteArgs, 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 };
943
+ 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 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": "4.2.0",
3
+ "version": "4.4.0",
4
4
  "types": "dist/index.d.ts",
5
5
  "type": "module",
6
6
  "publishConfig": {