@@ -73,7 +73,7 @@ func (a *AccountGenerator) Transactions(ofxVersionStr string, txnUID ofxgo.UID,
73
73
Version : ofxVersion ,
74
74
Signon : ofxgo.SignonResponse {
75
75
Status : successStatus ,
76
- DtServer : ofxgo.Date {now },
76
+ DtServer : ofxgo.Date {Time : now },
77
77
Language : ofxgo .String ("ENG" ),
78
78
Org : ofxgo .String (a .Org ),
79
79
Fid : ofxgo .String (a .FID ),
@@ -85,16 +85,16 @@ func (a *AccountGenerator) Transactions(ofxVersionStr string, txnUID ofxgo.UID,
85
85
TrnUID : txnUID ,
86
86
Status : successStatus ,
87
87
CltCookie : ofxgo .String (cookie ),
88
- CurDef : ofxgo.CurrSymbol {currency .USD },
89
- DtAsOf : ofxgo.Date {now },
88
+ CurDef : ofxgo.CurrSymbol {Unit : currency .USD },
89
+ DtAsOf : ofxgo.Date {Time : now },
90
90
BankAcctFrom : ofxgo.BankAcct {
91
91
BankID : ofxgo .String ("routing number" ),
92
92
AcctID : ofxgo .String ("account number" ),
93
93
AcctType : ofxgo .AcctTypeChecking ,
94
94
},
95
95
BankTranList : & ofxgo.TransactionList {
96
- DtStart : ofxgo.Date {start },
97
- DtEnd : ofxgo.Date {end },
96
+ DtStart : ofxgo.Date {Time : start },
97
+ DtEnd : ofxgo.Date {Time : end },
98
98
Transactions : a .transactions (start , end ),
99
99
},
100
100
})
@@ -103,14 +103,14 @@ func (a *AccountGenerator) Transactions(ofxVersionStr string, txnUID ofxgo.UID,
103
103
TrnUID : txnUID ,
104
104
Status : successStatus ,
105
105
CltCookie : ofxgo .String (cookie ),
106
- CurDef : ofxgo.CurrSymbol {currency .USD },
107
- DtAsOf : ofxgo.Date {now },
106
+ CurDef : ofxgo.CurrSymbol {Unit : currency .USD },
107
+ DtAsOf : ofxgo.Date {Time : now },
108
108
CCAcctFrom : ofxgo.CCAcct {
109
109
AcctID : ofxgo .String ("account number" ),
110
110
},
111
111
BankTranList : & ofxgo.TransactionList {
112
- DtStart : ofxgo.Date {start },
113
- DtEnd : ofxgo.Date {end },
112
+ DtStart : ofxgo.Date {Time : start },
113
+ DtEnd : ofxgo.Date {Time : end },
114
114
Transactions : a .transactions (start , end ),
115
115
},
116
116
})
@@ -143,10 +143,10 @@ func (a *AccountGenerator) transactions(start, end time.Time) []ofxgo.Transactio
143
143
txnSeed := seed * uint64 (date .Month ()) * uint64 (date .Day ())
144
144
randTxn := newRandTransaction (date , txnSeed )
145
145
txn := ofxgo.Transaction {
146
- DtPosted : ofxgo.Date {randTxn .Date },
147
- TrnAmt : ofxgo.Amount {* randTxn .Amount .Rat ()},
146
+ DtPosted : ofxgo.Date {Time : randTxn .Date },
147
+ TrnAmt : ofxgo.Amount {Rat : * randTxn .Amount .Rat ()},
148
148
FiTID : ofxgo .String (randTxn .ID ),
149
- Currency : & ofxgo.Currency {CurSym : ofxgo.CurrSymbol {currency .USD }},
149
+ Currency : & ofxgo.Currency {CurSym : ofxgo.CurrSymbol {Unit : currency .USD }},
150
150
}
151
151
if randTxn .Amount .IsNegative () {
152
152
txn .TrnType = ofxgo .TrnTypeDebit
0 commit comments