@cityssm/eft-generator
TypeScript icon, indicating that this package has built-in type declarations

0.0.5 • Public • Published

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, CPA_CODES } 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: CPA_CODES.PropertyTaxes,
  amount: 1234.56,
  payeeName: 'Test Property Owner'
})

const output = eftGenerator.toCPA005()

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

Resources

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.5
    17
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.5
    17
  • 0.0.4
    0
  • 0.0.3
    0
  • 0.0.2
    0
  • 0.0.1
    0

Package Sidebar

Install

npm i @cityssm/eft-generator

Weekly Downloads

17

Version

0.0.5

License

MIT

Unpacked Size

37.1 kB

Total Files

15

Last publish

Collaborators

  • dgowans