@yuno-payments/sdk-web-types 1.16.0-beta.1 → 1.16.0-beta.3
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 +26 -2
- package/dist/types.ts +27 -3
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -274,6 +274,28 @@ 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
|
+
}
|
|
277
299
|
type OnChangeArgs = {
|
|
278
300
|
error: boolean;
|
|
279
301
|
data?: {
|
|
@@ -282,6 +304,7 @@ type OnChangeArgs = {
|
|
|
282
304
|
isCardIINLoading: boolean;
|
|
283
305
|
isInstallmentLoading: boolean;
|
|
284
306
|
cardConfig: CardConfig$1 | null;
|
|
307
|
+
fullInstallmentsInfo?: FullInstallmentsInfo;
|
|
285
308
|
};
|
|
286
309
|
};
|
|
287
310
|
type CardLoadPreviewSecureConfig = {
|
|
@@ -297,7 +320,7 @@ type CardLoadPreviewSecureConfig = {
|
|
|
297
320
|
};
|
|
298
321
|
type ValidationTypeSecureFields = 'on_change' | 'on_blur' | 'on_blur_full';
|
|
299
322
|
type DesignType = 'float-label' | 'float-label-static' | 'label-placeholder';
|
|
300
|
-
type
|
|
323
|
+
type CreateArgs = {
|
|
301
324
|
name: Name;
|
|
302
325
|
options: {
|
|
303
326
|
label?: string;
|
|
@@ -400,7 +423,7 @@ interface SecureField {
|
|
|
400
423
|
setCardHolderName(value: string): Promise<void>;
|
|
401
424
|
}
|
|
402
425
|
interface SecureFields {
|
|
403
|
-
create({ name, options }:
|
|
426
|
+
create({ name, options }: CreateArgs): SecureField;
|
|
404
427
|
getElement({ name }: GetElement): SecureField;
|
|
405
428
|
generateToken(params: GenerateTokenArgs): Promise<string>;
|
|
406
429
|
generateTokenWithInformation(params: GenerateTokenArgs): Promise<OneTimeToken>;
|
|
@@ -530,6 +553,7 @@ interface SecureFieldsArgs {
|
|
|
530
553
|
}
|
|
531
554
|
type SecureFieldInstance = SecureFields;
|
|
532
555
|
type OnChangeDataSF = OnChangeArgs['data'];
|
|
556
|
+
type CreateArgsSF = CreateArgs;
|
|
533
557
|
interface MountStatusPaymentArgs {
|
|
534
558
|
checkoutSession: string;
|
|
535
559
|
language: Language;
|
package/dist/types.ts
CHANGED
|
@@ -274,6 +274,28 @@ 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
|
+
}
|
|
277
299
|
type OnChangeArgs = {
|
|
278
300
|
error: boolean;
|
|
279
301
|
data?: {
|
|
@@ -282,6 +304,7 @@ type OnChangeArgs = {
|
|
|
282
304
|
isCardIINLoading: boolean;
|
|
283
305
|
isInstallmentLoading: boolean;
|
|
284
306
|
cardConfig: CardConfig$1 | null;
|
|
307
|
+
fullInstallmentsInfo?: FullInstallmentsInfo;
|
|
285
308
|
};
|
|
286
309
|
};
|
|
287
310
|
type CardLoadPreviewSecureConfig = {
|
|
@@ -297,7 +320,7 @@ type CardLoadPreviewSecureConfig = {
|
|
|
297
320
|
};
|
|
298
321
|
type ValidationTypeSecureFields = 'on_change' | 'on_blur' | 'on_blur_full';
|
|
299
322
|
type DesignType = 'float-label' | 'float-label-static' | 'label-placeholder';
|
|
300
|
-
type
|
|
323
|
+
type CreateArgs = {
|
|
301
324
|
name: Name;
|
|
302
325
|
options: {
|
|
303
326
|
label?: string;
|
|
@@ -400,7 +423,7 @@ interface SecureField {
|
|
|
400
423
|
setCardHolderName(value: string): Promise<void>;
|
|
401
424
|
}
|
|
402
425
|
interface SecureFields {
|
|
403
|
-
create({ name, options }:
|
|
426
|
+
create({ name, options }: CreateArgs): SecureField;
|
|
404
427
|
getElement({ name }: GetElement): SecureField;
|
|
405
428
|
generateToken(params: GenerateTokenArgs): Promise<string>;
|
|
406
429
|
generateTokenWithInformation(params: GenerateTokenArgs): Promise<OneTimeToken>;
|
|
@@ -530,6 +553,7 @@ interface SecureFieldsArgs {
|
|
|
530
553
|
}
|
|
531
554
|
type SecureFieldInstance = SecureFields;
|
|
532
555
|
type OnChangeDataSF = OnChangeArgs['data'];
|
|
556
|
+
type CreateArgsSF = CreateArgs;
|
|
533
557
|
interface MountStatusPaymentArgs {
|
|
534
558
|
checkoutSession: string;
|
|
535
559
|
language: Language;
|
|
@@ -559,4 +583,4 @@ interface Yuno {
|
|
|
559
583
|
initialize(publicApiKey: string): YunoInstance;
|
|
560
584
|
}
|
|
561
585
|
|
|
562
|
-
export { type ButtonTextCard, type CardConfig, 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 };
|
|
586
|
+
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 };
|