@yuno-payments/sdk-web-types 3.5.0 → 4.0.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
@@ -87,73 +87,10 @@ declare enum StatusEnrollment {
87
87
  ERROR = "ERROR",
88
88
  UNENROLLED = "UNENROLLED"
89
89
  }
90
- declare enum CountryCode {
91
- ANGUILLA = "AI",
92
- ANTIGUA_AND_BARBUDA = "AG",
93
- ARGENTINA = "AR",
94
- ARUBA = "AW",
95
- BAHAMAS = "BS",
96
- BARBADOS = "BB",
97
- BELIZE = "BZ",
98
- BERMUDA = "BM",
99
- BOLIVIA = "BO",
100
- BONAIRE = "BQ",
101
- BOTSWANA = "BW",
102
- BRAZIL = "BR",
103
- CANADA = "CA",
104
- CAYMAN_ISLANDS = "KY",
105
- CHILE = "CL",
106
- COLOMBIA = "CO",
107
- COSTA_RICA = "CR",
108
- CUBA = "CU",
109
- CURAÇAO = "CW",
110
- DOMINICA = "DM",
111
- DOMINICAN_REPUBLIC = "DO",
112
- ECUADOR = "EC",
113
- EL_SALVADOR = "SV",
114
- FALKLAND_ISLANDS = "FK",
115
- PHILIPPINES = "PH",
116
- FRENCH_GUIANA = "GF",
117
- GREENLAND = "GL",
118
- GRENADA = "GD",
119
- GUADELOUPE = "GP",
120
- GUATEMALA = "GT",
121
- GUYANA = "GY",
122
- HAITI = "HT",
123
- HONDURAS = "HN",
124
- INDONESIA = "ID",
125
- JAMAICA = "JM",
126
- MALAYSIA = "MY",
127
- MARTINIQUE = "MQ",
128
- MEXICO = "MX",
129
- MONTSERRAT = "MS",
130
- NICARAGUA = "NI",
131
- PANAMA = "PA",
132
- PARAGUAY = "PY",
133
- PERU = "PE",
134
- PUERTO_RICO = "PR",
135
- SAINT_BARTHÉLEMY = "BL",
136
- SAINT_KITTS_AND_NEVIS = "KN",
137
- SAINT_LUCIA = "LC",
138
- SAINT_MARTIN = "MF",
139
- SAINT_PIERRE_AND_MIQUELON = "PM",
140
- SAINT_VINCENT_AND_THE_GRENADINES = "VC",
141
- SINT_MAARTEN = "SX",
142
- SURINAME = "SR",
143
- THAILAND = "TH",
144
- TRINIDAD_AND_TOBAGO = "TT",
145
- TURKS_AND_CAICOS_ISLANDS = "TC",
146
- UNITED_STATES = "US",
147
- URUGUAY = "UY",
148
- VENEZUELA = "VE",
149
- VIRGIN_ISLANDS_BRITISH = "VG",
150
- VIRGIN_ISLANDS_US = "VI",
151
- ZIMBABWE = "ZW"
152
- }
153
90
 
154
91
  type ApiClientPaymentArgs = {
155
92
  checkout_session?: string;
156
- country_code: CountryCode;
93
+ country_code: string;
157
94
  };
