0

我使用getAccount()and获取帐户列表discoverAndAddAccounts()。对于每种帐户类型(CREDIT、LOAN 等),我需要访问一组特定的字段。例如,我想访问 CreditAccount 的 creditMaxAmount 字段。但是,我似乎没有找到一种方法来识别给定帐户对象的“类型”。

总之,给定上述函数的输出,我如何识别帐户类型以访问特定于该帐户类型的字段。

4

3 回答 3

3

帐户类型由 Account 标头标识。

有关响应 XML,请参阅https://ipp.developer.intuit.com/index.php?title=0010_Intuit_Partner_Platform/0020_Aggregation_%26_Categorization_Apps/AggCat_API/0020_API_Documentation/0050getLoginAccounts

如您所见,有 InvestmentAccount、CreditAccount、BankingAccount、LoanAccount、... 和 OtherAccount。

如果某个帐户显示为 OtherAccount,则表示它尚未设置为特定帐户。您可以使用 updateAccountType 来设置它应该是的帐户类型。

于 2013-02-27T15:51:44.237 回答
2
<ns8:AccountList xmlns="http://schema.intuit.com/platform/fdatafeed/account/v1" 
    xmlns:ns2="http://schema.intuit.com/platform/fdatafeed/creditaccount/v1" 
    xmlns:ns3="http://schema.intuit.com/platform/fdatafeed/rewardsaccount/v1" 
    xmlns:ns4="http://schema.intuit.com/platform/fdatafeed/bankingaccount/v1" 
    xmlns:ns5="http://schema.intuit.com/platform/fdatafeed/investmentaccount/v1" 
    xmlns:ns6="http://schema.intuit.com/platform/fdatafeed/otheraccount/v1" 
    xmlns:ns7="http://schema.intuit.com/aggregation/loanaccount/v1" 
    xmlns:ns8="http://schema.intuit.com/platform/fdatafeed/accountlist/v1">
   <ns7:**LoanAccount**>
      <accountId>75000033014</accountId>
      <accountNumber>9900009994</accountNumber>
      <accountNickname>My Military Loan</accountNickname>
      <displayPosition>5</displayPosition>
      <institutionId>0</institutionId>
      <description>Description</description>
      <balanceAmount>90227.2</balanceAmount>
      <aggrSuccessDate>2012-02-27T23:20:13.651-08:00</aggrSuccessDate>
      <aggrAttemptDate>2012-02-27T23:20:13.651-08:00</aggrAttemptDate>
      <aggrStatusCode>0</aggrStatusCode>
      <currencyCode>USD</currencyCode>
      <ns7:loanType>**MILITARY**</ns7:loanType>
于 2013-02-26T19:03:38.997 回答
2

没有直接的方法来识别 Account 类型,getBankingAccountsAndCreditAccountsAndLoanAccounts() 方法将返回 Accounts,您需要检查 Object 类型以确定 Account 类型。

于 2013-03-04T16:14:17.153 回答