@kushki/js 1.29.1 → 1.30.0-ampato.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.
@@ -3,7 +3,7 @@
3
3
  * Environment enum file
4
4
  */
5
5
  export declare enum EnvironmentEnum {
6
- uat = "https://api-uat.kushkipagos.com/",
6
+ uat = "https://api-qa.ampato.kushki.dev/",
7
7
  prod = "https://api.kushkipagos.com/",
8
8
  regionalUat = "https://regional-uat.kushkipagos.com/",
9
9
  regionalProd = "https://regional.kushkipagos.com/"
@@ -6,7 +6,7 @@ exports.EnvironmentEnum = void 0;
6
6
  */
7
7
  var EnvironmentEnum;
8
8
  (function (EnvironmentEnum) {
9
- EnvironmentEnum["uat"] = "https://api-uat.kushkipagos.com/";
9
+ EnvironmentEnum["uat"] = "https://api-qa.ampato.kushki.dev/";
10
10
  EnvironmentEnum["prod"] = "https://api.kushkipagos.com/";
11
11
  EnvironmentEnum["regionalUat"] = "https://regional-uat.kushkipagos.com/";
12
12
  EnvironmentEnum["regionalProd"] = "https://regional.kushkipagos.com/";
@@ -1,7 +1,18 @@
1
1
  /* tslint:disable:all */
2
2
  /* tslint:disable:all */
3
3
 
4
- export type CashTokenRequest = GenericTokenRequest | PeruvianTokenRequest | BrazilianTokenRequest | MexicanTokenRequest;
4
+ export type CashTokenRequest =
5
+ | PeruvianTokenRequest
6
+ | BrazilianTokenRequest
7
+ | MexicanTokenRequest
8
+ | ColombianTokenRequest
9
+ | CostaRicanTokenRequest
10
+ | GuatemalanTokenRequest
11
+ | PanamanianRequest
12
+ | NicaraguanRequest
13
+ | HonduranRequest
14
+ | SalvadoranRequest
15
+ | GenericTokenRequest;
5
16
  export type Name = string;
6
17
  export type LastName = string;
7
18
  export type Identification = string;
@@ -9,18 +20,6 @@ export type TotalAmount = number;
9
20
  export type Email = string;
10
21
  export type Description = string;
11
22
 
12
- export interface GenericTokenRequest {
13
- name: Name;
14
- lastName: LastName;
15
- identification: Identification;
16
- totalAmount: TotalAmount;
17
- email?: Email;
18
- description?: Description;
19
- currency: "COP" | "USD" | "CLP" | "CRC" | "UF";
20
- documentType?: "CC" | "NIT" | "CE" | "TI" | "PP" | "RUC" | "RUT" | "CI";
21
- savePaymentData?: boolean;
22
- [k: string]: any;
23
- }
24
23
  export interface PeruvianTokenRequest {
25
24
  name: Name;
26
25
  lastName: LastName;
@@ -32,7 +31,6 @@ export interface PeruvianTokenRequest {
32
31
  documentType?: "DNI" | "CE" | "PAS" | "RUC";
33
32
  phonePrefix?: string;
34
33
  phoneNumber?: string;
35
- savePaymentData?: boolean;
36
34
  [k: string]: any;
37
35
  }
38
36
  export interface BrazilianTokenRequest {
@@ -45,7 +43,6 @@ export interface BrazilianTokenRequest {
45
43
  currency: "BRL";
46
44
  documentType?: "CPF" | "CNPJ" | "RG" | "DNI" | "CI" | "CP" | "RNE";
47
45
  userType?: string;
48
- savePaymentData?: boolean;
49
46
  [k: string]: any;
50
47
  }
51
48
  export interface MexicanTokenRequest {
@@ -57,6 +54,93 @@ export interface MexicanTokenRequest {
57
54
  description?: Description;
58
55
  currency: "MXN";
59
56
  documentType?: "PP" | "RFC" | "CURP";
60
- savePaymentData?: boolean;
57
+ [k: string]: any;
58
+ }
59
+ export interface ColombianTokenRequest {
60
+ name: Name;
61
+ lastName: LastName;
62
+ identification: Identification;
63
+ totalAmount: TotalAmount;
64
+ email?: Email;
65
+ description?: Description;
66
+ currency: "COP";
67
+ documentType?: "CC" | "NIT" | "CE" | "TI" | "PP" | "RUT";
68
+ [k: string]: any;
69
+ }
70
+ export interface CostaRicanTokenRequest {
71
+ name: Name;
72
+ lastName: LastName;
73
+ identification: Identification;
74
+ totalAmount: TotalAmount;
75
+ email?: Email;
76
+ description?: Description;
77
+ currency: "CRC";
78
+ documentType: "CI" | "NITE";
79
+ [k: string]: any;
80
+ }
81
+ export interface GuatemalanTokenRequest {
82
+ name: Name;
83
+ lastName: LastName;
84
+ totalAmount: TotalAmount;
85
+ email?: Email;
86
+ description?: Description;
87
+ currency: "GTQ";
88
+ documentType: "DPI" | "NIT";
89
+ identification: string;
90
+ [k: string]: any;
91
+ }
92
+ export interface PanamanianRequest {
93
+ name: Name;
94
+ lastName: LastName;
95
+ totalAmount: TotalAmount;
96
+ email?: Email;
97
+ description?: Description;
98
+ currency: "PAB" | "USD";
99
+ documentType: "CIP" | "NIT";
100
+ identification: string;
101
+ [k: string]: any;
102
+ }
103
+ export interface NicaraguanRequest {
104
+ name: Name;
105
+ lastName: LastName;
106
+ totalAmount: TotalAmount;
107
+ email?: Email;
108
+ description?: Description;
109
+ currency: "NIO";
110
+ documentType: "CI" | "RUC";
111
+ identification: string;
112
+ [k: string]: any;
113
+ }
114
+ export interface HonduranRequest {
115
+ name: Name;
116
+ lastName: LastName;
117
+ totalAmount: TotalAmount;
118
+ email?: Email;
119
+ description?: Description;
120
+ currency: "HNL";
121
+ documentType: "RNP" | "RTN";
122
+ identification: string;
123
+ [k: string]: any;
124
+ }
125
+ export interface SalvadoranRequest {
126
+ name: Name;
127
+ lastName: LastName;
128
+ totalAmount: TotalAmount;
129
+ email?: Email;
130
+ description?: Description;
131
+ currency: "USD";
132
+ documentType: "DUI" | "NIT";
133
+ identification: string;
134
+ [k: string]: any;
135
+ }
136
+ export interface GenericTokenRequest {
137
+ name: Name;
138
+ lastName: LastName;
139
+ identification: Identification;
140
+ totalAmount: TotalAmount;
141
+ email?: Email;
142
+ description?: Description;
143
+ currency: "USD" | "CLP" | "UF";
144
+ documentType?: "CC" | "CE" | "TI" | "PP" | "RUC" | "RUT" | "CI";
61
145
  [k: string]: any;
62
146
  }
@@ -3,7 +3,7 @@
3
3
 
4
4
  export interface SubscriptionTokenKPayRequest {
5
5
  walletId: string;
6
- currency?: "USD" | "COP" | "CLP" | "UF" | "PEN" | "MXN" | "CRC" | "GTQ" | "HNL" | "NIO";
6
+ currency?: "USD" | "COP" | "CLP" | "UF" | "PEN" | "MXN" | "CRC" | "GTQ" | "HNL" | "NIO" | "PAB";
7
7
  userId?: string;
8
8
  sessionId?: string;
9
9
  card?: {
@@ -3,7 +3,7 @@
3
3
 
4
4
  export interface TokenKPayRequest {
5
5
  walletId: string;
6
- currency?: "USD" | "COP" | "CLP" | "UF" | "PEN" | "MXN" | "BRL" | "CRC" | "GTQ" | "HNL" | "NIO";
6
+ currency?: "USD" | "COP" | "CLP" | "UF" | "PEN" | "MXN" | "BRL" | "CRC" | "GTQ" | "HNL" | "NIO" | "PAB";
7
7
  isDeferred?: boolean;
8
8
  amount: number | string;
9
9
  months?: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kushki/js",
3
- "version": "1.29.1",
3
+ "version": "1.30.0-ampato.1",
4
4
  "description": "kushki-js",
5
5
  "main": "lib/lib.js",
6
6
  "types": "lib/lib.d.ts",