@yuno-payments/sdk-web-types 4.0.0 → 4.1.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/global.d.ts CHANGED
@@ -452,7 +452,7 @@ type Font = {
452
452
  };
453
453
  interface CardConfig {
454
454
  styles?: string;
455
- type?: 'extends' | 'step';
455
+ type?: "extends" | "step";
456
456
  cardSaveEnable?: boolean;
457
457
  vaultOnSuccess?: boolean;
458
458
  texts?: ButtonTextCard;
@@ -479,7 +479,7 @@ interface FormElementSelector {
479
479
  actionForm?: string;
480
480
  }
481
481
  interface RenderMode {
482
- type: 'modal' | 'element';
482
+ type: "modal" | "element";
483
483
  elementSelector?: string | FormElementSelector;
484
484
  }
485
485
  declare enum ExternalPaymentButtonsTypes {
@@ -490,15 +490,15 @@ type ExternalPaymentButtons = {
490
490
  elementSelector: string;
491
491
  };
492
492
  };
493
- type LoadingType = 'DOCUMENT' | 'ONE_TIME_TOKEN';
494
- type Language = 'es' | 'en' | 'pt' | 'de' | 'fil' | 'fr' | 'id' | 'it' | 'ms' | 'nl' | 'pl' | 'po' | 'ru' | 'sv' | 'th' | 'tr' | 'vi' | 'zh-CN' | 'zh-TW';
493
+ type LoadingType = "DOCUMENT" | "ONE_TIME_TOKEN";
494
+ type Language = "es" | "en" | "pt" | "de" | "fil" | "fr" | "id" | "it" | "ms" | "nl" | "pl" | "po" | "ru" | "sv" | "th" | "tr" | "vi" | "zh-CN" | "zh-TW";
495
495
  interface YunoConfig {
496
496
  publicApiKey: string;
497
497
  checkoutSession: string;
498
498
  customerSession: string;
499
499
  language: Language;
500
500
  countryCode: string;
501
- elementSelector?: string;
501
+ elementSelector: string;
502
502
  vaultedToken?: string;
503
503
  type?: string;
504
504
  renderMode?: RenderMode;
@@ -520,7 +520,7 @@ interface YunoConfig {
520
520
  isDynamicViewEnabled?: boolean;
521
521
  showOnlyThesePaymentMethods?: string[];
522
522
  showPayButton?: boolean;
523
- yunoCreatePayment?: (oneTimeToken: string, tokenWithInformation: OneTimeToken) => void;
523
+ yunoCreatePayment: (oneTimeToken: string, tokenWithInformation: OneTimeToken) => void;
524
524
  yunoPaymentMethodSelected?: (arg: {
525
525
  type: string;
526
526
  name: string;
@@ -541,11 +541,11 @@ interface YunoConfig {
541
541
  type: LoadingType;
542
542
  }): void;
543
543
  }
544
- type StartCheckoutArgs = Omit<YunoConfig, 'yunoEnrollmentStatus' | 'customerSession' | 'publicApiKey'>;
545
- type MountEnrollmentLiteArgs = Pick<YunoConfig, 'language' | 'countryCode' | 'renderMode' | 'yunoEnrollmentStatus' | 'yunoError' | 'showLoading' | 'onRendered' | 'onOneTimeTokenCreationStart' | 'onLoading'>;
546
- type mountFraudArgs = Pick<YunoConfig, 'yunoCreatePayment' | 'yunoError' | 'language' | 'checkoutSession'>;
544
+ type StartCheckoutArgs = Omit<YunoConfig, "yunoEnrollmentStatus" | "customerSession" | "publicApiKey">;
545
+ type MountEnrollmentLiteArgs = Pick<YunoConfig, "language" | "countryCode" | "renderMode" | "yunoEnrollmentStatus" | "yunoError" | "showLoading" | "onRendered" | "onOneTimeTokenCreationStart" | "onLoading" | "customerSession">;
546
+ type mountFraudArgs = Pick<YunoConfig, "yunoCreatePayment" | "yunoError" | "language" | "checkoutSession">;
547
547
  interface MountCheckoutLiteArgs {
548
- paymentMethodType?: string;
548
+ paymentMethodType: string;
549
549
  vaultedToken?: string;
550
550
  }
551
551
  interface MountSeamlessCheckoutLiteArgs {
@@ -560,17 +560,17 @@ interface SecureFieldsArgs {
560
560
  enableMultiplesCard?: boolean;
561
561
  }
562
562
  type SecureFieldInstance = SecureFields;
563
- type OnChangeDataSF = OnChangeArgs['data'];
563
+ type OnChangeDataSF = OnChangeArgs["data"];
564
564
  type CreateArgsSF = CreateArgs;
565
565
  interface MountStatusPaymentArgs {
566
566
  checkoutSession: string;
567
567
  language: Language;
568
568
  countryCode: string;
569
- yunoPaymentResult?: YunoConfig['yunoPaymentResult'];
570
- yunoError?: YunoConfig['yunoError'];
569
+ yunoPaymentResult?: YunoConfig["yunoPaymentResult"];
570
+ yunoError?: YunoConfig["yunoError"];
571
571
  }
572
572
  type ContinuePaymentResponse = {
573
- action: 'REDIRECT_URL';
573
+ action: "REDIRECT_URL";
574
574
  type: string;
575
575
  redirect: {
576
576
  init_url: string;
@@ -584,7 +584,7 @@ type ContinuePaymentArgs = {
584
584
  */
585
585
  showPaymentStatus?: boolean;
586
586
  };
587
- type StartSeamlessCheckoutArgs = Omit<StartCheckoutArgs, 'yunoCreatePayment'>;
587
+ type StartSeamlessCheckoutArgs = Omit<StartCheckoutArgs, "yunoCreatePayment">;
588
588
  interface YunoInstance {
589
589
  startCheckout(args: StartCheckoutArgs): Promise<void>;
590
590
  startSeamlessCheckout(args: StartSeamlessCheckoutArgs): Promise<void>;
package/dist/index.d.ts CHANGED
@@ -452,7 +452,7 @@ type Font = {
452
452
  };
453
453
  interface CardConfig {
454
454
  styles?: string;
455
- type?: 'extends' | 'step';
455
+ type?: "extends" | "step";
456
456
  cardSaveEnable?: boolean;
457
457
  vaultOnSuccess?: boolean;
458
458
  texts?: ButtonTextCard;
@@ -479,7 +479,7 @@ interface FormElementSelector {
479
479
  actionForm?: string;
480
480
  }
481
481
  interface RenderMode {
482
- type: 'modal' | 'element';
482
+ type: "modal" | "element";
483
483
  elementSelector?: string | FormElementSelector;
484
484
  }
485
485
  declare enum ExternalPaymentButtonsTypes {
@@ -490,15 +490,15 @@ type ExternalPaymentButtons = {
490
490
  elementSelector: string;
491
491
  };
492
492
  };
493
- type LoadingType = 'DOCUMENT' | 'ONE_TIME_TOKEN';
494
- type Language = 'es' | 'en' | 'pt' | 'de' | 'fil' | 'fr' | 'id' | 'it' | 'ms' | 'nl' | 'pl' | 'po' | 'ru' | 'sv' | 'th' | 'tr' | 'vi' | 'zh-CN' | 'zh-TW';
493
+ type LoadingType = "DOCUMENT" | "ONE_TIME_TOKEN";
494
+ type Language = "es" | "en" | "pt" | "de" | "fil" | "fr" | "id" | "it" | "ms" | "nl" | "pl" | "po" | "ru" | "sv" | "th" | "tr" | "vi" | "zh-CN" | "zh-TW";
495
495
  interface YunoConfig {
496
496
  publicApiKey: string;
497
497
  checkoutSession: string;
498
498
  customerSession: string;
499
499
  language: Language;
500
500
  countryCode: string;
501
- elementSelector?: string;
501
+ elementSelector: string;
502
502
  vaultedToken?: string;
503
503
  type?: string;
504
504
  renderMode?: RenderMode;
@@ -520,7 +520,7 @@ interface YunoConfig {
520
520
  isDynamicViewEnabled?: boolean;
521
521
  showOnlyThesePaymentMethods?: string[];
522
522
  showPayButton?: boolean;
523
- yunoCreatePayment?: (oneTimeToken: string, tokenWithInformation: OneTimeToken) => void;
523
+ yunoCreatePayment: (oneTimeToken: string, tokenWithInformation: OneTimeToken) => void;
524
524
  yunoPaymentMethodSelected?: (arg: {
525
525
  type: string;
526
526
  name: string;
@@ -541,11 +541,11 @@ interface YunoConfig {
541
541
  type: LoadingType;
542
542
  }): void;
543
543
  }
544
- type StartCheckoutArgs = Omit<YunoConfig, 'yunoEnrollmentStatus' | 'customerSession' | 'publicApiKey'>;
545
- type MountEnrollmentLiteArgs = Pick<YunoConfig, 'language' | 'countryCode' | 'renderMode' | 'yunoEnrollmentStatus' | 'yunoError' | 'showLoading' | 'onRendered' | 'onOneTimeTokenCreationStart' | 'onLoading'>;
546
- type mountFraudArgs = Pick<YunoConfig, 'yunoCreatePayment' | 'yunoError' | 'language' | 'checkoutSession'>;
544
+ type StartCheckoutArgs = Omit<YunoConfig, "yunoEnrollmentStatus" | "customerSession" | "publicApiKey">;
545
+ type MountEnrollmentLiteArgs = Pick<YunoConfig, "language" | "countryCode" | "renderMode" | "yunoEnrollmentStatus" | "yunoError" | "showLoading" | "onRendered" | "onOneTimeTokenCreationStart" | "onLoading" | "customerSession">;
546
+ type mountFraudArgs = Pick<YunoConfig, "yunoCreatePayment" | "yunoError" | "language" | "checkoutSession">;
547
547
  interface MountCheckoutLiteArgs {
548
- paymentMethodType?: string;
548
+ paymentMethodType: string;
549
549
  vaultedToken?: string;
550
550
  }
551
551
  interface MountSeamlessCheckoutLiteArgs {
@@ -560,17 +560,17 @@ interface SecureFieldsArgs {
560
560
  enableMultiplesCard?: boolean;
561
561
  }
562
562
  type SecureFieldInstance = SecureFields;
563
- type OnChangeDataSF = OnChangeArgs['data'];
563
+ type OnChangeDataSF = OnChangeArgs["data"];
564
564
  type CreateArgsSF = CreateArgs;
565
565
  interface MountStatusPaymentArgs {
566
566
  checkoutSession: string;
567
567
  language: Language;
568
568
  countryCode: string;
569
- yunoPaymentResult?: YunoConfig['yunoPaymentResult'];
570
- yunoError?: YunoConfig['yunoError'];
569
+ yunoPaymentResult?: YunoConfig["yunoPaymentResult"];
570
+ yunoError?: YunoConfig["yunoError"];
571
571
  }
572
572
  type ContinuePaymentResponse = {
573
- action: 'REDIRECT_URL';
573
+ action: "REDIRECT_URL";
574
574
  type: string;
575
575
  redirect: {
576
576
  init_url: string;
@@ -584,7 +584,7 @@ type ContinuePaymentArgs = {
584
584
  */
585
585
  showPaymentStatus?: boolean;
586
586
  };
587
- type StartSeamlessCheckoutArgs = Omit<StartCheckoutArgs, 'yunoCreatePayment'>;
587
+ type StartSeamlessCheckoutArgs = Omit<StartCheckoutArgs, "yunoCreatePayment">;
588
588
  interface YunoInstance {
589
589
  startCheckout(args: StartCheckoutArgs): Promise<void>;
590
590
  startSeamlessCheckout(args: StartSeamlessCheckoutArgs): Promise<void>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yuno-payments/sdk-web-types",
3
- "version": "4.0.0",
3
+ "version": "4.1.0",
4
4
  "types": "dist/index.d.ts",
5
5
  "type": "module",
6
6
  "publishConfig": {