CreateWalletAddressResponse::getWalletId()   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\CreateWalletAddress;
17
18
use Bitaps\WalletAPI\Response\AbstractResponse;
19
20
class CreateWalletAddressResponse extends AbstractResponse
21
{
22
    /**
23
     * Public ID for payment address
24
     *
25
     * @var string
26
     */
27
    private string $invoice;
28
29
    /**
30
     * Payment code, used to authenticate payment notifications (this code should not be disclosed for security reasons)
31
     *
32
     * @var string
33
     */
34
    private string $paymentCode;
35
36
    /**
37
     * Payment address
38
     *
39
     * @var string
40
     */
41
    private string $address;
42
43
    /**
44
     * Payment address in old format
45
     *
46
     * @var string|null
47
     */
48
    private ?string $legacyAddress;
49
50
    /**
51
     * Number of confirmations for payment notification
52
     *
53
     * @var int
54
     */
55
    private int $confirmations;
56
57
    /**
58
     * Link to the payment notification handler
59
     *
60
     * @var string|null
61
     */
62
    private ?string $callbackLink;
63
64
    /**
65
     * @var string|null
66
     */
67
    private ?string $notificationLinkDomain;
68
69
    /**
70
     * Wallet ID
71
     *
72
     * @var string|null
73
     */
74
    private ?string $walletId;
75
76
    /**
77
     * @var string
78
     */
79
    private string $walletIdHash;
80
81
    /**
82
     * Currency
83
     *
84
     * @var string
85
     */
86
    private string $currency;
87
88
    /**
89
     * @return string
90
     */
91
    public function getInvoice(): string
92
    {
93
        return $this->invoice;
94
    }
95
96
    /**
97
     * @return string
98
     */
99
    public function getPaymentCode(): string
100
    {
101
        return $this->paymentCode;
102
    }
103
104
    /**
105
     * @return string
106
     */
107
    public function getAddress(): string
108
    {
109
        return $this->address;
110
    }
111
112
    /**
113
     * @return string|null
114
     */
115
    public function getLegacyAddress(): ?string
116
    {
117
        return $this->legacyAddress;
118
    }
119
120
    /**
121
     * @return int
122
     */
123
    public function getConfirmations(): int
124
    {
125
        return $this->confirmations;
126
    }
127
128
    /**
129
     * @return string|null
130
     */
131
    public function getCallbackLink(): ?string
132
    {
133
        return $this->callbackLink;
134
    }
135
136
    /**
137
     * @return string|null
138
     */
139
    public function getNotificationLinkDomain(): ?string
140
    {
141
        return $this->notificationLinkDomain;
142
    }
143
144
    /**
145
     * @return string|null
146
     */
147
    public function getWalletId(): ?string
148
    {
149
        return $this->walletId;
150
    }
151
152
    /**
153
     * @return string
154
     */
155
    public function getWalletIdHash(): string
156
    {
157
        return $this->walletIdHash;
158
    }
159
160
    /**
161
     * @return string
162
     */
163
    public function getCurrency(): string
164
    {
165
        return $this->currency;
166
    }
167
}
168