PluginProbe
WooCommerce Square / 2.2.5
WooCommerce Square v2.2.5
5.5.0 5.4.3 5.4.2 5.4.1 5.4.0 trunk 1.0.25 1.0.26 1.0.27 1.0.28 1.0.29 1.0.30 1.0.31 1.0.32 1.0.33 1.0.34 1.0.35 1.0.36 1.0.37 1.0.38 2.0.0 2.0.1 2.0.2 2.0.3 2.0.4 All 132 releases
woocommerce-square / vendor / square / connect / lib / Model / ListRefundsRequest.php
ListRefundsRequest.php
246 lines 7.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * NOTE: This class is auto generated by the swagger code generator program.
4 * https://github.com/swagger-api/swagger-codegen
5 * Do not edit the class manually.
6 */
7
8 namespace SquareConnect\Model;
9
10 use \ArrayAccess;
11 /**
12 * ListRefundsRequest Class Doc Comment
13 *
14 * @category Class
15 * @package SquareConnect
16 * @author Square Inc.
17 * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License v2
18 * @link https://squareup.com/developers
19 */
20 class ListRefundsRequest implements ArrayAccess
21 {
22 /**
23 * Array of property to type mappings. Used for (de)serialization
24 * @var string[]
25 */
26 static $swaggerTypes = array(
27 'begin_time' => 'string',
28 'end_time' => 'string',
29 'sort_order' => 'string',
30 'cursor' => 'string'
31 );
32
33 /**
34 * Array of attributes where the key is the local name, and the value is the original name
35 * @var string[]
36 */
37 static $attributeMap = array(
38 'begin_time' => 'begin_time',
39 'end_time' => 'end_time',
40 'sort_order' => 'sort_order',
41 'cursor' => 'cursor'
42 );
43
44 /**
45 * Array of attributes to setter functions (for deserialization of responses)
46 * @var string[]
47 */
48 static $setters = array(
49 'begin_time' => 'setBeginTime',
50 'end_time' => 'setEndTime',
51 'sort_order' => 'setSortOrder',
52 'cursor' => 'setCursor'
53 );
54
55 /**
56 * Array of attributes to getter functions (for serialization of requests)
57 * @var string[]
58 */
59 static $getters = array(
60 'begin_time' => 'getBeginTime',
61 'end_time' => 'getEndTime',
62 'sort_order' => 'getSortOrder',
63 'cursor' => 'getCursor'
64 );
65
66 /**
67 * $begin_time The beginning of the requested reporting period, in RFC 3339 format. See [Date ranges](#dateranges) for details on date inclusivity/exclusivity. Default value: The current time minus one year.
68 * @var string
69 */
70 protected $begin_time;
71 /**
72 * $end_time The end of the requested reporting period, in RFC 3339 format. See [Date ranges](#dateranges) for details on date inclusivity/exclusivity. Default value: The current time.
73 * @var string
74 */
75 protected $end_time;
76 /**
77 * $sort_order The order in which results are listed in the response (`ASC` for oldest first, `DESC` for newest first). Default value: `DESC` See [SortOrder](#type-sortorder) for possible values
78 * @var string
79 */
80 protected $sort_order;
81 /**
82 * $cursor A pagination cursor returned by a previous call to this endpoint. Provide this to retrieve the next set of results for your original query. See [Pagination](/basics/api101/pagination) for more information.
83 * @var string
84 */
85 protected $cursor;
86
87 /**
88 * Constructor
89 * @param mixed[] $data Associated array of property value initializing the model
90 */
91 public function __construct(array $data = null)
92 {
93 if ($data != null) {
94 if (isset($data["begin_time"])) {
95 $this->begin_time = $data["begin_time"];
96 } else {
97 $this->begin_time = null;
98 }
99 if (isset($data["end_time"])) {
100 $this->end_time = $data["end_time"];
101 } else {
102 $this->end_time = null;
103 }
104 if (isset($data["sort_order"])) {
105 $this->sort_order = $data["sort_order"];
106 } else {
107 $this->sort_order = null;
108 }
109 if (isset($data["cursor"])) {
110 $this->cursor = $data["cursor"];
111 } else {
112 $this->cursor = null;
113 }
114 }
115 }
116 /**
117 * Gets begin_time
118 * @return string
119 */
120 public function getBeginTime()
121 {
122 return $this->begin_time;
123 }
124
125 /**
126 * Sets begin_time
127 * @param string $begin_time The beginning of the requested reporting period, in RFC 3339 format. See [Date ranges](#dateranges) for details on date inclusivity/exclusivity. Default value: The current time minus one year.
128 * @return $this
129 */
130 public function setBeginTime($begin_time)
131 {
132 $this->begin_time = $begin_time;
133 return $this;
134 }
135 /**
136 * Gets end_time
137 * @return string
138 */
139 public function getEndTime()
140 {
141 return $this->end_time;
142 }
143
144 /**
145 * Sets end_time
146 * @param string $end_time The end of the requested reporting period, in RFC 3339 format. See [Date ranges](#dateranges) for details on date inclusivity/exclusivity. Default value: The current time.
147 * @return $this
148 */
149 public function setEndTime($end_time)
150 {
151 $this->end_time = $end_time;
152 return $this;
153 }
154 /**
155 * Gets sort_order
156 * @return string
157 */
158 public function getSortOrder()
159 {
160 return $this->sort_order;
161 }
162
163 /**
164 * Sets sort_order
165 * @param string $sort_order The order in which results are listed in the response (`ASC` for oldest first, `DESC` for newest first). Default value: `DESC` See [SortOrder](#type-sortorder) for possible values
166 * @return $this
167 */
168 public function setSortOrder($sort_order)
169 {
170 $this->sort_order = $sort_order;
171 return $this;
172 }
173 /**
174 * Gets cursor
175 * @return string
176 */
177 public function getCursor()
178 {
179 return $this->cursor;
180 }
181
182 /**
183 * Sets cursor
184 * @param string $cursor A pagination cursor returned by a previous call to this endpoint. Provide this to retrieve the next set of results for your original query. See [Pagination](/basics/api101/pagination) for more information.
185 * @return $this
186 */
187 public function setCursor($cursor)
188 {
189 $this->cursor = $cursor;
190 return $this;
191 }
192 /**
193 * Returns true if offset exists. False otherwise.
194 * @param integer $offset Offset
195 * @return boolean
196 */
197 public function offsetExists($offset)
198 {
199 return isset($this->$offset);
200 }
201
202 /**
203 * Gets offset.
204 * @param integer $offset Offset
205 * @return mixed
206 */
207 public function offsetGet($offset)
208 {
209 return $this->$offset;
210 }
211
212 /**
213 * Sets value based on offset.
214 * @param integer $offset Offset
215 * @param mixed $value Value to be set
216 * @return void
217 */
218 public function offsetSet($offset, $value)
219 {
220 $this->$offset = $value;
221 }
222
223 /**
224 * Unsets offset.
225 * @param integer $offset Offset
226 * @return void
227 */
228 public function offsetUnset($offset)
229 {
230 unset($this->$offset);
231 }
232
233 /**
234 * Gets the string presentation of the object
235 * @return string
236 */
237 public function __toString()
238 {
239 if (defined('JSON_PRETTY_PRINT')) {
240 return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT);
241 } else {
242 return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this));
243 }
244 }
245 }
246