@plasoft/boletos 1.0.66 → 1.0.67
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/build/exemplo.png +0 -0
- package/build/index.d.mts +92 -1
- package/build/index.d.ts +92 -1
- package/build/index.js +1543 -1068
- package/build/index.js.map +1 -1
- package/build/index.mjs +1542 -1067
- package/build/index.mjs.map +1 -1
- package/build/qrcode-example.svg +191 -0
- package/build/sicredi-carne.hbs +608 -0
- package/build/view.html +325 -0
- package/package.json +3 -1
|
Binary file
|
package/build/index.d.mts
CHANGED
|
@@ -169,6 +169,8 @@ interface IDocumentoRetornoAilos {
|
|
|
169
169
|
valor_desconto: number;
|
|
170
170
|
valor_total: number;
|
|
171
171
|
data: Date | string;
|
|
172
|
+
rejeitado: boolean;
|
|
173
|
+
motivo: string;
|
|
172
174
|
}
|
|
173
175
|
|
|
174
176
|
interface IGerarBoletoBradesco {
|
|
@@ -319,6 +321,16 @@ interface IGerarRetornoBradesco {
|
|
|
319
321
|
arquivo: string[];
|
|
320
322
|
};
|
|
321
323
|
}
|
|
324
|
+
interface IDocumentoRetornoBradesco {
|
|
325
|
+
id_documento: string;
|
|
326
|
+
especie: string;
|
|
327
|
+
valor: number;
|
|
328
|
+
valor_multa: number;
|
|
329
|
+
valor_juros: number;
|
|
330
|
+
valor_desconto: number;
|
|
331
|
+
valor_total: number;
|
|
332
|
+
data: Date | string;
|
|
333
|
+
}
|
|
322
334
|
|
|
323
335
|
interface IGerarBoletoSicredi {
|
|
324
336
|
banco: Banco.SICREDI;
|
|
@@ -350,6 +362,13 @@ interface IGerarPDFSicredi {
|
|
|
350
362
|
generatePDF?: (content: string, config: PDFOptions) => Promise<string>;
|
|
351
363
|
};
|
|
352
364
|
}
|
|
365
|
+
interface IGerarCarnePDFSicredi {
|
|
366
|
+
banco: Banco.SICREDI;
|
|
367
|
+
dados: {
|
|
368
|
+
dadosPDF: IDadosCarnePDF;
|
|
369
|
+
generatePDF?: (content: string, config: PDFOptions) => Promise<string>;
|
|
370
|
+
};
|
|
371
|
+
}
|
|
353
372
|
interface IDadosPDF$3 {
|
|
354
373
|
pagador: {
|
|
355
374
|
nome: string;
|
|
@@ -418,6 +437,67 @@ interface IDadosPDF$3 {
|
|
|
418
437
|
desconto: number;
|
|
419
438
|
};
|
|
420
439
|
}
|
|
440
|
+
interface IDadosCarnePDF {
|
|
441
|
+
pagador: {
|
|
442
|
+
nome: string;
|
|
443
|
+
cpfcnpj: string;
|
|
444
|
+
isCnpj?: boolean;
|
|
445
|
+
endereco: {
|
|
446
|
+
logradouro: string;
|
|
447
|
+
numero: string;
|
|
448
|
+
bairro: string;
|
|
449
|
+
cep: string;
|
|
450
|
+
municipio: string;
|
|
451
|
+
uf: string;
|
|
452
|
+
};
|
|
453
|
+
};
|
|
454
|
+
beneficiario: {
|
|
455
|
+
nome: string;
|
|
456
|
+
cnpj: string;
|
|
457
|
+
dadosBancario: {
|
|
458
|
+
carteira: string;
|
|
459
|
+
convenio: string;
|
|
460
|
+
agencia: string;
|
|
461
|
+
numero: string;
|
|
462
|
+
posto: string;
|
|
463
|
+
juros: number;
|
|
464
|
+
multa: number;
|
|
465
|
+
desconto: number;
|
|
466
|
+
protesto: number;
|
|
467
|
+
};
|
|
468
|
+
endereco: {
|
|
469
|
+
logradouro: string;
|
|
470
|
+
numero: string;
|
|
471
|
+
bairro: string;
|
|
472
|
+
cep: string;
|
|
473
|
+
municipio: string;
|
|
474
|
+
uf: string;
|
|
475
|
+
};
|
|
476
|
+
};
|
|
477
|
+
boleto: {
|
|
478
|
+
dataVencimento: string;
|
|
479
|
+
dataDocumento: string;
|
|
480
|
+
valorCobrado: number | string;
|
|
481
|
+
valorDocumento: number | string;
|
|
482
|
+
valorDescontoAbatimento: number | string;
|
|
483
|
+
valorOutrasDeducoes: number | string;
|
|
484
|
+
valorMulta: number | string;
|
|
485
|
+
valorAcrescimo: number | string;
|
|
486
|
+
numeroDocumento: string;
|
|
487
|
+
nossoNumero: string;
|
|
488
|
+
especieDocumento: string;
|
|
489
|
+
codigoBarra: string;
|
|
490
|
+
linhaDigitavel: string;
|
|
491
|
+
codigoBarraImage?: string;
|
|
492
|
+
instrucao1?: string;
|
|
493
|
+
instrucao2?: string;
|
|
494
|
+
instrucao3?: string;
|
|
495
|
+
instrucao4?: string;
|
|
496
|
+
desconto: number;
|
|
497
|
+
pixCopiaCola: string;
|
|
498
|
+
qrCodeImage: string;
|
|
499
|
+
}[];
|
|
500
|
+
}
|
|
421
501
|
interface IGerarRemessaSicredi {
|
|
422
502
|
banco: Banco.SICREDI;
|
|
423
503
|
dados: {
|
|
@@ -489,6 +569,8 @@ interface IDocumentoRetornoSicredi {
|
|
|
489
569
|
valor_desconto: number;
|
|
490
570
|
valor_total: number;
|
|
491
571
|
data: Date | string;
|
|
572
|
+
rejeitado: boolean;
|
|
573
|
+
motivo: string;
|
|
492
574
|
}
|
|
493
575
|
|
|
494
576
|
interface IGerarBoletoSicoob {
|
|
@@ -636,6 +718,8 @@ interface IDocumentoRetornoSicoob {
|
|
|
636
718
|
valor_desconto: number;
|
|
637
719
|
valor_total: number;
|
|
638
720
|
data: Date | string;
|
|
721
|
+
rejeitado: boolean;
|
|
722
|
+
motivo: string;
|
|
639
723
|
}
|
|
640
724
|
|
|
641
725
|
interface IGerarBoletoBancoBrasil {
|
|
@@ -872,6 +956,7 @@ interface IDadosPDF {
|
|
|
872
956
|
|
|
873
957
|
type IGerarBoleto = IGerarBoletoAilos | IGerarBoletoBradesco | IGerarBoletoSicredi | IGerarBoletoSicoob | IGerarBoletoBancoBrasil;
|
|
874
958
|
type IGerarPDF = IGerarPDFAilos | IGerarPDFBradesco | IGerarPDFSicredi | IGerarPDFSicoob | IGerarPDFBancoBrasil | IGerarPDFItau;
|
|
959
|
+
type IGerarCarnePDF = IGerarCarnePDFSicredi;
|
|
875
960
|
type IGerarRemessa = IGerarRemessaAilos | IGerarRemessaBradesco | IGerarRemessaSicredi | IGerarRemessaSicoob | IGerarRemessaBancoBrasil;
|
|
876
961
|
type IGerarRetorno = IGerarRetornoAilos | IGerarRetornoBradesco | IGerarRetornoSicredi | IGerarRetornoSicoob | IGerarRetornoBancoBrasil;
|
|
877
962
|
declare enum Banco {
|
|
@@ -883,6 +968,11 @@ declare enum Banco {
|
|
|
883
968
|
ITAU = "341"
|
|
884
969
|
}
|
|
885
970
|
|
|
971
|
+
declare function carne({ banco, dados }: IGerarCarnePDF): Promise<{
|
|
972
|
+
erro: boolean;
|
|
973
|
+
dados: string;
|
|
974
|
+
}> | undefined;
|
|
975
|
+
|
|
886
976
|
declare function gerar({ banco, dados }: IGerarBoleto): {
|
|
887
977
|
linhaDigitavel: string;
|
|
888
978
|
fatorVencimento: string;
|
|
@@ -909,7 +999,7 @@ declare function remessa({ banco, dados }: IGerarRemessa): {
|
|
|
909
999
|
arquivo: string;
|
|
910
1000
|
} | null> | null | undefined;
|
|
911
1001
|
|
|
912
|
-
declare function retorno({ banco, dados }: IGerarRetorno): Record<string,
|
|
1002
|
+
declare function retorno({ banco, dados }: IGerarRetorno): Record<string, IDocumentoRetornoBradesco[]> | null | undefined;
|
|
913
1003
|
|
|
914
1004
|
interface IConfig {
|
|
915
1005
|
apiClient?: {
|
|
@@ -924,6 +1014,7 @@ declare const _default: {
|
|
|
924
1014
|
pdf: typeof pdf;
|
|
925
1015
|
remessa: typeof remessa;
|
|
926
1016
|
retorno: typeof retorno;
|
|
1017
|
+
carne: typeof carne;
|
|
927
1018
|
};
|
|
928
1019
|
|
|
929
1020
|
export { Banco, IDocumentoRetornoAilos, IDocumentoRetornoBancoBrasil, IDocumentoRetornoSicoob, IDocumentoRetornoSicredi, _default as default, defineConfig };
|
package/build/index.d.ts
CHANGED
|
@@ -169,6 +169,8 @@ interface IDocumentoRetornoAilos {
|
|
|
169
169
|
valor_desconto: number;
|
|
170
170
|
valor_total: number;
|
|
171
171
|
data: Date | string;
|
|
172
|
+
rejeitado: boolean;
|
|
173
|
+
motivo: string;
|
|
172
174
|
}
|
|
173
175
|
|
|
174
176
|
interface IGerarBoletoBradesco {
|
|
@@ -319,6 +321,16 @@ interface IGerarRetornoBradesco {
|
|
|
319
321
|
arquivo: string[];
|
|
320
322
|
};
|
|
321
323
|
}
|
|
324
|
+
interface IDocumentoRetornoBradesco {
|
|
325
|
+
id_documento: string;
|
|
326
|
+
especie: string;
|
|
327
|
+
valor: number;
|
|
328
|
+
valor_multa: number;
|
|
329
|
+
valor_juros: number;
|
|
330
|
+
valor_desconto: number;
|
|
331
|
+
valor_total: number;
|
|
332
|
+
data: Date | string;
|
|
333
|
+
}
|
|
322
334
|
|
|
323
335
|
interface IGerarBoletoSicredi {
|
|
324
336
|
banco: Banco.SICREDI;
|
|
@@ -350,6 +362,13 @@ interface IGerarPDFSicredi {
|
|
|
350
362
|
generatePDF?: (content: string, config: PDFOptions) => Promise<string>;
|
|
351
363
|
};
|
|
352
364
|
}
|
|
365
|
+
interface IGerarCarnePDFSicredi {
|
|
366
|
+
banco: Banco.SICREDI;
|
|
367
|
+
dados: {
|
|
368
|
+
dadosPDF: IDadosCarnePDF;
|
|
369
|
+
generatePDF?: (content: string, config: PDFOptions) => Promise<string>;
|
|
370
|
+
};
|
|
371
|
+
}
|
|
353
372
|
interface IDadosPDF$3 {
|
|
354
373
|
pagador: {
|
|
355
374
|
nome: string;
|
|
@@ -418,6 +437,67 @@ interface IDadosPDF$3 {
|
|
|
418
437
|
desconto: number;
|
|
419
438
|
};
|
|
420
439
|
}
|
|
440
|
+
interface IDadosCarnePDF {
|
|
441
|
+
pagador: {
|
|
442
|
+
nome: string;
|
|
443
|
+
cpfcnpj: string;
|
|
444
|
+
isCnpj?: boolean;
|
|
445
|
+
endereco: {
|
|
446
|
+
logradouro: string;
|
|
447
|
+
numero: string;
|
|
448
|
+
bairro: string;
|
|
449
|
+
cep: string;
|
|
450
|
+
municipio: string;
|
|
451
|
+
uf: string;
|
|
452
|
+
};
|
|
453
|
+
};
|
|
454
|
+
beneficiario: {
|
|
455
|
+
nome: string;
|
|
456
|
+
cnpj: string;
|
|
457
|
+
dadosBancario: {
|
|
458
|
+
carteira: string;
|
|
459
|
+
convenio: string;
|
|
460
|
+
agencia: string;
|
|
461
|
+
numero: string;
|
|
462
|
+
posto: string;
|
|
463
|
+
juros: number;
|
|
464
|
+
multa: number;
|
|
465
|
+
desconto: number;
|
|
466
|
+
protesto: number;
|
|
467
|
+
};
|
|
468
|
+
endereco: {
|
|
469
|
+
logradouro: string;
|
|
470
|
+
numero: string;
|
|
471
|
+
bairro: string;
|
|
472
|
+
cep: string;
|
|
473
|
+
municipio: string;
|
|
474
|
+
uf: string;
|
|
475
|
+
};
|
|
476
|
+
};
|
|
477
|
+
boleto: {
|
|
478
|
+
dataVencimento: string;
|
|
479
|
+
dataDocumento: string;
|
|
480
|
+
valorCobrado: number | string;
|
|
481
|
+
valorDocumento: number | string;
|
|
482
|
+
valorDescontoAbatimento: number | string;
|
|
483
|
+
valorOutrasDeducoes: number | string;
|
|
484
|
+
valorMulta: number | string;
|
|
485
|
+
valorAcrescimo: number | string;
|
|
486
|
+
numeroDocumento: string;
|
|
487
|
+
nossoNumero: string;
|
|
488
|
+
especieDocumento: string;
|
|
489
|
+
codigoBarra: string;
|
|
490
|
+
linhaDigitavel: string;
|
|
491
|
+
codigoBarraImage?: string;
|
|
492
|
+
instrucao1?: string;
|
|
493
|
+
instrucao2?: string;
|
|
494
|
+
instrucao3?: string;
|
|
495
|
+
instrucao4?: string;
|
|
496
|
+
desconto: number;
|
|
497
|
+
pixCopiaCola: string;
|
|
498
|
+
qrCodeImage: string;
|
|
499
|
+
}[];
|
|
500
|
+
}
|
|
421
501
|
interface IGerarRemessaSicredi {
|
|
422
502
|
banco: Banco.SICREDI;
|
|
423
503
|
dados: {
|
|
@@ -489,6 +569,8 @@ interface IDocumentoRetornoSicredi {
|
|
|
489
569
|
valor_desconto: number;
|
|
490
570
|
valor_total: number;
|
|
491
571
|
data: Date | string;
|
|
572
|
+
rejeitado: boolean;
|
|
573
|
+
motivo: string;
|
|
492
574
|
}
|
|
493
575
|
|
|
494
576
|
interface IGerarBoletoSicoob {
|
|
@@ -636,6 +718,8 @@ interface IDocumentoRetornoSicoob {
|
|
|
636
718
|
valor_desconto: number;
|
|
637
719
|
valor_total: number;
|
|
638
720
|
data: Date | string;
|
|
721
|
+
rejeitado: boolean;
|
|
722
|
+
motivo: string;
|
|
639
723
|
}
|
|
640
724
|
|
|
641
725
|
interface IGerarBoletoBancoBrasil {
|
|
@@ -872,6 +956,7 @@ interface IDadosPDF {
|
|
|
872
956
|
|
|
873
957
|
type IGerarBoleto = IGerarBoletoAilos | IGerarBoletoBradesco | IGerarBoletoSicredi | IGerarBoletoSicoob | IGerarBoletoBancoBrasil;
|
|
874
958
|
type IGerarPDF = IGerarPDFAilos | IGerarPDFBradesco | IGerarPDFSicredi | IGerarPDFSicoob | IGerarPDFBancoBrasil | IGerarPDFItau;
|
|
959
|
+
type IGerarCarnePDF = IGerarCarnePDFSicredi;
|
|
875
960
|
type IGerarRemessa = IGerarRemessaAilos | IGerarRemessaBradesco | IGerarRemessaSicredi | IGerarRemessaSicoob | IGerarRemessaBancoBrasil;
|
|
876
961
|
type IGerarRetorno = IGerarRetornoAilos | IGerarRetornoBradesco | IGerarRetornoSicredi | IGerarRetornoSicoob | IGerarRetornoBancoBrasil;
|
|
877
962
|
declare enum Banco {
|
|
@@ -883,6 +968,11 @@ declare enum Banco {
|
|
|
883
968
|
ITAU = "341"
|
|
884
969
|
}
|
|
885
970
|
|
|
971
|
+
declare function carne({ banco, dados }: IGerarCarnePDF): Promise<{
|
|
972
|
+
erro: boolean;
|
|
973
|
+
dados: string;
|
|
974
|
+
}> | undefined;
|
|
975
|
+
|
|
886
976
|
declare function gerar({ banco, dados }: IGerarBoleto): {
|
|
887
977
|
linhaDigitavel: string;
|
|
888
978
|
fatorVencimento: string;
|
|
@@ -909,7 +999,7 @@ declare function remessa({ banco, dados }: IGerarRemessa): {
|
|
|
909
999
|
arquivo: string;
|
|
910
1000
|
} | null> | null | undefined;
|
|
911
1001
|
|
|
912
|
-
declare function retorno({ banco, dados }: IGerarRetorno): Record<string,
|
|
1002
|
+
declare function retorno({ banco, dados }: IGerarRetorno): Record<string, IDocumentoRetornoBradesco[]> | null | undefined;
|
|
913
1003
|
|
|
914
1004
|
interface IConfig {
|
|
915
1005
|
apiClient?: {
|
|
@@ -924,6 +1014,7 @@ declare const _default: {
|
|
|
924
1014
|
pdf: typeof pdf;
|
|
925
1015
|
remessa: typeof remessa;
|
|
926
1016
|
retorno: typeof retorno;
|
|
1017
|
+
carne: typeof carne;
|
|
927
1018
|
};
|
|
928
1019
|
|
|
929
1020
|
export { Banco, IDocumentoRetornoAilos, IDocumentoRetornoBancoBrasil, IDocumentoRetornoSicoob, IDocumentoRetornoSicredi, _default as default, defineConfig };
|