Documentation ¶
Index ¶
Constants ¶
View Source
const ( BcaMinimumRecordLength = 2 BcaIndexNumberDescription = 1 BcaIndexNumberAmount = 3 BcaAmountCreditString = "CR" )
View Source
const ( BniMinimumRecordLength = 5 BniIndexNumberDescription = 4 BniIndexNumberValidationDate = 0 BniIndexNumberAmount = 6 )
View Source
const ( BriMinimumRecordLength = 9 BriIndexNumberDescription = 8 BriIndexNumberValidationDate = 6 BriIndexNumberAmount = 10 )
View Source
const ( MandiriMinimumRecordLength = 5 MandiriIndexNumberSecondDescription = 5 MandiriIndexNumberDescription = 4 MandiriIndexNumberValidationDate = 2 MandiriIndexNumberAmount = 8 )
View Source
const ( BankMandiri = "mandiri" BankBCA = "bca" BankBRI = "bri" BankBNI = "bni" )
Variables ¶
View Source
var BCABlacklist = []string{"TRSF", "E-BANKING", "CR", "DB", "Wallet",
"User", "BIAYA", "SME", "MFTS", "Dana", "YAY", "KITA", "BISA", "Recurring",
"Auto", "Debet"}
View Source
var BniBlacklist = []string{"DARI", "TRANSFER", "Sdr", "Sdri", "|", "PEMINDAHAN"}
View Source
var BriBlacklist = []string{"DARI", "KE", "DATE", "TIME", "REMARK", "DEBET", "CREDIT", "TELLER ID"}
View Source
var MandiriBlacklist = []string{
"SA", "OB", "CA", "No", "Book", "DARI", "Transfer",
"Otomatis", "KE", "MCM", "InhouseTrf", "KITA", "BISA",
"Auto", "Overbooking"}
Functions ¶
func BlacklistTrim ¶
func NumericTrim ¶
func WhitespaceSplit ¶
Types ¶
type FailRecord ¶
type MutationBank ¶
type MutationParser ¶
type MutationParser interface { LoadRecord(record []string) error GetAccountName() string GetAccountNumber() string GetDescription() string GetAmount() string GetDate() string }
func NewBcaParser ¶
func NewBcaParser() MutationParser
func NewBniParser ¶
func NewBniParser() MutationParser
func NewBriParser ¶
func NewBriParser() MutationParser
func NewMandiriParser ¶
func NewMandiriParser() MutationParser
type Parser ¶
type Parser interface { LoadRecord(record []string) error GetMutation() *MutationBank }
Click to show internal directories.
Click to hide internal directories.