Skip to content
This repository has been archived by the owner on Oct 24, 2023. It is now read-only.

Commit

Permalink
feat(Inventory): add SetSupplyChannel action
Browse files Browse the repository at this point in the history
  • Loading branch information
Jens Schulze committed Dec 30, 2015
1 parent 12c9bff commit d453e5e
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions src/Request/Inventory/Command/InventorySetSupplyChannelAction.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
<?php
/**
* @author @jayS-de <jens.schulze@commercetools.de>
*/


namespace Commercetools\Core\Request\Inventory\Command;

use Commercetools\Core\Model\Common\Context;
use Commercetools\Core\Request\AbstractAction;
use Commercetools\Core\Model\Channel\Channel;

/**
* @package Commercetools\Core\Request\Inventory\Command
*
* @method string getAction()
* @method InventorySetSupplyChannelAction setAction(string $action = null)
* @method Channel getSupplyChannel()
* @method InventorySetSupplyChannelAction setSupplyChannel(Channel $supplyChannel = null)
*/
class InventorySetSupplyChannelAction extends AbstractAction
{
public function fieldDefinitions()
{
return [
'action' => [static::TYPE => 'string'],
'supplyChannel' => [static::TYPE => '\Commercetools\Core\Model\Channel\Channel'],
];
}

/**
* @param array $data
* @param Context|callable $context
*/
public function __construct(array $data = [], $context = null)
{
parent::__construct($data, $context);
$this->setAction('setSupplyChannel');
}
}

0 comments on commit d453e5e

Please # to comment.