Пример #1
0
 public function getDeleteMapping(DeleteMappingRequestOptions $options)
 {
     $response = $this->doSimpleRequest($this->getMappingIdURL($options->getMappingId()), Connector::DELETE);
     $xml = simplexml_load_string($response);
     return $this->buildDeleteMapping($xml);
 }
 public function testDeleteMappingServiceTest()
 {
     $inquireRequest = new InquireMappingRequest();
     $inquireRequest->setSubscriberId("*****@*****.**");
     $inquireRequest->setSubscriberType("EMAIL_ADDRESS");
     $inquireMapping = $this->cardMappingService->getInquireMapping($inquireRequest);
     $mapping = $inquireMapping->getMappings()->getMapping();
     $deleteOptions = new DeleteMappingRequestOptions();
     $deleteOptions->setMappingId($mapping[0]->getMappingId());
     $deleteMapping = $this->cardMappingService->getDeleteMapping($deleteOptions);
     $this->assertTrue($deleteMapping->getRequestId() != null && $deleteMapping->getRequestId() > 0);
     $this->assertTrue($deleteMapping->getMapping()->getMappingId() > 0);
 }