@linkiez/boleto-sdk 1.0.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/LICENSE +190 -0
- package/README.md +168 -0
- package/dist/constants/bancos/BankRegistry.d.ts +14 -0
- package/dist/constants/bancos/BankRegistry.d.ts.map +1 -0
- package/dist/constants/bancos/BankRegistry.js +68 -0
- package/dist/constants/bancos/BankRegistry.js.map +1 -0
- package/dist/constants/bancos/index.d.ts +2 -0
- package/dist/constants/bancos/index.d.ts.map +1 -0
- package/dist/constants/bancos/index.js +18 -0
- package/dist/constants/bancos/index.js.map +1 -0
- package/dist/constants/cnab240/FIELD_SIZES.d.ts +111 -0
- package/dist/constants/cnab240/FIELD_SIZES.d.ts.map +1 -0
- package/dist/constants/cnab240/FIELD_SIZES.js +114 -0
- package/dist/constants/cnab240/FIELD_SIZES.js.map +1 -0
- package/dist/constants/cnab240/LAYOUT_VERSION.d.ts +17 -0
- package/dist/constants/cnab240/LAYOUT_VERSION.d.ts.map +1 -0
- package/dist/constants/cnab240/LAYOUT_VERSION.js +20 -0
- package/dist/constants/cnab240/LAYOUT_VERSION.js.map +1 -0
- package/dist/constants/cnab240/SEGMENT_POSITIONS.d.ts +659 -0
- package/dist/constants/cnab240/SEGMENT_POSITIONS.d.ts.map +1 -0
- package/dist/constants/cnab240/SEGMENT_POSITIONS.js +195 -0
- package/dist/constants/cnab240/SEGMENT_POSITIONS.js.map +1 -0
- package/dist/constants/cnab240/index.d.ts +4 -0
- package/dist/constants/cnab240/index.d.ts.map +1 -0
- package/dist/constants/cnab240/index.js +20 -0
- package/dist/constants/cnab240/index.js.map +1 -0
- package/dist/constants/cnab400/FIELD_SIZES.d.ts +68 -0
- package/dist/constants/cnab400/FIELD_SIZES.d.ts.map +1 -0
- package/dist/constants/cnab400/FIELD_SIZES.js +71 -0
- package/dist/constants/cnab400/FIELD_SIZES.js.map +1 -0
- package/dist/constants/cnab400/LAYOUT_VERSION.d.ts +11 -0
- package/dist/constants/cnab400/LAYOUT_VERSION.d.ts.map +1 -0
- package/dist/constants/cnab400/LAYOUT_VERSION.js +14 -0
- package/dist/constants/cnab400/LAYOUT_VERSION.js.map +1 -0
- package/dist/constants/cnab400/RECORD_POSITIONS.d.ts +545 -0
- package/dist/constants/cnab400/RECORD_POSITIONS.d.ts.map +1 -0
- package/dist/constants/cnab400/RECORD_POSITIONS.js +147 -0
- package/dist/constants/cnab400/RECORD_POSITIONS.js.map +1 -0
- package/dist/constants/cnab400/index.d.ts +4 -0
- package/dist/constants/cnab400/index.d.ts.map +1 -0
- package/dist/constants/cnab400/index.js +20 -0
- package/dist/constants/cnab400/index.js.map +1 -0
- package/dist/constants/index.d.ts +4 -0
- package/dist/constants/index.d.ts.map +1 -0
- package/dist/constants/index.js +43 -0
- package/dist/constants/index.js.map +1 -0
- package/dist/enums/cnab240/OccurrenceCode.d.ts +57 -0
- package/dist/enums/cnab240/OccurrenceCode.d.ts.map +1 -0
- package/dist/enums/cnab240/OccurrenceCode.js +62 -0
- package/dist/enums/cnab240/OccurrenceCode.js.map +1 -0
- package/dist/enums/cnab240/OperationType.d.ts +7 -0
- package/dist/enums/cnab240/OperationType.d.ts.map +1 -0
- package/dist/enums/cnab240/OperationType.js +11 -0
- package/dist/enums/cnab240/OperationType.js.map +1 -0
- package/dist/enums/cnab240/RecordType.d.ts +8 -0
- package/dist/enums/cnab240/RecordType.d.ts.map +1 -0
- package/dist/enums/cnab240/RecordType.js +12 -0
- package/dist/enums/cnab240/RecordType.js.map +1 -0
- package/dist/enums/cnab240/SegmentCode.d.ts +10 -0
- package/dist/enums/cnab240/SegmentCode.d.ts.map +1 -0
- package/dist/enums/cnab240/SegmentCode.js +14 -0
- package/dist/enums/cnab240/SegmentCode.js.map +1 -0
- package/dist/enums/cnab240/ServiceType.d.ts +8 -0
- package/dist/enums/cnab240/ServiceType.d.ts.map +1 -0
- package/dist/enums/cnab240/ServiceType.js +12 -0
- package/dist/enums/cnab240/ServiceType.js.map +1 -0
- package/dist/enums/cnab240/index.d.ts +6 -0
- package/dist/enums/cnab240/index.d.ts.map +1 -0
- package/dist/enums/cnab240/index.js +15 -0
- package/dist/enums/cnab240/index.js.map +1 -0
- package/dist/enums/cnab400/Cnab400Enums.d.ts +121 -0
- package/dist/enums/cnab400/Cnab400Enums.d.ts.map +1 -0
- package/dist/enums/cnab400/Cnab400Enums.js +133 -0
- package/dist/enums/cnab400/Cnab400Enums.js.map +1 -0
- package/dist/enums/cnab400/index.d.ts +2 -0
- package/dist/enums/cnab400/index.d.ts.map +1 -0
- package/dist/enums/cnab400/index.js +18 -0
- package/dist/enums/cnab400/index.js.map +1 -0
- package/dist/enums/common/CommonEnums.d.ts +52 -0
- package/dist/enums/common/CommonEnums.d.ts.map +1 -0
- package/dist/enums/common/CommonEnums.js +63 -0
- package/dist/enums/common/CommonEnums.js.map +1 -0
- package/dist/enums/common/index.d.ts +2 -0
- package/dist/enums/common/index.d.ts.map +1 -0
- package/dist/enums/common/index.js +18 -0
- package/dist/enums/common/index.js.map +1 -0
- package/dist/enums/index.d.ts +4 -0
- package/dist/enums/index.d.ts.map +1 -0
- package/dist/enums/index.js +25 -0
- package/dist/enums/index.js.map +1 -0
- package/dist/errors/CnabErrors.d.ts +26 -0
- package/dist/errors/CnabErrors.d.ts.map +1 -0
- package/dist/errors/CnabErrors.js +49 -0
- package/dist/errors/CnabErrors.js.map +1 -0
- package/dist/errors/index.d.ts +2 -0
- package/dist/errors/index.d.ts.map +1 -0
- package/dist/errors/index.js +18 -0
- package/dist/errors/index.js.map +1 -0
- package/dist/generators/CnabGeneratorFactory.d.ts +4 -0
- package/dist/generators/CnabGeneratorFactory.d.ts.map +1 -0
- package/dist/generators/CnabGeneratorFactory.js +16 -0
- package/dist/generators/CnabGeneratorFactory.js.map +1 -0
- package/dist/generators/barcode/BarcodeGenerator.d.ts +16 -0
- package/dist/generators/barcode/BarcodeGenerator.d.ts.map +1 -0
- package/dist/generators/barcode/BarcodeGenerator.js +20 -0
- package/dist/generators/barcode/BarcodeGenerator.js.map +1 -0
- package/dist/generators/barcode/BarcodeRenderer.d.ts +10 -0
- package/dist/generators/barcode/BarcodeRenderer.d.ts.map +1 -0
- package/dist/generators/barcode/BarcodeRenderer.js +110 -0
- package/dist/generators/barcode/BarcodeRenderer.js.map +1 -0
- package/dist/generators/barcode/BarcodeUtils.d.ts +11 -0
- package/dist/generators/barcode/BarcodeUtils.d.ts.map +1 -0
- package/dist/generators/barcode/BarcodeUtils.js +81 -0
- package/dist/generators/barcode/BarcodeUtils.js.map +1 -0
- package/dist/generators/barcode/BarcodeValidator.d.ts +3 -0
- package/dist/generators/barcode/BarcodeValidator.d.ts.map +1 -0
- package/dist/generators/barcode/BarcodeValidator.js +41 -0
- package/dist/generators/barcode/BarcodeValidator.js.map +1 -0
- package/dist/generators/barcode/DigitableLineGenerator.d.ts +2 -0
- package/dist/generators/barcode/DigitableLineGenerator.d.ts.map +1 -0
- package/dist/generators/barcode/DigitableLineGenerator.js +26 -0
- package/dist/generators/barcode/DigitableLineGenerator.js.map +1 -0
- package/dist/generators/barcode/index.d.ts +6 -0
- package/dist/generators/barcode/index.d.ts.map +1 -0
- package/dist/generators/barcode/index.js +22 -0
- package/dist/generators/barcode/index.js.map +1 -0
- package/dist/generators/cnab240/BatchHeaderGenerator.d.ts +6 -0
- package/dist/generators/cnab240/BatchHeaderGenerator.d.ts.map +1 -0
- package/dist/generators/cnab240/BatchHeaderGenerator.js +77 -0
- package/dist/generators/cnab240/BatchHeaderGenerator.js.map +1 -0
- package/dist/generators/cnab240/BatchTrailerGenerator.d.ts +6 -0
- package/dist/generators/cnab240/BatchTrailerGenerator.d.ts.map +1 -0
- package/dist/generators/cnab240/BatchTrailerGenerator.js +46 -0
- package/dist/generators/cnab240/BatchTrailerGenerator.js.map +1 -0
- package/dist/generators/cnab240/Cnab240Generator.d.ts +14 -0
- package/dist/generators/cnab240/Cnab240Generator.d.ts.map +1 -0
- package/dist/generators/cnab240/Cnab240Generator.js +68 -0
- package/dist/generators/cnab240/Cnab240Generator.js.map +1 -0
- package/dist/generators/cnab240/FileHeaderGenerator.d.ts +6 -0
- package/dist/generators/cnab240/FileHeaderGenerator.d.ts.map +1 -0
- package/dist/generators/cnab240/FileHeaderGenerator.js +63 -0
- package/dist/generators/cnab240/FileHeaderGenerator.js.map +1 -0
- package/dist/generators/cnab240/FileTrailerGenerator.d.ts +6 -0
- package/dist/generators/cnab240/FileTrailerGenerator.d.ts.map +1 -0
- package/dist/generators/cnab240/FileTrailerGenerator.js +44 -0
- package/dist/generators/cnab240/FileTrailerGenerator.js.map +1 -0
- package/dist/generators/cnab240/GenerateCnab240.d.ts +3 -0
- package/dist/generators/cnab240/GenerateCnab240.d.ts.map +1 -0
- package/dist/generators/cnab240/GenerateCnab240.js +9 -0
- package/dist/generators/cnab240/GenerateCnab240.js.map +1 -0
- package/dist/generators/cnab240/LineGenerator.d.ts +6 -0
- package/dist/generators/cnab240/LineGenerator.d.ts.map +1 -0
- package/dist/generators/cnab240/LineGenerator.js +45 -0
- package/dist/generators/cnab240/LineGenerator.js.map +1 -0
- package/dist/generators/cnab240/SegmentPGenerator.d.ts +6 -0
- package/dist/generators/cnab240/SegmentPGenerator.d.ts.map +1 -0
- package/dist/generators/cnab240/SegmentPGenerator.js +76 -0
- package/dist/generators/cnab240/SegmentPGenerator.js.map +1 -0
- package/dist/generators/cnab240/SegmentQGenerator.d.ts +6 -0
- package/dist/generators/cnab240/SegmentQGenerator.d.ts.map +1 -0
- package/dist/generators/cnab240/SegmentQGenerator.js +82 -0
- package/dist/generators/cnab240/SegmentQGenerator.js.map +1 -0
- package/dist/generators/cnab240/SegmentRGenerator.d.ts +6 -0
- package/dist/generators/cnab240/SegmentRGenerator.d.ts.map +1 -0
- package/dist/generators/cnab240/SegmentRGenerator.js +86 -0
- package/dist/generators/cnab240/SegmentRGenerator.js.map +1 -0
- package/dist/generators/cnab240/index.d.ts +11 -0
- package/dist/generators/cnab240/index.d.ts.map +1 -0
- package/dist/generators/cnab240/index.js +27 -0
- package/dist/generators/cnab240/index.js.map +1 -0
- package/dist/generators/cnab400/Cnab400Generator.d.ts +3 -0
- package/dist/generators/cnab400/Cnab400Generator.d.ts.map +1 -0
- package/dist/generators/cnab400/Cnab400Generator.js +44 -0
- package/dist/generators/cnab400/Cnab400Generator.js.map +1 -0
- package/dist/generators/cnab400/DetailRecordGenerator.d.ts +4 -0
- package/dist/generators/cnab400/DetailRecordGenerator.d.ts.map +1 -0
- package/dist/generators/cnab400/DetailRecordGenerator.js +132 -0
- package/dist/generators/cnab400/DetailRecordGenerator.js.map +1 -0
- package/dist/generators/cnab400/FileHeaderGenerator.d.ts +3 -0
- package/dist/generators/cnab400/FileHeaderGenerator.d.ts.map +1 -0
- package/dist/generators/cnab400/FileHeaderGenerator.js +39 -0
- package/dist/generators/cnab400/FileHeaderGenerator.js.map +1 -0
- package/dist/generators/cnab400/FileTrailerGenerator.d.ts +3 -0
- package/dist/generators/cnab400/FileTrailerGenerator.d.ts.map +1 -0
- package/dist/generators/cnab400/FileTrailerGenerator.js +22 -0
- package/dist/generators/cnab400/FileTrailerGenerator.js.map +1 -0
- package/dist/generators/cnab400/PenaltyRecordGenerator.d.ts +3 -0
- package/dist/generators/cnab400/PenaltyRecordGenerator.d.ts.map +1 -0
- package/dist/generators/cnab400/PenaltyRecordGenerator.js +30 -0
- package/dist/generators/cnab400/PenaltyRecordGenerator.js.map +1 -0
- package/dist/generators/cnab400/index.d.ts +6 -0
- package/dist/generators/cnab400/index.d.ts.map +1 -0
- package/dist/generators/cnab400/index.js +15 -0
- package/dist/generators/cnab400/index.js.map +1 -0
- package/dist/generators/index.d.ts +7 -0
- package/dist/generators/index.d.ts.map +1 -0
- package/dist/generators/index.js +23 -0
- package/dist/generators/index.js.map +1 -0
- package/dist/generators/pdf/BoletoPdfGenerator.d.ts +9 -0
- package/dist/generators/pdf/BoletoPdfGenerator.d.ts.map +1 -0
- package/dist/generators/pdf/BoletoPdfGenerator.js +20 -0
- package/dist/generators/pdf/BoletoPdfGenerator.js.map +1 -0
- package/dist/generators/pdf/DirectPdfGenerator.d.ts +9 -0
- package/dist/generators/pdf/DirectPdfGenerator.d.ts.map +1 -0
- package/dist/generators/pdf/DirectPdfGenerator.js +152 -0
- package/dist/generators/pdf/DirectPdfGenerator.js.map +1 -0
- package/dist/generators/pdf/PdfRenderer.d.ts +27 -0
- package/dist/generators/pdf/PdfRenderer.d.ts.map +1 -0
- package/dist/generators/pdf/PdfRenderer.js +99 -0
- package/dist/generators/pdf/PdfRenderer.js.map +1 -0
- package/dist/generators/pdf/PdfTemplate.d.ts +59 -0
- package/dist/generators/pdf/PdfTemplate.d.ts.map +1 -0
- package/dist/generators/pdf/PdfTemplate.js +111 -0
- package/dist/generators/pdf/PdfTemplate.js.map +1 -0
- package/dist/generators/pdf/index.d.ts +5 -0
- package/dist/generators/pdf/index.d.ts.map +1 -0
- package/dist/generators/pdf/index.js +21 -0
- package/dist/generators/pdf/index.js.map +1 -0
- package/dist/generators/qrcode/PixPayloadGenerator.d.ts +10 -0
- package/dist/generators/qrcode/PixPayloadGenerator.d.ts.map +1 -0
- package/dist/generators/qrcode/PixPayloadGenerator.js +97 -0
- package/dist/generators/qrcode/PixPayloadGenerator.js.map +1 -0
- package/dist/generators/qrcode/PixPayloadValidator.d.ts +2 -0
- package/dist/generators/qrcode/PixPayloadValidator.d.ts.map +1 -0
- package/dist/generators/qrcode/PixPayloadValidator.js +76 -0
- package/dist/generators/qrcode/PixPayloadValidator.js.map +1 -0
- package/dist/generators/qrcode/QRCodeGenerator.d.ts +10 -0
- package/dist/generators/qrcode/QRCodeGenerator.d.ts.map +1 -0
- package/dist/generators/qrcode/QRCodeGenerator.js +14 -0
- package/dist/generators/qrcode/QRCodeGenerator.js.map +1 -0
- package/dist/generators/qrcode/QRCodeRenderer.d.ts +8 -0
- package/dist/generators/qrcode/QRCodeRenderer.d.ts.map +1 -0
- package/dist/generators/qrcode/QRCodeRenderer.js +25 -0
- package/dist/generators/qrcode/QRCodeRenderer.js.map +1 -0
- package/dist/generators/qrcode/index.d.ts +5 -0
- package/dist/generators/qrcode/index.d.ts.map +1 -0
- package/dist/generators/qrcode/index.js +21 -0
- package/dist/generators/qrcode/index.js.map +1 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +25 -0
- package/dist/index.js.map +1 -0
- package/dist/parsers/CnabParserFactory.d.ts +4 -0
- package/dist/parsers/CnabParserFactory.d.ts.map +1 -0
- package/dist/parsers/CnabParserFactory.js +25 -0
- package/dist/parsers/CnabParserFactory.js.map +1 -0
- package/dist/parsers/cnab240/Cnab240Parser.d.ts +3 -0
- package/dist/parsers/cnab240/Cnab240Parser.d.ts.map +1 -0
- package/dist/parsers/cnab240/Cnab240Parser.js +143 -0
- package/dist/parsers/cnab240/Cnab240Parser.js.map +1 -0
- package/dist/parsers/cnab240/FileHeaderParser.d.ts +3 -0
- package/dist/parsers/cnab240/FileHeaderParser.d.ts.map +1 -0
- package/dist/parsers/cnab240/FileHeaderParser.js +34 -0
- package/dist/parsers/cnab240/FileHeaderParser.js.map +1 -0
- package/dist/parsers/cnab240/LineParser.d.ts +7 -0
- package/dist/parsers/cnab240/LineParser.d.ts.map +1 -0
- package/dist/parsers/cnab240/LineParser.js +51 -0
- package/dist/parsers/cnab240/LineParser.js.map +1 -0
- package/dist/parsers/cnab240/SegmentPParser.d.ts +3 -0
- package/dist/parsers/cnab240/SegmentPParser.d.ts.map +1 -0
- package/dist/parsers/cnab240/SegmentPParser.js +63 -0
- package/dist/parsers/cnab240/SegmentPParser.js.map +1 -0
- package/dist/parsers/cnab240/SegmentQParser.d.ts +3 -0
- package/dist/parsers/cnab240/SegmentQParser.d.ts.map +1 -0
- package/dist/parsers/cnab240/SegmentQParser.js +34 -0
- package/dist/parsers/cnab240/SegmentQParser.js.map +1 -0
- package/dist/parsers/cnab240/index.d.ts +6 -0
- package/dist/parsers/cnab240/index.d.ts.map +1 -0
- package/dist/parsers/cnab240/index.js +22 -0
- package/dist/parsers/cnab240/index.js.map +1 -0
- package/dist/parsers/cnab400/Cnab400Parser.d.ts +3 -0
- package/dist/parsers/cnab400/Cnab400Parser.d.ts.map +1 -0
- package/dist/parsers/cnab400/Cnab400Parser.js +91 -0
- package/dist/parsers/cnab400/Cnab400Parser.js.map +1 -0
- package/dist/parsers/cnab400/DetailRecordParser.d.ts +3 -0
- package/dist/parsers/cnab400/DetailRecordParser.d.ts.map +1 -0
- package/dist/parsers/cnab400/DetailRecordParser.js +65 -0
- package/dist/parsers/cnab400/DetailRecordParser.js.map +1 -0
- package/dist/parsers/cnab400/FileHeaderParser.d.ts +3 -0
- package/dist/parsers/cnab400/FileHeaderParser.d.ts.map +1 -0
- package/dist/parsers/cnab400/FileHeaderParser.js +38 -0
- package/dist/parsers/cnab400/FileHeaderParser.js.map +1 -0
- package/dist/parsers/cnab400/FileTrailerParser.d.ts +3 -0
- package/dist/parsers/cnab400/FileTrailerParser.d.ts.map +1 -0
- package/dist/parsers/cnab400/FileTrailerParser.js +24 -0
- package/dist/parsers/cnab400/FileTrailerParser.js.map +1 -0
- package/dist/parsers/cnab400/GuarantorRecordParser.d.ts +3 -0
- package/dist/parsers/cnab400/GuarantorRecordParser.d.ts.map +1 -0
- package/dist/parsers/cnab400/GuarantorRecordParser.js +27 -0
- package/dist/parsers/cnab400/GuarantorRecordParser.js.map +1 -0
- package/dist/parsers/cnab400/MessageRecordParser.d.ts +4 -0
- package/dist/parsers/cnab400/MessageRecordParser.d.ts.map +1 -0
- package/dist/parsers/cnab400/MessageRecordParser.js +40 -0
- package/dist/parsers/cnab400/MessageRecordParser.js.map +1 -0
- package/dist/parsers/cnab400/PenaltyRecordParser.d.ts +3 -0
- package/dist/parsers/cnab400/PenaltyRecordParser.d.ts.map +1 -0
- package/dist/parsers/cnab400/PenaltyRecordParser.js +32 -0
- package/dist/parsers/cnab400/PenaltyRecordParser.js.map +1 -0
- package/dist/parsers/cnab400/ReturnDetailRecordParser.d.ts +3 -0
- package/dist/parsers/cnab400/ReturnDetailRecordParser.d.ts.map +1 -0
- package/dist/parsers/cnab400/ReturnDetailRecordParser.js +66 -0
- package/dist/parsers/cnab400/ReturnDetailRecordParser.js.map +1 -0
- package/dist/parsers/cnab400/index.d.ts +9 -0
- package/dist/parsers/cnab400/index.d.ts.map +1 -0
- package/dist/parsers/cnab400/index.js +21 -0
- package/dist/parsers/cnab400/index.js.map +1 -0
- package/dist/parsers/index.d.ts +4 -0
- package/dist/parsers/index.d.ts.map +1 -0
- package/dist/parsers/index.js +30 -0
- package/dist/parsers/index.js.map +1 -0
- package/dist/schemas/cnab240/BatchHeaderSchema.d.ts +35 -0
- package/dist/schemas/cnab240/BatchHeaderSchema.d.ts.map +1 -0
- package/dist/schemas/cnab240/BatchHeaderSchema.js +30 -0
- package/dist/schemas/cnab240/BatchHeaderSchema.js.map +1 -0
- package/dist/schemas/cnab240/BatchSchema.d.ts +160 -0
- package/dist/schemas/cnab240/BatchSchema.d.ts.map +1 -0
- package/dist/schemas/cnab240/BatchSchema.js +13 -0
- package/dist/schemas/cnab240/BatchSchema.js.map +1 -0
- package/dist/schemas/cnab240/BatchTrailerSchema.d.ts +17 -0
- package/dist/schemas/cnab240/BatchTrailerSchema.d.ts.map +1 -0
- package/dist/schemas/cnab240/BatchTrailerSchema.js +21 -0
- package/dist/schemas/cnab240/BatchTrailerSchema.js.map +1 -0
- package/dist/schemas/cnab240/Cnab240FileSchema.d.ts +206 -0
- package/dist/schemas/cnab240/Cnab240FileSchema.d.ts.map +1 -0
- package/dist/schemas/cnab240/Cnab240FileSchema.js +13 -0
- package/dist/schemas/cnab240/Cnab240FileSchema.js.map +1 -0
- package/dist/schemas/cnab240/DetailRecordSchema.d.ts +110 -0
- package/dist/schemas/cnab240/DetailRecordSchema.d.ts.map +1 -0
- package/dist/schemas/cnab240/DetailRecordSchema.js +13 -0
- package/dist/schemas/cnab240/DetailRecordSchema.js.map +1 -0
- package/dist/schemas/cnab240/FileHeaderSchema.d.ts +36 -0
- package/dist/schemas/cnab240/FileHeaderSchema.d.ts.map +1 -0
- package/dist/schemas/cnab240/FileHeaderSchema.js +39 -0
- package/dist/schemas/cnab240/FileHeaderSchema.js.map +1 -0
- package/dist/schemas/cnab240/FileTrailerSchema.d.ts +12 -0
- package/dist/schemas/cnab240/FileTrailerSchema.d.ts.map +1 -0
- package/dist/schemas/cnab240/FileTrailerSchema.js +16 -0
- package/dist/schemas/cnab240/FileTrailerSchema.js.map +1 -0
- package/dist/schemas/cnab240/SegmentPSchema.d.ts +49 -0
- package/dist/schemas/cnab240/SegmentPSchema.d.ts.map +1 -0
- package/dist/schemas/cnab240/SegmentPSchema.js +53 -0
- package/dist/schemas/cnab240/SegmentPSchema.js.map +1 -0
- package/dist/schemas/cnab240/SegmentQSchema.d.ts +30 -0
- package/dist/schemas/cnab240/SegmentQSchema.d.ts.map +1 -0
- package/dist/schemas/cnab240/SegmentQSchema.js +29 -0
- package/dist/schemas/cnab240/SegmentQSchema.js.map +1 -0
- package/dist/schemas/cnab240/SegmentRSchema.d.ts +33 -0
- package/dist/schemas/cnab240/SegmentRSchema.d.ts.map +1 -0
- package/dist/schemas/cnab240/SegmentRSchema.js +37 -0
- package/dist/schemas/cnab240/SegmentRSchema.js.map +1 -0
- package/dist/schemas/cnab240/index.d.ts +12 -0
- package/dist/schemas/cnab240/index.d.ts.map +1 -0
- package/dist/schemas/cnab240/index.js +28 -0
- package/dist/schemas/cnab240/index.js.map +1 -0
- package/dist/schemas/cnab240/shared.d.ts +30 -0
- package/dist/schemas/cnab240/shared.d.ts.map +1 -0
- package/dist/schemas/cnab240/shared.js +29 -0
- package/dist/schemas/cnab240/shared.js.map +1 -0
- package/dist/schemas/cnab400/Cnab400FileSchema.d.ts +143 -0
- package/dist/schemas/cnab400/Cnab400FileSchema.d.ts.map +1 -0
- package/dist/schemas/cnab400/Cnab400FileSchema.js +21 -0
- package/dist/schemas/cnab400/Cnab400FileSchema.js.map +1 -0
- package/dist/schemas/cnab400/Cnab400ReturnFileSchema.d.ts +150 -0
- package/dist/schemas/cnab400/Cnab400ReturnFileSchema.d.ts.map +1 -0
- package/dist/schemas/cnab400/Cnab400ReturnFileSchema.js +10 -0
- package/dist/schemas/cnab400/Cnab400ReturnFileSchema.js.map +1 -0
- package/dist/schemas/cnab400/DetailRecordSchema.d.ts +58 -0
- package/dist/schemas/cnab400/DetailRecordSchema.d.ts.map +1 -0
- package/dist/schemas/cnab400/DetailRecordSchema.js +58 -0
- package/dist/schemas/cnab400/DetailRecordSchema.js.map +1 -0
- package/dist/schemas/cnab400/FileHeaderSchema.d.ts +27 -0
- package/dist/schemas/cnab400/FileHeaderSchema.d.ts.map +1 -0
- package/dist/schemas/cnab400/FileHeaderSchema.js +28 -0
- package/dist/schemas/cnab400/FileHeaderSchema.js.map +1 -0
- package/dist/schemas/cnab400/FileTrailerSchema.d.ts +10 -0
- package/dist/schemas/cnab400/FileTrailerSchema.d.ts.map +1 -0
- package/dist/schemas/cnab400/FileTrailerSchema.js +14 -0
- package/dist/schemas/cnab400/FileTrailerSchema.js.map +1 -0
- package/dist/schemas/cnab400/GuarantorRecordSchema.d.ts +25 -0
- package/dist/schemas/cnab400/GuarantorRecordSchema.d.ts.map +1 -0
- package/dist/schemas/cnab400/GuarantorRecordSchema.js +26 -0
- package/dist/schemas/cnab400/GuarantorRecordSchema.js.map +1 -0
- package/dist/schemas/cnab400/MessageBackRecordSchema.d.ts +10 -0
- package/dist/schemas/cnab400/MessageBackRecordSchema.d.ts.map +1 -0
- package/dist/schemas/cnab400/MessageBackRecordSchema.js +14 -0
- package/dist/schemas/cnab400/MessageBackRecordSchema.js.map +1 -0
- package/dist/schemas/cnab400/MessageFrontRecordSchema.d.ts +10 -0
- package/dist/schemas/cnab400/MessageFrontRecordSchema.d.ts.map +1 -0
- package/dist/schemas/cnab400/MessageFrontRecordSchema.js +14 -0
- package/dist/schemas/cnab400/MessageFrontRecordSchema.js.map +1 -0
- package/dist/schemas/cnab400/PenaltyRecordSchema.d.ts +13 -0
- package/dist/schemas/cnab400/PenaltyRecordSchema.d.ts.map +1 -0
- package/dist/schemas/cnab400/PenaltyRecordSchema.js +13 -0
- package/dist/schemas/cnab400/PenaltyRecordSchema.js.map +1 -0
- package/dist/schemas/cnab400/ReturnDetailRecordSchema.d.ts +65 -0
- package/dist/schemas/cnab400/ReturnDetailRecordSchema.d.ts.map +1 -0
- package/dist/schemas/cnab400/ReturnDetailRecordSchema.js +15 -0
- package/dist/schemas/cnab400/ReturnDetailRecordSchema.js.map +1 -0
- package/dist/schemas/cnab400/index.d.ts +12 -0
- package/dist/schemas/cnab400/index.d.ts.map +1 -0
- package/dist/schemas/cnab400/index.js +28 -0
- package/dist/schemas/cnab400/index.js.map +1 -0
- package/dist/schemas/cnab400/shared.d.ts +24 -0
- package/dist/schemas/cnab400/shared.d.ts.map +1 -0
- package/dist/schemas/cnab400/shared.js +25 -0
- package/dist/schemas/cnab400/shared.js.map +1 -0
- package/dist/schemas/common/CommonSchemas.d.ts +197 -0
- package/dist/schemas/common/CommonSchemas.d.ts.map +1 -0
- package/dist/schemas/common/CommonSchemas.js +114 -0
- package/dist/schemas/common/CommonSchemas.js.map +1 -0
- package/dist/schemas/common/index.d.ts +2 -0
- package/dist/schemas/common/index.d.ts.map +1 -0
- package/dist/schemas/common/index.js +18 -0
- package/dist/schemas/common/index.js.map +1 -0
- package/dist/schemas/index.d.ts +4 -0
- package/dist/schemas/index.d.ts.map +1 -0
- package/dist/schemas/index.js +43 -0
- package/dist/schemas/index.js.map +1 -0
- package/dist/templates/BBTemplate.d.ts +5 -0
- package/dist/templates/BBTemplate.d.ts.map +1 -0
- package/dist/templates/BBTemplate.js +15 -0
- package/dist/templates/BBTemplate.js.map +1 -0
- package/dist/templates/BoletoTemplate.d.ts +35 -0
- package/dist/templates/BoletoTemplate.d.ts.map +1 -0
- package/dist/templates/BoletoTemplate.js +3 -0
- package/dist/templates/BoletoTemplate.js.map +1 -0
- package/dist/templates/BradescoTemplate.d.ts +5 -0
- package/dist/templates/BradescoTemplate.d.ts.map +1 -0
- package/dist/templates/BradescoTemplate.js +15 -0
- package/dist/templates/BradescoTemplate.js.map +1 -0
- package/dist/templates/GenericTemplate.d.ts +5 -0
- package/dist/templates/GenericTemplate.d.ts.map +1 -0
- package/dist/templates/GenericTemplate.js +17 -0
- package/dist/templates/GenericTemplate.js.map +1 -0
- package/dist/templates/HtmlTemplateBuilder.d.ts +16 -0
- package/dist/templates/HtmlTemplateBuilder.d.ts.map +1 -0
- package/dist/templates/HtmlTemplateBuilder.js +360 -0
- package/dist/templates/HtmlTemplateBuilder.js.map +1 -0
- package/dist/templates/ItauTemplate.d.ts +5 -0
- package/dist/templates/ItauTemplate.d.ts.map +1 -0
- package/dist/templates/ItauTemplate.js +15 -0
- package/dist/templates/ItauTemplate.js.map +1 -0
- package/dist/templates/TemplateRenderer.d.ts +7 -0
- package/dist/templates/TemplateRenderer.d.ts.map +1 -0
- package/dist/templates/TemplateRenderer.js +14 -0
- package/dist/templates/TemplateRenderer.js.map +1 -0
- package/dist/templates/index.d.ts +8 -0
- package/dist/templates/index.d.ts.map +1 -0
- package/dist/templates/index.js +24 -0
- package/dist/templates/index.js.map +1 -0
- package/dist/types/cnab240/Batch.d.ts +16 -0
- package/dist/types/cnab240/Batch.d.ts.map +1 -0
- package/dist/types/cnab240/Batch.js +3 -0
- package/dist/types/cnab240/Batch.js.map +1 -0
- package/dist/types/cnab240/BatchHeader.d.ts +25 -0
- package/dist/types/cnab240/BatchHeader.d.ts.map +1 -0
- package/dist/types/cnab240/BatchHeader.js +3 -0
- package/dist/types/cnab240/BatchHeader.js.map +1 -0
- package/dist/types/cnab240/BatchTrailer.d.ts +16 -0
- package/dist/types/cnab240/BatchTrailer.d.ts.map +1 -0
- package/dist/types/cnab240/BatchTrailer.js +3 -0
- package/dist/types/cnab240/BatchTrailer.js.map +1 -0
- package/dist/types/cnab240/Cnab240File.d.ts +9 -0
- package/dist/types/cnab240/Cnab240File.d.ts.map +1 -0
- package/dist/types/cnab240/Cnab240File.js +3 -0
- package/dist/types/cnab240/Cnab240File.js.map +1 -0
- package/dist/types/cnab240/FileHeader.d.ts +28 -0
- package/dist/types/cnab240/FileHeader.d.ts.map +1 -0
- package/dist/types/cnab240/FileHeader.js +3 -0
- package/dist/types/cnab240/FileHeader.js.map +1 -0
- package/dist/types/cnab240/FileTrailer.d.ts +11 -0
- package/dist/types/cnab240/FileTrailer.d.ts.map +1 -0
- package/dist/types/cnab240/FileTrailer.js +3 -0
- package/dist/types/cnab240/FileTrailer.js.map +1 -0
- package/dist/types/cnab240/SegmentP.d.ts +48 -0
- package/dist/types/cnab240/SegmentP.d.ts.map +1 -0
- package/dist/types/cnab240/SegmentP.js +3 -0
- package/dist/types/cnab240/SegmentP.js.map +1 -0
- package/dist/types/cnab240/SegmentQ.d.ts +24 -0
- package/dist/types/cnab240/SegmentQ.d.ts.map +1 -0
- package/dist/types/cnab240/SegmentQ.js +3 -0
- package/dist/types/cnab240/SegmentQ.js.map +1 -0
- package/dist/types/cnab240/SegmentR.d.ts +32 -0
- package/dist/types/cnab240/SegmentR.d.ts.map +1 -0
- package/dist/types/cnab240/SegmentR.js +3 -0
- package/dist/types/cnab240/SegmentR.js.map +1 -0
- package/dist/types/cnab240/index.d.ts +10 -0
- package/dist/types/cnab240/index.d.ts.map +1 -0
- package/dist/types/cnab240/index.js +26 -0
- package/dist/types/cnab240/index.js.map +1 -0
- package/dist/types/cnab400/Cnab400File.d.ts +17 -0
- package/dist/types/cnab400/Cnab400File.d.ts.map +1 -0
- package/dist/types/cnab400/Cnab400File.js +3 -0
- package/dist/types/cnab400/Cnab400File.js.map +1 -0
- package/dist/types/cnab400/Cnab400ReturnFile.d.ts +6 -0
- package/dist/types/cnab400/Cnab400ReturnFile.d.ts.map +1 -0
- package/dist/types/cnab400/Cnab400ReturnFile.js +3 -0
- package/dist/types/cnab400/Cnab400ReturnFile.js.map +1 -0
- package/dist/types/cnab400/DetailRecord.d.ts +47 -0
- package/dist/types/cnab400/DetailRecord.d.ts.map +1 -0
- package/dist/types/cnab400/DetailRecord.js +3 -0
- package/dist/types/cnab400/DetailRecord.js.map +1 -0
- package/dist/types/cnab400/FileHeader.d.ts +23 -0
- package/dist/types/cnab400/FileHeader.d.ts.map +1 -0
- package/dist/types/cnab400/FileHeader.js +3 -0
- package/dist/types/cnab400/FileHeader.js.map +1 -0
- package/dist/types/cnab400/FileTrailer.d.ts +9 -0
- package/dist/types/cnab400/FileTrailer.d.ts.map +1 -0
- package/dist/types/cnab400/FileTrailer.js +3 -0
- package/dist/types/cnab400/FileTrailer.js.map +1 -0
- package/dist/types/cnab400/GuarantorRecord.d.ts +18 -0
- package/dist/types/cnab400/GuarantorRecord.d.ts.map +1 -0
- package/dist/types/cnab400/GuarantorRecord.js +3 -0
- package/dist/types/cnab400/GuarantorRecord.js.map +1 -0
- package/dist/types/cnab400/MessageBackRecord.d.ts +9 -0
- package/dist/types/cnab400/MessageBackRecord.d.ts.map +1 -0
- package/dist/types/cnab400/MessageBackRecord.js +3 -0
- package/dist/types/cnab400/MessageBackRecord.js.map +1 -0
- package/dist/types/cnab400/MessageFrontRecord.d.ts +9 -0
- package/dist/types/cnab400/MessageFrontRecord.d.ts.map +1 -0
- package/dist/types/cnab400/MessageFrontRecord.js +3 -0
- package/dist/types/cnab400/MessageFrontRecord.js.map +1 -0
- package/dist/types/cnab400/PenaltyRecord.d.ts +8 -0
- package/dist/types/cnab400/PenaltyRecord.d.ts.map +1 -0
- package/dist/types/cnab400/PenaltyRecord.js +3 -0
- package/dist/types/cnab400/PenaltyRecord.js.map +1 -0
- package/dist/types/cnab400/ReturnDetailRecord.d.ts +11 -0
- package/dist/types/cnab400/ReturnDetailRecord.d.ts.map +1 -0
- package/dist/types/cnab400/ReturnDetailRecord.js +3 -0
- package/dist/types/cnab400/ReturnDetailRecord.js.map +1 -0
- package/dist/types/cnab400/index.d.ts +11 -0
- package/dist/types/cnab400/index.d.ts.map +1 -0
- package/dist/types/cnab400/index.js +3 -0
- package/dist/types/cnab400/index.js.map +1 -0
- package/dist/types/common/CommonTypes.d.ts +53 -0
- package/dist/types/common/CommonTypes.d.ts.map +1 -0
- package/dist/types/common/CommonTypes.js +3 -0
- package/dist/types/common/CommonTypes.js.map +1 -0
- package/dist/types/common/index.d.ts +2 -0
- package/dist/types/common/index.d.ts.map +1 -0
- package/dist/types/common/index.js +18 -0
- package/dist/types/common/index.js.map +1 -0
- package/dist/types/index.d.ts +5 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/index.js +20 -0
- package/dist/types/index.js.map +1 -0
- package/dist/types/json/JsonTypes.d.ts +2 -0
- package/dist/types/json/JsonTypes.d.ts.map +1 -0
- package/dist/types/json/JsonTypes.js +5 -0
- package/dist/types/json/JsonTypes.js.map +1 -0
- package/dist/types/json/index.d.ts +2 -0
- package/dist/types/json/index.d.ts.map +1 -0
- package/dist/types/json/index.js +18 -0
- package/dist/types/json/index.js.map +1 -0
- package/dist/utils/email/AttachmentHelper.d.ts +8 -0
- package/dist/utils/email/AttachmentHelper.d.ts.map +1 -0
- package/dist/utils/email/AttachmentHelper.js +15 -0
- package/dist/utils/email/AttachmentHelper.js.map +1 -0
- package/dist/utils/email/EmailTemplateGenerator.d.ts +19 -0
- package/dist/utils/email/EmailTemplateGenerator.d.ts.map +1 -0
- package/dist/utils/email/EmailTemplateGenerator.js +78 -0
- package/dist/utils/email/EmailTemplateGenerator.js.map +1 -0
- package/dist/utils/email/EmailValidator.d.ts +3 -0
- package/dist/utils/email/EmailValidator.d.ts.map +1 -0
- package/dist/utils/email/EmailValidator.js +15 -0
- package/dist/utils/email/EmailValidator.js.map +1 -0
- package/dist/utils/email/index.d.ts +6 -0
- package/dist/utils/email/index.d.ts.map +1 -0
- package/dist/utils/email/index.js +12 -0
- package/dist/utils/email/index.js.map +1 -0
- package/dist/utils/formatters/Formatters.d.ts +10 -0
- package/dist/utils/formatters/Formatters.d.ts.map +1 -0
- package/dist/utils/formatters/Formatters.js +48 -0
- package/dist/utils/formatters/Formatters.js.map +1 -0
- package/dist/utils/formatters/index.d.ts +2 -0
- package/dist/utils/formatters/index.d.ts.map +1 -0
- package/dist/utils/formatters/index.js +18 -0
- package/dist/utils/formatters/index.js.map +1 -0
- package/dist/utils/generators/GeneratorUtils.d.ts +10 -0
- package/dist/utils/generators/GeneratorUtils.d.ts.map +1 -0
- package/dist/utils/generators/GeneratorUtils.js +57 -0
- package/dist/utils/generators/GeneratorUtils.js.map +1 -0
- package/dist/utils/generators/index.d.ts +2 -0
- package/dist/utils/generators/index.d.ts.map +1 -0
- package/dist/utils/generators/index.js +18 -0
- package/dist/utils/generators/index.js.map +1 -0
- package/dist/utils/index.d.ts +7 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/index.js +23 -0
- package/dist/utils/index.js.map +1 -0
- package/dist/utils/parsers/ParserUtils.d.ts +6 -0
- package/dist/utils/parsers/ParserUtils.d.ts.map +1 -0
- package/dist/utils/parsers/ParserUtils.js +63 -0
- package/dist/utils/parsers/ParserUtils.js.map +1 -0
- package/dist/utils/parsers/index.d.ts +2 -0
- package/dist/utils/parsers/index.d.ts.map +1 -0
- package/dist/utils/parsers/index.js +18 -0
- package/dist/utils/parsers/index.js.map +1 -0
- package/dist/utils/validators/TaxIdValidator.d.ts +2 -0
- package/dist/utils/validators/TaxIdValidator.d.ts.map +1 -0
- package/dist/utils/validators/TaxIdValidator.js +58 -0
- package/dist/utils/validators/TaxIdValidator.js.map +1 -0
- package/dist/utils/validators/index.d.ts +2 -0
- package/dist/utils/validators/index.d.ts.map +1 -0
- package/dist/utils/validators/index.js +18 -0
- package/dist/utils/validators/index.js.map +1 -0
- package/dist/utils/webhooks/WebhookNotification.d.ts +25 -0
- package/dist/utils/webhooks/WebhookNotification.d.ts.map +1 -0
- package/dist/utils/webhooks/WebhookNotification.js +50 -0
- package/dist/utils/webhooks/WebhookNotification.js.map +1 -0
- package/dist/utils/webhooks/WebhookValidator.d.ts +3 -0
- package/dist/utils/webhooks/WebhookValidator.d.ts.map +1 -0
- package/dist/utils/webhooks/WebhookValidator.js +24 -0
- package/dist/utils/webhooks/WebhookValidator.js.map +1 -0
- package/dist/utils/webhooks/index.d.ts +4 -0
- package/dist/utils/webhooks/index.d.ts.map +1 -0
- package/dist/utils/webhooks/index.js +10 -0
- package/dist/utils/webhooks/index.js.map +1 -0
- package/dist/validators/cnab240/Cnab240Validator.d.ts +5 -0
- package/dist/validators/cnab240/Cnab240Validator.d.ts.map +1 -0
- package/dist/validators/cnab240/Cnab240Validator.js +148 -0
- package/dist/validators/cnab240/Cnab240Validator.js.map +1 -0
- package/dist/validators/cnab240/index.d.ts +2 -0
- package/dist/validators/cnab240/index.d.ts.map +1 -0
- package/dist/validators/cnab240/index.js +18 -0
- package/dist/validators/cnab240/index.js.map +1 -0
- package/dist/validators/cnab400/Cnab400Validator.d.ts +5 -0
- package/dist/validators/cnab400/Cnab400Validator.d.ts.map +1 -0
- package/dist/validators/cnab400/Cnab400Validator.js +48 -0
- package/dist/validators/cnab400/Cnab400Validator.js.map +1 -0
- package/dist/validators/cnab400/index.d.ts +2 -0
- package/dist/validators/cnab400/index.d.ts.map +1 -0
- package/dist/validators/cnab400/index.js +18 -0
- package/dist/validators/cnab400/index.js.map +1 -0
- package/dist/validators/common/CommonValidators.d.ts +7 -0
- package/dist/validators/common/CommonValidators.d.ts.map +1 -0
- package/dist/validators/common/CommonValidators.js +26 -0
- package/dist/validators/common/CommonValidators.js.map +1 -0
- package/dist/validators/common/ValidationResult.d.ts +5 -0
- package/dist/validators/common/ValidationResult.d.ts.map +1 -0
- package/dist/validators/common/ValidationResult.js +3 -0
- package/dist/validators/common/ValidationResult.js.map +1 -0
- package/dist/validators/common/index.d.ts +3 -0
- package/dist/validators/common/index.d.ts.map +1 -0
- package/dist/validators/common/index.js +19 -0
- package/dist/validators/common/index.js.map +1 -0
- package/dist/validators/index.d.ts +7 -0
- package/dist/validators/index.d.ts.map +1 -0
- package/dist/validators/index.js +48 -0
- package/dist/validators/index.js.map +1 -0
- package/package.json +105 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
<http://www.apache.org/licenses/>
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
Copyright 2026 Fabio Moreno
|
|
179
|
+
|
|
180
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
181
|
+
you may not use this file except in compliance with the License.
|
|
182
|
+
You may obtain a copy of the License at
|
|
183
|
+
|
|
184
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
185
|
+
|
|
186
|
+
Unless required by applicable law or agreed to in writing, software
|
|
187
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
188
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
189
|
+
See the License for the specific language governing permissions and
|
|
190
|
+
limitations under the License.
|
package/README.md
ADDED
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
# 🎫 BoletoSDK
|
|
2
|
+
|
|
3
|
+
Brazilian bank slip (boleto) & CNAB processing library with type safety, validation, and ready-to-render assets.
|
|
4
|
+
|
|
5
|
+
[](https://www.npmjs.com/package/@linkiez/boleto-sdk)
|
|
6
|
+
[](https://github.com/linkiez/BoletoSDK/actions)
|
|
7
|
+
[](https://codecov.io/gh/linkiez/BoletoSDK)
|
|
8
|
+
[](https://opensource.org/licenses/MIT)
|
|
9
|
+
[](https://www.typescriptlang.org/)
|
|
10
|
+
|
|
11
|
+
Parse, generate, and validate CNAB 240/400 files with consistent APIs.
|
|
12
|
+
|
|
13
|
+
## 🌟 Highlights
|
|
14
|
+
|
|
15
|
+
- CNAB 240/400 parsing, generation, and validation
|
|
16
|
+
- Boleto assets: barcode, PIX QR, HTML/PDF (pt-BR labels)
|
|
17
|
+
- Bank constants, layout validation, and robust tests
|
|
18
|
+
|
|
19
|
+
## 🧾 Boleto Generation
|
|
20
|
+
|
|
21
|
+
```typescript
|
|
22
|
+
import {
|
|
23
|
+
buildBoletoHtml,
|
|
24
|
+
generateBarcode,
|
|
25
|
+
generateBoletoEmail,
|
|
26
|
+
generateBoletoPdfBuffer,
|
|
27
|
+
generatePixQRCode,
|
|
28
|
+
} from '@linkiez/boleto-sdk';
|
|
29
|
+
|
|
30
|
+
const barcode = generateBarcode({
|
|
31
|
+
bankCode: '341',
|
|
32
|
+
currencyCode: '9',
|
|
33
|
+
dueDate: new Date('2026-02-28'),
|
|
34
|
+
amount: 150.5,
|
|
35
|
+
freeField: '1234567890123456789012345',
|
|
36
|
+
});
|
|
37
|
+
|
|
38
|
+
const pix = generatePixQRCode({
|
|
39
|
+
key: '12345678000195',
|
|
40
|
+
amount: 150.5,
|
|
41
|
+
merchantName: 'ACME CORP',
|
|
42
|
+
merchantCity: 'SAO PAULO',
|
|
43
|
+
transactionId: 'INV001',
|
|
44
|
+
});
|
|
45
|
+
|
|
46
|
+
const boletoData = {
|
|
47
|
+
beneficiary: {
|
|
48
|
+
name: 'ACME CORP',
|
|
49
|
+
document: '12345678000195',
|
|
50
|
+
address: 'Avenida 1, 1000',
|
|
51
|
+
},
|
|
52
|
+
payer: {
|
|
53
|
+
name: 'Joao da Silva',
|
|
54
|
+
document: '12345678901',
|
|
55
|
+
address: 'Rua 2, 200',
|
|
56
|
+
},
|
|
57
|
+
payment: {
|
|
58
|
+
documentNumber: 'DOC-001',
|
|
59
|
+
ourNumber: '12345678',
|
|
60
|
+
amount: 150.5,
|
|
61
|
+
dueDate: new Date('2026-02-28'),
|
|
62
|
+
barcode: barcode.barcode,
|
|
63
|
+
digitableLine: barcode.digitableLine,
|
|
64
|
+
pix: { payload: pix.payload },
|
|
65
|
+
},
|
|
66
|
+
bank: { code: '341', name: 'ITAU UNIBANCO SA' },
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
const html = buildBoletoHtml(boletoData, { layout: 'detailed' });
|
|
70
|
+
const pdf = await generateBoletoPdfBuffer(boletoData, { includePixQr: true });
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
## 🚀 Quick Start
|
|
74
|
+
|
|
75
|
+
```bash
|
|
76
|
+
npm install @linkiez/boleto-sdk
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
```typescript
|
|
80
|
+
import { parseCnab, generateCnab } from '@linkiez/boleto-sdk';
|
|
81
|
+
|
|
82
|
+
const parsed = parseCnab(content);
|
|
83
|
+
const output = generateCnab(parsed);
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
```typescript
|
|
87
|
+
import {
|
|
88
|
+
generateBarcode,
|
|
89
|
+
generatePixQRCode,
|
|
90
|
+
generateBoletoPdfBuffer,
|
|
91
|
+
} from '@linkiez/boleto-sdk';
|
|
92
|
+
|
|
93
|
+
const { barcode, digitableLine } = generateBarcode({
|
|
94
|
+
bankCode: '341',
|
|
95
|
+
dueDate: new Date('2025-02-10'),
|
|
96
|
+
amount: 150.5,
|
|
97
|
+
freeField: '1234567890123456789012345',
|
|
98
|
+
});
|
|
99
|
+
|
|
100
|
+
const pix = generatePixQRCode({
|
|
101
|
+
key: '12345678000195',
|
|
102
|
+
amount: 150.5,
|
|
103
|
+
merchantName: 'ACME CORP',
|
|
104
|
+
merchantCity: 'SAO PAULO',
|
|
105
|
+
transactionId: 'INV001',
|
|
106
|
+
});
|
|
107
|
+
|
|
108
|
+
const pdf = await generateBoletoPdfBuffer({
|
|
109
|
+
beneficiary: { name: 'ACME CORP', document: '12345678000195', address: 'Avenida 1' },
|
|
110
|
+
payer: { name: 'Joao da Silva', document: '12345678901', address: 'Rua 2' },
|
|
111
|
+
payment: {
|
|
112
|
+
documentNumber: 'DOC-001',
|
|
113
|
+
ourNumber: '12345678',
|
|
114
|
+
amount: 150.5,
|
|
115
|
+
dueDate: new Date('2025-02-10'),
|
|
116
|
+
barcode,
|
|
117
|
+
digitableLine,
|
|
118
|
+
pix: { payload: pix.payload },
|
|
119
|
+
},
|
|
120
|
+
bank: { code: '341', name: 'ITAU UNIBANCO SA' },
|
|
121
|
+
});
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
## 📚 Documentation
|
|
125
|
+
|
|
126
|
+
### Core
|
|
127
|
+
|
|
128
|
+
- [API Reference](doc/API-REFERENCE.md)
|
|
129
|
+
- [CNAB240 Guide](doc/CNAB240_GUIDE.md)
|
|
130
|
+
- [CNAB400 Usage Guide](doc/CNAB400-USAGE-GUIDE.md)
|
|
131
|
+
- [Boleto Generation Guide](doc/BOLETO-GENERATION.md)
|
|
132
|
+
- [Examples](doc/EXAMPLES.md)
|
|
133
|
+
|
|
134
|
+
### Specs and Validation
|
|
135
|
+
|
|
136
|
+
- [CNAB240 FEBRABAN Spec](doc/CNAB240-FEBRABAN.md)
|
|
137
|
+
- [CNAB400 Positions Validation](doc/CNAB400_POSITIONS_VALIDATION.md)
|
|
138
|
+
- [Segment Positions Validation](doc/SEGMENT_POSITIONS_VALIDATION.md)
|
|
139
|
+
- [Business Rules](doc/BUSINESS_RULES.md)
|
|
140
|
+
- [Business Rules Sources](doc/BUSINESS_RULES_SOURCES.md)
|
|
141
|
+
|
|
142
|
+
### Supporting Docs
|
|
143
|
+
|
|
144
|
+
- [Bank Differences](doc/BANK_DIFFERENCES.md)
|
|
145
|
+
- [FAQ](doc/FAQ.md)
|
|
146
|
+
- [Migration](doc/MIGRATION.md)
|
|
147
|
+
- [SonarQube](doc/SONARQUBE.md)
|
|
148
|
+
- [CNAB400 Bank Samples](doc)
|
|
149
|
+
|
|
150
|
+
### Project
|
|
151
|
+
|
|
152
|
+
- [Architecture](ARCHITECTURE.md)
|
|
153
|
+
- [Testing](TESTING.md)
|
|
154
|
+
- [Contributing](CONTRIBUTING.md)
|
|
155
|
+
- [Roadmap](ROADMAP.md)
|
|
156
|
+
|
|
157
|
+
## 🛠️ Development
|
|
158
|
+
|
|
159
|
+
See [CONTRIBUTING.md](CONTRIBUTING.md) and [TESTING.md](TESTING.md) for setup, workflows, and conventions.
|
|
160
|
+
|
|
161
|
+
## 📜 License
|
|
162
|
+
|
|
163
|
+
APACHE. See [LICENSE](LICENSE).
|
|
164
|
+
|
|
165
|
+
## 🔗 Links
|
|
166
|
+
|
|
167
|
+
- [NPM Package](https://www.npmjs.com/package/@linkiez/boleto-sdk)
|
|
168
|
+
- [Report Issues](https://github.com/linkiez/BoletoSDK/issues)
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { BankCode } from '@enums/common';
|
|
2
|
+
export interface BankInfo {
|
|
3
|
+
code: BankCode;
|
|
4
|
+
checkDigit: string;
|
|
5
|
+
name: string;
|
|
6
|
+
shortName: string;
|
|
7
|
+
ispb: string;
|
|
8
|
+
}
|
|
9
|
+
export declare const BANKS: Record<BankCode, BankInfo>;
|
|
10
|
+
export declare function getBankInfo(code: BankCode | string): BankInfo | undefined;
|
|
11
|
+
export declare function getBankName(code: BankCode | string): string | undefined;
|
|
12
|
+
export declare function getBankCodeWithCheckDigit(code: BankCode | string, fallbackCheckDigit?: string): string;
|
|
13
|
+
export declare function isValidBankCode(code: string): boolean;
|
|
14
|
+
//# sourceMappingURL=BankRegistry.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BankRegistry.d.ts","sourceRoot":"","sources":["../../../src/constants/bancos/BankRegistry.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAKzC,MAAM,WAAW,QAAQ;IAEvB,IAAI,EAAE,QAAQ,CAAC;IAEf,UAAU,EAAE,MAAM,CAAC;IAEnB,IAAI,EAAE,MAAM,CAAC;IAEb,SAAS,EAAE,MAAM,CAAC;IAElB,IAAI,EAAE,MAAM,CAAC;CACd;AAKD,eAAO,MAAM,KAAK,EAAE,MAAM,CAAC,QAAQ,EAAE,QAAQ,CA2C5C,CAAC;AAcF,wBAAgB,WAAW,CAAC,IAAI,EAAE,QAAQ,GAAG,MAAM,GAAG,QAAQ,GAAG,SAAS,CAEzE;AAQD,wBAAgB,WAAW,CAAC,IAAI,EAAE,QAAQ,GAAG,MAAM,GAAG,MAAM,GAAG,SAAS,CAEvE;AASD,wBAAgB,yBAAyB,CACvC,IAAI,EAAE,QAAQ,GAAG,MAAM,EACvB,kBAAkB,SAAM,GACvB,MAAM,CAMR;AAQD,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAErD"}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BANKS = void 0;
|
|
4
|
+
exports.getBankInfo = getBankInfo;
|
|
5
|
+
exports.getBankName = getBankName;
|
|
6
|
+
exports.getBankCodeWithCheckDigit = getBankCodeWithCheckDigit;
|
|
7
|
+
exports.isValidBankCode = isValidBankCode;
|
|
8
|
+
const common_1 = require("@enums/common");
|
|
9
|
+
exports.BANKS = {
|
|
10
|
+
[common_1.BankCode.BANCO_DO_BRASIL]: {
|
|
11
|
+
code: common_1.BankCode.BANCO_DO_BRASIL,
|
|
12
|
+
checkDigit: '9',
|
|
13
|
+
name: 'Banco do Brasil S.A.',
|
|
14
|
+
shortName: 'Banco do Brasil',
|
|
15
|
+
ispb: '00000000',
|
|
16
|
+
},
|
|
17
|
+
[common_1.BankCode.SANTANDER]: {
|
|
18
|
+
code: common_1.BankCode.SANTANDER,
|
|
19
|
+
checkDigit: '7',
|
|
20
|
+
name: 'Banco Santander (Brasil) S.A.',
|
|
21
|
+
shortName: 'Santander',
|
|
22
|
+
ispb: '90400888',
|
|
23
|
+
},
|
|
24
|
+
[common_1.BankCode.CAIXA]: {
|
|
25
|
+
code: common_1.BankCode.CAIXA,
|
|
26
|
+
checkDigit: '0',
|
|
27
|
+
name: 'Caixa Econômica Federal',
|
|
28
|
+
shortName: 'CAIXA',
|
|
29
|
+
ispb: '00360305',
|
|
30
|
+
},
|
|
31
|
+
[common_1.BankCode.BRADESCO]: {
|
|
32
|
+
code: common_1.BankCode.BRADESCO,
|
|
33
|
+
checkDigit: '2',
|
|
34
|
+
name: 'Banco Bradesco S.A.',
|
|
35
|
+
shortName: 'Bradesco',
|
|
36
|
+
ispb: '60746948',
|
|
37
|
+
},
|
|
38
|
+
[common_1.BankCode.C6_BANK]: {
|
|
39
|
+
code: common_1.BankCode.C6_BANK,
|
|
40
|
+
checkDigit: '0',
|
|
41
|
+
name: 'Banco C6 S.A.',
|
|
42
|
+
shortName: 'C6 Bank',
|
|
43
|
+
ispb: '31872495',
|
|
44
|
+
},
|
|
45
|
+
[common_1.BankCode.ITAU]: {
|
|
46
|
+
code: common_1.BankCode.ITAU,
|
|
47
|
+
checkDigit: '7',
|
|
48
|
+
name: 'Itaú Unibanco S.A.',
|
|
49
|
+
shortName: 'Itaú',
|
|
50
|
+
ispb: '60701190',
|
|
51
|
+
},
|
|
52
|
+
};
|
|
53
|
+
function getBankInfo(code) {
|
|
54
|
+
return exports.BANKS[code];
|
|
55
|
+
}
|
|
56
|
+
function getBankName(code) {
|
|
57
|
+
return getBankInfo(code)?.name;
|
|
58
|
+
}
|
|
59
|
+
function getBankCodeWithCheckDigit(code, fallbackCheckDigit = '0') {
|
|
60
|
+
const bank = getBankInfo(code);
|
|
61
|
+
const normalizedCode = String(code).padStart(3, '0');
|
|
62
|
+
const checkDigit = bank?.checkDigit ?? fallbackCheckDigit;
|
|
63
|
+
return `${normalizedCode}-${checkDigit}`;
|
|
64
|
+
}
|
|
65
|
+
function isValidBankCode(code) {
|
|
66
|
+
return code in exports.BANKS;
|
|
67
|
+
}
|
|
68
|
+
//# sourceMappingURL=BankRegistry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BankRegistry.js","sourceRoot":"","sources":["../../../src/constants/bancos/BankRegistry.ts"],"names":[],"mappings":";;;AAmFA,kCAEC;AAQD,kCAEC;AASD,8DASC;AAQD,0CAEC;AAtHD,0CAAyC;AAqB5B,QAAA,KAAK,GAA+B;IAC/C,CAAC,iBAAQ,CAAC,eAAe,CAAC,EAAE;QAC1B,IAAI,EAAE,iBAAQ,CAAC,eAAe;QAC9B,UAAU,EAAE,GAAG;QACf,IAAI,EAAE,sBAAsB;QAC5B,SAAS,EAAE,iBAAiB;QAC5B,IAAI,EAAE,UAAU;KACjB;IACD,CAAC,iBAAQ,CAAC,SAAS,CAAC,EAAE;QACpB,IAAI,EAAE,iBAAQ,CAAC,SAAS;QACxB,UAAU,EAAE,GAAG;QACf,IAAI,EAAE,+BAA+B;QACrC,SAAS,EAAE,WAAW;QACtB,IAAI,EAAE,UAAU;KACjB;IACD,CAAC,iBAAQ,CAAC,KAAK,CAAC,EAAE;QAChB,IAAI,EAAE,iBAAQ,CAAC,KAAK;QACpB,UAAU,EAAE,GAAG;QACf,IAAI,EAAE,yBAAyB;QAC/B,SAAS,EAAE,OAAO;QAClB,IAAI,EAAE,UAAU;KACjB;IACD,CAAC,iBAAQ,CAAC,QAAQ,CAAC,EAAE;QACnB,IAAI,EAAE,iBAAQ,CAAC,QAAQ;QACvB,UAAU,EAAE,GAAG;QACf,IAAI,EAAE,qBAAqB;QAC3B,SAAS,EAAE,UAAU;QACrB,IAAI,EAAE,UAAU;KACjB;IACD,CAAC,iBAAQ,CAAC,OAAO,CAAC,EAAE;QAClB,IAAI,EAAE,iBAAQ,CAAC,OAAO;QACtB,UAAU,EAAE,GAAG;QACf,IAAI,EAAE,eAAe;QACrB,SAAS,EAAE,SAAS;QACpB,IAAI,EAAE,UAAU;KACjB;IACD,CAAC,iBAAQ,CAAC,IAAI,CAAC,EAAE;QACf,IAAI,EAAE,iBAAQ,CAAC,IAAI;QACnB,UAAU,EAAE,GAAG;QACf,IAAI,EAAE,oBAAoB;QAC1B,SAAS,EAAE,MAAM;QACjB,IAAI,EAAE,UAAU;KACjB;CACF,CAAC;AAcF,SAAgB,WAAW,CAAC,IAAuB;IACjD,OAAO,aAAK,CAAC,IAAgB,CAAC,CAAC;AACjC,CAAC;AAQD,SAAgB,WAAW,CAAC,IAAuB;IACjD,OAAO,WAAW,CAAC,IAAI,CAAC,EAAE,IAAI,CAAC;AACjC,CAAC;AASD,SAAgB,yBAAyB,CACvC,IAAuB,EACvB,kBAAkB,GAAG,GAAG;IAExB,MAAM,IAAI,GAAG,WAAW,CAAC,IAAI,CAAC,CAAC;IAC/B,MAAM,cAAc,GAAG,MAAM,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC;IACrD,MAAM,UAAU,GAAG,IAAI,EAAE,UAAU,IAAI,kBAAkB,CAAC;IAE1D,OAAO,GAAG,cAAc,IAAI,UAAU,EAAE,CAAC;AAC3C,CAAC;AAQD,SAAgB,eAAe,CAAC,IAAY;IAC1C,OAAO,IAAI,IAAI,aAAK,CAAC;AACvB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/constants/bancos/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./BankRegistry"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/constants/bancos/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iDAA+B"}
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
export declare const COMMON_FIELD_SIZES: {
|
|
2
|
+
readonly BANK_CODE: 3;
|
|
3
|
+
readonly RECORD_TYPE: 1;
|
|
4
|
+
readonly BATCH_NUMBER: 4;
|
|
5
|
+
readonly RECORD_NUMBER: 5;
|
|
6
|
+
readonly SEGMENT_CODE: 1;
|
|
7
|
+
readonly OPERATION_TYPE: 1;
|
|
8
|
+
readonly SERVICE_TYPE: 2;
|
|
9
|
+
readonly AGENCY: 5;
|
|
10
|
+
readonly AGENCY_DIGIT: 1;
|
|
11
|
+
readonly ACCOUNT: 12;
|
|
12
|
+
readonly ACCOUNT_DIGIT: 1;
|
|
13
|
+
readonly ACCOUNT_DV: 1;
|
|
14
|
+
readonly COMPANY_NAME: 30;
|
|
15
|
+
readonly BANK_NAME: 30;
|
|
16
|
+
readonly DOCUMENT_NUMBER: 20;
|
|
17
|
+
readonly PORTFOLIO: 1;
|
|
18
|
+
readonly DOCUMENT_TYPE: 1;
|
|
19
|
+
readonly PERSON_TYPE: 1;
|
|
20
|
+
readonly TAX_ID: 15;
|
|
21
|
+
readonly NAME: 40;
|
|
22
|
+
readonly ADDRESS: 40;
|
|
23
|
+
readonly DISTRICT: 15;
|
|
24
|
+
readonly CITY: 15;
|
|
25
|
+
readonly STATE: 2;
|
|
26
|
+
readonly ZIP_CODE: 8;
|
|
27
|
+
readonly DATE: 8;
|
|
28
|
+
readonly AMOUNT: 15;
|
|
29
|
+
readonly PERCENTAGE: 5;
|
|
30
|
+
readonly CURRENCY: 3;
|
|
31
|
+
readonly OCCURRENCE_CODE: 2;
|
|
32
|
+
readonly MESSAGE: 40;
|
|
33
|
+
readonly RESERVED_10: 10;
|
|
34
|
+
readonly RESERVED_20: 20;
|
|
35
|
+
readonly RESERVED_33: 33;
|
|
36
|
+
};
|
|
37
|
+
export declare const FILE_HEADER_SIZES: {
|
|
38
|
+
readonly LAYOUT_VERSION: 3;
|
|
39
|
+
readonly FILE_DENSITY: 5;
|
|
40
|
+
readonly RECORD_SIZE: 3;
|
|
41
|
+
readonly BLOCK_SIZE: 3;
|
|
42
|
+
readonly GENERATION_DATE: 8;
|
|
43
|
+
readonly GENERATION_TIME: 6;
|
|
44
|
+
readonly FILE_SEQUENCE: 6;
|
|
45
|
+
};
|
|
46
|
+
export declare const BATCH_HEADER_SIZES: {
|
|
47
|
+
readonly LAUNCH_FORM: 1;
|
|
48
|
+
readonly LAYOUT_VERSION: 3;
|
|
49
|
+
readonly WARNING_CODE: 2;
|
|
50
|
+
readonly MESSAGE_1: 40;
|
|
51
|
+
readonly MESSAGE_2: 40;
|
|
52
|
+
readonly RETURN_ADDRESS: 40;
|
|
53
|
+
};
|
|
54
|
+
export declare const SEGMENT_P_SIZES: {
|
|
55
|
+
readonly MOVEMENT_CODE: 2;
|
|
56
|
+
readonly ACCOUNT_TYPE: 1;
|
|
57
|
+
readonly BOLETO_TYPE: 1;
|
|
58
|
+
readonly BOLETO_FORM: 1;
|
|
59
|
+
readonly DOCUMENT_PRINT: 1;
|
|
60
|
+
readonly POSTING_FORM: 1;
|
|
61
|
+
readonly ISSUE_DATE: 8;
|
|
62
|
+
readonly CREDIT_DATE: 8;
|
|
63
|
+
readonly INTEREST_CODE: 1;
|
|
64
|
+
readonly INTEREST_DATE: 8;
|
|
65
|
+
readonly INTEREST_AMOUNT: 15;
|
|
66
|
+
readonly DISCOUNT_CODE: 1;
|
|
67
|
+
readonly DISCOUNT_DATE: 8;
|
|
68
|
+
readonly DISCOUNT_AMOUNT: 15;
|
|
69
|
+
readonly IOF_AMOUNT: 15;
|
|
70
|
+
readonly REBATE_AMOUNT: 15;
|
|
71
|
+
readonly PROTEST_CODE: 1;
|
|
72
|
+
readonly PROTEST_DAYS: 2;
|
|
73
|
+
readonly LOW_CODE: 1;
|
|
74
|
+
readonly LOW_DAYS: 3;
|
|
75
|
+
};
|
|
76
|
+
export declare const SEGMENT_Q_SIZES: {
|
|
77
|
+
readonly PAYER_NAME: 40;
|
|
78
|
+
readonly PAYER_ADDRESS: 40;
|
|
79
|
+
readonly PAYER_DISTRICT: 15;
|
|
80
|
+
readonly PAYER_CITY: 15;
|
|
81
|
+
readonly PAYER_STATE: 2;
|
|
82
|
+
readonly PAYER_ZIP_CODE: 8;
|
|
83
|
+
readonly GUARANTOR_NAME: 40;
|
|
84
|
+
readonly GUARANTOR_TAX_ID: 15;
|
|
85
|
+
};
|
|
86
|
+
export declare const SEGMENT_R_SIZES: {
|
|
87
|
+
readonly DISCOUNT_2_CODE: 1;
|
|
88
|
+
readonly DISCOUNT_2_DATE: 8;
|
|
89
|
+
readonly DISCOUNT_2_AMOUNT: 15;
|
|
90
|
+
readonly DISCOUNT_3_CODE: 1;
|
|
91
|
+
readonly DISCOUNT_3_DATE: 8;
|
|
92
|
+
readonly DISCOUNT_3_AMOUNT: 15;
|
|
93
|
+
readonly FINE_CODE: 1;
|
|
94
|
+
readonly FINE_DATE: 8;
|
|
95
|
+
readonly FINE_AMOUNT: 15;
|
|
96
|
+
};
|
|
97
|
+
export declare const BATCH_TRAILER_SIZES: {
|
|
98
|
+
readonly DETAIL_COUNT: 6;
|
|
99
|
+
readonly SLIP_COUNT: 6;
|
|
100
|
+
readonly TOTAL_AMOUNT: 17;
|
|
101
|
+
readonly WARNING_AMOUNT: 17;
|
|
102
|
+
};
|
|
103
|
+
export declare const FILE_TRAILER_SIZES: {
|
|
104
|
+
readonly BATCH_COUNT: 6;
|
|
105
|
+
readonly RECORD_COUNT: 6;
|
|
106
|
+
readonly ACCOUNT_COUNT: 6;
|
|
107
|
+
};
|
|
108
|
+
export declare const TOTAL_LINE_LENGTH: 240;
|
|
109
|
+
export declare const RECORD_TYPE_POSITION = 8;
|
|
110
|
+
export declare const SEGMENT_CODE_POSITION = 14;
|
|
111
|
+
//# sourceMappingURL=FIELD_SIZES.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FIELD_SIZES.d.ts","sourceRoot":"","sources":["../../../src/constants/cnab240/FIELD_SIZES.ts"],"names":[],"mappings":"AAYA,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkGrB,CAAC;AAKX,eAAO,MAAM,iBAAiB;;;;;;;;CAqBpB,CAAC;AAKX,eAAO,MAAM,kBAAkB;;;;;;;CAkBrB,CAAC;AAKX,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;CA4DlB,CAAC;AAKX,eAAO,MAAM,eAAe;;;;;;;;;CAwBlB,CAAC;AAKX,eAAO,MAAM,eAAe;;;;;;;;;;CA2BlB,CAAC;AAKX,eAAO,MAAM,mBAAmB;;;;;CAYtB,CAAC;AAKX,eAAO,MAAM,kBAAkB;;;;CASrB,CAAC;AAKX,eAAO,MAAM,iBAAiB,EAAG,GAAY,CAAC;AAK9C,eAAO,MAAM,oBAAoB,IAAI,CAAC;AACtC,eAAO,MAAM,qBAAqB,KAAK,CAAC"}
|