public async Task <ClientResponse> UpdateAccountAsync(AccountUpdaterType accountUpdate, string traceNumber = null) { var item = accountUpdate.CopyToBase(); var xmlBody = new Request { Item = item }; var url = Endpoint.Url(); var request = new ClientRequest { Request = xmlBody, TraceNumber = traceNumber, }; return(await SendRequestAsync(url, request)); }
public async Task <ClientResponse> UpdateAccountAsync(AccountUpdaterType accountUpdate, string traceNumber = null) { return(await _client.UpdateAccountAsync(accountUpdate, traceNumber)); }
public ClientResponse UpdateAccount(AccountUpdaterType accountUpdate, string traceNumber = null) { return(_client.UpdateAccount(accountUpdate, traceNumber)); }
public ClientResponse UpdateAccount(AccountUpdaterType accountUpdate, string traceNumber = null) { return(UpdateAccountAsync(accountUpdate, traceNumber).GetAwaiter().GetResult()); }