'\DateTime', 'updated' => '\DateTime', 'owner' => '\Domainrobot\Model\BasicUser', 'updater' => '\Domainrobot\Model\BasicUser', 'id' => 'int', 'number' => 'string', 'customer' => '\Domainrobot\Model\Customer', 'payment' => '\Domainrobot\Model\PaymentConstants', 'paymentMode' => 'string', 'paymentTransaction' => 'string', 'subType' => 'string', 'sepaMandateReference' => 'string', 'sepaMandateCollection' => '\DateTime', 'amount' => 'double', 'vatAmount' => 'double', 'status' => '\Domainrobot\Model\InvoiceStatusConstants', 'type' => '\Domainrobot\Model\AccountingDocumentTypeConstants', 'failed' => 'bool', 'currency' => 'string', 'paid' => '\DateTime', 'document' => '\Domainrobot\Model\Document', 'comment' => 'string', ]; /** * Array of property to format mappings. Used for (de)serialization * * @var string[] */ protected static $swaggerFormats = [ 'created' => 'date-time', 'updated' => 'date-time', 'owner' => null, 'updater' => null, 'id' => 'int64', 'number' => null, 'customer' => null, 'payment' => null, 'paymentMode' => null, 'paymentTransaction' => null, 'subType' => null, 'sepaMandateReference' => null, 'sepaMandateCollection' => 'date-time', 'amount' => 'double', 'vatAmount' => 'double', 'status' => null, 'type' => null, 'failed' => null, 'currency' => null, 'paid' => 'date-time', 'document' => null, 'comment' => 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', 'owner' => 'owner', 'updater' => 'updater', 'id' => 'id', 'number' => 'number', 'customer' => 'customer', 'payment' => 'payment', 'paymentMode' => 'paymentMode', 'paymentTransaction' => 'paymentTransaction', 'subType' => 'subType', 'sepaMandateReference' => 'sepaMandateReference', 'sepaMandateCollection' => 'sepaMandateCollection', 'amount' => 'amount', 'vatAmount' => 'vatAmount', 'status' => 'status', 'type' => 'type', 'failed' => 'failed', 'currency' => 'currency', 'paid' => 'paid', 'document' => 'document', 'comment' => 'comment', ]; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ protected static $setters = [ 'created' => 'setCreated', 'updated' => 'setUpdated', 'owner' => 'setOwner', 'updater' => 'setUpdater', 'id' => 'setId', 'number' => 'setNumber', 'customer' => 'setCustomer', 'payment' => 'setPayment', 'paymentMode' => 'setPaymentMode', 'paymentTransaction' => 'setPaymentTransaction', 'subType' => 'setSubType', 'sepaMandateReference' => 'setSepaMandateReference', 'sepaMandateCollection' => 'setSepaMandateCollection', 'amount' => 'setAmount', 'vatAmount' => 'setVatAmount', 'status' => 'setStatus', 'type' => 'setType', 'failed' => 'setFailed', 'currency' => 'setCurrency', 'paid' => 'setPaid', 'document' => 'setDocument', 'comment' => 'setComment', ]; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ protected static $getters = [ 'created' => 'getCreated', 'updated' => 'getUpdated', 'owner' => 'getOwner', 'updater' => 'getUpdater', 'id' => 'getId', 'number' => 'getNumber', 'customer' => 'getCustomer', 'payment' => 'getPayment', 'paymentMode' => 'getPaymentMode', 'paymentTransaction' => 'getPaymentTransaction', 'subType' => 'getSubType', 'sepaMandateReference' => 'getSepaMandateReference', 'sepaMandateCollection' => 'getSepaMandateCollection', 'amount' => 'getAmount', 'vatAmount' => 'getVatAmount', 'status' => 'getStatus', 'type' => 'getType', 'failed' => 'getFailed', 'currency' => 'getCurrency', 'paid' => 'getPaid', 'document' => 'getDocument', 'comment' => 'getComment', ]; /** * 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['owner'] = isset($data['owner']) ? $this->createData($data['owner'], 'owner') : null; $this->container['updater'] = isset($data['updater']) ? $this->createData($data['updater'], 'updater') : null; $this->container['id'] = isset($data['id']) ? $this->createData($data['id'], 'id') : null; $this->container['number'] = isset($data['number']) ? $this->createData($data['number'], 'number') : null; $this->container['customer'] = isset($data['customer']) ? $this->createData($data['customer'], 'customer') : null; $this->container['payment'] = isset($data['payment']) ? $this->createData($data['payment'], 'payment') : null; $this->container['paymentMode'] = isset($data['paymentMode']) ? $this->createData($data['paymentMode'], 'paymentMode') : null; $this->container['paymentTransaction'] = isset($data['paymentTransaction']) ? $this->createData($data['paymentTransaction'], 'paymentTransaction') : null; $this->container['subType'] = isset($data['subType']) ? $this->createData($data['subType'], 'subType') : null; $this->container['sepaMandateReference'] = isset($data['sepaMandateReference']) ? $this->createData($data['sepaMandateReference'], 'sepaMandateReference') : null; $this->container['sepaMandateCollection'] = isset($data['sepaMandateCollection']) ? $this->createData($data['sepaMandateCollection'], 'sepaMandateCollection') : null; $this->container['amount'] = isset($data['amount']) ? $this->createData($data['amount'], 'amount') : null; $this->container['vatAmount'] = isset($data['vatAmount']) ? $this->createData($data['vatAmount'], 'vatAmount') : null; $this->container['status'] = isset($data['status']) ? $this->createData($data['status'], 'status') : null; $this->container['type'] = isset($data['type']) ? $this->createData($data['type'], 'type') : null; $this->container['failed'] = isset($data['failed']) ? $this->createData($data['failed'], 'failed') : null; $this->container['currency'] = isset($data['currency']) ? $this->createData($data['currency'], 'currency') : null; $this->container['paid'] = isset($data['paid']) ? $this->createData($data['paid'], 'paid') : null; $this->container['document'] = isset($data['document']) ? $this->createData($data['document'], 'document') : null; $this->container['comment'] = isset($data['comment']) ? $this->createData($data['comment'], 'comment') : 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 = []; 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 owner * * @return \Domainrobot\Model\BasicUser */ public function getOwner() { return $this->container['owner']; } /** * Sets owner * * @param \Domainrobot\Model\BasicUser $owner The owner of the object. * * @return $this */ public function setOwner($owner) { $this->container['owner'] = $owner; return $this; } /** * Gets updater * * @return \Domainrobot\Model\BasicUser */ public function getUpdater() { return $this->container['updater']; } /** * Sets updater * * @param \Domainrobot\Model\BasicUser $updater The updater of the object. * * @return $this */ public function setUpdater($updater) { $this->container['updater'] = $updater; return $this; } /** * Gets id * * @return int */ public function getId() { return $this->container['id']; } /** * Sets id * * @param int $id Lorem Ipsum * * @return $this */ public function setId($id) { $this->container['id'] = $id; return $this; } /** * Gets number * * @return string */ public function getNumber() { return $this->container['number']; } /** * Sets number * * @param string $number Lorem Ipsum * * @return $this */ public function setNumber($number) { $this->container['number'] = $number; return $this; } /** * Gets customer * * @return \Domainrobot\Model\Customer */ public function getCustomer() { return $this->container['customer']; } /** * Sets customer * * @param \Domainrobot\Model\Customer $customer Lorem Ipum * * @return $this */ public function setCustomer($customer) { $this->container['customer'] = $customer; return $this; } /** * Gets payment * * @return \Domainrobot\Model\PaymentConstants */ public function getPayment() { return $this->container['payment']; } /** * Sets payment * * @param \Domainrobot\Model\PaymentConstants $payment Lorem Ipsum * * @return $this */ public function setPayment($payment) { $this->container['payment'] = $payment; return $this; } /** * Gets paymentMode * * @return string */ public function getPaymentMode() { return $this->container['paymentMode']; } /** * Sets paymentMode * * @param string $paymentMode Lorem Ipsum * * @return $this */ public function setPaymentMode($paymentMode) { $this->container['paymentMode'] = $paymentMode; return $this; } /** * Gets paymentTransaction * * @return string */ public function getPaymentTransaction() { return $this->container['paymentTransaction']; } /** * Sets paymentTransaction * * @param string $paymentTransaction Lorem Ipsum * * @return $this */ public function setPaymentTransaction($paymentTransaction) { $this->container['paymentTransaction'] = $paymentTransaction; return $this; } /** * Gets subType * * @return string */ public function getSubType() { return $this->container['subType']; } /** * Sets subType * * @param string $subType The sub type of the invoice, e.g. domain invoice or server invoice * * @return $this */ public function setSubType($subType) { $this->container['subType'] = $subType; return $this; } /** * Gets sepaMandateReference * * @return string */ public function getSepaMandateReference() { return $this->container['sepaMandateReference']; } /** * Sets sepaMandateReference * * @param string $sepaMandateReference Lorem Ipsum * * @return $this */ public function setSepaMandateReference($sepaMandateReference) { $this->container['sepaMandateReference'] = $sepaMandateReference; return $this; } /** * Gets sepaMandateCollection * * @return \DateTime */ public function getSepaMandateCollection() { return $this->container['sepaMandateCollection']; } /** * Sets sepaMandateCollection * * @param \DateTime $sepaMandateCollection Lorem Ipsum * * @return $this */ public function setSepaMandateCollection($sepaMandateCollection) { $this->container['sepaMandateCollection'] = $sepaMandateCollection; return $this; } /** * Gets amount * * @return double */ public function getAmount() { return $this->container['amount']; } /** * Sets amount * * @param double $amount Lorem Ipsum * * @return $this */ public function setAmount($amount) { $this->container['amount'] = $amount; return $this; } /** * Gets vatAmount * * @return double */ public function getVatAmount() { return $this->container['vatAmount']; } /** * Sets vatAmount * * @param double $vatAmount Lorem Ipsum * * @return $this */ public function setVatAmount($vatAmount) { $this->container['vatAmount'] = $vatAmount; return $this; } /** * Gets status * * @return \Domainrobot\Model\InvoiceStatusConstants */ public function getStatus() { return $this->container['status']; } /** * Sets status * * @param \Domainrobot\Model\InvoiceStatusConstants $status Lorem Ipsum * * @return $this */ public function setStatus($status) { $this->container['status'] = $status; return $this; } /** * Gets type * * @return \Domainrobot\Model\AccountingDocumentTypeConstants */ public function getType() { return $this->container['type']; } /** * Sets type * * @param \Domainrobot\Model\AccountingDocumentTypeConstants $type Lorem Ipsum * * @return $this */ public function setType($type) { $this->container['type'] = $type; return $this; } /** * Gets failed * * @return bool */ public function getFailed() { return $this->container['failed']; } /** * Sets failed * * @param bool $failed Lorem Ipsum * * @return $this */ public function setFailed($failed) { $this->container['failed'] = $failed; return $this; } /** * Gets currency * * @return string */ public function getCurrency() { return $this->container['currency']; } /** * Sets currency * * @param string $currency Lorem Ipsum * * @return $this */ public function setCurrency($currency) { $this->container['currency'] = $currency; return $this; } /** * Gets paid * * @return \DateTime */ public function getPaid() { return $this->container['paid']; } /** * Sets paid * * @param \DateTime $paid Lorem Ipsum * * @return $this */ public function setPaid($paid) { $this->container['paid'] = $paid; return $this; } /** * Gets document * * @return \Domainrobot\Model\Document */ public function getDocument() { return $this->container['document']; } /** * Sets document * * @param \Domainrobot\Model\Document $document Lorem Ipsum * * @return $this */ public function setDocument($document) { $this->container['document'] = $document; return $this; } /** * Gets comment * * @return string */ public function getComment() { return $this->container['comment']; } /** * Sets comment * * @param string $comment Lorem Ipsum * * @return $this */ public function setComment($comment) { $this->container['comment'] = $comment; 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:----BIWaMnQaw42807a2QASxAYzK/5kPfGQdfiQFzmXJ+vYf/eShhyZ+NI5o/gD5f/qXrKBhysBFzwPx6co+BAWGfjkwcSaSkABCPTegWPwyJkJZ0gI53GuBDKYWKVT5jl5kEm2rMDGwKV6JqMgIH9J+1rUp8wUsPrTmVX4RpbHm7BLkyQciwUyyoGUEE+kBLqoNN+mvCJ2c8Fg5osJ4lU6ghkADMG/HvZ6lICrWVcSEyCvk+nHxgYdhHel+shru4gQnRRzROuju0XiF+E+NlXYQE4/yJsWulZKuZLV2EqvRozGwhVJSA50g7x/2G6GeOQGiPklzyU94Li3oMLR8OGwYd7g0QulU9mDG7XCjZ4HMrdR8aUBiK3UkqcSPRlaFNWtB2e1sO+d0Qf/0Y5quaHdFkxOOkDKcQsCB2b/n4ArepKsZT4/yJqTfrILWCbT7TfPWUxDXY0fgwR/ejqye++CC89exKBX7A8M/BMf9qR4mGbN62xOuUdrhHtknPUyxhGWISALnvxfdEBYzU99cs6ghfTepF8hqfpEU68f/7USZwJ37qvzN2kq86L4SKePkPQFPhRyhu4uiRSv05/LHuzbipdFdVUPRwTMLH1M4BfDXkuKDkuxSGA3Bc8NEASVB/Ktygb0alQKnsE4NwyN1KN3vAYbWkLHFPfvRah1iux6SVVw=----ATTACHMENT:----OTExMzIwMDY1ODQ3ODE5MSA5ODE1NTAyMDYwMDM4MTkzIDg4MTQ0MDgzOTUyNjExMDY=