forked from PedroCavaleiro/whmcs-api
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathGetTransactions.cs
79 lines (56 loc) · 1.83 KB
/
GetTransactions.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
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace WHMCS_API.GetTransactions
{
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 PaymentGateway { 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 GetTransactions
{
[JsonProperty("result")]
public string Result { get; set; }
[JsonProperty("totalresults")]
public int TotalResults { get; set; }
[JsonProperty("startnumber")]
public int StartNumber { get; set; }
[JsonProperty("numreturned")]
public int NumberReturned { get; set; }
[JsonProperty("transactions")]
public Transactions Transactions { get; set; }
}
}