using Newtonsoft.Json; using System.Runtime.Serialization; namespace ConsoleApp3.DataContracts { [DataContract] public class ModelContact { [DataMember(Name = "id", EmitDefaultValue = false)] [JsonProperty(PropertyName = "id")] public int Id { get; set; } [DataMember(Name = "objectName", EmitDefaultValue = false)] [JsonProperty(PropertyName = "objectName")] public string ObjectName { get; set; } = ""; /// /// the contact address /// /// the contact address [DataMember(Name = "address", EmitDefaultValue = false)] [JsonProperty(PropertyName = "address")] public ModelContactAddress Address { get; set; } /// /// the creation date of the contact /// /// the creation date of the contact [DataMember(Name = "create", EmitDefaultValue = false)] [JsonProperty(PropertyName = "create")] public DateTime? Create { get; set; } /// /// date, the contact was last updated /// /// date, the contact was last updated [DataMember(Name = "update", EmitDefaultValue = false)] [JsonProperty(PropertyName = "update")] public DateTime? Update { get; set; } /// /// name of the contact /// /// name of the contact [DataMember(Name = "name", EmitDefaultValue = false)] [JsonProperty(PropertyName = "name")] public string Name { get; set; } /// /// status of the contact /// /// status of the contact [DataMember(Name = "status", EmitDefaultValue = false)] [JsonProperty(PropertyName = "status")] public int? Status { get; set; } /// /// customer number of the contact /// /// customer number of the contact [DataMember(Name = "customerNumber", EmitDefaultValue = false)] [JsonProperty(PropertyName = "customerNumber")] public int? CustomerNumber { get; set; } /// /// /// /// [DataMember(Name = "parent", EmitDefaultValue = false)] [JsonProperty(PropertyName = "parent")] public ModelContact Parent { get; set; } /// /// surname of the contact /// /// surname of the contact [DataMember(Name = "surename", EmitDefaultValue = false)] [JsonProperty(PropertyName = "surename")] public string Surename { get; set; } /// /// family name of the contact /// /// family name of the contact [DataMember(Name = "familyname", EmitDefaultValue = false)] [JsonProperty(PropertyName = "familyname")] public string Familyname { get; set; } /// /// title of the contact /// /// title of the contact [DataMember(Name = "titel", EmitDefaultValue = false)] [JsonProperty(PropertyName = "titel")] public string Titel { get; set; } /// /// category of the contact /// /// category of the contact [DataMember(Name = "category", EmitDefaultValue = false)] [JsonProperty(PropertyName = "category")] public ModelCategory Category { get; set; } /// /// description of the contact /// /// description of the contact [DataMember(Name = "description", EmitDefaultValue = false)] [JsonProperty(PropertyName = "description")] public string Description { get; set; } /// /// any academic title of the contact /// /// any academic title of the contact [DataMember(Name = "academicTitle", EmitDefaultValue = false)] [JsonProperty(PropertyName = "academicTitle")] public string AcademicTitle { get; set; } /// /// gender of the contact /// /// gender of the contact [DataMember(Name = "gender", EmitDefaultValue = false)] [JsonProperty(PropertyName = "gender")] public string Gender { get; set; } /// /// sevClient is the unique id every customer has and is used in nearly all operations /// /// sevClient is the unique id every customer has and is used in nearly all operations [DataMember(Name = "sevClient", EmitDefaultValue = false)] [JsonProperty(PropertyName = "sevClient")] public Object SevClient { get; set; } /// /// second name of the contact /// /// second name of the contact [DataMember(Name = "name2", EmitDefaultValue = false)] [JsonProperty(PropertyName = "name2")] public string Name2 { get; set; } /// /// birthday of the contact /// /// birthday of the contact [DataMember(Name = "birthday", EmitDefaultValue = false)] [JsonProperty(PropertyName = "birthday")] public DateTime? Birthday { get; set; } /// /// vat number of the contact /// /// vat number of the contact [DataMember(Name = "vatNumber", EmitDefaultValue = false)] [JsonProperty(PropertyName = "vatNumber")] public string VatNumber { get; set; } /// /// bank account of the contact /// /// bank account of the contact [DataMember(Name = "bankAccount", EmitDefaultValue = false)] [JsonProperty(PropertyName = "bankAccount")] public string BankAccount { get; set; } /// /// bank number of the contact /// /// bank number of the contact [DataMember(Name = "bankNumber", EmitDefaultValue = false)] [JsonProperty(PropertyName = "bankNumber")] public string BankNumber { get; set; } /// /// desired payment method of the customer /// /// desired payment method of the customer [DataMember(Name = "paymentMethod", EmitDefaultValue = false)] [JsonProperty(PropertyName = "paymentMethod")] public ModelPaymentMethod PaymentMethod { get; set; } /// /// /// /// [DataMember(Name = "entryType", EmitDefaultValue = false)] [JsonProperty(PropertyName = "entryType")] public ModelEntryType EntryType { get; set; } /// /// default cashback time of the contact /// /// default cashback time of the contact [DataMember(Name = "defaultCashbackTime", EmitDefaultValue = false)] [JsonProperty(PropertyName = "defaultCashbackTime")] public int? DefaultCashbackTime { get; set; } /// /// default cashback percentage of the contact /// /// default cashback percentage of the contact [DataMember(Name = "defaultCashbackPercent", EmitDefaultValue = false)] [JsonProperty(PropertyName = "defaultCashbackPercent")] public int? DefaultCashbackPercent { get; set; } /// /// default time to pay of the contact /// /// default time to pay of the contact [DataMember(Name = "defaultTimeToPay", EmitDefaultValue = false)] [JsonProperty(PropertyName = "defaultTimeToPay")] public int? DefaultTimeToPay { get; set; } /// /// tax number of the contact /// /// tax number of the contact [DataMember(Name = "taxNumber", EmitDefaultValue = false)] [JsonProperty(PropertyName = "taxNumber")] public string TaxNumber { get; set; } /// /// tax office of the contact /// /// tax office of the contact [DataMember(Name = "taxOffice", EmitDefaultValue = false)] [JsonProperty(PropertyName = "taxOffice")] public string TaxOffice { get; set; } } }