FruitBank/Plugins/Nop.Plugin.Payments.PayPalC.../Domain/Contact.cs

79 lines
2.3 KiB
C#
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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