101 lines
3.4 KiB
C#
101 lines
3.4 KiB
C#
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
|
|
{
|
|
/// <summary>
|
|
/// Given name. Maximum 100 characters.
|
|
/// </summary>
|
|
/// <value>Given name. Maximum 100 characters.</value>
|
|
[StringLength(100, MinimumLength = 0)]
|
|
[JsonProperty("given_name")]
|
|
public string GivenName { get; set; }
|
|
|
|
/// <summary>
|
|
/// Family name. Maximum 100 characters.
|
|
/// </summary>
|
|
/// <value>Family name. Maximum 100 characters.</value>
|
|
[StringLength(100, MinimumLength = 0)]
|
|
[JsonProperty("family_name")]
|
|
public string FamilyName { get; set; }
|
|
|
|
/// <summary>
|
|
/// Title. Between 0 and 20 characters.
|
|
/// </summary>
|
|
/// <value>Title. Between 0 and 20 characters.</value>
|
|
[StringLength(20, MinimumLength = 0)]
|
|
[JsonProperty("title")]
|
|
public string Title { get; set; }
|
|
|
|
/// <summary>
|
|
/// First line of street address. Maximum 100 characters.
|
|
/// </summary>
|
|
/// <value>First line of street address. Maximum 100 characters.</value>
|
|
[StringLength(100, MinimumLength = 0)]
|
|
[JsonProperty("street_address")]
|
|
public string StreetAddress { get; set; }
|
|
|
|
/// <summary>
|
|
/// Second line of street address. Maximum 100 characters.
|
|
/// </summary>
|
|
/// <value>Second line of street address. Maximum 100 characters.</value>
|
|
[StringLength(100, MinimumLength = 0)]
|
|
[JsonProperty("street_address2")]
|
|
public string StreetAddress2 { get; set; }
|
|
|
|
/// <summary>
|
|
/// Postcode. Maximum 10 characters.
|
|
/// </summary>
|
|
/// <value>Postcode. Maximum 10 characters.</value>
|
|
[StringLength(10, MinimumLength = 0)]
|
|
[JsonProperty("postal_code")]
|
|
public string PostalCode { get; set; }
|
|
|
|
/// <summary>
|
|
/// City. Maximum 200 characters.
|
|
/// </summary>
|
|
/// <value>City. Maximum 200 characters.</value>
|
|
[StringLength(200, MinimumLength = 0)]
|
|
[JsonProperty("city")]
|
|
public string City { get; set; }
|
|
|
|
/// <summary>
|
|
/// State/Region. Required for US. Maximum 200 characters.
|
|
/// </summary>
|
|
/// <value>State/Region. Required for US. Maximum 200 characters.</value>
|
|
[StringLength(200, MinimumLength = 0)]
|
|
[JsonProperty("region")]
|
|
public string Region { get; set; }
|
|
|
|
/// <summary>
|
|
/// Country. ISO 3166 alpha-2.
|
|
/// </summary>
|
|
/// <value>Country. ISO 3166 alpha-2.</value>
|
|
[JsonProperty("country")]
|
|
public string Country { get; set; }
|
|
|
|
/// <summary>
|
|
/// E-mail address. Maximum 100 characters.
|
|
/// </summary>
|
|
/// <value>E-mail address. Maximum 100 characters.</value>
|
|
[StringLength(100, MinimumLength = 0)]
|
|
[JsonProperty("email")]
|
|
public string Email { get; set; }
|
|
|
|
/// <summary>
|
|
/// Phone number. Maximum 100 characters.
|
|
/// </summary>
|
|
/// <value>Phone number. Maximum 100 characters.</value>
|
|
[StringLength(100, MinimumLength = 0)]
|
|
[JsonProperty("phone")]
|
|
public string Phone { get; set; }
|
|
}
|
|
}
|