0.1.0 • Published 9 months ago

@cityssm/eft-generator v0.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

EFT Generator for Node

Maintainability DeepSource codecov

Formats Electronic Funds Transfer (EFT) data into the CPA 005 standard.

Supports credit (C) and debit (D) record types. Other logical record types are not supported.

Installation

npm install @cityssm/eft-generator

Usage

import fs from 'node:fs'
import { EFTGenerator } from '@cityssm/eft-generator'

const eftGenerator = new EFTGenerator({
  originatorId: '0123456789',
  originatorShortName: 'SSM',
  originatorLongName: 'The City of Sault Ste. Marie',
  fileCreationNumber: '0001'
})

eftGenerator.addDebitTransaction({
  bankInstitutionNumber: '111',
  bankTransitNumber: '22222',
  bankAccountNumber: '333333333',
  cpaCode: 385, // Property Taxes
  amount: 1234.56,
  payeeName: 'Test Property Owner'
})

const output = eftGenerator.toCPA005()

fs.writeFileSync('cpa005.txt', output)

Resources

Related Projects

CPA Codes for Node Lookups, validations, and utility functions for Canadian Payments Association (CPA) Standard 007 transaction and return codes.

0.1.0

9 months ago

0.0.5

1 year ago

0.0.6

12 months ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago