intifact 2.0.0 → 2.1.2
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 +167 -136
- package/dist/index.d.ts +839 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +78 -7
- package/dist/index.js.map +1 -1
- package/dist/types.d.ts +844 -53
- package/dist/types.d.ts.map +1 -1
- package/package.json +54 -47
package/dist/types.d.ts
CHANGED
|
@@ -734,7 +734,8 @@ export interface paths {
|
|
|
734
734
|
};
|
|
735
735
|
/** Detalle de empresa */
|
|
736
736
|
get: operations["getCompany"];
|
|
737
|
-
|
|
737
|
+
/** Actualizar empresa */
|
|
738
|
+
put: operations["updateCompany"];
|
|
738
739
|
post?: never;
|
|
739
740
|
delete?: never;
|
|
740
741
|
options?: never;
|
|
@@ -742,6 +743,43 @@ export interface paths {
|
|
|
742
743
|
patch?: never;
|
|
743
744
|
trace?: never;
|
|
744
745
|
};
|
|
746
|
+
"/api/v1/companies/register": {
|
|
747
|
+
parameters: {
|
|
748
|
+
query?: never;
|
|
749
|
+
header?: never;
|
|
750
|
+
path?: never;
|
|
751
|
+
cookie?: never;
|
|
752
|
+
};
|
|
753
|
+
get?: never;
|
|
754
|
+
put?: never;
|
|
755
|
+
/**
|
|
756
|
+
* Dar de alta una empresa con su certificado digital
|
|
757
|
+
* @description Requiere una API key live de cuenta en un plan pago (autogestión incluida). El certificado (.p12/.pfx en base64) tiene que declarar el mismo RUC; si no, no se crea nada.
|
|
758
|
+
*/
|
|
759
|
+
post: operations["registerCompany"];
|
|
760
|
+
delete?: never;
|
|
761
|
+
options?: never;
|
|
762
|
+
head?: never;
|
|
763
|
+
patch?: never;
|
|
764
|
+
trace?: never;
|
|
765
|
+
};
|
|
766
|
+
"/api/v1/companies/{id}/certificate": {
|
|
767
|
+
parameters: {
|
|
768
|
+
query?: never;
|
|
769
|
+
header?: never;
|
|
770
|
+
path?: never;
|
|
771
|
+
cookie?: never;
|
|
772
|
+
};
|
|
773
|
+
get?: never;
|
|
774
|
+
put?: never;
|
|
775
|
+
/** Subir certificado digital (.p12/.pfx en base64) */
|
|
776
|
+
post: operations["uploadCompanyCertificate"];
|
|
777
|
+
delete?: never;
|
|
778
|
+
options?: never;
|
|
779
|
+
head?: never;
|
|
780
|
+
patch?: never;
|
|
781
|
+
trace?: never;
|
|
782
|
+
};
|
|
745
783
|
"/api/v1/companies/{id}/logo": {
|
|
746
784
|
parameters: {
|
|
747
785
|
query?: never;
|
|
@@ -752,8 +790,13 @@ export interface paths {
|
|
|
752
790
|
/** Obtener logo de la empresa (PNG/JPG) */
|
|
753
791
|
get: operations["getCompanyLogo"];
|
|
754
792
|
put?: never;
|
|
755
|
-
|
|
756
|
-
|
|
793
|
+
/**
|
|
794
|
+
* Subir logo de la empresa (PNG/JPG, max 200KB)
|
|
795
|
+
* @description El logo aparecerá en los PDFs (A4 y ticket). Reemplaza el anterior.
|
|
796
|
+
*/
|
|
797
|
+
post: operations["uploadCompanyLogo"];
|
|
798
|
+
/** Eliminar logo de la empresa */
|
|
799
|
+
delete: operations["deleteCompanyLogo"];
|
|
757
800
|
options?: never;
|
|
758
801
|
head?: never;
|
|
759
802
|
patch?: never;
|
|
@@ -769,13 +812,38 @@ export interface paths {
|
|
|
769
812
|
/** Listar establecimientos (sucursales) de una empresa */
|
|
770
813
|
get: operations["listBranches"];
|
|
771
814
|
put?: never;
|
|
772
|
-
|
|
815
|
+
/**
|
|
816
|
+
* Crear establecimiento (sucursal)
|
|
817
|
+
* @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).
|
|
818
|
+
*/
|
|
819
|
+
post: operations["createBranch"];
|
|
773
820
|
delete?: never;
|
|
774
821
|
options?: never;
|
|
775
822
|
head?: never;
|
|
776
823
|
patch?: never;
|
|
777
824
|
trace?: never;
|
|
778
825
|
};
|
|
826
|
+
"/api/v1/companies/{id}/branches/{branchId}": {
|
|
827
|
+
parameters: {
|
|
828
|
+
query?: never;
|
|
829
|
+
header?: never;
|
|
830
|
+
path?: never;
|
|
831
|
+
cookie?: never;
|
|
832
|
+
};
|
|
833
|
+
get?: never;
|
|
834
|
+
/** Actualizar establecimiento */
|
|
835
|
+
put: operations["updateBranch"];
|
|
836
|
+
post?: never;
|
|
837
|
+
/**
|
|
838
|
+
* Desactivar establecimiento (soft-delete)
|
|
839
|
+
* @description No se elimina físicamente porque puede haber documentos emitidos desde ahí. Solo se desactiva (isActive=false).
|
|
840
|
+
*/
|
|
841
|
+
delete: operations["deactivateBranch"];
|
|
842
|
+
options?: never;
|
|
843
|
+
head?: never;
|
|
844
|
+
patch?: never;
|
|
845
|
+
trace?: never;
|
|
846
|
+
};
|
|
779
847
|
"/api/v1/plans": {
|
|
780
848
|
parameters: {
|
|
781
849
|
query?: never;
|
|
@@ -812,6 +880,23 @@ export interface paths {
|
|
|
812
880
|
patch?: never;
|
|
813
881
|
trace?: never;
|
|
814
882
|
};
|
|
883
|
+
"/api/v1/usage": {
|
|
884
|
+
parameters: {
|
|
885
|
+
query?: never;
|
|
886
|
+
header?: never;
|
|
887
|
+
path?: never;
|
|
888
|
+
cookie?: never;
|
|
889
|
+
};
|
|
890
|
+
/** Consumo del tenant actual (docs emitidos / límite del plan) */
|
|
891
|
+
get: operations["getUsage"];
|
|
892
|
+
put?: never;
|
|
893
|
+
post?: never;
|
|
894
|
+
delete?: never;
|
|
895
|
+
options?: never;
|
|
896
|
+
head?: never;
|
|
897
|
+
patch?: never;
|
|
898
|
+
trace?: never;
|
|
899
|
+
};
|
|
815
900
|
"/api/v1/auth/signup": {
|
|
816
901
|
parameters: {
|
|
817
902
|
query?: never;
|
|
@@ -1161,6 +1246,7 @@ export interface operations {
|
|
|
1161
1246
|
correlativo: string;
|
|
1162
1247
|
/** @default PEN */
|
|
1163
1248
|
tipoMoneda?: string;
|
|
1249
|
+
tipoCambio?: number;
|
|
1164
1250
|
fechaEmision: string;
|
|
1165
1251
|
empresaRuc: string;
|
|
1166
1252
|
/** @default 0000 */
|
|
@@ -1243,6 +1329,18 @@ export interface operations {
|
|
|
1243
1329
|
tipoDoc?: "31" | "09";
|
|
1244
1330
|
nroDoc: string;
|
|
1245
1331
|
}[];
|
|
1332
|
+
anticipos?: {
|
|
1333
|
+
/** @enum {string} */
|
|
1334
|
+
tipoDoc: "02" | "03";
|
|
1335
|
+
nroDoc: string;
|
|
1336
|
+
total: number;
|
|
1337
|
+
valor: number;
|
|
1338
|
+
/**
|
|
1339
|
+
* @default 10
|
|
1340
|
+
* @enum {string}
|
|
1341
|
+
*/
|
|
1342
|
+
afectacion?: "10" | "20" | "30";
|
|
1343
|
+
}[];
|
|
1246
1344
|
};
|
|
1247
1345
|
};
|
|
1248
1346
|
};
|
|
@@ -1716,6 +1814,7 @@ export interface operations {
|
|
|
1716
1814
|
correlativo: string;
|
|
1717
1815
|
/** @default PEN */
|
|
1718
1816
|
tipoMoneda?: string;
|
|
1817
|
+
tipoCambio?: number;
|
|
1719
1818
|
fechaEmision: string;
|
|
1720
1819
|
empresaRuc: string;
|
|
1721
1820
|
/** @default 0000 */
|
|
@@ -4593,7 +4692,7 @@ export interface operations {
|
|
|
4593
4692
|
};
|
|
4594
4693
|
};
|
|
4595
4694
|
};
|
|
4596
|
-
|
|
4695
|
+
updateCompany: {
|
|
4597
4696
|
parameters: {
|
|
4598
4697
|
query?: never;
|
|
4599
4698
|
header?: never;
|
|
@@ -4602,7 +4701,52 @@ export interface operations {
|
|
|
4602
4701
|
};
|
|
4603
4702
|
cookie?: never;
|
|
4604
4703
|
};
|
|
4605
|
-
requestBody
|
|
4704
|
+
requestBody: {
|
|
4705
|
+
content: {
|
|
4706
|
+
"application/json": {
|
|
4707
|
+
ruc?: string;
|
|
4708
|
+
razonSocial?: string;
|
|
4709
|
+
nombreComercial?: string;
|
|
4710
|
+
ubigeo?: string;
|
|
4711
|
+
direccion?: string;
|
|
4712
|
+
departamento?: string;
|
|
4713
|
+
provincia?: string;
|
|
4714
|
+
distrito?: string;
|
|
4715
|
+
urbanizacion?: string;
|
|
4716
|
+
telefono?: string;
|
|
4717
|
+
/** Format: email */
|
|
4718
|
+
email?: string;
|
|
4719
|
+
web?: string;
|
|
4720
|
+
solUser?: string;
|
|
4721
|
+
solPassword?: string;
|
|
4722
|
+
/** Format: uuid */
|
|
4723
|
+
tenantId?: string;
|
|
4724
|
+
greClientId?: string;
|
|
4725
|
+
greClientSecret?: string;
|
|
4726
|
+
sireClientId?: string;
|
|
4727
|
+
sireClientSecret?: string;
|
|
4728
|
+
sireAutoSync?: boolean;
|
|
4729
|
+
sunatProduction?: boolean;
|
|
4730
|
+
isSandbox?: boolean;
|
|
4731
|
+
cuentasBancarias?: {
|
|
4732
|
+
nombre: string;
|
|
4733
|
+
/** @default [] */
|
|
4734
|
+
bancos?: string[];
|
|
4735
|
+
tipoLabel: string;
|
|
4736
|
+
titularLabel?: string;
|
|
4737
|
+
titular?: string;
|
|
4738
|
+
titularRuc?: string;
|
|
4739
|
+
numero: string;
|
|
4740
|
+
cci?: string;
|
|
4741
|
+
}[];
|
|
4742
|
+
terminosTitulo?: string | null;
|
|
4743
|
+
terminos?: string[];
|
|
4744
|
+
notaPagoTitulo?: string | null;
|
|
4745
|
+
notaPagoTexto?: string | null;
|
|
4746
|
+
sireReintentar?: boolean;
|
|
4747
|
+
};
|
|
4748
|
+
};
|
|
4749
|
+
};
|
|
4606
4750
|
responses: {
|
|
4607
4751
|
/** @description Default Response */
|
|
4608
4752
|
401: {
|
|
@@ -4658,7 +4802,96 @@ export interface operations {
|
|
|
4658
4802
|
};
|
|
4659
4803
|
};
|
|
4660
4804
|
};
|
|
4661
|
-
|
|
4805
|
+
registerCompany: {
|
|
4806
|
+
parameters: {
|
|
4807
|
+
query?: never;
|
|
4808
|
+
header?: never;
|
|
4809
|
+
path?: never;
|
|
4810
|
+
cookie?: never;
|
|
4811
|
+
};
|
|
4812
|
+
requestBody: {
|
|
4813
|
+
content: {
|
|
4814
|
+
"application/json": {
|
|
4815
|
+
ruc: string;
|
|
4816
|
+
razonSocial: string;
|
|
4817
|
+
nombreComercial?: string;
|
|
4818
|
+
ubigeo?: string;
|
|
4819
|
+
direccion?: string;
|
|
4820
|
+
departamento?: string;
|
|
4821
|
+
provincia?: string;
|
|
4822
|
+
distrito?: string;
|
|
4823
|
+
urbanizacion?: string;
|
|
4824
|
+
telefono?: string;
|
|
4825
|
+
/** Format: email */
|
|
4826
|
+
email?: string;
|
|
4827
|
+
web?: string;
|
|
4828
|
+
solUser?: string;
|
|
4829
|
+
solPassword?: string;
|
|
4830
|
+
certificado: {
|
|
4831
|
+
/** @description Base64 del .p12/.pfx */
|
|
4832
|
+
content: string;
|
|
4833
|
+
password: string;
|
|
4834
|
+
name?: string;
|
|
4835
|
+
};
|
|
4836
|
+
};
|
|
4837
|
+
};
|
|
4838
|
+
};
|
|
4839
|
+
responses: {
|
|
4840
|
+
/** @description Default Response */
|
|
4841
|
+
401: {
|
|
4842
|
+
headers: {
|
|
4843
|
+
[name: string]: unknown;
|
|
4844
|
+
};
|
|
4845
|
+
content: {
|
|
4846
|
+
"application/json": {
|
|
4847
|
+
success: boolean;
|
|
4848
|
+
message: string;
|
|
4849
|
+
code?: string;
|
|
4850
|
+
errors?: {
|
|
4851
|
+
path: string;
|
|
4852
|
+
message: string;
|
|
4853
|
+
}[];
|
|
4854
|
+
};
|
|
4855
|
+
};
|
|
4856
|
+
};
|
|
4857
|
+
/** @description Default Response */
|
|
4858
|
+
403: {
|
|
4859
|
+
headers: {
|
|
4860
|
+
[name: string]: unknown;
|
|
4861
|
+
};
|
|
4862
|
+
content: {
|
|
4863
|
+
"application/json": {
|
|
4864
|
+
success: boolean;
|
|
4865
|
+
message: string;
|
|
4866
|
+
code?: string;
|
|
4867
|
+
errors?: {
|
|
4868
|
+
path: string;
|
|
4869
|
+
message: string;
|
|
4870
|
+
}[];
|
|
4871
|
+
};
|
|
4872
|
+
};
|
|
4873
|
+
};
|
|
4874
|
+
/** @description Default Response */
|
|
4875
|
+
429: {
|
|
4876
|
+
headers: {
|
|
4877
|
+
[name: string]: unknown;
|
|
4878
|
+
};
|
|
4879
|
+
content: {
|
|
4880
|
+
"application/json": {
|
|
4881
|
+
success: boolean;
|
|
4882
|
+
message: string;
|
|
4883
|
+
code?: string;
|
|
4884
|
+
errors?: {
|
|
4885
|
+
path: string;
|
|
4886
|
+
message: string;
|
|
4887
|
+
}[];
|
|
4888
|
+
retryAfterSeconds?: number;
|
|
4889
|
+
};
|
|
4890
|
+
};
|
|
4891
|
+
};
|
|
4892
|
+
};
|
|
4893
|
+
};
|
|
4894
|
+
uploadCompanyCertificate: {
|
|
4662
4895
|
parameters: {
|
|
4663
4896
|
query?: never;
|
|
4664
4897
|
header?: never;
|
|
@@ -4667,7 +4900,16 @@ export interface operations {
|
|
|
4667
4900
|
};
|
|
4668
4901
|
cookie?: never;
|
|
4669
4902
|
};
|
|
4670
|
-
requestBody
|
|
4903
|
+
requestBody: {
|
|
4904
|
+
content: {
|
|
4905
|
+
"application/json": {
|
|
4906
|
+
name: string;
|
|
4907
|
+
password: string;
|
|
4908
|
+
/** @description Base64 del .p12/.pfx */
|
|
4909
|
+
content: string;
|
|
4910
|
+
};
|
|
4911
|
+
};
|
|
4912
|
+
};
|
|
4671
4913
|
responses: {
|
|
4672
4914
|
/** @description Default Response */
|
|
4673
4915
|
401: {
|
|
@@ -4723,11 +4965,13 @@ export interface operations {
|
|
|
4723
4965
|
};
|
|
4724
4966
|
};
|
|
4725
4967
|
};
|
|
4726
|
-
|
|
4968
|
+
getCompanyLogo: {
|
|
4727
4969
|
parameters: {
|
|
4728
4970
|
query?: never;
|
|
4729
4971
|
header?: never;
|
|
4730
|
-
path
|
|
4972
|
+
path: {
|
|
4973
|
+
id: string;
|
|
4974
|
+
};
|
|
4731
4975
|
cookie?: never;
|
|
4732
4976
|
};
|
|
4733
4977
|
requestBody?: never;
|
|
@@ -4786,37 +5030,16 @@ export interface operations {
|
|
|
4786
5030
|
};
|
|
4787
5031
|
};
|
|
4788
5032
|
};
|
|
4789
|
-
|
|
5033
|
+
uploadCompanyLogo: {
|
|
4790
5034
|
parameters: {
|
|
4791
5035
|
query?: never;
|
|
4792
5036
|
header?: never;
|
|
4793
|
-
path
|
|
4794
|
-
|
|
4795
|
-
};
|
|
4796
|
-
requestBody: {
|
|
4797
|
-
content: {
|
|
4798
|
-
"application/json": {
|
|
4799
|
-
code: string;
|
|
4800
|
-
name: string;
|
|
4801
|
-
/** @default 0 */
|
|
4802
|
-
monthlyDocs?: number;
|
|
4803
|
-
/** @default 0 */
|
|
4804
|
-
maxRucs?: number;
|
|
4805
|
-
/** @default 0 */
|
|
4806
|
-
requestsPerMinute?: number;
|
|
4807
|
-
/** @default true */
|
|
4808
|
-
allowDespatch?: boolean;
|
|
4809
|
-
/** @default 0 */
|
|
4810
|
-
price?: number;
|
|
4811
|
-
/** @default PEN */
|
|
4812
|
-
currency?: string;
|
|
4813
|
-
/** @default 0 */
|
|
4814
|
-
sortOrder?: number;
|
|
4815
|
-
/** @default true */
|
|
4816
|
-
isActive?: boolean;
|
|
4817
|
-
};
|
|
5037
|
+
path: {
|
|
5038
|
+
id: string;
|
|
4818
5039
|
};
|
|
5040
|
+
cookie?: never;
|
|
4819
5041
|
};
|
|
5042
|
+
requestBody?: never;
|
|
4820
5043
|
responses: {
|
|
4821
5044
|
/** @description Default Response */
|
|
4822
5045
|
401: {
|
|
@@ -4872,7 +5095,7 @@ export interface operations {
|
|
|
4872
5095
|
};
|
|
4873
5096
|
};
|
|
4874
5097
|
};
|
|
4875
|
-
|
|
5098
|
+
deleteCompanyLogo: {
|
|
4876
5099
|
parameters: {
|
|
4877
5100
|
query?: never;
|
|
4878
5101
|
header?: never;
|
|
@@ -4881,21 +5104,7 @@ export interface operations {
|
|
|
4881
5104
|
};
|
|
4882
5105
|
cookie?: never;
|
|
4883
5106
|
};
|
|
4884
|
-
requestBody
|
|
4885
|
-
content: {
|
|
4886
|
-
"application/json": {
|
|
4887
|
-
name?: string;
|
|
4888
|
-
monthlyDocs?: number;
|
|
4889
|
-
maxRucs?: number;
|
|
4890
|
-
requestsPerMinute?: number;
|
|
4891
|
-
allowDespatch?: boolean;
|
|
4892
|
-
price?: number;
|
|
4893
|
-
currency?: string;
|
|
4894
|
-
sortOrder?: number;
|
|
4895
|
-
isActive?: boolean;
|
|
4896
|
-
};
|
|
4897
|
-
};
|
|
4898
|
-
};
|
|
5107
|
+
requestBody?: never;
|
|
4899
5108
|
responses: {
|
|
4900
5109
|
/** @description Default Response */
|
|
4901
5110
|
401: {
|
|
@@ -4951,7 +5160,7 @@ export interface operations {
|
|
|
4951
5160
|
};
|
|
4952
5161
|
};
|
|
4953
5162
|
};
|
|
4954
|
-
|
|
5163
|
+
listBranches: {
|
|
4955
5164
|
parameters: {
|
|
4956
5165
|
query?: never;
|
|
4957
5166
|
header?: never;
|
|
@@ -5016,6 +5225,588 @@ export interface operations {
|
|
|
5016
5225
|
};
|
|
5017
5226
|
};
|
|
5018
5227
|
};
|
|
5228
|
+
createBranch: {
|
|
5229
|
+
parameters: {
|
|
5230
|
+
query?: never;
|
|
5231
|
+
header?: never;
|
|
5232
|
+
path: {
|
|
5233
|
+
id: string;
|
|
5234
|
+
};
|
|
5235
|
+
cookie?: never;
|
|
5236
|
+
};
|
|
5237
|
+
requestBody: {
|
|
5238
|
+
content: {
|
|
5239
|
+
"application/json": {
|
|
5240
|
+
codigo: string;
|
|
5241
|
+
nombre?: string;
|
|
5242
|
+
ubigeo?: string;
|
|
5243
|
+
direccion?: string;
|
|
5244
|
+
departamento?: string;
|
|
5245
|
+
provincia?: string;
|
|
5246
|
+
distrito?: string;
|
|
5247
|
+
urbanizacion?: string;
|
|
5248
|
+
/** @default true */
|
|
5249
|
+
isActive?: boolean;
|
|
5250
|
+
};
|
|
5251
|
+
};
|
|
5252
|
+
};
|
|
5253
|
+
responses: {
|
|
5254
|
+
/** @description Default Response */
|
|
5255
|
+
401: {
|
|
5256
|
+
headers: {
|
|
5257
|
+
[name: string]: unknown;
|
|
5258
|
+
};
|
|
5259
|
+
content: {
|
|
5260
|
+
"application/json": {
|
|
5261
|
+
success: boolean;
|
|
5262
|
+
message: string;
|
|
5263
|
+
code?: string;
|
|
5264
|
+
errors?: {
|
|
5265
|
+
path: string;
|
|
5266
|
+
message: string;
|
|
5267
|
+
}[];
|
|
5268
|
+
};
|
|
5269
|
+
};
|
|
5270
|
+
};
|
|
5271
|
+
/** @description Default Response */
|
|
5272
|
+
403: {
|
|
5273
|
+
headers: {
|
|
5274
|
+
[name: string]: unknown;
|
|
5275
|
+
};
|
|
5276
|
+
content: {
|
|
5277
|
+
"application/json": {
|
|
5278
|
+
success: boolean;
|
|
5279
|
+
message: string;
|
|
5280
|
+
code?: string;
|
|
5281
|
+
errors?: {
|
|
5282
|
+
path: string;
|
|
5283
|
+
message: string;
|
|
5284
|
+
}[];
|
|
5285
|
+
};
|
|
5286
|
+
};
|
|
5287
|
+
};
|
|
5288
|
+
/** @description Default Response */
|
|
5289
|
+
429: {
|
|
5290
|
+
headers: {
|
|
5291
|
+
[name: string]: unknown;
|
|
5292
|
+
};
|
|
5293
|
+
content: {
|
|
5294
|
+
"application/json": {
|
|
5295
|
+
success: boolean;
|
|
5296
|
+
message: string;
|
|
5297
|
+
code?: string;
|
|
5298
|
+
errors?: {
|
|
5299
|
+
path: string;
|
|
5300
|
+
message: string;
|
|
5301
|
+
}[];
|
|
5302
|
+
retryAfterSeconds?: number;
|
|
5303
|
+
};
|
|
5304
|
+
};
|
|
5305
|
+
};
|
|
5306
|
+
};
|
|
5307
|
+
};
|
|
5308
|
+
updateBranch: {
|
|
5309
|
+
parameters: {
|
|
5310
|
+
query?: never;
|
|
5311
|
+
header?: never;
|
|
5312
|
+
path: {
|
|
5313
|
+
id: string;
|
|
5314
|
+
branchId: string;
|
|
5315
|
+
};
|
|
5316
|
+
cookie?: never;
|
|
5317
|
+
};
|
|
5318
|
+
requestBody: {
|
|
5319
|
+
content: {
|
|
5320
|
+
"application/json": {
|
|
5321
|
+
nombre?: string;
|
|
5322
|
+
ubigeo?: string;
|
|
5323
|
+
direccion?: string;
|
|
5324
|
+
departamento?: string;
|
|
5325
|
+
provincia?: string;
|
|
5326
|
+
distrito?: string;
|
|
5327
|
+
urbanizacion?: string;
|
|
5328
|
+
/** @default true */
|
|
5329
|
+
isActive?: boolean;
|
|
5330
|
+
};
|
|
5331
|
+
};
|
|
5332
|
+
};
|
|
5333
|
+
responses: {
|
|
5334
|
+
/** @description Default Response */
|
|
5335
|
+
401: {
|
|
5336
|
+
headers: {
|
|
5337
|
+
[name: string]: unknown;
|
|
5338
|
+
};
|
|
5339
|
+
content: {
|
|
5340
|
+
"application/json": {
|
|
5341
|
+
success: boolean;
|
|
5342
|
+
message: string;
|
|
5343
|
+
code?: string;
|
|
5344
|
+
errors?: {
|
|
5345
|
+
path: string;
|
|
5346
|
+
message: string;
|
|
5347
|
+
}[];
|
|
5348
|
+
};
|
|
5349
|
+
};
|
|
5350
|
+
};
|
|
5351
|
+
/** @description Default Response */
|
|
5352
|
+
403: {
|
|
5353
|
+
headers: {
|
|
5354
|
+
[name: string]: unknown;
|
|
5355
|
+
};
|
|
5356
|
+
content: {
|
|
5357
|
+
"application/json": {
|
|
5358
|
+
success: boolean;
|
|
5359
|
+
message: string;
|
|
5360
|
+
code?: string;
|
|
5361
|
+
errors?: {
|
|
5362
|
+
path: string;
|
|
5363
|
+
message: string;
|
|
5364
|
+
}[];
|
|
5365
|
+
};
|
|
5366
|
+
};
|
|
5367
|
+
};
|
|
5368
|
+
/** @description Default Response */
|
|
5369
|
+
429: {
|
|
5370
|
+
headers: {
|
|
5371
|
+
[name: string]: unknown;
|
|
5372
|
+
};
|
|
5373
|
+
content: {
|
|
5374
|
+
"application/json": {
|
|
5375
|
+
success: boolean;
|
|
5376
|
+
message: string;
|
|
5377
|
+
code?: string;
|
|
5378
|
+
errors?: {
|
|
5379
|
+
path: string;
|
|
5380
|
+
message: string;
|
|
5381
|
+
}[];
|
|
5382
|
+
retryAfterSeconds?: number;
|
|
5383
|
+
};
|
|
5384
|
+
};
|
|
5385
|
+
};
|
|
5386
|
+
};
|
|
5387
|
+
};
|
|
5388
|
+
deactivateBranch: {
|
|
5389
|
+
parameters: {
|
|
5390
|
+
query?: never;
|
|
5391
|
+
header?: never;
|
|
5392
|
+
path: {
|
|
5393
|
+
id: string;
|
|
5394
|
+
branchId: string;
|
|
5395
|
+
};
|
|
5396
|
+
cookie?: never;
|
|
5397
|
+
};
|
|
5398
|
+
requestBody?: never;
|
|
5399
|
+
responses: {
|
|
5400
|
+
/** @description Default Response */
|
|
5401
|
+
401: {
|
|
5402
|
+
headers: {
|
|
5403
|
+
[name: string]: unknown;
|
|
5404
|
+
};
|
|
5405
|
+
content: {
|
|
5406
|
+
"application/json": {
|
|
5407
|
+
success: boolean;
|
|
5408
|
+
message: string;
|
|
5409
|
+
code?: string;
|
|
5410
|
+
errors?: {
|
|
5411
|
+
path: string;
|
|
5412
|
+
message: string;
|
|
5413
|
+
}[];
|
|
5414
|
+
};
|
|
5415
|
+
};
|
|
5416
|
+
};
|
|
5417
|
+
/** @description Default Response */
|
|
5418
|
+
403: {
|
|
5419
|
+
headers: {
|
|
5420
|
+
[name: string]: unknown;
|
|
5421
|
+
};
|
|
5422
|
+
content: {
|
|
5423
|
+
"application/json": {
|
|
5424
|
+
success: boolean;
|
|
5425
|
+
message: string;
|
|
5426
|
+
code?: string;
|
|
5427
|
+
errors?: {
|
|
5428
|
+
path: string;
|
|
5429
|
+
message: string;
|
|
5430
|
+
}[];
|
|
5431
|
+
};
|
|
5432
|
+
};
|
|
5433
|
+
};
|
|
5434
|
+
/** @description Default Response */
|
|
5435
|
+
429: {
|
|
5436
|
+
headers: {
|
|
5437
|
+
[name: string]: unknown;
|
|
5438
|
+
};
|
|
5439
|
+
content: {
|
|
5440
|
+
"application/json": {
|
|
5441
|
+
success: boolean;
|
|
5442
|
+
message: string;
|
|
5443
|
+
code?: string;
|
|
5444
|
+
errors?: {
|
|
5445
|
+
path: string;
|
|
5446
|
+
message: string;
|
|
5447
|
+
}[];
|
|
5448
|
+
retryAfterSeconds?: number;
|
|
5449
|
+
};
|
|
5450
|
+
};
|
|
5451
|
+
};
|
|
5452
|
+
};
|
|
5453
|
+
};
|
|
5454
|
+
listPlans: {
|
|
5455
|
+
parameters: {
|
|
5456
|
+
query?: never;
|
|
5457
|
+
header?: never;
|
|
5458
|
+
path?: never;
|
|
5459
|
+
cookie?: never;
|
|
5460
|
+
};
|
|
5461
|
+
requestBody?: never;
|
|
5462
|
+
responses: {
|
|
5463
|
+
/** @description Default Response */
|
|
5464
|
+
401: {
|
|
5465
|
+
headers: {
|
|
5466
|
+
[name: string]: unknown;
|
|
5467
|
+
};
|
|
5468
|
+
content: {
|
|
5469
|
+
"application/json": {
|
|
5470
|
+
success: boolean;
|
|
5471
|
+
message: string;
|
|
5472
|
+
code?: string;
|
|
5473
|
+
errors?: {
|
|
5474
|
+
path: string;
|
|
5475
|
+
message: string;
|
|
5476
|
+
}[];
|
|
5477
|
+
};
|
|
5478
|
+
};
|
|
5479
|
+
};
|
|
5480
|
+
/** @description Default Response */
|
|
5481
|
+
403: {
|
|
5482
|
+
headers: {
|
|
5483
|
+
[name: string]: unknown;
|
|
5484
|
+
};
|
|
5485
|
+
content: {
|
|
5486
|
+
"application/json": {
|
|
5487
|
+
success: boolean;
|
|
5488
|
+
message: string;
|
|
5489
|
+
code?: string;
|
|
5490
|
+
errors?: {
|
|
5491
|
+
path: string;
|
|
5492
|
+
message: string;
|
|
5493
|
+
}[];
|
|
5494
|
+
};
|
|
5495
|
+
};
|
|
5496
|
+
};
|
|
5497
|
+
/** @description Default Response */
|
|
5498
|
+
429: {
|
|
5499
|
+
headers: {
|
|
5500
|
+
[name: string]: unknown;
|
|
5501
|
+
};
|
|
5502
|
+
content: {
|
|
5503
|
+
"application/json": {
|
|
5504
|
+
success: boolean;
|
|
5505
|
+
message: string;
|
|
5506
|
+
code?: string;
|
|
5507
|
+
errors?: {
|
|
5508
|
+
path: string;
|
|
5509
|
+
message: string;
|
|
5510
|
+
}[];
|
|
5511
|
+
retryAfterSeconds?: number;
|
|
5512
|
+
};
|
|
5513
|
+
};
|
|
5514
|
+
};
|
|
5515
|
+
};
|
|
5516
|
+
};
|
|
5517
|
+
createPlan: {
|
|
5518
|
+
parameters: {
|
|
5519
|
+
query?: never;
|
|
5520
|
+
header?: never;
|
|
5521
|
+
path?: never;
|
|
5522
|
+
cookie?: never;
|
|
5523
|
+
};
|
|
5524
|
+
requestBody: {
|
|
5525
|
+
content: {
|
|
5526
|
+
"application/json": {
|
|
5527
|
+
code: string;
|
|
5528
|
+
name: string;
|
|
5529
|
+
/** @default 0 */
|
|
5530
|
+
monthlyDocs?: number;
|
|
5531
|
+
/** @default 0 */
|
|
5532
|
+
maxRucs?: number;
|
|
5533
|
+
/** @default 0 */
|
|
5534
|
+
requestsPerMinute?: number;
|
|
5535
|
+
/** @default true */
|
|
5536
|
+
allowDespatch?: boolean;
|
|
5537
|
+
/** @default 0 */
|
|
5538
|
+
price?: number;
|
|
5539
|
+
/** @default PEN */
|
|
5540
|
+
currency?: string;
|
|
5541
|
+
/** @default 0 */
|
|
5542
|
+
sortOrder?: number;
|
|
5543
|
+
/** @default true */
|
|
5544
|
+
isActive?: boolean;
|
|
5545
|
+
};
|
|
5546
|
+
};
|
|
5547
|
+
};
|
|
5548
|
+
responses: {
|
|
5549
|
+
/** @description Default Response */
|
|
5550
|
+
401: {
|
|
5551
|
+
headers: {
|
|
5552
|
+
[name: string]: unknown;
|
|
5553
|
+
};
|
|
5554
|
+
content: {
|
|
5555
|
+
"application/json": {
|
|
5556
|
+
success: boolean;
|
|
5557
|
+
message: string;
|
|
5558
|
+
code?: string;
|
|
5559
|
+
errors?: {
|
|
5560
|
+
path: string;
|
|
5561
|
+
message: string;
|
|
5562
|
+
}[];
|
|
5563
|
+
};
|
|
5564
|
+
};
|
|
5565
|
+
};
|
|
5566
|
+
/** @description Default Response */
|
|
5567
|
+
403: {
|
|
5568
|
+
headers: {
|
|
5569
|
+
[name: string]: unknown;
|
|
5570
|
+
};
|
|
5571
|
+
content: {
|
|
5572
|
+
"application/json": {
|
|
5573
|
+
success: boolean;
|
|
5574
|
+
message: string;
|
|
5575
|
+
code?: string;
|
|
5576
|
+
errors?: {
|
|
5577
|
+
path: string;
|
|
5578
|
+
message: string;
|
|
5579
|
+
}[];
|
|
5580
|
+
};
|
|
5581
|
+
};
|
|
5582
|
+
};
|
|
5583
|
+
/** @description Default Response */
|
|
5584
|
+
429: {
|
|
5585
|
+
headers: {
|
|
5586
|
+
[name: string]: unknown;
|
|
5587
|
+
};
|
|
5588
|
+
content: {
|
|
5589
|
+
"application/json": {
|
|
5590
|
+
success: boolean;
|
|
5591
|
+
message: string;
|
|
5592
|
+
code?: string;
|
|
5593
|
+
errors?: {
|
|
5594
|
+
path: string;
|
|
5595
|
+
message: string;
|
|
5596
|
+
}[];
|
|
5597
|
+
retryAfterSeconds?: number;
|
|
5598
|
+
};
|
|
5599
|
+
};
|
|
5600
|
+
};
|
|
5601
|
+
};
|
|
5602
|
+
};
|
|
5603
|
+
updatePlan: {
|
|
5604
|
+
parameters: {
|
|
5605
|
+
query?: never;
|
|
5606
|
+
header?: never;
|
|
5607
|
+
path: {
|
|
5608
|
+
id: string;
|
|
5609
|
+
};
|
|
5610
|
+
cookie?: never;
|
|
5611
|
+
};
|
|
5612
|
+
requestBody: {
|
|
5613
|
+
content: {
|
|
5614
|
+
"application/json": {
|
|
5615
|
+
name?: string;
|
|
5616
|
+
monthlyDocs?: number;
|
|
5617
|
+
maxRucs?: number;
|
|
5618
|
+
requestsPerMinute?: number;
|
|
5619
|
+
allowDespatch?: boolean;
|
|
5620
|
+
price?: number;
|
|
5621
|
+
currency?: string;
|
|
5622
|
+
sortOrder?: number;
|
|
5623
|
+
isActive?: boolean;
|
|
5624
|
+
};
|
|
5625
|
+
};
|
|
5626
|
+
};
|
|
5627
|
+
responses: {
|
|
5628
|
+
/** @description Default Response */
|
|
5629
|
+
401: {
|
|
5630
|
+
headers: {
|
|
5631
|
+
[name: string]: unknown;
|
|
5632
|
+
};
|
|
5633
|
+
content: {
|
|
5634
|
+
"application/json": {
|
|
5635
|
+
success: boolean;
|
|
5636
|
+
message: string;
|
|
5637
|
+
code?: string;
|
|
5638
|
+
errors?: {
|
|
5639
|
+
path: string;
|
|
5640
|
+
message: string;
|
|
5641
|
+
}[];
|
|
5642
|
+
};
|
|
5643
|
+
};
|
|
5644
|
+
};
|
|
5645
|
+
/** @description Default Response */
|
|
5646
|
+
403: {
|
|
5647
|
+
headers: {
|
|
5648
|
+
[name: string]: unknown;
|
|
5649
|
+
};
|
|
5650
|
+
content: {
|
|
5651
|
+
"application/json": {
|
|
5652
|
+
success: boolean;
|
|
5653
|
+
message: string;
|
|
5654
|
+
code?: string;
|
|
5655
|
+
errors?: {
|
|
5656
|
+
path: string;
|
|
5657
|
+
message: string;
|
|
5658
|
+
}[];
|
|
5659
|
+
};
|
|
5660
|
+
};
|
|
5661
|
+
};
|
|
5662
|
+
/** @description Default Response */
|
|
5663
|
+
429: {
|
|
5664
|
+
headers: {
|
|
5665
|
+
[name: string]: unknown;
|
|
5666
|
+
};
|
|
5667
|
+
content: {
|
|
5668
|
+
"application/json": {
|
|
5669
|
+
success: boolean;
|
|
5670
|
+
message: string;
|
|
5671
|
+
code?: string;
|
|
5672
|
+
errors?: {
|
|
5673
|
+
path: string;
|
|
5674
|
+
message: string;
|
|
5675
|
+
}[];
|
|
5676
|
+
retryAfterSeconds?: number;
|
|
5677
|
+
};
|
|
5678
|
+
};
|
|
5679
|
+
};
|
|
5680
|
+
};
|
|
5681
|
+
};
|
|
5682
|
+
deactivatePlan: {
|
|
5683
|
+
parameters: {
|
|
5684
|
+
query?: never;
|
|
5685
|
+
header?: never;
|
|
5686
|
+
path: {
|
|
5687
|
+
id: string;
|
|
5688
|
+
};
|
|
5689
|
+
cookie?: never;
|
|
5690
|
+
};
|
|
5691
|
+
requestBody?: never;
|
|
5692
|
+
responses: {
|
|
5693
|
+
/** @description Default Response */
|
|
5694
|
+
401: {
|
|
5695
|
+
headers: {
|
|
5696
|
+
[name: string]: unknown;
|
|
5697
|
+
};
|
|
5698
|
+
content: {
|
|
5699
|
+
"application/json": {
|
|
5700
|
+
success: boolean;
|
|
5701
|
+
message: string;
|
|
5702
|
+
code?: string;
|
|
5703
|
+
errors?: {
|
|
5704
|
+
path: string;
|
|
5705
|
+
message: string;
|
|
5706
|
+
}[];
|
|
5707
|
+
};
|
|
5708
|
+
};
|
|
5709
|
+
};
|
|
5710
|
+
/** @description Default Response */
|
|
5711
|
+
403: {
|
|
5712
|
+
headers: {
|
|
5713
|
+
[name: string]: unknown;
|
|
5714
|
+
};
|
|
5715
|
+
content: {
|
|
5716
|
+
"application/json": {
|
|
5717
|
+
success: boolean;
|
|
5718
|
+
message: string;
|
|
5719
|
+
code?: string;
|
|
5720
|
+
errors?: {
|
|
5721
|
+
path: string;
|
|
5722
|
+
message: string;
|
|
5723
|
+
}[];
|
|
5724
|
+
};
|
|
5725
|
+
};
|
|
5726
|
+
};
|
|
5727
|
+
/** @description Default Response */
|
|
5728
|
+
429: {
|
|
5729
|
+
headers: {
|
|
5730
|
+
[name: string]: unknown;
|
|
5731
|
+
};
|
|
5732
|
+
content: {
|
|
5733
|
+
"application/json": {
|
|
5734
|
+
success: boolean;
|
|
5735
|
+
message: string;
|
|
5736
|
+
code?: string;
|
|
5737
|
+
errors?: {
|
|
5738
|
+
path: string;
|
|
5739
|
+
message: string;
|
|
5740
|
+
}[];
|
|
5741
|
+
retryAfterSeconds?: number;
|
|
5742
|
+
};
|
|
5743
|
+
};
|
|
5744
|
+
};
|
|
5745
|
+
};
|
|
5746
|
+
};
|
|
5747
|
+
getUsage: {
|
|
5748
|
+
parameters: {
|
|
5749
|
+
query?: never;
|
|
5750
|
+
header?: never;
|
|
5751
|
+
path?: never;
|
|
5752
|
+
cookie?: never;
|
|
5753
|
+
};
|
|
5754
|
+
requestBody?: never;
|
|
5755
|
+
responses: {
|
|
5756
|
+
/** @description Default Response */
|
|
5757
|
+
401: {
|
|
5758
|
+
headers: {
|
|
5759
|
+
[name: string]: unknown;
|
|
5760
|
+
};
|
|
5761
|
+
content: {
|
|
5762
|
+
"application/json": {
|
|
5763
|
+
success: boolean;
|
|
5764
|
+
message: string;
|
|
5765
|
+
code?: string;
|
|
5766
|
+
errors?: {
|
|
5767
|
+
path: string;
|
|
5768
|
+
message: string;
|
|
5769
|
+
}[];
|
|
5770
|
+
};
|
|
5771
|
+
};
|
|
5772
|
+
};
|
|
5773
|
+
/** @description Default Response */
|
|
5774
|
+
403: {
|
|
5775
|
+
headers: {
|
|
5776
|
+
[name: string]: unknown;
|
|
5777
|
+
};
|
|
5778
|
+
content: {
|
|
5779
|
+
"application/json": {
|
|
5780
|
+
success: boolean;
|
|
5781
|
+
message: string;
|
|
5782
|
+
code?: string;
|
|
5783
|
+
errors?: {
|
|
5784
|
+
path: string;
|
|
5785
|
+
message: string;
|
|
5786
|
+
}[];
|
|
5787
|
+
};
|
|
5788
|
+
};
|
|
5789
|
+
};
|
|
5790
|
+
/** @description Default Response */
|
|
5791
|
+
429: {
|
|
5792
|
+
headers: {
|
|
5793
|
+
[name: string]: unknown;
|
|
5794
|
+
};
|
|
5795
|
+
content: {
|
|
5796
|
+
"application/json": {
|
|
5797
|
+
success: boolean;
|
|
5798
|
+
message: string;
|
|
5799
|
+
code?: string;
|
|
5800
|
+
errors?: {
|
|
5801
|
+
path: string;
|
|
5802
|
+
message: string;
|
|
5803
|
+
}[];
|
|
5804
|
+
retryAfterSeconds?: number;
|
|
5805
|
+
};
|
|
5806
|
+
};
|
|
5807
|
+
};
|
|
5808
|
+
};
|
|
5809
|
+
};
|
|
5019
5810
|
signup: {
|
|
5020
5811
|
parameters: {
|
|
5021
5812
|
query?: never;
|