/// <summary> /// Translates to commerce party. /// </summary> /// <param name="profile">The profile.</param> /// <param name="party">The party.</param> protected virtual void TranslateToCommerceParty(CommerceServer.Core.Runtime.Profiles.Profile profile, CommerceParty party) { party.ExternalId = this.Get <string>(profile, "GeneralInfo.address_id"); party.FirstName = this.Get <string>(profile, "GeneralInfo.first_name"); party.LastName = this.Get <string>(profile, "GeneralInfo.last_name"); party.Name = this.Get <string>(profile, "GeneralInfo.address_name"); party.Address1 = this.Get <string>(profile, "GeneralInfo.address_line1"); party.Address2 = this.Get <string>(profile, "GeneralInfo.address_line2"); party.City = this.Get <string>(profile, "GeneralInfo.city"); party.RegionCode = this.Get <string>(profile, "GeneralInfo.region_code"); party.RegionName = this.Get <string>(profile, "GeneralInfo.region_name"); party.ZipPostalCode = this.Get <string>(profile, "GeneralInfo.postal_code"); party.CountryCode = this.Get <string>(profile, "GeneralInfo.country_code"); party.Country = this.Get <string>(profile, "GeneralInfo.country_name"); party.PhoneNumber = this.Get <string>(profile, "GeneralInfo.tel_number"); party.State = this.Get <string>(profile, "GeneralInfo.region_code"); this.TranslateToCommercePartyCustomProperties(profile, party); }
/// <summary> /// Translates to custom party. /// </summary> /// <param name="profile">The profile.</param> /// <param name="party">The party.</param> protected virtual void TranslateToCustomParty(CommerceServer.Core.Runtime.Profiles.Profile profile, Party party) { }