1
0
mirror of https://github.com/aclindsa/ofxgo.git synced 2025-07-01 03:38:38 -04:00

Use CurrSymbol instead of String to represent currencies

This commit is contained in:
2017-04-17 20:20:22 -04:00
parent faac776ca4
commit 2046fa32e5
10 changed files with 50 additions and 30 deletions

View File

@ -252,13 +252,18 @@ func TestUnmarshalBankStatementResponse(t *testing.T) {
balamt.SetFrac64(20029, 100)
availbalamt.SetFrac64(20029, 100)
usd, err := ofxgo.NewCurrSymbol("USD")
if err != nil {
t.Fatalf("Unexpected error creating CurrSymbol for USD\n")
}
statementResponse := ofxgo.StatementResponse{
TrnUID: "1001",
Status: ofxgo.Status{
Code: 0,
Severity: "INFO",
},
CurDef: "USD",
CurDef: *usd,
BankAcctFrom: ofxgo.BankAcct{
BankID: "318398732",
AcctID: "78346129",