using Newtonsoft.Json; namespace Nop.Plugin.Payments.PayPalCommerce.Domain; /// /// Represents the contact details /// public class Contact { #region Properties /// /// Gets or sets the phone number for the contact /// [JsonProperty(PropertyName = "phoneNumber")] public string Phone { get; set; } /// /// Gets or sets the email address for the contact /// [JsonProperty(PropertyName = "emailAddress")] public string Email { get; set; } /// /// Gets or sets the contact’s given name /// [JsonProperty(PropertyName = "givenName")] public string FirstName { get; set; } /// /// Gets or sets the contact’s family name /// [JsonProperty(PropertyName = "familyName")] public string LastName { get; set; } /// /// Gets or sets the street portion of the address for the contact /// [JsonProperty(PropertyName = "addressLines")] public List AddressLines { get; set; } = new(); /// /// Gets or sets the city for the contact /// [JsonProperty(PropertyName = "locality")] public string City { get; set; } /// /// Gets or sets the subadministrative area (such as a county or other region) /// [JsonProperty(PropertyName = "subAdministrativeArea")] public string County { get; set; } /// /// Gets or sets the state for the contact /// [JsonProperty(PropertyName = "administrativeArea")] public string State { get; set; } /// /// Gets or sets the contact’s two-letter ISO 3166 country code /// [JsonProperty(PropertyName = "countryCode")] public string Country { get; set; } /// /// Gets or sets the zip code or postal code for the contact /// [JsonProperty(PropertyName = "postalCode")] public string PostalCode { get; set; } /// /// Gets or sets the shipping type that indicates how to ship purchased items (for shipping contact only) /// [JsonProperty(PropertyName = "shippingType")] public bool PickupInStore { get; set; } #endregion }