@yuno-payments/sdk-web-types 1.16.0-beta.5 → 1.16.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 +9 -29
- package/dist/types.ts +10 -30
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -274,28 +274,6 @@ type CardConfig$1 = {
|
|
|
274
274
|
signatureLineColor: string;
|
|
275
275
|
};
|
|
276
276
|
};
|
|
277
|
-
type InstallmentTypesList = {
|
|
278
|
-
type: string;
|
|
279
|
-
description: string;
|
|
280
|
-
id: string;
|
|
281
|
-
};
|
|
282
|
-
interface FullInstallmentInfo {
|
|
283
|
-
installment: number;
|
|
284
|
-
rate: string;
|
|
285
|
-
amount?: {
|
|
286
|
-
currency: string;
|
|
287
|
-
value: string;
|
|
288
|
-
total_value: string;
|
|
289
|
-
};
|
|
290
|
-
type?: string;
|
|
291
|
-
first_installment_deferral?: string;
|
|
292
|
-
}
|
|
293
|
-
interface FullInstallmentsInfo {
|
|
294
|
-
installments: FullInstallmentInfo[];
|
|
295
|
-
id: string;
|
|
296
|
-
filter_by?: string;
|
|
297
|
-
types_list?: InstallmentTypesList[];
|
|
298
|
-
}
|
|
299
277
|
type OnChangeArgs = {
|
|
300
278
|
error: boolean;
|
|
301
279
|
data?: {
|
|
@@ -304,7 +282,6 @@ type OnChangeArgs = {
|
|
|
304
282
|
isCardIINLoading: boolean;
|
|
305
283
|
isInstallmentLoading: boolean;
|
|
306
284
|
cardConfig: CardConfig$1 | null;
|
|
307
|
-
fullInstallmentsInfo?: FullInstallmentsInfo;
|
|
308
285
|
};
|
|
309
286
|
};
|
|
310
287
|
type CardLoadPreviewSecureConfig = {
|
|
@@ -320,7 +297,7 @@ type CardLoadPreviewSecureConfig = {
|
|
|
320
297
|
};
|
|
321
298
|
type ValidationTypeSecureFields = 'on_change' | 'on_blur' | 'on_blur_full';
|
|
322
299
|
type DesignType = 'float-label' | 'float-label-static' | 'label-placeholder';
|
|
323
|
-
type
|
|
300
|
+
type Create = {
|
|
324
301
|
name: Name;
|
|
325
302
|
options: {
|
|
326
303
|
label?: string;
|
|
@@ -336,8 +313,6 @@ type CreateArgs = {
|
|
|
336
313
|
validationType?: ValidationTypeSecureFields;
|
|
337
314
|
designType?: DesignType;
|
|
338
315
|
errorIcon?: string | null;
|
|
339
|
-
enableFocusAnimation?: boolean;
|
|
340
|
-
defaultCardConfig?: CardConfig$1;
|
|
341
316
|
};
|
|
342
317
|
cardLoadPreviewConfig?: CardLoadPreviewSecureConfig;
|
|
343
318
|
};
|
|
@@ -408,7 +383,7 @@ interface VaultedToken {
|
|
|
408
383
|
created_at: Date;
|
|
409
384
|
updated_at: Date;
|
|
410
385
|
}
|
|
411
|
-
type CardType = 'CREDIT' | 'DEBIT'
|
|
386
|
+
type CardType = 'CREDIT' | 'DEBIT';
|
|
412
387
|
interface SecureField {
|
|
413
388
|
render(elementSelector: string): Promise<void>;
|
|
414
389
|
focus(): Promise<void>;
|
|
@@ -424,7 +399,7 @@ interface SecureField {
|
|
|
424
399
|
setCardHolderName(value: string): Promise<void>;
|
|
425
400
|
}
|
|
426
401
|
interface SecureFields {
|
|
427
|
-
create({ name, options }:
|
|
402
|
+
create({ name, options }: Create): SecureField;
|
|
428
403
|
getElement({ name }: GetElement): SecureField;
|
|
429
404
|
generateToken(params: GenerateTokenArgs): Promise<string>;
|
|
430
405
|
generateTokenWithInformation(params: GenerateTokenArgs): Promise<OneTimeToken>;
|
|
@@ -490,6 +465,7 @@ type ExternalPaymentButtons = {
|
|
|
490
465
|
};
|
|
491
466
|
type LoadingType = 'DOCUMENT' | 'ONE_TIME_TOKEN';
|
|
492
467
|
type Language = 'es' | 'en' | 'pt';
|
|
468
|
+
type InputDesignType = "float-label" | "float-label-static" | "label-placeholder";
|
|
493
469
|
interface YunoConfig {
|
|
494
470
|
publicApiKey: string;
|
|
495
471
|
checkoutSession: string;
|
|
@@ -512,6 +488,11 @@ interface YunoConfig {
|
|
|
512
488
|
cardFormUnfoldedEnable?: boolean;
|
|
513
489
|
isDynamicViewEnabled?: boolean;
|
|
514
490
|
showOnlyThesePaymentMethods?: string[];
|
|
491
|
+
showPayButton?: boolean;
|
|
492
|
+
keepLoader?: boolean;
|
|
493
|
+
enabledRequiredFields?: boolean;
|
|
494
|
+
enableRedesign?: boolean;
|
|
495
|
+
inputDesignType?: InputDesignType;
|
|
515
496
|
yunoCreatePayment?: (oneTimeToken: string, tokenWithInformation: OneTimeToken) => void;
|
|
516
497
|
yunoPaymentMethodSelected?: (arg: {
|
|
517
498
|
type: string;
|
|
@@ -554,7 +535,6 @@ interface SecureFieldsArgs {
|
|
|
554
535
|
}
|
|
555
536
|
type SecureFieldInstance = SecureFields;
|
|
556
537
|
type OnChangeDataSF = OnChangeArgs['data'];
|
|
557
|
-
type CreateArgsSF = CreateArgs;
|
|
558
538
|
interface MountStatusPaymentArgs {
|
|
559
539
|
checkoutSession: string;
|
|
560
540
|
language: Language;
|
package/dist/types.ts
CHANGED
|
@@ -274,28 +274,6 @@ type CardConfig$1 = {
|
|
|
274
274
|
signatureLineColor: string;
|
|
275
275
|
};
|
|
276
276
|
};
|
|
277
|
-
type InstallmentTypesList = {
|
|
278
|
-
type: string;
|
|
279
|
-
description: string;
|
|
280
|
-
id: string;
|
|
281
|
-
};
|
|
282
|
-
interface FullInstallmentInfo {
|
|
283
|
-
installment: number;
|
|
284
|
-
rate: string;
|
|
285
|
-
amount?: {
|
|
286
|
-
currency: string;
|
|
287
|
-
value: string;
|
|
288
|
-
total_value: string;
|
|
289
|
-
};
|
|
290
|
-
type?: string;
|
|
291
|
-
first_installment_deferral?: string;
|
|
292
|
-
}
|
|
293
|
-
interface FullInstallmentsInfo {
|
|
294
|
-
installments: FullInstallmentInfo[];
|
|
295
|
-
id: string;
|
|
296
|
-
filter_by?: string;
|
|
297
|
-
types_list?: InstallmentTypesList[];
|
|
298
|
-
}
|
|
299
277
|
type OnChangeArgs = {
|
|
300
278
|
error: boolean;
|
|
301
279
|
data?: {
|
|
@@ -304,7 +282,6 @@ type OnChangeArgs = {
|
|
|
304
282
|
isCardIINLoading: boolean;
|
|
305
283
|
isInstallmentLoading: boolean;
|
|
306
284
|
cardConfig: CardConfig$1 | null;
|
|
307
|
-
fullInstallmentsInfo?: FullInstallmentsInfo;
|
|
308
285
|
};
|
|
309
286
|
};
|
|
310
287
|
type CardLoadPreviewSecureConfig = {
|
|
@@ -320,7 +297,7 @@ type CardLoadPreviewSecureConfig = {
|
|
|
320
297
|
};
|
|
321
298
|
type ValidationTypeSecureFields = 'on_change' | 'on_blur' | 'on_blur_full';
|
|
322
299
|
type DesignType = 'float-label' | 'float-label-static' | 'label-placeholder';
|
|
323
|
-
type
|
|
300
|
+
type Create = {
|
|
324
301
|
name: Name;
|
|
325
302
|
options: {
|
|
326
303
|
label?: string;
|
|
@@ -336,8 +313,6 @@ type CreateArgs = {
|
|
|
336
313
|
validationType?: ValidationTypeSecureFields;
|
|
337
314
|
designType?: DesignType;
|
|
338
315
|
errorIcon?: string | null;
|
|
339
|
-
enableFocusAnimation?: boolean;
|
|
340
|
-
defaultCardConfig?: CardConfig$1;
|
|
341
316
|
};
|
|
342
317
|
cardLoadPreviewConfig?: CardLoadPreviewSecureConfig;
|
|
343
318
|
};
|
|
@@ -408,7 +383,7 @@ interface VaultedToken {
|
|
|
408
383
|
created_at: Date;
|
|
409
384
|
updated_at: Date;
|
|
410
385
|
}
|
|
411
|
-
type CardType = 'CREDIT' | 'DEBIT'
|
|
386
|
+
type CardType = 'CREDIT' | 'DEBIT';
|
|
412
387
|
interface SecureField {
|
|
413
388
|
render(elementSelector: string): Promise<void>;
|
|
414
389
|
focus(): Promise<void>;
|
|
@@ -424,7 +399,7 @@ interface SecureField {
|
|
|
424
399
|
setCardHolderName(value: string): Promise<void>;
|
|
425
400
|
}
|
|
426
401
|
interface SecureFields {
|
|
427
|
-
create({ name, options }:
|
|
402
|
+
create({ name, options }: Create): SecureField;
|
|
428
403
|
getElement({ name }: GetElement): SecureField;
|
|
429
404
|
generateToken(params: GenerateTokenArgs): Promise<string>;
|
|
430
405
|
generateTokenWithInformation(params: GenerateTokenArgs): Promise<OneTimeToken>;
|
|
@@ -490,6 +465,7 @@ type ExternalPaymentButtons = {
|
|
|
490
465
|
};
|
|
491
466
|
type LoadingType = 'DOCUMENT' | 'ONE_TIME_TOKEN';
|
|
492
467
|
type Language = 'es' | 'en' | 'pt';
|
|
468
|
+
type InputDesignType = "float-label" | "float-label-static" | "label-placeholder";
|
|
493
469
|
interface YunoConfig {
|
|
494
470
|
publicApiKey: string;
|
|
495
471
|
checkoutSession: string;
|
|
@@ -512,6 +488,11 @@ interface YunoConfig {
|
|
|
512
488
|
cardFormUnfoldedEnable?: boolean;
|
|
513
489
|
isDynamicViewEnabled?: boolean;
|
|
514
490
|
showOnlyThesePaymentMethods?: string[];
|
|
491
|
+
showPayButton?: boolean;
|
|
492
|
+
keepLoader?: boolean;
|
|
493
|
+
enabledRequiredFields?: boolean;
|
|
494
|
+
enableRedesign?: boolean;
|
|
495
|
+
inputDesignType?: InputDesignType;
|
|
515
496
|
yunoCreatePayment?: (oneTimeToken: string, tokenWithInformation: OneTimeToken) => void;
|
|
516
497
|
yunoPaymentMethodSelected?: (arg: {
|
|
517
498
|
type: string;
|
|
@@ -554,7 +535,6 @@ interface SecureFieldsArgs {
|
|
|
554
535
|
}
|
|
555
536
|
type SecureFieldInstance = SecureFields;
|
|
556
537
|
type OnChangeDataSF = OnChangeArgs['data'];
|
|
557
|
-
type CreateArgsSF = CreateArgs;
|
|
558
538
|
interface MountStatusPaymentArgs {
|
|
559
539
|
checkoutSession: string;
|
|
560
540
|
language: Language;
|
|
@@ -584,4 +564,4 @@ interface Yuno {
|
|
|
584
564
|
initialize(publicApiKey: string): YunoInstance;
|
|
585
565
|
}
|
|
586
566
|
|
|
587
|
-
export { type ButtonTextCard, type CardConfig, type
|
|
567
|
+
export { type ButtonTextCard, type CardConfig, type ExternalPaymentButtons, ExternalPaymentButtonsTypes, type FormElementSelector, type InputDesignType, 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 };
|