-
Notifications
You must be signed in to change notification settings - Fork 54
/
DraftPaymentEntry.php
237 lines (210 loc) · 4.76 KB
/
DraftPaymentEntry.php
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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
<?php
namespace bunq\Model\Generated\Object;
use bunq\Model\Core\BunqModel;
/**
* @generated
*/
class DraftPaymentEntry extends BunqModel
{
/**
* The amount of the payment.
*
* @var Amount
*/
protected $amount;
/**
* The LabelMonetaryAccount containing the public information of the other
* (counterparty) side of the DraftPayment.
*
* @var LabelMonetaryAccount
*/
protected $counterpartyAlias;
/**
* The description for the DraftPayment. Maximum 140 characters for
* DraftPayments to external IBANs, 9000 characters for DraftPayments to
* only other bunq MonetaryAccounts.
*
* @var string
*/
protected $description;
/**
* Optional data to be included with the Payment specific to the merchant.
*
* @var string
*/
protected $merchantReference;
/**
* The Attachments attached to the DraftPayment.
*
* @var AttachmentMonetaryAccountPayment[]
*/
protected $attachment;
/**
* Whether or not sending a bunq.to payment is allowed.
*
* @var bool
*/
protected $allowBunqto;
/**
* The id of the draft payment entry.
*
* @var int
*/
protected $id;
/**
* The LabelMonetaryAccount containing the public information of 'this'
* (party) side of the DraftPayment.
*
* @var LabelMonetaryAccount
*/
protected $alias;
/**
* The type of the draft payment entry.
*
* @var string
*/
protected $type;
/**
* @param Amount $amount
* @param Pointer $counterpartyAlias
* @param string $description
*/
public function __construct(Amount $amount, Pointer $counterpartyAlias, $description)
{
$this->amount = $amount;
$this->counterpartyAlias = $counterpartyAlias;
$this->description = $description;
}
/**
* The id of the draft payment entry.
*
* @return int
*/
public function getId()
{
return $this->id;
}
/**
* @param int $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* The amount of the payment.
*
* @return Amount
*/
public function getAmount()
{
return $this->amount;
}
/**
* @param Amount $amount
*/
public function setAmount($amount)
{
$this->amount = $amount;
}
/**
* The LabelMonetaryAccount containing the public information of 'this'
* (party) side of the DraftPayment.
*
* @return LabelMonetaryAccount
*/
public function getAlias()
{
return $this->alias;
}
/**
* @param LabelMonetaryAccount $alias
*/
public function setAlias($alias)
{
$this->alias = $alias;
}
/**
* The LabelMonetaryAccount containing the public information of the other
* (counterparty) side of the DraftPayment.
*
* @return LabelMonetaryAccount
*/
public function getCounterpartyAlias()
{
return $this->counterpartyAlias;
}
/**
* @param LabelMonetaryAccount $counterpartyAlias
*/
public function setCounterpartyAlias($counterpartyAlias)
{
$this->counterpartyAlias = $counterpartyAlias;
}
/**
* The description for the DraftPayment. Maximum 140 characters for
* DraftPayments to external IBANs, 9000 characters for DraftPayments to
* only other bunq MonetaryAccounts.
*
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* Optional data to be included with the Payment specific to the merchant.
*
* @return string
*/
public function getMerchantReference()
{
return $this->merchantReference;
}
/**
* @param string $merchantReference
*/
public function setMerchantReference($merchantReference)
{
$this->merchantReference = $merchantReference;
}
/**
* The type of the draft payment entry.
*
* @return string
*/
public function getType()
{
return $this->type;
}
/**
* @param string $type
*/
public function setType($type)
{
$this->type = $type;
}
/**
* The Attachments attached to the DraftPayment.
*
* @return AttachmentMonetaryAccountPayment[]
*/
public function getAttachment()
{
return $this->attachment;
}
/**
* @param AttachmentMonetaryAccountPayment[] $attachment
*/
public function setAttachment($attachment)
{
$this->attachment = $attachment;
}
}