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
|
using Newtonsoft.Json;
using M3Workflow.Data.Base;
using System;
using System.Collections.Generic;
namespace M3Workflow.Data.Base
{
[JsonObject(Id = "InvoicePostedDataObject", Title = "invoicePosted")]
public class InvoicePostedDataObject : JsonDataObject
{
[JsonProperty(Order = 1, PropertyName = "success", Required = Required.Always)]
public bool Success { get; set; }
[JsonProperty(Order = 2, PropertyName = "invoiceId", Required = Required.AllowNull)]
public Guid? InvoiceId { get; set; }
[JsonProperty(Order = 3, PropertyName = "invoiceNo", Required = Required.AllowNull)]
public string InvoiceNumber { get; set; }
[JsonProperty(Order = 4, PropertyName = "description", Required = Required.AllowNull)]
public string Description { get; set; }
[JsonProperty(Order = 5, PropertyName = "user", Required = Required.AllowNull)]
public string UserName { get; set; }
[JsonProperty(Order = 6, PropertyName = "postDate", Required = Required.AllowNull)]
public DateTime? PostDate { get; set; }
[JsonProperty(Order = 7, PropertyName = "dueDate", Required = Required.AllowNull)]
public DateTime? DueDate { get; set; }
[JsonProperty(Order = 8, PropertyName = "reason", Required = Required.Default)]
public List<InvoicePostReasonDataObject> Reason { get; set; }
public InvoicePostedDataObject(
bool success,
Guid? invoiceId = null,
string invoiceNumber = null,
string description = null,
string userName = null,
DateTime? postDate = null,
DateTime? dueDate = null,
List<InvoicePostReasonDataObject> reason = null
)
{
this.Success = success;
this.InvoiceId = invoiceId;
this.InvoiceNumber = invoiceNumber;
this.Description = description;
this.UserName = userName;
this.PostDate = postDate;
this.DueDate = dueDate;
this.Reason = reason;
}
}
}
|