39 memset(&data, 0,
sizeof(data));
41 if (para_tag_identifier ==
"CCACCTFROM")
45 ASSIGN(data.account_type, data.OFX_CREDITCARD);
47 if (para_tag_identifier ==
"INVACCTFROM")
51 ASSIGN(data.account_type, data.OFX_INVESTMENT);
53 if (parentcontainer != NULL && ((
OfxStatementContainer*)parentcontainer)->data.currency_valid ==
true)
58 OfxAccountContainer::~OfxAccountContainer()
69 if ( identifier ==
"BANKID")
74 else if ( identifier ==
"BRANCHID")
79 else if ( identifier ==
"ACCTID")
84 else if ( identifier ==
"ACCTKEY")
88 else if ( identifier ==
"BROKERID")
93 else if ((identifier ==
"ACCTTYPE") || (identifier ==
"ACCTTYPE2"))
95 data.account_type_valid =
true;
96 if (value ==
"CHECKING")
100 else if (value ==
"SAVINGS")
104 else if (value ==
"MONEYMRKT")
108 else if (value ==
"CREDITLINE")
112 else if (value ==
"CMA")
114 data.account_type = data.
OFX_CMA;
119 data.account_type_valid =
false;
131 libofx_context->accountCallback(data);
139 if (MainContainer != NULL)
141 return MainContainer->add_container(
this);
149 void OfxAccountContainer::gen_account_id(
void)
160 m_acctid +
" at broker " + m_brokerid);
167 data.account_id_valid =
true;