Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions QuickBooksSharp/Services/DataService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ public async Task<IntuitResponse<QueryCountResponse>> QueryCountAsync(string que
public async Task<IntuitResponse<QueryResponse<TEntity>>> QueryAsync<TEntity>(string query) where TEntity : IntuitEntity
{
var res = await _client.GetAsync<IntuitResponse>(new Url(_serviceUrl).AppendPathSegment("query")
.SetQueryParam("query", query));
.SetQueryParam("query", query)
.SetQueryParam("include", "enhancedAllCustomFields"));
var queryRes = res.QueryResponse;
return new IntuitResponse<QueryResponse<TEntity>>
{
Expand All @@ -68,7 +69,8 @@ public async Task<IntuitResponse<QueryResponse<TEntity>>> QueryAsync<TEntity>(st
public async Task<IntuitResponse<TEntity>> GetAsync<TEntity>(string id) where TEntity : IntuitEntity
{
var res = await _client.GetAsync<IntuitResponse>(new Url(_serviceUrl).AppendPathSegment(GetEntityName(typeof(TEntity)))
.AppendPathSegment(id));
.AppendPathSegment(id)
.SetQueryParam("include", "enhancedAllCustomFields"));
return new IntuitResponse<TEntity>
{
RequestId = res.requestId,
Expand All @@ -83,7 +85,8 @@ public async Task<IntuitResponse<TEntity>> GetAsync<TEntity>(string id) where TE
public async Task<IntuitResponse<IntuitEntity>> GetAsync(string id, Type entityType)
{
var res = await _client.GetAsync<IntuitResponse>(new Url(_serviceUrl).AppendPathSegment(GetEntityName(entityType))
.AppendPathSegment(id));
.AppendPathSegment(id)
.SetQueryParam("include", "enhancedAllCustomFields"));
return new IntuitResponse<IntuitEntity>
{
RequestId = res.requestId,
Expand Down