using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Text; using System.Threading.Tasks; using Newtonsoft.Json; namespace gehGassi.Klarna.OrderManagement { public class Address { /// /// Given name. Maximum 100 characters. /// /// Given name. Maximum 100 characters. [StringLength(100, MinimumLength = 0)] [JsonProperty("given_name")] public string GivenName { get; set; } /// /// Family name. Maximum 100 characters. /// /// Family name. Maximum 100 characters. [StringLength(100, MinimumLength = 0)] [JsonProperty("family_name")] public string FamilyName { get; set; } /// /// Title. Between 0 and 20 characters. /// /// Title. Between 0 and 20 characters. [StringLength(20, MinimumLength = 0)] [JsonProperty("title")] public string Title { get; set; } /// /// First line of street address. Maximum 100 characters. /// /// First line of street address. Maximum 100 characters. [StringLength(100, MinimumLength = 0)] [JsonProperty("street_address")] public string StreetAddress { get; set; } /// /// Second line of street address. Maximum 100 characters. /// /// Second line of street address. Maximum 100 characters. [StringLength(100, MinimumLength = 0)] [JsonProperty("street_address2")] public string StreetAddress2 { get; set; } /// /// Postcode. Maximum 10 characters. /// /// Postcode. Maximum 10 characters. [StringLength(10, MinimumLength = 0)] [JsonProperty("postal_code")] public string PostalCode { get; set; } /// /// City. Maximum 200 characters. /// /// City. Maximum 200 characters. [StringLength(200, MinimumLength = 0)] [JsonProperty("city")] public string City { get; set; } /// /// State/Region. Required for US. Maximum 200 characters. /// /// State/Region. Required for US. Maximum 200 characters. [StringLength(200, MinimumLength = 0)] [JsonProperty("region")] public string Region { get; set; } /// /// Country. ISO 3166 alpha-2. /// /// Country. ISO 3166 alpha-2. [JsonProperty("country")] public string Country { get; set; } /// /// E-mail address. Maximum 100 characters. /// /// E-mail address. Maximum 100 characters. [StringLength(100, MinimumLength = 0)] [JsonProperty("email")] public string Email { get; set; } /// /// Phone number. Maximum 100 characters. /// /// Phone number. Maximum 100 characters. [StringLength(100, MinimumLength = 0)] [JsonProperty("phone")] public string Phone { get; set; } } }