Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cityssm/node-eft-generator
Formats Electronic Funds Transfer (EFT) data into the CPA 005 standard.
https://github.com/cityssm/node-eft-generator
banking canadian-payments-association cpa cpa005 eft
Last synced: about 1 month ago
JSON representation
Formats Electronic Funds Transfer (EFT) data into the CPA 005 standard.
- Host: GitHub
- URL: https://github.com/cityssm/node-eft-generator
- Owner: cityssm
- License: mit
- Created: 2023-09-22T13:30:47.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-11T22:17:56.000Z (2 months ago)
- Last Synced: 2024-11-14T02:18:42.788Z (2 months ago)
- Topics: banking, canadian-payments-association, cpa, cpa005, eft
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/@cityssm/eft-generator
- Size: 357 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
- Code of conduct: CODE_OF_CONDUCT.md
- Security: SECURITY.md
Awesome Lists containing this project
README
# EFT Generator for Node
[![Maintainability](https://api.codeclimate.com/v1/badges/b0fcaa947fb6dee89832/maintainability)](https://codeclimate.com/github/cityssm/node-eft-generator/maintainability)
[![DeepSource](https://app.deepsource.com/gh/cityssm/node-eft-generator.svg/?label=active+issues&show_trend=true&token=cznyFIk-aMahhJdonnA8yjqZ)](https://app.deepsource.com/gh/cityssm/node-eft-generator/?ref=repository-badge)
[![codecov](https://codecov.io/gh/cityssm/node-eft-generator/graph/badge.svg?token=JLS2JHUC4O)](https://codecov.io/gh/cityssm/node-eft-generator)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
```sh
npm install @cityssm/eft-generator
```## Usage
```javascript
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
- [Canadian Payments Association Standard 005](https://www.payments.ca/sites/default/files/standard005eng.pdf)
- [Royal Bank CPA-005 Reference](https://www.rbcroyalbank.com/ach/file-451771.pdf)## Related Projects
[CPA Codes for Node](https://github.com/cityssm/node-cpa-codes)
Lookups, validations, and utility functions for Canadian Payments Association (CPA) Standard 007 transaction and return codes.