@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.
Files changed (651) hide show
  1. package/LICENSE +190 -0
  2. package/README.md +168 -0
  3. package/dist/constants/bancos/BankRegistry.d.ts +14 -0
  4. package/dist/constants/bancos/BankRegistry.d.ts.map +1 -0
  5. package/dist/constants/bancos/BankRegistry.js +68 -0
  6. package/dist/constants/bancos/BankRegistry.js.map +1 -0
  7. package/dist/constants/bancos/index.d.ts +2 -0
  8. package/dist/constants/bancos/index.d.ts.map +1 -0
  9. package/dist/constants/bancos/index.js +18 -0
  10. package/dist/constants/bancos/index.js.map +1 -0
  11. package/dist/constants/cnab240/FIELD_SIZES.d.ts +111 -0
  12. package/dist/constants/cnab240/FIELD_SIZES.d.ts.map +1 -0
  13. package/dist/constants/cnab240/FIELD_SIZES.js +114 -0
  14. package/dist/constants/cnab240/FIELD_SIZES.js.map +1 -0
  15. package/dist/constants/cnab240/LAYOUT_VERSION.d.ts +17 -0
  16. package/dist/constants/cnab240/LAYOUT_VERSION.d.ts.map +1 -0
  17. package/dist/constants/cnab240/LAYOUT_VERSION.js +20 -0
  18. package/dist/constants/cnab240/LAYOUT_VERSION.js.map +1 -0
  19. package/dist/constants/cnab240/SEGMENT_POSITIONS.d.ts +659 -0
  20. package/dist/constants/cnab240/SEGMENT_POSITIONS.d.ts.map +1 -0
  21. package/dist/constants/cnab240/SEGMENT_POSITIONS.js +195 -0
  22. package/dist/constants/cnab240/SEGMENT_POSITIONS.js.map +1 -0
  23. package/dist/constants/cnab240/index.d.ts +4 -0
  24. package/dist/constants/cnab240/index.d.ts.map +1 -0
  25. package/dist/constants/cnab240/index.js +20 -0
  26. package/dist/constants/cnab240/index.js.map +1 -0
  27. package/dist/constants/cnab400/FIELD_SIZES.d.ts +68 -0
  28. package/dist/constants/cnab400/FIELD_SIZES.d.ts.map +1 -0
  29. package/dist/constants/cnab400/FIELD_SIZES.js +71 -0
  30. package/dist/constants/cnab400/FIELD_SIZES.js.map +1 -0
  31. package/dist/constants/cnab400/LAYOUT_VERSION.d.ts +11 -0
  32. package/dist/constants/cnab400/LAYOUT_VERSION.d.ts.map +1 -0
  33. package/dist/constants/cnab400/LAYOUT_VERSION.js +14 -0
  34. package/dist/constants/cnab400/LAYOUT_VERSION.js.map +1 -0
  35. package/dist/constants/cnab400/RECORD_POSITIONS.d.ts +545 -0
  36. package/dist/constants/cnab400/RECORD_POSITIONS.d.ts.map +1 -0
  37. package/dist/constants/cnab400/RECORD_POSITIONS.js +147 -0
  38. package/dist/constants/cnab400/RECORD_POSITIONS.js.map +1 -0
  39. package/dist/constants/cnab400/index.d.ts +4 -0
  40. package/dist/constants/cnab400/index.d.ts.map +1 -0
  41. package/dist/constants/cnab400/index.js +20 -0
  42. package/dist/constants/cnab400/index.js.map +1 -0
  43. package/dist/constants/index.d.ts +4 -0
  44. package/dist/constants/index.d.ts.map +1 -0
  45. package/dist/constants/index.js +43 -0
  46. package/dist/constants/index.js.map +1 -0
  47. package/dist/enums/cnab240/OccurrenceCode.d.ts +57 -0
  48. package/dist/enums/cnab240/OccurrenceCode.d.ts.map +1 -0
  49. package/dist/enums/cnab240/OccurrenceCode.js +62 -0
  50. package/dist/enums/cnab240/OccurrenceCode.js.map +1 -0
  51. package/dist/enums/cnab240/OperationType.d.ts +7 -0
  52. package/dist/enums/cnab240/OperationType.d.ts.map +1 -0
  53. package/dist/enums/cnab240/OperationType.js +11 -0
  54. package/dist/enums/cnab240/OperationType.js.map +1 -0
  55. package/dist/enums/cnab240/RecordType.d.ts +8 -0
  56. package/dist/enums/cnab240/RecordType.d.ts.map +1 -0
  57. package/dist/enums/cnab240/RecordType.js +12 -0
  58. package/dist/enums/cnab240/RecordType.js.map +1 -0
  59. package/dist/enums/cnab240/SegmentCode.d.ts +10 -0
  60. package/dist/enums/cnab240/SegmentCode.d.ts.map +1 -0
  61. package/dist/enums/cnab240/SegmentCode.js +14 -0
  62. package/dist/enums/cnab240/SegmentCode.js.map +1 -0
  63. package/dist/enums/cnab240/ServiceType.d.ts +8 -0
  64. package/dist/enums/cnab240/ServiceType.d.ts.map +1 -0
  65. package/dist/enums/cnab240/ServiceType.js +12 -0
  66. package/dist/enums/cnab240/ServiceType.js.map +1 -0
  67. package/dist/enums/cnab240/index.d.ts +6 -0
  68. package/dist/enums/cnab240/index.d.ts.map +1 -0
  69. package/dist/enums/cnab240/index.js +15 -0
  70. package/dist/enums/cnab240/index.js.map +1 -0
  71. package/dist/enums/cnab400/Cnab400Enums.d.ts +121 -0
  72. package/dist/enums/cnab400/Cnab400Enums.d.ts.map +1 -0
  73. package/dist/enums/cnab400/Cnab400Enums.js +133 -0
  74. package/dist/enums/cnab400/Cnab400Enums.js.map +1 -0
  75. package/dist/enums/cnab400/index.d.ts +2 -0
  76. package/dist/enums/cnab400/index.d.ts.map +1 -0
  77. package/dist/enums/cnab400/index.js +18 -0
  78. package/dist/enums/cnab400/index.js.map +1 -0
  79. package/dist/enums/common/CommonEnums.d.ts +52 -0
  80. package/dist/enums/common/CommonEnums.d.ts.map +1 -0
  81. package/dist/enums/common/CommonEnums.js +63 -0
  82. package/dist/enums/common/CommonEnums.js.map +1 -0
  83. package/dist/enums/common/index.d.ts +2 -0
  84. package/dist/enums/common/index.d.ts.map +1 -0
  85. package/dist/enums/common/index.js +18 -0
  86. package/dist/enums/common/index.js.map +1 -0
  87. package/dist/enums/index.d.ts +4 -0
  88. package/dist/enums/index.d.ts.map +1 -0
  89. package/dist/enums/index.js +25 -0
  90. package/dist/enums/index.js.map +1 -0
  91. package/dist/errors/CnabErrors.d.ts +26 -0
  92. package/dist/errors/CnabErrors.d.ts.map +1 -0
  93. package/dist/errors/CnabErrors.js +49 -0
  94. package/dist/errors/CnabErrors.js.map +1 -0
  95. package/dist/errors/index.d.ts +2 -0
  96. package/dist/errors/index.d.ts.map +1 -0
  97. package/dist/errors/index.js +18 -0
  98. package/dist/errors/index.js.map +1 -0
  99. package/dist/generators/CnabGeneratorFactory.d.ts +4 -0
  100. package/dist/generators/CnabGeneratorFactory.d.ts.map +1 -0
  101. package/dist/generators/CnabGeneratorFactory.js +16 -0
  102. package/dist/generators/CnabGeneratorFactory.js.map +1 -0
  103. package/dist/generators/barcode/BarcodeGenerator.d.ts +16 -0
  104. package/dist/generators/barcode/BarcodeGenerator.d.ts.map +1 -0
  105. package/dist/generators/barcode/BarcodeGenerator.js +20 -0
  106. package/dist/generators/barcode/BarcodeGenerator.js.map +1 -0
  107. package/dist/generators/barcode/BarcodeRenderer.d.ts +10 -0
  108. package/dist/generators/barcode/BarcodeRenderer.d.ts.map +1 -0
  109. package/dist/generators/barcode/BarcodeRenderer.js +110 -0
  110. package/dist/generators/barcode/BarcodeRenderer.js.map +1 -0
  111. package/dist/generators/barcode/BarcodeUtils.d.ts +11 -0
  112. package/dist/generators/barcode/BarcodeUtils.d.ts.map +1 -0
  113. package/dist/generators/barcode/BarcodeUtils.js +81 -0
  114. package/dist/generators/barcode/BarcodeUtils.js.map +1 -0
  115. package/dist/generators/barcode/BarcodeValidator.d.ts +3 -0
  116. package/dist/generators/barcode/BarcodeValidator.d.ts.map +1 -0
  117. package/dist/generators/barcode/BarcodeValidator.js +41 -0
  118. package/dist/generators/barcode/BarcodeValidator.js.map +1 -0
  119. package/dist/generators/barcode/DigitableLineGenerator.d.ts +2 -0
  120. package/dist/generators/barcode/DigitableLineGenerator.d.ts.map +1 -0
  121. package/dist/generators/barcode/DigitableLineGenerator.js +26 -0
  122. package/dist/generators/barcode/DigitableLineGenerator.js.map +1 -0
  123. package/dist/generators/barcode/index.d.ts +6 -0
  124. package/dist/generators/barcode/index.d.ts.map +1 -0
  125. package/dist/generators/barcode/index.js +22 -0
  126. package/dist/generators/barcode/index.js.map +1 -0
  127. package/dist/generators/cnab240/BatchHeaderGenerator.d.ts +6 -0
  128. package/dist/generators/cnab240/BatchHeaderGenerator.d.ts.map +1 -0
  129. package/dist/generators/cnab240/BatchHeaderGenerator.js +77 -0
  130. package/dist/generators/cnab240/BatchHeaderGenerator.js.map +1 -0
  131. package/dist/generators/cnab240/BatchTrailerGenerator.d.ts +6 -0
  132. package/dist/generators/cnab240/BatchTrailerGenerator.d.ts.map +1 -0
  133. package/dist/generators/cnab240/BatchTrailerGenerator.js +46 -0
  134. package/dist/generators/cnab240/BatchTrailerGenerator.js.map +1 -0
  135. package/dist/generators/cnab240/Cnab240Generator.d.ts +14 -0
  136. package/dist/generators/cnab240/Cnab240Generator.d.ts.map +1 -0
  137. package/dist/generators/cnab240/Cnab240Generator.js +68 -0
  138. package/dist/generators/cnab240/Cnab240Generator.js.map +1 -0
  139. package/dist/generators/cnab240/FileHeaderGenerator.d.ts +6 -0
  140. package/dist/generators/cnab240/FileHeaderGenerator.d.ts.map +1 -0
  141. package/dist/generators/cnab240/FileHeaderGenerator.js +63 -0
  142. package/dist/generators/cnab240/FileHeaderGenerator.js.map +1 -0
  143. package/dist/generators/cnab240/FileTrailerGenerator.d.ts +6 -0
  144. package/dist/generators/cnab240/FileTrailerGenerator.d.ts.map +1 -0
  145. package/dist/generators/cnab240/FileTrailerGenerator.js +44 -0
  146. package/dist/generators/cnab240/FileTrailerGenerator.js.map +1 -0
  147. package/dist/generators/cnab240/GenerateCnab240.d.ts +3 -0
  148. package/dist/generators/cnab240/GenerateCnab240.d.ts.map +1 -0
  149. package/dist/generators/cnab240/GenerateCnab240.js +9 -0
  150. package/dist/generators/cnab240/GenerateCnab240.js.map +1 -0
  151. package/dist/generators/cnab240/LineGenerator.d.ts +6 -0
  152. package/dist/generators/cnab240/LineGenerator.d.ts.map +1 -0
  153. package/dist/generators/cnab240/LineGenerator.js +45 -0
  154. package/dist/generators/cnab240/LineGenerator.js.map +1 -0
  155. package/dist/generators/cnab240/SegmentPGenerator.d.ts +6 -0
  156. package/dist/generators/cnab240/SegmentPGenerator.d.ts.map +1 -0
  157. package/dist/generators/cnab240/SegmentPGenerator.js +76 -0
  158. package/dist/generators/cnab240/SegmentPGenerator.js.map +1 -0
  159. package/dist/generators/cnab240/SegmentQGenerator.d.ts +6 -0
  160. package/dist/generators/cnab240/SegmentQGenerator.d.ts.map +1 -0
  161. package/dist/generators/cnab240/SegmentQGenerator.js +82 -0
  162. package/dist/generators/cnab240/SegmentQGenerator.js.map +1 -0
  163. package/dist/generators/cnab240/SegmentRGenerator.d.ts +6 -0
  164. package/dist/generators/cnab240/SegmentRGenerator.d.ts.map +1 -0
  165. package/dist/generators/cnab240/SegmentRGenerator.js +86 -0
  166. package/dist/generators/cnab240/SegmentRGenerator.js.map +1 -0
  167. package/dist/generators/cnab240/index.d.ts +11 -0
  168. package/dist/generators/cnab240/index.d.ts.map +1 -0
  169. package/dist/generators/cnab240/index.js +27 -0
  170. package/dist/generators/cnab240/index.js.map +1 -0
  171. package/dist/generators/cnab400/Cnab400Generator.d.ts +3 -0
  172. package/dist/generators/cnab400/Cnab400Generator.d.ts.map +1 -0
  173. package/dist/generators/cnab400/Cnab400Generator.js +44 -0
  174. package/dist/generators/cnab400/Cnab400Generator.js.map +1 -0
  175. package/dist/generators/cnab400/DetailRecordGenerator.d.ts +4 -0
  176. package/dist/generators/cnab400/DetailRecordGenerator.d.ts.map +1 -0
  177. package/dist/generators/cnab400/DetailRecordGenerator.js +132 -0
  178. package/dist/generators/cnab400/DetailRecordGenerator.js.map +1 -0
  179. package/dist/generators/cnab400/FileHeaderGenerator.d.ts +3 -0
  180. package/dist/generators/cnab400/FileHeaderGenerator.d.ts.map +1 -0
  181. package/dist/generators/cnab400/FileHeaderGenerator.js +39 -0
  182. package/dist/generators/cnab400/FileHeaderGenerator.js.map +1 -0
  183. package/dist/generators/cnab400/FileTrailerGenerator.d.ts +3 -0
  184. package/dist/generators/cnab400/FileTrailerGenerator.d.ts.map +1 -0
  185. package/dist/generators/cnab400/FileTrailerGenerator.js +22 -0
  186. package/dist/generators/cnab400/FileTrailerGenerator.js.map +1 -0
  187. package/dist/generators/cnab400/PenaltyRecordGenerator.d.ts +3 -0
  188. package/dist/generators/cnab400/PenaltyRecordGenerator.d.ts.map +1 -0
  189. package/dist/generators/cnab400/PenaltyRecordGenerator.js +30 -0
  190. package/dist/generators/cnab400/PenaltyRecordGenerator.js.map +1 -0
  191. package/dist/generators/cnab400/index.d.ts +6 -0
  192. package/dist/generators/cnab400/index.d.ts.map +1 -0
  193. package/dist/generators/cnab400/index.js +15 -0
  194. package/dist/generators/cnab400/index.js.map +1 -0
  195. package/dist/generators/index.d.ts +7 -0
  196. package/dist/generators/index.d.ts.map +1 -0
  197. package/dist/generators/index.js +23 -0
  198. package/dist/generators/index.js.map +1 -0
  199. package/dist/generators/pdf/BoletoPdfGenerator.d.ts +9 -0
  200. package/dist/generators/pdf/BoletoPdfGenerator.d.ts.map +1 -0
  201. package/dist/generators/pdf/BoletoPdfGenerator.js +20 -0
  202. package/dist/generators/pdf/BoletoPdfGenerator.js.map +1 -0
  203. package/dist/generators/pdf/DirectPdfGenerator.d.ts +9 -0
  204. package/dist/generators/pdf/DirectPdfGenerator.d.ts.map +1 -0
  205. package/dist/generators/pdf/DirectPdfGenerator.js +152 -0
  206. package/dist/generators/pdf/DirectPdfGenerator.js.map +1 -0
  207. package/dist/generators/pdf/PdfRenderer.d.ts +27 -0
  208. package/dist/generators/pdf/PdfRenderer.d.ts.map +1 -0
  209. package/dist/generators/pdf/PdfRenderer.js +99 -0
  210. package/dist/generators/pdf/PdfRenderer.js.map +1 -0
  211. package/dist/generators/pdf/PdfTemplate.d.ts +59 -0
  212. package/dist/generators/pdf/PdfTemplate.d.ts.map +1 -0
  213. package/dist/generators/pdf/PdfTemplate.js +111 -0
  214. package/dist/generators/pdf/PdfTemplate.js.map +1 -0
  215. package/dist/generators/pdf/index.d.ts +5 -0
  216. package/dist/generators/pdf/index.d.ts.map +1 -0
  217. package/dist/generators/pdf/index.js +21 -0
  218. package/dist/generators/pdf/index.js.map +1 -0
  219. package/dist/generators/qrcode/PixPayloadGenerator.d.ts +10 -0
  220. package/dist/generators/qrcode/PixPayloadGenerator.d.ts.map +1 -0
  221. package/dist/generators/qrcode/PixPayloadGenerator.js +97 -0
  222. package/dist/generators/qrcode/PixPayloadGenerator.js.map +1 -0
  223. package/dist/generators/qrcode/PixPayloadValidator.d.ts +2 -0
  224. package/dist/generators/qrcode/PixPayloadValidator.d.ts.map +1 -0
  225. package/dist/generators/qrcode/PixPayloadValidator.js +76 -0
  226. package/dist/generators/qrcode/PixPayloadValidator.js.map +1 -0
  227. package/dist/generators/qrcode/QRCodeGenerator.d.ts +10 -0
  228. package/dist/generators/qrcode/QRCodeGenerator.d.ts.map +1 -0
  229. package/dist/generators/qrcode/QRCodeGenerator.js +14 -0
  230. package/dist/generators/qrcode/QRCodeGenerator.js.map +1 -0
  231. package/dist/generators/qrcode/QRCodeRenderer.d.ts +8 -0
  232. package/dist/generators/qrcode/QRCodeRenderer.d.ts.map +1 -0
  233. package/dist/generators/qrcode/QRCodeRenderer.js +25 -0
  234. package/dist/generators/qrcode/QRCodeRenderer.js.map +1 -0
  235. package/dist/generators/qrcode/index.d.ts +5 -0
  236. package/dist/generators/qrcode/index.d.ts.map +1 -0
  237. package/dist/generators/qrcode/index.js +21 -0
  238. package/dist/generators/qrcode/index.js.map +1 -0
  239. package/dist/index.d.ts +10 -0
  240. package/dist/index.d.ts.map +1 -0
  241. package/dist/index.js +25 -0
  242. package/dist/index.js.map +1 -0
  243. package/dist/parsers/CnabParserFactory.d.ts +4 -0
  244. package/dist/parsers/CnabParserFactory.d.ts.map +1 -0
  245. package/dist/parsers/CnabParserFactory.js +25 -0
  246. package/dist/parsers/CnabParserFactory.js.map +1 -0
  247. package/dist/parsers/cnab240/Cnab240Parser.d.ts +3 -0
  248. package/dist/parsers/cnab240/Cnab240Parser.d.ts.map +1 -0
  249. package/dist/parsers/cnab240/Cnab240Parser.js +143 -0
  250. package/dist/parsers/cnab240/Cnab240Parser.js.map +1 -0
  251. package/dist/parsers/cnab240/FileHeaderParser.d.ts +3 -0
  252. package/dist/parsers/cnab240/FileHeaderParser.d.ts.map +1 -0
  253. package/dist/parsers/cnab240/FileHeaderParser.js +34 -0
  254. package/dist/parsers/cnab240/FileHeaderParser.js.map +1 -0
  255. package/dist/parsers/cnab240/LineParser.d.ts +7 -0
  256. package/dist/parsers/cnab240/LineParser.d.ts.map +1 -0
  257. package/dist/parsers/cnab240/LineParser.js +51 -0
  258. package/dist/parsers/cnab240/LineParser.js.map +1 -0
  259. package/dist/parsers/cnab240/SegmentPParser.d.ts +3 -0
  260. package/dist/parsers/cnab240/SegmentPParser.d.ts.map +1 -0
  261. package/dist/parsers/cnab240/SegmentPParser.js +63 -0
  262. package/dist/parsers/cnab240/SegmentPParser.js.map +1 -0
  263. package/dist/parsers/cnab240/SegmentQParser.d.ts +3 -0
  264. package/dist/parsers/cnab240/SegmentQParser.d.ts.map +1 -0
  265. package/dist/parsers/cnab240/SegmentQParser.js +34 -0
  266. package/dist/parsers/cnab240/SegmentQParser.js.map +1 -0
  267. package/dist/parsers/cnab240/index.d.ts +6 -0
  268. package/dist/parsers/cnab240/index.d.ts.map +1 -0
  269. package/dist/parsers/cnab240/index.js +22 -0
  270. package/dist/parsers/cnab240/index.js.map +1 -0
  271. package/dist/parsers/cnab400/Cnab400Parser.d.ts +3 -0
  272. package/dist/parsers/cnab400/Cnab400Parser.d.ts.map +1 -0
  273. package/dist/parsers/cnab400/Cnab400Parser.js +91 -0
  274. package/dist/parsers/cnab400/Cnab400Parser.js.map +1 -0
  275. package/dist/parsers/cnab400/DetailRecordParser.d.ts +3 -0
  276. package/dist/parsers/cnab400/DetailRecordParser.d.ts.map +1 -0
  277. package/dist/parsers/cnab400/DetailRecordParser.js +65 -0
  278. package/dist/parsers/cnab400/DetailRecordParser.js.map +1 -0
  279. package/dist/parsers/cnab400/FileHeaderParser.d.ts +3 -0
  280. package/dist/parsers/cnab400/FileHeaderParser.d.ts.map +1 -0
  281. package/dist/parsers/cnab400/FileHeaderParser.js +38 -0
  282. package/dist/parsers/cnab400/FileHeaderParser.js.map +1 -0
  283. package/dist/parsers/cnab400/FileTrailerParser.d.ts +3 -0
  284. package/dist/parsers/cnab400/FileTrailerParser.d.ts.map +1 -0
  285. package/dist/parsers/cnab400/FileTrailerParser.js +24 -0
  286. package/dist/parsers/cnab400/FileTrailerParser.js.map +1 -0
  287. package/dist/parsers/cnab400/GuarantorRecordParser.d.ts +3 -0
  288. package/dist/parsers/cnab400/GuarantorRecordParser.d.ts.map +1 -0
  289. package/dist/parsers/cnab400/GuarantorRecordParser.js +27 -0
  290. package/dist/parsers/cnab400/GuarantorRecordParser.js.map +1 -0
  291. package/dist/parsers/cnab400/MessageRecordParser.d.ts +4 -0
  292. package/dist/parsers/cnab400/MessageRecordParser.d.ts.map +1 -0
  293. package/dist/parsers/cnab400/MessageRecordParser.js +40 -0
  294. package/dist/parsers/cnab400/MessageRecordParser.js.map +1 -0
  295. package/dist/parsers/cnab400/PenaltyRecordParser.d.ts +3 -0
  296. package/dist/parsers/cnab400/PenaltyRecordParser.d.ts.map +1 -0
  297. package/dist/parsers/cnab400/PenaltyRecordParser.js +32 -0
  298. package/dist/parsers/cnab400/PenaltyRecordParser.js.map +1 -0
  299. package/dist/parsers/cnab400/ReturnDetailRecordParser.d.ts +3 -0
  300. package/dist/parsers/cnab400/ReturnDetailRecordParser.d.ts.map +1 -0
  301. package/dist/parsers/cnab400/ReturnDetailRecordParser.js +66 -0
  302. package/dist/parsers/cnab400/ReturnDetailRecordParser.js.map +1 -0
  303. package/dist/parsers/cnab400/index.d.ts +9 -0
  304. package/dist/parsers/cnab400/index.d.ts.map +1 -0
  305. package/dist/parsers/cnab400/index.js +21 -0
  306. package/dist/parsers/cnab400/index.js.map +1 -0
  307. package/dist/parsers/index.d.ts +4 -0
  308. package/dist/parsers/index.d.ts.map +1 -0
  309. package/dist/parsers/index.js +30 -0
  310. package/dist/parsers/index.js.map +1 -0
  311. package/dist/schemas/cnab240/BatchHeaderSchema.d.ts +35 -0
  312. package/dist/schemas/cnab240/BatchHeaderSchema.d.ts.map +1 -0
  313. package/dist/schemas/cnab240/BatchHeaderSchema.js +30 -0
  314. package/dist/schemas/cnab240/BatchHeaderSchema.js.map +1 -0
  315. package/dist/schemas/cnab240/BatchSchema.d.ts +160 -0
  316. package/dist/schemas/cnab240/BatchSchema.d.ts.map +1 -0
  317. package/dist/schemas/cnab240/BatchSchema.js +13 -0
  318. package/dist/schemas/cnab240/BatchSchema.js.map +1 -0
  319. package/dist/schemas/cnab240/BatchTrailerSchema.d.ts +17 -0
  320. package/dist/schemas/cnab240/BatchTrailerSchema.d.ts.map +1 -0
  321. package/dist/schemas/cnab240/BatchTrailerSchema.js +21 -0
  322. package/dist/schemas/cnab240/BatchTrailerSchema.js.map +1 -0
  323. package/dist/schemas/cnab240/Cnab240FileSchema.d.ts +206 -0
  324. package/dist/schemas/cnab240/Cnab240FileSchema.d.ts.map +1 -0
  325. package/dist/schemas/cnab240/Cnab240FileSchema.js +13 -0
  326. package/dist/schemas/cnab240/Cnab240FileSchema.js.map +1 -0
  327. package/dist/schemas/cnab240/DetailRecordSchema.d.ts +110 -0
  328. package/dist/schemas/cnab240/DetailRecordSchema.d.ts.map +1 -0
  329. package/dist/schemas/cnab240/DetailRecordSchema.js +13 -0
  330. package/dist/schemas/cnab240/DetailRecordSchema.js.map +1 -0
  331. package/dist/schemas/cnab240/FileHeaderSchema.d.ts +36 -0
  332. package/dist/schemas/cnab240/FileHeaderSchema.d.ts.map +1 -0
  333. package/dist/schemas/cnab240/FileHeaderSchema.js +39 -0
  334. package/dist/schemas/cnab240/FileHeaderSchema.js.map +1 -0
  335. package/dist/schemas/cnab240/FileTrailerSchema.d.ts +12 -0
  336. package/dist/schemas/cnab240/FileTrailerSchema.d.ts.map +1 -0
  337. package/dist/schemas/cnab240/FileTrailerSchema.js +16 -0
  338. package/dist/schemas/cnab240/FileTrailerSchema.js.map +1 -0
  339. package/dist/schemas/cnab240/SegmentPSchema.d.ts +49 -0
  340. package/dist/schemas/cnab240/SegmentPSchema.d.ts.map +1 -0
  341. package/dist/schemas/cnab240/SegmentPSchema.js +53 -0
  342. package/dist/schemas/cnab240/SegmentPSchema.js.map +1 -0
  343. package/dist/schemas/cnab240/SegmentQSchema.d.ts +30 -0
  344. package/dist/schemas/cnab240/SegmentQSchema.d.ts.map +1 -0
  345. package/dist/schemas/cnab240/SegmentQSchema.js +29 -0
  346. package/dist/schemas/cnab240/SegmentQSchema.js.map +1 -0
  347. package/dist/schemas/cnab240/SegmentRSchema.d.ts +33 -0
  348. package/dist/schemas/cnab240/SegmentRSchema.d.ts.map +1 -0
  349. package/dist/schemas/cnab240/SegmentRSchema.js +37 -0
  350. package/dist/schemas/cnab240/SegmentRSchema.js.map +1 -0
  351. package/dist/schemas/cnab240/index.d.ts +12 -0
  352. package/dist/schemas/cnab240/index.d.ts.map +1 -0
  353. package/dist/schemas/cnab240/index.js +28 -0
  354. package/dist/schemas/cnab240/index.js.map +1 -0
  355. package/dist/schemas/cnab240/shared.d.ts +30 -0
  356. package/dist/schemas/cnab240/shared.d.ts.map +1 -0
  357. package/dist/schemas/cnab240/shared.js +29 -0
  358. package/dist/schemas/cnab240/shared.js.map +1 -0
  359. package/dist/schemas/cnab400/Cnab400FileSchema.d.ts +143 -0
  360. package/dist/schemas/cnab400/Cnab400FileSchema.d.ts.map +1 -0
  361. package/dist/schemas/cnab400/Cnab400FileSchema.js +21 -0
  362. package/dist/schemas/cnab400/Cnab400FileSchema.js.map +1 -0
  363. package/dist/schemas/cnab400/Cnab400ReturnFileSchema.d.ts +150 -0
  364. package/dist/schemas/cnab400/Cnab400ReturnFileSchema.d.ts.map +1 -0
  365. package/dist/schemas/cnab400/Cnab400ReturnFileSchema.js +10 -0
  366. package/dist/schemas/cnab400/Cnab400ReturnFileSchema.js.map +1 -0
  367. package/dist/schemas/cnab400/DetailRecordSchema.d.ts +58 -0
  368. package/dist/schemas/cnab400/DetailRecordSchema.d.ts.map +1 -0
  369. package/dist/schemas/cnab400/DetailRecordSchema.js +58 -0
  370. package/dist/schemas/cnab400/DetailRecordSchema.js.map +1 -0
  371. package/dist/schemas/cnab400/FileHeaderSchema.d.ts +27 -0
  372. package/dist/schemas/cnab400/FileHeaderSchema.d.ts.map +1 -0
  373. package/dist/schemas/cnab400/FileHeaderSchema.js +28 -0
  374. package/dist/schemas/cnab400/FileHeaderSchema.js.map +1 -0
  375. package/dist/schemas/cnab400/FileTrailerSchema.d.ts +10 -0
  376. package/dist/schemas/cnab400/FileTrailerSchema.d.ts.map +1 -0
  377. package/dist/schemas/cnab400/FileTrailerSchema.js +14 -0
  378. package/dist/schemas/cnab400/FileTrailerSchema.js.map +1 -0
  379. package/dist/schemas/cnab400/GuarantorRecordSchema.d.ts +25 -0
  380. package/dist/schemas/cnab400/GuarantorRecordSchema.d.ts.map +1 -0
  381. package/dist/schemas/cnab400/GuarantorRecordSchema.js +26 -0
  382. package/dist/schemas/cnab400/GuarantorRecordSchema.js.map +1 -0
  383. package/dist/schemas/cnab400/MessageBackRecordSchema.d.ts +10 -0
  384. package/dist/schemas/cnab400/MessageBackRecordSchema.d.ts.map +1 -0
  385. package/dist/schemas/cnab400/MessageBackRecordSchema.js +14 -0
  386. package/dist/schemas/cnab400/MessageBackRecordSchema.js.map +1 -0
  387. package/dist/schemas/cnab400/MessageFrontRecordSchema.d.ts +10 -0
  388. package/dist/schemas/cnab400/MessageFrontRecordSchema.d.ts.map +1 -0
  389. package/dist/schemas/cnab400/MessageFrontRecordSchema.js +14 -0
  390. package/dist/schemas/cnab400/MessageFrontRecordSchema.js.map +1 -0
  391. package/dist/schemas/cnab400/PenaltyRecordSchema.d.ts +13 -0
  392. package/dist/schemas/cnab400/PenaltyRecordSchema.d.ts.map +1 -0
  393. package/dist/schemas/cnab400/PenaltyRecordSchema.js +13 -0
  394. package/dist/schemas/cnab400/PenaltyRecordSchema.js.map +1 -0
  395. package/dist/schemas/cnab400/ReturnDetailRecordSchema.d.ts +65 -0
  396. package/dist/schemas/cnab400/ReturnDetailRecordSchema.d.ts.map +1 -0
  397. package/dist/schemas/cnab400/ReturnDetailRecordSchema.js +15 -0
  398. package/dist/schemas/cnab400/ReturnDetailRecordSchema.js.map +1 -0
  399. package/dist/schemas/cnab400/index.d.ts +12 -0
  400. package/dist/schemas/cnab400/index.d.ts.map +1 -0
  401. package/dist/schemas/cnab400/index.js +28 -0
  402. package/dist/schemas/cnab400/index.js.map +1 -0
  403. package/dist/schemas/cnab400/shared.d.ts +24 -0
  404. package/dist/schemas/cnab400/shared.d.ts.map +1 -0
  405. package/dist/schemas/cnab400/shared.js +25 -0
  406. package/dist/schemas/cnab400/shared.js.map +1 -0
  407. package/dist/schemas/common/CommonSchemas.d.ts +197 -0
  408. package/dist/schemas/common/CommonSchemas.d.ts.map +1 -0
  409. package/dist/schemas/common/CommonSchemas.js +114 -0
  410. package/dist/schemas/common/CommonSchemas.js.map +1 -0
  411. package/dist/schemas/common/index.d.ts +2 -0
  412. package/dist/schemas/common/index.d.ts.map +1 -0
  413. package/dist/schemas/common/index.js +18 -0
  414. package/dist/schemas/common/index.js.map +1 -0
  415. package/dist/schemas/index.d.ts +4 -0
  416. package/dist/schemas/index.d.ts.map +1 -0
  417. package/dist/schemas/index.js +43 -0
  418. package/dist/schemas/index.js.map +1 -0
  419. package/dist/templates/BBTemplate.d.ts +5 -0
  420. package/dist/templates/BBTemplate.d.ts.map +1 -0
  421. package/dist/templates/BBTemplate.js +15 -0
  422. package/dist/templates/BBTemplate.js.map +1 -0
  423. package/dist/templates/BoletoTemplate.d.ts +35 -0
  424. package/dist/templates/BoletoTemplate.d.ts.map +1 -0
  425. package/dist/templates/BoletoTemplate.js +3 -0
  426. package/dist/templates/BoletoTemplate.js.map +1 -0
  427. package/dist/templates/BradescoTemplate.d.ts +5 -0
  428. package/dist/templates/BradescoTemplate.d.ts.map +1 -0
  429. package/dist/templates/BradescoTemplate.js +15 -0
  430. package/dist/templates/BradescoTemplate.js.map +1 -0
  431. package/dist/templates/GenericTemplate.d.ts +5 -0
  432. package/dist/templates/GenericTemplate.d.ts.map +1 -0
  433. package/dist/templates/GenericTemplate.js +17 -0
  434. package/dist/templates/GenericTemplate.js.map +1 -0
  435. package/dist/templates/HtmlTemplateBuilder.d.ts +16 -0
  436. package/dist/templates/HtmlTemplateBuilder.d.ts.map +1 -0
  437. package/dist/templates/HtmlTemplateBuilder.js +360 -0
  438. package/dist/templates/HtmlTemplateBuilder.js.map +1 -0
  439. package/dist/templates/ItauTemplate.d.ts +5 -0
  440. package/dist/templates/ItauTemplate.d.ts.map +1 -0
  441. package/dist/templates/ItauTemplate.js +15 -0
  442. package/dist/templates/ItauTemplate.js.map +1 -0
  443. package/dist/templates/TemplateRenderer.d.ts +7 -0
  444. package/dist/templates/TemplateRenderer.d.ts.map +1 -0
  445. package/dist/templates/TemplateRenderer.js +14 -0
  446. package/dist/templates/TemplateRenderer.js.map +1 -0
  447. package/dist/templates/index.d.ts +8 -0
  448. package/dist/templates/index.d.ts.map +1 -0
  449. package/dist/templates/index.js +24 -0
  450. package/dist/templates/index.js.map +1 -0
  451. package/dist/types/cnab240/Batch.d.ts +16 -0
  452. package/dist/types/cnab240/Batch.d.ts.map +1 -0
  453. package/dist/types/cnab240/Batch.js +3 -0
  454. package/dist/types/cnab240/Batch.js.map +1 -0
  455. package/dist/types/cnab240/BatchHeader.d.ts +25 -0
  456. package/dist/types/cnab240/BatchHeader.d.ts.map +1 -0
  457. package/dist/types/cnab240/BatchHeader.js +3 -0
  458. package/dist/types/cnab240/BatchHeader.js.map +1 -0
  459. package/dist/types/cnab240/BatchTrailer.d.ts +16 -0
  460. package/dist/types/cnab240/BatchTrailer.d.ts.map +1 -0
  461. package/dist/types/cnab240/BatchTrailer.js +3 -0
  462. package/dist/types/cnab240/BatchTrailer.js.map +1 -0
  463. package/dist/types/cnab240/Cnab240File.d.ts +9 -0
  464. package/dist/types/cnab240/Cnab240File.d.ts.map +1 -0
  465. package/dist/types/cnab240/Cnab240File.js +3 -0
  466. package/dist/types/cnab240/Cnab240File.js.map +1 -0
  467. package/dist/types/cnab240/FileHeader.d.ts +28 -0
  468. package/dist/types/cnab240/FileHeader.d.ts.map +1 -0
  469. package/dist/types/cnab240/FileHeader.js +3 -0
  470. package/dist/types/cnab240/FileHeader.js.map +1 -0
  471. package/dist/types/cnab240/FileTrailer.d.ts +11 -0
  472. package/dist/types/cnab240/FileTrailer.d.ts.map +1 -0
  473. package/dist/types/cnab240/FileTrailer.js +3 -0
  474. package/dist/types/cnab240/FileTrailer.js.map +1 -0
  475. package/dist/types/cnab240/SegmentP.d.ts +48 -0
  476. package/dist/types/cnab240/SegmentP.d.ts.map +1 -0
  477. package/dist/types/cnab240/SegmentP.js +3 -0
  478. package/dist/types/cnab240/SegmentP.js.map +1 -0
  479. package/dist/types/cnab240/SegmentQ.d.ts +24 -0
  480. package/dist/types/cnab240/SegmentQ.d.ts.map +1 -0
  481. package/dist/types/cnab240/SegmentQ.js +3 -0
  482. package/dist/types/cnab240/SegmentQ.js.map +1 -0
  483. package/dist/types/cnab240/SegmentR.d.ts +32 -0
  484. package/dist/types/cnab240/SegmentR.d.ts.map +1 -0
  485. package/dist/types/cnab240/SegmentR.js +3 -0
  486. package/dist/types/cnab240/SegmentR.js.map +1 -0
  487. package/dist/types/cnab240/index.d.ts +10 -0
  488. package/dist/types/cnab240/index.d.ts.map +1 -0
  489. package/dist/types/cnab240/index.js +26 -0
  490. package/dist/types/cnab240/index.js.map +1 -0
  491. package/dist/types/cnab400/Cnab400File.d.ts +17 -0
  492. package/dist/types/cnab400/Cnab400File.d.ts.map +1 -0
  493. package/dist/types/cnab400/Cnab400File.js +3 -0
  494. package/dist/types/cnab400/Cnab400File.js.map +1 -0
  495. package/dist/types/cnab400/Cnab400ReturnFile.d.ts +6 -0
  496. package/dist/types/cnab400/Cnab400ReturnFile.d.ts.map +1 -0
  497. package/dist/types/cnab400/Cnab400ReturnFile.js +3 -0
  498. package/dist/types/cnab400/Cnab400ReturnFile.js.map +1 -0
  499. package/dist/types/cnab400/DetailRecord.d.ts +47 -0
  500. package/dist/types/cnab400/DetailRecord.d.ts.map +1 -0
  501. package/dist/types/cnab400/DetailRecord.js +3 -0
  502. package/dist/types/cnab400/DetailRecord.js.map +1 -0
  503. package/dist/types/cnab400/FileHeader.d.ts +23 -0
  504. package/dist/types/cnab400/FileHeader.d.ts.map +1 -0
  505. package/dist/types/cnab400/FileHeader.js +3 -0
  506. package/dist/types/cnab400/FileHeader.js.map +1 -0
  507. package/dist/types/cnab400/FileTrailer.d.ts +9 -0
  508. package/dist/types/cnab400/FileTrailer.d.ts.map +1 -0
  509. package/dist/types/cnab400/FileTrailer.js +3 -0
  510. package/dist/types/cnab400/FileTrailer.js.map +1 -0
  511. package/dist/types/cnab400/GuarantorRecord.d.ts +18 -0
  512. package/dist/types/cnab400/GuarantorRecord.d.ts.map +1 -0
  513. package/dist/types/cnab400/GuarantorRecord.js +3 -0
  514. package/dist/types/cnab400/GuarantorRecord.js.map +1 -0
  515. package/dist/types/cnab400/MessageBackRecord.d.ts +9 -0
  516. package/dist/types/cnab400/MessageBackRecord.d.ts.map +1 -0
  517. package/dist/types/cnab400/MessageBackRecord.js +3 -0
  518. package/dist/types/cnab400/MessageBackRecord.js.map +1 -0
  519. package/dist/types/cnab400/MessageFrontRecord.d.ts +9 -0
  520. package/dist/types/cnab400/MessageFrontRecord.d.ts.map +1 -0
  521. package/dist/types/cnab400/MessageFrontRecord.js +3 -0
  522. package/dist/types/cnab400/MessageFrontRecord.js.map +1 -0
  523. package/dist/types/cnab400/PenaltyRecord.d.ts +8 -0
  524. package/dist/types/cnab400/PenaltyRecord.d.ts.map +1 -0
  525. package/dist/types/cnab400/PenaltyRecord.js +3 -0
  526. package/dist/types/cnab400/PenaltyRecord.js.map +1 -0
  527. package/dist/types/cnab400/ReturnDetailRecord.d.ts +11 -0
  528. package/dist/types/cnab400/ReturnDetailRecord.d.ts.map +1 -0
  529. package/dist/types/cnab400/ReturnDetailRecord.js +3 -0
  530. package/dist/types/cnab400/ReturnDetailRecord.js.map +1 -0
  531. package/dist/types/cnab400/index.d.ts +11 -0
  532. package/dist/types/cnab400/index.d.ts.map +1 -0
  533. package/dist/types/cnab400/index.js +3 -0
  534. package/dist/types/cnab400/index.js.map +1 -0
  535. package/dist/types/common/CommonTypes.d.ts +53 -0
  536. package/dist/types/common/CommonTypes.d.ts.map +1 -0
  537. package/dist/types/common/CommonTypes.js +3 -0
  538. package/dist/types/common/CommonTypes.js.map +1 -0
  539. package/dist/types/common/index.d.ts +2 -0
  540. package/dist/types/common/index.d.ts.map +1 -0
  541. package/dist/types/common/index.js +18 -0
  542. package/dist/types/common/index.js.map +1 -0
  543. package/dist/types/index.d.ts +5 -0
  544. package/dist/types/index.d.ts.map +1 -0
  545. package/dist/types/index.js +20 -0
  546. package/dist/types/index.js.map +1 -0
  547. package/dist/types/json/JsonTypes.d.ts +2 -0
  548. package/dist/types/json/JsonTypes.d.ts.map +1 -0
  549. package/dist/types/json/JsonTypes.js +5 -0
  550. package/dist/types/json/JsonTypes.js.map +1 -0
  551. package/dist/types/json/index.d.ts +2 -0
  552. package/dist/types/json/index.d.ts.map +1 -0
  553. package/dist/types/json/index.js +18 -0
  554. package/dist/types/json/index.js.map +1 -0
  555. package/dist/utils/email/AttachmentHelper.d.ts +8 -0
  556. package/dist/utils/email/AttachmentHelper.d.ts.map +1 -0
  557. package/dist/utils/email/AttachmentHelper.js +15 -0
  558. package/dist/utils/email/AttachmentHelper.js.map +1 -0
  559. package/dist/utils/email/EmailTemplateGenerator.d.ts +19 -0
  560. package/dist/utils/email/EmailTemplateGenerator.d.ts.map +1 -0
  561. package/dist/utils/email/EmailTemplateGenerator.js +78 -0
  562. package/dist/utils/email/EmailTemplateGenerator.js.map +1 -0
  563. package/dist/utils/email/EmailValidator.d.ts +3 -0
  564. package/dist/utils/email/EmailValidator.d.ts.map +1 -0
  565. package/dist/utils/email/EmailValidator.js +15 -0
  566. package/dist/utils/email/EmailValidator.js.map +1 -0
  567. package/dist/utils/email/index.d.ts +6 -0
  568. package/dist/utils/email/index.d.ts.map +1 -0
  569. package/dist/utils/email/index.js +12 -0
  570. package/dist/utils/email/index.js.map +1 -0
  571. package/dist/utils/formatters/Formatters.d.ts +10 -0
  572. package/dist/utils/formatters/Formatters.d.ts.map +1 -0
  573. package/dist/utils/formatters/Formatters.js +48 -0
  574. package/dist/utils/formatters/Formatters.js.map +1 -0
  575. package/dist/utils/formatters/index.d.ts +2 -0
  576. package/dist/utils/formatters/index.d.ts.map +1 -0
  577. package/dist/utils/formatters/index.js +18 -0
  578. package/dist/utils/formatters/index.js.map +1 -0
  579. package/dist/utils/generators/GeneratorUtils.d.ts +10 -0
  580. package/dist/utils/generators/GeneratorUtils.d.ts.map +1 -0
  581. package/dist/utils/generators/GeneratorUtils.js +57 -0
  582. package/dist/utils/generators/GeneratorUtils.js.map +1 -0
  583. package/dist/utils/generators/index.d.ts +2 -0
  584. package/dist/utils/generators/index.d.ts.map +1 -0
  585. package/dist/utils/generators/index.js +18 -0
  586. package/dist/utils/generators/index.js.map +1 -0
  587. package/dist/utils/index.d.ts +7 -0
  588. package/dist/utils/index.d.ts.map +1 -0
  589. package/dist/utils/index.js +23 -0
  590. package/dist/utils/index.js.map +1 -0
  591. package/dist/utils/parsers/ParserUtils.d.ts +6 -0
  592. package/dist/utils/parsers/ParserUtils.d.ts.map +1 -0
  593. package/dist/utils/parsers/ParserUtils.js +63 -0
  594. package/dist/utils/parsers/ParserUtils.js.map +1 -0
  595. package/dist/utils/parsers/index.d.ts +2 -0
  596. package/dist/utils/parsers/index.d.ts.map +1 -0
  597. package/dist/utils/parsers/index.js +18 -0
  598. package/dist/utils/parsers/index.js.map +1 -0
  599. package/dist/utils/validators/TaxIdValidator.d.ts +2 -0
  600. package/dist/utils/validators/TaxIdValidator.d.ts.map +1 -0
  601. package/dist/utils/validators/TaxIdValidator.js +58 -0
  602. package/dist/utils/validators/TaxIdValidator.js.map +1 -0
  603. package/dist/utils/validators/index.d.ts +2 -0
  604. package/dist/utils/validators/index.d.ts.map +1 -0
  605. package/dist/utils/validators/index.js +18 -0
  606. package/dist/utils/validators/index.js.map +1 -0
  607. package/dist/utils/webhooks/WebhookNotification.d.ts +25 -0
  608. package/dist/utils/webhooks/WebhookNotification.d.ts.map +1 -0
  609. package/dist/utils/webhooks/WebhookNotification.js +50 -0
  610. package/dist/utils/webhooks/WebhookNotification.js.map +1 -0
  611. package/dist/utils/webhooks/WebhookValidator.d.ts +3 -0
  612. package/dist/utils/webhooks/WebhookValidator.d.ts.map +1 -0
  613. package/dist/utils/webhooks/WebhookValidator.js +24 -0
  614. package/dist/utils/webhooks/WebhookValidator.js.map +1 -0
  615. package/dist/utils/webhooks/index.d.ts +4 -0
  616. package/dist/utils/webhooks/index.d.ts.map +1 -0
  617. package/dist/utils/webhooks/index.js +10 -0
  618. package/dist/utils/webhooks/index.js.map +1 -0
  619. package/dist/validators/cnab240/Cnab240Validator.d.ts +5 -0
  620. package/dist/validators/cnab240/Cnab240Validator.d.ts.map +1 -0
  621. package/dist/validators/cnab240/Cnab240Validator.js +148 -0
  622. package/dist/validators/cnab240/Cnab240Validator.js.map +1 -0
  623. package/dist/validators/cnab240/index.d.ts +2 -0
  624. package/dist/validators/cnab240/index.d.ts.map +1 -0
  625. package/dist/validators/cnab240/index.js +18 -0
  626. package/dist/validators/cnab240/index.js.map +1 -0
  627. package/dist/validators/cnab400/Cnab400Validator.d.ts +5 -0
  628. package/dist/validators/cnab400/Cnab400Validator.d.ts.map +1 -0
  629. package/dist/validators/cnab400/Cnab400Validator.js +48 -0
  630. package/dist/validators/cnab400/Cnab400Validator.js.map +1 -0
  631. package/dist/validators/cnab400/index.d.ts +2 -0
  632. package/dist/validators/cnab400/index.d.ts.map +1 -0
  633. package/dist/validators/cnab400/index.js +18 -0
  634. package/dist/validators/cnab400/index.js.map +1 -0
  635. package/dist/validators/common/CommonValidators.d.ts +7 -0
  636. package/dist/validators/common/CommonValidators.d.ts.map +1 -0
  637. package/dist/validators/common/CommonValidators.js +26 -0
  638. package/dist/validators/common/CommonValidators.js.map +1 -0
  639. package/dist/validators/common/ValidationResult.d.ts +5 -0
  640. package/dist/validators/common/ValidationResult.d.ts.map +1 -0
  641. package/dist/validators/common/ValidationResult.js +3 -0
  642. package/dist/validators/common/ValidationResult.js.map +1 -0
  643. package/dist/validators/common/index.d.ts +3 -0
  644. package/dist/validators/common/index.d.ts.map +1 -0
  645. package/dist/validators/common/index.js +19 -0
  646. package/dist/validators/common/index.js.map +1 -0
  647. package/dist/validators/index.d.ts +7 -0
  648. package/dist/validators/index.d.ts.map +1 -0
  649. package/dist/validators/index.js +48 -0
  650. package/dist/validators/index.js.map +1 -0
  651. 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
+ [![npm version](https://badge.fury.io/js/@linkiez%2Fboleto-sdk.svg)](https://www.npmjs.com/package/@linkiez/boleto-sdk)
6
+ [![CI](https://github.com/linkiez/BoletoSDK/workflows/CI/badge.svg)](https://github.com/linkiez/BoletoSDK/actions)
7
+ [![Coverage](https://img.shields.io/codecov/c/github/linkiez/BoletoSDK)](https://codecov.io/gh/linkiez/BoletoSDK)
8
+ [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
9
+ [![TypeScript](https://img.shields.io/badge/TypeScript-5.3-blue.svg)](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,2 @@
1
+ export * from './BankRegistry';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -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"}