for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* @author @jayS-de <[email protected]>
*/
namespace Commercetools\Core\Request\ShippingMethods;
use Commercetools\Core\Model\Common\Context;
use Commercetools\Core\Model\ShippingMethod\ShippingMethod;
use Commercetools\Core\Request\AbstractDeleteRequest;
use Commercetools\Core\Response\ApiResponseInterface;
* @package Commercetools\Core\Request\ShippingMethods
* @link https://dev.commercetools.com/http-api-projects-shippingMethods.html#delete-shipping-method
* @method ShippingMethod mapResponse(ApiResponseInterface $response)
class ShippingMethodDeleteRequest extends AbstractDeleteRequest
{
protected $resultClass = '\Commercetools\Core\Model\ShippingMethod\ShippingMethod';
* @param string $id
* @param int $version
* @param Context $context
public function __construct($id, $version, Context $context = null)
parent::__construct(ShippingMethodsEndpoint::endpoint(), $id, $version, $context);
}
* @return static
public static function ofIdAndVersion($id, $version, Context $context = null)
return new static($id, $version, $context);