'\Domainrobot\Model\GenericCustomer', 'currentAccountBalance' => 'double', 'runningTotal' => 'double', 'creditLimit' => 'double', 'currency' => 'string', 'minRunningTotalNotification' => 'double', 'minRunningTotalNotificationEmail' => 'string', 'created' => '\DateTime', 'updated' => '\DateTime', 'view' => '\Domainrobot\Model\CurrencyRate', ]; /** * Array of property to format mappings. Used for (de)serialization * * @var string[] */ protected static $swaggerFormats = [ 'customer' => null, 'currentAccountBalance' => 'double', 'runningTotal' => 'double', 'creditLimit' => 'double', 'currency' => null, 'minRunningTotalNotification' => 'double', 'minRunningTotalNotificationEmail' => null, 'created' => 'date-time', 'updated' => 'date-time', 'view' => null, ]; /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ protected static $attributeMap = [ 'customer' => 'customer', 'currentAccountBalance' => 'currentAccountBalance', 'runningTotal' => 'runningTotal', 'creditLimit' => 'creditLimit', 'currency' => 'currency', 'minRunningTotalNotification' => 'minRunningTotalNotification', 'minRunningTotalNotificationEmail' => 'minRunningTotalNotificationEmail', 'created' => 'created', 'updated' => 'updated', 'view' => 'view', ]; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ protected static $setters = [ 'customer' => 'setCustomer', 'currentAccountBalance' => 'setCurrentAccountBalance', 'runningTotal' => 'setRunningTotal', 'creditLimit' => 'setCreditLimit', 'currency' => 'setCurrency', 'minRunningTotalNotification' => 'setMinRunningTotalNotification', 'minRunningTotalNotificationEmail' => 'setMinRunningTotalNotificationEmail', 'created' => 'setCreated', 'updated' => 'setUpdated', 'view' => 'setView', ]; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ protected static $getters = [ 'customer' => 'getCustomer', 'currentAccountBalance' => 'getCurrentAccountBalance', 'runningTotal' => 'getRunningTotal', 'creditLimit' => 'getCreditLimit', 'currency' => 'getCurrency', 'minRunningTotalNotification' => 'getMinRunningTotalNotification', 'minRunningTotalNotificationEmail' => 'getMinRunningTotalNotificationEmail', 'created' => 'getCreated', 'updated' => 'getUpdated', 'view' => 'getView', ]; /** * 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['customer'] = isset($data['customer']) ? $this->createData($data['customer'], 'customer') : null; $this->container['currentAccountBalance'] = isset($data['currentAccountBalance']) ? $this->createData($data['currentAccountBalance'], 'currentAccountBalance') : null; $this->container['runningTotal'] = isset($data['runningTotal']) ? $this->createData($data['runningTotal'], 'runningTotal') : null; $this->container['creditLimit'] = isset($data['creditLimit']) ? $this->createData($data['creditLimit'], 'creditLimit') : null; $this->container['currency'] = isset($data['currency']) ? $this->createData($data['currency'], 'currency') : null; $this->container['minRunningTotalNotification'] = isset($data['minRunningTotalNotification']) ? $this->createData($data['minRunningTotalNotification'], 'minRunningTotalNotification') : null; $this->container['minRunningTotalNotificationEmail'] = isset($data['minRunningTotalNotificationEmail']) ? $this->createData($data['minRunningTotalNotificationEmail'], 'minRunningTotalNotificationEmail') : 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['view'] = isset($data['view']) ? $this->createData($data['view'], 'view') : 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['customer'] === null) { $invalidProperties[] = "'customer' 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 customer * * @return \Domainrobot\Model\GenericCustomer */ public function getCustomer() { return $this->container['customer']; } /** * Sets customer * * @param \Domainrobot\Model\GenericCustomer $customer The customer itself * * @return $this */ public function setCustomer($customer) { $this->container['customer'] = $customer; return $this; } /** * Gets currentAccountBalance * * @return double */ public function getCurrentAccountBalance() { return $this->container['currentAccountBalance']; } /** * Sets currentAccountBalance * * @param double $currentAccountBalance The real account balance * * @return $this */ public function setCurrentAccountBalance($currentAccountBalance) { $this->container['currentAccountBalance'] = $currentAccountBalance; return $this; } /** * Gets runningTotal * * @return double */ public function getRunningTotal() { return $this->container['runningTotal']; } /** * Sets runningTotal * * @param double $runningTotal The current total, the amount of all finished and unfinished transactions * * @return $this */ public function setRunningTotal($runningTotal) { $this->container['runningTotal'] = $runningTotal; return $this; } /** * Gets creditLimit * * @return double */ public function getCreditLimit() { return $this->container['creditLimit']; } /** * Sets creditLimit * * @param double $creditLimit The credit limit of the account. * * @return $this */ public function setCreditLimit($creditLimit) { $this->container['creditLimit'] = $creditLimit; return $this; } /** * Gets currency * * @return string */ public function getCurrency() { return $this->container['currency']; } /** * Sets currency * * @param string $currency The currency of the account * * @return $this */ public function setCurrency($currency) { $this->container['currency'] = $currency; return $this; } /** * Gets minRunningTotalNotification * * @return double */ public function getMinRunningTotalNotification() { return $this->container['minRunningTotalNotification']; } /** * Sets minRunningTotalNotification * * @param double $minRunningTotalNotification The minimum running total amount if a notification should be send * * @return $this */ public function setMinRunningTotalNotification($minRunningTotalNotification) { $this->container['minRunningTotalNotification'] = $minRunningTotalNotification; return $this; } /** * Gets minRunningTotalNotificationEmail * * @return string */ public function getMinRunningTotalNotificationEmail() { return $this->container['minRunningTotalNotificationEmail']; } /** * Sets minRunningTotalNotificationEmail * * @param string $minRunningTotalNotificationEmail The recipient of the notification limit email * * @return $this */ public function setMinRunningTotalNotificationEmail($minRunningTotalNotificationEmail) { $this->container['minRunningTotalNotificationEmail'] = $minRunningTotalNotificationEmail; return $this; } /** * Gets created * * @return \DateTime */ public function getCreated() { return $this->container['created']; } /** * Sets created * * @param \DateTime $created The date of the acccount creation * * @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 date of the las update. * * @return $this */ public function setUpdated($updated) { $this->container['updated'] = $updated; return $this; } /** * Gets view * * @return \Domainrobot\Model\CurrencyRate */ public function getView() { return $this->container['view']; } /** * Sets view * * @param \Domainrobot\Model\CurrencyRate $view The selected exchange for the account * * @return $this */ public function setView($view) { $this->container['view'] = $view; 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:----pS9pdRBQkZ0HP8c+Xr/DpsnYGm3Bvc2vBHQBDgWsyrDJR4IRBzuK8ZpSptY7pb4DlEln29X0VTBRtD728y0DxvnNIm4ZDzMXFy7cutwlxoVGzT10pOyvOjkMTeihEnF7ndLVhtXnKUXPG2C0Exvh1y8Pnio2+iafIECEBDVAibRPyE0GTtRqWt0TMiHu27ch79wSyMDZZ4kL/yFDowbuMsRJoX1G0s32olxvAm+SdEQIwy+jgYfF0Tjinyg/BtV6kAt7TOyp8oB0xdTlaNcwT3nka6dvdPoue+NPuQA2S+T+sATwa4gO09E8YJqAzUR3JOLPHHsGf3DJkX0Gb6cccWCVj9uHhBkmwalYeTC2EBAVWMOkgL5RrMgytue6YTIbaV/DteYzI5R7RWGdUNAkV41BpeDlEw1iBaHCglXUxOviDRPrXLD+j+ntiGO4zx5E/S5EwINNnfNJOdJeIfhoNgViiI2PHtZ4xjez1LzR1uzopfR37J7D4C25FXpGo1LZmdOb+3ec+7RBOZD2feX1D4iahG9jAuLQM9BtAxavPgeWOZbT32w0oSK323iDCQ/sIxX2FU045yi3Ze8adAbkT4aN7bkOV3SnDCUKdmssTAh2B3o332DetBy0IPfYxBCHvVuMKeptd5c+kI2LgX77I8N/MTsSqaXt7dH5IxURyIk=----ATTACHMENT:----MTU3ODYzNjI5NTY5ODI2MyA2ODY5NTA5MTczOTc4ODE1IDc1NzQ4NzkxOTM0NDQ3Mjk=