@yuno-payments/sdk-web-types 1.20.0 → 1.22.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/index.d.ts +14 -0
- package/dist/types.ts +15 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -205,6 +205,14 @@ type Status = 'FAIL' | 'REJECT' | 'SUCCEEDED' | 'PROCESSING' | 'READY';
|
|
|
205
205
|
type EnrollmentStatus = 'CREATED' | 'EXPIRED' | 'REJECTED' | 'READY_TO_ENROLL' | 'ENROLL_IN_PROCESS' | 'UNENROLL_IN_PROCESS' | 'ENROLLED' | 'DECLINED' | 'CANCELED' | 'ERROR' | 'UNENROLLED';
|
|
206
206
|
|
|
207
207
|
type Name = 'cvv' | 'pan' | 'expiration' | 'cardLoadPreview';
|
|
208
|
+
interface FontFile {
|
|
209
|
+
weight: number;
|
|
210
|
+
url: string;
|
|
211
|
+
}
|
|
212
|
+
interface ExternalFont {
|
|
213
|
+
family_name: string;
|
|
214
|
+
files: FontFile[];
|
|
215
|
+
}
|
|
208
216
|
type Installment = {
|
|
209
217
|
installmentId: string;
|
|
210
218
|
installment: number;
|
|
@@ -338,6 +346,7 @@ type CreateArgs = {
|
|
|
338
346
|
errorIcon?: string | null;
|
|
339
347
|
enableFocusAnimation?: boolean;
|
|
340
348
|
defaultCardConfig?: CardConfig$1;
|
|
349
|
+
externalFonts?: ExternalFont[];
|
|
341
350
|
};
|
|
342
351
|
cardLoadPreviewConfig?: CardLoadPreviewSecureConfig;
|
|
343
352
|
};
|
|
@@ -551,6 +560,10 @@ interface MountCheckoutLiteArgs {
|
|
|
551
560
|
paymentMethodType?: string;
|
|
552
561
|
vaultedToken?: string;
|
|
553
562
|
}
|
|
563
|
+
interface MountSeamlessCheckoutLiteArgs {
|
|
564
|
+
paymentMethodType?: string;
|
|
565
|
+
vaultedToken?: string;
|
|
566
|
+
}
|
|
554
567
|
interface SecureFieldsArgs {
|
|
555
568
|
countryCode: string;
|
|
556
569
|
checkoutSession?: string;
|
|
@@ -572,6 +585,7 @@ interface YunoInstance {
|
|
|
572
585
|
startCheckout(args: StartCheckoutArgs): void;
|
|
573
586
|
mountCheckout(args: MountCheckoutArgs): void;
|
|
574
587
|
mountCheckoutLite(args: MountCheckoutLiteArgs): void;
|
|
588
|
+
mountSeamlessCheckoutLite(args: MountSeamlessCheckoutLiteArgs): void;
|
|
575
589
|
updateCheckoutSession(checkout: string): void;
|
|
576
590
|
submitOneTimeTokenForm(): void;
|
|
577
591
|
startPayment(): void;
|
package/dist/types.ts
CHANGED
|
@@ -205,6 +205,14 @@ type Status = 'FAIL' | 'REJECT' | 'SUCCEEDED' | 'PROCESSING' | 'READY';
|
|
|
205
205
|
type EnrollmentStatus = 'CREATED' | 'EXPIRED' | 'REJECTED' | 'READY_TO_ENROLL' | 'ENROLL_IN_PROCESS' | 'UNENROLL_IN_PROCESS' | 'ENROLLED' | 'DECLINED' | 'CANCELED' | 'ERROR' | 'UNENROLLED';
|
|
206
206
|
|
|
207
207
|
type Name = 'cvv' | 'pan' | 'expiration' | 'cardLoadPreview';
|
|
208
|
+
interface FontFile {
|
|
209
|
+
weight: number;
|
|
210
|
+
url: string;
|
|
211
|
+
}
|
|
212
|
+
interface ExternalFont {
|
|
213
|
+
family_name: string;
|
|
214
|
+
files: FontFile[];
|
|
215
|
+
}
|
|
208
216
|
type Installment = {
|
|
209
217
|
installmentId: string;
|
|
210
218
|
installment: number;
|
|
@@ -338,6 +346,7 @@ type CreateArgs = {
|
|
|
338
346
|
errorIcon?: string | null;
|
|
339
347
|
enableFocusAnimation?: boolean;
|
|
340
348
|
defaultCardConfig?: CardConfig$1;
|
|
349
|
+
externalFonts?: ExternalFont[];
|
|
341
350
|
};
|
|
342
351
|
cardLoadPreviewConfig?: CardLoadPreviewSecureConfig;
|
|
343
352
|
};
|
|
@@ -551,6 +560,10 @@ interface MountCheckoutLiteArgs {
|
|
|
551
560
|
paymentMethodType?: string;
|
|
552
561
|
vaultedToken?: string;
|
|
553
562
|
}
|
|
563
|
+
interface MountSeamlessCheckoutLiteArgs {
|
|
564
|
+
paymentMethodType?: string;
|
|
565
|
+
vaultedToken?: string;
|
|
566
|
+
}
|
|
554
567
|
interface SecureFieldsArgs {
|
|
555
568
|
countryCode: string;
|
|
556
569
|
checkoutSession?: string;
|
|
@@ -572,6 +585,7 @@ interface YunoInstance {
|
|
|
572
585
|
startCheckout(args: StartCheckoutArgs): void;
|
|
573
586
|
mountCheckout(args: MountCheckoutArgs): void;
|
|
574
587
|
mountCheckoutLite(args: MountCheckoutLiteArgs): void;
|
|
588
|
+
mountSeamlessCheckoutLite(args: MountSeamlessCheckoutLiteArgs): void;
|
|
575
589
|
updateCheckoutSession(checkout: string): void;
|
|
576
590
|
submitOneTimeTokenForm(): void;
|
|
577
591
|
startPayment(): void;
|
|
@@ -591,4 +605,4 @@ interface Yuno {
|
|
|
591
605
|
initialize(publicApiKey: string): YunoInstance;
|
|
592
606
|
}
|
|
593
607
|
|
|
594
|
-
export { type ButtonTextCard, type CardConfig, type CreateArgsSF, type ExternalPaymentButtons, ExternalPaymentButtonsTypes, type FormElementSelector, type Language, type LoadingType, type MountCheckoutArgs, type MountCheckoutLiteArgs, type MountEnrollmentLiteArgs, type MountStatusPaymentArgs, type OnChangeDataSF, type RenderMode, type SecureFieldInstance, type SecureFieldsArgs, type StartCheckoutArgs, type TextsCustom, type Yuno, type YunoConfig, type YunoInstance, type mountFraudArgs };
|
|
608
|
+
export { type ButtonTextCard, type CardConfig, type CreateArgsSF, type ExternalPaymentButtons, ExternalPaymentButtonsTypes, 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 };
|