aeb1914

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Creditor

type Creditor struct {
	ID        string
	Name      string
	AddressD1 string
	AddressD2 string
	AddressD3 string
	Country   string
	Account   string
}

type CreditorPayments

type CreditorPayments struct {
	Creditor           Creditor
	DatePayments       []*DatePayment
	TotalAmount        float64
	DebitRegisterCount int
	TotalRegisterCount int
}

type DatePayment

type DatePayment struct {
	Date               time.Time
	DebitTransactions  []*DebitTransaction
	TotalAmount        float64
	DebitRegisterCount int
	TotalRegisterCount int
}

func (*DatePayment) String

func (dp *DatePayment) String() string

type DebitTransaction

type DebitTransaction struct {
	ID           string
	MandateID    string
	Sequence     string
	CategoryCode string
	Amount       float64
	Date         time.Time
	Debtor       Debtor
	Purpose      string
	Concept      string
}

func (*DebitTransaction) String

func (t *DebitTransaction) String() string

type Debtor

type Debtor struct {
	Entity    string
	Name      string
	AddressD1 string
	AddressD2 string
	AddressD3 string
	Country   string
	IDType    string
	ID        string
	IDTXCode  string
	AccountID string
	Account   string
}

func (*Debtor) String

func (d *Debtor) String() string

type Document

type Document struct {
	InitiatingParty    *InitiatingParty
	CreditorPayments   []*CreditorPayments
	TotalAmount        float64
	DebitRegisterCount int
	TotalRegisterCount int
}

func NewDocument

func NewDocument() *Document

NewDocument returns an *aeb1914.Document

func (*Document) String

func (doc *Document) String() string

type InitiatingParty

type InitiatingParty struct {
	ID           string
	Name         string
	CreationDate time.Time
	FileID       string
	Entity       string
	Office       string
}

type Parser

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

Parser represents the main Parser object

func NewParser

func NewParser() *Parser

NewParser returns a sepa1914 Parser

func (*Parser) Parse

func (p *Parser) Parse(r io.Reader) (doc *Document, err error)

Parse takes a io.Reader with SEPA 19-14 contents in iso-8859 encoding

Jump to

Keyboard shortcuts

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