@yuno-payments/sdk-web-types 1.16.0-beta.4 → 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 -28
- package/dist/types.ts +10 -29
- 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,7 +313,6 @@ type CreateArgs = {
|
|
|
336
313
|
validationType?: ValidationTypeSecureFields;
|
|
337
314
|
designType?: DesignType;
|
|
338
315
|
errorIcon?: string | null;
|
|
339
|
-
enableFocusAnimation?: boolean;
|
|
340
316
|
};
|
|
341
317
|
cardLoadPreviewConfig?: CardLoadPreviewSecureConfig;
|
|
342
318
|
};
|
|
@@ -407,7 +383,7 @@ interface VaultedToken {
|
|
|
407
383
|
created_at: Date;
|
|
408
384
|
updated_at: Date;
|
|
409
385
|
}
|
|
410
|
-
type CardType = 'CREDIT' | 'DEBIT'
|
|
386
|
+
type CardType = 'CREDIT' | 'DEBIT';
|
|
411
387
|
interface SecureField {
|
|
412
388
|
render(elementSelector: string): Promise<void>;
|
|
413
389
|
focus(): Promise<void>;
|
|
@@ -423,7 +399,7 @@ interface SecureField {
|
|
|
423
399
|
setCardHolderName(value: string): Promise<void>;
|
|
424
400
|
}
|
|
425
401
|
interface SecureFields {
|
|
426
|
-
create({ name, options }:
|
|
402
|
+
create({ name, options }: Create): SecureField;
|
|
427
403
|
getElement({ name }: GetElement): SecureField;
|
|
428
404
|
generateToken(params: GenerateTokenArgs): Promise<string>;
|
|
429
405
|
generateTokenWithInformation(params: GenerateTokenArgs): Promise<OneTimeToken>;
|
|
@@ -489,6 +465,7 @@ type ExternalPaymentButtons = {
|
|
|
489
465
|
};
|
|
490
466
|
type LoadingType = 'DOCUMENT' | 'ONE_TIME_TOKEN';
|
|
491
467
|
type Language = 'es' | 'en' | 'pt';
|
|
468
|
+
type InputDesignType = "float-label" | "float-label-static" | "label-placeholder";
|
|
492
469
|
interface YunoConfig {
|
|
493
470
|
publicApiKey: string;
|
|
494
471
|
checkoutSession: string;
|
|
@@ -511,6 +488,11 @@ interface YunoConfig {
|
|
|
511
488
|
cardFormUnfoldedEnable?: boolean;
|
|
512
489
|
isDynamicViewEnabled?: boolean;
|
|
513
490
|
showOnlyThesePaymentMethods?: string[];
|
|
491
|
+
showPayButton?: boolean;
|
|
492
|
+
keepLoader?: boolean;
|
|
493
|
+
enabledRequiredFields?: boolean;
|
|
494
|
+
enableRedesign?: boolean;
|
|
495
|
+
inputDesignType?: InputDesignType;
|
|
514
496
|
yunoCreatePayment?: (oneTimeToken: string, tokenWithInformation: OneTimeToken) => void;
|
|
515
497
|
yunoPaymentMethodSelected?: (arg: {
|
|
516
498
|
type: string;
|
|
@@ -553,7 +535,6 @@ interface SecureFieldsArgs {
|
|
|
553
535
|
}
|
|
554
536
|
type SecureFieldInstance = SecureFields;
|
|
555
537
|
type OnChangeDataSF = OnChangeArgs['data'];
|
|
556
|
-
type CreateArgsSF = CreateArgs;
|
|
557
538
|
interface MountStatusPaymentArgs {
|
|
558
539
|
checkoutSession: string;
|
|
559
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,7 +313,6 @@ type CreateArgs = {
|
|
|
336
313
|
validationType?: ValidationTypeSecureFields;
|
|
337
314
|
designType?: DesignType;
|
|
338
315
|
errorIcon?: string | null;
|
|
339
|
-
enableFocusAnimation?: boolean;
|
|
340
316
|
};
|
|
341
317
|
cardLoadPreviewConfig?: CardLoadPreviewSecureConfig;
|
|
342
318
|
};
|
|
@@ -407,7 +383,7 @@ interface VaultedToken {
|
|
|
407
383
|
created_at: Date;
|
|
408
384
|
updated_at: Date;
|
|
409
385
|
}
|
|
410
|
-
type CardType = 'CREDIT' | 'DEBIT'
|
|
386
|
+
type CardType = 'CREDIT' | 'DEBIT';
|
|
411
387
|
interface SecureField {
|
|
412
388
|
render(elementSelector: string): Promise<void>;
|
|
413
389
|
focus(): Promise<void>;
|
|
@@ -423,7 +399,7 @@ interface SecureField {
|
|
|
423
399
|
setCardHolderName(value: string): Promise<void>;
|
|
424
400
|
}
|
|
425
401
|
interface SecureFields {
|
|
426
|
-
create({ name, options }:
|
|
402
|
+
create({ name, options }: Create): SecureField;
|
|
427
403
|
getElement({ name }: GetElement): SecureField;
|
|
428
404
|
generateToken(params: GenerateTokenArgs): Promise<string>;
|
|
429
405
|
generateTokenWithInformation(params: GenerateTokenArgs): Promise<OneTimeToken>;
|
|
@@ -489,6 +465,7 @@ type ExternalPaymentButtons = {
|
|
|
489
465
|
};
|
|
490
466
|
type LoadingType = 'DOCUMENT' | 'ONE_TIME_TOKEN';
|
|
491
467
|
type Language = 'es' | 'en' | 'pt';
|
|
468
|
+
type InputDesignType = "float-label" | "float-label-static" | "label-placeholder";
|
|
492
469
|
interface YunoConfig {
|
|
493
470
|
publicApiKey: string;
|
|
494
471
|
checkoutSession: string;
|
|
@@ -511,6 +488,11 @@ interface YunoConfig {
|
|
|
511
488
|
cardFormUnfoldedEnable?: boolean;
|
|
512
489
|
isDynamicViewEnabled?: boolean;
|
|
513
490
|
showOnlyThesePaymentMethods?: string[];
|
|
491
|
+
showPayButton?: boolean;
|
|
492
|
+
keepLoader?: boolean;
|
|
493
|
+
enabledRequiredFields?: boolean;
|
|
494
|
+
enableRedesign?: boolean;
|
|
495
|
+
inputDesignType?: InputDesignType;
|
|
514
496
|
yunoCreatePayment?: (oneTimeToken: string, tokenWithInformation: OneTimeToken) => void;
|
|
515
497
|
yunoPaymentMethodSelected?: (arg: {
|
|
516
498
|
type: string;
|
|
@@ -553,7 +535,6 @@ interface SecureFieldsArgs {
|
|
|
553
535
|
}
|
|
554
536
|
type SecureFieldInstance = SecureFields;
|
|
555
537
|
type OnChangeDataSF = OnChangeArgs['data'];
|
|
556
|
-
type CreateArgsSF = CreateArgs;
|
|
557
538
|
interface MountStatusPaymentArgs {
|
|
558
539
|
checkoutSession: string;
|
|
559
540
|
language: Language;
|
|
@@ -583,4 +564,4 @@ interface Yuno {
|
|
|
583
564
|
initialize(publicApiKey: string): YunoInstance;
|
|
584
565
|
}
|
|
585
566
|
|
|
586
|
-
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 };
|