Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using Caiw.Foundation.XConnect.Models.Facets.Interfaces;
- using Sitecore.Analytics.Model.Framework;
- using Sitecore.XConnect;
- using System;
- using System.Collections.Generic;
- namespace Caiw.Foundation.Xconnect.Models.Facets
- {
- [Serializable]
- [FacetKey(DefaultFacetKey)]
- public class ServiceabilityData : Facet
- {
- public const string DefaultFacetKey = "ServiceabilityData";
- public int HouseNumber { get; set; }
- public string ZipCode { get; set; }
- public string Addition { get; set; }
- public string LocationDescription { get; set; }
- public IElementDictionary<IInfrastructure> Infrastructure { get; }
- public string Street { get; set; }
- public string City { get; set; }
- public string Region { get; set; }
- public string Country { get; set; }
- public string OrderEndpointType { get; set; }
- public int CustomerGroup { get; set; }
- public ServiceabilityData() { }
- }
- }
- [FacetKey("Addresses")]
- [Serializable]
- public class AddressList : Sitecore.XConnect.Facet
- {
- public const string DefaultFacetKey = "Addresses";
- public AddressList(Address preferredAddress, string preferredKey)
- {
- this.PreferredAddress = preferredAddress;
- this.PreferredKey = preferredKey;
- }
- public Dictionary<string, Address> Others { get; set; } = new Dictionary<string, Address>();
- public string PreferredKey { get; set; }
- public Address PreferredAddress { get; set; }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement