src/Request/CartDiscounts/CartDiscountUpdateRequest.php 1 location
|
@@ 18-43 (lines=26) @@
|
| 15 |
|
* @link https://dev.commercetools.com/http-api-projects-cartDiscounts.html#update-cartdiscount |
| 16 |
|
* @method CartDiscount mapResponse(ApiResponseInterface $response) |
| 17 |
|
*/ |
| 18 |
|
class CartDiscountUpdateRequest extends AbstractUpdateRequest |
| 19 |
|
{ |
| 20 |
|
protected $resultClass = '\Commercetools\Core\Model\CartDiscount\CartDiscount'; |
| 21 |
|
|
| 22 |
|
/** |
| 23 |
|
* @param string $id |
| 24 |
|
* @param string $version |
| 25 |
|
* @param array $actions |
| 26 |
|
* @param Context $context |
| 27 |
|
*/ |
| 28 |
|
public function __construct($id, $version, array $actions = [], Context $context = null) |
| 29 |
|
{ |
| 30 |
|
parent::__construct(CartDiscountsEndpoint::endpoint(), $id, $version, $actions, $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/Carts/CartUpdateRequest.php 1 location
|
@@ 18-43 (lines=26) @@
|
| 15 |
|
* @link https://dev.commercetools.com/http-api-projects-carts.html#update-cart |
| 16 |
|
* @method Cart mapResponse(ApiResponseInterface $response) |
| 17 |
|
*/ |
| 18 |
|
class CartUpdateRequest extends AbstractUpdateRequest |
| 19 |
|
{ |
| 20 |
|
protected $resultClass = '\Commercetools\Core\Model\Cart\Cart'; |
| 21 |
|
|
| 22 |
|
/** |
| 23 |
|
* @param string $id |
| 24 |
|
* @param string $version |
| 25 |
|
* @param array $actions |
| 26 |
|
* @param Context $context |
| 27 |
|
*/ |
| 28 |
|
public function __construct($id, $version, array $actions = [], Context $context = null) |
| 29 |
|
{ |
| 30 |
|
parent::__construct(CartsEndpoint::endpoint(), $id, $version, $actions, $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 |
|
* @link https://dev.commercetools.com/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/ChannelUpdateRequest.php 1 location
|
@@ 18-43 (lines=26) @@
|
| 15 |
|
* @link https://dev.commercetools.com/http-api-projects-channels.html#update-channel |
| 16 |
|
* @method Channel mapResponse(ApiResponseInterface $response) |
| 17 |
|
*/ |
| 18 |
|
class ChannelUpdateRequest extends AbstractUpdateRequest |
| 19 |
|
{ |
| 20 |
|
protected $resultClass = '\Commercetools\Core\Model\Channel\Channel'; |
| 21 |
|
|
| 22 |
|
/** |
| 23 |
|
* @param string $id |
| 24 |
|
* @param string $version |
| 25 |
|
* @param array $actions |
| 26 |
|
* @param Context $context |
| 27 |
|
*/ |
| 28 |
|
public function __construct($id, $version, array $actions = [], Context $context = null) |
| 29 |
|
{ |
| 30 |
|
parent::__construct(ChannelsEndpoint::endpoint(), $id, $version, $actions, $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/CustomerGroups/CustomerGroupUpdateRequest.php 1 location
|
@@ 18-43 (lines=26) @@
|
| 15 |
|
* @link https://dev.commercetools.com/http-api-projects-customerGroups.html#update-customergroup |
| 16 |
|
* @method CustomerGroup mapResponse(ApiResponseInterface $response) |
| 17 |
|
*/ |
| 18 |
|
class CustomerGroupUpdateRequest extends AbstractUpdateRequest |
| 19 |
|
{ |
| 20 |
|
protected $resultClass = '\Commercetools\Core\Model\CustomerGroup\CustomerGroup'; |
| 21 |
|
|
| 22 |
|
/** |
| 23 |
|
* @param string $id |
| 24 |
|
* @param string $version |
| 25 |
|
* @param array $actions |
| 26 |
|
* @param Context $context |
| 27 |
|
*/ |
| 28 |
|
public function __construct($id, $version, array $actions = [], Context $context = null) |
| 29 |
|
{ |
| 30 |
|
parent::__construct(CustomerGroupsEndpoint::endpoint(), $id, $version, $actions, $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/Customers/CustomerUpdateRequest.php 1 location
|
@@ 19-44 (lines=26) @@
|
| 16 |
|
* @link https://dev.commercetools.com/http-api-projects-customers.html#update-customer |
| 17 |
|
* @method Customer mapResponse(ApiResponseInterface $response) |
| 18 |
|
*/ |
| 19 |
|
class CustomerUpdateRequest extends AbstractUpdateRequest |
| 20 |
|
{ |
| 21 |
|
protected $resultClass = '\Commercetools\Core\Model\Customer\Customer'; |
| 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(CustomersEndpoint::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/DiscountCodes/DiscountCodeUpdateRequest.php 1 location
|
@@ 18-43 (lines=26) @@
|
| 15 |
|
* @link https://dev.commercetools.com/http-api-projects-discountCodes.html#update-discountcode |
| 16 |
|
* @method DiscountCode mapResponse(ApiResponseInterface $response) |
| 17 |
|
*/ |
| 18 |
|
class DiscountCodeUpdateRequest extends AbstractUpdateRequest |
| 19 |
|
{ |
| 20 |
|
protected $resultClass = '\Commercetools\Core\Model\DiscountCode\DiscountCode'; |
| 21 |
|
|
| 22 |
|
/** |
| 23 |
|
* @param string $id |
| 24 |
|
* @param string $version |
| 25 |
|
* @param array $actions |
| 26 |
|
* @param Context $context |
| 27 |
|
*/ |
| 28 |
|
public function __construct($id, $version, array $actions = [], Context $context = null) |
| 29 |
|
{ |
| 30 |
|
parent::__construct(DiscountCodesEndpoint::endpoint(), $id, $version, $actions, $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/Inventory/InventoryUpdateRequest.php 1 location
|
@@ 18-43 (lines=26) @@
|
| 15 |
|
* @link https://dev.commercetools.com/http-api-projects-inventory.html#update-an-inventoryentry |
| 16 |
|
* @method InventoryEntry mapResponse(ApiResponseInterface $response) |
| 17 |
|
*/ |
| 18 |
|
class InventoryUpdateRequest extends AbstractUpdateRequest |
| 19 |
|
{ |
| 20 |
|
protected $resultClass = '\Commercetools\Core\Model\Inventory\InventoryEntry'; |
| 21 |
|
|
| 22 |
|
/** |
| 23 |
|
* @param string $id |
| 24 |
|
* @param string $version |
| 25 |
|
* @param array $actions |
| 26 |
|
* @param Context $context |
| 27 |
|
*/ |
| 28 |
|
public function __construct($id, $version, array $actions = [], Context $context = null) |
| 29 |
|
{ |
| 30 |
|
parent::__construct(InventoryEndpoint::endpoint(), $id, $version, $actions, $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/Me/MeCartUpdateRequest.php 1 location
|
@@ 18-43 (lines=26) @@
|
| 15 |
|
* @link https://dev.commercetools.com/http-api-projects-me-carts.html#update-cart |
| 16 |
|
* @method Cart mapResponse(ApiResponseInterface $response) |
| 17 |
|
*/ |
| 18 |
|
class MeCartUpdateRequest extends AbstractUpdateRequest |
| 19 |
|
{ |
| 20 |
|
protected $resultClass = '\Commercetools\Core\Model\Cart\Cart'; |
| 21 |
|
|
| 22 |
|
/** |
| 23 |
|
* @param string $id |
| 24 |
|
* @param string $version |
| 25 |
|
* @param array $actions |
| 26 |
|
* @param Context $context |
| 27 |
|
*/ |
| 28 |
|
public function __construct($id, $version, array $actions = [], Context $context = null) |
| 29 |
|
{ |
| 30 |
|
parent::__construct(MeCartsEndpoint::endpoint(), $id, $version, $actions, $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/Orders/OrderUpdateRequest.php 1 location
|
@@ 18-43 (lines=26) @@
|
| 15 |
|
* @link https://dev.commercetools.com/http-api-projects-orders.html#update-order |
| 16 |
|
* @method Order mapResponse(ApiResponseInterface $response) |
| 17 |
|
*/ |
| 18 |
|
class OrderUpdateRequest extends AbstractUpdateRequest |
| 19 |
|
{ |
| 20 |
|
protected $resultClass = '\Commercetools\Core\Model\Order\Order'; |
| 21 |
|
|
| 22 |
|
/** |
| 23 |
|
* @param string $id |
| 24 |
|
* @param int $version |
| 25 |
|
* @param array $actions |
| 26 |
|
* @param Context $context |
| 27 |
|
*/ |
| 28 |
|
public function __construct($id, $version, array $actions = [], Context $context = null) |
| 29 |
|
{ |
| 30 |
|
parent::__construct(OrdersEndpoint::endpoint(), $id, $version, $actions, $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/Payments/PaymentUpdateRequest.php 1 location
|
@@ 18-43 (lines=26) @@
|
| 15 |
|
* @link https://dev.commercetools.com/http-api-projects-payments.html#update-payment |
| 16 |
|
* @method Payment mapResponse(ApiResponseInterface $response) |
| 17 |
|
*/ |
| 18 |
|
class PaymentUpdateRequest extends AbstractUpdateRequest |
| 19 |
|
{ |
| 20 |
|
protected $resultClass = '\Commercetools\Core\Model\Payment\Payment'; |
| 21 |
|
|
| 22 |
|
/** |
| 23 |
|
* @param string $id |
| 24 |
|
* @param string $version |
| 25 |
|
* @param array $actions |
| 26 |
|
* @param Context $context |
| 27 |
|
*/ |
| 28 |
|
public function __construct($id, $version, array $actions = [], Context $context = null) |
| 29 |
|
{ |
| 30 |
|
parent::__construct(PaymentsEndpoint::endpoint(), $id, $version, $actions, $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/ProductDiscounts/ProductDiscountUpdateRequest.php 1 location
|
@@ 18-43 (lines=26) @@
|
| 15 |
|
* @link https://dev.commercetools.com/http-api-projects-productDiscounts.html#update-productdiscount |
| 16 |
|
* @method ProductDiscount mapResponse(ApiResponseInterface $response) |
| 17 |
|
*/ |
| 18 |
|
class ProductDiscountUpdateRequest extends AbstractUpdateRequest |
| 19 |
|
{ |
| 20 |
|
protected $resultClass = '\Commercetools\Core\Model\ProductDiscount\ProductDiscount'; |
| 21 |
|
|
| 22 |
|
/** |
| 23 |
|
* @param string $id |
| 24 |
|
* @param string $version |
| 25 |
|
* @param array $actions |
| 26 |
|
* @param Context $context |
| 27 |
|
*/ |
| 28 |
|
public function __construct($id, $version, array $actions = [], Context $context = null) |
| 29 |
|
{ |
| 30 |
|
parent::__construct(ProductDiscountsEndpoint::endpoint(), $id, $version, $actions, $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/Products/ProductDeleteRequest.php 1 location
|
@@ 19-45 (lines=27) @@
|
| 16 |
|
* @link https://dev.commercetools.com/http-api-projects-products.html#delete-product |
| 17 |
|
* @method Product mapResponse(ApiResponseInterface $response) |
| 18 |
|
*/ |
| 19 |
|
class ProductDeleteRequest extends AbstractDeleteRequest |
| 20 |
|
{ |
| 21 |
|
use PriceSelectTrait; |
| 22 |
|
|
| 23 |
|
protected $resultClass = '\Commercetools\Core\Model\Product\Product'; |
| 24 |
|
|
| 25 |
|
/** |
| 26 |
|
* @param string $id |
| 27 |
|
* @param int $version |
| 28 |
|
* @param Context $context |
| 29 |
|
*/ |
| 30 |
|
public function __construct($id, $version, Context $context = null) |
| 31 |
|
{ |
| 32 |
|
parent::__construct(ProductsEndpoint::endpoint(), $id, $version, $context); |
| 33 |
|
} |
| 34 |
|
|
| 35 |
|
/** |
| 36 |
|
* @param string $id |
| 37 |
|
* @param int $version |
| 38 |
|
* @param Context $context |
| 39 |
|
* @return static |
| 40 |
|
*/ |
| 41 |
|
public static function ofIdAndVersion($id, $version, Context $context = null) |
| 42 |
|
{ |
| 43 |
|
return new static($id, $version, $context); |
| 44 |
|
} |
| 45 |
|
} |
| 46 |
|
|
src/Request/Products/ProductUpdateRequest.php 1 location
|
@@ 20-47 (lines=28) @@
|
| 17 |
|
* @link https://dev.commercetools.com/http-api-projects-products.html#update-product |
| 18 |
|
* @method Product mapResponse(ApiResponseInterface $response) |
| 19 |
|
*/ |
| 20 |
|
class ProductUpdateRequest extends AbstractUpdateRequest |
| 21 |
|
{ |
| 22 |
|
use PriceSelectTrait; |
| 23 |
|
|
| 24 |
|
protected $resultClass = '\Commercetools\Core\Model\Product\Product'; |
| 25 |
|
|
| 26 |
|
/** |
| 27 |
|
* @param string $id |
| 28 |
|
* @param int $version |
| 29 |
|
* @param array $actions |
| 30 |
|
* @param Context $context |
| 31 |
|
*/ |
| 32 |
|
public function __construct($id, $version, array $actions = [], Context $context = null) |
| 33 |
|
{ |
| 34 |
|
parent::__construct(ProductsEndpoint::endpoint(), $id, $version, $actions, $context); |
| 35 |
|
} |
| 36 |
|
|
| 37 |
|
/** |
| 38 |
|
* @param string $id |
| 39 |
|
* @param int $version |
| 40 |
|
* @param Context $context |
| 41 |
|
* @return static |
| 42 |
|
*/ |
| 43 |
|
public static function ofIdAndVersion($id, $version, Context $context = null) |
| 44 |
|
{ |
| 45 |
|
return new static($id, $version, [], $context); |
| 46 |
|
} |
| 47 |
|
} |
| 48 |
|
|
src/Request/ProductTypes/ProductTypeUpdateRequest.php 1 location
|
@@ 18-43 (lines=26) @@
|
| 15 |
|
* @link https://dev.commercetools.com/http-api-projects-productTypes.html#update-producttype-by-id |
| 16 |
|
* @method ProductType mapResponse(ApiResponseInterface $response) |
| 17 |
|
*/ |
| 18 |
|
class ProductTypeUpdateRequest extends AbstractUpdateRequest |
| 19 |
|
{ |
| 20 |
|
protected $resultClass = '\Commercetools\Core\Model\ProductType\ProductType'; |
| 21 |
|
|
| 22 |
|
/** |
| 23 |
|
* @param string $id |
| 24 |
|
* @param string $version |
| 25 |
|
* @param array $actions |
| 26 |
|
* @param Context $context |
| 27 |
|
*/ |
| 28 |
|
public function __construct($id, $version, array $actions = [], Context $context = null) |
| 29 |
|
{ |
| 30 |
|
parent::__construct(ProductTypesEndpoint::endpoint(), $id, $version, $actions, $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/ShippingMethods/ShippingMethodUpdateRequest.php 1 location
|
@@ 18-43 (lines=26) @@
|
| 15 |
|
* @link https://dev.commercetools.com/http-api-projects-shippingMethods.html#update-shippingmethod |
| 16 |
|
* @method ShippingMethod mapResponse(ApiResponseInterface $response) |
| 17 |
|
*/ |
| 18 |
|
class ShippingMethodUpdateRequest extends AbstractUpdateRequest |
| 19 |
|
{ |
| 20 |
|
protected $resultClass = '\Commercetools\Core\Model\ShippingMethod\ShippingMethod'; |
| 21 |
|
|
| 22 |
|
/** |
| 23 |
|
* @param string $id |
| 24 |
|
* @param string $version |
| 25 |
|
* @param array $actions |
| 26 |
|
* @param Context $context |
| 27 |
|
*/ |
| 28 |
|
public function __construct($id, $version, array $actions = [], Context $context = null) |
| 29 |
|
{ |
| 30 |
|
parent::__construct(ShippingMethodsEndpoint::endpoint(), $id, $version, $actions, $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/States/StateUpdateRequest.php 1 location
|
@@ 18-43 (lines=26) @@
|
| 15 |
|
* @link https://dev.commercetools.com/http-api-projects-states.html#update-state |
| 16 |
|
* @method State mapResponse(ApiResponseInterface $response) |
| 17 |
|
*/ |
| 18 |
|
class StateUpdateRequest extends AbstractUpdateRequest |
| 19 |
|
{ |
| 20 |
|
protected $resultClass = '\Commercetools\Core\Model\State\State'; |
| 21 |
|
|
| 22 |
|
/** |
| 23 |
|
* @param string $id |
| 24 |
|
* @param string $version |
| 25 |
|
* @param array $actions |
| 26 |
|
* @param Context $context |
| 27 |
|
*/ |
| 28 |
|
public function __construct($id, $version, array $actions = [], Context $context = null) |
| 29 |
|
{ |
| 30 |
|
parent::__construct(StatesEndpoint::endpoint(), $id, $version, $actions, $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/TaxCategories/TaxCategoryUpdateRequest.php 1 location
|
@@ 18-43 (lines=26) @@
|
| 15 |
|
* @link https://dev.commercetools.com/http-api-projects-taxCategories.html#update-taxcategory |
| 16 |
|
* @method TaxCategory mapResponse(ApiResponseInterface $response) |
| 17 |
|
*/ |
| 18 |
|
class TaxCategoryUpdateRequest extends AbstractUpdateRequest |
| 19 |
|
{ |
| 20 |
|
protected $resultClass = '\Commercetools\Core\Model\TaxCategory\TaxCategory'; |
| 21 |
|
|
| 22 |
|
/** |
| 23 |
|
* @param string $id |
| 24 |
|
* @param string $version |
| 25 |
|
* @param array $actions |
| 26 |
|
* @param Context $context |
| 27 |
|
*/ |
| 28 |
|
public function __construct($id, $version, array $actions = [], Context $context = null) |
| 29 |
|
{ |
| 30 |
|
parent::__construct(TaxCategoriesEndpoint::endpoint(), $id, $version, $actions, $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/Types/TypeUpdateRequest.php 1 location
|
@@ 18-43 (lines=26) @@
|
| 15 |
|
* @link https://dev.commercetools.com/http-api-projects-types.html#update-type-by-id |
| 16 |
|
* @method Type mapResponse(ApiResponseInterface $response) |
| 17 |
|
*/ |
| 18 |
|
class TypeUpdateRequest extends AbstractUpdateRequest |
| 19 |
|
{ |
| 20 |
|
protected $resultClass = '\Commercetools\Core\Model\Type\Type'; |
| 21 |
|
|
| 22 |
|
/** |
| 23 |
|
* @param string $id |
| 24 |
|
* @param string $version |
| 25 |
|
* @param array $actions |
| 26 |
|
* @param Context $context |
| 27 |
|
*/ |
| 28 |
|
public function __construct($id, $version, array $actions = [], Context $context = null) |
| 29 |
|
{ |
| 30 |
|
parent::__construct(TypesEndpoint::endpoint(), $id, $version, $actions, $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/Zones/ZoneUpdateRequest.php 1 location
|
@@ 18-43 (lines=26) @@
|
| 15 |
|
* @link https://dev.commercetools.com/http-api-projects-zones.html#update-zone |
| 16 |
|
* @method Zone mapResponse(ApiResponseInterface $response) |
| 17 |
|
*/ |
| 18 |
|
class ZoneUpdateRequest extends AbstractUpdateRequest |
| 19 |
|
{ |
| 20 |
|
protected $resultClass = '\Commercetools\Core\Model\Zone\Zone'; |
| 21 |
|
|
| 22 |
|
/** |
| 23 |
|
* @param string $id |
| 24 |
|
* @param string $version |
| 25 |
|
* @param array $actions |
| 26 |
|
* @param Context $context |
| 27 |
|
*/ |
| 28 |
|
public function __construct($id, $version, array $actions = [], Context $context = null) |
| 29 |
|
{ |
| 30 |
|
parent::__construct(ZonesEndpoint::endpoint(), $id, $version, $actions, $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 |
|
|