Comparing version 1.0.3 to 1.0.4
let _ = require('lodash') | ||
, utils = require('./utils') | ||
, nACHError = require('./error') | ||
, ACHAddendaTypeCodes = ['02','05','98','99'] | ||
, ACHTransactionCodes = ['22','23','24','27','28','29','32','33','34','37','38','39'] | ||
, ACHAddendaTypeCodes = ['02','05','98','99','10','11','12','13','14','15','16','17','18'] | ||
, ACHTransactionCodes = ['21', '22', '23', '24', '26', '27', '28', '29', '31', '32', '33', '34', '36', '37', '38', '39', '41', '42', '43', '44', '46', '47', '48', '49', '51', '52', '53', '54', '55', '56'] //['22','23','24','27','28','29','32','33','34','37','38','39'] | ||
, ACHServiceClassCodes = ['200','220','225'] | ||
@@ -7,0 +7,0 @@ , numericRegex = /^[0-9]+$/ |
{ | ||
"name": "sp-nacha", | ||
"description": "NACHA file format is a set of instructions that, when uploaded into a bank portal, successfully initiates a batch of ACH payments. NACHA file format is the protocol for structuring those instructions in a way that successfully initiates the payments. NACHA is a highly customizable Node.js module exposing a high & low-level API for generating ACH files for use within the ACH network.", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"keywords": [ | ||
@@ -6,0 +6,0 @@ "Seerportal Nacha", |
@@ -147,4 +147,4 @@ let chai = require('chai') | ||
it('must be valid ACH codes', function(){ | ||
let validTransactionCodes = ['22','23','24','27','28','29','32','33','34','37','38','39'] | ||
, invalidTransactionCodes = ['21','25','26','15','82','30','31','35','36','73','18','40']; | ||
let validTransactionCodes = ['21', '22', '23', '24', '26', '27', '28', '29', '31', '32', '33', '34', '36', '37', '38', '39', '41', '42', '43', '44', '46', '47', '48', '49', '51', '52', '53', '54', '55', '56'] | ||
, invalidTransactionCodes = ['25','15','82','30','35','73','18','40']; | ||
@@ -151,0 +151,0 @@ // The function should not throw an error since all codes in the `validTransactionCodes` array are valid ACH transaction codes. |
74967
27