'string', 'name' => 'string', 'san' => 'string[]', 'histories' => '\Domainrobot\Model\CertificateHistory[]', 'keySize' => 'int', 'countryCode' => 'string', 'challengePassword' => 'string', 'state' => 'string', 'city' => 'string', 'organization' => 'string', 'organizationUnit' => 'string', 'email' => 'string', 'product' => 'string', 'authentication' => '\Domainrobot\Model\CertAuthentication[]', 'algorithm' => '\Domainrobot\Model\CsrHashAlgorithmConstants', 'signatureHashAlgorithm' => '\Domainrobot\Model\SignatureHashAlgorithmConstants', 'certificate' => '\Domainrobot\Model\Certificate', 'idn' => 'string', 'checkCaa' => 'bool', 'businessCase' => 'string', ]; /** * Array of property to format mappings. Used for (de)serialization * * @var string[] */ protected static $swaggerFormats = [ 'plain' => null, 'name' => null, 'san' => null, 'histories' => null, 'keySize' => 'int32', 'countryCode' => null, 'challengePassword' => null, 'state' => null, 'city' => null, 'organization' => null, 'organizationUnit' => null, 'email' => null, 'product' => null, 'authentication' => null, 'algorithm' => null, 'signatureHashAlgorithm' => null, 'certificate' => null, 'idn' => null, 'checkCaa' => null, 'businessCase' => null, ]; /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ protected static $attributeMap = [ 'plain' => 'plain', 'name' => 'name', 'san' => 'san', 'histories' => 'histories', 'keySize' => 'keySize', 'countryCode' => 'countryCode', 'challengePassword' => 'challengePassword', 'state' => 'state', 'city' => 'city', 'organization' => 'organization', 'organizationUnit' => 'organizationUnit', 'email' => 'email', 'product' => 'product', 'authentication' => 'authentication', 'algorithm' => 'algorithm', 'signatureHashAlgorithm' => 'signatureHashAlgorithm', 'certificate' => 'certificate', 'idn' => 'idn', 'checkCaa' => 'checkCaa', 'businessCase' => 'businessCase', ]; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ protected static $setters = [ 'plain' => 'setPlain', 'name' => 'setName', 'san' => 'setSan', 'histories' => 'setHistories', 'keySize' => 'setKeySize', 'countryCode' => 'setCountryCode', 'challengePassword' => 'setChallengePassword', 'state' => 'setState', 'city' => 'setCity', 'organization' => 'setOrganization', 'organizationUnit' => 'setOrganizationUnit', 'email' => 'setEmail', 'product' => 'setProduct', 'authentication' => 'setAuthentication', 'algorithm' => 'setAlgorithm', 'signatureHashAlgorithm' => 'setSignatureHashAlgorithm', 'certificate' => 'setCertificate', 'idn' => 'setIdn', 'checkCaa' => 'setCheckCaa', 'businessCase' => 'setBusinessCase', ]; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ protected static $getters = [ 'plain' => 'getPlain', 'name' => 'getName', 'san' => 'getSan', 'histories' => 'getHistories', 'keySize' => 'getKeySize', 'countryCode' => 'getCountryCode', 'challengePassword' => 'getChallengePassword', 'state' => 'getState', 'city' => 'getCity', 'organization' => 'getOrganization', 'organizationUnit' => 'getOrganizationUnit', 'email' => 'getEmail', 'product' => 'getProduct', 'authentication' => 'getAuthentication', 'algorithm' => 'getAlgorithm', 'signatureHashAlgorithm' => 'getSignatureHashAlgorithm', 'certificate' => 'getCertificate', 'idn' => 'getIdn', 'checkCaa' => 'getCheckCaa', 'businessCase' => 'getBusinessCase', ]; /** * 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['plain'] = isset($data['plain']) ? $this->createData($data['plain'], 'plain') : null; $this->container['name'] = isset($data['name']) ? $this->createData($data['name'], 'name') : null; $this->container['san'] = isset($data['san']) ? $this->createData($data['san'], 'san') : null; $this->container['histories'] = isset($data['histories']) ? $this->createData($data['histories'], 'histories') : null; $this->container['keySize'] = isset($data['keySize']) ? $this->createData($data['keySize'], 'keySize') : null; $this->container['countryCode'] = isset($data['countryCode']) ? $this->createData($data['countryCode'], 'countryCode') : null; $this->container['challengePassword'] = isset($data['challengePassword']) ? $this->createData($data['challengePassword'], 'challengePassword') : null; $this->container['state'] = isset($data['state']) ? $this->createData($data['state'], 'state') : null; $this->container['city'] = isset($data['city']) ? $this->createData($data['city'], 'city') : null; $this->container['organization'] = isset($data['organization']) ? $this->createData($data['organization'], 'organization') : null; $this->container['organizationUnit'] = isset($data['organizationUnit']) ? $this->createData($data['organizationUnit'], 'organizationUnit') : null; $this->container['email'] = isset($data['email']) ? $this->createData($data['email'], 'email') : null; $this->container['product'] = isset($data['product']) ? $this->createData($data['product'], 'product') : null; $this->container['authentication'] = isset($data['authentication']) ? $this->createData($data['authentication'], 'authentication') : null; $this->container['algorithm'] = isset($data['algorithm']) ? $this->createData($data['algorithm'], 'algorithm') : null; $this->container['signatureHashAlgorithm'] = isset($data['signatureHashAlgorithm']) ? $this->createData($data['signatureHashAlgorithm'], 'signatureHashAlgorithm') : null; $this->container['certificate'] = isset($data['certificate']) ? $this->createData($data['certificate'], 'certificate') : null; $this->container['idn'] = isset($data['idn']) ? $this->createData($data['idn'], 'idn') : 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; } /** * 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 plain * * @return string */ public function getPlain() { return $this->container['plain']; } /** * Sets plain * * @param string $plain The plain csr. * * @return $this */ public function setPlain($plain) { $this->container['plain'] = $plain; return $this; } /** * Gets name * * @return string */ public function getName() { return $this->container['name']; } /** * Sets name * * @param string $name The common name. * * @return $this */ public function setName($name) { $this->container['name'] = $name; return $this; } /** * Gets san * * @return string[] */ public function getSan() { return $this->container['san']; } /** * Sets san * * @param string[] $san The subject alternative names, listed in the csr. * * @return $this */ public function setSan($san) { $this->container['san'] = $san; return $this; } /** * Gets histories * * @return \Domainrobot\Model\CertificateHistory[] */ public function getHistories() { return $this->container['histories']; } /** * Sets histories * * @param \Domainrobot\Model\CertificateHistory[] $histories The certificate history. * * @return $this */ public function setHistories($histories) { $this->container['histories'] = $histories; return $this; } /** * Gets keySize * * @return int */ public function getKeySize() { return $this->container['keySize']; } /** * Sets keySize * * @param int $keySize The size of the csr key. * * @return $this */ public function setKeySize($keySize) { $this->container['keySize'] = $keySize; return $this; } /** * Gets countryCode * * @return string */ public function getCountryCode() { return $this->container['countryCode']; } /** * Sets countryCode * * @param string $countryCode The country code defined in the csr. * * @return $this */ public function setCountryCode($countryCode) { $this->container['countryCode'] = $countryCode; return $this; } /** * Gets challengePassword * * @return string */ public function getChallengePassword() { return $this->container['challengePassword']; } /** * Sets challengePassword * * @param string $challengePassword The password defined in the csr. * * @return $this */ public function setChallengePassword($challengePassword) { $this->container['challengePassword'] = $challengePassword; return $this; } /** * Gets state * * @return string */ public function getState() { return $this->container['state']; } /** * Sets state * * @param string $state The state defined in the csr. * * @return $this */ public function setState($state) { $this->container['state'] = $state; return $this; } /** * Gets city * * @return string */ public function getCity() { return $this->container['city']; } /** * Sets city * * @param string $city The city defined in the csr. * * @return $this */ public function setCity($city) { $this->container['city'] = $city; return $this; } /** * Gets organization * * @return string */ public function getOrganization() { return $this->container['organization']; } /** * Sets organization * * @param string $organization The organization defined in the csr. * * @return $this */ public function setOrganization($organization) { $this->container['organization'] = $organization; return $this; } /** * Gets organizationUnit * * @return string */ public function getOrganizationUnit() { return $this->container['organizationUnit']; } /** * Sets organizationUnit * * @param string $organizationUnit The organization unit defined in the csr. * * @return $this */ public function setOrganizationUnit($organizationUnit) { $this->container['organizationUnit'] = $organizationUnit; return $this; } /** * Gets email * * @return string */ public function getEmail() { return $this->container['email']; } /** * Sets email * * @param string $email The email defined in the csr. * * @return $this */ public function setEmail($email) { $this->container['email'] = $email; return $this; } /** * Gets product * * @return string */ public function getProduct() { return $this->container['product']; } /** * Sets product * * @param string $product The ssl product. * * @return $this */ public function setProduct($product) { $this->container['product'] = $product; return $this; } /** * Gets authentication * * @return \Domainrobot\Model\CertAuthentication[] */ public function getAuthentication() { return $this->container['authentication']; } /** * Sets authentication * * @param \Domainrobot\Model\CertAuthentication[] $authentication The authentication data. * * @return $this */ public function setAuthentication($authentication) { $this->container['authentication'] = $authentication; return $this; } /** * Gets algorithm * * @return \Domainrobot\Model\CsrHashAlgorithmConstants */ public function getAlgorithm() { return $this->container['algorithm']; } /** * Sets algorithm * * @param \Domainrobot\Model\CsrHashAlgorithmConstants $algorithm The csr algorithm. * * @return $this */ public function setAlgorithm($algorithm) { $this->container['algorithm'] = $algorithm; return $this; } /** * Gets signatureHashAlgorithm * * @return \Domainrobot\Model\SignatureHashAlgorithmConstants */ public function getSignatureHashAlgorithm() { return $this->container['signatureHashAlgorithm']; } /** * Sets signatureHashAlgorithm * * @param \Domainrobot\Model\SignatureHashAlgorithmConstants $signatureHashAlgorithm The signature hash algorithm. * * @return $this */ public function setSignatureHashAlgorithm($signatureHashAlgorithm) { $this->container['signatureHashAlgorithm'] = $signatureHashAlgorithm; return $this; } /** * Gets certificate * * @return \Domainrobot\Model\Certificate */ public function getCertificate() { return $this->container['certificate']; } /** * Sets certificate * * @param \Domainrobot\Model\Certificate $certificate The certificat. Only necessary if used before reissue, renew and delete. * * @return $this */ public function setCertificate($certificate) { $this->container['certificate'] = $certificate; return $this; } /** * Gets idn * * @return string */ public function getIdn() { return $this->container['idn']; } /** * Sets idn * * @param string $idn The idn version of the common name. * * @return $this */ public function setIdn($idn) { $this->container['idn'] = $idn; return $this; } /** * Gets checkCaa * * @return bool */ public function getCheckCaa() { return $this->container['checkCaa']; } /** * Sets checkCaa * * @param bool $checkCaa Activates the caa record check. * * @return $this */ public function setCheckCaa($checkCaa) { $this->container['checkCaa'] = $checkCaa; return $this; } /** * Gets businessCase * * @return string */ public function getBusinessCase() { return $this->container['businessCase']; } /** * Sets businessCase * * @param string $businessCase Describes the business case (CREATE, RENEW, REISSUE, DELETE) for which preparation is to be performed. * * @return $this */ public function setBusinessCase($businessCase) { $this->container['businessCase'] = $businessCase; 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:----BGrKjBWFkMAE8IeaOkuLV/oUxGv03ib38RA09qSXV9bXsKd68fv4fYgtiTWOi8GTGj7WMJ6hYDaRsHTT8fpEXC3EKeWVRaoFr5Crj0nLraaSsobAOW3EDN7Ewc6ro5SWad15PI2bASOrR9UNoZeYUeKvkRyWzbkT5n4oNoPPMPCqW+fNx4cIeUbtewbIrNUZy9dfHzs37SHUoJUQv2rE/Qy3VtSB2GWmssygRz8gs1oiz0gyhX/XN8WaCiShCz8EVIIXVNtvVbGllaX/KffxV8dWg3+liF7NoZObHm8n0+pLU4MyS29yNxlB+tlyJKRgeRYBJZ/jI679+8vJXVbxE3S7lQrde9b6plMBqLDeuim7OuTL9X7W7U4goLsbpkq1qQXuvwHRQVHK1UFEhtzh0TCalvlMGrnJR4WenKHhUT3Lmg86o7nOJ+9WNhJbWpnEuR4wAh/TVu31FFCQbnJpRmNQqirxTuFTw2IxHQdWoOA9ZT52N8KTnWn93+D7OJU8/nNBzFY7O/lWrXnGNpZjFzUYEY7FGpTjrSJAi2XyZSJPJOPNSkItEptLpelgEBtDq77KrLtQxhM432EtJH8mFMbs8nNX29lA79YysOFP47ORAIXq9aWPeRnONipv/ar7PJmEEQ74gW1onGUIQB0z+3zZvDXWwZCK6gk2RiKpkwk=----ATTACHMENT:----NTE5MjQ1NTUzOTUwODAwNSA3MjU1Njg3MDc5OTI4MDQ5IDE1NzE3NDg3MDk5NzQwOTA=