136 lines
4.4 KiB
C#
136 lines
4.4 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using Newtonsoft.Json;
|
|
|
|
namespace gehGassi.Klarna.Checkout
|
|
{
|
|
public class Address
|
|
{
|
|
/// <summary>
|
|
/// Given name.
|
|
/// </summary>
|
|
/// <value>Given name.</value>
|
|
[JsonProperty("given_name")]
|
|
public string GivenName { get; set; }
|
|
|
|
/// <summary>
|
|
/// Family name.
|
|
/// </summary>
|
|
/// <value>Family name.</value>
|
|
[JsonProperty("family_name")]
|
|
public string FamilyName { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or Sets OrganizationName
|
|
/// </summary>
|
|
[JsonProperty("organization_name")]
|
|
public string OrganizationName { get; set; }
|
|
|
|
/// <summary>
|
|
/// E-mail address.
|
|
/// </summary>
|
|
/// <value>E-mail address.</value>
|
|
[JsonProperty("email")]
|
|
public string Email { get; set; }
|
|
|
|
/// <summary>
|
|
/// Title.Valid values for UK:Mr Ms Mrs Miss Valid values for DACH:Herr Frau Valid values for NL:Dhr.Mevr.
|
|
/// </summary>
|
|
/// <value>Title.Valid values for UK:Mr</li>Ms</li>Mrs</li>Miss</li></ul>Valid values for DACH:Herr</li>Frau</li></ul>Valid values for NL:Dhr.</li>Mevr.</li></ul></value>
|
|
[JsonProperty("title")]
|
|
public string Title { get; set; }
|
|
|
|
/// <summary>
|
|
/// Street address, first line.
|
|
/// </summary>
|
|
/// <value>Street address, first line.</value>
|
|
[JsonProperty("street_address")]
|
|
public string StreetAddress { get; set; }
|
|
|
|
/// <summary>
|
|
/// Street address, second line.
|
|
/// </summary>
|
|
/// <value>Street address, second line.</value>
|
|
[JsonProperty("street_address2")]
|
|
public string StreetAddress2 { get; set; }
|
|
|
|
/// <summary>
|
|
/// Street name. Only applicable in DE/AT/NL. Do not combine with street_address. See <b>streetNumber</b>.
|
|
/// </summary>
|
|
/// <value>Street name. Only applicable in DE/AT/NL. Do not combine with street_address. See <b>streetNumber</b>.</value>
|
|
[JsonProperty("street_name")]
|
|
public string StreetName { get; set; }
|
|
|
|
/// <summary>
|
|
/// Street number. Only applicable in DE/AT/NL. Do not combine with street_address. See <b>streetName</b>.
|
|
/// </summary>
|
|
/// <value>Street number. Only applicable in DE/AT/NL. Do not combine with street_address. See <b>streetName</b>.</value>
|
|
[JsonProperty("street_number")]
|
|
public string StreetNumber { get; set; }
|
|
|
|
/// <summary>
|
|
/// House extension. Only applicable in NL
|
|
/// </summary>
|
|
/// <value>House extension. Only applicable in NL</value>
|
|
[JsonProperty("house_extension")]
|
|
public string HouseExtension { get; set; }
|
|
|
|
/// <summary>
|
|
/// Postal/post code.
|
|
/// </summary>
|
|
/// <value>Postal/post code.</value>
|
|
[JsonProperty("postal_code")]
|
|
public string PostalCode { get; set; }
|
|
|
|
/// <summary>
|
|
/// City.
|
|
/// </summary>
|
|
/// <value>City.</value>
|
|
[JsonProperty("city")]
|
|
public string City { get; set; }
|
|
|
|
/// <summary>
|
|
/// State or Region.
|
|
/// </summary>
|
|
/// <value>State or Region.</value>
|
|
[JsonProperty("region")]
|
|
public string Region { get; set; }
|
|
|
|
/// <summary>
|
|
/// Phone number.
|
|
/// </summary>
|
|
/// <value>Phone number.</value>
|
|
[JsonProperty("phone")]
|
|
public string Phone { get; set; }
|
|
|
|
/// <summary>
|
|
/// ISO 3166 alpha-2. Country.
|
|
/// </summary>
|
|
/// <value>ISO 3166 alpha-2. Country.</value>
|
|
[JsonProperty("country")]
|
|
public string Country { get; set; }
|
|
|
|
/// <summary>
|
|
/// Care of.
|
|
/// </summary>
|
|
/// <value>Care of.</value>
|
|
[JsonProperty("care_of")]
|
|
public string CareOf { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or Sets Reference
|
|
/// </summary>
|
|
[JsonProperty("reference")]
|
|
public string Reference { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or Sets Attention
|
|
/// </summary>
|
|
[JsonProperty("attention")]
|
|
public string Attention { get; set; }
|
|
}
|
|
}
|