-
Notifications
You must be signed in to change notification settings - Fork 128
Description
SDK you're using (please complete the following information):
- Version [e.g. 6.0.0]
I've updated from an earlier version to version 6.0.0 to get around a problem where the new Xero plans/enums were causing the api to break.
I now have an issue with getting contacts.
var _httpResponse = System.Threading.Tasks.Task.Run(async () => await _accountingAPI.GetContactsAsyncWithHttpInfo(_tokenPair.Token.AccessToken, _tokenPair.TenantID.ToString(), includeArchived: true, page: i)).Result;
This line causes an error that the method signature does not exist. I've looked through the v6 code and seems that all the parameters exist and the ones i'm not using are optional. So I can't see what the problem would be.
Has anyone else encountered this?
Below is the actual error.
Method not found: 'System.Threading.Tasks.Task1<Xero.NetStandard.OAuth2.Client.ApiResponse1<Xero.NetStandard.OAuth2.Model.Accounting.Contacts>> Xero.NetStandard.OAuth2.Api.AccountingApi.GetContactsAsyncWithHttpInfo(System.String, System.String, System.Nullable1<System.DateTime>, System.String, System.String, System.Collections.Generic.List1<System.Guid>, System.Nullable1, System.Nullable1, System.Nullable1)'.
this is the method signature in the v6 code:
System.Threading.Tasks.Task<ApiResponse<Contacts>> GetContactsAsyncWithHttpInfo (string accessToken, string xeroTenantId, DateTime? ifModifiedSince = null, string where = null, string order = null, List<Guid> iDs = null, int? page = null, bool? includeArchived = null, bool? summaryOnly = null, string searchTerm = null, CancellationToken cancellationToken = default);