/// <summary> /// Updates customer addresses /// <a href="https://developers.klarna.com/api/#order-management-api-update-customer-addresses"> /// https://developers.klarna.com/api/#order-management-api-update-customer-addresses /// </a> /// </summary> /// <param name="orderId">Id of order to update</param> /// <param name="customerAddresses">The <see cref="UpdateCustomerAddresses"/>object</param> /// <returns></returns> public Task UpdateCustomerAddresses(string orderId, OrderManagementCustomerAddresses customerAddresses) { var url = ApiUrlHelper.GetApiUrlForController(ApiSession.ApiUrl, ApiControllerUri, $"{orderId}/customer-details"); return(Patch(url, customerAddresses)); }
public virtual async Task UpdateCustomerInformation(string orderId, OrderManagementCustomerAddresses updateCustomerDetails) { await _client.UpdateCustomerAddresses(orderId, updateCustomerDetails).ConfigureAwait(false); }