@talajs/dte-sv 0.0.0-stage → 0.5.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.
@@ -0,0 +1,449 @@
1
+ /**
2
+ * Hacienda's document structures: consumer invoices (`01`, schema fe-f-v2), tax-credit invoices
3
+ * (`03`, fe-ccf-v4), and the invalidation (v3) and contingency (v4) events.
4
+ *
5
+ * Builders take plain data (no Tala types) so they can be tested against Hacienda's published
6
+ * schemas on their own. Money comes in as integer cents; line fields go out with up to 8
7
+ * decimals and summary fields with 2, as the Manual funcional's rounding rules require.
8
+ */
9
+ export type Ambiente = '00' | '01';
10
+ export type DteType = '01' | '03';
11
+ export interface Address {
12
+ /** CAT-012, e.g. "06" (San Salvador). */
13
+ departamento: string;
14
+ /** CAT-013, e.g. "23" (San Salvador Centro). */
15
+ municipio: string;
16
+ /** CAT-008, e.g. "14". */
17
+ distrito: string;
18
+ complemento: string;
19
+ }
20
+ export interface Issuer {
21
+ /** 14 or 9 digits, no dashes. */
22
+ nit: string;
23
+ nrc: string;
24
+ /** Legal name. */
25
+ nombre: string;
26
+ nombreComercial: string | null;
27
+ /** CAT-019, e.g. "56101" (restaurants). */
28
+ codActividad: string;
29
+ descActividad: string;
30
+ direccion: Address;
31
+ telefono: string;
32
+ correo: string;
33
+ }
34
+ export interface PointOfSale {
35
+ /** CAT-009: "01" branch, "02" head office, "04" warehouse, "07" yard. */
36
+ tipoEstablecimiento: string;
37
+ /** The business's own code, in the control number: M/B/S/P + 3 digits, e.g. "M001". */
38
+ codEstable: string;
39
+ /** The business's own code, in the control number: P + 3 digits, e.g. "P001". */
40
+ codPuntoVenta: string;
41
+ /** Hacienda's codes for the establishment and point of sale (4 characters), for events. */
42
+ codEstableMH: string;
43
+ codPuntoVentaMH: string;
44
+ }
45
+ /** A person responsible for the establishment, named in events. */
46
+ export interface Responsible {
47
+ nombre: string;
48
+ /** CAT-022: "13" DUI, "36" NIT, "03" passport, "02" residence card, "37" other. */
49
+ tipoDocumento: string;
50
+ numDocumento: string;
51
+ }
52
+ /** The buyer of a tax-credit invoice. */
53
+ export interface Taxpayer {
54
+ nit: string;
55
+ nrc: string;
56
+ nombre: string;
57
+ nombreComercial: string | null;
58
+ codActividad: string;
59
+ descActividad: string;
60
+ direccion: Address;
61
+ telefono: string | null;
62
+ correo: string | null;
63
+ }
64
+ /**
65
+ * A consumer who chose to give details (never required under $25,000). Only what they gave;
66
+ * the rest goes out as null.
67
+ */
68
+ export interface Consumer {
69
+ nombre?: string | null;
70
+ correo?: string | null;
71
+ telefono?: string | null;
72
+ /** CAT-022 and the number, if they gave an ID. */
73
+ tipoDocumento?: string | null;
74
+ numDocumento?: string | null;
75
+ }
76
+ export interface SaleLine {
77
+ description: string;
78
+ quantity: number;
79
+ /** What the customer pays for the line, tax included. */
80
+ grossMinor: number;
81
+ /** The line's share of the order's tax. */
82
+ taxMinor: number;
83
+ /** 1300 for IVA 13%; 0 for exempt. */
84
+ taxRateBps: number;
85
+ /** CAT-011: 1 goods, 2 services, 3 both. */
86
+ itemType: number;
87
+ /** CAT-014, 59 = unit. */
88
+ unit: number;
89
+ code?: string | null;
90
+ }
91
+ export interface SalePayment {
92
+ /** CAT-017: "01" cash, "02" debit card, "03" credit card, "05" transfer, "99" other. */
93
+ code: string;
94
+ amountMinor: number;
95
+ reference?: string | null;
96
+ }
97
+ export interface Header {
98
+ ambiente: Ambiente;
99
+ numeroControl: string;
100
+ /** UUID v4, upper case. */
101
+ codigoGeneracion: string;
102
+ issuedAt: Date;
103
+ /** Issued in contingency (deferred model): CAT-005 type, and a reason (required for 5). */
104
+ contingency?: {
105
+ type: number;
106
+ reason: string | null;
107
+ } | null;
108
+ }
109
+ export interface Sale {
110
+ issuer: Issuer;
111
+ pointOfSale: PointOfSale;
112
+ lines: SaleLine[];
113
+ payments: SalePayment[];
114
+ observations?: string | null;
115
+ }
116
+ export declare class DocumentError extends Error {
117
+ name: string;
118
+ }
119
+ export declare const IVA_BPS = 1300;
120
+ export declare const IVA_NAME = "Impuesto al Valor Agregado 13%";
121
+ /** Date and time in El Salvador (UTC−6, no daylight saving), as Hacienda wants them. */
122
+ export declare function salvadorDateTime(at: Date): {
123
+ date: string;
124
+ time: string;
125
+ };
126
+ /** `DTE-01-M001P001-000000000000042`. */
127
+ export declare function controlNumber(type: string, pos: PointOfSale, sequence: number): string;
128
+ /** A new `codigoGeneracion`: UUID v4, upper case. */
129
+ export declare const generationCode: () => string;
130
+ /** The public lookup link for a document's QR code. */
131
+ export declare function lookupUrl(ambiente: Ambiente, codigoGeneracion: string, issuedAt: Date): string;
132
+ /** Consumer invoice (`01`): prices include IVA, shown per line as `ivaItem`. */
133
+ export declare function consumerInvoice(header: Header, sale: Sale, consumer?: Consumer | null): {
134
+ identificacion: {
135
+ version: number;
136
+ ambiente: Ambiente;
137
+ tipoDte: DteType;
138
+ numeroControl: string;
139
+ codigoGeneracion: string;
140
+ tipoModelo: number;
141
+ tipoOperacion: number;
142
+ tipoContingencia: number | null;
143
+ motivoContin: string | null;
144
+ fecEmi: string;
145
+ horEmi: string;
146
+ tipoMoneda: string;
147
+ };
148
+ documentoRelacionado: null;
149
+ emisor: {
150
+ nit: string;
151
+ nrc: string;
152
+ nombre: string;
153
+ codActividad: string;
154
+ descActividad: string;
155
+ nombreComercial: string | null;
156
+ direccion: Address;
157
+ telefono: string;
158
+ correo: string;
159
+ codEstable: string;
160
+ codPuntoVenta: string;
161
+ };
162
+ receptor: {
163
+ tipoDocumento: string | null;
164
+ numDocumento: string | null;
165
+ nrc: null;
166
+ nombre: string | null;
167
+ codActividad: null;
168
+ descActividad: null;
169
+ direccion: null;
170
+ telefono: string | null;
171
+ correo: string | null;
172
+ } | null;
173
+ otrosDocumentos: null;
174
+ ventaTercero: null;
175
+ cuerpoDocumento: {
176
+ numItem: number;
177
+ tipoItem: number;
178
+ numeroDocumento: null;
179
+ cantidad: number;
180
+ codigo: string | null;
181
+ codTributo: null;
182
+ uniMedida: number;
183
+ descripcion: string;
184
+ precioUni: number;
185
+ montoDescu: number;
186
+ ventaNoSuj: number;
187
+ ventaExenta: number;
188
+ ventaGravada: number;
189
+ tributos: null;
190
+ psv: number;
191
+ noGravado: number;
192
+ ivaItem: number;
193
+ }[];
194
+ resumen: {
195
+ totalNoSuj: number;
196
+ totalExenta: number;
197
+ totalGravada: number;
198
+ subTotalVentas: number;
199
+ descuNoSuj: number;
200
+ descuExenta: number;
201
+ descuGravada: number;
202
+ porcentajeDescuento: number;
203
+ totalDescu: number;
204
+ tributos: null;
205
+ subTotal: number;
206
+ ivaRete: number;
207
+ montoTotalOperacion: number;
208
+ totalNoGravado: number;
209
+ totalPagar: number;
210
+ totalLetras: string;
211
+ totalIva: number;
212
+ saldoFavor: number;
213
+ condicionOperacion: number;
214
+ pagos: {
215
+ codigo: string;
216
+ montoPago: number;
217
+ referencia: string | null;
218
+ plazo: null;
219
+ periodo: null;
220
+ }[] | null;
221
+ numPagoElectronico: null;
222
+ observaciones: string | null;
223
+ };
224
+ apendice: null;
225
+ };
226
+ /** Tax-credit invoice (`03`): net prices, IVA in the summary's `tributos`. */
227
+ export declare function taxCreditInvoice(header: Header, sale: Sale, buyer: Taxpayer): {
228
+ identificacion: {
229
+ version: number;
230
+ ambiente: Ambiente;
231
+ tipoDte: DteType;
232
+ numeroControl: string;
233
+ codigoGeneracion: string;
234
+ tipoModelo: number;
235
+ tipoOperacion: number;
236
+ tipoContingencia: number | null;
237
+ motivoContin: string | null;
238
+ fecEmi: string;
239
+ horEmi: string;
240
+ tipoMoneda: string;
241
+ };
242
+ documentoRelacionado: null;
243
+ emisor: {
244
+ nit: string;
245
+ nrc: string;
246
+ nombre: string;
247
+ codActividad: string;
248
+ descActividad: string;
249
+ nombreComercial: string | null;
250
+ direccion: Address;
251
+ telefono: string;
252
+ correo: string;
253
+ codEstable: string;
254
+ codPuntoVenta: string;
255
+ };
256
+ receptor: {
257
+ nit: string;
258
+ nrc: string;
259
+ nombre: string;
260
+ codActividad: string;
261
+ descActividad: string;
262
+ nombreComercial: string | null;
263
+ direccion: Address;
264
+ telefono: string | null;
265
+ correo: string | null;
266
+ };
267
+ otrosDocumentos: null;
268
+ ventaTercero: null;
269
+ cuerpoDocumento: {
270
+ numItem: number;
271
+ tipoItem: number;
272
+ numeroDocumento: null;
273
+ codigo: string | null;
274
+ codTributo: null;
275
+ descripcion: string;
276
+ cantidad: number;
277
+ uniMedida: number;
278
+ precioUni: number;
279
+ montoDescu: number;
280
+ ventaNoSuj: number;
281
+ ventaExenta: number;
282
+ ventaGravada: number;
283
+ tributos: string[] | null;
284
+ psv: number;
285
+ noGravado: number;
286
+ }[];
287
+ resumen: {
288
+ totalNoSuj: number;
289
+ totalExenta: number;
290
+ totalGravada: number;
291
+ subTotalVentas: number;
292
+ descuNoSuj: number;
293
+ descuExenta: number;
294
+ descuGravada: number;
295
+ porcentajeDescuento: number;
296
+ totalDescu: number;
297
+ tributos: {
298
+ codigo: string;
299
+ descripcion: string;
300
+ valor: number;
301
+ }[] | null;
302
+ subTotal: number;
303
+ ivaPerci: number;
304
+ ivaRete: number;
305
+ montoTotalOperacion: number;
306
+ totalNoGravado: number;
307
+ totalPagar: number;
308
+ totalLetras: string;
309
+ saldoFavor: number;
310
+ condicionOperacion: number;
311
+ pagos: {
312
+ codigo: string;
313
+ montoPago: number;
314
+ referencia: string | null;
315
+ plazo: null;
316
+ periodo: null;
317
+ }[] | null;
318
+ numPagoElectronico: null;
319
+ observaciones: string | null;
320
+ };
321
+ apendice: null;
322
+ };
323
+ /** CAT-024. */
324
+ export type InvalidationReason = 1 | 2 | 3;
325
+ export interface InvalidationInput {
326
+ ambiente: Ambiente;
327
+ codigoGeneracion: string;
328
+ at: Date;
329
+ issuer: Issuer;
330
+ pointOfSale: PointOfSale;
331
+ /** The document being invalidated, as sent and stamped. */
332
+ original: {
333
+ tipoDte: string;
334
+ codigoGeneracion: string;
335
+ selloRecibido: string;
336
+ numeroControl: string;
337
+ issuedAt: Date;
338
+ /** Its buyer, if any (a tax-credit invoice's NIT, or the consumer's ID). */
339
+ receptor?: {
340
+ tipoDocumento: string | null;
341
+ numDocumento: string | null;
342
+ nombre: string | null;
343
+ telefono?: string | null;
344
+ correo?: string | null;
345
+ } | null;
346
+ };
347
+ reason: InvalidationReason;
348
+ /** Required for 1 and 3: the stamped document that replaces it. */
349
+ replacementCode?: string | null;
350
+ note?: string | null;
351
+ responsible: Responsible;
352
+ /** Who asked for it; defaults to the responsible person. */
353
+ requestedBy?: Responsible | null;
354
+ }
355
+ export declare function invalidationEvent(input: InvalidationInput): {
356
+ identificacion: {
357
+ version: number;
358
+ ambiente: Ambiente;
359
+ codigoGeneracion: string;
360
+ fecEmi: string;
361
+ horEmi: string;
362
+ fusion: null;
363
+ };
364
+ emisor: {
365
+ nit: string;
366
+ nombre: string;
367
+ codEstableMH: string;
368
+ codEstable: string;
369
+ codPuntoVentaMH: string;
370
+ codPuntoVenta: string;
371
+ telefono: string;
372
+ correo: string;
373
+ };
374
+ documento: {
375
+ tipoDte: string;
376
+ codigoGeneracion: string;
377
+ selloRecibido: string;
378
+ numeroControl: string;
379
+ fecEmi: string;
380
+ codigoGeneracionR: string | null;
381
+ tipoDocumento: string | null;
382
+ numDocumento: string | null;
383
+ nombre: string | null;
384
+ telefono: string | null;
385
+ correo: string | null;
386
+ };
387
+ motivo: {
388
+ tipoAnulacion: InvalidationReason;
389
+ motivoAnulacion: string | null;
390
+ nombreResponsable: string;
391
+ tipDocResponsable: string;
392
+ numDocResponsable: string;
393
+ nombreSolicita: string;
394
+ tipDocSolicita: string;
395
+ numDocSolicita: string;
396
+ };
397
+ };
398
+ export interface ContingencyInput {
399
+ ambiente: Ambiente;
400
+ codigoGeneracion: string;
401
+ /** When the event is sent. */
402
+ at: Date;
403
+ issuer: Issuer;
404
+ pointOfSale: PointOfSale;
405
+ responsible: Responsible;
406
+ documents: {
407
+ tipoDte: string;
408
+ codigoGeneracion: string;
409
+ }[];
410
+ from: Date;
411
+ to: Date;
412
+ type: number;
413
+ reason: string | null;
414
+ }
415
+ export declare function contingencyEvent(input: ContingencyInput): {
416
+ identificacion: {
417
+ version: number;
418
+ ambiente: Ambiente;
419
+ codigoGeneracion: string;
420
+ fTransmision: string;
421
+ hTransmision: string;
422
+ };
423
+ emisor: {
424
+ nit: string;
425
+ nombre: string;
426
+ nombreResponsable: string;
427
+ tipoDocResponsable: string;
428
+ numeroDocResponsable: string;
429
+ tipoEstablecimiento: string;
430
+ codEstableMH: string;
431
+ codPuntoVentaMH: string;
432
+ telefono: string;
433
+ correo: string;
434
+ };
435
+ detalleDTE: {
436
+ noItem: number;
437
+ tipoDoc: string;
438
+ codigoGeneracion: string;
439
+ }[];
440
+ motivo: {
441
+ fInicio: string;
442
+ fFin: string;
443
+ hInicio: string;
444
+ hFin: string;
445
+ tipoContingencia: number;
446
+ motivoContingencia: string | null;
447
+ };
448
+ };
449
+ //# sourceMappingURL=documents.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"documents.d.ts","sourceRoot":"","sources":["../src/documents.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAIH,MAAM,MAAM,QAAQ,GAAG,IAAI,GAAG,IAAI,CAAA;AAClC,MAAM,MAAM,OAAO,GAAG,IAAI,GAAG,IAAI,CAAA;AAEjC,MAAM,WAAW,OAAO;IACtB,yCAAyC;IACzC,YAAY,EAAE,MAAM,CAAA;IACpB,gDAAgD;IAChD,SAAS,EAAE,MAAM,CAAA;IACjB,0BAA0B;IAC1B,QAAQ,EAAE,MAAM,CAAA;IAChB,WAAW,EAAE,MAAM,CAAA;CACpB;AAED,MAAM,WAAW,MAAM;IACrB,iCAAiC;IACjC,GAAG,EAAE,MAAM,CAAA;IACX,GAAG,EAAE,MAAM,CAAA;IACX,kBAAkB;IAClB,MAAM,EAAE,MAAM,CAAA;IACd,eAAe,EAAE,MAAM,GAAG,IAAI,CAAA;IAC9B,2CAA2C;IAC3C,YAAY,EAAE,MAAM,CAAA;IACpB,aAAa,EAAE,MAAM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