intifact 1.1.2 → 1.3.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/README.md +96 -69
- package/dist/index.d.ts +517 -19
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +103 -14
- package/dist/index.js.map +1 -1
- package/dist/types.d.ts +626 -10
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +0 -4
- package/dist/types.js.map +1 -1
- package/package.json +47 -47
package/dist/types.d.ts
CHANGED
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by openapi-typescript.
|
|
3
|
-
* Do not make direct changes to the file.
|
|
4
|
-
*/
|
|
5
1
|
export interface paths {
|
|
6
2
|
"/health": {
|
|
7
3
|
parameters: {
|
|
@@ -200,6 +196,12 @@ export interface paths {
|
|
|
200
196
|
legendCode: string;
|
|
201
197
|
legendValue: string;
|
|
202
198
|
}[];
|
|
199
|
+
observacion?: string;
|
|
200
|
+
vendedor?: string;
|
|
201
|
+
pagos?: {
|
|
202
|
+
metodoPago: string;
|
|
203
|
+
monto: number;
|
|
204
|
+
}[];
|
|
203
205
|
detraccion?: {
|
|
204
206
|
codBienServicio: string;
|
|
205
207
|
cuentaBanco: string;
|
|
@@ -208,6 +210,14 @@ export interface paths {
|
|
|
208
210
|
/** @default 001 */
|
|
209
211
|
medioPago?: string;
|
|
210
212
|
};
|
|
213
|
+
guiaRemision?: {
|
|
214
|
+
/**
|
|
215
|
+
* @default 09
|
|
216
|
+
* @enum {string}
|
|
217
|
+
*/
|
|
218
|
+
tipoDoc?: "31" | "09";
|
|
219
|
+
nroDoc: string;
|
|
220
|
+
}[];
|
|
211
221
|
};
|
|
212
222
|
};
|
|
213
223
|
};
|
|
@@ -305,7 +315,6 @@ export interface paths {
|
|
|
305
315
|
descripcion: string;
|
|
306
316
|
cantidad: number;
|
|
307
317
|
valorUnitario: number;
|
|
308
|
-
/** @default NIU */
|
|
309
318
|
unidad?: string;
|
|
310
319
|
codProducto?: string;
|
|
311
320
|
/** @default 10 */
|
|
@@ -684,7 +693,6 @@ export interface paths {
|
|
|
684
693
|
descripcion: string;
|
|
685
694
|
cantidad: number;
|
|
686
695
|
valorUnitario: number;
|
|
687
|
-
/** @default NIU */
|
|
688
696
|
unidad?: string;
|
|
689
697
|
codProducto?: string;
|
|
690
698
|
/** @default 10 */
|
|
@@ -841,6 +849,42 @@ export interface paths {
|
|
|
841
849
|
patch?: never;
|
|
842
850
|
trace?: never;
|
|
843
851
|
};
|
|
852
|
+
"/api/v1/note/{id}/cdr": {
|
|
853
|
+
parameters: {
|
|
854
|
+
query?: never;
|
|
855
|
+
header?: never;
|
|
856
|
+
path?: never;
|
|
857
|
+
cookie?: never;
|
|
858
|
+
};
|
|
859
|
+
/** Descargar CDR (constancia de SUNAT) */
|
|
860
|
+
get: {
|
|
861
|
+
parameters: {
|
|
862
|
+
query?: never;
|
|
863
|
+
header?: never;
|
|
864
|
+
path: {
|
|
865
|
+
id: string;
|
|
866
|
+
};
|
|
867
|
+
cookie?: never;
|
|
868
|
+
};
|
|
869
|
+
requestBody?: never;
|
|
870
|
+
responses: {
|
|
871
|
+
/** @description Default Response */
|
|
872
|
+
200: {
|
|
873
|
+
headers: {
|
|
874
|
+
[name: string]: unknown;
|
|
875
|
+
};
|
|
876
|
+
content?: never;
|
|
877
|
+
};
|
|
878
|
+
};
|
|
879
|
+
};
|
|
880
|
+
put?: never;
|
|
881
|
+
post?: never;
|
|
882
|
+
delete?: never;
|
|
883
|
+
options?: never;
|
|
884
|
+
head?: never;
|
|
885
|
+
patch?: never;
|
|
886
|
+
trace?: never;
|
|
887
|
+
};
|
|
844
888
|
"/api/v1/despatch/send": {
|
|
845
889
|
parameters: {
|
|
846
890
|
query?: never;
|
|
@@ -884,6 +928,10 @@ export interface paths {
|
|
|
884
928
|
destinatarioTelefono?: string;
|
|
885
929
|
destinatarioEmail?: string;
|
|
886
930
|
entregaReferencia?: string;
|
|
931
|
+
/** @enum {string} */
|
|
932
|
+
modalidadEntrega?: "DOMICILIO" | "AGENCIA";
|
|
933
|
+
agenciaNombre?: string;
|
|
934
|
+
agenciaSede?: string;
|
|
887
935
|
guiaCodTraslado: string;
|
|
888
936
|
/** @enum {string} */
|
|
889
937
|
guiaModTraslado: "01" | "02";
|
|
@@ -898,8 +946,10 @@ export interface paths {
|
|
|
898
946
|
transportistaNroMtc?: string;
|
|
899
947
|
guiaPartidaUbigeo: string;
|
|
900
948
|
guiaPartidaDireccion: string;
|
|
949
|
+
guiaPartidaCiudad?: string;
|
|
901
950
|
guiaLlegadaUbigeo: string;
|
|
902
951
|
guiaLlegadaDireccion: string;
|
|
952
|
+
guiaLlegadaCiudad?: string;
|
|
903
953
|
chofer?: {
|
|
904
954
|
/** @enum {string} */
|
|
905
955
|
tipo: "Principal" | "Secundario";
|
|
@@ -1162,6 +1212,10 @@ export interface paths {
|
|
|
1162
1212
|
destinatarioTelefono?: string;
|
|
1163
1213
|
destinatarioEmail?: string;
|
|
1164
1214
|
entregaReferencia?: string;
|
|
1215
|
+
/** @enum {string} */
|
|
1216
|
+
modalidadEntrega?: "DOMICILIO" | "AGENCIA";
|
|
1217
|
+
agenciaNombre?: string;
|
|
1218
|
+
agenciaSede?: string;
|
|
1165
1219
|
guiaLlegadaUbigeo: string;
|
|
1166
1220
|
guiaLlegadaDireccion: string;
|
|
1167
1221
|
guiaPesoTotal: number;
|
|
@@ -1279,6 +1333,10 @@ export interface paths {
|
|
|
1279
1333
|
destinatarioTelefono?: string;
|
|
1280
1334
|
destinatarioEmail?: string;
|
|
1281
1335
|
entregaReferencia?: string;
|
|
1336
|
+
/** @enum {string} */
|
|
1337
|
+
modalidadEntrega?: "DOMICILIO" | "AGENCIA";
|
|
1338
|
+
agenciaNombre?: string;
|
|
1339
|
+
agenciaSede?: string;
|
|
1282
1340
|
remitenteTipoDoc: string;
|
|
1283
1341
|
remitenteNumDoc: string;
|
|
1284
1342
|
remitenteRazonSocial: string;
|
|
@@ -1462,6 +1520,42 @@ export interface paths {
|
|
|
1462
1520
|
patch?: never;
|
|
1463
1521
|
trace?: never;
|
|
1464
1522
|
};
|
|
1523
|
+
"/api/v1/despatch/{id}/cdr": {
|
|
1524
|
+
parameters: {
|
|
1525
|
+
query?: never;
|
|
1526
|
+
header?: never;
|
|
1527
|
+
path?: never;
|
|
1528
|
+
cookie?: never;
|
|
1529
|
+
};
|
|
1530
|
+
/** Descargar CDR (constancia de SUNAT) */
|
|
1531
|
+
get: {
|
|
1532
|
+
parameters: {
|
|
1533
|
+
query?: never;
|
|
1534
|
+
header?: never;
|
|
1535
|
+
path: {
|
|
1536
|
+
id: string;
|
|
1537
|
+
};
|
|
1538
|
+
cookie?: never;
|
|
1539
|
+
};
|
|
1540
|
+
requestBody?: never;
|
|
1541
|
+
responses: {
|
|
1542
|
+
/** @description Default Response */
|
|
1543
|
+
200: {
|
|
1544
|
+
headers: {
|
|
1545
|
+
[name: string]: unknown;
|
|
1546
|
+
};
|
|
1547
|
+
content?: never;
|
|
1548
|
+
};
|
|
1549
|
+
};
|
|
1550
|
+
};
|
|
1551
|
+
put?: never;
|
|
1552
|
+
post?: never;
|
|
1553
|
+
delete?: never;
|
|
1554
|
+
options?: never;
|
|
1555
|
+
head?: never;
|
|
1556
|
+
patch?: never;
|
|
1557
|
+
trace?: never;
|
|
1558
|
+
};
|
|
1465
1559
|
"/api/v1/summary/send": {
|
|
1466
1560
|
parameters: {
|
|
1467
1561
|
query?: never;
|
|
@@ -1903,8 +1997,10 @@ export interface paths {
|
|
|
1903
1997
|
clienteNumDoc: string;
|
|
1904
1998
|
clienteRazonSocial: string;
|
|
1905
1999
|
montoImpVenta: string;
|
|
2000
|
+
montoIgv?: string;
|
|
1906
2001
|
estadoSunat: string;
|
|
1907
2002
|
codigoRespuesta: string | null;
|
|
2003
|
+
descripcionRespuesta?: string | null;
|
|
1908
2004
|
hashCdr: string | null;
|
|
1909
2005
|
createdAt: string;
|
|
1910
2006
|
company: {
|
|
@@ -2030,6 +2126,199 @@ export interface paths {
|
|
|
2030
2126
|
patch?: never;
|
|
2031
2127
|
trace?: never;
|
|
2032
2128
|
};
|
|
2129
|
+
"/api/v1/documents/{id}/recover": {
|
|
2130
|
+
parameters: {
|
|
2131
|
+
query?: never;
|
|
2132
|
+
header?: never;
|
|
2133
|
+
path?: never;
|
|
2134
|
+
cookie?: never;
|
|
2135
|
+
};
|
|
2136
|
+
get?: never;
|
|
2137
|
+
put?: never;
|
|
2138
|
+
/**
|
|
2139
|
+
* Reconciliar un documento con SUNAT (consulta de CDR, solo master)
|
|
2140
|
+
* @description Consulta el estado REAL en SUNAT (getStatusCdr / billConsultService) SIN reenviar y corrige la BD. Útil cuando un documento quedó desincronizado (ej. una boleta ACEPTADA figurando RECHAZADO/COLA_FALLIDA/ENCOLADO). Solo comprobantes 01/03/07/08, solo en producción. Restringido al master API key.
|
|
2141
|
+
*/
|
|
2142
|
+
post: {
|
|
2143
|
+
parameters: {
|
|
2144
|
+
query?: never;
|
|
2145
|
+
header?: never;
|
|
2146
|
+
path: {
|
|
2147
|
+
id: string;
|
|
2148
|
+
};
|
|
2149
|
+
cookie?: never;
|
|
2150
|
+
};
|
|
2151
|
+
requestBody?: never;
|
|
2152
|
+
responses: {
|
|
2153
|
+
/** @description Default Response */
|
|
2154
|
+
200: {
|
|
2155
|
+
headers: {
|
|
2156
|
+
[name: string]: unknown;
|
|
2157
|
+
};
|
|
2158
|
+
content: {
|
|
2159
|
+
"application/json": {
|
|
2160
|
+
success: boolean;
|
|
2161
|
+
message: string;
|
|
2162
|
+
estado?: string;
|
|
2163
|
+
codigo?: string;
|
|
2164
|
+
};
|
|
2165
|
+
};
|
|
2166
|
+
};
|
|
2167
|
+
/** @description Default Response */
|
|
2168
|
+
400: {
|
|
2169
|
+
headers: {
|
|
2170
|
+
[name: string]: unknown;
|
|
2171
|
+
};
|
|
2172
|
+
content: {
|
|
2173
|
+
"application/json": {
|
|
2174
|
+
/** @enum {boolean} */
|
|
2175
|
+
success: false;
|
|
2176
|
+
message: string;
|
|
2177
|
+
code?: string;
|
|
2178
|
+
errors?: {
|
|
2179
|
+
path: string;
|
|
2180
|
+
message: string;
|
|
2181
|
+
}[];
|
|
2182
|
+
};
|
|
2183
|
+
};
|
|
2184
|
+
};
|
|
2185
|
+
/** @description Default Response */
|
|
2186
|
+
403: {
|
|
2187
|
+
headers: {
|
|
2188
|
+
[name: string]: unknown;
|
|
2189
|
+
};
|
|
2190
|
+
content: {
|
|
2191
|
+
"application/json": {
|
|
2192
|
+
/** @enum {boolean} */
|
|
2193
|
+
success: false;
|
|
2194
|
+
message: string;
|
|
2195
|
+
code?: string;
|
|
2196
|
+
errors?: {
|
|
2197
|
+
path: string;
|
|
2198
|
+
message: string;
|
|
2199
|
+
}[];
|
|
2200
|
+
};
|
|
2201
|
+
};
|
|
2202
|
+
};
|
|
2203
|
+
/** @description Default Response */
|
|
2204
|
+
404: {
|
|
2205
|
+
headers: {
|
|
2206
|
+
[name: string]: unknown;
|
|
2207
|
+
};
|
|
2208
|
+
content: {
|
|
2209
|
+
"application/json": {
|
|
2210
|
+
/** @enum {boolean} */
|
|
2211
|
+
success: false;
|
|
2212
|
+
message: string;
|
|
2213
|
+
code?: string;
|
|
2214
|
+
errors?: {
|
|
2215
|
+
path: string;
|
|
2216
|
+
message: string;
|
|
2217
|
+
}[];
|
|
2218
|
+
};
|
|
2219
|
+
};
|
|
2220
|
+
};
|
|
2221
|
+
};
|
|
2222
|
+
};
|
|
2223
|
+
delete?: never;
|
|
2224
|
+
options?: never;
|
|
2225
|
+
head?: never;
|
|
2226
|
+
patch?: never;
|
|
2227
|
+
trace?: never;
|
|
2228
|
+
};
|
|
2229
|
+
"/api/v1/cdr/consultar": {
|
|
2230
|
+
parameters: {
|
|
2231
|
+
query?: never;
|
|
2232
|
+
header?: never;
|
|
2233
|
+
path?: never;
|
|
2234
|
+
cookie?: never;
|
|
2235
|
+
};
|
|
2236
|
+
get?: never;
|
|
2237
|
+
put?: never;
|
|
2238
|
+
/**
|
|
2239
|
+
* Consultar el CDR de un comprobante en SUNAT por referencia
|
|
2240
|
+
* @description Recupera el CDR oficial (billConsultService / getStatusCdr) de un comprobante 01/03/07/08 por RUC+serie+número, aunque no exista en esta BD. Útil para recuperar el histórico emitido por otro PSE. Solo en producción; usa la Clave SOL de la empresa (debe existir y estar en scope de la API key).
|
|
2241
|
+
*/
|
|
2242
|
+
post: {
|
|
2243
|
+
parameters: {
|
|
2244
|
+
query?: never;
|
|
2245
|
+
header?: never;
|
|
2246
|
+
path?: never;
|
|
2247
|
+
cookie?: never;
|
|
2248
|
+
};
|
|
2249
|
+
requestBody: {
|
|
2250
|
+
content: {
|
|
2251
|
+
"application/json": {
|
|
2252
|
+
ruc: string;
|
|
2253
|
+
/** @enum {string} */
|
|
2254
|
+
tipoDoc: "01" | "03" | "07" | "08";
|
|
2255
|
+
serie: string;
|
|
2256
|
+
numero: string;
|
|
2257
|
+
};
|
|
2258
|
+
};
|
|
2259
|
+
};
|
|
2260
|
+
responses: {
|
|
2261
|
+
/** @description Default Response */
|
|
2262
|
+
200: {
|
|
2263
|
+
headers: {
|
|
2264
|
+
[name: string]: unknown;
|
|
2265
|
+
};
|
|
2266
|
+
content: {
|
|
2267
|
+
"application/json": {
|
|
2268
|
+
success: boolean;
|
|
2269
|
+
available: boolean;
|
|
2270
|
+
message: string;
|
|
2271
|
+
statusCode?: string;
|
|
2272
|
+
codigo?: string;
|
|
2273
|
+
descripcion?: string;
|
|
2274
|
+
cdrZipBase64?: string;
|
|
2275
|
+
};
|
|
2276
|
+
};
|
|
2277
|
+
};
|
|
2278
|
+
/** @description Default Response */
|
|
2279
|
+
400: {
|
|
2280
|
+
headers: {
|
|
2281
|
+
[name: string]: unknown;
|
|
2282
|
+
};
|
|
2283
|
+
content: {
|
|
2284
|
+
"application/json": {
|
|
2285
|
+
/** @enum {boolean} */
|
|
2286
|
+
success: false;
|
|
2287
|
+
message: string;
|
|
2288
|
+
code?: string;
|
|
2289
|
+
errors?: {
|
|
2290
|
+
path: string;
|
|
2291
|
+
message: string;
|
|
2292
|
+
}[];
|
|
2293
|
+
};
|
|
2294
|
+
};
|
|
2295
|
+
};
|
|
2296
|
+
/** @description Default Response */
|
|
2297
|
+
404: {
|
|
2298
|
+
headers: {
|
|
2299
|
+
[name: string]: unknown;
|
|
2300
|
+
};
|
|
2301
|
+
content: {
|
|
2302
|
+
"application/json": {
|
|
2303
|
+
/** @enum {boolean} */
|
|
2304
|
+
success: false;
|
|
2305
|
+
message: string;
|
|
2306
|
+
code?: string;
|
|
2307
|
+
errors?: {
|
|
2308
|
+
path: string;
|
|
2309
|
+
message: string;
|
|
2310
|
+
}[];
|
|
2311
|
+
};
|
|
2312
|
+
};
|
|
2313
|
+
};
|
|
2314
|
+
};
|
|
2315
|
+
};
|
|
2316
|
+
delete?: never;
|
|
2317
|
+
options?: never;
|
|
2318
|
+
head?: never;
|
|
2319
|
+
patch?: never;
|
|
2320
|
+
trace?: never;
|
|
2321
|
+
};
|
|
2033
2322
|
"/api/v1/queues/stats": {
|
|
2034
2323
|
parameters: {
|
|
2035
2324
|
query?: never;
|
|
@@ -2197,7 +2486,65 @@ export interface paths {
|
|
|
2197
2486
|
};
|
|
2198
2487
|
};
|
|
2199
2488
|
put?: never;
|
|
2200
|
-
|
|
2489
|
+
/** Crear empresa emisora */
|
|
2490
|
+
post: {
|
|
2491
|
+
parameters: {
|
|
2492
|
+
query?: never;
|
|
2493
|
+
header?: never;
|
|
2494
|
+
path?: never;
|
|
2495
|
+
cookie?: never;
|
|
2496
|
+
};
|
|
2497
|
+
requestBody: {
|
|
2498
|
+
content: {
|
|
2499
|
+
"application/json": {
|
|
2500
|
+
ruc: string;
|
|
2501
|
+
razonSocial: string;
|
|
2502
|
+
nombreComercial?: string;
|
|
2503
|
+
ubigeo?: string;
|
|
2504
|
+
direccion?: string;
|
|
2505
|
+
departamento?: string;
|
|
2506
|
+
provincia?: string;
|
|
2507
|
+
distrito?: string;
|
|
2508
|
+
urbanizacion?: string;
|
|
2509
|
+
telefono?: string;
|
|
2510
|
+
/** Format: email */
|
|
2511
|
+
email?: string;
|
|
2512
|
+
web?: string;
|
|
2513
|
+
solUser?: string;
|
|
2514
|
+
solPassword?: string;
|
|
2515
|
+
/** Format: uuid */
|
|
2516
|
+
tenantId?: string;
|
|
2517
|
+
greClientId?: string;
|
|
2518
|
+
greClientSecret?: string;
|
|
2519
|
+
sunatProduction?: boolean;
|
|
2520
|
+
cuentasBancarias?: {
|
|
2521
|
+
nombre: string;
|
|
2522
|
+
/** @default [] */
|
|
2523
|
+
bancos?: string[];
|
|
2524
|
+
tipoLabel: string;
|
|
2525
|
+
titularLabel?: string;
|
|
2526
|
+
titular?: string;
|
|
2527
|
+
titularRuc?: string;
|
|
2528
|
+
numero: string;
|
|
2529
|
+
cci?: string;
|
|
2530
|
+
}[];
|
|
2531
|
+
terminosTitulo?: string | null;
|
|
2532
|
+
terminos?: string[];
|
|
2533
|
+
notaPagoTitulo?: string | null;
|
|
2534
|
+
notaPagoTexto?: string | null;
|
|
2535
|
+
};
|
|
2536
|
+
};
|
|
2537
|
+
};
|
|
2538
|
+
responses: {
|
|
2539
|
+
/** @description Default Response */
|
|
2540
|
+
200: {
|
|
2541
|
+
headers: {
|
|
2542
|
+
[name: string]: unknown;
|
|
2543
|
+
};
|
|
2544
|
+
content?: never;
|
|
2545
|
+
};
|
|
2546
|
+
};
|
|
2547
|
+
};
|
|
2201
2548
|
delete?: never;
|
|
2202
2549
|
options?: never;
|
|
2203
2550
|
head?: never;
|
|
@@ -2232,7 +2579,67 @@ export interface paths {
|
|
|
2232
2579
|
};
|
|
2233
2580
|
};
|
|
2234
2581
|
};
|
|
2235
|
-
|
|
2582
|
+
/** Actualizar empresa */
|
|
2583
|
+
put: {
|
|
2584
|
+
parameters: {
|
|
2585
|
+
query?: never;
|
|
2586
|
+
header?: never;
|
|
2587
|
+
path: {
|
|
2588
|
+
id: string;
|
|
2589
|
+
};
|
|
2590
|
+
cookie?: never;
|
|
2591
|
+
};
|
|
2592
|
+
requestBody: {
|
|
2593
|
+
content: {
|
|
2594
|
+
"application/json": {
|
|
2595
|
+
ruc?: string;
|
|
2596
|
+
razonSocial?: string;
|
|
2597
|
+
nombreComercial?: string;
|
|
2598
|
+
ubigeo?: string;
|
|
2599
|
+
direccion?: string;
|
|
2600
|
+
departamento?: string;
|
|
2601
|
+
provincia?: string;
|
|
2602
|
+
distrito?: string;
|
|
2603
|
+
urbanizacion?: string;
|
|
2604
|
+
telefono?: string;
|
|
2605
|
+
/** Format: email */
|
|
2606
|
+
email?: string;
|
|
2607
|
+
web?: string;
|
|
2608
|
+
solUser?: string;
|
|
2609
|
+
solPassword?: string;
|
|
2610
|
+
/** Format: uuid */
|
|
2611
|
+
tenantId?: string;
|
|
2612
|
+
greClientId?: string;
|
|
2613
|
+
greClientSecret?: string;
|
|
2614
|
+
sunatProduction?: boolean;
|
|
2615
|
+
cuentasBancarias?: {
|
|
2616
|
+
nombre: string;
|
|
2617
|
+
/** @default [] */
|
|
2618
|
+
bancos?: string[];
|
|
2619
|
+
tipoLabel: string;
|
|
2620
|
+
titularLabel?: string;
|
|
2621
|
+
titular?: string;
|
|
2622
|
+
titularRuc?: string;
|
|
2623
|
+
numero: string;
|
|
2624
|
+
cci?: string;
|
|
2625
|
+
}[];
|
|
2626
|
+
terminosTitulo?: string | null;
|
|
2627
|
+
terminos?: string[];
|
|
2628
|
+
notaPagoTitulo?: string | null;
|
|
2629
|
+
notaPagoTexto?: string | null;
|
|
2630
|
+
};
|
|
2631
|
+
};
|
|
2632
|
+
};
|
|
2633
|
+
responses: {
|
|
2634
|
+
/** @description Default Response */
|
|
2635
|
+
200: {
|
|
2636
|
+
headers: {
|
|
2637
|
+
[name: string]: unknown;
|
|
2638
|
+
};
|
|
2639
|
+
content?: never;
|
|
2640
|
+
};
|
|
2641
|
+
};
|
|
2642
|
+
};
|
|
2236
2643
|
post?: never;
|
|
2237
2644
|
delete?: never;
|
|
2238
2645
|
options?: never;
|
|
@@ -2240,6 +2647,56 @@ export interface paths {
|
|
|
2240
2647
|
patch?: never;
|
|
2241
2648
|
trace?: never;
|
|
2242
2649
|
};
|
|
2650
|
+
"/api/v1/companies/claim": {
|
|
2651
|
+
parameters: {
|
|
2652
|
+
query?: never;
|
|
2653
|
+
header?: never;
|
|
2654
|
+
path?: never;
|
|
2655
|
+
cookie?: never;
|
|
2656
|
+
};
|
|
2657
|
+
get?: never;
|
|
2658
|
+
put?: never;
|
|
2659
|
+
/**
|
|
2660
|
+
* Reclamar un RUC registrado por otra cuenta, con su certificado
|
|
2661
|
+
* @description Prueba de titularidad = certificado digital del RUC. Si la cuenta que lo tiene no acreditó titularidad y no emitió documentos, el RUC pasa a tu cuenta.
|
|
2662
|
+
*/
|
|
2663
|
+
post: {
|
|
2664
|
+
parameters: {
|
|
2665
|
+
query?: never;
|
|
2666
|
+
header?: never;
|
|
2667
|
+
path?: never;
|
|
2668
|
+
cookie?: never;
|
|
2669
|
+
};
|
|
2670
|
+
requestBody: {
|
|
2671
|
+
content: {
|
|
2672
|
+
"application/json": {
|
|
2673
|
+
ruc: string;
|
|
2674
|
+
password: string;
|
|
2675
|
+
/** @description Base64 del .p12/.pfx */
|
|
2676
|
+
content: string;
|
|
2677
|
+
name?: string;
|
|
2678
|
+
razonSocial?: string;
|
|
2679
|
+
/** Format: uuid */
|
|
2680
|
+
tenantId?: string;
|
|
2681
|
+
};
|
|
2682
|
+
};
|
|
2683
|
+
};
|
|
2684
|
+
responses: {
|
|
2685
|
+
/** @description Default Response */
|
|
2686
|
+
200: {
|
|
2687
|
+
headers: {
|
|
2688
|
+
[name: string]: unknown;
|
|
2689
|
+
};
|
|
2690
|
+
content?: never;
|
|
2691
|
+
};
|
|
2692
|
+
};
|
|
2693
|
+
};
|
|
2694
|
+
delete?: never;
|
|
2695
|
+
options?: never;
|
|
2696
|
+
head?: never;
|
|
2697
|
+
patch?: never;
|
|
2698
|
+
trace?: never;
|
|
2699
|
+
};
|
|
2243
2700
|
"/api/v1/companies/{id}/logo": {
|
|
2244
2701
|
parameters: {
|
|
2245
2702
|
query?: never;
|
|
@@ -2307,7 +2764,7 @@ export interface paths {
|
|
|
2307
2764
|
put?: never;
|
|
2308
2765
|
/**
|
|
2309
2766
|
* Crear endpoint webhook
|
|
2310
|
-
* @description Registra una URL que recibirá POSTs cuando ocurran los eventos suscritos. La respuesta incluye el `secret` (mostrado UNA sola vez) — guárdalo para verificar las firmas HMAC-SHA256.
|
|
2767
|
+
* @description Registra una URL que recibirá POSTs cuando ocurran los eventos suscritos. Sin `empresaRuc` el webhook cubre TODAS las empresas de tu cuenta (un solo secret; el `empresaRuc` viaja en cada payload). La respuesta incluye el `secret` (mostrado UNA sola vez) — guárdalo para verificar las firmas HMAC-SHA256.
|
|
2311
2768
|
*/
|
|
2312
2769
|
post: {
|
|
2313
2770
|
parameters: {
|
|
@@ -2319,7 +2776,9 @@ export interface paths {
|
|
|
2319
2776
|
requestBody: {
|
|
2320
2777
|
content: {
|
|
2321
2778
|
"application/json": {
|
|
2322
|
-
empresaRuc
|
|
2779
|
+
empresaRuc?: string;
|
|
2780
|
+
/** Format: uuid */
|
|
2781
|
+
tenantId?: string;
|
|
2323
2782
|
/** Format: uri */
|
|
2324
2783
|
url: string;
|
|
2325
2784
|
events: ("document.accepted" | "document.rejected" | "document.queue_failed" | "document.retried" | "ticket.resolved")[];
|
|
@@ -2581,6 +3040,155 @@ export interface paths {
|
|
|
2581
3040
|
patch?: never;
|
|
2582
3041
|
trace?: never;
|
|
2583
3042
|
};
|
|
3043
|
+
"/api/v1/companies/{id}/branches": {
|
|
3044
|
+
parameters: {
|
|
3045
|
+
query?: never;
|
|
3046
|
+
header?: never;
|
|
3047
|
+
path?: never;
|
|
3048
|
+
cookie?: never;
|
|
3049
|
+
};
|
|
3050
|
+
/** Listar establecimientos (sucursales) de una empresa */
|
|
3051
|
+
get: {
|
|
3052
|
+
parameters: {
|
|
3053
|
+
query?: never;
|
|
3054
|
+
header?: never;
|
|
3055
|
+
path: {
|
|
3056
|
+
id: string;
|
|
3057
|
+
};
|
|
3058
|
+
cookie?: never;
|
|
3059
|
+
};
|
|
3060
|
+
requestBody?: never;
|
|
3061
|
+
responses: {
|
|
3062
|
+
/** @description Default Response */
|
|
3063
|
+
200: {
|
|
3064
|
+
headers: {
|
|
3065
|
+
[name: string]: unknown;
|
|
3066
|
+
};
|
|
3067
|
+
content?: never;
|
|
3068
|
+
};
|
|
3069
|
+
};
|
|
3070
|
+
};
|
|
3071
|
+
put?: never;
|
|
3072
|
+
/**
|
|
3073
|
+
* Crear establecimiento (sucursal)
|
|
3074
|
+
* @description El código debe coincidir con el que SUNAT asignó a la sucursal al registrarla en el portal SOL (Mis Trámites > Establecimientos Anexos).
|
|
3075
|
+
*/
|
|
3076
|
+
post: {
|
|
3077
|
+
parameters: {
|
|
3078
|
+
query?: never;
|
|
3079
|
+
header?: never;
|
|
3080
|
+
path: {
|
|
3081
|
+
id: string;
|
|
3082
|
+
};
|
|
3083
|
+
cookie?: never;
|
|
3084
|
+
};
|
|
3085
|
+
requestBody: {
|
|
3086
|
+
content: {
|
|
3087
|
+
"application/json": {
|
|
3088
|
+
codigo: string;
|
|
3089
|
+
nombre?: string;
|
|
3090
|
+
ubigeo?: string;
|
|
3091
|
+
direccion?: string;
|
|
3092
|
+
departamento?: string;
|
|
3093
|
+
provincia?: string;
|
|
3094
|
+
distrito?: string;
|
|
3095
|
+
urbanizacion?: string;
|
|
3096
|
+
/** @default true */
|
|
3097
|
+
isActive?: boolean;
|
|
3098
|
+
};
|
|
3099
|
+
};
|
|
3100
|
+
};
|
|
3101
|
+
responses: {
|
|
3102
|
+
/** @description Default Response */
|
|
3103
|
+
200: {
|
|
3104
|
+
headers: {
|
|
3105
|
+
[name: string]: unknown;
|
|
3106
|
+
};
|
|
3107
|
+
content?: never;
|
|
3108
|
+
};
|
|
3109
|
+
};
|
|
3110
|
+
};
|
|
3111
|
+
delete?: never;
|
|
3112
|
+
options?: never;
|
|
3113
|
+
head?: never;
|
|
3114
|
+
patch?: never;
|
|
3115
|
+
trace?: never;
|
|
3116
|
+
};
|
|
3117
|
+
"/api/v1/companies/{id}/branches/{branchId}": {
|
|
3118
|
+
parameters: {
|
|
3119
|
+
query?: never;
|
|
3120
|
+
header?: never;
|
|
3121
|
+
path?: never;
|
|
3122
|
+
cookie?: never;
|
|
3123
|
+
};
|
|
3124
|
+
get?: never;
|
|
3125
|
+
/** Actualizar establecimiento */
|
|
3126
|
+
put: {
|
|
3127
|
+
parameters: {
|
|
3128
|
+
query?: never;
|
|
3129
|
+
header?: never;
|
|
3130
|
+
path: {
|
|
3131
|
+
id: string;
|
|
3132
|
+
branchId: string;
|
|
3133
|
+
};
|
|
3134
|
+
cookie?: never;
|
|
3135
|
+
};
|
|
3136
|
+
requestBody: {
|
|
3137
|
+
content: {
|
|
3138
|
+
"application/json": {
|
|
3139
|
+
nombre?: string;
|
|
3140
|
+
ubigeo?: string;
|
|
3141
|
+
direccion?: string;
|
|
3142
|
+
departamento?: string;
|
|
3143
|
+
provincia?: string;
|
|
3144
|
+
distrito?: string;
|
|
3145
|
+
urbanizacion?: string;
|
|
3146
|
+
/** @default true */
|
|
3147
|
+
isActive?: boolean;
|
|
3148
|
+
};
|
|
3149
|
+
};
|
|
3150
|
+
};
|
|
3151
|
+
responses: {
|
|
3152
|
+
/** @description Default Response */
|
|
3153
|
+
200: {
|
|
3154
|
+
headers: {
|
|
3155
|
+
[name: string]: unknown;
|
|
3156
|
+
};
|
|
3157
|
+
content?: never;
|
|
3158
|
+
};
|
|
3159
|
+
};
|
|
3160
|
+
};
|
|
3161
|
+
post?: never;
|
|
3162
|
+
/**
|
|
3163
|
+
* Desactivar establecimiento (soft-delete)
|
|
3164
|
+
* @description No se elimina físicamente porque puede haber documentos emitidos desde ahí. Solo se desactiva (isActive=false).
|
|
3165
|
+
*/
|
|
3166
|
+
delete: {
|
|
3167
|
+
parameters: {
|
|
3168
|
+
query?: never;
|
|
3169
|
+
header?: never;
|
|
3170
|
+
path: {
|
|
3171
|
+
id: string;
|
|
3172
|
+
branchId: string;
|
|
3173
|
+
};
|
|
3174
|
+
cookie?: never;
|
|
3175
|
+
};
|
|
3176
|
+
requestBody?: never;
|
|
3177
|
+
responses: {
|
|
3178
|
+
/** @description Default Response */
|
|
3179
|
+
200: {
|
|
3180
|
+
headers: {
|
|
3181
|
+
[name: string]: unknown;
|
|
3182
|
+
};
|
|
3183
|
+
content?: never;
|
|
3184
|
+
};
|
|
3185
|
+
};
|
|
3186
|
+
};
|
|
3187
|
+
options?: never;
|
|
3188
|
+
head?: never;
|
|
3189
|
+
patch?: never;
|
|
3190
|
+
trace?: never;
|
|
3191
|
+
};
|
|
2584
3192
|
"/api/v1/plans": {
|
|
2585
3193
|
parameters: {
|
|
2586
3194
|
query?: never;
|
|
@@ -2624,6 +3232,10 @@ export interface paths {
|
|
|
2624
3232
|
/** @default 0 */
|
|
2625
3233
|
monthlyDocs?: number;
|
|
2626
3234
|
/** @default 0 */
|
|
3235
|
+
maxRucs?: number;
|
|
3236
|
+
/** @default 0 */
|
|
3237
|
+
requestsPerMinute?: number;
|
|
3238
|
+
/** @default 0 */
|
|
2627
3239
|
price?: number;
|
|
2628
3240
|
/** @default PEN */
|
|
2629
3241
|
currency?: string;
|
|
@@ -2675,6 +3287,10 @@ export interface paths {
|
|
|
2675
3287
|
/** @default 0 */
|
|
2676
3288
|
monthlyDocs?: number;
|
|
2677
3289
|
/** @default 0 */
|
|
3290
|
+
maxRucs?: number;
|
|
3291
|
+
/** @default 0 */
|
|
3292
|
+
requestsPerMinute?: number;
|
|
3293
|
+
/** @default 0 */
|
|
2678
3294
|
price?: number;
|
|
2679
3295
|
/** @default PEN */
|
|
2680
3296
|
currency?: string;
|