| @@ 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 | ||
| @@ 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 | ||
| @@ 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 | ||
| @@ 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 | ||
| @@ 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 | ||
| @@ 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 | ||
| @@ 20-39 (lines=20) @@ | ||
| 17 | * @method CustomerReference getCustomer() |
|
| 18 | * @method ReviewSetCustomerAction setCustomer(CustomerReference $customer = null) |
|
| 19 | */ |
|
| 20 | class ReviewSetCustomerAction extends AbstractAction |
|
| 21 | { |
|
| 22 | public function fieldDefinitions() |
|
| 23 | { |
|
| 24 | return [ |
|
| 25 | 'action' => [static::TYPE => 'string'], |
|
| 26 | 'customer' => [static::TYPE => '\Commercetools\Core\Model\Customer\CustomerReference'], |
|
| 27 | ]; |
|
| 28 | } |
|
| 29 | ||
| 30 | /** |
|
| 31 | * @param array $data |
|
| 32 | * @param Context|callable $context |
|
| 33 | */ |
|
| 34 | public function __construct(array $data = [], $context = null) |
|
| 35 | { |
|
| 36 | parent::__construct($data, $context); |
|
| 37 | $this->setAction('setCustomer'); |
|
| 38 | } |
|
| 39 | } |
|
| 40 | ||
| @@ 19-38 (lines=20) @@ | ||
| 16 | * @method string getKey() |
|
| 17 | * @method ReviewSetKeyAction setKey(string $key = null) |
|
| 18 | */ |
|
| 19 | class ReviewSetKeyAction extends AbstractAction |
|
| 20 | { |
|
| 21 | public function fieldDefinitions() |
|
| 22 | { |
|
| 23 | return [ |
|
| 24 | 'action' => [static::TYPE => 'string'], |
|
| 25 | 'key' => [static::TYPE => 'string'], |
|
| 26 | ]; |
|
| 27 | } |
|
| 28 | ||
| 29 | /** |
|
| 30 | * @param array $data |
|
| 31 | * @param Context|callable $context |
|
| 32 | */ |
|
| 33 | public function __construct(array $data = [], $context = null) |
|
| 34 | { |
|
| 35 | parent::__construct($data, $context); |
|
| 36 | $this->setAction('setKey'); |
|
| 37 | } |
|
| 38 | } |
|
| 39 | ||
| @@ 19-38 (lines=20) @@ | ||
| 16 | * @method int getRating() |
|
| 17 | * @method ReviewSetRatingAction setRating(int $rating = null) |
|
| 18 | */ |
|
| 19 | class ReviewSetRatingAction extends AbstractAction |
|
| 20 | { |
|
| 21 | public function fieldDefinitions() |
|
| 22 | { |
|
| 23 | return [ |
|
| 24 | 'action' => [static::TYPE => 'string'], |
|
| 25 | 'rating' => [static::TYPE => 'int'], |
|
| 26 | ]; |
|
| 27 | } |
|
| 28 | ||
| 29 | /** |
|
| 30 | * @param array $data |
|
| 31 | * @param Context|callable $context |
|
| 32 | */ |
|
| 33 | public function __construct(array $data = [], $context = null) |
|
| 34 | { |
|
| 35 | parent::__construct($data, $context); |
|
| 36 | $this->setAction('setRating'); |
|
| 37 | } |
|
| 38 | } |
|
| 39 | ||
| @@ 21-40 (lines=20) @@ | ||
| 18 | * @method ResourceIdentifier getTarget() |
|
| 19 | * @method ReviewSetTargetAction setTarget(ResourceIdentifier $target = null) |
|
| 20 | */ |
|
| 21 | class ReviewSetTargetAction extends AbstractAction |
|
| 22 | { |
|
| 23 | public function fieldDefinitions() |
|
| 24 | { |
|
| 25 | return [ |
|
| 26 | 'action' => [static::TYPE => 'string'], |
|
| 27 | 'target' => [static::TYPE => '\Commercetools\Core\Model\Common\ResourceIdentifier'], |
|
| 28 | ]; |
|
| 29 | } |
|
| 30 | ||
| 31 | /** |
|
| 32 | * @param array $data |
|
| 33 | * @param Context|callable $context |
|
| 34 | */ |
|
| 35 | public function __construct(array $data = [], $context = null) |
|
| 36 | { |
|
| 37 | parent::__construct($data, $context); |
|
| 38 | $this->setAction('setTarget'); |
|
| 39 | } |
|
| 40 | } |
|
| 41 | ||
| @@ 19-48 (lines=30) @@ | ||
| 16 | * @method string getKey() |
|
| 17 | * @method ProductTypeSetKeyAction setKey(string $key = null) |
|
| 18 | */ |
|
| 19 | class ProductTypeSetKeyAction extends AbstractAction |
|
| 20 | { |
|
| 21 | public function fieldDefinitions() |
|
| 22 | { |
|
| 23 | return [ |
|
| 24 | 'action' => [static::TYPE => 'string'], |
|
| 25 | 'key' => [static::TYPE => 'string'] |
|
| 26 | ]; |
|
| 27 | } |
|
| 28 | ||
| 29 | /** |
|
| 30 | * @param array $data |
|
| 31 | * @param Context|callable $context |
|
| 32 | */ |
|
| 33 | public function __construct(array $data = [], $context = null) |
|
| 34 | { |
|
| 35 | parent::__construct($data, $context); |
|
| 36 | $this->setAction('setKey'); |
|
| 37 | } |
|
| 38 | ||
| 39 | /** |
|
| 40 | * @param string $key |
|
| 41 | * @param Context|callable $context |
|
| 42 | * @return ProductTypeSetKeyAction |
|
| 43 | */ |
|
| 44 | public static function ofKey($key, $context = null) |
|
| 45 | { |
|
| 46 | return static::of($context)->setKey($key); |
|
| 47 | } |
|
| 48 | } |
|
| 49 | ||
| @@ 19-48 (lines=30) @@ | ||
| 16 | * @method array getRoles() |
|
| 17 | * @method StateAddRolesAction setRoles(array $roles = null) |
|
| 18 | */ |
|
| 19 | class StateAddRolesAction extends AbstractAction |
|
| 20 | { |
|
| 21 | public function fieldDefinitions() |
|
| 22 | { |
|
| 23 | return [ |
|
| 24 | 'action' => [static::TYPE => 'string'], |
|
| 25 | 'roles' => [static::TYPE => 'array'], |
|
| 26 | ]; |
|
| 27 | } |
|
| 28 | ||
| 29 | /** |
|
| 30 | * @param array $data |
|
| 31 | * @param Context|callable $context |
|
| 32 | */ |
|
| 33 | public function __construct(array $data = [], $context = null) |
|
| 34 | { |
|
| 35 | parent::__construct($data, $context); |
|
| 36 | $this->setAction('addRoles'); |
|
| 37 | } |
|
| 38 | ||
| 39 | /** |
|
| 40 | * @param array $roles |
|
| 41 | * @param Context|callable $context |
|
| 42 | * @return StateAddRolesAction |
|
| 43 | */ |
|
| 44 | public static function ofRoles(array $roles, $context = null) |
|
| 45 | { |
|
| 46 | return static::of($context)->setRoles($roles); |
|
| 47 | } |
|
| 48 | } |
|
| 49 | ||
| @@ 19-48 (lines=30) @@ | ||
| 16 | * @method array getRoles() |
|
| 17 | * @method StateRemoveRolesAction setRoles(array $roles = null) |
|
| 18 | */ |
|
| 19 | class StateRemoveRolesAction extends AbstractAction |
|
| 20 | { |
|
| 21 | public function fieldDefinitions() |
|
| 22 | { |
|
| 23 | return [ |
|
| 24 | 'action' => [static::TYPE => 'string'], |
|
| 25 | 'roles' => [static::TYPE => 'array'], |
|
| 26 | ]; |
|
| 27 | } |
|
| 28 | ||
| 29 | /** |
|
| 30 | * @param array $data |
|
| 31 | * @param Context|callable $context |
|
| 32 | */ |
|
| 33 | public function __construct(array $data = [], $context = null) |
|
| 34 | { |
|
| 35 | parent::__construct($data, $context); |
|
| 36 | $this->setAction('removeRoles'); |
|
| 37 | } |
|
| 38 | ||
| 39 | /** |
|
| 40 | * @param array $roles |
|
| 41 | * @param Context|callable $context |
|
| 42 | * @return StateRemoveRolesAction |
|
| 43 | */ |
|
| 44 | public static function ofRoles(array $roles, $context = null) |
|
| 45 | { |
|
| 46 | return static::of($context)->setRoles($roles); |
|
| 47 | } |
|
| 48 | } |
|
| 49 | ||
| @@ 19-48 (lines=30) @@ | ||
| 16 | * @method array getRoles() |
|
| 17 | * @method StateSetRolesAction setRoles(array $roles = null) |
|
| 18 | */ |
|
| 19 | class StateSetRolesAction extends AbstractAction |
|
| 20 | { |
|
| 21 | public function fieldDefinitions() |
|
| 22 | { |
|
| 23 | return [ |
|
| 24 | 'action' => [static::TYPE => 'string'], |
|
| 25 | 'roles' => [static::TYPE => 'array'], |
|
| 26 | ]; |
|
| 27 | } |
|
| 28 | ||
| 29 | /** |
|
| 30 | * @param array $data |
|
| 31 | * @param Context|callable $context |
|
| 32 | */ |
|
| 33 | public function __construct(array $data = [], $context = null) |
|
| 34 | { |
|
| 35 | parent::__construct($data, $context); |
|
| 36 | $this->setAction('setRoles'); |
|
| 37 | } |
|
| 38 | ||
| 39 | /** |
|
| 40 | * @param array $roles |
|
| 41 | * @param Context|callable $context |
|
| 42 | * @return StateSetRolesAction |
|
| 43 | */ |
|
| 44 | public static function ofRoles(array $roles, $context = null) |
|
| 45 | { |
|
| 46 | return static::of($context)->setRoles($roles); |
|
| 47 | } |
|
| 48 | } |
|
| 49 | ||
| @@ 19-48 (lines=30) @@ | ||
| 16 | * @method string getTaxRateId() |
|
| 17 | * @method TaxCategoryRemoveTaxRateAction setTaxRateId(string $taxRateId = null) |
|
| 18 | */ |
|
| 19 | class TaxCategoryRemoveTaxRateAction extends AbstractAction |
|
| 20 | { |
|
| 21 | public function fieldDefinitions() |
|
| 22 | { |
|
| 23 | return [ |
|
| 24 | 'action' => [static::TYPE => 'string'], |
|
| 25 | 'taxRateId' => [static::TYPE => 'string'] |
|
| 26 | ]; |
|
| 27 | } |
|
| 28 | ||
| 29 | /** |
|
| 30 | * @param array $data |
|
| 31 | * @param Context|callable $context |
|
| 32 | */ |
|
| 33 | public function __construct(array $data = [], $context = null) |
|
| 34 | { |
|
| 35 | parent::__construct($data, $context); |
|
| 36 | $this->setAction('removeTaxRate'); |
|
| 37 | } |
|
| 38 | ||
| 39 | /** |
|
| 40 | * @param string $taxRateId |
|
| 41 | * @param Context|callable $context |
|
| 42 | * @return TaxCategoryRemoveTaxRateAction |
|
| 43 | */ |
|
| 44 | public static function ofTaxRateId($taxRateId, $context = null) |
|
| 45 | { |
|
| 46 | return static::of($context)->setTaxRateId($taxRateId); |
|
| 47 | } |
|
| 48 | } |
|
| 49 | ||
| @@ 19-38 (lines=20) @@ | ||
| 16 | * @method string getFirstName() |
|
| 17 | * @method CustomerSetFirstNameAction setFirstName(string $firstName = null) |
|
| 18 | */ |
|
| 19 | class CustomerSetFirstNameAction extends AbstractAction |
|
| 20 | { |
|
| 21 | public function fieldDefinitions() |
|
| 22 | { |
|
| 23 | return [ |
|
| 24 | 'action' => [static::TYPE => 'string'], |
|
| 25 | 'firstName' => [static::TYPE => 'string'], |
|
| 26 | ]; |
|
| 27 | } |
|
| 28 | ||
| 29 | /** |
|
| 30 | * @param array $data |
|
| 31 | * @param Context|callable $context |
|
| 32 | */ |
|
| 33 | public function __construct(array $data = [], $context = null) |
|
| 34 | { |
|
| 35 | parent::__construct($data, $context); |
|
| 36 | $this->setAction('setFirstName'); |
|
| 37 | } |
|
| 38 | } |
|
| 39 | ||
| @@ 19-38 (lines=20) @@ | ||
| 16 | * @method string getLastName() |
|
| 17 | * @method CustomerSetLastNameAction setLastName(string $lastName = null) |
|
| 18 | */ |
|
| 19 | class CustomerSetLastNameAction extends AbstractAction |
|
| 20 | { |
|
| 21 | public function fieldDefinitions() |
|
| 22 | { |
|
| 23 | return [ |
|
| 24 | 'action' => [static::TYPE => 'string'], |
|
| 25 | 'lastName' => [static::TYPE => 'string'], |
|
| 26 | ]; |
|
| 27 | } |
|
| 28 | ||
| 29 | /** |
|
| 30 | * @param array $data |
|
| 31 | * @param Context|callable $context |
|
| 32 | */ |
|
| 33 | public function __construct(array $data = [], $context = null) |
|
| 34 | { |
|
| 35 | parent::__construct($data, $context); |
|
| 36 | $this->setAction('setLastName'); |
|
| 37 | } |
|
| 38 | } |
|
| 39 | ||
| @@ 19-38 (lines=20) @@ | ||
| 16 | * @method string getMiddleName() |
|
| 17 | * @method CustomerSetMiddleNameAction setMiddleName(string $middleName = null) |
|
| 18 | */ |
|
| 19 | class CustomerSetMiddleNameAction extends AbstractAction |
|
| 20 | { |
|
| 21 | public function fieldDefinitions() |
|
| 22 | { |
|
| 23 | return [ |
|
| 24 | 'action' => [static::TYPE => 'string'], |
|
| 25 | 'middleName' => [static::TYPE => 'string'], |
|
| 26 | ]; |
|
| 27 | } |
|
| 28 | ||
| 29 | /** |
|
| 30 | * @param array $data |
|
| 31 | * @param Context|callable $context |
|
| 32 | */ |
|
| 33 | public function __construct(array $data = [], $context = null) |
|
| 34 | { |
|
| 35 | parent::__construct($data, $context); |
|
| 36 | $this->setAction('setMiddleName'); |
|
| 37 | } |
|
| 38 | } |
|
| 39 | ||
| @@ 20-39 (lines=20) @@ | ||
| 17 | * @method Money getAmount() |
|
| 18 | * @method PaymentChangeAmountPlannedAction setAmount(Money $amount = null) |
|
| 19 | */ |
|
| 20 | class PaymentChangeAmountPlannedAction extends AbstractAction |
|
| 21 | { |
|
| 22 | public function fieldDefinitions() |
|
| 23 | { |
|
| 24 | return [ |
|
| 25 | 'action' => [static::TYPE => 'string'], |
|
| 26 | 'amount' => [static::TYPE => '\Commercetools\Core\Model\Common\Money'], |
|
| 27 | ]; |
|
| 28 | } |
|
| 29 | ||
| 30 | /** |
|
| 31 | * @param array $data |
|
| 32 | * @param Context|callable $context |
|
| 33 | */ |
|
| 34 | public function __construct(array $data = [], $context = null) |
|
| 35 | { |
|
| 36 | parent::__construct($data, $context); |
|
| 37 | $this->setAction('changeAmountPlanned'); |
|
| 38 | } |
|
| 39 | } |
|
| 40 | ||
| @@ 20-49 (lines=30) @@ | ||
| 17 | * @method string getKey() |
|
| 18 | * @method TypeChangeKeyAction setKey(string $key = null) |
|
| 19 | */ |
|
| 20 | class TypeChangeKeyAction extends AbstractAction |
|
| 21 | { |
|
| 22 | public function fieldDefinitions() |
|
| 23 | { |
|
| 24 | return [ |
|
| 25 | 'action' => [static::TYPE => 'string'], |
|
| 26 | 'key' => [static::TYPE => 'string'], |
|
| 27 | ]; |
|
| 28 | } |
|
| 29 | ||
| 30 | /** |
|
| 31 | * @param array $data |
|
| 32 | * @param Context|callable $context |
|
| 33 | */ |
|
| 34 | public function __construct(array $data = [], $context = null) |
|
| 35 | { |
|
| 36 | parent::__construct($data, $context); |
|
| 37 | $this->setAction('changeKey'); |
|
| 38 | } |
|
| 39 | ||
| 40 | /** |
|
| 41 | * @param string $key |
|
| 42 | * @param Context|callable $context |
|
| 43 | * @return TypeChangeKeyAction |
|
| 44 | */ |
|
| 45 | public static function ofKey($key, $context = null) |
|
| 46 | { |
|
| 47 | return static::of($context)->setKey($key); |
|
| 48 | } |
|
| 49 | } |
|
| 50 | ||
| @@ 19-38 (lines=20) @@ | ||
| 16 | * @method string getTitle() |
|
| 17 | * @method CustomerSetTitleAction setTitle(string $title = null) |
|
| 18 | */ |
|
| 19 | class CustomerSetTitleAction extends AbstractAction |
|
| 20 | { |
|
| 21 | public function fieldDefinitions() |
|
| 22 | { |
|
| 23 | return [ |
|
| 24 | 'action' => [static::TYPE => 'string'], |
|
| 25 | 'title' => [static::TYPE => 'string'], |
|
| 26 | ]; |
|
| 27 | } |
|
| 28 | ||
| 29 | /** |
|
| 30 | * @param array $data |
|
| 31 | * @param Context|callable $context |
|
| 32 | */ |
|
| 33 | public function __construct(array $data = [], $context = null) |
|
| 34 | { |
|
| 35 | parent::__construct($data, $context); |
|
| 36 | $this->setAction('setTitle'); |
|
| 37 | } |
|
| 38 | } |
|
| 39 | ||
| @@ 19-38 (lines=20) @@ | ||
| 16 | * @method string getTaxMode() |
|
| 17 | * @method CartChangeTaxModeAction setTaxMode(string $taxMode = null) |
|
| 18 | */ |
|
| 19 | class CartChangeTaxModeAction extends AbstractAction |
|
| 20 | { |
|
| 21 | public function fieldDefinitions() |
|
| 22 | { |
|
| 23 | return [ |
|
| 24 | 'action' => [static::TYPE => 'string'], |
|
| 25 | 'taxMode' => [static::TYPE => 'string'], |
|
| 26 | ]; |
|
| 27 | } |
|
| 28 | ||
| 29 | /** |
|
| 30 | * @param array $data |
|
| 31 | * @param Context|callable $context |
|
| 32 | */ |
|
| 33 | public function __construct(array $data = [], $context = null) |
|
| 34 | { |
|
| 35 | parent::__construct($data, $context); |
|
| 36 | $this->setAction('changeTaxMode'); |
|
| 37 | } |
|
| 38 | } |
|
| 39 | ||
| @@ 20-39 (lines=20) @@ | ||
| 17 | * @method ExternalTaxRateDraft getExternalTaxRate() |
|
| 18 | * @method CartSetShippingMethodTaxRateAction setExternalTaxRate(ExternalTaxRateDraft $externalTaxRate = null) |
|
| 19 | */ |
|
| 20 | class CartSetShippingMethodTaxRateAction extends AbstractAction |
|
| 21 | { |
|
| 22 | public function fieldDefinitions() |
|
| 23 | { |
|
| 24 | return [ |
|
| 25 | 'action' => [static::TYPE => 'string'], |
|
| 26 | 'externalTaxRate' => [static::TYPE => '\Commercetools\Core\Model\TaxCategory\ExternalTaxRateDraft'], |
|
| 27 | ]; |
|
| 28 | } |
|
| 29 | ||
| 30 | /** |
|
| 31 | * @param array $data |
|
| 32 | * @param Context|callable $context |
|
| 33 | */ |
|
| 34 | public function __construct(array $data = [], $context = null) |
|
| 35 | { |
|
| 36 | parent::__construct($data, $context); |
|
| 37 | $this->setAction('setShippingMethodTaxRate'); |
|
| 38 | } |
|
| 39 | } |
|
| 40 | ||