PluginProbe
Charitable – Donation & Fundraising Platform (Donation Forms, Recurring Donations & Fundraising Campaigns) / 1.8.13
Charitable – Donation & Fundraising Platform (Donation Forms, Recurring Donations & Fundraising Campaigns) v1.8.13
1.8.13 1.8.12.3 1.8.12.2 1.8.12.1 1.8.12 1.8.11.3 1.8.11.2 1.8.11.1 1.8.11 1.6.6 1.6.60 1.6.7 1.6.8 1.6.9 1.7.0 1.7.0.1 1.7.0.11 1.7.0.12 1.7.0.14 1.7.0.2 1.7.0.3 1.7.0.5 1.7.0.6 1.7.0.7 1.7.0.9 All 211 releases
charitable / vendor / square / square / src / Terminal / Actions / Requests / SearchTerminalActionsRequest.php

SearchTerminalActionsRequest.php in Charitable – Donation & Fundraising Platform (Donation Forms, Recurring Donations & Fundraising Campaigns) 1.8.13, at vendor/square/square/src/Terminal/Actions/Requests/SearchTerminalActionsRequest.php

103 lines 2.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace Square\Terminal\Actions\Requests;
4
5 use Square\Core\Json\JsonSerializableType;
6 use Square\Types\TerminalActionQuery;
7 use Square\Core\Json\JsonProperty;
8
9 class SearchTerminalActionsRequest extends JsonSerializableType
10 {
11 /**
12 * Queries terminal actions based on given conditions and sort order.
13 * Leaving this unset will return all actions with the default sort order.
14 *
15 * @var ?TerminalActionQuery $query
16 */
17 #[JsonProperty('query')]
18 private ?TerminalActionQuery $query;
19
20 /**
21 * A pagination cursor returned by a previous call to this endpoint.
22 * Provide this to retrieve the next set of results for the original query.
23 * See [Pagination](https://developer.squareup.com/docs/build-basics/common-api-patterns/pagination) for more
24 * information.
25 *
26 * @var ?string $cursor
27 */
28 #[JsonProperty('cursor')]
29 private ?string $cursor;
30
31 /**
32 * @var ?int $limit Limit the number of results returned for a single request.
33 */
34 #[JsonProperty('limit')]
35 private ?int $limit;
36
37 /**
38 * @param array{
39 * query?: ?TerminalActionQuery,
40 * cursor?: ?string,
41 * limit?: ?int,
42 * } $values
43 */
44 public function __construct(
45 array $values = [],
46 ) {
47 $this->query = $values['query'] ?? null;
48 $this->cursor = $values['cursor'] ?? null;
49 $this->limit = $values['limit'] ?? null;
50 }
51
52 /**
53 * @return ?TerminalActionQuery
54 */
55 public function getQuery(): ?TerminalActionQuery
56 {
57 return $this->query;
58 }
59
60 /**
61 * @param ?TerminalActionQuery $value
62 */
63 public function setQuery(?TerminalActionQuery $value = null): self
64 {
65 $this->query = $value;
66 return $this;
67 }
68
69 /**
70 * @return ?string
71 */
72 public function getCursor(): ?string
73 {
74 return $this->cursor;
75 }
76
77 /**
78 * @param ?string $value
79 */
80 public function setCursor(?string $value = null): self
81 {
82 $this->cursor = $value;
83 return $this;
84 }
85
86 /**
87 * @return ?int
88 */
89 public function getLimit(): ?int
90 {
91 return $this->limit;
92 }
93
94 /**
95 * @param ?int $value
96 */
97 public function setLimit(?int $value = null): self
98 {
99 $this->limit = $value;
100 return $this;
101 }
102 }
103