-
Notifications
You must be signed in to change notification settings - Fork 6
/
Order.cs
executable file
·53 lines (39 loc) · 1.22 KB
/
Order.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
using System;
using System.Xml.Serialization;
namespace SyntaxTree.FastSpring.Api
{
[XmlRoot(ElementName = "order", IsNullable = false, Namespace = "")]
public sealed class Order : ShortOrder
{
[XmlElement("due")]
public DateTime Due { get; set; }
[XmlElement("currency")]
public string Currency { get; set; }
[XmlElement("referrer")]
public string Referrer { get; set; }
[XmlElement("originIp")]
public string OriginIP{ get; set; }
[XmlElement("total")]
public double Total { get; set; }
[XmlElement("tax")]
public double Tax { get; set; }
[XmlElement("shipping")]
public double Shipping { get; set; }
[XmlElement("sourceName")]
public string SourceName { get; set; }
[XmlElement("sourceKey")]
public string SourceKey { get; set; }
[XmlElement("sourceCampaign")]
public string SourceCampaign { get; set; }
[XmlElement("purchaser")]
public Contact Purchaser { get; set; }
[XmlElement("address")]
public Address Address { get; set; }
[XmlArray("orderItems")]
[XmlArrayItem("orderItem")]
public OrderItem[] Items { get; set; }
[XmlArray("payments")]
[XmlArrayItem("payment")]
public Payment[] Payments { get; set; }
}
}