From 015dca44d165443aa06898b6a954e27887823f6e Mon Sep 17 00:00:00 2001 From: Christian Pleintinger Date: Tue, 14 Dec 2021 16:32:25 +0100 Subject: [PATCH] DEV-5229 Signed-off-by: Christian Pleintinger --- src/Model/Certificate.php | 100 ++- src/Model/CertificateData.php | 100 ++- src/Model/CertificateType.php | 4 + src/Model/DomainEnvelopeSearchRequest.php | 70 +- src/Model/DomainPremium.php | 803 ++++++++++++++++++++ src/Model/ExternalAccounting.php | 70 +- src/Model/Id4MeLayoutConfiguration.php | 124 +-- src/Model/JsonResponseDataDomainPremium.php | 554 ++++++++++++++ src/Model/Limit.php | 464 +++++++++++ src/Model/Metric.php | 404 ++++++++++ src/Model/PremiumStatusConstants.php | 72 ++ src/Model/ProviderEntity.php | 70 +- src/Model/User.php | 58 +- src/Model/VmcTrademarkCountryOrRegion.php | 74 ++ 14 files changed, 2866 insertions(+), 101 deletions(-) create mode 100644 src/Model/DomainPremium.php create mode 100644 src/Model/JsonResponseDataDomainPremium.php create mode 100644 src/Model/Limit.php create mode 100644 src/Model/Metric.php create mode 100644 src/Model/PremiumStatusConstants.php create mode 100644 src/Model/VmcTrademarkCountryOrRegion.php diff --git a/src/Model/Certificate.php b/src/Model/Certificate.php index d2d9ab2b..d1ecf959 100644 --- a/src/Model/Certificate.php +++ b/src/Model/Certificate.php @@ -98,7 +98,10 @@ class Certificate implements ModelInterface, ArrayAccess 'idn' => 'string', 'multiyear' => 'bool', 'reissueRequired' => 'bool', - 'reissueStatus' => 'string' + 'reissueStatus' => 'string', + 'vmcLogo' => 'string', + 'vmcTrademarkRegistrationNumber' => 'string', + 'vmcTrademarkCountryOrRegion' => '\Domainrobot\Model\VmcTrademarkCountryOrRegion' ]; /** @@ -148,7 +151,10 @@ class Certificate implements ModelInterface, ArrayAccess 'idn' => null, 'multiyear' => null, 'reissueRequired' => null, - 'reissueStatus' => null + 'reissueStatus' => null, + 'vmcLogo' => null, + 'vmcTrademarkRegistrationNumber' => null, + 'vmcTrademarkCountryOrRegion' => null ]; /** @@ -219,7 +225,10 @@ public static function swaggerFormats() 'idn' => 'idn', 'multiyear' => 'multiyear', 'reissueRequired' => 'reissueRequired', - 'reissueStatus' => 'reissueStatus' + 'reissueStatus' => 'reissueStatus', + 'vmcLogo' => 'vmcLogo', + 'vmcTrademarkRegistrationNumber' => 'vmcTrademarkRegistrationNumber', + 'vmcTrademarkCountryOrRegion' => 'vmcTrademarkCountryOrRegion' ]; /** @@ -269,7 +278,10 @@ public static function swaggerFormats() 'idn' => 'setIdn', 'multiyear' => 'setMultiyear', 'reissueRequired' => 'setReissueRequired', - 'reissueStatus' => 'setReissueStatus' + 'reissueStatus' => 'setReissueStatus', + 'vmcLogo' => 'setVmcLogo', + 'vmcTrademarkRegistrationNumber' => 'setVmcTrademarkRegistrationNumber', + 'vmcTrademarkCountryOrRegion' => 'setVmcTrademarkCountryOrRegion' ]; /** @@ -319,7 +331,10 @@ public static function swaggerFormats() 'idn' => 'getIdn', 'multiyear' => 'getMultiyear', 'reissueRequired' => 'getReissueRequired', - 'reissueStatus' => 'getReissueStatus' + 'reissueStatus' => 'getReissueStatus', + 'vmcLogo' => 'getVmcLogo', + 'vmcTrademarkRegistrationNumber' => 'getVmcTrademarkRegistrationNumber', + 'vmcTrademarkCountryOrRegion' => 'getVmcTrademarkCountryOrRegion' ]; /** @@ -424,6 +439,9 @@ public function __construct(array $data = null) $this->container['multiyear'] = isset($data['multiyear']) ? $this->createData($data['multiyear'], 'multiyear') : null; $this->container['reissueRequired'] = isset($data['reissueRequired']) ? $this->createData($data['reissueRequired'], 'reissueRequired') : null; $this->container['reissueStatus'] = isset($data['reissueStatus']) ? $this->createData($data['reissueStatus'], 'reissueStatus') : null; + $this->container['vmcLogo'] = isset($data['vmcLogo']) ? $this->createData($data['vmcLogo'], 'vmcLogo') : null; + $this->container['vmcTrademarkRegistrationNumber'] = isset($data['vmcTrademarkRegistrationNumber']) ? $this->createData($data['vmcTrademarkRegistrationNumber'], 'vmcTrademarkRegistrationNumber') : null; + $this->container['vmcTrademarkCountryOrRegion'] = isset($data['vmcTrademarkCountryOrRegion']) ? $this->createData($data['vmcTrademarkCountryOrRegion'], 'vmcTrademarkCountryOrRegion') : null; } /** @@ -1530,6 +1548,78 @@ public function setReissueStatus($reissueStatus) return $this; } + + /** + * Gets vmcLogo + * + * @return string + */ + public function getVmcLogo() + { + return $this->container['vmcLogo']; + } + + /** + * Sets vmcLogo + * + * @param string $vmcLogo The gzipped and base64 encoded SVG logo + * + * @return $this + */ + public function setVmcLogo($vmcLogo) + { + $this->container['vmcLogo'] = $vmcLogo; + + return $this; + } + + /** + * Gets vmcTrademarkRegistrationNumber + * + * @return string + */ + public function getVmcTrademarkRegistrationNumber() + { + return $this->container['vmcTrademarkRegistrationNumber']; + } + + /** + * Sets vmcTrademarkRegistrationNumber + * + * @param string $vmcTrademarkRegistrationNumber The trademark registration number + * + * @return $this + */ + public function setVmcTrademarkRegistrationNumber($vmcTrademarkRegistrationNumber) + { + $this->container['vmcTrademarkRegistrationNumber'] = $vmcTrademarkRegistrationNumber; + + return $this; + } + + /** + * Gets vmcTrademarkCountryOrRegion + * + * @return \Domainrobot\Model\VmcTrademarkCountryOrRegion + */ + public function getVmcTrademarkCountryOrRegion() + { + return $this->container['vmcTrademarkCountryOrRegion']; + } + + /** + * Sets vmcTrademarkCountryOrRegion + * + * @param \Domainrobot\Model\VmcTrademarkCountryOrRegion $vmcTrademarkCountryOrRegion Two-letter code for the country or region where the logo is trademarked + * + * @return $this + */ + public function setVmcTrademarkCountryOrRegion($vmcTrademarkCountryOrRegion) + { + $this->container['vmcTrademarkCountryOrRegion'] = $vmcTrademarkCountryOrRegion; + + return $this; + } /** * Returns true if offset exists. False otherwise. * diff --git a/src/Model/CertificateData.php b/src/Model/CertificateData.php index 6eeea74b..b4907f83 100644 --- a/src/Model/CertificateData.php +++ b/src/Model/CertificateData.php @@ -77,7 +77,10 @@ class CertificateData implements ModelInterface, ArrayAccess 'idn' => 'string', 'checkCaa' => 'bool', 'businessCase' => 'string', - 'ecCurve' => '\Domainrobot\Model\CsrHashAlgorithmConstants' + 'ecCurve' => '\Domainrobot\Model\CsrHashAlgorithmConstants', + 'vmcLogo' => 'string', + 'vmcTrademarkRegistrationNumber' => 'string', + 'vmcTrademarkCountryOrRegion' => '\Domainrobot\Model\VmcTrademarkCountryOrRegion' ]; /** @@ -106,7 +109,10 @@ class CertificateData implements ModelInterface, ArrayAccess 'idn' => null, 'checkCaa' => null, 'businessCase' => null, - 'ecCurve' => null + 'ecCurve' => null, + 'vmcLogo' => null, + 'vmcTrademarkRegistrationNumber' => null, + 'vmcTrademarkCountryOrRegion' => null ]; /** @@ -156,7 +162,10 @@ public static function swaggerFormats() 'idn' => 'idn', 'checkCaa' => 'checkCaa', 'businessCase' => 'businessCase', - 'ecCurve' => 'ecCurve' + 'ecCurve' => 'ecCurve', + 'vmcLogo' => 'vmcLogo', + 'vmcTrademarkRegistrationNumber' => 'vmcTrademarkRegistrationNumber', + 'vmcTrademarkCountryOrRegion' => 'vmcTrademarkCountryOrRegion' ]; /** @@ -185,7 +194,10 @@ public static function swaggerFormats() 'idn' => 'setIdn', 'checkCaa' => 'setCheckCaa', 'businessCase' => 'setBusinessCase', - 'ecCurve' => 'setEcCurve' + 'ecCurve' => 'setEcCurve', + 'vmcLogo' => 'setVmcLogo', + 'vmcTrademarkRegistrationNumber' => 'setVmcTrademarkRegistrationNumber', + 'vmcTrademarkCountryOrRegion' => 'setVmcTrademarkCountryOrRegion' ]; /** @@ -214,7 +226,10 @@ public static function swaggerFormats() 'idn' => 'getIdn', 'checkCaa' => 'getCheckCaa', 'businessCase' => 'getBusinessCase', - 'ecCurve' => 'getEcCurve' + 'ecCurve' => 'getEcCurve', + 'vmcLogo' => 'getVmcLogo', + 'vmcTrademarkRegistrationNumber' => 'getVmcTrademarkRegistrationNumber', + 'vmcTrademarkCountryOrRegion' => 'getVmcTrademarkCountryOrRegion' ]; /** @@ -298,6 +313,9 @@ public function __construct(array $data = null) $this->container['checkCaa'] = isset($data['checkCaa']) ? $this->createData($data['checkCaa'], 'checkCaa') : null; $this->container['businessCase'] = isset($data['businessCase']) ? $this->createData($data['businessCase'], 'businessCase') : null; $this->container['ecCurve'] = isset($data['ecCurve']) ? $this->createData($data['ecCurve'], 'ecCurve') : null; + $this->container['vmcLogo'] = isset($data['vmcLogo']) ? $this->createData($data['vmcLogo'], 'vmcLogo') : null; + $this->container['vmcTrademarkRegistrationNumber'] = isset($data['vmcTrademarkRegistrationNumber']) ? $this->createData($data['vmcTrademarkRegistrationNumber'], 'vmcTrademarkRegistrationNumber') : null; + $this->container['vmcTrademarkCountryOrRegion'] = isset($data['vmcTrademarkCountryOrRegion']) ? $this->createData($data['vmcTrademarkCountryOrRegion'], 'vmcTrademarkCountryOrRegion') : null; } /** @@ -882,6 +900,78 @@ public function setEcCurve($ecCurve) return $this; } + + /** + * Gets vmcLogo + * + * @return string + */ + public function getVmcLogo() + { + return $this->container['vmcLogo']; + } + + /** + * Sets vmcLogo + * + * @param string $vmcLogo The gzipped and base64 encoded SVG logo + * + * @return $this + */ + public function setVmcLogo($vmcLogo) + { + $this->container['vmcLogo'] = $vmcLogo; + + return $this; + } + + /** + * Gets vmcTrademarkRegistrationNumber + * + * @return string + */ + public function getVmcTrademarkRegistrationNumber() + { + return $this->container['vmcTrademarkRegistrationNumber']; + } + + /** + * Sets vmcTrademarkRegistrationNumber + * + * @param string $vmcTrademarkRegistrationNumber The trademark registration number + * + * @return $this + */ + public function setVmcTrademarkRegistrationNumber($vmcTrademarkRegistrationNumber) + { + $this->container['vmcTrademarkRegistrationNumber'] = $vmcTrademarkRegistrationNumber; + + return $this; + } + + /** + * Gets vmcTrademarkCountryOrRegion + * + * @return \Domainrobot\Model\VmcTrademarkCountryOrRegion + */ + public function getVmcTrademarkCountryOrRegion() + { + return $this->container['vmcTrademarkCountryOrRegion']; + } + + /** + * Sets vmcTrademarkCountryOrRegion + * + * @param \Domainrobot\Model\VmcTrademarkCountryOrRegion $vmcTrademarkCountryOrRegion Two-letter code for the country or region where the logo is trademarked + * + * @return $this + */ + public function setVmcTrademarkCountryOrRegion($vmcTrademarkCountryOrRegion) + { + $this->container['vmcTrademarkCountryOrRegion'] = $vmcTrademarkCountryOrRegion; + + return $this; + } /** * Returns true if offset exists. False otherwise. * diff --git a/src/Model/CertificateType.php b/src/Model/CertificateType.php index 0b6fd05a..872136a3 100644 --- a/src/Model/CertificateType.php +++ b/src/Model/CertificateType.php @@ -46,6 +46,8 @@ class CertificateType const FQDN = 'FQDN'; const MAIL = 'MAIL'; const CODE = 'CODE'; + const DOCUMENT = 'DOCUMENT'; + const VMC = 'VMC'; /** * Gets allowable values of the enum @@ -57,6 +59,8 @@ public static function getAllowableEnumValues() self::FQDN, self::MAIL, self::CODE, + self::DOCUMENT, + self::VMC, ]; } } diff --git a/src/Model/DomainEnvelopeSearchRequest.php b/src/Model/DomainEnvelopeSearchRequest.php index 30e469db..d8d9cac3 100644 --- a/src/Model/DomainEnvelopeSearchRequest.php +++ b/src/Model/DomainEnvelopeSearchRequest.php @@ -66,7 +66,9 @@ class DomainEnvelopeSearchRequest implements ModelInterface, ArrayAccess 'sources' => '\Domainrobot\Model\DomainStudioSources', 'clientIp' => 'string', 'onlyAvailable' => 'bool', - 'whoisTimeout' => 'int' + 'whoisTimeout' => 'int', + 'ignorePremium' => 'bool', + 'ignoreMarket' => 'bool' ]; /** @@ -84,7 +86,9 @@ class DomainEnvelopeSearchRequest implements ModelInterface, ArrayAccess 'sources' => null, 'clientIp' => null, 'onlyAvailable' => null, - 'whoisTimeout' => 'int32' + 'whoisTimeout' => 'int32', + 'ignorePremium' => null, + 'ignoreMarket' => null ]; /** @@ -123,7 +127,9 @@ public static function swaggerFormats() 'sources' => 'sources', 'clientIp' => 'clientIp', 'onlyAvailable' => 'onlyAvailable', - 'whoisTimeout' => 'whoisTimeout' + 'whoisTimeout' => 'whoisTimeout', + 'ignorePremium' => 'ignorePremium', + 'ignoreMarket' => 'ignoreMarket' ]; /** @@ -141,7 +147,9 @@ public static function swaggerFormats() 'sources' => 'setSources', 'clientIp' => 'setClientIp', 'onlyAvailable' => 'setOnlyAvailable', - 'whoisTimeout' => 'setWhoisTimeout' + 'whoisTimeout' => 'setWhoisTimeout', + 'ignorePremium' => 'setIgnorePremium', + 'ignoreMarket' => 'setIgnoreMarket' ]; /** @@ -159,7 +167,9 @@ public static function swaggerFormats() 'sources' => 'getSources', 'clientIp' => 'getClientIp', 'onlyAvailable' => 'getOnlyAvailable', - 'whoisTimeout' => 'getWhoisTimeout' + 'whoisTimeout' => 'getWhoisTimeout', + 'ignorePremium' => 'getIgnorePremium', + 'ignoreMarket' => 'getIgnoreMarket' ]; /** @@ -232,6 +242,8 @@ public function __construct(array $data = null) $this->container['clientIp'] = isset($data['clientIp']) ? $this->createData($data['clientIp'], 'clientIp') : null; $this->container['onlyAvailable'] = isset($data['onlyAvailable']) ? $this->createData($data['onlyAvailable'], 'onlyAvailable') : null; $this->container['whoisTimeout'] = isset($data['whoisTimeout']) ? $this->createData($data['whoisTimeout'], 'whoisTimeout') : null; + $this->container['ignorePremium'] = isset($data['ignorePremium']) ? $this->createData($data['ignorePremium'], 'ignorePremium') : null; + $this->container['ignoreMarket'] = isset($data['ignoreMarket']) ? $this->createData($data['ignoreMarket'], 'ignoreMarket') : null; } /** @@ -552,6 +564,54 @@ public function setWhoisTimeout($whoisTimeout) return $this; } + + /** + * Gets ignorePremium + * + * @return bool + */ + public function getIgnorePremium() + { + return $this->container['ignorePremium']; + } + + /** + * Sets ignorePremium + * + * @param bool $ignorePremium If set to true, the inital, recommended, geo, custom and suggestion sources are filtered for premium domains. This can result in empty lists! + * + * @return $this + */ + public function setIgnorePremium($ignorePremium) + { + $this->container['ignorePremium'] = $ignorePremium; + + return $this; + } + + /** + * Gets ignoreMarket + * + * @return bool + */ + public function getIgnoreMarket() + { + return $this->container['ignoreMarket']; + } + + /** + * Sets ignoreMarket + * + * @param bool $ignoreMarket If set to true, the inital, recommended, geo, custom and suggestion sources are filtered for market domains. This can result in empty lists! + * + * @return $this + */ + public function setIgnoreMarket($ignoreMarket) + { + $this->container['ignoreMarket'] = $ignoreMarket; + + return $this; + } /** * Returns true if offset exists. False otherwise. * diff --git a/src/Model/DomainPremium.php b/src/Model/DomainPremium.php new file mode 100644 index 00000000..319f7c2b --- /dev/null +++ b/src/Model/DomainPremium.php @@ -0,0 +1,803 @@ + '\DateTime', + 'updated' => '\DateTime', + 'owner' => '\Domainrobot\Model\BasicUser', + 'updater' => '\Domainrobot\Model\BasicUser', + 'name' => 'string', + 'idn' => 'string', + 'priceClass' => 'string', + 'priceClassRenew' => 'string', + 'price' => 'double', + 'currency' => 'string', + 'provider' => 'string', + 'configuration' => '\Domainrobot\Model\Configuration', + 'metric' => '\Domainrobot\Model\Metric', + 'premiumStatus' => '\Domainrobot\Model\PremiumStatusConstants' + ]; + + /** + * 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, + 'name' => null, + 'idn' => null, + 'priceClass' => null, + 'priceClassRenew' => null, + 'price' => 'double', + 'currency' => null, + 'provider' => null, + 'configuration' => null, + 'metric' => null, + 'premiumStatus' => null + ]; + + /** + * 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 + * + * @var string[] + */ + protected static $attributeMap = [ + 'created' => 'created', + 'updated' => 'updated', + 'owner' => 'owner', + 'updater' => 'updater', + 'name' => 'name', + 'idn' => 'idn', + 'priceClass' => 'priceClass', + 'priceClassRenew' => 'priceClassRenew', + 'price' => 'price', + 'currency' => 'currency', + 'provider' => 'provider', + 'configuration' => 'configuration', + 'metric' => 'metric', + 'premiumStatus' => 'premiumStatus' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'created' => 'setCreated', + 'updated' => 'setUpdated', + 'owner' => 'setOwner', + 'updater' => 'setUpdater', + 'name' => 'setName', + 'idn' => 'setIdn', + 'priceClass' => 'setPriceClass', + 'priceClassRenew' => 'setPriceClassRenew', + 'price' => 'setPrice', + 'currency' => 'setCurrency', + 'provider' => 'setProvider', + 'configuration' => 'setConfiguration', + 'metric' => 'setMetric', + 'premiumStatus' => 'setPremiumStatus' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'created' => 'getCreated', + 'updated' => 'getUpdated', + 'owner' => 'getOwner', + 'updater' => 'getUpdater', + 'name' => 'getName', + 'idn' => 'getIdn', + 'priceClass' => 'getPriceClass', + 'priceClassRenew' => 'getPriceClassRenew', + 'price' => 'getPrice', + 'currency' => 'getCurrency', + 'provider' => 'getProvider', + 'configuration' => 'getConfiguration', + 'metric' => 'getMetric', + 'premiumStatus' => 'getPremiumStatus' + ]; + + /** + * 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; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * 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['name'] = isset($data['name']) ? $this->createData($data['name'], 'name') : null; + $this->container['idn'] = isset($data['idn']) ? $this->createData($data['idn'], 'idn') : null; + $this->container['priceClass'] = isset($data['priceClass']) ? $this->createData($data['priceClass'], 'priceClass') : null; + $this->container['priceClassRenew'] = isset($data['priceClassRenew']) ? $this->createData($data['priceClassRenew'], 'priceClassRenew') : null; + $this->container['price'] = isset($data['price']) ? $this->createData($data['price'], 'price') : null; + $this->container['currency'] = isset($data['currency']) ? $this->createData($data['currency'], 'currency') : null; + $this->container['provider'] = isset($data['provider']) ? $this->createData($data['provider'], 'provider') : null; + $this->container['configuration'] = isset($data['configuration']) ? $this->createData($data['configuration'], 'configuration') : null; + $this->container['metric'] = isset($data['metric']) ? $this->createData($data['metric'], 'metric') : null; + $this->container['premiumStatus'] = isset($data['premiumStatus']) ? $this->createData($data['premiumStatus'], 'premiumStatus') : 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 || $property === '') { + 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['name'] === null) { + $invalidProperties[] = "'name' can't be null"; + } + if ($this->container['priceClass'] === null) { + $invalidProperties[] = "'priceClass' can't be null"; + } + if ($this->container['provider'] === null) { + $invalidProperties[] = "'provider' 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 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 updating user of the object. + * + * @return $this + */ + public function setUpdater($updater) + { + $this->container['updater'] = $updater; + + return $this; + } + + /** + * Gets name + * + * @return string + */ + public function getName() + { + return $this->container['name']; + } + + /** + * Sets name + * + * @param string $name The domain name + * + * @return $this + */ + public function setName($name) + { + $this->container['name'] = $name; + + return $this; + } + + /** + * Gets idn + * + * @return string + */ + public function getIdn() + { + return $this->container['idn']; + } + + /** + * Sets idn + * + * @param string $idn The unicode domain name + * + * @return $this + */ + public function setIdn($idn) + { + $this->container['idn'] = $idn; + + return $this; + } + + /** + * Gets priceClass + * + * @return string + */ + public function getPriceClass() + { + return $this->container['priceClass']; + } + + /** + * Sets priceClass + * + * @param string $priceClass The related price class + * + * @return $this + */ + public function setPriceClass($priceClass) + { + $this->container['priceClass'] = $priceClass; + + return $this; + } + + /** + * Gets priceClassRenew + * + * @return string + */ + public function getPriceClassRenew() + { + return $this->container['priceClassRenew']; + } + + /** + * Sets priceClassRenew + * + * @param string $priceClassRenew The related price class for the domain renew + * + * @return $this + */ + public function setPriceClassRenew($priceClassRenew) + { + $this->container['priceClassRenew'] = $priceClassRenew; + + return $this; + } + + /** + * Gets price + * + * @return double + */ + public function getPrice() + { + return $this->container['price']; + } + + /** + * Sets price + * + * @param double $price The current price amount + * + * @return $this + */ + public function setPrice($price) + { + $this->container['price'] = $price; + + return $this; + } + + /** + * Gets currency + * + * @return string + */ + public function getCurrency() + { + return $this->container['currency']; + } + + /** + * Sets currency + * + * @param string $currency The current currency + * + * @return $this + */ + public function setCurrency($currency) + { + $this->container['currency'] = $currency; + + return $this; + } + + /** + * Gets provider + * + * @return string + */ + public function getProvider() + { + return $this->container['provider']; + } + + /** + * Sets provider + * + * @param string $provider provider + * + * @return $this + */ + public function setProvider($provider) + { + $this->container['provider'] = $provider; + + return $this; + } + + /** + * Gets configuration + * + * @return \Domainrobot\Model\Configuration + */ + public function getConfiguration() + { + return $this->container['configuration']; + } + + /** + * Sets configuration + * + * @param \Domainrobot\Model\Configuration $configuration Additional information + * + * @return $this + */ + public function setConfiguration($configuration) + { + $this->container['configuration'] = $configuration; + + return $this; + } + + /** + * Gets metric + * + * @return \Domainrobot\Model\Metric + */ + public function getMetric() + { + return $this->container['metric']; + } + + /** + * Sets metric + * + * @param \Domainrobot\Model\Metric $metric Some domain metrics + * + * @return $this + */ + public function setMetric($metric) + { + $this->container['metric'] = $metric; + + return $this; + } + + /** + * Gets premiumStatus + * + * @return \Domainrobot\Model\PremiumStatusConstants + */ + public function getPremiumStatus() + { + return $this->container['premiumStatus']; + } + + /** + * Sets premiumStatus + * + * @param \Domainrobot\Model\PremiumStatusConstants $premiumStatus The actual domain premium status + * + * @return $this + */ + public function setPremiumStatus($premiumStatus) + { + $this->container['premiumStatus'] = $premiumStatus; + + 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 === false && + empty($value) === true && + $value !== false && + $value !== '' && + $value !== 0 && + $value !== '0' + ) { + unset($container[$key]); + continue; + } + + if (gettype($value) === "object") { + if(method_exists($value, 'toArray')) { + $value = $value->toArray($retrieveAllValues); + }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($retrieveAllValues); + } + } + } + $cleanContainer[self::$attributeMap[$key]] = $value; + }; + return $cleanContainer; + } +} + + diff --git a/src/Model/ExternalAccounting.php b/src/Model/ExternalAccounting.php index db609cf7..3626d4db 100644 --- a/src/Model/ExternalAccounting.php +++ b/src/Model/ExternalAccounting.php @@ -74,7 +74,9 @@ class ExternalAccounting implements ModelInterface, ArrayAccess 'customerNumberMin' => 'int', 'customerNumberMax' => 'int', 'creditLimit' => 'double', - 'discount' => 'int' + 'discount' => 'int', + 'priceListSyncStatus' => '\Domainrobot\Model\GenericStatusConstants', + 'priceListSync' => '\DateTime' ]; /** @@ -100,7 +102,9 @@ class ExternalAccounting implements ModelInterface, ArrayAccess 'customerNumberMin' => 'int64', 'customerNumberMax' => 'int64', 'creditLimit' => 'double', - 'discount' => 'int32' + 'discount' => 'int32', + 'priceListSyncStatus' => null, + 'priceListSync' => 'date-time' ]; /** @@ -147,7 +151,9 @@ public static function swaggerFormats() 'customerNumberMin' => 'customerNumberMin', 'customerNumberMax' => 'customerNumberMax', 'creditLimit' => 'creditLimit', - 'discount' => 'discount' + 'discount' => 'discount', + 'priceListSyncStatus' => 'priceListSyncStatus', + 'priceListSync' => 'priceListSync' ]; /** @@ -173,7 +179,9 @@ public static function swaggerFormats() 'customerNumberMin' => 'setCustomerNumberMin', 'customerNumberMax' => 'setCustomerNumberMax', 'creditLimit' => 'setCreditLimit', - 'discount' => 'setDiscount' + 'discount' => 'setDiscount', + 'priceListSyncStatus' => 'setPriceListSyncStatus', + 'priceListSync' => 'setPriceListSync' ]; /** @@ -199,7 +207,9 @@ public static function swaggerFormats() 'customerNumberMin' => 'getCustomerNumberMin', 'customerNumberMax' => 'getCustomerNumberMax', 'creditLimit' => 'getCreditLimit', - 'discount' => 'getDiscount' + 'discount' => 'getDiscount', + 'priceListSyncStatus' => 'getPriceListSyncStatus', + 'priceListSync' => 'getPriceListSync' ]; /** @@ -280,6 +290,8 @@ public function __construct(array $data = null) $this->container['customerNumberMax'] = isset($data['customerNumberMax']) ? $this->createData($data['customerNumberMax'], 'customerNumberMax') : null; $this->container['creditLimit'] = isset($data['creditLimit']) ? $this->createData($data['creditLimit'], 'creditLimit') : null; $this->container['discount'] = isset($data['discount']) ? $this->createData($data['discount'], 'discount') : null; + $this->container['priceListSyncStatus'] = isset($data['priceListSyncStatus']) ? $this->createData($data['priceListSyncStatus'], 'priceListSyncStatus') : null; + $this->container['priceListSync'] = isset($data['priceListSync']) ? $this->createData($data['priceListSync'], 'priceListSync') : null; } /** @@ -792,6 +804,54 @@ public function setDiscount($discount) return $this; } + + /** + * Gets priceListSyncStatus + * + * @return \Domainrobot\Model\GenericStatusConstants + */ + public function getPriceListSyncStatus() + { + return $this->container['priceListSyncStatus']; + } + + /** + * Sets priceListSyncStatus + * + * @param \Domainrobot\Model\GenericStatusConstants $priceListSyncStatus The status of the pricelist sync + * + * @return $this + */ + public function setPriceListSyncStatus($priceListSyncStatus) + { + $this->container['priceListSyncStatus'] = $priceListSyncStatus; + + return $this; + } + + /** + * Gets priceListSync + * + * @return \DateTime + */ + public function getPriceListSync() + { + return $this->container['priceListSync']; + } + + /** + * Sets priceListSync + * + * @param \DateTime $priceListSync The date when the last pricelist sync finished + * + * @return $this + */ + public function setPriceListSync($priceListSync) + { + $this->container['priceListSync'] = $priceListSync; + + return $this; + } /** * Returns true if offset exists. False otherwise. * diff --git a/src/Model/Id4MeLayoutConfiguration.php b/src/Model/Id4MeLayoutConfiguration.php index 5227eb2c..c1350e37 100644 --- a/src/Model/Id4MeLayoutConfiguration.php +++ b/src/Model/Id4MeLayoutConfiguration.php @@ -58,17 +58,17 @@ class Id4MeLayoutConfiguration implements ModelInterface, ArrayAccess */ protected static $swaggerTypes = [ 'title' => 'string', - 'privacy' => 'string', 'about' => 'string', 'menuLogoWidth' => 'string', 'loginLogoHeight' => 'string', - 'primaryColor' => 'string', 'loginLogoWidth' => 'string', 'menuLogoHeight' => 'string', + 'primaryColor' => 'string', 'primaryText' => 'string', 'secondaryColor' => 'string', 'loginLogoSrc' => 'string', - 'menuLogoSrc' => 'string' + 'menuLogoSrc' => 'string', + 'privacy' => 'string' ]; /** @@ -78,17 +78,17 @@ class Id4MeLayoutConfiguration implements ModelInterface, ArrayAccess */ protected static $swaggerFormats = [ 'title' => null, - 'privacy' => null, 'about' => null, 'menuLogoWidth' => null, 'loginLogoHeight' => null, - 'primaryColor' => null, 'loginLogoWidth' => null, 'menuLogoHeight' => null, + 'primaryColor' => null, 'primaryText' => null, 'secondaryColor' => null, 'loginLogoSrc' => null, - 'menuLogoSrc' => null + 'menuLogoSrc' => null, + 'privacy' => null ]; /** @@ -119,17 +119,17 @@ public static function swaggerFormats() */ protected static $attributeMap = [ 'title' => 'title', - 'privacy' => 'privacy', 'about' => 'about', 'menuLogoWidth' => 'menuLogoWidth', 'loginLogoHeight' => 'loginLogoHeight', - 'primaryColor' => 'primaryColor', 'loginLogoWidth' => 'loginLogoWidth', 'menuLogoHeight' => 'menuLogoHeight', + 'primaryColor' => 'primaryColor', 'primaryText' => 'primaryText', 'secondaryColor' => 'secondaryColor', 'loginLogoSrc' => 'loginLogoSrc', - 'menuLogoSrc' => 'menuLogoSrc' + 'menuLogoSrc' => 'menuLogoSrc', + 'privacy' => 'privacy' ]; /** @@ -139,17 +139,17 @@ public static function swaggerFormats() */ protected static $setters = [ 'title' => 'setTitle', - 'privacy' => 'setPrivacy', 'about' => 'setAbout', 'menuLogoWidth' => 'setMenuLogoWidth', 'loginLogoHeight' => 'setLoginLogoHeight', - 'primaryColor' => 'setPrimaryColor', 'loginLogoWidth' => 'setLoginLogoWidth', 'menuLogoHeight' => 'setMenuLogoHeight', + 'primaryColor' => 'setPrimaryColor', 'primaryText' => 'setPrimaryText', 'secondaryColor' => 'setSecondaryColor', 'loginLogoSrc' => 'setLoginLogoSrc', - 'menuLogoSrc' => 'setMenuLogoSrc' + 'menuLogoSrc' => 'setMenuLogoSrc', + 'privacy' => 'setPrivacy' ]; /** @@ -159,17 +159,17 @@ public static function swaggerFormats() */ protected static $getters = [ 'title' => 'getTitle', - 'privacy' => 'getPrivacy', 'about' => 'getAbout', 'menuLogoWidth' => 'getMenuLogoWidth', 'loginLogoHeight' => 'getLoginLogoHeight', - 'primaryColor' => 'getPrimaryColor', 'loginLogoWidth' => 'getLoginLogoWidth', 'menuLogoHeight' => 'getMenuLogoHeight', + 'primaryColor' => 'getPrimaryColor', 'primaryText' => 'getPrimaryText', 'secondaryColor' => 'getSecondaryColor', 'loginLogoSrc' => 'getLoginLogoSrc', - 'menuLogoSrc' => 'getMenuLogoSrc' + 'menuLogoSrc' => 'getMenuLogoSrc', + 'privacy' => 'getPrivacy' ]; /** @@ -233,17 +233,17 @@ public function getModelName() public function __construct(array $data = null) { $this->container['title'] = isset($data['title']) ? $this->createData($data['title'], 'title') : null; - $this->container['privacy'] = isset($data['privacy']) ? $this->createData($data['privacy'], 'privacy') : null; $this->container['about'] = isset($data['about']) ? $this->createData($data['about'], 'about') : null; $this->container['menuLogoWidth'] = isset($data['menuLogoWidth']) ? $this->createData($data['menuLogoWidth'], 'menuLogoWidth') : null; $this->container['loginLogoHeight'] = isset($data['loginLogoHeight']) ? $this->createData($data['loginLogoHeight'], 'loginLogoHeight') : null; - $this->container['primaryColor'] = isset($data['primaryColor']) ? $this->createData($data['primaryColor'], 'primaryColor') : null; $this->container['loginLogoWidth'] = isset($data['loginLogoWidth']) ? $this->createData($data['loginLogoWidth'], 'loginLogoWidth') : null; $this->container['menuLogoHeight'] = isset($data['menuLogoHeight']) ? $this->createData($data['menuLogoHeight'], 'menuLogoHeight') : null; + $this->container['primaryColor'] = isset($data['primaryColor']) ? $this->createData($data['primaryColor'], 'primaryColor') : null; $this->container['primaryText'] = isset($data['primaryText']) ? $this->createData($data['primaryText'], 'primaryText') : null; $this->container['secondaryColor'] = isset($data['secondaryColor']) ? $this->createData($data['secondaryColor'], 'secondaryColor') : null; $this->container['loginLogoSrc'] = isset($data['loginLogoSrc']) ? $this->createData($data['loginLogoSrc'], 'loginLogoSrc') : null; $this->container['menuLogoSrc'] = isset($data['menuLogoSrc']) ? $this->createData($data['menuLogoSrc'], 'menuLogoSrc') : null; + $this->container['privacy'] = isset($data['privacy']) ? $this->createData($data['privacy'], 'privacy') : null; } /** @@ -349,30 +349,6 @@ public function setTitle($title) return $this; } - /** - * Gets privacy - * - * @return string - */ - public function getPrivacy() - { - return $this->container['privacy']; - } - - /** - * Sets privacy - * - * @param string $privacy privacy - * - * @return $this - */ - public function setPrivacy($privacy) - { - $this->container['privacy'] = $privacy; - - return $this; - } - /** * Gets about * @@ -446,73 +422,73 @@ public function setLoginLogoHeight($loginLogoHeight) } /** - * Gets primaryColor + * Gets loginLogoWidth * * @return string */ - public function getPrimaryColor() + public function getLoginLogoWidth() { - return $this->container['primaryColor']; + return $this->container['loginLogoWidth']; } /** - * Sets primaryColor + * Sets loginLogoWidth * - * @param string $primaryColor primaryColor + * @param string $loginLogoWidth loginLogoWidth * * @return $this */ - public function setPrimaryColor($primaryColor) + public function setLoginLogoWidth($loginLogoWidth) { - $this->container['primaryColor'] = $primaryColor; + $this->container['loginLogoWidth'] = $loginLogoWidth; return $this; } /** - * Gets loginLogoWidth + * Gets menuLogoHeight * * @return string */ - public function getLoginLogoWidth() + public function getMenuLogoHeight() { - return $this->container['loginLogoWidth']; + return $this->container['menuLogoHeight']; } /** - * Sets loginLogoWidth + * Sets menuLogoHeight * - * @param string $loginLogoWidth loginLogoWidth + * @param string $menuLogoHeight menuLogoHeight * * @return $this */ - public function setLoginLogoWidth($loginLogoWidth) + public function setMenuLogoHeight($menuLogoHeight) { - $this->container['loginLogoWidth'] = $loginLogoWidth; + $this->container['menuLogoHeight'] = $menuLogoHeight; return $this; } /** - * Gets menuLogoHeight + * Gets primaryColor * * @return string */ - public function getMenuLogoHeight() + public function getPrimaryColor() { - return $this->container['menuLogoHeight']; + return $this->container['primaryColor']; } /** - * Sets menuLogoHeight + * Sets primaryColor * - * @param string $menuLogoHeight menuLogoHeight + * @param string $primaryColor primaryColor * * @return $this */ - public function setMenuLogoHeight($menuLogoHeight) + public function setPrimaryColor($primaryColor) { - $this->container['menuLogoHeight'] = $menuLogoHeight; + $this->container['primaryColor'] = $primaryColor; return $this; } @@ -612,6 +588,30 @@ public function setMenuLogoSrc($menuLogoSrc) return $this; } + + /** + * Gets privacy + * + * @return string + */ + public function getPrivacy() + { + return $this->container['privacy']; + } + + /** + * Sets privacy + * + * @param string $privacy privacy + * + * @return $this + */ + public function setPrivacy($privacy) + { + $this->container['privacy'] = $privacy; + + return $this; + } /** * Returns true if offset exists. False otherwise. * diff --git a/src/Model/JsonResponseDataDomainPremium.php b/src/Model/JsonResponseDataDomainPremium.php new file mode 100644 index 00000000..9d8d248a --- /dev/null +++ b/src/Model/JsonResponseDataDomainPremium.php @@ -0,0 +1,554 @@ + 'string', + 'messages' => '\Domainrobot\Model\Message[]', + 'status' => '\Domainrobot\Model\ResponseStatus', + 'object' => '\Domainrobot\Model\ResponseObject', + 'data' => '\Domainrobot\Model\DomainPremium[]', + 'ctid' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'stid' => null, + 'messages' => null, + 'status' => null, + 'object' => null, + 'data' => null, + 'ctid' => null + ]; + + /** + * 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 + * + * @var string[] + */ + protected static $attributeMap = [ + 'stid' => 'stid', + 'messages' => 'messages', + 'status' => 'status', + 'object' => 'object', + 'data' => 'data', + 'ctid' => 'ctid' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'stid' => 'setStid', + 'messages' => 'setMessages', + 'status' => 'setStatus', + 'object' => 'setObject', + 'data' => 'setData', + 'ctid' => 'setCtid' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'stid' => 'getStid', + 'messages' => 'getMessages', + 'status' => 'getStatus', + 'object' => 'getObject', + 'data' => 'getData', + 'ctid' => 'getCtid' + ]; + + /** + * 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; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['stid'] = isset($data['stid']) ? $this->createData($data['stid'], 'stid') : null; + $this->container['messages'] = isset($data['messages']) ? $this->createData($data['messages'], 'messages') : null; + $this->container['status'] = isset($data['status']) ? $this->createData($data['status'], 'status') : null; + $this->container['object'] = isset($data['object']) ? $this->createData($data['object'], 'object') : null; + $this->container['data'] = isset($data['data']) ? $this->createData($data['data'], 'data') : null; + $this->container['ctid'] = isset($data['ctid']) ? $this->createData($data['ctid'], 'ctid') : 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 || $property === '') { + 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 stid + * + * @return string + */ + public function getStid() + { + return $this->container['stid']; + } + + /** + * Sets stid + * + * @param string $stid The server transaction id for the response. + * + * @return $this + */ + public function setStid($stid) + { + $this->container['stid'] = $stid; + + return $this; + } + + /** + * Gets messages + * + * @return \Domainrobot\Model\Message[] + */ + public function getMessages() + { + return $this->container['messages']; + } + + /** + * Sets messages + * + * @param \Domainrobot\Model\Message[] $messages The messages belonging to the response. + * + * @return $this + */ + public function setMessages($messages) + { + $this->container['messages'] = $messages; + + return $this; + } + + /** + * Gets status + * + * @return \Domainrobot\Model\ResponseStatus + */ + public function getStatus() + { + return $this->container['status']; + } + + /** + * Sets status + * + * @param \Domainrobot\Model\ResponseStatus $status The status of the response. + * + * @return $this + */ + public function setStatus($status) + { + $this->container['status'] = $status; + + return $this; + } + + /** + * Gets object + * + * @return \Domainrobot\Model\ResponseObject + */ + public function getObject() + { + return $this->container['object']; + } + + /** + * Sets object + * + * @param \Domainrobot\Model\ResponseObject $object The object of the response. + * + * @return $this + */ + public function setObject($object) + { + $this->container['object'] = $object; + + return $this; + } + + /** + * Gets data + * + * @return \Domainrobot\Model\DomainPremium[] + */ + public function getData() + { + return $this->container['data']; + } + + /** + * Sets data + * + * @param \Domainrobot\Model\DomainPremium[] $data The data for the response. The type of the objects are depending on the request and are also specified in the responseObject value of the response. + * + * @return $this + */ + public function setData($data) + { + $this->container['data'] = $data; + + return $this; + } + + /** + * Gets ctid + * + * @return string + */ + public function getCtid() + { + return $this->container['ctid']; + } + + /** + * Sets ctid + * + * @param string $ctid The client transaction id for the response. + * + * @return $this + */ + public function setCtid($ctid) + { + $this->container['ctid'] = $ctid; + + 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 === false && + empty($value) === true && + $value !== false && + $value !== '' && + $value !== 0 && + $value !== '0' + ) { + unset($container[$key]); + continue; + } + + if (gettype($value) === "object") { + if(method_exists($value, 'toArray')) { + $value = $value->toArray($retrieveAllValues); + }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($retrieveAllValues); + } + } + } + $cleanContainer[self::$attributeMap[$key]] = $value; + }; + return $cleanContainer; + } +} + + diff --git a/src/Model/Limit.php b/src/Model/Limit.php new file mode 100644 index 00000000..9183ec85 --- /dev/null +++ b/src/Model/Limit.php @@ -0,0 +1,464 @@ + '\Domainrobot\Model\TaskGroup', + 'limit' => '\Domainrobot\Model\TaskLimit', + 'count' => '\Domainrobot\Model\TaskCount' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'name' => null, + 'limit' => null, + 'count' => null + ]; + + /** + * 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 + * + * @var string[] + */ + protected static $attributeMap = [ + 'name' => 'name', + 'limit' => 'limit', + 'count' => 'count' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'name' => 'setName', + 'limit' => 'setLimit', + 'count' => 'setCount' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'name' => 'getName', + 'limit' => 'getLimit', + 'count' => 'getCount' + ]; + + /** + * 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; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['name'] = isset($data['name']) ? $this->createData($data['name'], 'name') : null; + $this->container['limit'] = isset($data['limit']) ? $this->createData($data['limit'], 'limit') : null; + $this->container['count'] = isset($data['count']) ? $this->createData($data['count'], 'count') : 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 || $property === '') { + 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 name + * + * @return \Domainrobot\Model\TaskGroup + */ + public function getName() + { + return $this->container['name']; + } + + /** + * Sets name + * + * @param \Domainrobot\Model\TaskGroup $name The task group name. + * + * @return $this + */ + public function setName($name) + { + $this->container['name'] = $name; + + return $this; + } + + /** + * Gets limit + * + * @return \Domainrobot\Model\TaskLimit + */ + public function getLimit() + { + return $this->container['limit']; + } + + /** + * Sets limit + * + * @param \Domainrobot\Model\TaskLimit $limit limit + * + * @return $this + */ + public function setLimit($limit) + { + $this->container['limit'] = $limit; + + return $this; + } + + /** + * Gets count + * + * @return \Domainrobot\Model\TaskCount + */ + public function getCount() + { + return $this->container['count']; + } + + /** + * Sets count + * + * @param \Domainrobot\Model\TaskCount $count count + * + * @return $this + */ + public function setCount($count) + { + $this->container['count'] = $count; + + 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 === false && + empty($value) === true && + $value !== false && + $value !== '' && + $value !== 0 && + $value !== '0' + ) { + unset($container[$key]); + continue; + } + + if (gettype($value) === "object") { + if(method_exists($value, 'toArray')) { + $value = $value->toArray($retrieveAllValues); + }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($retrieveAllValues); + } + } + } + $cleanContainer[self::$attributeMap[$key]] = $value; + }; + return $cleanContainer; + } +} + + diff --git a/src/Model/Metric.php b/src/Model/Metric.php new file mode 100644 index 00000000..75acbad6 --- /dev/null +++ b/src/Model/Metric.php @@ -0,0 +1,404 @@ + 'int' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'length' => 'int32' + ]; + + /** + * 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 + * + * @var string[] + */ + protected static $attributeMap = [ + 'length' => 'length' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'length' => 'setLength' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'length' => 'getLength' + ]; + + /** + * 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; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['length'] = isset($data['length']) ? $this->createData($data['length'], 'length') : 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 || $property === '') { + 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 length + * + * @return int + */ + public function getLength() + { + return $this->container['length']; + } + + /** + * Sets length + * + * @param int $length The lenght of the sld + * + * @return $this + */ + public function setLength($length) + { + $this->container['length'] = $length; + + 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 === false && + empty($value) === true && + $value !== false && + $value !== '' && + $value !== 0 && + $value !== '0' + ) { + unset($container[$key]); + continue; + } + + if (gettype($value) === "object") { + if(method_exists($value, 'toArray')) { + $value = $value->toArray($retrieveAllValues); + }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($retrieveAllValues); + } + } + } + $cleanContainer[self::$attributeMap[$key]] = $value; + }; + return $cleanContainer; + } +} + + diff --git a/src/Model/PremiumStatusConstants.php b/src/Model/PremiumStatusConstants.php new file mode 100644 index 00000000..4bdd6118 --- /dev/null +++ b/src/Model/PremiumStatusConstants.php @@ -0,0 +1,72 @@ + '\DateTime', 'updated' => '\DateTime', 'owner' => '\Domainrobot\Model\BasicUser', - 'updater' => '\Domainrobot\Model\BasicUser' + 'updater' => '\Domainrobot\Model\BasicUser', + 'name' => 'string', + 'types' => 'string[]' ]; /** @@ -72,7 +74,9 @@ class ProviderEntity implements ModelInterface, ArrayAccess 'created' => 'date-time', 'updated' => 'date-time', 'owner' => null, - 'updater' => null + 'updater' => null, + 'name' => null, + 'types' => null ]; /** @@ -105,7 +109,9 @@ public static function swaggerFormats() 'created' => 'created', 'updated' => 'updated', 'owner' => 'owner', - 'updater' => 'updater' + 'updater' => 'updater', + 'name' => 'name', + 'types' => 'types' ]; /** @@ -117,7 +123,9 @@ public static function swaggerFormats() 'created' => 'setCreated', 'updated' => 'setUpdated', 'owner' => 'setOwner', - 'updater' => 'setUpdater' + 'updater' => 'setUpdater', + 'name' => 'setName', + 'types' => 'setTypes' ]; /** @@ -129,7 +137,9 @@ public static function swaggerFormats() 'created' => 'getCreated', 'updated' => 'getUpdated', 'owner' => 'getOwner', - 'updater' => 'getUpdater' + 'updater' => 'getUpdater', + 'name' => 'getName', + 'types' => 'getTypes' ]; /** @@ -196,6 +206,8 @@ public function __construct(array $data = 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['name'] = isset($data['name']) ? $this->createData($data['name'], 'name') : null; + $this->container['types'] = isset($data['types']) ? $this->createData($data['types'], 'types') : null; } /** @@ -372,6 +384,54 @@ public function setUpdater($updater) return $this; } + + /** + * Gets name + * + * @return string + */ + public function getName() + { + return $this->container['name']; + } + + /** + * Sets name + * + * @param string $name The name of the provider + * + * @return $this + */ + public function setName($name) + { + $this->container['name'] = $name; + + return $this; + } + + /** + * Gets types + * + * @return string[] + */ + public function getTypes() + { + return $this->container['types']; + } + + /** + * Sets types + * + * @param string[] $types The supported types + * + * @return $this + */ + public function setTypes($types) + { + $this->container['types'] = $types; + + return $this; + } /** * Returns true if offset exists. False otherwise. * diff --git a/src/Model/User.php b/src/Model/User.php index f6ee378a..44794dc9 100644 --- a/src/Model/User.php +++ b/src/Model/User.php @@ -82,7 +82,8 @@ class User implements ModelInterface, ArrayAccess 'language' => 'string', 'parent' => '\Domainrobot\Model\User', 'directCustomer' => 'bool', - 'clientAccount' => '\Domainrobot\Model\ExternalAccounting' + 'clientAccounts' => '\Domainrobot\Model\ExternalAccounting[]', + 'tasklimits' => '\Domainrobot\Model\Limit[]' ]; /** @@ -116,7 +117,8 @@ class User implements ModelInterface, ArrayAccess 'language' => null, 'parent' => null, 'directCustomer' => null, - 'clientAccount' => null + 'clientAccounts' => null, + 'tasklimits' => null ]; /** @@ -171,7 +173,8 @@ public static function swaggerFormats() 'language' => 'language', 'parent' => 'parent', 'directCustomer' => 'directCustomer', - 'clientAccount' => 'clientAccount' + 'clientAccounts' => 'clientAccounts', + 'tasklimits' => 'tasklimits' ]; /** @@ -205,7 +208,8 @@ public static function swaggerFormats() 'language' => 'setLanguage', 'parent' => 'setParent', 'directCustomer' => 'setDirectCustomer', - 'clientAccount' => 'setClientAccount' + 'clientAccounts' => 'setClientAccounts', + 'tasklimits' => 'setTasklimits' ]; /** @@ -239,7 +243,8 @@ public static function swaggerFormats() 'language' => 'getLanguage', 'parent' => 'getParent', 'directCustomer' => 'getDirectCustomer', - 'clientAccount' => 'getClientAccount' + 'clientAccounts' => 'getClientAccounts', + 'tasklimits' => 'getTasklimits' ]; /** @@ -327,7 +332,8 @@ public function __construct(array $data = null) $this->container['language'] = isset($data['language']) ? $this->createData($data['language'], 'language') : null; $this->container['parent'] = isset($data['parent']) ? $this->createData($data['parent'], 'parent') : null; $this->container['directCustomer'] = isset($data['directCustomer']) ? $this->createData($data['directCustomer'], 'directCustomer') : null; - $this->container['clientAccount'] = isset($data['clientAccount']) ? $this->createData($data['clientAccount'], 'clientAccount') : null; + $this->container['clientAccounts'] = isset($data['clientAccounts']) ? $this->createData($data['clientAccounts'], 'clientAccounts') : null; + $this->container['tasklimits'] = isset($data['tasklimits']) ? $this->createData($data['tasklimits'], 'tasklimits') : null; } /** @@ -1025,25 +1031,49 @@ public function setDirectCustomer($directCustomer) } /** - * Gets clientAccount + * Gets clientAccounts * - * @return \Domainrobot\Model\ExternalAccounting + * @return \Domainrobot\Model\ExternalAccounting[] */ - public function getClientAccount() + public function getClientAccounts() { - return $this->container['clientAccount']; + return $this->container['clientAccounts']; } /** - * Sets clientAccount + * Sets clientAccounts * - * @param \Domainrobot\Model\ExternalAccounting $clientAccount The client accounting data for the user. + * @param \Domainrobot\Model\ExternalAccounting[] $clientAccounts The client accounting datas for the user. * * @return $this */ - public function setClientAccount($clientAccount) + public function setClientAccounts($clientAccounts) { - $this->container['clientAccount'] = $clientAccount; + $this->container['clientAccounts'] = $clientAccounts; + + return $this; + } + + /** + * Gets tasklimits + * + * @return \Domainrobot\Model\Limit[] + */ + public function getTasklimits() + { + return $this->container['tasklimits']; + } + + /** + * Sets tasklimits + * + * @param \Domainrobot\Model\Limit[] $tasklimits The task limits of the user. + * + * @return $this + */ + public function setTasklimits($tasklimits) + { + $this->container['tasklimits'] = $tasklimits; return $this; } diff --git a/src/Model/VmcTrademarkCountryOrRegion.php b/src/Model/VmcTrademarkCountryOrRegion.php new file mode 100644 index 00000000..934f0599 --- /dev/null +++ b/src/Model/VmcTrademarkCountryOrRegion.php @@ -0,0 +1,74 @@ +