src/Request/CartDiscounts/Command/CartDiscountSetValidFromAction.php 1 location
|
@@ 20-42 (lines=23) @@
|
17 |
|
* @method DateTimeDecorator getValidFrom() |
18 |
|
* @method CartDiscountSetValidFromAction setValidFrom(\DateTime $validFrom = null) |
19 |
|
*/ |
20 |
|
class CartDiscountSetValidFromAction extends AbstractAction |
21 |
|
{ |
22 |
|
public function fieldDefinitions() |
23 |
|
{ |
24 |
|
return [ |
25 |
|
'action' => [static::TYPE => 'string'], |
26 |
|
'validFrom' => [ |
27 |
|
static::TYPE => '\DateTime', |
28 |
|
static::DECORATOR => '\Commercetools\Core\Model\Common\DateTimeDecorator' |
29 |
|
], |
30 |
|
]; |
31 |
|
} |
32 |
|
|
33 |
|
/** |
34 |
|
* @param array $data |
35 |
|
* @param Context|callable $context |
36 |
|
*/ |
37 |
|
public function __construct(array $data = [], $context = null) |
38 |
|
{ |
39 |
|
parent::__construct($data, $context); |
40 |
|
$this->setAction('setValidFrom'); |
41 |
|
} |
42 |
|
} |
43 |
|
|
src/Request/CartDiscounts/Command/CartDiscountSetValidUntilAction.php 1 location
|
@@ 20-42 (lines=23) @@
|
17 |
|
* @method DateTimeDecorator getValidUntil() |
18 |
|
* @method CartDiscountSetValidUntilAction setValidUntil(\DateTime $validUntil = null) |
19 |
|
*/ |
20 |
|
class CartDiscountSetValidUntilAction extends AbstractAction |
21 |
|
{ |
22 |
|
public function fieldDefinitions() |
23 |
|
{ |
24 |
|
return [ |
25 |
|
'action' => [static::TYPE => 'string'], |
26 |
|
'validUntil' => [ |
27 |
|
static::TYPE => '\DateTime', |
28 |
|
static::DECORATOR => '\Commercetools\Core\Model\Common\DateTimeDecorator' |
29 |
|
], |
30 |
|
]; |
31 |
|
} |
32 |
|
|
33 |
|
/** |
34 |
|
* @param array $data |
35 |
|
* @param Context|callable $context |
36 |
|
*/ |
37 |
|
public function __construct(array $data = [], $context = null) |
38 |
|
{ |
39 |
|
parent::__construct($data, $context); |
40 |
|
$this->setAction('setValidUntil'); |
41 |
|
} |
42 |
|
} |
43 |
|
|
src/Request/Customers/Command/CustomerSetDateOfBirthAction.php 1 location
|
@@ 20-42 (lines=23) @@
|
17 |
|
* @method string getAction() |
18 |
|
* @method CustomerSetDateOfBirthAction setAction(string $action = null) |
19 |
|
*/ |
20 |
|
class CustomerSetDateOfBirthAction extends AbstractAction |
21 |
|
{ |
22 |
|
public function fieldDefinitions() |
23 |
|
{ |
24 |
|
return [ |
25 |
|
'action' => [static::TYPE => 'string'], |
26 |
|
'dateOfBirth' => [ |
27 |
|
static::TYPE => '\DateTime', |
28 |
|
static::DECORATOR => '\Commercetools\Core\Model\Common\DateDecorator' |
29 |
|
], |
30 |
|
]; |
31 |
|
} |
32 |
|
|
33 |
|
/** |
34 |
|
* @param array $data |
35 |
|
* @param Context|callable $context |
36 |
|
*/ |
37 |
|
public function __construct(array $data = [], $context = null) |
38 |
|
{ |
39 |
|
parent::__construct($data, $context); |
40 |
|
$this->setAction('setDateOfBirth'); |
41 |
|
} |
42 |
|
} |
43 |
|
|
src/Request/DiscountCodes/Command/DiscountCodeSetMaxApplicationsPerCustomerAction.php 1 location
|
@@ 18-46 (lines=29) @@
|
15 |
|
* @method DiscountCodeSetMaxApplicationsPerCustomerAction setAction(string $action = null) |
16 |
|
* @method int getMaxApplicationsPerCustomer() |
17 |
|
*/ |
18 |
|
class DiscountCodeSetMaxApplicationsPerCustomerAction extends AbstractAction |
19 |
|
{ |
20 |
|
public function fieldDefinitions() |
21 |
|
{ |
22 |
|
return [ |
23 |
|
'action' => [static::TYPE => 'string'], |
24 |
|
'maxApplicationsPerCustomer' => [static::TYPE => 'int'], |
25 |
|
]; |
26 |
|
} |
27 |
|
|
28 |
|
/** |
29 |
|
* @param array $data |
30 |
|
* @param Context|callable $context |
31 |
|
*/ |
32 |
|
public function __construct(array $data = [], $context = null) |
33 |
|
{ |
34 |
|
parent::__construct($data, $context); |
35 |
|
$this->setAction('setMaxApplicationsPerCustomer'); |
36 |
|
} |
37 |
|
|
38 |
|
/** |
39 |
|
* @param int $maxApplicationsPerCustomer |
40 |
|
* @return static |
41 |
|
*/ |
42 |
|
public function setMaxApplicationsPerCustomer($maxApplicationsPerCustomer = null) |
43 |
|
{ |
44 |
|
return parent::setMaxApplicationsPerCustomer($maxApplicationsPerCustomer); |
45 |
|
} |
46 |
|
} |
47 |
|
|
src/Request/Inventory/Command/InventorySetExpectedDeliveryAction.php 1 location
|
@@ 20-42 (lines=23) @@
|
17 |
|
* @method DateTimeDecorator getExpectedDelivery() |
18 |
|
* @method InventorySetExpectedDeliveryAction setExpectedDelivery(\DateTime $expectedDelivery = null) |
19 |
|
*/ |
20 |
|
class InventorySetExpectedDeliveryAction extends AbstractAction |
21 |
|
{ |
22 |
|
public function fieldDefinitions() |
23 |
|
{ |
24 |
|
return [ |
25 |
|
'action' => [static::TYPE => 'string'], |
26 |
|
'expectedDelivery' => [ |
27 |
|
static::TYPE => '\DateTime', |
28 |
|
static::DECORATOR => '\Commercetools\Core\Model\Common\DateTimeDecorator' |
29 |
|
], |
30 |
|
]; |
31 |
|
} |
32 |
|
|
33 |
|
/** |
34 |
|
* @param array $data |
35 |
|
* @param Context|callable $context |
36 |
|
*/ |
37 |
|
public function __construct(array $data = [], $context = null) |
38 |
|
{ |
39 |
|
parent::__construct($data, $context); |
40 |
|
$this->setAction('setExpectedDelivery'); |
41 |
|
} |
42 |
|
} |
43 |
|
|
src/Request/Products/Command/ProductSetTaxCategoryAction.php 1 location
|
@@ 22-42 (lines=21) @@
|
19 |
|
* @method bool getStaged() |
20 |
|
* @method ProductSetTaxCategoryAction setStaged(bool $staged = null) |
21 |
|
*/ |
22 |
|
class ProductSetTaxCategoryAction extends AbstractAction |
23 |
|
{ |
24 |
|
public function fieldDefinitions() |
25 |
|
{ |
26 |
|
return [ |
27 |
|
'action' => [static::TYPE => 'string'], |
28 |
|
'taxCategory' => [static::TYPE => '\Commercetools\Core\Model\TaxCategory\TaxCategoryReference'], |
29 |
|
'staged' => [static::TYPE => 'bool'] |
30 |
|
]; |
31 |
|
} |
32 |
|
|
33 |
|
/** |
34 |
|
* @param array $data |
35 |
|
* @param Context|callable $context |
36 |
|
*/ |
37 |
|
public function __construct(array $data = [], $context = null) |
38 |
|
{ |
39 |
|
parent::__construct($data, $context); |
40 |
|
$this->setAction('setTaxCategory'); |
41 |
|
} |
42 |
|
} |
43 |
|
|