for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* @author @jenschude <[email protected]>
*/
namespace Commercetools\Core\Request\Me;
use Commercetools\Core\Model\Common\Context;
use Commercetools\Core\Request\AbstractDeleteRequest;
use Commercetools\Core\Model\Customer\Customer;
use Commercetools\Core\Response\ApiResponseInterface;
use Commercetools\Core\Model\MapperInterface;
* @package Commercetools\Core\Request\Me
* @link https://docs.commercetools.com/http-api-projects-me-profile.html#delete-customer
* @method Customer mapResponse(ApiResponseInterface $response)
* @method Customer mapFromResponse(ApiResponseInterface $response, MapperInterface $mapper = null)
class MeDeleteRequest extends AbstractDeleteRequest
{
protected $resultClass = Customer::class;
* @param int $version
* @param Context $context
public function __construct($version, Context $context = null)
parent::__construct(MeEndpoint::endpoint(), null, $version, $context);
}
* @return static
public static function ofVersion($version, Context $context = null)
return new static($version, $context);
* @return string
* @internal
protected function getPath()
return (string)$this->getEndpoint() . $this->getParamString();