Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountTag ¶
AccountTag represents an account in S.W.I.F.T.
func (*AccountTag) Unmarshal ¶
func (a *AccountTag) Unmarshal(value []byte) error
Unmarshal unmarshals value into a
type AlphaNumericTag ¶
type AlphaNumericTag struct {
// contains filtered or unexported fields
}
An AlphaNumericTag represents alphanumeric data in a S.W.I.F.T. tag
func (*AlphaNumericTag) Unmarshal ¶
func (a *AlphaNumericTag) Unmarshal(value []byte) error
Unmarshal unmarshals value into a
func (*AlphaNumericTag) Val ¶
func (a *AlphaNumericTag) Val() string
Val returns the string embodied in a
type BalanceTag ¶
type BalanceTag struct { Tag string DebitCreditIndicator string BookingDate domain.ShortDate Currency string Amount float64 }
A BalanceTag represents a balance in S.W.I.F.T.
func (*BalanceTag) Balance ¶ added in v0.1.4
func (b *BalanceTag) Balance() domain.Balance
Balance returns the balance embodied in b
func (*BalanceTag) Unmarshal ¶
func (b *BalanceTag) Unmarshal(value []byte) error
Unmarshal unmarshals value into b
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 }
A CustomFieldTag represents holds multiple information about a transaction
func (*CustomFieldTag) Unmarshal ¶
func (c *CustomFieldTag) Unmarshal(value []byte) error
Unmarshal unmarshals the tag bytes into c
type FloatTag ¶
type FloatTag struct {
// contains filtered or unexported fields
}
A FloatTag represents float data in a S.W.I.F.T. tag
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 }
MT940 represents a S.W.I.F.T. Transaction Report
func (*MT940) AccountTransactions ¶
func (m *MT940) AccountTransactions() []domain.AccountTransaction
AccountTransactions returns a slice of account transactions created from m
type MT940Messages ¶ added in v0.4.0
type MT940Messages struct { Data []byte // contains filtered or unexported fields }
func MergeMT940Messages ¶ added in v0.4.0
func MergeMT940Messages(messages ...*MT940Messages) *MT940Messages
func NewMT940Messages ¶ added in v0.4.0
func NewMT940Messages(data []byte) *MT940Messages
type MT940Unmarshaler ¶ added in v0.4.0
type MT940Unmarshaler interface {
UnmarshalMT940([]byte) ([]domain.AccountTransaction, error)
}
func NewMT940MessagesUnmarshaler ¶ added in v0.4.0
func NewMT940MessagesUnmarshaler() MT940Unmarshaler
type MessageExtractor ¶
type MessageExtractor struct {
// contains filtered or unexported fields
}
MessageExtractor represents an extractor for S.W.I.F.T. messages
func NewMessageExtractor ¶
func NewMessageExtractor(swiftMessage []byte) *MessageExtractor
NewMessageExtractor returns a message extractor feasable extracting S.W.I.F.T. messages from the given input
func (*MessageExtractor) Extract ¶
func (m *MessageExtractor) Extract() ([][]byte, error)
Extract extracts raw S.W.I.F.T. messages from the given input
type NumberTag ¶
type NumberTag struct {
// contains filtered or unexported fields
}
A NumberTag represents numeric data in a S.W.I.F.T. tag
type StatementNumberTag ¶
StatementNumberTag represents a S.W.I.F.T. statement number
func (*StatementNumberTag) Unmarshal ¶
func (s *StatementNumberTag) Unmarshal(value []byte) error
Unmarshal unmarshals value into s
type SyntaxError ¶ added in v0.4.0
func (*SyntaxError) Error ¶ added in v0.4.0
func (s *SyntaxError) Error() string
func (SyntaxError) IsUnexpectedEndOfInput ¶ added in v0.4.0
func (s SyntaxError) IsUnexpectedEndOfInput() bool
type TransactionSequence ¶
type TransactionSequence struct { Transaction *TransactionTag Description *CustomFieldTag }
A TransactionSequence represents a transaction with an additional description in S.W.I.F.T.
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 }
A TransactionTag represents a transaction in S.W.I.F.T.
func (*TransactionTag) Unmarshal ¶
func (t *TransactionTag) Unmarshal(value []byte) error
Unmarshal unmarshals value into t