Advertisement
Guest User

Untitled

a guest
Jun 17th, 2019
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.50 KB | None | 0 0
  1. using Caiw.Foundation.XConnect.Models.Facets.Interfaces;
  2. using Sitecore.Analytics.Model.Framework;
  3. using Sitecore.XConnect;
  4. using System;
  5. using System.Collections.Generic;
  6.  
  7. namespace Caiw.Foundation.Xconnect.Models.Facets
  8. {
  9. [Serializable]
  10. [FacetKey(DefaultFacetKey)]
  11. public class ServiceabilityData : Facet
  12. {
  13. public const string DefaultFacetKey = "ServiceabilityData";
  14.  
  15. public int HouseNumber { get; set; }
  16.  
  17. public string ZipCode { get; set; }
  18.  
  19. public string Addition { get; set; }
  20.  
  21. public string LocationDescription { get; set; }
  22.  
  23. public IElementDictionary<IInfrastructure> Infrastructure { get; }
  24.  
  25. public string Street { get; set; }
  26.  
  27. public string City { get; set; }
  28.  
  29. public string Region { get; set; }
  30.  
  31. public string Country { get; set; }
  32.  
  33. public string OrderEndpointType { get; set; }
  34.  
  35. public int CustomerGroup { get; set; }
  36.  
  37. public ServiceabilityData() { }
  38. }
  39. }
  40.  
  41. [FacetKey("Addresses")]
  42. [Serializable]
  43. public class AddressList : Sitecore.XConnect.Facet
  44. {
  45. public const string DefaultFacetKey = "Addresses";
  46.  
  47. public AddressList(Address preferredAddress, string preferredKey)
  48. {
  49. this.PreferredAddress = preferredAddress;
  50. this.PreferredKey = preferredKey;
  51. }
  52.  
  53. public Dictionary<string, Address> Others { get; set; } = new Dictionary<string, Address>();
  54.  
  55. public string PreferredKey { get; set; }
  56.  
  57. public Address PreferredAddress { get; set; }
  58. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement