-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMonobank.Types.pas
108 lines (99 loc) · 3.27 KB
/
Monobank.Types.pas
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
unit Monobank.Types;
interface
type
/// <summary>
/// Перелік курсів. Кожна валютна пара може мати одне і більше полів з rateSell, rateBuy, rateCross.
/// </summary>
TmonoCurrencyInfo = class
private
FcurrencyCodeA: Integer;
FcurrencyCodeB: Integer;
Fdate: Integer;
FrateSell: Single;
FrateBuy: Single;
FrateCross: Single;
public
/// <summary>
///
/// </summary>
property CurrencyCodeA: Integer read FcurrencyCodeA;
property CurrencyCodeB: Integer read FcurrencyCodeB;
property Date: Integer read Fdate;
property RateSell: Single read FrateSell;
property RateBuy: Single read FrateBuy;
property RateCross: Single read FrateCross;
end;
TmonoAccount = class
private
Fid: string;
Fbalance: Int64;
FcreditLimit: Int64;
FcurrencyCode: Integer;
FcashbackType: string;
published
/// <summary>
/// Ідентифікатор рахунку
/// </summary>
property id: string read Fid write Fid;
/// <summary>
/// Баланс рахунку в мінімальних одиницях валюти (копійках, центах)
/// </summary>
property balance: Int64 read Fbalance write Fbalance;
/// <summary>
/// Кредитний ліміт
/// </summary>
property creditLimit: Int64 read FcreditLimit write FcreditLimit;
/// <summary>
/// Код валюти рахунку відповідно ISO 4217
/// </summary>
property currencyCode: Integer read FcurrencyCode write FcurrencyCode;
/// <summary>
/// Тип кешбеку який нараховується на рахунок
/// </summary>
property cashbackType: string read FcashbackType write FcashbackType;
end;
/// <summary>
/// Опис клієнта та його рахунків.
/// </summary>
TmonoUserInfo = class
private
Fname: string;
Faccounts: TArray<TmonoAccount>;
public
/// <summary>
/// Ім'я клієнта
/// </summary>
property Name: string read Fname;
/// <summary>
/// Перелік доступних рахунків
/// </summary>
property accounts: TArray<TmonoAccount> read Faccounts write Faccounts;
end;
TmonoStatementItem = class
private
Fid: string;
Ftime: Integer;
Fdescription: string;
Fmcc: Integer;
Fhold: boolean;
Famount: Int64;
FoperationAmount: Int64;
FcurrencyCode: Integer;
FcommissionRate: Int64;
FcashbackAmount: Int64;
Fbalance: int64;
published
property id: string read Fid write Fid;
property time: Integer read Ftime write Ftime;
property description: string read Fdescription write Fdescription;
property mcc: Integer read Fmcc write Fmcc;
property hold: boolean read Fhold write Fhold;
property amount: Int64 read Famount write Famount;
property operationAmount: Int64 read FoperationAmount write FoperationAmount;
property currencyCode: Integer read FcurrencyCode write FcurrencyCode;
property commissionRate: Int64 read FcommissionRate write FcommissionRate;
property cashbackAmount: Int64 read FcashbackAmount write FcashbackAmount;
property balance: int64 read Fbalance write Fbalance;
end;
implementation
end.