我从 Quickbooks 在线获取帐户列表,并且所有 AccountTypeEnum 类型都设置为 Asset。这个不对。有没有更好的方法来使用正确的帐户类型(如收入和费用)获取这些数据?
OAuthRequestValidator oauthValidator = Initializer.InitializeOAuthValidator(accessToken, accessTokenSecret, consumerKey, consumerSecret);
ServiceContext context = Initializer.InitializeServiceContext(oauthValidator, realmId, string.Empty, string.Empty, dataSourcetype);
DataServices commonService = new DataServices(context);
int currentPage = 1;
int itemListPageSize = 100;
Intuit.Ipp.Data.Qbo.AccountQuery qboAccQuery = new Intuit.Ipp.Data.Qbo.AccountQuery();
IEnumerable<Intuit.Ipp.Data.Qbo.Account> qboAccounts = commonService.FindAll(new Intuit.Ipp.Data.Qbo.Account(), currentPage, itemListPageSize) as IEnumerable<Intuit.Ipp.Data.Qbo.Account>;