@yuno-payments/sdk-web-types 1.9.0 → 1.11.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/index.d.ts +6 -1
- package/dist/types.ts +6 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -249,6 +249,7 @@ type OnChangeArgs = {
|
|
|
249
249
|
};
|
|
250
250
|
};
|
|
251
251
|
type ValidationTypeSecureFields = 'on_change' | 'on_blur' | 'on_blur_full';
|
|
252
|
+
type DesignType = 'float-label' | 'float-label-static' | 'label-placeholder';
|
|
252
253
|
type Create = {
|
|
253
254
|
name: Name;
|
|
254
255
|
options: {
|
|
@@ -263,6 +264,8 @@ type Create = {
|
|
|
263
264
|
errorMessage?: string;
|
|
264
265
|
requiredErrorMessage?: string;
|
|
265
266
|
validationType?: ValidationTypeSecureFields;
|
|
267
|
+
designType?: DesignType;
|
|
268
|
+
errorIcon?: string | null;
|
|
266
269
|
};
|
|
267
270
|
};
|
|
268
271
|
type GetElement = {
|
|
@@ -341,6 +344,7 @@ interface SecureField {
|
|
|
341
344
|
clearValue(): Promise<void>;
|
|
342
345
|
setError(errorMessage: string): Promise<void>;
|
|
343
346
|
setCardType(cardType: CardType): Promise<void>;
|
|
347
|
+
clearError(): Promise<void>;
|
|
344
348
|
}
|
|
345
349
|
interface SecureFields {
|
|
346
350
|
create({ name, options }: Create): SecureField;
|
|
@@ -468,6 +472,7 @@ interface SecureFieldsArgs {
|
|
|
468
472
|
checkoutSession?: string;
|
|
469
473
|
installmentEnable?: boolean;
|
|
470
474
|
customerSession?: string;
|
|
475
|
+
enableMultipleCard?: string;
|
|
471
476
|
}
|
|
472
477
|
interface MountStatusPaymentArgs {
|
|
473
478
|
checkoutSession: string;
|
|
@@ -490,7 +495,7 @@ interface YunoInstance {
|
|
|
490
495
|
updateCheckoutSession(checkoutSession: string): void;
|
|
491
496
|
mountFraud(args: mountFraudArgs): void;
|
|
492
497
|
mountStatusPayment(args: MountStatusPaymentArgs): void;
|
|
493
|
-
secureFields(
|
|
498
|
+
secureFields(args: SecureFieldsArgs): SecureFields;
|
|
494
499
|
apiClientPayment: ApiClientPayment;
|
|
495
500
|
apiClientEnroll: ApiClientEnroll;
|
|
496
501
|
}
|
package/dist/types.ts
CHANGED
|
@@ -249,6 +249,7 @@ type OnChangeArgs = {
|
|
|
249
249
|
};
|
|
250
250
|
};
|
|
251
251
|
type ValidationTypeSecureFields = 'on_change' | 'on_blur' | 'on_blur_full';
|
|
252
|
+
type DesignType = 'float-label' | 'float-label-static' | 'label-placeholder';
|
|
252
253
|
type Create = {
|
|
253
254
|
name: Name;
|
|
254
255
|
options: {
|
|
@@ -263,6 +264,8 @@ type Create = {
|
|
|
263
264
|
errorMessage?: string;
|
|
264
265
|
requiredErrorMessage?: string;
|
|
265
266
|
validationType?: ValidationTypeSecureFields;
|
|
267
|
+
designType?: DesignType;
|
|
268
|
+
errorIcon?: string | null;
|
|
266
269
|
};
|
|
267
270
|
};
|
|
268
271
|
type GetElement = {
|
|
@@ -341,6 +344,7 @@ interface SecureField {
|
|
|
341
344
|
clearValue(): Promise<void>;
|
|
342
345
|
setError(errorMessage: string): Promise<void>;
|
|
343
346
|
setCardType(cardType: CardType): Promise<void>;
|
|
347
|
+
clearError(): Promise<void>;
|
|
344
348
|
}
|
|
345
349
|
interface SecureFields {
|
|
346
350
|
create({ name, options }: Create): SecureField;
|
|
@@ -468,6 +472,7 @@ interface SecureFieldsArgs {
|
|
|
468
472
|
checkoutSession?: string;
|
|
469
473
|
installmentEnable?: boolean;
|
|
470
474
|
customerSession?: string;
|
|
475
|
+
enableMultipleCard?: string;
|
|
471
476
|
}
|
|
472
477
|
interface MountStatusPaymentArgs {
|
|
473
478
|
checkoutSession: string;
|
|
@@ -490,7 +495,7 @@ interface YunoInstance {
|
|
|
490
495
|
updateCheckoutSession(checkoutSession: string): void;
|
|
491
496
|
mountFraud(args: mountFraudArgs): void;
|
|
492
497
|
mountStatusPayment(args: MountStatusPaymentArgs): void;
|
|
493
|
-
secureFields(
|
|
498
|
+
secureFields(args: SecureFieldsArgs): SecureFields;
|
|
494
499
|
apiClientPayment: ApiClientPayment;
|
|
495
500
|
apiClientEnroll: ApiClientEnroll;
|
|
496
501
|
}
|