我使用getAccount()
和discoverAndAddAccounts()
獲取帳戶列表。對於每個帳戶類型(CREDIT,LOAN等),我都需要訪問特定的一組字段。例如,我想訪問CreditAccount的creditMaxAmount字段。但是,我似乎沒有找到一種方法來識別給定帳戶對象的「類型」。如何識別帳戶類型
總之,在給出上述功能的輸出後,如何識別帳戶類型以便訪問特定於該帳戶類型的字段。
我使用getAccount()
和discoverAndAddAccounts()
獲取帳戶列表。對於每個帳戶類型(CREDIT,LOAN等),我都需要訪問特定的一組字段。例如,我想訪問CreditAccount的creditMaxAmount字段。但是,我似乎沒有找到一種方法來識別給定帳戶對象的「類型」。如何識別帳戶類型
總之,在給出上述功能的輸出後,如何識別帳戶類型以便訪問特定於該帳戶類型的字段。
<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>
如何在java代碼中使用AggCat apis獲取帳戶類型?我試過但找不到表示帳戶類型的任何字段 – kiran 2013-03-02 14:21:32
帳戶類型由帳戶標頭標識。
正如您所見,有InvestmentAccount,CreditAccount,BankingAccount,LoanAccount,...和OtherAccount。
如果某個帳戶顯示爲OtherAccount,則表示它尚未設置爲特定帳戶。您可以使用updateAccountType來設置它應該的帳戶類型。
- >我知道帳戶類型是xml響應的一部分,但我不確定如何在java中訪問它。帳戶類型似乎沒有任何包含帳戶類型的字段。例如,當我通過使用getLoginAccounts或getAccount獲取accountList並通過以下方式從帳戶列表中訪問帳戶時,我沒有看到任何包含帳戶類型的字段accountList.getBankingAccountsAndCreditAccountsAndLoanAccounts()。get(0) – kiran 2013-03-01 07:32:27
沒有直接的方法來識別帳戶類型,getBankingAccountsAndCreditAccountsAndLoanAccounts()方法將返回帳戶,並且您需要檢查對象類型以確定帳戶類型。
請問您能提供更多信息嗎?你在用什麼SDK?這是QuicKBooks在線還是QuickBooks for Windows? – 2013-02-27 12:05:27
我正在使用AggCat apis – kiran 2013-02-28 19:08:04