62 lines
2.0 KiB
C#
62 lines
2.0 KiB
C#
using Newtonsoft.Json;
|
|
using System.Runtime.Serialization;
|
|
using System.Xml.Linq;
|
|
|
|
namespace ConsoleApp3.DataContracts
|
|
{
|
|
[DataContract]
|
|
public class ModelCostCentre
|
|
{
|
|
[DataMember(Name = "create", EmitDefaultValue = false)]
|
|
[JsonProperty(PropertyName = "create")]
|
|
public DateTime? Create { get; set; }
|
|
|
|
/// <summary>
|
|
/// date the cost centre was last updated
|
|
/// </summary>
|
|
/// <value>date the cost centre was last updated</value>
|
|
[DataMember(Name = "update", EmitDefaultValue = false)]
|
|
[JsonProperty(PropertyName = "update")]
|
|
public DateTime? Update { get; set; }
|
|
|
|
/// <summary>
|
|
/// sevClient is the unique id every customer has and is used in nearly all operations
|
|
/// </summary>
|
|
/// <value>sevClient is the unique id every customer has and is used in nearly all operations</value>
|
|
[DataMember(Name = "sevClient", EmitDefaultValue = false)]
|
|
[JsonProperty(PropertyName = "sevClient")]
|
|
public Object? SevClient { get; set; }
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
/// <value></value>
|
|
[DataMember(Name = "number", EmitDefaultValue = false)]
|
|
[JsonProperty(PropertyName = "number")]
|
|
public string Number { get; set; } = "";
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
/// <value></value>
|
|
[DataMember(Name = "name", EmitDefaultValue = false)]
|
|
[JsonProperty(PropertyName = "name")]
|
|
public string Name { get; set; } = "";
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
/// <value></value>
|
|
[DataMember(Name = "color", EmitDefaultValue = false)]
|
|
[JsonProperty(PropertyName = "color")]
|
|
public string Color { get; set; } = "";
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
/// <value></value>
|
|
[DataMember(Name = "postingAccount", EmitDefaultValue = false)]
|
|
[JsonProperty(PropertyName = "postingAccount")]
|
|
public string PostingAccount { get; set; } = "";
|
|
}
|
|
} |