@yuno-payments/sdk-web-types 1.16.0-beta.2 → 1.16.0-beta.4

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 CHANGED
@@ -320,7 +320,7 @@ type CardLoadPreviewSecureConfig = {
320
320
  };
321
321
  type ValidationTypeSecureFields = 'on_change' | 'on_blur' | 'on_blur_full';
322
322
  type DesignType = 'float-label' | 'float-label-static' | 'label-placeholder';
323
- type Create = {
323
+ type CreateArgs = {
324
324
  name: Name;
325
325
  options: {
326
326
  label?: string;
@@ -407,7 +407,7 @@ interface VaultedToken {
407
407
  created_at: Date;
408
408
  updated_at: Date;
409
409
  }
410
- type CardType = 'CREDIT' | 'DEBIT';
410
+ type CardType = 'CREDIT' | 'DEBIT' | 'VOUCHER';
411
411
  interface SecureField {
412
412
  render(elementSelector: string): Promise<void>;
413
413
  focus(): Promise<void>;
@@ -423,7 +423,7 @@ interface SecureField {
423
423
  setCardHolderName(value: string): Promise<void>;
424
424
  }
425
425
  interface SecureFields {
426
- create({ name, options }: Create): SecureField;
426
+ create({ name, options }: CreateArgs): SecureField;
427
427
  getElement({ name }: GetElement): SecureField;
428
428
  generateToken(params: GenerateTokenArgs): Promise<string>;
429
429
  generateTokenWithInformation(params: GenerateTokenArgs): Promise<OneTimeToken>;
@@ -553,6 +553,7 @@ interface SecureFieldsArgs {
553
553
  }
554
554
  type SecureFieldInstance = SecureFields;
555
555
  type OnChangeDataSF = OnChangeArgs['data'];
556
+ type CreateArgsSF = CreateArgs;
556
557
  interface MountStatusPaymentArgs {
557
558
  checkoutSession: string;
558
559
  language: Language;
package/dist/types.ts CHANGED
@@ -320,7 +320,7 @@ type CardLoadPreviewSecureConfig = {
320
320
  };
321
321
  type ValidationTypeSecureFields = 'on_change' | 'on_blur' | 'on_blur_full';
322
322
  type DesignType = 'float-label' | 'float-label-static' | 'label-placeholder';
323
- type Create = {
323
+ type CreateArgs = {
324
324
  name: Name;
325
325
  options: {
326
326
  label?: string;
@@ -407,7 +407,7 @@ interface VaultedToken {
407
407
  created_at: Date;
408
408
  updated_at: Date;
409
409
  }
410
- type CardType = 'CREDIT' | 'DEBIT';
410
+ type CardType = 'CREDIT' | 'DEBIT' | 'VOUCHER';
411
411
  interface SecureField {
412
412
  render(elementSelector: string): Promise<void>;
413
413
  focus(): Promise<void>;
@@ -423,7 +423,7 @@ interface SecureField {
423
423
  setCardHolderName(value: string): Promise<void>;
424
424
  }
425
425
  interface SecureFields {
426
- create({ name, options }: Create): SecureField;
426
+ create({ name, options }: CreateArgs): SecureField;
427
427
  getElement({ name }: GetElement): SecureField;
428
428
  generateToken(params: GenerateTokenArgs): Promise<string>;
429
429
  generateTokenWithInformation(params: GenerateTokenArgs): Promise<OneTimeToken>;
@@ -553,6 +553,7 @@ interface SecureFieldsArgs {
553
553
  }
554
554
  type SecureFieldInstance = SecureFields;
555
555
  type OnChangeDataSF = OnChangeArgs['data'];
556
+ type CreateArgsSF = CreateArgs;
556
557
  interface MountStatusPaymentArgs {
557
558
  checkoutSession: string;
558
559
  language: Language;
@@ -582,4 +583,4 @@ interface Yuno {
582
583
  initialize(publicApiKey: string): YunoInstance;
583
584
  }
584
585
 
585
- 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 };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yuno-payments/sdk-web-types",
3
- "version": "1.16.0-beta.2",
3
+ "version": "1.16.0-beta.4",
4
4
  "types": "dist/index.d.ts",
5
5
  "main": "dist/types.ts",
6
6
  "type": "commonjs",