-
Notifications
You must be signed in to change notification settings - Fork 93
/
Copy pathbilling_info.php
428 lines (390 loc) · 9.4 KB
/
billing_info.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
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
<?php
/**
* This file is automatically created by Recurly's OpenAPI generation process
* and thus any edits you make by hand will be lost. If you wish to make a
* change to this file, please create a Github issue explaining the changes you
* need and we will usher them to the appropriate places.
*/
namespace Recurly\Resources;
use Recurly\RecurlyResource;
// phpcs:disable
class BillingInfo extends RecurlyResource
{
private $_account_id;
private $_address;
private $_backup_payment_method;
private $_company;
private $_created_at;
private $_first_name;
private $_fraud;
private $_id;
private $_last_name;
private $_object;
private $_payment_gateway_references;
private $_payment_method;
private $_primary_payment_method;
private $_updated_at;
private $_updated_by;
private $_valid;
private $_vat_number;
protected static $array_hints = [
'setPaymentGatewayReferences' => '\Recurly\Resources\PaymentGatewayReferences',
];
/**
* Getter method for the account_id attribute.
*
*
* @return ?string
*/
public function getAccountId(): ?string
{
return $this->_account_id;
}
/**
* Setter method for the account_id attribute.
*
* @param string $account_id
*
* @return void
*/
public function setAccountId(string $account_id): void
{
$this->_account_id = $account_id;
}
/**
* Getter method for the address attribute.
*
*
* @return ?\Recurly\Resources\Address
*/
public function getAddress(): ?\Recurly\Resources\Address
{
return $this->_address;
}
/**
* Setter method for the address attribute.
*
* @param \Recurly\Resources\Address $address
*
* @return void
*/
public function setAddress(\Recurly\Resources\Address $address): void
{
$this->_address = $address;
}
/**
* Getter method for the backup_payment_method attribute.
* The `backup_payment_method` field is used to indicate a billing info as a backup on the account that will be tried if the initial billing info used for an invoice is declined.
*
* @return ?bool
*/
public function getBackupPaymentMethod(): ?bool
{
return $this->_backup_payment_method;
}
/**
* Setter method for the backup_payment_method attribute.
*
* @param bool $backup_payment_method
*
* @return void
*/
public function setBackupPaymentMethod(bool $backup_payment_method): void
{
$this->_backup_payment_method = $backup_payment_method;
}
/**
* Getter method for the company attribute.
*
*
* @return ?string
*/
public function getCompany(): ?string
{
return $this->_company;
}
/**
* Setter method for the company attribute.
*
* @param string $company
*
* @return void
*/
public function setCompany(string $company): void
{
$this->_company = $company;
}
/**
* Getter method for the created_at attribute.
* When the billing information was created.
*
* @return ?string
*/
public function getCreatedAt(): ?string
{
return $this->_created_at;
}
/**
* Setter method for the created_at attribute.
*
* @param string $created_at
*
* @return void
*/
public function setCreatedAt(string $created_at): void
{
$this->_created_at = $created_at;
}
/**
* Getter method for the first_name attribute.
*
*
* @return ?string
*/
public function getFirstName(): ?string
{
return $this->_first_name;
}
/**
* Setter method for the first_name attribute.
*
* @param string $first_name
*
* @return void
*/
public function setFirstName(string $first_name): void
{
$this->_first_name = $first_name;
}
/**
* Getter method for the fraud attribute.
* Most recent fraud result.
*
* @return ?\Recurly\Resources\FraudInfo
*/
public function getFraud(): ?\Recurly\Resources\FraudInfo
{
return $this->_fraud;
}
/**
* Setter method for the fraud attribute.
*
* @param \Recurly\Resources\FraudInfo $fraud
*
* @return void
*/
public function setFraud(\Recurly\Resources\FraudInfo $fraud): void
{
$this->_fraud = $fraud;
}
/**
* Getter method for the id attribute.
*
*
* @return ?string
*/
public function getId(): ?string
{
return $this->_id;
}
/**
* Setter method for the id attribute.
*
* @param string $id
*
* @return void
*/
public function setId(string $id): void
{
$this->_id = $id;
}
/**
* Getter method for the last_name attribute.
*
*
* @return ?string
*/
public function getLastName(): ?string
{
return $this->_last_name;
}
/**
* Setter method for the last_name attribute.
*
* @param string $last_name
*
* @return void
*/
public function setLastName(string $last_name): void
{
$this->_last_name = $last_name;
}
/**
* Getter method for the object attribute.
* Object type
*
* @return ?string
*/
public function getObject(): ?string
{
return $this->_object;
}
/**
* Setter method for the object attribute.
*
* @param string $object
*
* @return void
*/
public function setObject(string $object): void
{
$this->_object = $object;
}
/**
* Getter method for the payment_gateway_references attribute.
* Array of Payment Gateway References, each a reference to a third-party gateway object of varying types.
*
* @return array
*/
public function getPaymentGatewayReferences(): array
{
return $this->_payment_gateway_references ?? [] ;
}
/**
* Setter method for the payment_gateway_references attribute.
*
* @param array $payment_gateway_references
*
* @return void
*/
public function setPaymentGatewayReferences(array $payment_gateway_references): void
{
$this->_payment_gateway_references = $payment_gateway_references;
}
/**
* Getter method for the payment_method attribute.
*
*
* @return ?\Recurly\Resources\PaymentMethod
*/
public function getPaymentMethod(): ?\Recurly\Resources\PaymentMethod
{
return $this->_payment_method;
}
/**
* Setter method for the payment_method attribute.
*
* @param \Recurly\Resources\PaymentMethod $payment_method
*
* @return void
*/
public function setPaymentMethod(\Recurly\Resources\PaymentMethod $payment_method): void
{
$this->_payment_method = $payment_method;
}
/**
* Getter method for the primary_payment_method attribute.
* The `primary_payment_method` field is used to indicate the primary billing info on the account. The first billing info created on an account will always become primary. This payment method will be used
*
* @return ?bool
*/
public function getPrimaryPaymentMethod(): ?bool
{
return $this->_primary_payment_method;
}
/**
* Setter method for the primary_payment_method attribute.
*
* @param bool $primary_payment_method
*
* @return void
*/
public function setPrimaryPaymentMethod(bool $primary_payment_method): void
{
$this->_primary_payment_method = $primary_payment_method;
}
/**
* Getter method for the updated_at attribute.
* When the billing information was last changed.
*
* @return ?string
*/
public function getUpdatedAt(): ?string
{
return $this->_updated_at;
}
/**
* Setter method for the updated_at attribute.
*
* @param string $updated_at
*
* @return void
*/
public function setUpdatedAt(string $updated_at): void
{
$this->_updated_at = $updated_at;
}
/**
* Getter method for the updated_by attribute.
*
*
* @return ?\Recurly\Resources\BillingInfoUpdatedBy
*/
public function getUpdatedBy(): ?\Recurly\Resources\BillingInfoUpdatedBy
{
return $this->_updated_by;
}
/**
* Setter method for the updated_by attribute.
*
* @param \Recurly\Resources\BillingInfoUpdatedBy $updated_by
*
* @return void
*/
public function setUpdatedBy(\Recurly\Resources\BillingInfoUpdatedBy $updated_by): void
{
$this->_updated_by = $updated_by;
}
/**
* Getter method for the valid attribute.
*
*
* @return ?bool
*/
public function getValid(): ?bool
{
return $this->_valid;
}
/**
* Setter method for the valid attribute.
*
* @param bool $valid
*
* @return void
*/
public function setValid(bool $valid): void
{
$this->_valid = $valid;
}
/**
* Getter method for the vat_number attribute.
* Customer's VAT number (to avoid having the VAT applied). This is only used for automatically collected invoices.
*
* @return ?string
*/
public function getVatNumber(): ?string
{
return $this->_vat_number;
}
/**
* Setter method for the vat_number attribute.
*
* @param string $vat_number
*
* @return void
*/
public function setVatNumber(string $vat_number): void
{
$this->_vat_number = $vat_number;
}
}