@ramiidv/arca-fecred 0.2.0 → 0.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 +116 -277
- package/dist/arca-fecred.d.ts +62 -104
- package/dist/arca-fecred.d.ts.map +1 -1
- package/dist/arca-fecred.js +133 -307
- package/dist/arca-fecred.js.map +1 -1
- package/dist/constants.d.ts +73 -75
- package/dist/constants.d.ts.map +1 -1
- package/dist/constants.js +65 -95
- package/dist/constants.js.map +1 -1
- package/dist/fecred-client.d.ts +74 -84
- package/dist/fecred-client.d.ts.map +1 -1
- package/dist/fecred-client.js +288 -148
- package/dist/fecred-client.js.map +1 -1
- package/dist/index.d.ts +6 -10
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -13
- package/dist/index.js.map +1 -1
- package/dist/parsers.d.ts +38 -0
- package/dist/parsers.d.ts.map +1 -0
- package/dist/parsers.js +327 -0
- package/dist/parsers.js.map +1 -0
- package/dist/types.d.ts +406 -198
- package/dist/types.d.ts.map +1 -1
- package/dist/validation.d.ts +55 -23
- package/dist/validation.d.ts.map +1 -1
- package/dist/validation.js +233 -144
- package/dist/validation.js.map +1 -1
- package/llms.txt +65 -142
- package/package.json +4 -3
package/dist/types.d.ts
CHANGED
|
@@ -1,208 +1,416 @@
|
|
|
1
|
-
|
|
2
|
-
import type {
|
|
3
|
-
export interface ArcaFecredConfig {
|
|
4
|
-
/**
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
/** Base delay in ms for exponential backoff (default: 1000) */
|
|
17
|
-
retryDelayMs?: number;
|
|
18
|
-
/** Optional event callback */
|
|
19
|
-
onEvent?: (event: ArcaEvent) => void;
|
|
1
|
+
import type { ArcaBaseConfig, WsaaClient } from '@ramiidv/arca-common';
|
|
2
|
+
import type { EstadoComprobante, EstadoCtaCte, OpcionTransferencia, Resultado, RolCtaCte, TipoAceptacion, TipoCancelacion, TipoCodAutorizacion, TipoFechaFiltro } from './constants.js';
|
|
3
|
+
export interface ArcaFecredConfig extends ArcaBaseConfig {
|
|
4
|
+
/**
|
|
5
|
+
* `WsaaClient` propio (por ejemplo, para compartir tickets con otros SDKs).
|
|
6
|
+
* Si se pasa, se ignoran las opciones de WSAA de esta config.
|
|
7
|
+
*/
|
|
8
|
+
wsaa?: WsaaClient;
|
|
9
|
+
/** Sobrescribe los endpoints (por defecto, según `production`). */
|
|
10
|
+
endpoints?: {
|
|
11
|
+
/** URL de FECredService. */
|
|
12
|
+
wsfecred?: string;
|
|
13
|
+
/** URL de WSAA (LoginCms). */
|
|
14
|
+
wsaa?: string;
|
|
15
|
+
};
|
|
20
16
|
}
|
|
17
|
+
/** `AuthRequestType`. */
|
|
21
18
|
export interface WsAuth {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
19
|
+
token: string;
|
|
20
|
+
sign: string;
|
|
21
|
+
/** CUIT representada (11 dígitos). */
|
|
22
|
+
cuitRepresentada: string;
|
|
23
|
+
}
|
|
24
|
+
/** `CodigoDescripcionType`. */
|
|
25
|
+
export interface CodigoDescripcion {
|
|
26
|
+
codigo: number;
|
|
27
|
+
descripcion: string;
|
|
28
|
+
}
|
|
29
|
+
/** `IdComprobanteType` en las respuestas. */
|
|
30
|
+
export interface IdComprobante {
|
|
31
|
+
cuitEmisor: string;
|
|
32
|
+
codTipoCmp: number;
|
|
33
|
+
ptoVta: number;
|
|
34
|
+
nroCmp: number;
|
|
35
|
+
}
|
|
36
|
+
/** `IdComprobanteType` en los requests. */
|
|
37
|
+
export interface IdComprobanteInput {
|
|
38
|
+
/** CUIT del emisor del comprobante (con o sin guiones). */
|
|
39
|
+
cuitEmisor: number | string;
|
|
40
|
+
codTipoCmp: number;
|
|
41
|
+
ptoVta: number;
|
|
42
|
+
nroCmp: number;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* `IdCtaCteType` (xsd:choice) en los requests: el código de cuenta corriente
|
|
46
|
+
* o la identificación de la factura.
|
|
47
|
+
*/
|
|
48
|
+
export type IdCtaCteInput = {
|
|
49
|
+
codCtaCte: number | string;
|
|
50
|
+
idFactura?: never;
|
|
51
|
+
} | {
|
|
52
|
+
idFactura: IdComprobanteInput;
|
|
53
|
+
codCtaCte?: never;
|
|
54
|
+
};
|
|
55
|
+
/** `IdCtaCteType` en las respuestas (viene uno de los dos). */
|
|
56
|
+
export interface IdCtaCte {
|
|
57
|
+
codCtaCte?: string;
|
|
58
|
+
idFactura?: IdComprobante;
|
|
59
|
+
}
|
|
60
|
+
/** `FiltroFechaType`. Las fechas se aceptan como `Date`, `YYYY-MM-DD` o `YYYYMMDD`. */
|
|
61
|
+
export interface FiltroFecha {
|
|
62
|
+
tipo: TipoFechaFiltro;
|
|
63
|
+
desde: Date | string;
|
|
64
|
+
hasta: Date | string;
|
|
65
|
+
}
|
|
66
|
+
/** Datos informativos comunes a las respuestas (`evento`, `arrayObservaciones`). */
|
|
67
|
+
export interface InfoRespuesta {
|
|
68
|
+
/** `evento`: aviso informativo de ARCA, si lo hay. */
|
|
69
|
+
evento?: CodigoDescripcion;
|
|
70
|
+
/** `arrayObservaciones` / `arrayObservacion`. Vacío si no hay. */
|
|
71
|
+
observaciones: CodigoDescripcion[];
|
|
72
|
+
}
|
|
73
|
+
/** `EstadoCtaCteType`. */
|
|
74
|
+
export interface EstadoCtaCteInfo {
|
|
75
|
+
estado: EstadoCtaCte;
|
|
76
|
+
fechaHoraEstado: string;
|
|
77
|
+
}
|
|
78
|
+
/** `EstadoCmpType`. */
|
|
79
|
+
export interface EstadoComprobanteInfo {
|
|
80
|
+
estado: EstadoComprobante;
|
|
81
|
+
fechaHoraEstado: string;
|
|
82
|
+
}
|
|
83
|
+
export interface ConsultarMontoObligadoRecepcionParams {
|
|
84
|
+
/** CUIT a consultar (con o sin guiones). */
|
|
85
|
+
cuitConsultada: number | string;
|
|
86
|
+
/** Fecha de emisión del comprobante a emitir. */
|
|
87
|
+
fechaEmision: Date | string;
|
|
88
|
+
}
|
|
89
|
+
/** `consultarMontoObligadoRecepcionReturn`. */
|
|
90
|
+
export interface MontoObligadoRecepcionResult extends InfoRespuesta {
|
|
91
|
+
/** `obligado` (S/N). */
|
|
30
92
|
obligado: boolean;
|
|
31
|
-
/**
|
|
93
|
+
/** `montoDesde`: monto a partir del cual es obligatoria la FCE, si ARCA lo informa. */
|
|
32
94
|
montoDesde?: number;
|
|
33
|
-
/** Respuesta cruda del WS */
|
|
34
|
-
raw: Record<string, unknown>;
|
|
35
95
|
}
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
/** CUIT del receptor */
|
|
44
|
-
cuitReceptor: string;
|
|
45
|
-
/** Denominacion del receptor */
|
|
46
|
-
denominacionReceptor?: string;
|
|
47
|
-
/** Tipo de comprobante */
|
|
48
|
-
tipoComprobante?: number;
|
|
49
|
-
/** Punto de venta */
|
|
50
|
-
puntoVenta?: number;
|
|
51
|
-
/** Numero de comprobante */
|
|
52
|
-
nroComprobante?: number;
|
|
53
|
-
/** Codigo de moneda */
|
|
54
|
-
codMoneda?: string;
|
|
55
|
-
/** Importe total */
|
|
56
|
-
importeTotal?: number;
|
|
57
|
-
/** Saldo actual */
|
|
58
|
-
saldo?: number;
|
|
59
|
-
/** Estado de la cuenta corriente */
|
|
60
|
-
estado?: string;
|
|
61
|
-
/** Fecha de emision */
|
|
62
|
-
fechaEmision?: string;
|
|
63
|
-
/** Fecha de vencimiento del pago */
|
|
64
|
-
fechaVencimientoPago?: string;
|
|
65
|
-
/** Fecha de vencimiento de aceptacion */
|
|
66
|
-
fechaVencimientoAceptacion?: string;
|
|
67
|
-
/** CAE del comprobante */
|
|
68
|
-
cae?: string;
|
|
69
|
-
/** Respuesta cruda */
|
|
70
|
-
raw?: Record<string, unknown>;
|
|
71
|
-
}
|
|
72
|
-
/** Parametros para consultar cuentas corrientes */
|
|
96
|
+
/** `consultarObligadoRecepcionReturn`. */
|
|
97
|
+
export interface ObligadoRecepcionResult extends InfoRespuesta {
|
|
98
|
+
/** `respuesta` (S/N). */
|
|
99
|
+
obligado: boolean;
|
|
100
|
+
/** `desde`: fecha desde la cual está obligada, si ARCA la informa. */
|
|
101
|
+
desde?: string;
|
|
102
|
+
}
|
|
73
103
|
export interface ConsultarCtasCtesParams {
|
|
74
|
-
/**
|
|
75
|
-
rol:
|
|
76
|
-
/**
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
104
|
+
/** `rolCUITRepresentada`. */
|
|
105
|
+
rol: RolCtaCte;
|
|
106
|
+
/** `CUITContraparte`. */
|
|
107
|
+
cuitContraparte?: number | string;
|
|
108
|
+
fecha?: FiltroFecha;
|
|
109
|
+
estadoCtaCte?: EstadoCtaCte;
|
|
110
|
+
nroPagina?: number;
|
|
111
|
+
opcionTransferencia?: OpcionTransferencia;
|
|
112
|
+
}
|
|
113
|
+
/** `InfoCtaCteType`. */
|
|
114
|
+
export interface InfoCtaCte {
|
|
115
|
+
codCtaCte: string;
|
|
116
|
+
estadoCtaCte: EstadoCtaCteInfo;
|
|
117
|
+
idFacturaCredito: IdComprobante;
|
|
118
|
+
importeTotalFC: number;
|
|
119
|
+
saldo: number;
|
|
120
|
+
saldoAceptado?: number;
|
|
121
|
+
codMoneda: string;
|
|
122
|
+
opcionTransferencia: OpcionTransferencia;
|
|
123
|
+
}
|
|
124
|
+
/** Resultado paginado de `consultarCtasCtes`. */
|
|
125
|
+
export interface ConsultarCtasCtesResult extends InfoRespuesta {
|
|
126
|
+
ctasCtes: InfoCtaCte[];
|
|
127
|
+
nroPagina?: number;
|
|
128
|
+
/** `hayMas` (S/N): hay más páginas. `undefined` si ARCA no lo informa. */
|
|
129
|
+
hayMas?: boolean;
|
|
130
|
+
}
|
|
131
|
+
/** `RetencionType`. */
|
|
132
|
+
export interface Retencion {
|
|
133
|
+
codTipo: number;
|
|
134
|
+
importe: number;
|
|
135
|
+
porcentaje: number;
|
|
136
|
+
descMotivo?: string;
|
|
137
|
+
}
|
|
138
|
+
/** `AjusteOperacionType`. */
|
|
139
|
+
export interface AjusteOperacion {
|
|
140
|
+
codigo: number;
|
|
141
|
+
importe: number;
|
|
142
|
+
}
|
|
143
|
+
/** `CuentaCorrienteType`. */
|
|
144
|
+
export interface CuentaCorriente {
|
|
145
|
+
codCtaCte: string;
|
|
146
|
+
estadoCtaCte: EstadoCtaCteInfo;
|
|
147
|
+
factura: Comprobante;
|
|
148
|
+
notasDCAsociadas: Comprobante[];
|
|
149
|
+
formasCancelacion: CodigoDescripcion[];
|
|
150
|
+
retenciones: Retencion[];
|
|
151
|
+
ajustesOperacion: AjusteOperacion[];
|
|
152
|
+
importeInicial: number;
|
|
153
|
+
importeTotalNotasDC?: number;
|
|
154
|
+
importeCancelado?: number;
|
|
155
|
+
importeTotalRetPesos?: number;
|
|
156
|
+
importeEmbargoPesos?: number;
|
|
157
|
+
saldoAceptado?: number;
|
|
158
|
+
saldo: number;
|
|
159
|
+
codMoneda: string;
|
|
160
|
+
cotizacionMonedaUlt: number;
|
|
161
|
+
}
|
|
162
|
+
export interface ConsultarCtaCteResult extends InfoRespuesta {
|
|
163
|
+
ctaCte: CuentaCorriente;
|
|
164
|
+
}
|
|
165
|
+
export interface HistorialEstadosCtaCteResult {
|
|
166
|
+
idCtaCte: IdCtaCte;
|
|
167
|
+
estados: EstadoCtaCteInfo[];
|
|
168
|
+
}
|
|
169
|
+
export interface ConsultarComprobantesParams {
|
|
170
|
+
/** `rolCUITRepresentada`. */
|
|
171
|
+
rol: RolCtaCte;
|
|
172
|
+
/** `CUITContraparte`. */
|
|
173
|
+
cuitContraparte?: number | string;
|
|
174
|
+
codTipoCmp?: number;
|
|
175
|
+
estadoCmp?: EstadoComprobante;
|
|
176
|
+
fecha?: FiltroFecha;
|
|
177
|
+
codCtaCte?: number | string;
|
|
178
|
+
estadoCtaCte?: EstadoCtaCte;
|
|
179
|
+
nroPagina?: number;
|
|
180
|
+
}
|
|
181
|
+
/** `SubtotalIVAType`. */
|
|
182
|
+
export interface SubtotalIva {
|
|
183
|
+
codigo: number;
|
|
184
|
+
baseImponible: number;
|
|
185
|
+
importe: number;
|
|
186
|
+
}
|
|
187
|
+
/** `OtroTributoType`. */
|
|
188
|
+
export interface OtroTributo {
|
|
189
|
+
codigo: number;
|
|
190
|
+
detalle?: string;
|
|
191
|
+
baseImponible: number;
|
|
192
|
+
importe: number;
|
|
193
|
+
}
|
|
194
|
+
/** `ItemType`. */
|
|
195
|
+
export interface ItemComprobante {
|
|
196
|
+
orden: number;
|
|
197
|
+
unidadesMtx?: number;
|
|
198
|
+
codigoMtx?: string;
|
|
199
|
+
codigo?: string;
|
|
200
|
+
descripcion: string;
|
|
201
|
+
codNomMercosur?: string;
|
|
202
|
+
cantidad?: number;
|
|
203
|
+
codigoUnidadMedida?: number;
|
|
204
|
+
precioUnitario?: number;
|
|
205
|
+
importeBonificacion?: number;
|
|
206
|
+
codigoCondicionIVA: number;
|
|
207
|
+
importeIVA?: number;
|
|
208
|
+
importeItem: number;
|
|
209
|
+
}
|
|
210
|
+
/** `MotivoRechazoType`. */
|
|
211
|
+
export interface MotivoRechazo {
|
|
212
|
+
/** Código de `consultarTiposMotivosRechazo`. */
|
|
213
|
+
codMotivo: number;
|
|
214
|
+
/** Descripción del motivo (3 a 250 caracteres). */
|
|
215
|
+
descMotivo: string;
|
|
216
|
+
/** Justificación (3 a 250 caracteres). */
|
|
217
|
+
justificacion: string;
|
|
218
|
+
}
|
|
219
|
+
/** `CuentaEnAgenteType`. */
|
|
220
|
+
export interface CuentaEnAgente {
|
|
221
|
+
cuitAgente: string;
|
|
222
|
+
razonSocialAgente?: string;
|
|
223
|
+
idCuenta: string;
|
|
224
|
+
denominacion?: string;
|
|
225
|
+
}
|
|
226
|
+
/** `CuentaEnAgenteType` en los requests. */
|
|
227
|
+
export interface CuentaEnAgenteInput {
|
|
228
|
+
cuitAgente: number | string;
|
|
229
|
+
razonSocialAgente?: string;
|
|
230
|
+
/** 3 a 20 caracteres. */
|
|
231
|
+
idCuenta: string;
|
|
232
|
+
/** 3 a 250 caracteres. */
|
|
233
|
+
denominacion?: string;
|
|
234
|
+
}
|
|
235
|
+
/** `InfoAgtDptoCltvType`. */
|
|
236
|
+
export interface InfoAgtDptoCltv {
|
|
237
|
+
fechaInfo: string;
|
|
238
|
+
ctaAgente: CuentaEnAgente;
|
|
239
|
+
recibida: boolean;
|
|
240
|
+
fechaLectura?: string;
|
|
241
|
+
fechaRecep?: string;
|
|
242
|
+
aceptada?: boolean;
|
|
243
|
+
motivoRechazo?: string;
|
|
244
|
+
idPagoAgtDptoCltv?: string;
|
|
245
|
+
cbuAgtDptoCltv?: string;
|
|
246
|
+
}
|
|
247
|
+
/** `InfoSCAType`. */
|
|
248
|
+
export interface InfoSca {
|
|
249
|
+
fechaAceptacionFactura: string;
|
|
250
|
+
informaCBUReceptor: boolean;
|
|
251
|
+
cbuReceptor?: string;
|
|
252
|
+
cbuValidada?: boolean;
|
|
253
|
+
fechaLecturaSCA?: string;
|
|
254
|
+
}
|
|
255
|
+
/** `InfoTransferenciaType` (xsd:choice): viene uno de los dos. */
|
|
256
|
+
export interface InfoTransferencia {
|
|
257
|
+
infoAgtDptoCltv?: InfoAgtDptoCltv;
|
|
258
|
+
infoSCA?: InfoSca;
|
|
259
|
+
}
|
|
260
|
+
/** `ComprobanteType`. */
|
|
261
|
+
export interface Comprobante {
|
|
95
262
|
cuitEmisor: string;
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
263
|
+
razonSocialEmi: string;
|
|
264
|
+
codTipoCmp: number;
|
|
265
|
+
ptoVta: number;
|
|
266
|
+
nroCmp: number;
|
|
99
267
|
cuitReceptor: string;
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
/**
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
export interface
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
/**
|
|
166
|
-
|
|
167
|
-
/**
|
|
168
|
-
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
export interface
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
export interface
|
|
205
|
-
|
|
206
|
-
|
|
268
|
+
razonSocialRecep: string;
|
|
269
|
+
tipoCodAuto: TipoCodAutorizacion;
|
|
270
|
+
/** CAE / CAEA. */
|
|
271
|
+
codAutorizacion: string;
|
|
272
|
+
fechaEmision: string;
|
|
273
|
+
fechaPuestaDispo?: string;
|
|
274
|
+
fechaVenPago?: string;
|
|
275
|
+
fechaVenAcep?: string;
|
|
276
|
+
importeTotal: number;
|
|
277
|
+
codMoneda: string;
|
|
278
|
+
cotizacionMoneda: number;
|
|
279
|
+
cbuEmisor?: string;
|
|
280
|
+
aliasEmisor?: string;
|
|
281
|
+
esAnulacion?: boolean;
|
|
282
|
+
esPostAceptacion?: boolean;
|
|
283
|
+
idComprobanteAsociado?: IdComprobante;
|
|
284
|
+
referenciasComerciales: string[];
|
|
285
|
+
subtotalesIVA: SubtotalIva[];
|
|
286
|
+
otrosTributos: OtroTributo[];
|
|
287
|
+
items: ItemComprobante[];
|
|
288
|
+
datosGenerales?: string;
|
|
289
|
+
datosComerciales?: string;
|
|
290
|
+
leyendaComercial?: string;
|
|
291
|
+
codCtaCte: string;
|
|
292
|
+
estado: EstadoComprobanteInfo;
|
|
293
|
+
tipoAcep?: TipoAceptacion;
|
|
294
|
+
fechaHoraAcep?: string;
|
|
295
|
+
motivosRechazo: MotivoRechazo[];
|
|
296
|
+
opcionTransferencia?: OpcionTransferencia;
|
|
297
|
+
infoTransferencia?: InfoTransferencia;
|
|
298
|
+
}
|
|
299
|
+
/** Resultado paginado de `consultarComprobantes`. */
|
|
300
|
+
export interface ConsultarComprobantesResult extends InfoRespuesta {
|
|
301
|
+
comprobantes: Comprobante[];
|
|
302
|
+
nroPagina?: number;
|
|
303
|
+
hayMas?: boolean;
|
|
304
|
+
}
|
|
305
|
+
export interface HistorialEstadosComprobanteResult {
|
|
306
|
+
idComprobante: IdComprobante;
|
|
307
|
+
estados: EstadoComprobanteInfo[];
|
|
308
|
+
}
|
|
309
|
+
/**
|
|
310
|
+
* `OperacionFECredReturnType`. Solo se devuelve con `resultado` `A` u `O`: un
|
|
311
|
+
* resultado `R` o cualquier error de ARCA se lanza como `ArcaServiceError`.
|
|
312
|
+
*/
|
|
313
|
+
export interface OperacionFecredResult extends InfoRespuesta {
|
|
314
|
+
resultado: Exclude<Resultado, 'R'>;
|
|
315
|
+
idCtaCte: IdCtaCte;
|
|
316
|
+
}
|
|
317
|
+
/** `rechazarNotaDCReturn` (mismas reglas que `OperacionFecredResult`). */
|
|
318
|
+
export interface RechazarNotaDCResult extends InfoRespuesta {
|
|
319
|
+
resultado: Exclude<Resultado, 'R'>;
|
|
320
|
+
idComprobante: IdComprobante;
|
|
321
|
+
}
|
|
322
|
+
/** Forma de cancelación (`CodigoDescripcionType`) para los requests. */
|
|
323
|
+
export interface FormaCancelacionInput {
|
|
324
|
+
/** Código de `consultarTiposFormasCancelacion`. */
|
|
325
|
+
codigo: number;
|
|
326
|
+
descripcion: string;
|
|
327
|
+
}
|
|
328
|
+
/** `RetencionType` para los requests. */
|
|
329
|
+
export interface RetencionInput {
|
|
330
|
+
/** Código de tipo de retención. */
|
|
331
|
+
codTipo: number;
|
|
332
|
+
importe: number;
|
|
333
|
+
/** 0 a 100. */
|
|
334
|
+
porcentaje: number;
|
|
335
|
+
/** 3 a 250 caracteres. */
|
|
336
|
+
descMotivo?: string;
|
|
337
|
+
}
|
|
338
|
+
/** `ConfirmarNotaDCType`. */
|
|
339
|
+
export interface ConfirmarNotaDCInput {
|
|
340
|
+
acepta: boolean;
|
|
341
|
+
idNota: IdComprobanteInput;
|
|
342
|
+
}
|
|
343
|
+
/** `AceptarFECredRequestType` (sin `authRequest`). */
|
|
344
|
+
export interface AceptarFecredParams {
|
|
345
|
+
idCtaCte: IdCtaCteInput;
|
|
346
|
+
/** `arrayConfirmarNotasDC`. */
|
|
347
|
+
confirmarNotasDC?: ConfirmarNotaDCInput[];
|
|
348
|
+
/** `arrayFormasCancelacion`. */
|
|
349
|
+
formasCancelacion?: FormaCancelacionInput[];
|
|
350
|
+
/** `arrayRetenciones`. */
|
|
351
|
+
retenciones?: RetencionInput[];
|
|
352
|
+
/** `arrayAjustesOperacion` (códigos de `consultarTiposAjustesOperacion`). */
|
|
353
|
+
ajustesOperacion?: AjusteOperacion[];
|
|
354
|
+
tipoCancelacion?: TipoCancelacion;
|
|
355
|
+
importeCancelado?: number;
|
|
356
|
+
importeTotalRetPesos?: number;
|
|
357
|
+
importeEmbargoPesos?: number;
|
|
358
|
+
saldoAceptado: number;
|
|
359
|
+
codMoneda: string;
|
|
360
|
+
cotizacionMonedaUlt: number;
|
|
361
|
+
informaCBU?: boolean;
|
|
362
|
+
/** `CBUComprador` (22 dígitos). */
|
|
363
|
+
cbuComprador?: string;
|
|
364
|
+
}
|
|
365
|
+
/** `RechazarFECredRequestType` (sin `authRequest`). */
|
|
366
|
+
export interface RechazarFecredParams {
|
|
367
|
+
idCtaCte: IdCtaCteInput;
|
|
368
|
+
/** `arrayMotivosRechazo` (al menos uno). */
|
|
369
|
+
motivos: MotivoRechazo[];
|
|
370
|
+
}
|
|
371
|
+
/** `RechazarNotaDCRequestType` (sin `authRequest`). */
|
|
372
|
+
export interface RechazarNotaDCParams {
|
|
373
|
+
idComprobante: IdComprobanteInput;
|
|
374
|
+
/** `arrayMotivosRechazo` (al menos uno). */
|
|
375
|
+
motivos: MotivoRechazo[];
|
|
376
|
+
}
|
|
377
|
+
/** `InformarCancelacionTotalFECredRequestType` (sin `authRequest`). */
|
|
378
|
+
export interface InformarCancelacionTotalParams {
|
|
379
|
+
idCtaCte: IdCtaCteInput;
|
|
380
|
+
/** `arrayFormasCancelacion` (al menos una). */
|
|
381
|
+
formasCancelacion: FormaCancelacionInput[];
|
|
382
|
+
importeCancelacion: number;
|
|
383
|
+
}
|
|
384
|
+
/** `ModificarOpcionTransferenciaRequestType` (sin `authRequest`). */
|
|
385
|
+
export interface ModificarOpcionTransferenciaParams {
|
|
386
|
+
idCtaCte: IdCtaCteInput;
|
|
387
|
+
opcionTransferencia: OpcionTransferencia;
|
|
388
|
+
}
|
|
389
|
+
/** `InformarFacturaAgtDptoCltvRequestType` (sin `authRequest`). */
|
|
390
|
+
export interface InformarFacturaAgtDptoCltvParams {
|
|
391
|
+
idCtaCte: IdCtaCteInput;
|
|
392
|
+
ctaAgente: CuentaEnAgenteInput;
|
|
393
|
+
}
|
|
394
|
+
export interface ConsultarFacturasAgtDptoCltvParams {
|
|
395
|
+
idCtaCte?: IdCtaCteInput;
|
|
396
|
+
/** `filtroFecha`. */
|
|
397
|
+
fecha?: FiltroFecha;
|
|
398
|
+
}
|
|
399
|
+
/** `FacturaInformadaAgtDptoCltvType`. */
|
|
400
|
+
export interface FacturaInformadaAgtDptoCltv {
|
|
401
|
+
idFactura: IdComprobante;
|
|
402
|
+
infoAgtDptoCltv: InfoAgtDptoCltv;
|
|
403
|
+
}
|
|
404
|
+
export interface ConsultarFacturasAgtDptoCltvResult extends InfoRespuesta {
|
|
405
|
+
facturas: FacturaInformadaAgtDptoCltv[];
|
|
406
|
+
}
|
|
407
|
+
export interface ConsultarCuentasEnAgtDptoCltvResult extends InfoRespuesta {
|
|
408
|
+
cuentas: CuentaEnAgente[];
|
|
409
|
+
}
|
|
410
|
+
/** `TipoRetencionType`. */
|
|
411
|
+
export interface TipoRetencion {
|
|
412
|
+
codigoJurisdiccion: number;
|
|
413
|
+
descripcionJurisdiccion: string;
|
|
414
|
+
porcentajeRetencion: number;
|
|
207
415
|
}
|
|
208
416
|
//# sourceMappingURL=types.d.ts.map
|