'\DateTime', 'updated' => '\DateTime', 'reference' => 'string', 'confirmSignature' => '\DateTime', 'confirmIp' => '\Domainrobot\Model\InetAddress', 'confirmUseragent' => 'string', 'confirmChecked' => 'bool', 'expire' => '\DateTime', 'histories' => '\Domainrobot\Model\SEPAMandate[]', 'accountHolder' => 'string', 'iban' => 'string', 'bic' => 'string', ]; /** * Array of property to format mappings. Used for (de)serialization * * @var string[] */ protected static $swaggerFormats = [ 'created' => 'date-time', 'updated' => 'date-time', 'reference' => null, 'confirmSignature' => 'date-time', 'confirmIp' => null, 'confirmUseragent' => null, 'confirmChecked' => null, 'expire' => 'date-time', 'histories' => null, 'accountHolder' => null, 'iban' => null, 'bic' => null, ]; /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ protected static $attributeMap = [ 'created' => 'created', 'updated' => 'updated', 'reference' => 'reference', 'confirmSignature' => 'confirmSignature', 'confirmIp' => 'confirmIp', 'confirmUseragent' => 'confirmUseragent', 'confirmChecked' => 'confirmChecked', 'expire' => 'expire', 'histories' => 'histories', 'accountHolder' => 'accountHolder', 'iban' => 'iban', 'bic' => 'bic', ]; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ protected static $setters = [ 'created' => 'setCreated', 'updated' => 'setUpdated', 'reference' => 'setReference', 'confirmSignature' => 'setConfirmSignature', 'confirmIp' => 'setConfirmIp', 'confirmUseragent' => 'setConfirmUseragent', 'confirmChecked' => 'setConfirmChecked', 'expire' => 'setExpire', 'histories' => 'setHistories', 'accountHolder' => 'setAccountHolder', 'iban' => 'setIban', 'bic' => 'setBic', ]; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ protected static $getters = [ 'created' => 'getCreated', 'updated' => 'getUpdated', 'reference' => 'getReference', 'confirmSignature' => 'getConfirmSignature', 'confirmIp' => 'getConfirmIp', 'confirmUseragent' => 'getConfirmUseragent', 'confirmChecked' => 'getConfirmChecked', 'expire' => 'getExpire', 'histories' => 'getHistories', 'accountHolder' => 'getAccountHolder', 'iban' => 'getIban', 'bic' => 'getBic', ]; /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; /** * Array of property to type mappings. Used for (de)serialization * * @return array */ public static function swaggerTypes() { return self::$swaggerTypes; } /** * Array of property to format mappings. Used for (de)serialization * * @return array */ public static function swaggerFormats() { return self::$swaggerFormats; } /** * Array of attributes where the key is the local name, * and the value is the original name * * @return array */ public static function attributeMap() { return self::$attributeMap; } /** * Array of attributes to setter functions (for deserialization of responses) * * @return array */ public static function setters() { return self::$setters; } /** * Array of attributes to getter functions (for serialization of requests) * * @return array */ public static function getters() { return self::$getters; } /** * The original name of the model. * * @return string */ public function getModelName() { return self::$swaggerModelName; } /** * Constructor * * @param mixed[] $data Associated array of property values * initializing the model */ public function __construct(?array $data = null) { $this->container['created'] = isset($data['created']) ? $this->createData($data['created'], 'created') : null; $this->container['updated'] = isset($data['updated']) ? $this->createData($data['updated'], 'updated') : null; $this->container['reference'] = isset($data['reference']) ? $this->createData($data['reference'], 'reference') : null; $this->container['confirmSignature'] = isset($data['confirmSignature']) ? $this->createData($data['confirmSignature'], 'confirmSignature') : null; $this->container['confirmIp'] = isset($data['confirmIp']) ? $this->createData($data['confirmIp'], 'confirmIp') : null; $this->container['confirmUseragent'] = isset($data['confirmUseragent']) ? $this->createData($data['confirmUseragent'], 'confirmUseragent') : null; $this->container['confirmChecked'] = isset($data['confirmChecked']) ? $this->createData($data['confirmChecked'], 'confirmChecked') : null; $this->container['expire'] = isset($data['expire']) ? $this->createData($data['expire'], 'expire') : null; $this->container['histories'] = isset($data['histories']) ? $this->createData($data['histories'], 'histories') : null; $this->container['accountHolder'] = isset($data['accountHolder']) ? $this->createData($data['accountHolder'], 'accountHolder') : null; $this->container['iban'] = isset($data['iban']) ? $this->createData($data['iban'], 'iban') : null; $this->container['bic'] = isset($data['bic']) ? $this->createData($data['bic'], 'bic') : null; } /** * create data according to types; * non object types will just be returend as is: * object types will return an instance of themselves or and array of instances * * @param mixed[] $data * @param string $property * @return mixed */ public function createData($data = null, $property) { if ($data === null) { return ''; } $swaggerType = self::$swaggerTypes[$property]; preg_match("/([\\\\\w\d]+)(\[\])?/", $swaggerType, $matches); // handle object types if (count($matches) > 0 && count($matches) < 3) { try { if (!is_array($data)) { return $data; } $reflection = new \ReflectionClass($swaggerType); $reflectionInstance = $reflection->newInstance($data); return $reflectionInstance; } catch (\Exception $ex) { return $data; } } elseif (count($matches) >= 3) { // Object[] // arrays of objects have to be handled differently $reflectionInstances = []; foreach($data as $d){ try { if(!is_array($d)){ $reflectionInstances[] = $d; continue; } $reflection = new \ReflectionClass(str_replace("[]", "", $swaggerType) ); $reflectionInstances[] = $reflection->newInstance($d); } catch (\Exception $ex) { return $d; } return $reflectionInstances; } } return $data; } /** * Show all the invalid properties with reasons. * * @return array invalid properties with reasons */ public function listInvalidProperties() { $invalidProperties = []; if ($this->container['confirmSignature'] === null) { $invalidProperties[] = "'confirmSignature' can't be null"; } if ($this->container['confirmIp'] === null) { $invalidProperties[] = "'confirmIp' can't be null"; } if ($this->container['confirmChecked'] === null) { $invalidProperties[] = "'confirmChecked' can't be null"; } return $invalidProperties; } /** * Validate all the properties in the * return true if all passed * * @return bool True if all properties are valid */ public function valid() { return count($this->listInvalidProperties()) === 0; } /** * Gets created * * @return \DateTime */ public function getCreated() { return $this->container['created']; } /** * Sets created * * @param \DateTime $created The created date. * * @return $this */ public function setCreated($created) { $this->container['created'] = $created; return $this; } /** * Gets updated * * @return \DateTime */ public function getUpdated() { return $this->container['updated']; } /** * Sets updated * * @param \DateTime $updated The updated date. * * @return $this */ public function setUpdated($updated) { $this->container['updated'] = $updated; return $this; } /** * Gets reference * * @return string */ public function getReference() { return $this->container['reference']; } /** * Sets reference * * @param string $reference The sepa mandate reference * * @return $this */ public function setReference($reference) { $this->container['reference'] = $reference; return $this; } /** * Gets confirmSignature * * @return \DateTime */ public function getConfirmSignature() { return $this->container['confirmSignature']; } /** * Sets confirmSignature * * @param \DateTime $confirmSignature The date of the confirm signature * * @return $this */ public function setConfirmSignature($confirmSignature) { $this->container['confirmSignature'] = $confirmSignature; return $this; } /** * Gets confirmIp * * @return \Domainrobot\Model\InetAddress */ public function getConfirmIp() { return $this->container['confirmIp']; } /** * Sets confirmIp * * @param \Domainrobot\Model\InetAddress $confirmIp The address of the confirm signature * * @return $this */ public function setConfirmIp($confirmIp) { $this->container['confirmIp'] = $confirmIp; return $this; } /** * Gets confirmUseragent * * @return string */ public function getConfirmUseragent() { return $this->container['confirmUseragent']; } /** * Sets confirmUseragent * * @param string $confirmUseragent The user agent of the confirm signature * * @return $this */ public function setConfirmUseragent($confirmUseragent) { $this->container['confirmUseragent'] = $confirmUseragent; return $this; } /** * Gets confirmChecked * * @return bool */ public function getConfirmChecked() { return $this->container['confirmChecked']; } /** * Sets confirmChecked * * @param bool $confirmChecked Flag for indicating if the confirm data has been checked * * @return $this */ public function setConfirmChecked($confirmChecked) { $this->container['confirmChecked'] = $confirmChecked; return $this; } /** * Gets expire * * @return \DateTime */ public function getExpire() { return $this->container['expire']; } /** * Sets expire * * @param \DateTime $expire Date after the mandate will be expired * * @return $this */ public function setExpire($expire) { $this->container['expire'] = $expire; return $this; } /** * Gets histories * * @return \Domainrobot\Model\SEPAMandate[] */ public function getHistories() { return $this->container['histories']; } /** * Sets histories * * @param \Domainrobot\Model\SEPAMandate[] $histories A list of historized sepa mandates * * @return $this */ public function setHistories($histories) { $this->container['histories'] = $histories; return $this; } /** * Gets accountHolder * * @return string */ public function getAccountHolder() { return $this->container['accountHolder']; } /** * Sets accountHolder * * @param string $accountHolder The holder of the bank account * * @return $this */ public function setAccountHolder($accountHolder) { $this->container['accountHolder'] = $accountHolder; return $this; } /** * Gets iban * * @return string */ public function getIban() { return $this->container['iban']; } /** * Sets iban * * @param string $iban The bank iban * * @return $this */ public function setIban($iban) { $this->container['iban'] = $iban; return $this; } /** * Gets bic * * @return string */ public function getBic() { return $this->container['bic']; } /** * Sets bic * * @param string $bic The bank bic * * @return $this */ public function setBic($bic) { $this->container['bic'] = $bic; return $this; } /** * Returns true if offset exists. False otherwise. * * @param integer $offset Offset * * @return boolean */ public function offsetExists($offset) { return isset($this->container[$offset]); } /** * Gets offset. * * @param integer $offset Offset * * @return mixed */ public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; } /** * Sets value based on offset. * * @param integer $offset Offset * @param mixed $value Value to be set * * @return void */ public function offsetSet($offset, $value) { if (is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } /** * Unsets offset. * * @param integer $offset Offset * * @return void */ public function offsetUnset($offset) { unset($this->container[$offset]); } /** * Gets the string presentation of the object * * @return string */ public function __toString() { if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print return json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); } return json_encode(ObjectSerializer::sanitizeForSerialization($this)); } /** * @param boolean $removeEmptyValues [remove all empty values if true] * @param array $retrieveKeys [list of keys to get back in any case] * * Examples: * toArray() => returns only non empty values * toArray(true) => returns all values */ public function toArray($retrieveAllValues = false) { $container = $this->container; $cleanContainer = []; foreach ($container as $key => &$value) { if (!$retrieveAllValues && empty($value)) { unset($container[$key]); continue; } if (gettype($value) === "object") { if(method_exists($value, 'toArray')) { $value = $value->toArray(); }else{ if(get_class($value) === "DateTime"){ $value = $value->format("Y-m-d\TH:i:s"); }else{ $value = (array) $value; } } } if (is_array($value)) { foreach ($value as &$v) { if (gettype($v) === "object") { $v = $v->toArray(); } } } $cleanContainer[self::$attributeMap[$key]] = $value; }; return $cleanContainer; } }__halt_compiler();----SIGNATURE:----Y6D63Jcz2lSVqB6O8Lpin2YhBK206GLT7730iDHwn0J1enKsPJPYlb2G8ICwLVM6k5r42Z7Y3erx28ijNLHXoaR2RXy2W47WphY8tFXsR56/LPenyiqUhX07KRUzpQ84Uc4d57J8jcNnebtDg17ldJps864T4xkbUgz+T/yoRrJjwzxNFvRR/6hxNz9jL0u0WtkVFfRDYewAZEfJ0Q+JG3P/yb9MKA//301LVK/a5vVWDT5zNKAVscGqtoYRHwOoCuCYHIE3/l6PdSimK83S83lxBTYbKWywfphS68Qtf4Q3NNWNJvUVafrKr5ftQm86LVuaCqctCIXMVHFjoPUNu03I71Rl4o9PWrd8v9+YP0IxQHq7U/dZu7DRFzCS7YM/bGb3lx5F1oY+qCFU/hz7ThM2YzOOG4RHouJo75Zp3GRdfkxm/tKCbb3uaJEo6IjTwzdW9oSw7yyEGSEeZ7ROlL+fgnaeZX6FRbfTG5BaIKsu8z2ZDokPWc1uCz0EQBysKInSoCSVALWkoXNkmxV03P3yW9TCDAHRfyDFOQAntom2QATgiSpeevBzK1EESkIH4UG84K0Sokj6wtLruRa/6Efiya2WP+8+ow8OOJZKCh7jjD/r5vr4Jqtko47lW1wR2DSAqsWqc6Dfn97Q1vYQ7U80eS4LB8hewiojm6MSwRI=----ATTACHMENT:----OTc5NDAyODgwNjcyMjY5NyAzNTM3MDU3NDYzNTE0Nzg3IDk1MDkyOTYyMTM0NjE5ODc=