public static Address ToValidateAddressRequest(this VirtoCommerce.Domain.Commerce.Model.Address address, string companyCode) { var retVal = new Address() { Country = address.CountryName, City = address.City, Line1 = address.Line1, Line2 = address.Line2, Region = address.RegionName, PostalCode = address.PostalCode }; return(retVal); }
private string FormattedName(VirtoCommerce.Domain.Commerce.Model.Address address) { var name = $"{address.FirstName} {address.MiddleName} {address.LastName}"; return(name.Replace(" ", " ")); }