forked from PedroCavaleiro/whmcs-api
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathGetInvoice.cs
155 lines (108 loc) · 3.61 KB
/
GetInvoice.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
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace WHMCS_API.GetInvoice
{
public class Item
{
[JsonProperty("id")]
public string ID { get; set; }
[JsonProperty("type")]
public string Type { get; set; }
[JsonProperty("relid")]
public string relid { get; set; }
[JsonProperty("description")]
public string Description { get; set; }
[JsonProperty("amount")]
public string Amount { get; set; }
[JsonProperty("taxed")]
public string Taxed { get; set; }
}
public class Items
{
[JsonProperty("item")]
public IList<Item> Item { get; set; }
}
public class Transaction
{
[JsonProperty("id")]
public string ID { get; set; }
[JsonProperty("userid")]
public string UserID { get; set; }
[JsonProperty("currency")]
public string Currency { get; set; }
[JsonProperty("gateway")]
public string Gateway { get; set; }
[JsonProperty("date")]
public string Date { get; set; }
[JsonProperty("description")]
public string Description { get; set; }
[JsonProperty("amountin")]
public string AmountIn { get; set; }
[JsonProperty("fees")]
public string Fees { get; set; }
[JsonProperty("amountout")]
public string AmountOut { get; set; }
[JsonProperty("rate")]
public string Rate { get; set; }
[JsonProperty("transid")]
public string TransactionID { get; set; }
[JsonProperty("invoiceid")]
public string InvoiceID { get; set; }
[JsonProperty("refundid")]
public string RefundID { get; set; }
}
public class Transactions
{
[JsonProperty("transaction")]
public IList<Transaction> Transaction { get; set; }
}
public class GetInvoice
{
[JsonProperty("result")]
public string Result { get; set; }
[JsonProperty("invoiceid")]
public string InvoiceID { get; set; }
[JsonProperty("invoicenum")]
public string InvoiceNumber { get; set; }
[JsonProperty("userid")]
public string UserID { get; set; }
[JsonProperty("date")]
public string Date { get; set; }
[JsonProperty("duedate")]
public string DueDate { get; set; }
[JsonProperty("datepaid")]
public string DatePaid { get; set; }
[JsonProperty("subtotal")]
public string SubTotal { get; set; }
[JsonProperty("credit")]
public string Credit { get; set; }
[JsonProperty("tax")]
public string Tax { get; set; }
[JsonProperty("tax2")]
public string Tax2 { get; set; }
[JsonProperty("total")]
public string Total { get; set; }
[JsonProperty("balance")]
public string Balance { get; set; }
[JsonProperty("taxrate")]
public string TaxRate { get; set; }
[JsonProperty("taxrate2")]
public string TaxRate2 { get; set; }
[JsonProperty("status")]
public string Status { get; set; }
[JsonProperty("paymentmethod")]
public string PaymentMethod { get; set; }
[JsonProperty("notes")]
public string Notes { get; set; }
[JsonProperty("ccgateway")]
public bool CCGateway { get; set; }
[JsonProperty("items")]
public Items Items { get; set; }
[JsonProperty("transactions")]
public Transactions Transactions { get; set; }
}
}