@yuno-payments/sdk-web-types 3.3.0-beta.3 → 3.5.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 +32 -1
- package/dist/index.d.ts +32 -1
- package/package.json +1 -1
package/dist/global.d.ts
CHANGED
|
@@ -206,6 +206,36 @@ type ApiClientEnrollReturn = {
|
|
|
206
206
|
};
|
|
207
207
|
type ApiClientEnroll = (args: ApiClientEnrollArgs) => Promise<ApiClientEnrollReturn>;
|
|
208
208
|
|
|
209
|
+
type DeviceFingerprint = {
|
|
210
|
+
providerId: string;
|
|
211
|
+
sessionId: string;
|
|
212
|
+
};
|
|
213
|
+
type ExecuteFraudCheckArgs = {
|
|
214
|
+
checkoutSession: string;
|
|
215
|
+
/**
|
|
216
|
+
* @default 'CARD'
|
|
217
|
+
*/
|
|
218
|
+
paymentType?: string;
|
|
219
|
+
};
|
|
220
|
+
type ExecuteFraudCheckReturn<TStatus = 'success' | 'error'> = TStatus extends 'success' ? {
|
|
221
|
+
status: TStatus;
|
|
222
|
+
deviceFingerprints: DeviceFingerprint[];
|
|
223
|
+
} : {
|
|
224
|
+
status: TStatus;
|
|
225
|
+
error: Error;
|
|
226
|
+
deviceFingerprints: [];
|
|
227
|
+
};
|
|
228
|
+
type ExecuteFraudCheck = (args: ExecuteFraudCheckArgs) => Promise<ExecuteFraudCheckReturn>;
|
|
229
|
+
|
|
230
|
+
type CookieKey = 'deviceId';
|
|
231
|
+
type CookieConfig = {
|
|
232
|
+
name: string;
|
|
233
|
+
};
|
|
234
|
+
type CookiesConfig = Record<CookieKey, CookieConfig>;
|
|
235
|
+
type InitializeOptions = {
|
|
236
|
+
cookies: CookiesConfig | undefined;
|
|
237
|
+
};
|
|
238
|
+
|
|
209
239
|
type Status = 'FAIL' | 'REJECT' | 'SUCCEEDED' | 'PROCESSING' | 'READY';
|
|
210
240
|
type EnrollmentStatus = 'CREATED' | 'EXPIRED' | 'REJECTED' | 'READY_TO_ENROLL' | 'ENROLL_IN_PROCESS' | 'UNENROLL_IN_PROCESS' | 'ENROLLED' | 'DECLINED' | 'CANCELED' | 'ERROR' | 'UNENROLLED';
|
|
211
241
|
|
|
@@ -645,9 +675,10 @@ interface YunoInstance {
|
|
|
645
675
|
secureFields(args: SecureFieldsArgs): Promise<SecureFieldInstance>;
|
|
646
676
|
apiClientPayment: ApiClientPayment;
|
|
647
677
|
apiClientEnroll: ApiClientEnroll;
|
|
678
|
+
executeFraudCheck: ExecuteFraudCheck;
|
|
648
679
|
}
|
|
649
680
|
interface Yuno {
|
|
650
|
-
initialize(publicApiKey: string): Promise<YunoInstance>;
|
|
681
|
+
initialize(publicApiKey: string, applicationSession?: string, options?: InitializeOptions): Promise<YunoInstance>;
|
|
651
682
|
}
|
|
652
683
|
|
|
653
684
|
declare const Yuno: Yuno;
|
package/dist/index.d.ts
CHANGED
|
@@ -206,6 +206,36 @@ type ApiClientEnrollReturn = {
|
|
|
206
206
|
};
|
|
207
207
|
type ApiClientEnroll = (args: ApiClientEnrollArgs) => Promise<ApiClientEnrollReturn>;
|
|
208
208
|
|
|
209
|
+
type DeviceFingerprint = {
|
|
210
|
+
providerId: string;
|
|
211
|
+
sessionId: string;
|
|
212
|
+
};
|
|
213
|
+
type ExecuteFraudCheckArgs = {
|
|
214
|
+
checkoutSession: string;
|
|
215
|
+
/**
|
|
216
|
+
* @default 'CARD'
|
|
217
|
+
*/
|
|
218
|
+
paymentType?: string;
|
|
219
|
+
};
|
|
220
|
+
type ExecuteFraudCheckReturn<TStatus = 'success' | 'error'> = TStatus extends 'success' ? {
|
|
221
|
+
status: TStatus;
|
|
222
|
+
deviceFingerprints: DeviceFingerprint[];
|
|
223
|
+
} : {
|
|
224
|
+
status: TStatus;
|
|
225
|
+
error: Error;
|
|
226
|
+
deviceFingerprints: [];
|
|
227
|
+
};
|
|
228
|
+
type ExecuteFraudCheck = (args: ExecuteFraudCheckArgs) => Promise<ExecuteFraudCheckReturn>;
|
|
229
|
+
|
|
230
|
+
type CookieKey = 'deviceId';
|
|
231
|
+
type CookieConfig = {
|
|
232
|
+
name: string;
|
|
233
|
+
};
|
|
234
|
+
type CookiesConfig = Record<CookieKey, CookieConfig>;
|
|
235
|
+
type InitializeOptions = {
|
|
236
|
+
cookies: CookiesConfig | undefined;
|
|
237
|
+
};
|
|
238
|
+
|
|
209
239
|
type Status = 'FAIL' | 'REJECT' | 'SUCCEEDED' | 'PROCESSING' | 'READY';
|
|
210
240
|
type EnrollmentStatus = 'CREATED' | 'EXPIRED' | 'REJECTED' | 'READY_TO_ENROLL' | 'ENROLL_IN_PROCESS' | 'UNENROLL_IN_PROCESS' | 'ENROLLED' | 'DECLINED' | 'CANCELED' | 'ERROR' | 'UNENROLLED';
|
|
211
241
|
|
|
@@ -645,9 +675,10 @@ interface YunoInstance {
|
|
|
645
675
|
secureFields(args: SecureFieldsArgs): Promise<SecureFieldInstance>;
|
|
646
676
|
apiClientPayment: ApiClientPayment;
|
|
647
677
|
apiClientEnroll: ApiClientEnroll;
|
|
678
|
+
executeFraudCheck: ExecuteFraudCheck;
|
|
648
679
|
}
|
|
649
680
|
interface Yuno {
|
|
650
|
-
initialize(publicApiKey: string): Promise<YunoInstance>;
|
|
681
|
+
initialize(publicApiKey: string, applicationSession?: string, options?: InitializeOptions): Promise<YunoInstance>;
|
|
651
682
|
}
|
|
652
683
|
|
|
653
684
|
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 };
|