WalletStateResponse::getPendingReceivedAmount()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
1
<?php
2
3
declare(strict_types=1);
4
5
/*
6
 * Package: PHP Bitaps API
7
 *
8
 * (c) Eldar Gazaliev <[email protected]>
9
 *
10
 *  Link: <https://github.com/MyZik>
11
 *
12
 * For the full copyright and license information, please view the LICENSE file
13
 * that was distributed with this source code.
14
 */
15
16
namespace Bitaps\WalletAPI\Response\WalletState;
17
18
use Bitaps\WalletAPI\Response\AbstractResponse;
19
20
class WalletStateResponse extends AbstractResponse
21
{
22
    /**
23
     * Wallet ID
24
     *
25
     * @var string|null
26
     */
27
    private ?string $walletId = null;
28
29
    /**
30
     * Wallet address count
31
     *
32
     * @var int
33
     */
34
    private int $addressCount;
35
36
    /**
37
     * Amount of unconfirmed transactions
38
     *
39
     * @var int
40
     */
41
    private int $pendingReceivedAmount;
42
43
    /**
44
     * Amount of outgoing unconfirmed transactions
45
     *
46
     * @var int
47
     */
48
    private int $pendingSentAmount;
49
50
    /**
51
     * Amount of incoming transactions
52
     *
53
     * @var int
54
     */
55
    private int $receivedAmount;
56
57
    /**
58
     * Amount of outgoing transactions
59
     *
60
     * @var int
61
     */
62
    private int $sentAmount;
63
64
    /**
65
     * Amount of paid service fee
66
     *
67
     * @var int
68
     */
69
    private int $serviceFeePaidAmount;
70
71
    /**
72
     * Outgoing transactions count
73
     *
74
     * @var int
75
     */
76
    private int $sentTx;
77
78
    /**
79
     * Count of incoming transactions
80
     *
81
     * @var int
82
     */
83
    private int $receivedTx;
84
85
    /**
86
     * Unconfirmed outgoing transactions count
87
     *
88
     * @var int
89
     */
90
    private int $pendingSentTx;
91
92
    /**
93
     * Amount of unconfirmed transactions
94
     *
95
     * @var int
96
     */
97
    private int $pendingReceivedTx;
98
99
    /**
100
     * Count of invalid transactions
101
     *
102
     * @var int
103
     */
104
    private int $invalidTx;
105
106
    /**
107
     * Wallet balance
108
     *
109
     * @var int
110
     */
111
    private int $balanceAmount;
112
113
    /**
114
     * Creation time in format ISO UTC 0
115
     *
116
     * @var string
117
     */
118
    private string $createDate;
119
120
    /**
121
     * Date of creation of the wallet in UNIX timestamp format
122
     *
123
     * @var int
124
     */
125
    private int $createDateTimestamp;
126
127
    /**
128
     * @var int|null
129
     */
130
    private ?int $lastUsedNonce = null;
131
132
    /**
133
     * @var string
134
     */
135
    private string $walletIdHash;
136
137
    /**
138
     * @var string|null
139
     */
140
    private ?string $notificationLinkDomain = null;
141
142
    /**
143
     * @var int
144
     */
145
    private int $successCallbacks;
146
147
    /**
148
     * @var int
149
     */
150
    private int $failedCallbacks;
151
152
    /**
153
     * @var string
154
     */
155
    private string $currency;
156
157
    /**
158
     * @return string|null
159
     */
160
    public function getWalletId(): ?string
161
    {
162
        return $this->walletId;
163
    }
164
165
    /**
166
     * @return int
167
     */
168
    public function getAddressCount(): int
169
    {
170
        return $this->addressCount;
171
    }
172
173
    /**
174
     * @return int
175
     */
176
    public function getPendingReceivedAmount(): int
177
    {
178
        return $this->pendingReceivedAmount;
179
    }
180
181
    /**
182
     * @return int
183
     */
184
    public function getPendingSentAmount(): int
185
    {
186
        return $this->pendingSentAmount;
187
    }
188
189
    /**
190
     * @return int
191
     */
192
    public function getReceivedAmount(): int
193
    {
194
        return $this->receivedAmount;
195
    }
196
197
    /**
198
     * @return int
199
     */
200
    public function getSentAmount(): int
201
    {
202
        return $this->sentAmount;
203
    }
204
205
    /**
206
     * @return int
207
     */
208
    public function getServiceFeePaidAmount(): int
209
    {
210
        return $this->serviceFeePaidAmount;
211
    }
212
213
    /**
214
     * @return int
215
     */
216
    public function getSentTx(): int
217
    {
218
        return $this->sentTx;
219
    }
220
221
    /**
222
     * @return int
223
     */
224
    public function getReceivedTx(): int
225
    {
226
        return $this->receivedTx;
227
    }
228
229
    /**
230
     * @return int
231
     */
232
    public function getPendingSentTx(): int
233
    {
234
        return $this->pendingSentTx;
235
    }
236
237
    /**
238
     * @return int
239
     */
240
    public function getPendingReceivedTx(): int
241
    {
242
        return $this->pendingReceivedTx;
243
    }
244
245
    /**
246
     * @return int
247
     */
248
    public function getInvalidTx(): int
249
    {
250
        return $this->invalidTx;
251
    }
252
253
    /**
254
     * @return int
255
     */
256
    public function getBalanceAmount(): int
257
    {
258
        return $this->balanceAmount;
259
    }
260
261
    /**
262
     * @return string
263
     */
264
    public function getCreateDate(): string
265
    {
266
        return $this->createDate;
267
    }
268
269
    /**
270
     * @return int
271
     */
272
    public function getCreateDateTimestamp(): int
273
    {
274
        return $this->createDateTimestamp;
275
    }
276
277
    /**
278
     * @return int|null
279
     */
280
    public function getLastUsedNonce(): ?int
281
    {
282
        return $this->lastUsedNonce;
283
    }
284
285
    /**
286
     * @return string
287
     */
288
    public function getWalletIdHash(): string
289
    {
290
        return $this->walletIdHash;
291
    }
292
293
    /**
294
     * @return string|null
295
     */
296
    public function getNotificationLinkDomain(): ?string
297
    {
298
        return $this->notificationLinkDomain;
299
    }
300
301
    /**
302
     * @return int
303
     */
304
    public function getSuccessCallbacks(): int
305
    {
306
        return $this->successCallbacks;
307
    }
308
309
    /**
310
     * @return int
311
     */
312
    public function getFailedCallbacks(): int
313
    {
314
        return $this->failedCallbacks;
315
    }
316
317
    /**
318
     * @return string
319
     */
320
    public function getCurrency(): string
321
    {
322
        return $this->currency;
323
    }
324
}
325