Documentation ¶
Index ¶
- func ExtractTagElements(tag []byte) ([][]byte, error)
- func ExtractTagID(tag []byte) ([]byte, error)
- type AccountTag
- type AlphaNumericTag
- type BalanceTag
- type CustomFieldTag
- type FloatTag
- type MT940
- type MessageExtractor
- type NumberTag
- type StatementNumberTag
- type Tag
- type TagExtractor
- type TransactionSequence
- type TransactionTag
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractTagElements ¶
func ExtractTagID ¶
Types ¶
type AccountTag ¶
func (*AccountTag) Unmarshal ¶
func (a *AccountTag) Unmarshal(value []byte) error
type AlphaNumericTag ¶
type AlphaNumericTag struct {
// contains filtered or unexported fields
}
func (*AlphaNumericTag) Unmarshal ¶
func (a *AlphaNumericTag) Unmarshal(value []byte) error
func (*AlphaNumericTag) Val ¶
func (a *AlphaNumericTag) Val() string
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 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
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 StatementNumberTag ¶
func (*StatementNumberTag) Unmarshal ¶
func (s *StatementNumberTag) Unmarshal(value []byte) error
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
Click to show internal directories.
Click to hide internal directories.