Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Transaction ¶
type Transaction struct {
ID string `gorm:"primaryKey"`
CreatedAt time.Time
TemplateName string
Date string
Amount string
Currency string
AccountNumber string
VendorReferenceId string
TransactionReferenceId string
}
Represents a credit transaction
func ParseTransaction ¶
func ParseTransaction(text string, template *TransactionTemplate) (*Transaction, error)
type TransactionTemplate ¶
type TransactionTemplate struct {
Email string `yaml:"email"`
TemplateName string `yaml:"name"`
DatePattern string `yaml:"datePattern"`
AmountPattern string `yaml:"amountPattern"`
CurrencyPattern string `yaml:"currencyPattern"`
AccountNumberPattern string `yaml:"accountNumberPattern"`
VendorReferenceIdPattern string `yaml:"vendorReferenceIdPattern"`
TransactionReferenceIdPattern string `yaml:"transactionReferenceIdPattern"`
}
Template used for parsing transactions from messages
Click to show internal directories.
Click to hide internal directories.