

insightly-api
@ 9
insightly-api / trunk / Insightly / Contract / Address.cs
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 |
using System; using System.ComponentModel; using System.Runtime.Serialization; namespace TS.Insightly.API.Contract { /// <summary> /// Insightly address record. /// </summary> [Serializable] [DataContract] public class Address { #region Enumerations /// <summary> /// Values for the ADDRESS_TYPE field. /// </summary> /// <see cref="Address.ADDRESS_TYPE"/> public enum AddressType { /// <summary> /// Work address type. /// </summary> [Description("Work")] Work, /// <summary> /// Home address type. /// </summary> [Description("Home")] Home, /// <summary> /// Postal address type. /// </summary> [Description("Postal")] Postal, /// <summary> /// Other address type. /// </summary> [Description("Other")] Other } #endregion Enumerations /// <summary> /// Gets or sets the address identifier. /// </summary> /// <value> /// The address identifier. /// </value> public int ADDRESS_ID { get; set; } /// <summary> /// Gets or sets the type of the address_. /// </summary> /// <value> /// The type of the address_. /// </value> /// <see cref="AddressType"/> [DataMember] public string ADDRESS_TYPE { get; set; } /// <summary> /// Gets or sets the street number and name. /// </summary> /// <value> /// The street number and name. /// </value> [DataMember] public string STREET { get; set; } /// <summary> /// Gets or sets the city. /// </summary> /// <value> /// The city. /// </value> [DataMember] public string CITY { get; set; } /// <summary> /// Gets or sets the state or province. /// </summary> /// <value> /// The state or province. /// </value> [DataMember] public string STATE { get; set; } /// <summary> /// Gets or sets the postcode. /// </summary> /// <value> /// The postcode. /// </value> [DataMember] public string POSTCODE { get; set; } /// <summary> /// Gets or sets the country. /// </summary> /// <value> /// The country. /// </value> [DataMember] public string COUNTRY { get; set; } } } |