-
Notifications
You must be signed in to change notification settings - Fork 53
Expand file tree
/
Copy pathListBankAccountsRequest.php
More file actions
133 lines (118 loc) · 3.02 KB
/
ListBankAccountsRequest.php
File metadata and controls
133 lines (118 loc) · 3.02 KB
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
<?php
namespace Square\BankAccounts\Requests;
use Square\Core\Json\JsonSerializableType;
class ListBankAccountsRequest extends JsonSerializableType
{
/**
* The pagination cursor returned by a previous call to this endpoint.
* Use it in the next `ListBankAccounts` request to retrieve the next set
* of results.
*
* See the [Pagination](https://developer.squareup.com/docs/working-with-apis/pagination) guide for more information.
*
* @var ?string $cursor
*/
private ?string $cursor;
/**
* Upper limit on the number of bank accounts to return in the response.
* Currently, 1000 is the largest supported limit. You can specify a limit
* of up to 1000 bank accounts. This is also the default limit.
*
* @var ?int $limit
*/
private ?int $limit;
/**
* Location ID. You can specify this optional filter
* to retrieve only the linked bank accounts belonging to a specific location.
*
* @var ?string $locationId
*/
private ?string $locationId;
/**
* Customer ID. You can specify this optional filter
* to retrieve only the linked bank accounts belonging to a specific customer.
*
* @var ?string $customerId
*/
private ?string $customerId;
/**
* @param array{
* cursor?: ?string,
* limit?: ?int,
* locationId?: ?string,
* customerId?: ?string,
* } $values
*/
public function __construct(
array $values = [],
) {
$this->cursor = $values['cursor'] ?? null;
$this->limit = $values['limit'] ?? null;
$this->locationId = $values['locationId'] ?? null;
$this->customerId = $values['customerId'] ?? null;
}
/**
* @return ?string
*/
public function getCursor(): ?string
{
return $this->cursor;
}
/**
* @param ?string $value
*/
public function setCursor(?string $value = null): self
{
$this->cursor = $value;
$this->_setField('cursor');
return $this;
}
/**
* @return ?int
*/
public function getLimit(): ?int
{
return $this->limit;
}
/**
* @param ?int $value
*/
public function setLimit(?int $value = null): self
{
$this->limit = $value;
$this->_setField('limit');
return $this;
}
/**
* @return ?string
*/
public function getLocationId(): ?string
{
return $this->locationId;
}
/**
* @param ?string $value
*/
public function setLocationId(?string $value = null): self
{
$this->locationId = $value;
$this->_setField('locationId');
return $this;
}
/**
* @return ?string
*/
public function getCustomerId(): ?string
{
return $this->customerId;
}
/**
* @param ?string $value
*/
public function setCustomerId(?string $value = null): self
{
$this->customerId = $value;
$this->_setField('customerId');
return $this;
}
}