forked from PedroCavaleiro/whmcs-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
GetInvoices.cs
105 lines (74 loc) · 2.52 KB
/
GetInvoices.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
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace WHMCS_API.GetInvoices
{
public class Invoice
{
[JsonProperty("id")]
public string ID { get; set; }
[JsonProperty("userid")]
public string UserID { get; set; }
[JsonProperty("firstname")]
public string Firstname { get; set; }
[JsonProperty("lastname")]
public string Lastname { get; set; }
[JsonProperty("companyname")]
public string CompanyName { get; set; }
[JsonProperty("invoicenum")]
public string InvoiceNumber { 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("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("currencycode")]
public string CurrencyCode { get; set; }
[JsonProperty("currencyprefix")]
public string CurrencyPrefix { get; set; }
[JsonProperty("currencysuffix")]
public string CurrencySuffix { get; set; }
}
public class Invoices
{
[JsonProperty("invoice")]
public IList<Invoice> Invoice { get; set; }
}
public class GetInvoices
{
[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("invoices")]
public Invoices Invoices { get; set; }
}
}