Coder Social home page Coder Social logo

go-aba's Introduction

go-aba

A Go library for generating ABA banking files.

Usage

Install:

go get github.com/azaurus1/go-aba

Example:

package main

import goAba "github.com/azaurus1/go-aba"

func main() {
	Header := goAba.Header{
		Bank:        "ANZ",
		User:        "Allowasa Pertolio Accounting&Tax",
		UserNumber:  "1234",
		Description: "Credits Of The Wooloomooloo",
	}
	Transaction := goAba.Transaction{
		BSB:             "061021",
		TransactionCode: goAba.Credit,
		Account:         "123456",
		Amount:          12.0,
		AccountTitle:    "Georgian Council of New South Wales",
		Reference:       "Invoice # 1234",
		TraceBSB:        "061123",
		TraceAccount:    "1234567",
		Remitter:        "Bank LLC",
	}
	Footer := goAba.Footer{}

	ABA := goAba.ABA{
		Header:       Header,
		Transactions: []goAba.Transaction{Transaction},
		Footer:       Footer,
	}

	ABA.Generate()
}

The above will return:

0                 01ANZ       Allowasa Pertolio Accounti001234Credits Of T220524                                        
1061-021   123456 500000001200Georgian Council of New South WaInvoice # 1234    061-123  1234567Bank LLC        00000000
7999-999            000000120000000012000000000000                        000001

Sources

  1. https://github.com/flash-oss/aba-generator
  2. http://ddkonline.blogspot.com/2009/01/aba-bank-payment-file-format-australian.html (archive)

Credits

Many thanks to Flash OSS for the aba-generator which I used for reference in building this library.

go-aba's People

Contributors

azaurus1 avatar

Watchers

 avatar

go-aba's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.