PluginProbe
MONEI Payments for WooCommerce / 4.2.0
MONEI Payments for WooCommerce v4.2.0
7.3.3 7.3.2 7.3.1 7.3.0 7.2.4 7.2.3 7.2.2 7.2.0 7.2.1 7.1.3 2.1.0 3.0.0 3.1.0 3.1.1 4.0.0 4.1.0 4.1.1 4.2.0 4.2.1 5.0 5.1.0 5.1.1 5.1.2 5.2.2 5.2.3 All 87 releases
monei / includes / lib / Model / PaymentPaymentMethodInput.php

PaymentPaymentMethodInput.php in MONEI Payments for WooCommerce 4.2.0, at includes/lib/Model/PaymentPaymentMethodInput.php

309 lines 6.7 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * PaymentPaymentMethodInput
4 *
5 * PHP version 5
6 *
7 * @category Class
8 * @package OpenAPI\Client
9 * @author OpenAPI Generator team
10 * @link https://openapi-generator.tech
11 */
12
13 /**
14 * MONEI API v1
15 *
16 * The MONEI API is organized around [REST](https://en.wikipedia.org/wiki/Representational_State_Transfer). Our API has predictable resource-oriented URLs, accepts JSON-encoded request bodies, returns JSON-encoded responses, and uses standard HTTP response codes, authentication, and verbs.
17 *
18 * The version of the OpenAPI document: 1.0.0
19 *
20 * Generated by: https://openapi-generator.tech
21 * OpenAPI Generator version: 4.3.1
22 */
23
24 /**
25 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
26 * https://openapi-generator.tech
27 * Do not edit the class manually.
28 */
29
30 namespace OpenAPI\Client\Model;
31
32 use \ArrayAccess;
33 use \OpenAPI\Client\ObjectSerializer;
34
35 /**
36 * PaymentPaymentMethodInput Class Doc Comment
37 *
38 * @category Class
39 * @description An information about a payment method used for this payment. We recommend using &#x60;paymentToken&#x60; instead, as it is more secure way to pass sensitive payment information. Processing credit card information on your server requires [PCI DSS compliance](https://www.investopedia.com/terms/p/pci-compliance.asp).
40 * @package OpenAPI\Client
41 * @author OpenAPI Generator team
42 * @link https://openapi-generator.tech
43 */
44 class PaymentPaymentMethodInput implements ModelInterface, ArrayAccess
45 {
46 const DISCRIMINATOR = null;
47
48 /**
49 * The original name of the model.
50 *
51 * @var string
52 */
53 protected static $openAPIModelName = 'Payment-PaymentMethodInput';
54
55 /**
56 * Array of property to type mappings. Used for (de)serialization
57 *
58 * @var string[]
59 */
60 protected static $openAPITypes = [
61 'card' => '\OpenAPI\Client\Model\Card'
62 ];
63
64 /**
65 * Array of property to format mappings. Used for (de)serialization
66 *
67 * @var string[]
68 */
69 protected static $openAPIFormats = [
70 'card' => null
71 ];
72
73 /**
74 * Array of property to type mappings. Used for (de)serialization
75 *
76 * @return array
77 */
78 public static function openAPITypes()
79 {
80 return self::$openAPITypes;
81 }
82
83 /**
84 * Array of property to format mappings. Used for (de)serialization
85 *
86 * @return array
87 */
88 public static function openAPIFormats()
89 {
90 return self::$openAPIFormats;
91 }
92
93 /**
94 * Array of attributes where the key is the local name,
95 * and the value is the original name
96 *
97 * @var string[]
98 */
99 protected static $attributeMap = [
100 'card' => 'card'
101 ];
102
103 /**
104 * Array of attributes to setter functions (for deserialization of responses)
105 *
106 * @var string[]
107 */
108 protected static $setters = [
109 'card' => 'setCard'
110 ];
111
112 /**
113 * Array of attributes to getter functions (for serialization of requests)
114 *
115 * @var string[]
116 */
117 protected static $getters = [
118 'card' => 'getCard'
119 ];
120
121 /**
122 * Array of attributes where the key is the local name,
123 * and the value is the original name
124 *
125 * @return array
126 */
127 public static function attributeMap()
128 {
129 return self::$attributeMap;
130 }
131
132 /**
133 * Array of attributes to setter functions (for deserialization of responses)
134 *
135 * @return array
136 */
137 public static function setters()
138 {
139 return self::$setters;
140 }
141
142 /**
143 * Array of attributes to getter functions (for serialization of requests)
144 *
145 * @return array
146 */
147 public static function getters()
148 {
149 return self::$getters;
150 }
151
152 /**
153 * The original name of the model.
154 *
155 * @return string
156 */
157 public function getModelName()
158 {
159 return self::$openAPIModelName;
160 }
161
162
163
164
165
166 /**
167 * Associative array for storing property values
168 *
169 * @var mixed[]
170 */
171 protected $container = [];
172
173 /**
174 * Constructor
175 *
176 * @param mixed[] $data Associated array of property values
177 * initializing the model
178 */
179 public function __construct(array $data = null)
180 {
181 $this->container['card'] = isset($data['card']) ? $data['card'] : null;
182 }
183
184 /**
185 * Show all the invalid properties with reasons.
186 *
187 * @return array invalid properties with reasons
188 */
189 public function listInvalidProperties()
190 {
191 $invalidProperties = [];
192
193 return $invalidProperties;
194 }
195
196 /**
197 * Validate all the properties in the model
198 * return true if all passed
199 *
200 * @return bool True if all properties are valid
201 */
202 public function valid()
203 {
204 return count($this->listInvalidProperties()) === 0;
205 }
206
207
208 /**
209 * Gets card
210 *
211 * @return \OpenAPI\Client\Model\Card|null
212 */
213 public function getCard()
214 {
215 return $this->container['card'];
216 }
217
218 /**
219 * Sets card
220 *
221 * @param \OpenAPI\Client\Model\Card|null $card card
222 *
223 * @return $this
224 */
225 public function setCard($card)
226 {
227 $this->container['card'] = $card;
228
229 return $this;
230 }
231 /**
232 * Returns true if offset exists. False otherwise.
233 *
234 * @param integer $offset Offset
235 *
236 * @return boolean
237 */
238 public function offsetExists($offset)
239 {
240 return isset($this->container[$offset]);
241 }
242
243 /**
244 * Gets offset.
245 *
246 * @param integer $offset Offset
247 *
248 * @return mixed
249 */
250 public function offsetGet($offset)
251 {
252 return isset($this->container[$offset]) ? $this->container[$offset] : null;
253 }
254
255 /**
256 * Sets value based on offset.
257 *
258 * @param integer $offset Offset
259 * @param mixed $value Value to be set
260 *
261 * @return void
262 */
263 public function offsetSet($offset, $value)
264 {
265 if (is_null($offset)) {
266 $this->container[] = $value;
267 } else {
268 $this->container[$offset] = $value;
269 }
270 }
271
272 /**
273 * Unsets offset.
274 *
275 * @param integer $offset Offset
276 *
277 * @return void
278 */
279 public function offsetUnset($offset)
280 {
281 unset($this->container[$offset]);
282 }
283
284 /**
285 * Gets the string presentation of the object
286 *
287 * @return string
288 */
289 public function __toString()
290 {
291 return json_encode(
292 ObjectSerializer::sanitizeForSerialization($this),
293 JSON_PRETTY_PRINT
294 );
295 }
296
297 /**
298 * Gets a header-safe presentation of the object
299 *
300 * @return string
301 */
302 public function toHeaderValue()
303 {
304 return json_encode(ObjectSerializer::sanitizeForSerialization($this));
305 }
306 }
307
308
309