src/Request/CartDiscounts/CartDiscountDeleteRequest.php 1 location
|
@@ 18-42 (lines=25) @@
|
| 15 |
|
* @apidoc http://dev.sphere.io/http-api-projects-cartDiscounts.html#delete-cart-discount |
| 16 |
|
* @method CartDiscount mapResponse(ApiResponseInterface $response) |
| 17 |
|
*/ |
| 18 |
|
class CartDiscountDeleteRequest extends AbstractDeleteRequest |
| 19 |
|
{ |
| 20 |
|
protected $resultClass = '\Commercetools\Core\Model\CartDiscount\CartDiscount'; |
| 21 |
|
|
| 22 |
|
/** |
| 23 |
|
* @param string $id |
| 24 |
|
* @param int $version |
| 25 |
|
* @param Context $context |
| 26 |
|
*/ |
| 27 |
|
public function __construct($id, $version, Context $context = null) |
| 28 |
|
{ |
| 29 |
|
parent::__construct(CartDiscountsEndpoint::endpoint(), $id, $version, $context); |
| 30 |
|
} |
| 31 |
|
|
| 32 |
|
/** |
| 33 |
|
* @param string $id |
| 34 |
|
* @param int $version |
| 35 |
|
* @param Context $context |
| 36 |
|
* @return static |
| 37 |
|
*/ |
| 38 |
|
public static function ofIdAndVersion($id, $version, Context $context = null) |
| 39 |
|
{ |
| 40 |
|
return new static($id, $version, $context); |
| 41 |
|
} |
| 42 |
|
} |
| 43 |
|
|
src/Request/Carts/CartDeleteRequest.php 1 location
|
@@ 19-43 (lines=25) @@
|
| 16 |
|
* @apidoc http://dev.sphere.io/http-api-projects-carts.html#delete-cart |
| 17 |
|
* @method Cart mapResponse(ApiResponseInterface $response) |
| 18 |
|
*/ |
| 19 |
|
class CartDeleteRequest extends AbstractDeleteRequest |
| 20 |
|
{ |
| 21 |
|
protected $resultClass = '\Commercetools\Core\Model\Cart\Cart'; |
| 22 |
|
|
| 23 |
|
/** |
| 24 |
|
* @param string $id |
| 25 |
|
* @param int $version |
| 26 |
|
* @param Context $context |
| 27 |
|
*/ |
| 28 |
|
public function __construct($id, $version, Context $context = null) |
| 29 |
|
{ |
| 30 |
|
parent::__construct(CartsEndpoint::endpoint(), $id, $version, $context); |
| 31 |
|
} |
| 32 |
|
|
| 33 |
|
/** |
| 34 |
|
* @param string $id |
| 35 |
|
* @param int $version |
| 36 |
|
* @param Context $context |
| 37 |
|
* @return static |
| 38 |
|
*/ |
| 39 |
|
public static function ofIdAndVersion($id, $version, Context $context = null) |
| 40 |
|
{ |
| 41 |
|
return new static($id, $version, $context); |
| 42 |
|
} |
| 43 |
|
} |
| 44 |
|
|
src/Request/Categories/CategoryByIdGetRequest.php 1 location
|
@@ 19-41 (lines=23) @@
|
| 16 |
|
* @apidoc http://dev.sphere.io/http-api-projects-categories.html#category-by-id |
| 17 |
|
* @method Category mapResponse(ApiResponseInterface $response) |
| 18 |
|
*/ |
| 19 |
|
class CategoryByIdGetRequest extends AbstractByIdGetRequest |
| 20 |
|
{ |
| 21 |
|
protected $resultClass = '\Commercetools\Core\Model\Category\Category'; |
| 22 |
|
|
| 23 |
|
/** |
| 24 |
|
* @param string $id |
| 25 |
|
* @param Context $context |
| 26 |
|
*/ |
| 27 |
|
public function __construct($id, Context $context = null) |
| 28 |
|
{ |
| 29 |
|
parent::__construct(CategoriesEndpoint::endpoint(), $id, $context); |
| 30 |
|
} |
| 31 |
|
|
| 32 |
|
/** |
| 33 |
|
* @param string $id |
| 34 |
|
* @param Context $context |
| 35 |
|
* @return static |
| 36 |
|
*/ |
| 37 |
|
public static function ofId($id, Context $context = null) |
| 38 |
|
{ |
| 39 |
|
return new static($id, $context); |
| 40 |
|
} |
| 41 |
|
} |
| 42 |
|
|
src/Request/Categories/CategoryCreateRequest.php 1 location
|
@@ 20-42 (lines=23) @@
|
| 17 |
|
* @apidoc http://dev.sphere.io/http-api-projects-categories.html#create-category |
| 18 |
|
* @method Category mapResponse(ApiResponseInterface $response) |
| 19 |
|
*/ |
| 20 |
|
class CategoryCreateRequest extends AbstractCreateRequest |
| 21 |
|
{ |
| 22 |
|
protected $resultClass = '\Commercetools\Core\Model\Category\Category'; |
| 23 |
|
|
| 24 |
|
/** |
| 25 |
|
* @param CategoryDraft $category |
| 26 |
|
* @param Context $context |
| 27 |
|
*/ |
| 28 |
|
public function __construct(CategoryDraft $category, Context $context = null) |
| 29 |
|
{ |
| 30 |
|
parent::__construct(CategoriesEndpoint::endpoint(), $category, $context); |
| 31 |
|
} |
| 32 |
|
|
| 33 |
|
/** |
| 34 |
|
* @param CategoryDraft $category |
| 35 |
|
* @param Context $context |
| 36 |
|
* @return static |
| 37 |
|
*/ |
| 38 |
|
public static function ofDraft(CategoryDraft $category, Context $context = null) |
| 39 |
|
{ |
| 40 |
|
return new static($category, $context); |
| 41 |
|
} |
| 42 |
|
} |
| 43 |
|
|
src/Request/Categories/CategoryDeleteRequest.php 1 location
|
@@ 19-43 (lines=25) @@
|
| 16 |
|
* @apidoc http://dev.sphere.io/http-api-projects-categories.html#delete-category |
| 17 |
|
* @method Category mapResponse(ApiResponseInterface $response) |
| 18 |
|
*/ |
| 19 |
|
class CategoryDeleteRequest extends AbstractDeleteRequest |
| 20 |
|
{ |
| 21 |
|
protected $resultClass = '\Commercetools\Core\Model\Category\Category'; |
| 22 |
|
|
| 23 |
|
/** |
| 24 |
|
* @param string $id |
| 25 |
|
* @param int $version |
| 26 |
|
* @param Context $context |
| 27 |
|
*/ |
| 28 |
|
public function __construct($id, $version, Context $context = null) |
| 29 |
|
{ |
| 30 |
|
parent::__construct(CategoriesEndpoint::endpoint(), $id, $version, $context); |
| 31 |
|
} |
| 32 |
|
|
| 33 |
|
/** |
| 34 |
|
* @param string $id |
| 35 |
|
* @param int $version |
| 36 |
|
* @param Context $context |
| 37 |
|
* @return static |
| 38 |
|
*/ |
| 39 |
|
public static function ofIdAndVersion($id, $version, Context $context = null) |
| 40 |
|
{ |
| 41 |
|
return new static($id, $version, $context); |
| 42 |
|
} |
| 43 |
|
} |
| 44 |
|
|
src/Request/Categories/CategoryUpdateRequest.php 1 location
|
@@ 19-44 (lines=26) @@
|
| 16 |
|
* @apidoc http://dev.sphere.io/http-api-projects-categories.html#update-category |
| 17 |
|
* @method Category mapResponse(ApiResponseInterface $response) |
| 18 |
|
*/ |
| 19 |
|
class CategoryUpdateRequest extends AbstractUpdateRequest |
| 20 |
|
{ |
| 21 |
|
protected $resultClass = '\Commercetools\Core\Model\Category\Category'; |
| 22 |
|
|
| 23 |
|
/** |
| 24 |
|
* @param string $id |
| 25 |
|
* @param int $version |
| 26 |
|
* @param array $actions |
| 27 |
|
* @param Context $context |
| 28 |
|
*/ |
| 29 |
|
public function __construct($id, $version, array $actions = [], Context $context = null) |
| 30 |
|
{ |
| 31 |
|
parent::__construct(CategoriesEndpoint::endpoint(), $id, $version, $actions, $context); |
| 32 |
|
} |
| 33 |
|
|
| 34 |
|
/** |
| 35 |
|
* @param string $id |
| 36 |
|
* @param int $version |
| 37 |
|
* @param Context $context |
| 38 |
|
* @return static |
| 39 |
|
*/ |
| 40 |
|
public static function ofIdAndVersion($id, $version, Context $context = null) |
| 41 |
|
{ |
| 42 |
|
return new static($id, $version, [], $context); |
| 43 |
|
} |
| 44 |
|
} |
| 45 |
|
|
src/Request/Channels/ChannelDeleteRequest.php 1 location
|
@@ 18-42 (lines=25) @@
|
| 15 |
|
* @apidoc http://dev.sphere.io/http-api-projects-channels.html#delete-channel |
| 16 |
|
* @method Channel mapResponse(ApiResponseInterface $response) |
| 17 |
|
*/ |
| 18 |
|
class ChannelDeleteRequest extends AbstractDeleteRequest |
| 19 |
|
{ |
| 20 |
|
protected $resultClass = '\Commercetools\Core\Model\Channel\Channel'; |
| 21 |
|
|
| 22 |
|
/** |
| 23 |
|
* @param string $id |
| 24 |
|
* @param int $version |
| 25 |
|
* @param Context $context |
| 26 |
|
*/ |
| 27 |
|
public function __construct($id, $version, Context $context = null) |
| 28 |
|
{ |
| 29 |
|
parent::__construct(ChannelsEndpoint::endpoint(), $id, $version, $context); |
| 30 |
|
} |
| 31 |
|
|
| 32 |
|
/** |
| 33 |
|
* @param string $id |
| 34 |
|
* @param int $version |
| 35 |
|
* @param Context $context |
| 36 |
|
* @return static |
| 37 |
|
*/ |
| 38 |
|
public static function ofIdAndVersion($id, $version, Context $context = null) |
| 39 |
|
{ |
| 40 |
|
return new static($id, $version, $context); |
| 41 |
|
} |
| 42 |
|
} |
| 43 |
|
|
src/Request/CustomerGroups/CustomerGroupDeleteRequest.php 1 location
|
@@ 18-42 (lines=25) @@
|
| 15 |
|
* @apidoc http://dev.sphere.io/http-api-projects-customerGroups.html#delete-customer-group |
| 16 |
|
* @method CustomerGroup mapResponse(ApiResponseInterface $response) |
| 17 |
|
*/ |
| 18 |
|
class CustomerGroupDeleteRequest extends AbstractDeleteRequest |
| 19 |
|
{ |
| 20 |
|
protected $resultClass = '\Commercetools\Core\Model\CustomerGroup\CustomerGroup'; |
| 21 |
|
|
| 22 |
|
/** |
| 23 |
|
* @param string $id |
| 24 |
|
* @param int $version |
| 25 |
|
* @param Context $context |
| 26 |
|
*/ |
| 27 |
|
public function __construct($id, $version, Context $context = null) |
| 28 |
|
{ |
| 29 |
|
parent::__construct(CustomerGroupsEndpoint::endpoint(), $id, $version, $context); |
| 30 |
|
} |
| 31 |
|
|
| 32 |
|
/** |
| 33 |
|
* @param string $id |
| 34 |
|
* @param int $version |
| 35 |
|
* @param Context $context |
| 36 |
|
* @return static |
| 37 |
|
*/ |
| 38 |
|
public static function ofIdAndVersion($id, $version, Context $context = null) |
| 39 |
|
{ |
| 40 |
|
return new static($id, $version, $context); |
| 41 |
|
} |
| 42 |
|
} |
| 43 |
|
|
src/Request/Customers/CustomerDeleteRequest.php 1 location
|
@@ 19-43 (lines=25) @@
|
| 16 |
|
* @apidoc http://dev.sphere.io/http-api-projects-customers.html#delete-customer |
| 17 |
|
* @method Customer mapResponse(ApiResponseInterface $response) |
| 18 |
|
*/ |
| 19 |
|
class CustomerDeleteRequest extends AbstractDeleteRequest |
| 20 |
|
{ |
| 21 |
|
protected $resultClass = '\Commercetools\Core\Model\Customer\Customer'; |
| 22 |
|
|
| 23 |
|
/** |
| 24 |
|
* @param string $id |
| 25 |
|
* @param int $version |
| 26 |
|
* @param Context $context |
| 27 |
|
*/ |
| 28 |
|
public function __construct($id, $version, Context $context = null) |
| 29 |
|
{ |
| 30 |
|
parent::__construct(CustomersEndpoint::endpoint(), $id, $version, $context); |
| 31 |
|
} |
| 32 |
|
|
| 33 |
|
/** |
| 34 |
|
* @param string $id |
| 35 |
|
* @param int $version |
| 36 |
|
* @param Context $context |
| 37 |
|
* @return static |
| 38 |
|
*/ |
| 39 |
|
public static function ofIdAndVersion($id, $version, Context $context = null) |
| 40 |
|
{ |
| 41 |
|
return new static($id, $version, $context); |
| 42 |
|
} |
| 43 |
|
} |
| 44 |
|
|
src/Request/DiscountCodes/DiscountCodeDeleteRequest.php 1 location
|
@@ 18-42 (lines=25) @@
|
| 15 |
|
* @apidoc http://dev.sphere.io/http-api-projects-discountCodes.html#delete-discount-code |
| 16 |
|
* @method DiscountCode mapResponse(ApiResponseInterface $response) |
| 17 |
|
*/ |
| 18 |
|
class DiscountCodeDeleteRequest extends AbstractDeleteRequest |
| 19 |
|
{ |
| 20 |
|
protected $resultClass = '\Commercetools\Core\Model\DiscountCode\DiscountCode'; |
| 21 |
|
|
| 22 |
|
/** |
| 23 |
|
* @param string $id |
| 24 |
|
* @param int $version |
| 25 |
|
* @param Context $context |
| 26 |
|
*/ |
| 27 |
|
public function __construct($id, $version, Context $context = null) |
| 28 |
|
{ |
| 29 |
|
parent::__construct(DiscountCodesEndpoint::endpoint(), $id, $version, $context); |
| 30 |
|
} |
| 31 |
|
|
| 32 |
|
/** |
| 33 |
|
* @param string $id |
| 34 |
|
* @param int $version |
| 35 |
|
* @param Context $context |
| 36 |
|
* @return static |
| 37 |
|
*/ |
| 38 |
|
public static function ofIdAndVersion($id, $version, Context $context = null) |
| 39 |
|
{ |
| 40 |
|
return new static($id, $version, $context); |
| 41 |
|
} |
| 42 |
|
} |
| 43 |
|
|
src/Request/Inventory/InventoryDeleteRequest.php 1 location
|
@@ 18-42 (lines=25) @@
|
| 15 |
|
* @apidoc http://dev.sphere.io/http-api-projects-inventory.html#delete-inventory |
| 16 |
|
* @method InventoryEntry mapResponse(ApiResponseInterface $response) |
| 17 |
|
*/ |
| 18 |
|
class InventoryDeleteRequest extends AbstractDeleteRequest |
| 19 |
|
{ |
| 20 |
|
protected $resultClass = '\Commercetools\Core\Model\Inventory\InventoryEntry'; |
| 21 |
|
|
| 22 |
|
/** |
| 23 |
|
* @param string $id |
| 24 |
|
* @param int $version |
| 25 |
|
* @param Context $context |
| 26 |
|
*/ |
| 27 |
|
public function __construct($id, $version, Context $context = null) |
| 28 |
|
{ |
| 29 |
|
parent::__construct(InventoryEndpoint::endpoint(), $id, $version, $context); |
| 30 |
|
} |
| 31 |
|
|
| 32 |
|
/** |
| 33 |
|
* @param string $id |
| 34 |
|
* @param int $version |
| 35 |
|
* @param Context $context |
| 36 |
|
* @return static |
| 37 |
|
*/ |
| 38 |
|
public static function ofIdAndVersion($id, $version, Context $context = null) |
| 39 |
|
{ |
| 40 |
|
return new static($id, $version, $context); |
| 41 |
|
} |
| 42 |
|
} |
| 43 |
|
|
src/Request/Orders/OrderDeleteRequest.php 1 location
|
@@ 17-41 (lines=25) @@
|
| 14 |
|
* @package Commercetools\Core\Request\Orders |
| 15 |
|
* @method Order mapResponse(ApiResponseInterface $response) |
| 16 |
|
*/ |
| 17 |
|
class OrderDeleteRequest extends AbstractDeleteRequest |
| 18 |
|
{ |
| 19 |
|
protected $resultClass = '\Commercetools\Core\Model\Order\Order'; |
| 20 |
|
|
| 21 |
|
/** |
| 22 |
|
* @param string $id |
| 23 |
|
* @param int $version |
| 24 |
|
* @param Context $context |
| 25 |
|
*/ |
| 26 |
|
public function __construct($id, $version, Context $context = null) |
| 27 |
|
{ |
| 28 |
|
parent::__construct(OrdersEndpoint::endpoint(), $id, $version, $context); |
| 29 |
|
} |
| 30 |
|
|
| 31 |
|
/** |
| 32 |
|
* @param string $id |
| 33 |
|
* @param int $version |
| 34 |
|
* @param Context $context |
| 35 |
|
* @return static |
| 36 |
|
*/ |
| 37 |
|
public static function ofIdAndVersion($id, $version, Context $context = null) |
| 38 |
|
{ |
| 39 |
|
return new static($id, $version, $context); |
| 40 |
|
} |
| 41 |
|
} |
| 42 |
|
|
src/Request/Payments/PaymentDeleteRequest.php 1 location
|
@@ 18-42 (lines=25) @@
|
| 15 |
|
* |
| 16 |
|
* @method Payment mapResponse(ApiResponseInterface $response) |
| 17 |
|
*/ |
| 18 |
|
class PaymentDeleteRequest extends AbstractDeleteRequest |
| 19 |
|
{ |
| 20 |
|
protected $resultClass = '\Commercetools\Core\Model\Payment\Payment'; |
| 21 |
|
|
| 22 |
|
/** |
| 23 |
|
* @param string $id |
| 24 |
|
* @param int $version |
| 25 |
|
* @param Context $context |
| 26 |
|
*/ |
| 27 |
|
public function __construct($id, $version, Context $context = null) |
| 28 |
|
{ |
| 29 |
|
parent::__construct(PaymentsEndpoint::endpoint(), $id, $version, $context); |
| 30 |
|
} |
| 31 |
|
|
| 32 |
|
/** |
| 33 |
|
* @param string $id |
| 34 |
|
* @param int $version |
| 35 |
|
* @param Context $context |
| 36 |
|
* @return static |
| 37 |
|
*/ |
| 38 |
|
public static function ofIdAndVersion($id, $version, Context $context = null) |
| 39 |
|
{ |
| 40 |
|
return new static($id, $version, $context); |
| 41 |
|
} |
| 42 |
|
} |
| 43 |
|
|
src/Request/ProductDiscounts/ProductDiscountDeleteRequest.php 1 location
|
@@ 18-42 (lines=25) @@
|
| 15 |
|
* @apidoc http://dev.sphere.io/http-api-projects-productDiscounts.html#delete-product-discount |
| 16 |
|
* @method ProductDiscount mapResponse(ApiResponseInterface $response) |
| 17 |
|
*/ |
| 18 |
|
class ProductDiscountDeleteRequest extends AbstractDeleteRequest |
| 19 |
|
{ |
| 20 |
|
protected $resultClass = '\Commercetools\Core\Model\ProductDiscount\ProductDiscount'; |
| 21 |
|
|
| 22 |
|
/** |
| 23 |
|
* @param string $id |
| 24 |
|
* @param int $version |
| 25 |
|
* @param Context $context |
| 26 |
|
*/ |
| 27 |
|
public function __construct($id, $version, Context $context = null) |
| 28 |
|
{ |
| 29 |
|
parent::__construct(ProductDiscountsEndpoint::endpoint(), $id, $version, $context); |
| 30 |
|
} |
| 31 |
|
|
| 32 |
|
/** |
| 33 |
|
* @param string $id |
| 34 |
|
* @param int $version |
| 35 |
|
* @param Context $context |
| 36 |
|
* @return static |
| 37 |
|
*/ |
| 38 |
|
public static function ofIdAndVersion($id, $version, Context $context = null) |
| 39 |
|
{ |
| 40 |
|
return new static($id, $version, $context); |
| 41 |
|
} |
| 42 |
|
} |
| 43 |
|
|
src/Request/Products/ProductDeleteRequest.php 1 location
|
@@ 18-42 (lines=25) @@
|
| 15 |
|
* @apidoc http://dev.sphere.io/http-api-projects-products.html#delete-product |
| 16 |
|
* @method Product mapResponse(ApiResponseInterface $response) |
| 17 |
|
*/ |
| 18 |
|
class ProductDeleteRequest extends AbstractDeleteRequest |
| 19 |
|
{ |
| 20 |
|
protected $resultClass = '\Commercetools\Core\Model\Product\Product'; |
| 21 |
|
|
| 22 |
|
/** |
| 23 |
|
* @param string $id |
| 24 |
|
* @param int $version |
| 25 |
|
* @param Context $context |
| 26 |
|
*/ |
| 27 |
|
public function __construct($id, $version, Context $context = null) |
| 28 |
|
{ |
| 29 |
|
parent::__construct(ProductsEndpoint::endpoint(), $id, $version, $context); |
| 30 |
|
} |
| 31 |
|
|
| 32 |
|
/** |
| 33 |
|
* @param string $id |
| 34 |
|
* @param int $version |
| 35 |
|
* @param Context $context |
| 36 |
|
* @return static |
| 37 |
|
*/ |
| 38 |
|
public static function ofIdAndVersion($id, $version, Context $context = null) |
| 39 |
|
{ |
| 40 |
|
return new static($id, $version, $context); |
| 41 |
|
} |
| 42 |
|
} |
| 43 |
|
|
src/Request/ProductTypes/ProductTypeDeleteRequest.php 1 location
|
@@ 18-42 (lines=25) @@
|
| 15 |
|
* @apidoc http://dev.sphere.io/http-api-projects-productTypes.html#delete-product-type |
| 16 |
|
* @method ProductType mapResponse(ApiResponseInterface $response) |
| 17 |
|
*/ |
| 18 |
|
class ProductTypeDeleteRequest extends AbstractDeleteRequest |
| 19 |
|
{ |
| 20 |
|
protected $resultClass = '\Commercetools\Core\Model\ProductType\ProductType'; |
| 21 |
|
|
| 22 |
|
/** |
| 23 |
|
* @param string $id |
| 24 |
|
* @param int $version |
| 25 |
|
* @param Context $context |
| 26 |
|
*/ |
| 27 |
|
public function __construct($id, $version, Context $context = null) |
| 28 |
|
{ |
| 29 |
|
parent::__construct(ProductTypesEndpoint::endpoint(), $id, $version, $context); |
| 30 |
|
} |
| 31 |
|
|
| 32 |
|
/** |
| 33 |
|
* @param string $id |
| 34 |
|
* @param int $version |
| 35 |
|
* @param Context $context |
| 36 |
|
* @return static |
| 37 |
|
*/ |
| 38 |
|
public static function ofIdAndVersion($id, $version, Context $context = null) |
| 39 |
|
{ |
| 40 |
|
return new static($id, $version, $context); |
| 41 |
|
} |
| 42 |
|
} |
| 43 |
|
|
src/Request/Reviews/ReviewDeleteRequest.php 1 location
|
@@ 17-41 (lines=25) @@
|
| 14 |
|
* @package Commercetools\Core\Request\Reviews |
| 15 |
|
* @method Review mapResponse(ApiResponseInterface $response) |
| 16 |
|
*/ |
| 17 |
|
class ReviewDeleteRequest extends AbstractDeleteRequest |
| 18 |
|
{ |
| 19 |
|
protected $resultClass = '\Commercetools\Core\Model\Review\Review'; |
| 20 |
|
|
| 21 |
|
/** |
| 22 |
|
* @param string $id |
| 23 |
|
* @param int $version |
| 24 |
|
* @param Context $context |
| 25 |
|
*/ |
| 26 |
|
public function __construct($id, $version, Context $context = null) |
| 27 |
|
{ |
| 28 |
|
parent::__construct(ReviewsEndpoint::endpoint(), $id, $version, $context); |
| 29 |
|
} |
| 30 |
|
|
| 31 |
|
/** |
| 32 |
|
* @param string $id |
| 33 |
|
* @param int $version |
| 34 |
|
* @param Context $context |
| 35 |
|
* @return static |
| 36 |
|
*/ |
| 37 |
|
public static function ofIdAndVersion($id, $version, Context $context = null) |
| 38 |
|
{ |
| 39 |
|
return new static($id, $version, $context); |
| 40 |
|
} |
| 41 |
|
} |
| 42 |
|
|
src/Request/States/StateDeleteRequest.php 1 location
|
@@ 18-42 (lines=25) @@
|
| 15 |
|
* @apidoc http://dev.sphere.io/http-api-projects-states.html#delete-state |
| 16 |
|
* @method State mapResponse(ApiResponseInterface $response) |
| 17 |
|
*/ |
| 18 |
|
class StateDeleteRequest extends AbstractDeleteRequest |
| 19 |
|
{ |
| 20 |
|
protected $resultClass = '\Commercetools\Core\Model\State\State'; |
| 21 |
|
|
| 22 |
|
/** |
| 23 |
|
* @param string $id |
| 24 |
|
* @param int $version |
| 25 |
|
* @param Context $context |
| 26 |
|
*/ |
| 27 |
|
public function __construct($id, $version, Context $context = null) |
| 28 |
|
{ |
| 29 |
|
parent::__construct(StatesEndpoint::endpoint(), $id, $version, $context); |
| 30 |
|
} |
| 31 |
|
|
| 32 |
|
/** |
| 33 |
|
* @param string $id |
| 34 |
|
* @param int $version |
| 35 |
|
* @param Context $context |
| 36 |
|
* @return static |
| 37 |
|
*/ |
| 38 |
|
public static function ofIdAndVersion($id, $version, Context $context = null) |
| 39 |
|
{ |
| 40 |
|
return new static($id, $version, $context); |
| 41 |
|
} |
| 42 |
|
} |
| 43 |
|
|
src/Request/TaxCategories/TaxCategoryDeleteRequest.php 1 location
|
@@ 18-42 (lines=25) @@
|
| 15 |
|
* @apidoc http://dev.sphere.io/http-api-projects-taxCategories.html#delete-tax-category |
| 16 |
|
* @method TaxCategory mapResponse(ApiResponseInterface $response) |
| 17 |
|
*/ |
| 18 |
|
class TaxCategoryDeleteRequest extends AbstractDeleteRequest |
| 19 |
|
{ |
| 20 |
|
protected $resultClass = '\Commercetools\Core\Model\TaxCategory\TaxCategory'; |
| 21 |
|
|
| 22 |
|
/** |
| 23 |
|
* @param string $id |
| 24 |
|
* @param int $version |
| 25 |
|
* @param Context $context |
| 26 |
|
*/ |
| 27 |
|
public function __construct($id, $version, Context $context = null) |
| 28 |
|
{ |
| 29 |
|
parent::__construct(TaxCategoriesEndpoint::endpoint(), $id, $version, $context); |
| 30 |
|
} |
| 31 |
|
|
| 32 |
|
/** |
| 33 |
|
* @param string $id |
| 34 |
|
* @param int $version |
| 35 |
|
* @param Context $context |
| 36 |
|
* @return static |
| 37 |
|
*/ |
| 38 |
|
public static function ofIdAndVersion($id, $version, Context $context = null) |
| 39 |
|
{ |
| 40 |
|
return new static($id, $version, $context); |
| 41 |
|
} |
| 42 |
|
} |
| 43 |
|
|
src/Request/Types/TypeDeleteRequest.php 1 location
|
@@ 17-41 (lines=25) @@
|
| 14 |
|
* @package Commercetools\Core\Request\Types |
| 15 |
|
* @method Type mapResponse(ApiResponseInterface $response) |
| 16 |
|
*/ |
| 17 |
|
class TypeDeleteRequest extends AbstractDeleteRequest |
| 18 |
|
{ |
| 19 |
|
protected $resultClass = '\Commercetools\Core\Model\Type\Type'; |
| 20 |
|
|
| 21 |
|
/** |
| 22 |
|
* @param string $id |
| 23 |
|
* @param int $version |
| 24 |
|
* @param Context $context |
| 25 |
|
*/ |
| 26 |
|
public function __construct($id, $version, Context $context = null) |
| 27 |
|
{ |
| 28 |
|
parent::__construct(TypesEndpoint::endpoint(), $id, $version, $context); |
| 29 |
|
} |
| 30 |
|
|
| 31 |
|
/** |
| 32 |
|
* @param string $id |
| 33 |
|
* @param int $version |
| 34 |
|
* @param Context $context |
| 35 |
|
* @return static |
| 36 |
|
*/ |
| 37 |
|
public static function ofIdAndVersion($id, $version, Context $context = null) |
| 38 |
|
{ |
| 39 |
|
return new static($id, $version, $context); |
| 40 |
|
} |
| 41 |
|
} |
| 42 |
|
|
src/Request/Zones/ZoneDeleteRequest.php 1 location
|
@@ 18-42 (lines=25) @@
|
| 15 |
|
* @apidoc http://dev.sphere.io/http-api-projects-zones.html#delete-zone |
| 16 |
|
* @method Zone mapResponse(ApiResponseInterface $response) |
| 17 |
|
*/ |
| 18 |
|
class ZoneDeleteRequest extends AbstractDeleteRequest |
| 19 |
|
{ |
| 20 |
|
protected $resultClass = '\Commercetools\Core\Model\Zone\Zone'; |
| 21 |
|
|
| 22 |
|
/** |
| 23 |
|
* @param string $id |
| 24 |
|
* @param int $version |
| 25 |
|
* @param Context $context |
| 26 |
|
*/ |
| 27 |
|
public function __construct($id, $version, Context $context = null) |
| 28 |
|
{ |
| 29 |
|
parent::__construct(ZonesEndpoint::endpoint(), $id, $version, $context); |
| 30 |
|
} |
| 31 |
|
|
| 32 |
|
/** |
| 33 |
|
* @param string $id |
| 34 |
|
* @param int $version |
| 35 |
|
* @param Context $context |
| 36 |
|
* @return static |
| 37 |
|
*/ |
| 38 |
|
public static function ofIdAndVersion($id, $version, Context $context = null) |
| 39 |
|
{ |
| 40 |
|
return new static($id, $version, $context); |
| 41 |
|
} |
| 42 |
|
} |
| 43 |
|
|
src/Request/CustomObjects/CustomObjectDeleteRequest.php 1 location
|
@@ 14-38 (lines=25) @@
|
| 11 |
|
/** |
| 12 |
|
* Class CustomObjectDeleteRequest |
| 13 |
|
*/ |
| 14 |
|
class CustomObjectDeleteRequest extends AbstractDeleteRequest |
| 15 |
|
{ |
| 16 |
|
protected $resultClass = '\Commercetools\Core\Model\CustomObject\CustomObject'; |
| 17 |
|
|
| 18 |
|
/** |
| 19 |
|
* @param string $id |
| 20 |
|
* @param int $version |
| 21 |
|
* @param Context $context |
| 22 |
|
*/ |
| 23 |
|
public function __construct($id, $version, Context $context = null) |
| 24 |
|
{ |
| 25 |
|
parent::__construct(CustomObjectsEndpoint::endpoint(), $id, $version, $context); |
| 26 |
|
} |
| 27 |
|
|
| 28 |
|
/** |
| 29 |
|
* @param string $id |
| 30 |
|
* @param int $version |
| 31 |
|
* @param Context $context |
| 32 |
|
* @return static |
| 33 |
|
*/ |
| 34 |
|
public static function ofIdAndVersion($id, $version, Context $context = null) |
| 35 |
|
{ |
| 36 |
|
return new static($id, $version, $context); |
| 37 |
|
} |
| 38 |
|
} |
| 39 |
|
|
| 40 |
|
|