158
95
  type GenerateTokenArgs$1 = {
159
96
  checkout_session?: string;
@@ -184,7 +121,7 @@ type ApiClientPayment = (args: ApiClientPaymentArgs) => Promise<ApiClientPayment
184
121
 
185
122
  type ApiClientEnrollArgs = {
186
123
  customer_session: string;
187
- country_code: CountryCode;
124
+ country_code: string;
188
125
  };
189
126
  type ContinueEnrollmentArgs = {
190
127
  customer_session?: string;
@@ -554,7 +491,7 @@ type ExternalPaymentButtons = {
554
491
  };
555
492
  };
556
493
  type LoadingType = 'DOCUMENT' | 'ONE_TIME_TOKEN';
557
- type Language = 'es' | 'en' | 'pt';
494
+ type Language = 'es' | 'en' | 'pt' | 'de' | 'fil' | 'fr' | 'id' | 'it' | 'ms' | 'nl' | 'pl' | 'po' | 'ru' | 'sv' | 'th' | 'tr' | 'vi' | 'zh-CN' | 'zh-TW';
558
495
  interface YunoConfig {
559
496
  publicApiKey: string;
560
497
  checkoutSession: string;
@@ -607,11 +544,6 @@ interface YunoConfig {
607
544
  type StartCheckoutArgs = Omit<YunoConfig, 'yunoEnrollmentStatus' | 'customerSession' | 'publicApiKey'>;
608
545
  type MountEnrollmentLiteArgs = Pick<YunoConfig, 'language' | 'countryCode' | 'renderMode' | 'yunoEnrollmentStatus' | 'yunoError' | 'showLoading' | 'onRendered' | 'onOneTimeTokenCreationStart' | 'onLoading'>;
609
546
  type mountFraudArgs = Pick<YunoConfig, 'yunoCreatePayment' | 'yunoError' | 'language' | 'checkoutSession'>;
610
- interface MountCheckoutArgs {
611
- paymentMethodType?: string;
612
- vaultedToken?: string;
613
- category?: string;
614
- }
615
547
  interface MountCheckoutLiteArgs {
616
548
  paymentMethodType?: string;
617
549
  vaultedToken?: string;
@@ -633,7 +565,7 @@ type CreateArgsSF = CreateArgs;
633
565
  interface MountStatusPaymentArgs {
634
566
  checkoutSession: string;
635
567
  language: Language;
636
- countryCode: CountryCode;
568
+ countryCode: string;
637
569
  yunoPaymentResult?: YunoConfig['yunoPaymentResult'];
638
570
  yunoError?: YunoConfig['yunoError'];
639
571
  }
@@ -653,12 +585,11 @@ type ContinuePaymentArgs = {
653
585
  showPaymentStatus?: boolean;
654
586
  };
655
587
  type StartSeamlessCheckoutArgs = Omit<StartCheckoutArgs, 'yunoCreatePayment'>;
656
- type MountSeamlessCheckoutArgs = MountCheckoutArgs;
657
588
  interface YunoInstance {
658
589
  startCheckout(args: StartCheckoutArgs): Promise<void>;
659
590
  startSeamlessCheckout(args: StartSeamlessCheckoutArgs): Promise<void>;
660
- mountCheckout(args?: MountCheckoutArgs): Promise<void>;
661
- mountSeamlessCheckout(args?: MountSeamlessCheckoutArgs): Promise<void>;
591
+ mountCheckout(): Promise<void>;
592
+ mountSeamlessCheckout(): Promise<void>;
662
593
  mountCheckoutLite(args: MountCheckoutLiteArgs): Promise<void>;
663
594
  mountSeamlessCheckoutLite(args: MountSeamlessCheckoutLiteArgs): Promise<void>;
664
595
  updateCheckoutSession(checkout: string): Promise<void>;
package/dist/index.d.ts CHANGED
@@ -87,73 +87,10 @@ declare enum StatusEnrollment {
87
87
  ERROR = "ERROR",
88
88
  UNENROLLED = "UNENROLLED"
89
89
  }
90
- declare enum CountryCode {
91
- ANGUILLA = "AI",
92
- ANTIGUA_AND_BARBUDA = "AG",
93
- ARGENTINA = "AR",
94
- ARUBA = "AW",
95
- BAHAMAS = "BS",
96
- BARBADOS = "BB",
97
- BELIZE = "BZ",
98
- BERMUDA = "BM",
99
- BOLIVIA = "BO",
100
- BONAIRE = "BQ",
101
- BOTSWANA = "BW",
102
- BRAZIL = "BR",
103
- CANADA = "CA",
104
- CAYMAN_ISLANDS = "KY",
105
- CHILE = "CL",
106
- COLOMBIA = "CO",
107
- COSTA_RICA = "CR",
108
- CUBA = "CU",
109
- CURAÇAO = "CW",
110
- DOMINICA = "DM",
111
- DOMINICAN_REPUBLIC = "DO",
112
- ECUADOR = "EC",
113
- EL_SALVADOR = "SV",
114
- FALKLAND_ISLANDS = "FK",
115
- PHILIPPINES = "PH",
116
- FRENCH_GUIANA = "GF",
117
- GREENLAND = "GL",
118
- GRENADA = "GD",
119
- GUADELOUPE = "GP",
120
- GUATEMALA = "GT",
121
- GUYANA = "GY",
122
- HAITI = "HT",
123
- HONDURAS = "HN",
124
- INDONESIA = "ID",
125
- JAMAICA = "JM",
126
- MALAYSIA = "MY",
127
- MARTINIQUE = "MQ",
128
- MEXICO = "MX",
129
- MONTSERRAT = "MS",
130
- NICARAGUA = "NI",
131
- PANAMA = "PA",
132
- PARAGUAY = "PY",
133
- PERU = "PE",
134
- PUERTO_RICO = "PR",
135
- SAINT_BARTHÉLEMY = "BL",
136
- SAINT_KITTS_AND_NEVIS = "KN",
137
- SAINT_LUCIA = "LC",
138
- SAINT_MARTIN = "MF",
139
- SAINT_PIERRE_AND_MIQUELON = "PM",
140
- SAINT_VINCENT_AND_THE_GRENADINES = "VC",
141
- SINT_MAARTEN = "SX",
142
- SURINAME = "SR",
143
- THAILAND = "TH",
144
- TRINIDAD_AND_TOBAGO = "TT",
145
- TURKS_AND_CAICOS_ISLANDS = "TC",
146
- UNITED_STATES = "US",
147
- URUGUAY = "UY",
148
- VENEZUELA = "VE",
149
- VIRGIN_ISLANDS_BRITISH = "VG",
150
- VIRGIN_ISLANDS_US = "VI",
151
- ZIMBABWE = "ZW"
152
- }
153
90
 
154
91
  type ApiClientPaymentArgs = {
155
92
  checkout_session?: string;
156
- country_code: CountryCode;
93
+ country_code: string;
157
94
  };
158
95
  type GenerateTokenArgs$1 = {
159
96
  checkout_session?: string;
@@ -184,7 +121,7 @@ type ApiClientPayment = (args: ApiClientPaymentArgs) => Promise<ApiClientPayment
184
121
 
185
122
  type ApiClientEnrollArgs = {
186
123
  customer_session: string;
187
- country_code: CountryCode;
124
+ country_code: string;
188
125
  };
189
126
  type ContinueEnrollmentArgs = {
190
127
  customer_session?: string;
@@ -554,7 +491,7 @@ type ExternalPaymentButtons = {
554
491
  };
555
492
  };
556
493
  type LoadingType = 'DOCUMENT' | 'ONE_TIME_TOKEN';
557
- type Language = 'es' | 'en' | 'pt';
494
+ type Language = 'es' | 'en' | 'pt' | 'de' | 'fil' | 'fr' | 'id' | 'it' | 'ms' | 'nl' | 'pl' | 'po' | 'ru' | 'sv' | 'th' | 'tr' | 'vi' | 'zh-CN' | 'zh-TW';
558
495
  interface YunoConfig {
559
496
  publicApiKey: string;
560
497
  checkoutSession: string;
@@ -607,11 +544,6 @@ interface YunoConfig {
607
544
  type StartCheckoutArgs = Omit<YunoConfig, 'yunoEnrollmentStatus' | 'customerSession' | 'publicApiKey'>;
608
545
  type MountEnrollmentLiteArgs = Pick<YunoConfig, 'language' | 'countryCode' | 'renderMode' | 'yunoEnrollmentStatus' | 'yunoError' | 'showLoading' | 'onRendered' | 'onOneTimeTokenCreationStart' | 'onLoading'>;
609
546
  type mountFraudArgs = Pick<YunoConfig, 'yunoCreatePayment' | 'yunoError' | 'language' | 'checkoutSession'>;
610
- interface MountCheckoutArgs {
611
- paymentMethodType?: string;
612
- vaultedToken?: string;
613
- category?: string;
614
- }
615
547
  interface MountCheckoutLiteArgs {
616
548
  paymentMethodType?: string;
617
549
  vaultedToken?: string;
@@ -633,7 +565,7 @@ type CreateArgsSF = CreateArgs;
633
565
  interface MountStatusPaymentArgs {
634
566
  checkoutSession: string;
635
567
  language: Language;
636
- countryCode: CountryCode;
568
+ countryCode: string;
637
569
  yunoPaymentResult?: YunoConfig['yunoPaymentResult'];
638
570
  yunoError?: YunoConfig['yunoError'];
639
571
  }
@@ -653,12 +585,11 @@ type ContinuePaymentArgs = {
653
585
  showPaymentStatus?: boolean;
654
586
  };
655
587
  type StartSeamlessCheckoutArgs = Omit<StartCheckoutArgs, 'yunoCreatePayment'>;
656
- type MountSeamlessCheckoutArgs = MountCheckoutArgs;
657
588
  interface YunoInstance {
658
589
  startCheckout(args: StartCheckoutArgs): Promise<void>;
659
590
  startSeamlessCheckout(args: StartSeamlessCheckoutArgs): Promise<void>;
660
- mountCheckout(args?: MountCheckoutArgs): Promise<void>;
661
- mountSeamlessCheckout(args?: MountSeamlessCheckoutArgs): Promise<void>;
591
+ mountCheckout(): Promise<void>;
592
+ mountSeamlessCheckout(): Promise<void>;
662
593
  mountCheckoutLite(args: MountCheckoutLiteArgs): Promise<void>;
663
594
  mountSeamlessCheckoutLite(args: MountSeamlessCheckoutLiteArgs): Promise<void>;
664
595
  updateCheckoutSession(checkout: string): Promise<void>;
@@ -681,4 +612,4 @@ interface Yuno {
681
612
  initialize(publicApiKey: string, applicationSession?: string, options?: InitializeOptions): Promise<YunoInstance>;
682
613
  }
683
614
 
684
- export { type ButtonTextCard, type CardConfig, type ContinuePaymentArgs, type ContinuePaymentResponse, type CreateArgsSF, type ExternalPaymentButtons, ExternalPaymentButtonsTypes, type Font, type FormElementSelector, type Language, type LoadingType, type MountCheckoutArgs, type MountCheckoutLiteArgs, type MountEnrollmentLiteArgs, type MountSeamlessCheckoutArgs, type MountSeamlessCheckoutLiteArgs, type MountStatusPaymentArgs, type OnChangeDataSF, type RenderMode, type SecureFieldInstance, type SecureFieldsArgs, type StartCheckoutArgs, type StartSeamlessCheckoutArgs, type TextsCustom, type Yuno, type YunoConfig, type YunoInstance, type mountFraudArgs };
615
+ export { type ButtonTextCard, type CardConfig, type ContinuePaymentArgs, type ContinuePaymentResponse, type CreateArgsSF, type ExternalPaymentButtons, ExternalPaymentButtonsTypes, type Font, type FormElementSelector, type Language, type LoadingType, type MountCheckoutLiteArgs, type MountEnrollmentLiteArgs, type MountSeamlessCheckoutLiteArgs, type MountStatusPaymentArgs, type OnChangeDataSF, type RenderMode, type SecureFieldInstance, type SecureFieldsArgs, type StartCheckoutArgs, type StartSeamlessCheckoutArgs, 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": "3.5.0",
3
+ "version": "4.0.0",
4
4
  "types": "dist/index.d.ts",
5
5
  "type": "module",
6
6
  "publishConfig": {