@yuno-payments/sdk-web-types 4.3.0-test.1 → 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 +22 -2
- package/dist/index.d.ts +23 -3
- package/package.json +1 -1
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">;
|
|
@@ -892,6 +903,12 @@ type ShowLoaderOptions = {
|
|
|
892
903
|
onRendered?: () => void;
|
|
893
904
|
language?: string;
|
|
894
905
|
};
|
|
906
|
+
type ExternalButton = {
|
|
907
|
+
elementSelector: string;
|
|
908
|
+
paymentMethodType: string;
|
|
909
|
+
checkoutSession?: string;
|
|
910
|
+
};
|
|
911
|
+
type MountSeamlessExternalButtonsArgs = ExternalButton[];
|
|
895
912
|
interface YunoInstance {
|
|
896
913
|
startCheckout(args: StartCheckoutArgs): Promise<void>;
|
|
897
914
|
startSeamlessCheckout(args: StartSeamlessCheckoutArgs): Promise<void>;
|
|
@@ -899,6 +916,9 @@ interface YunoInstance {
|
|
|
899
916
|
mountSeamlessCheckout(): Promise<void>;
|
|
900
917
|
mountCheckoutLite(args: MountCheckoutLiteArgs): Promise<void>;
|
|
901
918
|
mountSeamlessCheckoutLite(args: MountSeamlessCheckoutLiteArgs): Promise<void>;
|
|
919
|
+
mountSeamlessExternalButtons(args: MountSeamlessExternalButtonsArgs): Promise<void>;
|
|
920
|
+
unmountSeamlessExternalButtons(): Promise<void>;
|
|
921
|
+
unmountSeamlessExternalButton(paymentMethodType: string): Promise<void>;
|
|
902
922
|
updateCheckoutSession(checkout: string): Promise<void>;
|
|
903
923
|
submitOneTimeTokenForm(): Promise<void>;
|
|
904
924
|
startPayment(): 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">;
|
|
@@ -892,6 +903,12 @@ type ShowLoaderOptions = {
|
|
|
892
903
|
onRendered?: () => void;
|
|
893
904
|
language?: string;
|
|
894
905
|
};
|
|
906
|
+
type ExternalButton = {
|
|
907
|
+
elementSelector: string;
|
|
908
|
+
paymentMethodType: string;
|
|
909
|
+
checkoutSession?: string;
|
|
910
|
+
};
|
|
911
|
+
type MountSeamlessExternalButtonsArgs = ExternalButton[];
|
|
895
912
|
interface YunoInstance {
|
|
896
913
|
startCheckout(args: StartCheckoutArgs): Promise<void>;
|
|
897
914
|
startSeamlessCheckout(args: StartSeamlessCheckoutArgs): Promise<void>;
|
|
@@ -899,6 +916,9 @@ interface YunoInstance {
|
|
|
899
916
|
mountSeamlessCheckout(): Promise<void>;
|
|
900
917
|
mountCheckoutLite(args: MountCheckoutLiteArgs): Promise<void>;
|
|
901
918
|
mountSeamlessCheckoutLite(args: MountSeamlessCheckoutLiteArgs): Promise<void>;
|
|
919
|
+
mountSeamlessExternalButtons(args: MountSeamlessExternalButtonsArgs): Promise<void>;
|
|
920
|
+
unmountSeamlessExternalButtons(): Promise<void>;
|
|
921
|
+
unmountSeamlessExternalButton(paymentMethodType: string): Promise<void>;
|
|
902
922
|
updateCheckoutSession(checkout: string): Promise<void>;
|
|
903
923
|
submitOneTimeTokenForm(): Promise<void>;
|
|
904
924
|
startPayment(): Promise<void>;
|
|
@@ -920,4 +940,4 @@ interface Yuno {
|
|
|
920
940
|
initialize(publicApiKey: string, applicationSession?: string, options?: InitializeOptions): Promise<YunoInstance>;
|
|
921
941
|
}
|
|
922
942
|
|
|
923
|
-
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 };
|