utils

package
v0.1.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 8, 2018 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	IBANLookupURL = "https://openiban.com/validate/%s?getBIC=true"
)

Variables

This section is empty.

Functions

func BuildTransactions

func BuildTransactions(investors []Investor) (map[string]*Transaction, float64)

func Lookup

func Lookup(ibans ...string) map[string]IBAN

func PanicOnError

func PanicOnError(err error)

func ParseConfigFile added in v0.1.1

func ParseConfigFile(file string)

Types

type CamtDocument

type CamtDocument struct {
	// contains filtered or unexported fields
}

func NewCamtDocument

func NewCamtDocument() *CamtDocument

func (*CamtDocument) AddHeaders

func (c *CamtDocument) AddHeaders(totalAmount float64, nOfTxs int)

func (*CamtDocument) AddTransactionData

func (c *CamtDocument) AddTransactionData(transactionData map[string]*Transaction)

func (*CamtDocument) PrintDocument

func (c *CamtDocument) PrintDocument()

type IBAN

type IBAN struct {
	Iban         string   `json:"iban"`
	BankData     bankData `json:"bankData"`
	CheckResults interface{}
	Valid        interface{}
	Messages     interface{}
}

type Investor

type Investor struct {
	// contains filtered or unexported fields
}

func LoadInvestors

func LoadInvestors(files []string, skipHeader bool) []Investor

type Transaction

type Transaction struct {
	// contains filtered or unexported fields
}

func (*Transaction) AddToAmount

func (t *Transaction) AddToAmount(amount float64)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL