@@ 226-251 (lines=26) @@ | ||
223 | * @throws Model\Exception\UnknownApiException |
|
224 | * @throws Model\Exception\UnknownException |
|
225 | */ |
|
226 | public function autoReplaceSSL(array $params) |
|
227 | { |
|
228 | // Two choices, we want url-encoded |
|
229 | $params["responseFormat"] = CommunicationAdapter::RESPONSE_URL_ENCODED; |
|
230 | ||
231 | // Send request |
|
232 | $arr = $this |
|
233 | ->communicationAdapter |
|
234 | ->sendToApi( |
|
235 | self::COMODO_AUTO_REPLACE_URL, |
|
236 | $params,CommunicationAdapter::RESPONSE_URL_ENCODED |
|
237 | ); |
|
238 | ||
239 | // Successful |
|
240 | if ($arr["errorCode"] == 0) { |
|
241 | $result = new AutoReplaceResult(); |
|
242 | ||
243 | $result |
|
244 | ->setCertificateID($arr["certificateID"]) |
|
245 | ->setExpectedDeliveryTime($arr["expectedDeliveryTime"]); |
|
246 | ||
247 | return $result; |
|
248 | } else { |
|
249 | throw $this->createException($arr); |
|
250 | } |
|
251 | } |
|
252 | ||
253 | /** |
|
254 | * Function to revoke order |
|
@@ 488-511 (lines=24) @@ | ||
485 | * @throws Model\Exception\UnknownApiException |
|
486 | * @throws Model\Exception\UnknownException |
|
487 | */ |
|
488 | public function getMDCDomainDetails(array $params) |
|
489 | { |
|
490 | // Response is always new line encoded |
|
491 | $responseArray = $this |
|
492 | ->communicationAdapter |
|
493 | ->sendToApi( |
|
494 | self::COMODO_MDC_DOMAIN_DETAILS_URL, |
|
495 | $params, |
|
496 | CommunicationAdapter::RESPONSE_URL_ENCODED |
|
497 | ); |
|
498 | ||
499 | if ($responseArray["errorCode"] == 0) { |
|
500 | $result = new GetMDCDomainDetailsResult(); |
|
501 | ||
502 | $result |
|
503 | ->setDomainName($responseArray["1_domainName"]) |
|
504 | ->setDcvMethod($responseArray["1_dcvMethod"]) |
|
505 | ->setDcvStatus($responseArray["1_dcvStatus"]); |
|
506 | ||
507 | return $result; |
|
508 | } else { |
|
509 | throw $this->createException($responseArray); |
|
510 | } |
|
511 | } |
|
512 | ||
513 | /** |
|
514 | * Function to enter the DCV code, coming from DCV E-Mail |