forked from PedroCavaleiro/whmcs-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
GetClientsProducts.cs
209 lines (150 loc) · 5.37 KB
/
GetClientsProducts.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
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace WHMCS_API.GetClientsProducts
{
public class Customfields
{
[JsonProperty("customfield")]
public IList<Customfield> CustomField { get; set; }
}
public class Customfield
{
[JsonProperty("id")]
public string ID { get; set; }
[JsonProperty("name")]
public string Name { get; set; }
[JsonProperty("translated_name")]
public string TranslatedName { get; set; }
[JsonProperty("value")]
public string Value { get; set; }
}
public class Configoptions
{
[JsonProperty("configoption")]
public IList<Configoption> ConfigOption { get; set; }
}
public class Configoption
{
[JsonProperty("id")]
public string ID { get; set; }
[JsonProperty("option")]
public string Option { get; set; }
[JsonProperty("type")]
public string Type { get; set; }
[JsonProperty("value")]
public object Value { get; set; }
}
public class Product
{
[JsonProperty("id")]
public string ID { get; set; }
[JsonProperty("clientid")]
public string ClientID { get; set; }
[JsonProperty("orderid")]
public string OrderID { get; set; }
[JsonProperty("pid")]
public string ProductID { get; set; }
[JsonProperty("regdate")]
public string RegistryDate { get; set; }
[JsonProperty("name")]
public string Name { get; set; }
[JsonProperty("translated_name")]
public string TranslatedName { get; set; }
[JsonProperty("groupname")]
public string GroupName { get; set; }
[JsonProperty("translated_groupname")]
public string TranslatedGroupName { get; set; }
[JsonProperty("domain")]
public string Domain { get; set; }
[JsonProperty("dedicatedip")]
public string DedicatedIP { get; set; }
[JsonProperty("serverid")]
public string ServerID { get; set; }
[JsonProperty("servername")]
public string ServerName { get; set; }
[JsonProperty("serverip")]
public string ServerIP { get; set; }
[JsonProperty("serverhostname")]
public string ServerHostname { get; set; }
[JsonProperty("suspensionreason")]
public string SuspensionReason { get; set; }
[JsonProperty("firstpaymentamount")]
public string FirstPaymentAmount { get; set; }
[JsonProperty("recurringamount")]
public string RecurringAmount { get; set; }
[JsonProperty("paymentmethod")]
public string PaymentMethod { get; set; }
[JsonProperty("paymentmethodname")]
public string PaymentMethodName { get; set; }
[JsonProperty("billingcycle")]
public string BillingCycle { get; set; }
[JsonProperty("nextduedate")]
public string NextDueDate { get; set; }
[JsonProperty("status")]
public string Status { get; set; }
[JsonProperty("username")]
public string Username { get; set; }
[JsonProperty("password")]
public string Password { get; set; }
[JsonProperty("subscriptionid")]
public string Subscription { get; set; }
[JsonProperty("promoid")]
public string PromotionID { get; set; }
[JsonProperty("overideautosuspend")]
public string OverideAutoSuspend { get; set; }
[JsonProperty("overidesuspenduntil")]
public string OverideSuspendUntil { get; set; }
[JsonProperty("ns1")]
public string Nameserver1 { get; set; }
[JsonProperty("ns2")]
public string Nameserver2 { get; set; }
[JsonProperty("assignedips")]
public string AssignedIPs { get; set; }
[JsonProperty("notes")]
public string Notes { get; set; }
[JsonProperty("diskusage")]
public string DiskUsage { get; set; }
[JsonProperty("disklimit")]
public string DiskLimit { get; set; }
[JsonProperty("bwusage")]
public string BandwithUsage { get; set; }
[JsonProperty("bwlimit")]
public string BandwithLimit { get; set; }
[JsonProperty("lastupdate")]
public string LastUpdate { get; set; }
[JsonProperty("customfields")]
public Customfields CustomFields { get; set; }
[JsonProperty("configoptions")]
public Configoptions ConfigOptions { get; set; }
}
public class Products
{
[JsonProperty("product")]
public IList<Product> Product { get; set; }
}
public class GetClientsProducts
{
[JsonProperty("result")]
public string Result { get; set; }
[JsonProperty("clientid")]
public string ClientID { get; set; }
[JsonProperty("serviceid")]
public int ServiceID { get; set; }
[JsonProperty("pid")]
public int ProductID { get; set; }
[JsonProperty("domain")]
public string Domain { get; set; }
[JsonProperty("totalresults")]
public string TotalResults { get; set; }
[JsonProperty("startnumber")]
public int StartNumber { get; set; }
[JsonProperty("numreturned")]
public int NumberReturned { get; set; }
[JsonProperty("products")]
public Products Products { get; set; }
}
}