0

getAccount()と を使用してアカウントのリストを取得します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

口座の種類を直接識別する方法はありません。getBankingAccountsAndCreditAccountsAndLoanAccounts() メソッドは口座を返します。口座の種類を特定するには、オブジェクトの種類を確認する必要があります。

于 2013-03-04T16:14:17.153 に答える
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 に答える