diff --git a/invstmt_test.go b/invstmt_test.go
index ae66b88..f4225cf 100644
--- a/invstmt_test.go
+++ b/invstmt_test.go
@@ -292,6 +292,29 @@ func TestUnmarshalInvStatementResponse(t *testing.T) {
VIMAX
+
+
+
+ 99182828
+ CUSIP
+
+ Someone's Class B Debt
+
+ 100.29
+ COUPON
+ 20170901
+ QUARTERLY
+
+
+
+
+ 88181818
+ CUSIP
+
+ Foo Bar
+
+ Don't know what this is
+
`)
@@ -475,10 +498,11 @@ func TestUnmarshalInvStatementResponse(t *testing.T) {
}
expected.InvStmt = append(expected.InvStmt, &statementResponse)
- var yield1, yield2, strikeprice ofxgo.Amount
+ var yield1, yield2, strikeprice, parvalue ofxgo.Amount
yield1.SetFrac64(192, 100)
yield2.SetFrac64(17, 1)
strikeprice.SetFrac64(79, 1)
+ parvalue.SetFrac64(10029, 100)
seclist := ofxgo.SecurityList{
Securities: []ofxgo.Security{
@@ -538,6 +562,29 @@ func TestUnmarshalInvStatementResponse(t *testing.T) {
Ticker: "VIMAX",
},
},
+ ofxgo.DebtInfo{
+ SecInfo: ofxgo.SecInfo{
+ SecId: ofxgo.SecurityId{
+ UniqueId: "99182828",
+ UniqueIdType: "CUSIP",
+ },
+ SecName: "Someone's Class B Debt",
+ },
+ ParValue: parvalue,
+ DebtType: ofxgo.DebtTypeCoupon,
+ DtCoupon: ofxgo.NewDateGMT(2017, 9, 1, 0, 0, 0, 0),
+ CouponFreq: ofxgo.CouponFreqQuarterly,
+ },
+ ofxgo.OtherInfo{
+ SecInfo: ofxgo.SecInfo{
+ SecId: ofxgo.SecurityId{
+ UniqueId: "88181818",
+ UniqueIdType: "CUSIP",
+ },
+ SecName: "Foo Bar",
+ },
+ TypeDesc: "Don't know what this is",
+ },
},
}
expected.SecList = append(expected.SecList, &seclist)