forked from PedroCavaleiro/whmcs-api
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathGetOrders.cs
164 lines (114 loc) · 4.02 KB
/
GetOrders.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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
namespace WHMCS_API.GetOrders
{
public class Lineitem
{
[JsonProperty("type")]
public string Type { get; set; }
[JsonProperty("relid")]
public string relid { get; set; }
[JsonProperty("producttype")]
public string ProductType { get; set; }
[JsonProperty("product")]
public string Product { get; set; }
[JsonProperty("domain")]
public string Domain { get; set; }
[JsonProperty("billingcycle")]
public string BillingCycle { get; set; }
[JsonProperty("amount")]
public string Amount { get; set; }
[JsonProperty("status")]
public string Status { get; set; }
[JsonProperty("dnsmanagement")]
public string DNSManagment { get; set; }
[JsonProperty("emailforwarding")]
public string EmailFowarding { get; set; }
[JsonProperty("idprotection")]
public string IDProtection { get; set; }
}
public class Lineitems
{
[JsonProperty("lineitem")]
public IList<Lineitem> LineItem { get; set; }
}
public class Order
{
[JsonProperty("id")]
public string ID { get; set; }
[JsonProperty("ordernum")]
public string OrderNumber { get; set; }
[JsonProperty("userid")]
public string UserID { get; set; }
[JsonProperty("contactid")]
public string ContactID { get; set; }
[JsonProperty("date")]
public string Date { get; set; }
[JsonProperty("nameservers")]
public string NameServers { get; set; }
[JsonProperty("transfersecret")]
public string TransfererSecret { get; set; }
[JsonProperty("renewals")]
public string RenewalsSecret { get; set; }
[JsonProperty("promocode")]
public string PromoCode { get; set; }
[JsonProperty("promotype")]
public string PromoType { get; set; }
[JsonProperty("promovalue")]
public string PromoValue { get; set; }
[JsonProperty("orderdata")]
public string OrderData { get; set; }
[JsonProperty("amount")]
public string Amount { get; set; }
[JsonProperty("paymentmethod")]
public string PaymentMethod { get; set; }
[JsonProperty("invoiceid")]
public string InvoiceID { get; set; }
[JsonProperty("status")]
public string Status { get; set; }
[JsonProperty("ipaddress")]
public string IPAddress { get; set; }
[JsonProperty("fraudmodule")]
public string FraudModule { get; set; }
[JsonProperty("fraudoutput")]
public string FraudOutput { get; set; }
[JsonProperty("notes")]
public string Notes { get; set; }
[JsonProperty("paymentmethodname")]
public string PaymentMethodName { get; set; }
[JsonProperty("paymentstatus")]
public string PaymentStatus { get; set; }
[JsonProperty("name")]
public string Name { get; set; }
[JsonProperty("currencyprefix")]
public string CurrencyPrefix { get; set; }
[JsonProperty("currencysuffix")]
public string CurrencySuffix { get; set; }
[JsonProperty("frauddata")]
public string FraudData { get; set; }
[JsonProperty("lineitems")]
public Lineitems LineItems { get; set; }
}
public class Orders
{
[JsonProperty("order")]
public IList<Order> Order { get; set; }
}
public class GetOrders
{
[JsonProperty("result")]
public string Result { get; set; }
[JsonProperty("totalresults")]
public string TotalResults { get; set; }
[JsonProperty("startnumber")]
public int StartNumber { get; set; }
[JsonProperty("numreturned")]
public int NumberReturned { get; set; }
[JsonProperty("orders")]
public Orders Orders { get; set; }
}
}