swift

package
v0.1.4-beta1 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2018 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractTagElements

func ExtractTagElements(tag []byte) ([][]byte, error)

func ExtractTagID

func ExtractTagID(tag []byte) ([]byte, error)

Types

type AccountTag

type AccountTag struct {
	Tag       string
	BankID    string
	AccountID string
}

func (*AccountTag) Unmarshal

func (a *AccountTag) Unmarshal(value []byte) error

type AlphaNumericTag

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

func (AlphaNumericTag) ID

func (t AlphaNumericTag) ID() string

func (*AlphaNumericTag) Unmarshal

func (a *AlphaNumericTag) Unmarshal(value []byte) error

func (*AlphaNumericTag) Val

func (a *AlphaNumericTag) Val() string

func (AlphaNumericTag) Value

func (t AlphaNumericTag) Value() interface{}

type BalanceTag

type BalanceTag struct {
	Tag                  string
	DebitCreditIndicator string
	BookingDate          domain.ShortDate
	Currency             string
	Amount               float64
}

func (*BalanceTag) Unmarshal

func (b *BalanceTag) Unmarshal(value []byte) error

type CustomFieldTag

type CustomFieldTag struct {
	Tag                string
	TransactionID      int
	BookingText        string
	PrimanotenNumber   string
	Purpose            string
	BankID             string
	AccountID          string
	Name               string
	MessageKeyAddition int
	Purpose2           string
}

func (*CustomFieldTag) Unmarshal

func (c *CustomFieldTag) Unmarshal(value []byte) error

type FloatTag

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

func (FloatTag) ID

func (t FloatTag) ID() string

func (*FloatTag) Unmarshal

func (f *FloatTag) Unmarshal(value []byte) error

func (*FloatTag) Val

func (f *FloatTag) Val() float64

func (FloatTag) Value

func (t FloatTag) Value() interface{}

type MT940

type MT940 struct {
	JobReference         *AlphaNumericTag
	Reference            *AlphaNumericTag
	Account              *AccountTag
	StatementNumber      *StatementNumberTag
	StartingBalance      *BalanceTag
	Transactions         []*TransactionSequence
	ClosingBalance       *BalanceTag
	CurrentValutaBalance *BalanceTag
	FutureValutaBalance  *BalanceTag
	CustomField          *CustomFieldTag
}

func (*MT940) AccountTransactions

func (m *MT940) AccountTransactions() []domain.AccountTransaction

func (*MT940) Unmarshal

func (m *MT940) Unmarshal(value []byte) error

type MessageExtractor

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

func NewMessageExtractor

func NewMessageExtractor(swiftMessage []byte) *MessageExtractor

func (*MessageExtractor) Extract

func (m *MessageExtractor) Extract() ([][]byte, error)

type NumberTag

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

func (NumberTag) ID

func (t NumberTag) ID() string

func (*NumberTag) Unmarshal

func (n *NumberTag) Unmarshal(value []byte) error

func (*NumberTag) Val

func (n *NumberTag) Val() int

func (NumberTag) Value

func (t NumberTag) Value() interface{}

type StatementNumberTag

type StatementNumberTag struct {
	Tag         string
	Number      int
	SheetNumber int
}

func (*StatementNumberTag) Unmarshal

func (s *StatementNumberTag) Unmarshal(value []byte) error

type Tag

type Tag interface {
	Unmarshal([]byte) error
	Value() interface{}
	ID() string
}

type TagExtractor

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

func NewTagExtractor

func NewTagExtractor(swiftMessage []byte) *TagExtractor

func (*TagExtractor) Extract

func (t *TagExtractor) Extract() ([][]byte, error)

type TransactionSequence

type TransactionSequence struct {
	Transaction *TransactionTag
	Description *CustomFieldTag
}

type TransactionTag

type TransactionTag struct {
	Tag                   string
	ValutaDate            domain.ShortDate
	BookingDate           domain.ShortDate
	DebitCreditIndicator  string
	CurrencyKind          string
	Amount                float64
	BookingKey            string
	Reference             string
	BankReference         string
	AdditionalInformation string
}

func (*TransactionTag) Unmarshal

func (t *TransactionTag) Unmarshal(value []byte) error

Jump to

Keyboard shortcuts

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