@plasoft/boletos 1.0.74 → 1.0.75

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,1014 @@
1
+ import { PDFOptions } from 'puppeteer-core';
2
+
3
+ interface IGerarBoletoAilos {
4
+ banco: Banco.AILOS;
5
+ dados: {
6
+ bancario: IDadosBancario$4;
7
+ parcela: IParcela$4;
8
+ };
9
+ }
10
+ interface IDadosBancario$4 {
11
+ numero: string;
12
+ numero_dv: string;
13
+ convenio: string;
14
+ carteira: string;
15
+ }
16
+ interface IParcela$4 {
17
+ id_boleto: number;
18
+ parcela: number;
19
+ vencimento: string | Date;
20
+ valor: number | string;
21
+ pago: number | string;
22
+ data_emissao: string | Date;
23
+ }
24
+ interface IGerarPDFAilos {
25
+ banco: Banco.AILOS;
26
+ dados: {
27
+ dadosPDF: IDadosPDF$5;
28
+ generatePDF?: (content: string, config: PDFOptions) => Promise<string>;
29
+ };
30
+ }
31
+ interface IDadosPDF$5 {
32
+ pagador: {
33
+ nome: string;
34
+ cpfcnpj: string;
35
+ isCnpj?: boolean;
36
+ endereco: {
37
+ logradouro: string;
38
+ numero: string;
39
+ bairro: string;
40
+ cep: string;
41
+ municipio: string;
42
+ uf: string;
43
+ };
44
+ };
45
+ beneficiario: {
46
+ nome: string;
47
+ cnpj: string;
48
+ dadosBancario: {
49
+ carteira: string;
50
+ convenio: string;
51
+ agencia: string;
52
+ agenciaDigito: string;
53
+ conta: string;
54
+ contaDigito: string;
55
+ juros: number;
56
+ multa: number;
57
+ desconto: number;
58
+ protesto: number;
59
+ };
60
+ endereco: {
61
+ logradouro: string;
62
+ numero: string;
63
+ bairro: string;
64
+ cep: string;
65
+ municipio: string;
66
+ uf: string;
67
+ };
68
+ };
69
+ boleto: {
70
+ dataVencimento: string;
71
+ dataProcessamento: string;
72
+ dataDocumento: string;
73
+ valorCobrado: number | string;
74
+ valorDocumento: number | string;
75
+ valorDescontoAbatimento: number | string;
76
+ valorOutrasDeducoes: number | string;
77
+ valorMulta: number | string;
78
+ valorAcrescimo: number | string;
79
+ quantidade?: number | string;
80
+ valor?: number | string;
81
+ numeroDocumento: string;
82
+ nossoNumero: string;
83
+ especieDocumento: string;
84
+ aceite: string;
85
+ moeda: string;
86
+ usoDoBanco?: string;
87
+ cip?: string;
88
+ codigoBarra: string;
89
+ linhaDigitavel: string;
90
+ codigoBarraImage?: string;
91
+ instrucao1?: string;
92
+ instrucao2?: string;
93
+ instrucao3?: string;
94
+ instrucao4?: string;
95
+ observacoes?: string[];
96
+ nfs: string;
97
+ desconto: number;
98
+ pix?: string;
99
+ };
100
+ }
101
+ interface IGerarRemessaAilos {
102
+ banco: Banco.AILOS;
103
+ dados: {
104
+ remessa: IDadosRemessa$4;
105
+ };
106
+ }
107
+ interface IDadosRemessa$4 {
108
+ beneficiario: {
109
+ nome: string;
110
+ cnpj: string;
111
+ endereco: {
112
+ logradouro: string;
113
+ numero: string;
114
+ bairro: string;
115
+ cep: string;
116
+ municipio: string;
117
+ uf: string;
118
+ };
119
+ };
120
+ dadosBancario: {
121
+ carteira: string;
122
+ convenio: string;
123
+ agencia: string;
124
+ agenciaDigito: string;
125
+ conta: string;
126
+ contaDigito: string;
127
+ numeroRemessa: string;
128
+ jurosMes: number;
129
+ multaAtraso: number;
130
+ descontoPagamento: number;
131
+ tipo_protesto: 'Nenhum' | 'Protestar' | 'Negativar';
132
+ diasProtesto: number;
133
+ };
134
+ boletos: {
135
+ identificacaoTitulo: string;
136
+ vencimento: string | Date;
137
+ valor: number | string;
138
+ nossoNumero: string;
139
+ numeroDocumento: string;
140
+ parcela: number | string;
141
+ aceite: string;
142
+ desconto: number;
143
+ pagador: {
144
+ nome: string;
145
+ pessoa: 'F' | 'J';
146
+ cpfCnpj: string;
147
+ endereco: {
148
+ logradouro: string;
149
+ numero: string;
150
+ bairro: string;
151
+ cep: string;
152
+ municipio: string;
153
+ uf: string;
154
+ };
155
+ };
156
+ }[];
157
+ }
158
+ interface IGerarRetornoAilos {
159
+ banco: Banco.AILOS;
160
+ dados: {
161
+ arquivo: string[];
162
+ };
163
+ }
164
+ interface IDocumentoRetornoAilos {
165
+ id_documento: string;
166
+ especie: string;
167
+ valor: number;
168
+ valor_multa: number;
169
+ valor_juros: number;
170
+ valor_desconto: number;
171
+ valor_total: number;
172
+ data: Date | string;
173
+ rejeitado: boolean;
174
+ motivo: string;
175
+ }
176
+
177
+ interface IGerarBoletoBradesco {
178
+ banco: Banco.BRADESCO;
179
+ dados: {
180
+ bancario: IDadosBancario$3;
181
+ parcela: IParcela$3;
182
+ bradesco?: boolean;
183
+ };
184
+ }
185
+ interface IDadosBancario$3 {
186
+ numero: string;
187
+ numero_dv: string;
188
+ convenio: string;
189
+ carteira: string;
190
+ }
191
+ interface IParcela$3 {
192
+ id_boleto: number;
193
+ parcela: number;
194
+ vencimento: string | Date;
195
+ valor: number | string;
196
+ pago: number | string;
197
+ data_emissao: string | Date;
198
+ }
199
+ interface IGerarPDFBradesco {
200
+ banco: Banco.BRADESCO;
201
+ dados: {
202
+ dadosPDF: IDadosPDF$4;
203
+ generatePDF?: (content: string, config: PDFOptions) => Promise<string>;
204
+ };
205
+ }
206
+ interface IDadosPDF$4 {
207
+ pagador: {
208
+ nome: string;
209
+ endereco: {
210
+ logradouro: string;
211
+ numero: string;
212
+ bairro: string;
213
+ cep: string;
214
+ municipio: string;
215
+ uf: string;
216
+ };
217
+ };
218
+ beneficiario: {
219
+ nome: string;
220
+ cnpj: string;
221
+ dadosBancarios: {
222
+ carteira: string;
223
+ convenio: string;
224
+ agencia: string;
225
+ agenciaDigito: string;
226
+ conta: string;
227
+ contaDigito: string;
228
+ };
229
+ endereco: {
230
+ logradouro: string;
231
+ numero: string;
232
+ bairro: string;
233
+ cep: string;
234
+ municipio: string;
235
+ uf: string;
236
+ };
237
+ };
238
+ boleto: {
239
+ dataVencimento: string;
240
+ dataProcessamento: string;
241
+ dataDocumento: string;
242
+ valorCobrado: number | string;
243
+ valorDocumento: number | string;
244
+ valorDescontoAbatimento: number | string;
245
+ valorOutrasDeducoes: number | string;
246
+ valorMulta: number | string;
247
+ valorAcrescimo: number | string;
248
+ quantidade?: number | string;
249
+ valor?: number | string;
250
+ numeroDocumento: string;
251
+ nossoNumero: string;
252
+ especieDocumento: string;
253
+ aceite: 'S' | 'N';
254
+ moeda: string;
255
+ usoDoBanco?: string;
256
+ cip?: string;
257
+ codigoBarra: string;
258
+ codigoBarraImage?: string;
259
+ instrucao1?: string;
260
+ instrucao2?: string;
261
+ instrucao3?: string;
262
+ };
263
+ }
264
+ interface IGerarRemessaBradesco {
265
+ banco: Banco.BRADESCO;
266
+ dados: {
267
+ remessa: IDadosRemessa$3;
268
+ bradesco?: boolean;
269
+ };
270
+ }
271
+ interface IDadosRemessa$3 {
272
+ beneficiario: {
273
+ nome: string;
274
+ cnpj: string;
275
+ endereco: {
276
+ logradouro: string;
277
+ numero: string;
278
+ bairro: string;
279
+ cep: string;
280
+ municipio: string;
281
+ uf: string;
282
+ };
283
+ };
284
+ dadosBancario: {
285
+ carteira: string;
286
+ convenio: string;
287
+ agencia: string;
288
+ agenciaDigito: string;
289
+ conta: string;
290
+ contaDigito: string;
291
+ numeroRemessa: string;
292
+ jurosMes: number;
293
+ multaAtraso: number;
294
+ descontoPagamento: number;
295
+ diasProtesto: number;
296
+ };
297
+ boletos: {
298
+ identificacaoTitulo: string;
299
+ vencimento: string | Date;
300
+ valor: number | string;
301
+ nossoNumero: string;
302
+ numeroDocumento: string;
303
+ parcela: number | string;
304
+ pagador: {
305
+ nome: string;
306
+ pessoa: 'F' | 'J';
307
+ cpfCnpj: string;
308
+ endereco: {
309
+ logradouro: string;
310
+ numero: string;
311
+ bairro: string;
312
+ cep: string;
313
+ municipio: string;
314
+ uf: string;
315
+ };
316
+ };
317
+ }[];
318
+ }
319
+ interface IGerarRetornoBradesco {
320
+ banco: Banco.BRADESCO;
321
+ dados: {
322
+ arquivo: string[];
323
+ };
324
+ }
325
+ interface IDocumentoRetornoBradesco {
326
+ id_documento: string;
327
+ especie: string;
328
+ valor: number;
329
+ valor_multa: number;
330
+ valor_juros: number;
331
+ valor_desconto: number;
332
+ valor_total: number;
333
+ data: Date | string;
334
+ }
335
+
336
+ interface IGerarBoletoSicredi {
337
+ banco: Banco.SICREDI;
338
+ dados: {
339
+ bancario: IDadosBancario$2;
340
+ parcela: IParcela$2;
341
+ };
342
+ }
343
+ interface IDadosBancario$2 {
344
+ agencia: string;
345
+ posto: string;
346
+ codigoCedente: string;
347
+ tipoCobranca: string;
348
+ tipoCarteira: string;
349
+ }
350
+ interface IParcela$2 {
351
+ id_boleto: number;
352
+ parcela: number;
353
+ vencimento: string | Date;
354
+ valor: number | string;
355
+ pago: number | string;
356
+ data_emissao: string | Date;
357
+ numeroUnico: string;
358
+ }
359
+ interface IGerarPDFSicredi {
360
+ banco: Banco.SICREDI;
361
+ dados: {
362
+ dadosPDF: IDadosPDF$3;
363
+ generatePDF?: (content: string, config: PDFOptions) => Promise<string>;
364
+ };
365
+ }
366
+ interface IGerarCarnePDFSicredi {
367
+ banco: Banco.SICREDI;
368
+ dados: {
369
+ dadosPDF: IDadosCarnePDF;
370
+ generatePDF?: (content: string, config: PDFOptions) => Promise<string>;
371
+ };
372
+ }
373
+ interface IDadosPDF$3 {
374
+ pagador: {
375
+ nome: string;
376
+ cpfcnpj: string;
377
+ isCnpj?: boolean;
378
+ endereco: {
379
+ logradouro: string;
380
+ numero: string;
381
+ bairro: string;
382
+ cep: string;
383
+ municipio: string;
384
+ uf: string;
385
+ };
386
+ };
387
+ beneficiario: {
388
+ nome: string;
389
+ cnpj: string;
390
+ dadosBancario: {
391
+ carteira: string;
392
+ convenio: string;
393
+ agencia: string;
394
+ numero: string;
395
+ posto: string;
396
+ juros: number;
397
+ multa: number;
398
+ desconto: number;
399
+ protesto: number;
400
+ };
401
+ endereco: {
402
+ logradouro: string;
403
+ numero: string;
404
+ bairro: string;
405
+ cep: string;
406
+ municipio: string;
407
+ uf: string;
408
+ };
409
+ };
410
+ boleto: {
411
+ dataVencimento: string;
412
+ dataProcessamento: string;
413
+ dataDocumento: string;
414
+ valorCobrado: number | string;
415
+ valorDocumento: number | string;
416
+ valorDescontoAbatimento: number | string;
417
+ valorOutrasDeducoes: number | string;
418
+ valorMulta: number | string;
419
+ valorAcrescimo: number | string;
420
+ quantidade?: number | string;
421
+ valor?: number | string;
422
+ numeroDocumento: string;
423
+ nossoNumero: string;
424
+ especieDocumento: string;
425
+ aceite: string;
426
+ moeda: string;
427
+ usoDoBanco?: string;
428
+ cip?: string;
429
+ codigoBarra: string;
430
+ linhaDigitavel: string;
431
+ codigoBarraImage?: string;
432
+ instrucao1?: string;
433
+ instrucao2?: string;
434
+ instrucao3?: string;
435
+ instrucao4?: string;
436
+ observacoes?: string[];
437
+ nfs: string;
438
+ desconto: number;
439
+ };
440
+ }
441
+ interface IDadosCarnePDF {
442
+ pagador: {
443
+ nome: string;
444
+ cpfcnpj: string;
445
+ isCnpj?: boolean;
446
+ endereco: {
447
+ logradouro: string;
448
+ numero: string;
449
+ bairro: string;
450
+ cep: string;
451
+ municipio: string;
452
+ uf: string;
453
+ };
454
+ };
455
+ beneficiario: {
456
+ nome: string;
457
+ cnpj: string;
458
+ dadosBancario: {
459
+ carteira: string;
460
+ convenio: string;
461
+ agencia: string;
462
+ numero: string;
463
+ posto: string;
464
+ juros: number;
465
+ multa: number;
466
+ desconto: number;
467
+ protesto: number;
468
+ };
469
+ };
470
+ boleto: {
471
+ dataVencimento: string;
472
+ dataDocumento: string;
473
+ valorCobrado: number | string;
474
+ valorDocumento: number | string;
475
+ valorDescontoAbatimento: number | string;
476
+ valorOutrasDeducoes: number | string;
477
+ valorMulta: number | string;
478
+ valorAcrescimo: number | string;
479
+ numeroDocumento: string;
480
+ nossoNumero: string;
481
+ especieDocumento: string;
482
+ codigoBarra: string;
483
+ linhaDigitavel: string;
484
+ codigoBarraImage?: string;
485
+ instrucao1?: string;
486
+ instrucao2?: string;
487
+ instrucao3?: string;
488
+ instrucao4?: string;
489
+ desconto: number;
490
+ pixCopiaCola: string;
491
+ qrCodeImage: string;
492
+ }[];
493
+ }
494
+ interface IGerarRemessaSicredi {
495
+ banco: Banco.SICREDI;
496
+ dados: {
497
+ remessa: IDadosRemessa$2;
498
+ Sicredi?: boolean;
499
+ };
500
+ }
501
+ interface IDadosRemessa$2 {
502
+ beneficiario: {
503
+ nome: string;
504
+ cnpj: string;
505
+ endereco: {
506
+ logradouro: string;
507
+ numero: string;
508
+ bairro: string;
509
+ cep: string;
510
+ municipio: string;
511
+ uf: string;
512
+ };
513
+ };
514
+ dadosBancario: {
515
+ agencia: string;
516
+ posto: string;
517
+ codigo_cedente: string;
518
+ numeroRemessa: string;
519
+ jurosMes: number;
520
+ multaAtraso: number;
521
+ descontoPagamento: number;
522
+ tipo_protesto: 'Nenhum' | 'Protestar' | 'Negativar';
523
+ diasProtesto: number;
524
+ };
525
+ boletos: {
526
+ identificacaoTitulo: string;
527
+ vencimento: string | Date;
528
+ emissao: string | Date;
529
+ valor: number | string;
530
+ nossoNumero: string;
531
+ numeroDocumento: string;
532
+ parcela: number | string;
533
+ aceite: string;
534
+ desconto: number;
535
+ pagador: {
536
+ nome: string;
537
+ pessoa: 'F' | 'J';
538
+ cpfCnpj: string;
539
+ endereco: {
540
+ logradouro: string;
541
+ numero: string;
542
+ bairro: string;
543
+ cep: string;
544
+ municipio: string;
545
+ uf: string;
546
+ };
547
+ };
548
+ }[];
549
+ }
550
+ interface IGerarRetornoSicredi {
551
+ banco: Banco.SICREDI;
552
+ dados: {
553
+ arquivo: string[];
554
+ };
555
+ }
556
+ interface IDocumentoRetornoSicredi {
557
+ id_documento: string;
558
+ especie: string;
559
+ valor: number;
560
+ valor_multa: number;
561
+ valor_juros: number;
562
+ valor_desconto: number;
563
+ valor_total: number;
564
+ data: Date | string;
565
+ rejeitado: boolean;
566
+ motivo: string;
567
+ }
568
+
569
+ interface IGerarBoletoSicoob {
570
+ banco: Banco.SICOOB;
571
+ dados: {
572
+ bancario: IDadosBancario$1;
573
+ parcela: IParcela$1;
574
+ };
575
+ }
576
+ interface IDadosBancario$1 {
577
+ agencia: string;
578
+ codigo_cliente: string;
579
+ codigo_cliente_dv: string;
580
+ modalidade: string;
581
+ }
582
+ interface IParcela$1 {
583
+ id_boleto: number;
584
+ parcela: number;
585
+ vencimento: string | Date;
586
+ valor: number | string;
587
+ }
588
+ interface IGerarPDFSicoob {
589
+ banco: Banco.SICOOB;
590
+ dados: {
591
+ dadosPDF: IDadosPDF$2;
592
+ generatePDF?: (content: string, config: PDFOptions) => Promise<string>;
593
+ };
594
+ }
595
+ interface IDadosPDF$2 {
596
+ beneficiario: {
597
+ nome: string;
598
+ dadosBancario: {
599
+ agencia: string;
600
+ codigo_cliente: string;
601
+ carteira: string;
602
+ juros: number;
603
+ multa: number;
604
+ desconto: number;
605
+ protesto: number;
606
+ };
607
+ };
608
+ pagador: {
609
+ nome: string;
610
+ cpfcnpj: string;
611
+ isCnpj?: boolean;
612
+ endereco: {
613
+ logradouro: string;
614
+ numero: string;
615
+ bairro: string;
616
+ cep: string;
617
+ municipio: string;
618
+ uf: string;
619
+ };
620
+ };
621
+ boleto: {
622
+ dataVencimento: string;
623
+ dataProcessamento: string;
624
+ dataDocumento: string;
625
+ valorCobrado: number | string;
626
+ valorDocumento: number | string;
627
+ valorDescontoAbatimento: number | string;
628
+ valorOutrasDeducoes: number | string;
629
+ valorMulta: number | string;
630
+ valorAcrescimo: number | string;
631
+ quantidade?: number | string;
632
+ valor?: number | string;
633
+ parcela: number | string;
634
+ aceite: string;
635
+ numeroDocumento: string;
636
+ nossoNumero: string;
637
+ especieDocumento: string;
638
+ moeda: string;
639
+ usoDoBanco?: string;
640
+ codigoBarra: string;
641
+ linhaDigitavel: string;
642
+ codigoBarraImage?: string;
643
+ localPagamento?: string;
644
+ instrucao1?: string;
645
+ instrucao2?: string;
646
+ instrucao3?: string;
647
+ instrucao4?: string;
648
+ observacoes?: string[];
649
+ nfs: string;
650
+ };
651
+ }
652
+ interface IGerarRemessaSicoob {
653
+ banco: Banco.SICOOB;
654
+ dados: {
655
+ remessa: IDadosRemessa$1;
656
+ };
657
+ }
658
+ interface IDadosRemessa$1 {
659
+ beneficiario: {
660
+ nome: string;
661
+ cnpj: string;
662
+ };
663
+ dadosBancario: {
664
+ carteira: string;
665
+ agencia: string;
666
+ agenciaDigito: string;
667
+ conta: string;
668
+ contaDigito: string;
669
+ numeroRemessa: string;
670
+ jurosMes: number;
671
+ multaAtraso: number;
672
+ tipo_protesto: 'Nenhum' | 'Protestar' | 'Negativar';
673
+ diasProtesto: number;
674
+ modalidade: string;
675
+ };
676
+ boletos: {
677
+ identificacaoTitulo: string;
678
+ vencimento: string | Date;
679
+ valor: number | string;
680
+ nossoNumero: string;
681
+ numeroDocumento: string;
682
+ parcela: number | string;
683
+ aceite: string;
684
+ pagador: {
685
+ nome: string;
686
+ pessoa: 'F' | 'J';
687
+ cpfCnpj: string;
688
+ endereco: {
689
+ logradouro: string;
690
+ numero: string;
691
+ bairro: string;
692
+ cep: string;
693
+ municipio: string;
694
+ uf: string;
695
+ };
696
+ };
697
+ }[];
698
+ }
699
+ interface IGerarRetornoSicoob {
700
+ banco: Banco.SICOOB;
701
+ dados: {
702
+ arquivo: string[];
703
+ };
704
+ }
705
+ interface IDocumentoRetornoSicoob {
706
+ id_documento: string;
707
+ especie: string;
708
+ valor: number;
709
+ valor_multa: number;
710
+ valor_juros: number;
711
+ valor_desconto: number;
712
+ valor_total: number;
713
+ data: Date | string;
714
+ rejeitado: boolean;
715
+ motivo: string;
716
+ }
717
+
718
+ interface IGerarBoletoBancoBrasil {
719
+ banco: Banco.BANCO_BRASIL;
720
+ dados: {
721
+ bancario: IDadosBancario;
722
+ parcela: IParcela;
723
+ };
724
+ }
725
+ interface IDadosBancario {
726
+ convenio: string;
727
+ agencia: string;
728
+ numero: string;
729
+ numero_dv: string;
730
+ carteira: string;
731
+ }
732
+ interface IParcela {
733
+ id_boleto: number;
734
+ vencimento: string | Date;
735
+ valor: number | string;
736
+ tipoDocumento: 'NFE' | 'FIN' | 'FAT';
737
+ }
738
+ interface IGerarPDFBancoBrasil {
739
+ banco: Banco.BANCO_BRASIL;
740
+ dados: {
741
+ dadosPDF: IDadosPDF$1;
742
+ };
743
+ }
744
+ interface IDadosPDF$1 {
745
+ pagador: {
746
+ nome: string;
747
+ cpfcnpj: string;
748
+ isCnpj?: boolean;
749
+ endereco: {
750
+ logradouro: string;
751
+ numero: string;
752
+ bairro: string;
753
+ cep: string;
754
+ municipio: string;
755
+ uf: string;
756
+ };
757
+ };
758
+ beneficiario: {
759
+ nome: string;
760
+ cnpj: string;
761
+ dadosBancario: {
762
+ carteira: string;
763
+ variacao_carteira: string;
764
+ convenio: string;
765
+ agencia: string;
766
+ agenciaDigito: string;
767
+ conta: string;
768
+ contaDigito: string;
769
+ juros: number;
770
+ multa: number;
771
+ desconto: number;
772
+ protesto: number;
773
+ };
774
+ endereco: {
775
+ logradouro: string;
776
+ numero: string;
777
+ bairro: string;
778
+ cep: string;
779
+ municipio: string;
780
+ uf: string;
781
+ };
782
+ };
783
+ boleto: {
784
+ dataVencimento: string;
785
+ dataProcessamento: string;
786
+ dataDocumento: string;
787
+ valorCobrado: number | string;
788
+ valorDocumento: number | string;
789
+ valorDescontoAbatimento: number | string;
790
+ valorOutrasDeducoes: number | string;
791
+ valorMulta: number | string;
792
+ valorAcrescimo: number | string;
793
+ quantidade?: number | string;
794
+ valor?: number | string;
795
+ numeroDocumento: string;
796
+ nossoNumero: string;
797
+ especieDocumento: string;
798
+ aceite: string;
799
+ moeda: string;
800
+ usoDoBanco?: string;
801
+ cip?: string;
802
+ codigoBarra: string;
803
+ linhaDigitavel: string;
804
+ codigoBarraImage?: string;
805
+ instrucao1?: string;
806
+ instrucao2?: string;
807
+ instrucao3?: string;
808
+ instrucao4?: string;
809
+ observacoes?: string[];
810
+ nfs: string;
811
+ desconto: number;
812
+ };
813
+ }
814
+ interface IGerarRemessaBancoBrasil {
815
+ banco: Banco.BANCO_BRASIL;
816
+ dados: {
817
+ remessa: IDadosRemessa;
818
+ };
819
+ }
820
+ interface IDadosRemessa {
821
+ beneficiario: {
822
+ nome: string;
823
+ cnpj: string;
824
+ endereco: {
825
+ logradouro: string;
826
+ numero: string;
827
+ bairro: string;
828
+ cep: string;
829
+ municipio: string;
830
+ uf: string;
831
+ };
832
+ };
833
+ dadosBancario: {
834
+ carteira: string;
835
+ variacao_carteira: string;
836
+ convenio: string;
837
+ agencia: string;
838
+ agenciaDigito: string;
839
+ conta: string;
840
+ contaDigito: string;
841
+ numeroRemessa: string;
842
+ jurosMes: number;
843
+ multaAtraso: number;
844
+ descontoPagamento: number;
845
+ tipo_protesto: 'Nenhum' | 'Protestar' | 'Negativar';
846
+ diasProtesto: number;
847
+ };
848
+ boletos: {
849
+ tipoDocumento: 'NFE' | 'FIN' | 'FAT';
850
+ id_boleto: number;
851
+ identificacaoTitulo: string;
852
+ vencimento: string | Date;
853
+ valor: number | string;
854
+ nossoNumero: string;
855
+ numeroDocumento: string;
856
+ parcela: number | string;
857
+ aceite: string;
858
+ desconto: number;
859
+ pagador: {
860
+ nome: string;
861
+ pessoa: 'F' | 'J';
862
+ cpfCnpj: string;
863
+ endereco: {
864
+ logradouro: string;
865
+ numero: string;
866
+ bairro: string;
867
+ cep: string;
868
+ municipio: string;
869
+ uf: string;
870
+ };
871
+ };
872
+ }[];
873
+ }
874
+ interface IGerarRetornoBancoBrasil {
875
+ banco: Banco.BANCO_BRASIL;
876
+ dados: {
877
+ arquivo: string[];
878
+ };
879
+ }
880
+ interface IDocumentoRetornoBancoBrasil {
881
+ id_documento: string;
882
+ especie: string;
883
+ valor: number;
884
+ valor_multa: number;
885
+ valor_juros: number;
886
+ valor_desconto: number;
887
+ valor_total: number;
888
+ data: Date | string;
889
+ rejeitado: boolean;
890
+ motivo: string;
891
+ }
892
+
893
+ interface IGerarPDFItau {
894
+ banco: Banco.ITAU;
895
+ dados: {
896
+ dadosPDF: IDadosPDF;
897
+ };
898
+ }
899
+ interface IDadosPDF {
900
+ pagador: {
901
+ nome: string;
902
+ cnpjCpf: string;
903
+ endereco: {
904
+ logradouro: string;
905
+ numero: string;
906
+ bairro: string;
907
+ cep: string;
908
+ municipio: string;
909
+ uf: string;
910
+ };
911
+ };
912
+ beneficiario: {
913
+ nome: string;
914
+ cnpjCpf: string;
915
+ dadosBancario: {
916
+ agencia: string;
917
+ conta: string;
918
+ contaDigito: string;
919
+ juros: number;
920
+ multa: number;
921
+ desconto: number;
922
+ protesto: number;
923
+ codigoCarteira: string;
924
+ };
925
+ endereco: {
926
+ logradouro: string;
927
+ numero: string;
928
+ bairro: string;
929
+ cep: string;
930
+ municipio: string;
931
+ uf: string;
932
+ };
933
+ };
934
+ boleto: {
935
+ dataVencimento: string;
936
+ dataDocumento: string;
937
+ numeroDocumento: string;
938
+ dataProcessamento: string;
939
+ valorDocumento: number | string;
940
+ nossoNumero: string;
941
+ especieDocumento: string;
942
+ aceite: string;
943
+ codigoBarra: string;
944
+ linhaDigitavel: string;
945
+ qrCode: string;
946
+ pixCopiaCola: string;
947
+ instrucoes: string[];
948
+ };
949
+ }
950
+
951
+ type IGerarBoleto = IGerarBoletoAilos | IGerarBoletoBradesco | IGerarBoletoSicredi | IGerarBoletoSicoob | IGerarBoletoBancoBrasil;
952
+ type IGerarPDF = IGerarPDFAilos | IGerarPDFBradesco | IGerarPDFSicredi | IGerarPDFSicoob | IGerarPDFBancoBrasil | IGerarPDFItau;
953
+ type IGerarCarnePDF = IGerarCarnePDFSicredi;
954
+ type IGerarRemessa = IGerarRemessaAilos | IGerarRemessaBradesco | IGerarRemessaSicredi | IGerarRemessaSicoob | IGerarRemessaBancoBrasil;
955
+ type IGerarRetorno = IGerarRetornoAilos | IGerarRetornoBradesco | IGerarRetornoSicredi | IGerarRetornoSicoob | IGerarRetornoBancoBrasil;
956
+ declare enum Banco {
957
+ AILOS = "085",
958
+ BRADESCO = "005",
959
+ SICREDI = "748",
960
+ SICOOB = "756",
961
+ BANCO_BRASIL = "001",
962
+ ITAU = "341"
963
+ }
964
+
965
+ declare function carne({ banco, dados }: IGerarCarnePDF): Promise<{
966
+ erro: boolean;
967
+ dados: string;
968
+ }> | undefined;
969
+
970
+ declare function gerar({ banco, dados }: IGerarBoleto): {
971
+ linhaDigitavel: string;
972
+ fatorVencimento: string;
973
+ valor: string;
974
+ nossoNumero: string;
975
+ campoLivre: string;
976
+ digitoGeral: string;
977
+ codigoBarra: string;
978
+ } | null | undefined;
979
+
980
+ declare function pdf({ banco, dados }: IGerarPDF): Promise<{
981
+ erro: boolean;
982
+ dados: string;
983
+ } | {
984
+ erro: boolean;
985
+ dados: null;
986
+ }> | undefined;
987
+
988
+ declare function remessa({ banco, dados }: IGerarRemessa): {
989
+ download: string;
990
+ arquivo: string;
991
+ } | Promise<{
992
+ download: string;
993
+ arquivo: string;
994
+ } | null> | null | undefined;
995
+
996
+ declare function retorno({ banco, dados }: IGerarRetorno): Record<string, IDocumentoRetornoBradesco[]> | null | undefined;
997
+
998
+ interface IConfig {
999
+ apiClient?: {
1000
+ url?: string;
1001
+ authorization?: string;
1002
+ };
1003
+ }
1004
+ declare function defineConfig({ apiClient }: IConfig): void;
1005
+
1006
+ declare const _default: {
1007
+ gerar: typeof gerar;
1008
+ pdf: typeof pdf;
1009
+ remessa: typeof remessa;
1010
+ retorno: typeof retorno;
1011
+ carne: typeof carne;
1012
+ };
1013
+
1014
+ export { Banco, IDocumentoRetornoAilos, IDocumentoRetornoBancoBrasil, IDocumentoRetornoSicoob, IDocumentoRetornoSicredi, _default as default, defineConfig };