for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Commercetools\Core\Request\Me;
use Commercetools\Core\Model\Common\Context;
use Commercetools\Core\Request\AbstractUpdateByKeyRequest;
use Commercetools\Core\Request\AbstractUpdateRequest;
use Commercetools\Core\Model\ShoppingList\ShoppingList;
use Commercetools\Core\Response\ApiResponseInterface;
use Commercetools\Core\Model\MapperInterface;
/**
* @package Commercetools\Core\Request\Me
* @link https://docs.commercetools.com/http-api-projects-me-shoppingLists#update-shoppinglist-by-key
* @method ShoppingList mapResponse(ApiResponseInterface $response)
* @method ShoppingList mapFromResponse(ApiResponseInterface $response, MapperInterface $mapper = null)
*/
class MeShoppingListUpdateByKeyRequest extends AbstractUpdateByKeyRequest
{
protected $resultClass = ShoppingList::class;
* @param string $key
* @param int $version
* @param array $actions
* @param Context $context
public function __construct($key, $version, array $actions = [], Context $context = null)
parent::__construct(MeShoppingListsEndpoint::endpoint(), $key, $version, $actions, $context);
}
* @return static
public static function ofKeyAndVersion($key, $version, Context $context = null)
return new static($key, $version, [], $context);