@yuno-payments/sdk-web-types 4.0.0 → 4.1.1

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