@@ 20-49 (lines=30) @@ | ||
17 | * @method LocalizedString getName() |
|
18 | * @method CartDiscountChangeNameAction setName(LocalizedString $name = null) |
|
19 | */ |
|
20 | class CartDiscountChangeNameAction extends AbstractAction |
|
21 | { |
|
22 | public function fieldDefinitions() |
|
23 | { |
|
24 | return [ |
|
25 | 'action' => [static::TYPE => 'string'], |
|
26 | 'name' => [static::TYPE => LocalizedString::class], |
|
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('changeName'); |
|
38 | } |
|
39 | ||
40 | /** |
|
41 | * @param LocalizedString $name |
|
42 | * @param Context|callable $context |
|
43 | * @return CartDiscountChangeNameAction |
|
44 | */ |
|
45 | public static function ofName(LocalizedString $name, $context = null) |
|
46 | { |
|
47 | return static::of($context)->setName($name); |
|
48 | } |
|
49 | } |
|
50 |
@@ 20-49 (lines=30) @@ | ||
17 | * @method CartDiscountTarget getTarget() |
|
18 | * @method CartDiscountChangeTargetAction setTarget(CartDiscountTarget $target = null) |
|
19 | */ |
|
20 | class CartDiscountChangeTargetAction extends AbstractAction |
|
21 | { |
|
22 | public function fieldDefinitions() |
|
23 | { |
|
24 | return [ |
|
25 | 'action' => [static::TYPE => 'string'], |
|
26 | 'target' => [static::TYPE => CartDiscountTarget::class], |
|
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('changeTarget'); |
|
38 | } |
|
39 | ||
40 | /** |
|
41 | * @param string $target |
|
42 | * @param Context|callable $context |
|
43 | * @return CartDiscountChangeTargetAction |
|
44 | */ |
|
45 | public static function ofTarget($target, $context = null) |
|
46 | { |
|
47 | return static::of($context)->setTarget($target); |
|
48 | } |
|
49 | } |
|
50 |
@@ 20-49 (lines=30) @@ | ||
17 | * @method CartDiscountValue getValue() |
|
18 | * @method CartDiscountChangeValueAction setValue(CartDiscountValue $value = null) |
|
19 | */ |
|
20 | class CartDiscountChangeValueAction extends AbstractAction |
|
21 | { |
|
22 | public function fieldDefinitions() |
|
23 | { |
|
24 | return [ |
|
25 | 'action' => [static::TYPE => 'string'], |
|
26 | 'value' => [static::TYPE => CartDiscountValue::class], |
|
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('changeValue'); |
|
38 | } |
|
39 | ||
40 | /** |
|
41 | * @param CartDiscountValue $cartDiscountValue |
|
42 | * @param Context|callable $context |
|
43 | * @return CartDiscountChangeValueAction |
|
44 | */ |
|
45 | public static function ofCartDiscountValue(CartDiscountValue $cartDiscountValue, $context = null) |
|
46 | { |
|
47 | return static::of($context)->setValue($cartDiscountValue); |
|
48 | } |
|
49 | } |
|
50 |
@@ 20-39 (lines=20) @@ | ||
17 | * @method LocalizedString getDescription() |
|
18 | * @method CartDiscountSetDescriptionAction setDescription(LocalizedString $description = null) |
|
19 | */ |
|
20 | class CartDiscountSetDescriptionAction extends AbstractAction |
|
21 | { |
|
22 | public function fieldDefinitions() |
|
23 | { |
|
24 | return [ |
|
25 | 'action' => [static::TYPE => 'string'], |
|
26 | 'description' => [static::TYPE => LocalizedString::class], |
|
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('setDescription'); |
|
38 | } |
|
39 | } |
|
40 |
@@ 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 |
@@ 19-48 (lines=30) @@ | ||
16 | * @method string getTaxRoundingMode() |
|
17 | * @method CartChangeTaxRoundingModeAction setTaxRoundingMode(string $taxRoundingMode = null) |
|
18 | */ |
|
19 | class CartChangeTaxRoundingModeAction extends AbstractAction |
|
20 | { |
|
21 | public function fieldDefinitions() |
|
22 | { |
|
23 | return [ |
|
24 | 'action' => [static::TYPE => 'string'], |
|
25 | 'taxRoundingMode' => [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('changeTaxRoundingMode'); |
|
37 | } |
|
38 | ||
39 | /** |
|
40 | * @param string $roundingMode |
|
41 | * @param Context|callable $context |
|
42 | * @return CartChangeLineItemQuantityAction |
|
43 | */ |
|
44 | public static function ofTaxRoundingMode($roundingMode, $context = null) |
|
45 | { |
|
46 | return static::of($context)->setTaxRoundingMode($roundingMode); |
|
47 | } |
|
48 | } |
|
49 |
@@ 20-48 (lines=29) @@ | ||
17 | * @method DiscountCodeReference getDiscountCode() |
|
18 | * @method CartRemoveDiscountCodeAction setDiscountCode(DiscountCodeReference $discountCode = null) |
|
19 | */ |
|
20 | class CartRemoveDiscountCodeAction extends AbstractAction |
|
21 | { |
|
22 | public function fieldDefinitions() |
|
23 | { |
|
24 | return [ |
|
25 | 'action' => [static::TYPE => 'string'], |
|
26 | 'discountCode' => [static::TYPE => DiscountCodeReference::class], |
|
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('removeDiscountCode'); |
|
38 | } |
|
39 | ||
40 | /** |
|
41 | * @param DiscountCodeReference $discountCode |
|
42 | * @param Context|callable $context |
|
43 | */ |
|
44 | public static function ofDiscountCode(DiscountCodeReference $discountCode, $context = null) |
|
45 | { |
|
46 | return static::of($context)->setDiscountCode($discountCode); |
|
47 | } |
|
48 | } |
|
49 |
@@ 21-50 (lines=30) @@ | ||
18 | * @method CartSetDeleteDaysAfterLastModificationAction setDeleteDaysAfterLastModification(int $deleteDaysAfterLastModification = null) |
|
19 | * @codingStandardsIgnoreEnd |
|
20 | */ |
|
21 | class CartSetDeleteDaysAfterLastModificationAction extends AbstractAction |
|
22 | { |
|
23 | public function fieldDefinitions() |
|
24 | { |
|
25 | return [ |
|
26 | 'action' => [static::TYPE => 'string'], |
|
27 | 'deleteDaysAfterLastModification' => [static::TYPE => 'int'], |
|
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('setDeleteDaysAfterLastModification'); |
|
39 | } |
|
40 | ||
41 | /** |
|
42 | * @param int $days |
|
43 | * @param Context|callable $context |
|
44 | * @return CartSetDeleteDaysAfterLastModificationAction |
|
45 | */ |
|
46 | public static function ofDays($days, $context = null) |
|
47 | { |
|
48 | return static::of($context)->setDeleteDaysAfterLastModification($days); |
|
49 | } |
|
50 | } |
|
51 |
@@ 20-49 (lines=30) @@ | ||
17 | * @method AssetDraft getAsset() |
|
18 | * @method CategoryAddAssetAction setAsset(AssetDraft $asset = null) |
|
19 | */ |
|
20 | class CategoryAddAssetAction extends AbstractAction |
|
21 | { |
|
22 | public function fieldDefinitions() |
|
23 | { |
|
24 | return [ |
|
25 | 'action' => [static::TYPE => 'string'], |
|
26 | 'asset' => [static::TYPE => AssetDraft::class], |
|
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('addAsset'); |
|
38 | } |
|
39 | ||
40 | /** |
|
41 | * @param AssetDraft $asset |
|
42 | * @param Context|callable $context |
|
43 | * @return CategoryAddAssetAction |
|
44 | */ |
|
45 | public static function ofAsset(AssetDraft $asset, $context = null) |
|
46 | { |
|
47 | return static::of($context)->setAsset($asset); |
|
48 | } |
|
49 | } |
|
50 |
@@ 20-39 (lines=20) @@ | ||
17 | * @method array getAssetOrder() |
|
18 | * @method CategoryChangeAssetOrderAction setAssetOrder(array $assetOrder = null) |
|
19 | */ |
|
20 | class CategoryChangeAssetOrderAction extends AbstractAction |
|
21 | { |
|
22 | public function fieldDefinitions() |
|
23 | { |
|
24 | return [ |
|
25 | 'action' => [static::TYPE => 'string'], |
|
26 | 'assetOrder' => [static::TYPE => 'array'], |
|
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('changeAssetOrder'); |
|
38 | } |
|
39 | } |
|
40 |
@@ 20-49 (lines=30) @@ | ||
17 | * @method string getAction() |
|
18 | * @method CategoryChangeNameAction setAction(string $action = null) |
|
19 | */ |
|
20 | class CategoryChangeNameAction extends AbstractAction |
|
21 | { |
|
22 | public function fieldDefinitions() |
|
23 | { |
|
24 | return [ |
|
25 | 'action' => [static::TYPE => 'string'], |
|
26 | 'name' => [static::TYPE => LocalizedString::class] |
|
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('changeName'); |
|
38 | } |
|
39 | ||
40 | /** |
|
41 | * @param LocalizedString $name |
|
42 | * @param Context|callable $context |
|
43 | * @return CategoryChangeNameAction |
|
44 | */ |
|
45 | public static function ofName(LocalizedString $name, $context = null) |
|
46 | { |
|
47 | return static::of($context)->setName($name); |
|
48 | } |
|
49 | } |
|
50 |
@@ 20-49 (lines=30) @@ | ||
17 | * @method CategoryReference getParent() |
|
18 | * @method CategoryChangeParentAction setParent(CategoryReference $parent = null) |
|
19 | */ |
|
20 | class CategoryChangeParentAction extends AbstractAction |
|
21 | { |
|
22 | public function fieldDefinitions() |
|
23 | { |
|
24 | return [ |
|
25 | 'action' => [static::TYPE => 'string'], |
|
26 | 'parent' => [static::TYPE => CategoryReference::class] |
|
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('changeParent'); |
|
38 | } |
|
39 | ||
40 | /** |
|
41 | * @param CategoryReference $parent |
|
42 | * @param Context|callable $context |
|
43 | * @return CategoryChangeParentAction |
|
44 | */ |
|
45 | public static function ofParentCategory(CategoryReference $parent, $context = null) |
|
46 | { |
|
47 | return static::of($context)->setParent($parent); |
|
48 | } |
|
49 | } |
|
50 |
@@ 20-49 (lines=30) @@ | ||
17 | * @method string getAction() |
|
18 | * @method CategoryChangeSlugAction setAction(string $action = null) |
|
19 | */ |
|
20 | class CategoryChangeSlugAction extends AbstractAction |
|
21 | { |
|
22 | public function fieldDefinitions() |
|
23 | { |
|
24 | return [ |
|
25 | 'action' => [static::TYPE => 'string'], |
|
26 | 'slug' => [static::TYPE => LocalizedString::class] |
|
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('changeSlug'); |
|
38 | } |
|
39 | ||
40 | /** |
|
41 | * @param LocalizedString $slug |
|
42 | * @param Context|callable $context |
|
43 | * @return CategoryChangeSlugAction |
|
44 | */ |
|
45 | public static function ofSlug(LocalizedString $slug, $context = null) |
|
46 | { |
|
47 | return static::of($context)->setSlug($slug); |
|
48 | } |
|
49 | } |
|
50 |
@@ 19-48 (lines=30) @@ | ||
16 | * @method string getAssetId() |
|
17 | * @method CategoryRemoveAssetAction setAssetId(string $assetId = null) |
|
18 | */ |
|
19 | class CategoryRemoveAssetAction extends AbstractAction |
|
20 | { |
|
21 | public function fieldDefinitions() |
|
22 | { |
|
23 | return [ |
|
24 | 'action' => [static::TYPE => 'string'], |
|
25 | 'assetId' => [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('removeAsset'); |
|
37 | } |
|
38 | ||
39 | /** |
|
40 | * @param string $assetId |
|
41 | * @param Context|callable $context |
|
42 | * @return CategoryRemoveAssetAction |
|
43 | */ |
|
44 | public static function ofAssetId($assetId, $context = null) |
|
45 | { |
|
46 | return static::of($context)->setAssetId($assetId); |
|
47 | } |
|
48 | } |
|
49 |
@@ 20-49 (lines=30) @@ | ||
17 | * @method string getAction() |
|
18 | * @method CategorySetDescriptionAction setAction(string $action = null) |
|
19 | */ |
|
20 | class CategorySetDescriptionAction extends AbstractAction |
|
21 | { |
|
22 | public function fieldDefinitions() |
|
23 | { |
|
24 | return [ |
|
25 | 'action' => [static::TYPE => 'string'], |
|
26 | 'description' => [static::TYPE => LocalizedString::class] |
|
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('setDescription'); |
|
38 | } |
|
39 | ||
40 | /** |
|
41 | * @param LocalizedString $description |
|
42 | * @param Context|callable $context |
|
43 | * @return CategorySetDescriptionAction |
|
44 | */ |
|
45 | public static function ofDescription(LocalizedString $description, $context = null) |
|
46 | { |
|
47 | return static::of($context)->setDescription($description); |
|
48 | } |
|
49 | } |
|
50 |
@@ 20-49 (lines=30) @@ | ||
17 | * @method LocalizedString getDescription() |
|
18 | * @method ChannelChangeDescriptionAction setDescription(LocalizedString $description = null) |
|
19 | */ |
|
20 | class ChannelChangeDescriptionAction extends AbstractAction |
|
21 | { |
|
22 | public function fieldDefinitions() |
|
23 | { |
|
24 | return [ |
|
25 | 'action' => [static::TYPE => 'string'], |
|
26 | 'description' => [static::TYPE => LocalizedString::class], |
|
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('changeDescription'); |
|
38 | } |
|
39 | ||
40 | /** |
|
41 | * @param LocalizedString $description |
|
42 | * @param Context|callable $context |
|
43 | * @return ChannelChangeDescriptionAction |
|
44 | */ |
|
45 | public static function ofDescription(LocalizedString $description, $context = null) |
|
46 | { |
|
47 | return static::of($context)->setDescription($description); |
|
48 | } |
|
49 | } |
|
50 |
@@ 20-49 (lines=30) @@ | ||
17 | * @method LocalizedString getName() |
|
18 | * @method ChannelChangeNameAction setName(LocalizedString $name = null) |
|
19 | */ |
|
20 | class ChannelChangeNameAction extends AbstractAction |
|
21 | { |
|
22 | public function fieldDefinitions() |
|
23 | { |
|
24 | return [ |
|
25 | 'action' => [static::TYPE => 'string'], |
|
26 | 'name' => [static::TYPE => LocalizedString::class], |
|
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('changeName'); |
|
38 | } |
|
39 | ||
40 | /** |
|
41 | * @param LocalizedString $name |
|
42 | * @param Context|callable $context |
|
43 | * @return ChannelChangeNameAction |
|
44 | */ |
|
45 | public static function ofName(LocalizedString $name, $context = null) |
|
46 | { |
|
47 | return static::of($context)->setName($name); |
|
48 | } |
|
49 | } |
|
50 |
@@ 20-49 (lines=30) @@ | ||
17 | * @method string getAction() |
|
18 | * @method CustomerAddAddressAction setAction(string $action = null) |
|
19 | */ |
|
20 | class CustomerAddAddressAction extends AbstractAction |
|
21 | { |
|
22 | public function fieldDefinitions() |
|
23 | { |
|
24 | return [ |
|
25 | 'action' => [static::TYPE => 'string'], |
|
26 | 'address' => [static::TYPE => Address::class], |
|
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('addAddress'); |
|
38 | } |
|
39 | ||
40 | /** |
|
41 | * @param Address $address |
|
42 | * @param Context|callable $context |
|
43 | * @return CustomerAddAddressAction |
|
44 | */ |
|
45 | public static function ofAddress(Address $address, $context = null) |
|
46 | { |
|
47 | return static::of($context)->setAddress($address); |
|
48 | } |
|
49 | } |
|
50 |
@@ 19-38 (lines=20) @@ | ||
16 | * @method string getAction() |
|
17 | * @method CustomerAddBillingAddressAction setAction(string $action = null) |
|
18 | */ |
|
19 | class CustomerAddBillingAddressAction extends AbstractAction |
|
20 | { |
|
21 | public function fieldDefinitions() |
|
22 | { |
|
23 | return [ |
|
24 | 'action' => [static::TYPE => 'string'], |
|
25 | 'addressId' => [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('addBillingAddressId'); |
|
37 | } |
|
38 | } |
|
39 |
@@ 19-38 (lines=20) @@ | ||
16 | * @method string getAction() |
|
17 | * @method CustomerAddShippingAddressAction setAction(string $action = null) |
|
18 | */ |
|
19 | class CustomerAddShippingAddressAction extends AbstractAction |
|
20 | { |
|
21 | public function fieldDefinitions() |
|
22 | { |
|
23 | return [ |
|
24 | 'action' => [static::TYPE => 'string'], |
|
25 | 'addressId' => [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('addShippingAddressId'); |
|
37 | } |
|
38 | } |
|
39 |
@@ 19-38 (lines=20) @@ | ||
16 | * @method string getAction() |
|
17 | * @method CustomerRemoveBillingAddressAction setAction(string $action = null) |
|
18 | */ |
|
19 | class CustomerRemoveBillingAddressAction extends AbstractAction |
|
20 | { |
|
21 | public function fieldDefinitions() |
|
22 | { |
|
23 | return [ |
|
24 | 'action' => [static::TYPE => 'string'], |
|
25 | 'addressId' => [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('removeBillingAddressId'); |
|
37 | } |
|
38 | } |
|
39 |
@@ 19-38 (lines=20) @@ | ||
16 | * @method string getAction() |
|
17 | * @method CustomerRemoveShippingAddressAction setAction(string $action = null) |
|
18 | */ |
|
19 | class CustomerRemoveShippingAddressAction extends AbstractAction |
|
20 | { |
|
21 | public function fieldDefinitions() |
|
22 | { |
|
23 | return [ |
|
24 | 'action' => [static::TYPE => 'string'], |
|
25 | 'addressId' => [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('removeShippingAddressId'); |
|
37 | } |
|
38 | } |
|
39 |
@@ 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 |
@@ 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 |
@@ 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 |
@@ 19-38 (lines=20) @@ | ||
16 | * @method string getEmail() |
|
17 | * @method OrderSetCustomerEmail setEmail(string $email = null) |
|
18 | */ |
|
19 | class OrderSetCustomerEmail extends AbstractAction |
|
20 | { |
|
21 | public function fieldDefinitions() |
|
22 | { |
|
23 | return [ |
|
24 | 'action' => [static::TYPE => 'string'], |
|
25 | 'email' => [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('setCustomerEmail'); |
|
37 | } |
|
38 | } |
|
39 |
@@ 22-51 (lines=30) @@ | ||
19 | * @method Transaction getTransaction() |
|
20 | * @method PaymentAddTransactionAction setTransaction(Transaction $transaction = null) |
|
21 | */ |
|
22 | class PaymentAddTransactionAction extends AbstractAction |
|
23 | { |
|
24 | public function fieldDefinitions() |
|
25 | { |
|
26 | return [ |
|
27 | 'action' => [static::TYPE => 'string'], |
|
28 | 'transaction' => [static::TYPE => Transaction::class], |
|
29 | ]; |
|
30 | } |
|
31 | ||
32 | /** |
|
33 | * @param array $data |
|
34 | * @param Context|callable $context |
|
35 | */ |
|
36 | public function __construct(array $data = [], $context = null) |
|
37 | { |
|
38 | parent::__construct($data, $context); |
|
39 | $this->setAction('addTransaction'); |
|
40 | } |
|
41 | ||
42 | /** |
|
43 | * @param Transaction $transaction |
|
44 | * @param Context|callable $context |
|
45 | * @return PaymentAddTransactionAction |
|
46 | */ |
|
47 | public static function ofTransaction(Transaction $transaction, $context = null) |
|
48 | { |
|
49 | return static::of($context)->setTransaction($transaction); |
|
50 | } |
|
51 | } |
|
52 |
@@ 20-49 (lines=30) @@ | ||
17 | * @method LocalizedString getName() |
|
18 | * @method ProductDiscountChangeNameAction setName(LocalizedString $name = null) |
|
19 | */ |
|
20 | class ProductDiscountChangeNameAction extends AbstractAction |
|
21 | { |
|
22 | public function fieldDefinitions() |
|
23 | { |
|
24 | return [ |
|
25 | 'action' => [static::TYPE => 'string'], |
|
26 | 'name' => [static::TYPE => LocalizedString::class], |
|
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('changeName'); |
|
38 | } |
|
39 | ||
40 | /** |
|
41 | * @param LocalizedString $name |
|
42 | * @param Context|callable $context |
|
43 | * @return ProductDiscountChangeNameAction |
|
44 | */ |
|
45 | public static function ofName(LocalizedString $name, $context = null) |
|
46 | { |
|
47 | return static::of($context)->setName($name); |
|
48 | } |
|
49 | } |
|
50 |
@@ 20-49 (lines=30) @@ | ||
17 | * @method ProductDiscountValue getValue() |
|
18 | * @method ProductDiscountChangeValueAction setValue(ProductDiscountValue $value = null) |
|
19 | */ |
|
20 | class ProductDiscountChangeValueAction extends AbstractAction |
|
21 | { |
|
22 | public function fieldDefinitions() |
|
23 | { |
|
24 | return [ |
|
25 | 'action' => [static::TYPE => 'string'], |
|
26 | 'value' => [static::TYPE => ProductDiscountValue::class], |
|
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('changeValue'); |
|
38 | } |
|
39 | ||
40 | /** |
|
41 | * @param ProductDiscountValue $productDiscountValue |
|
42 | * @param Context|callable $context |
|
43 | * @return ProductDiscountChangeValueAction |
|
44 | */ |
|
45 | public static function ofProductDiscountValue(ProductDiscountValue $productDiscountValue, $context = null) |
|
46 | { |
|
47 | return static::of($context)->setValue($productDiscountValue); |
|
48 | } |
|
49 | } |
|
50 |
@@ 19-48 (lines=30) @@ | ||
16 | * @method string getKey() |
|
17 | * @method ProductSetKeyAction setKey(string $key = null) |
|
18 | */ |
|
19 | class ProductSetKeyAction 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 ProductSetKeyAction |
|
43 | */ |
|
44 | public static function ofKey($key, $context = null) |
|
45 | { |
|
46 | return static::of($context)->setKey($key); |
|
47 | } |
|
48 | } |
|
49 |
@@ 20-49 (lines=30) @@ | ||
17 | * @method AttributeDefinition getAttribute() |
|
18 | * @method ProductTypeAddAttributeDefinitionAction setAttribute(AttributeDefinition $attribute = null) |
|
19 | */ |
|
20 | class ProductTypeAddAttributeDefinitionAction extends AbstractAction |
|
21 | { |
|
22 | public function fieldDefinitions() |
|
23 | { |
|
24 | return [ |
|
25 | 'action' => [static::TYPE => 'string'], |
|
26 | 'attribute' => [static::TYPE => AttributeDefinition::class] |
|
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('addAttributeDefinition'); |
|
38 | } |
|
39 | ||
40 | /** |
|
41 | * @param AttributeDefinition $attribute |
|
42 | * @param Context|callable $context |
|
43 | * @return ProductTypeAddAttributeDefinitionAction |
|
44 | */ |
|
45 | public static function ofAttribute(AttributeDefinition $attribute, $context = null) |
|
46 | { |
|
47 | return static::of($context)->setAttribute($attribute); |
|
48 | } |
|
49 | } |
|
50 |
@@ 20-49 (lines=30) @@ | ||
17 | * @method AttributeDefinitionCollection getAttributes() |
|
18 | * @method ProductTypeChangeAttributeOrderAction setAttributes(AttributeDefinitionCollection $attributes = null) |
|
19 | */ |
|
20 | class ProductTypeChangeAttributeOrderAction extends AbstractAction |
|
21 | { |
|
22 | public function fieldDefinitions() |
|
23 | { |
|
24 | return [ |
|
25 | 'action' => [static::TYPE => 'string'], |
|
26 | 'attributes' => [static::TYPE => AttributeDefinitionCollection::class], |
|
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('changeAttributeOrder'); |
|
38 | } |
|
39 | ||
40 | /** |
|
41 | * @param AttributeDefinitionCollection $attributes |
|
42 | * @param Context|callable $context |
|
43 | * @return ProductTypeChangeAttributeOrderAction |
|
44 | */ |
|
45 | public static function ofAttributes(AttributeDefinitionCollection $attributes, $context = null) |
|
46 | { |
|
47 | return static::of($context)->setAttributes($attributes); |
|
48 | } |
|
49 | } |
|
50 |
@@ 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-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 |
@@ 20-49 (lines=30) @@ | ||
17 | * @method ZoneReference getZone() |
|
18 | * @method ShippingMethodAddZoneAction setZone(ZoneReference $zone = null) |
|
19 | */ |
|
20 | class ShippingMethodAddZoneAction extends AbstractAction |
|
21 | { |
|
22 | public function fieldDefinitions() |
|
23 | { |
|
24 | return [ |
|
25 | 'action' => [static::TYPE => 'string'], |
|
26 | 'zone' => [static::TYPE => ZoneReference::class], |
|
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('addZone'); |
|
38 | } |
|
39 | ||
40 | /** |
|
41 | * @param ZoneReference $zone |
|
42 | * @param Context|callable $context |
|
43 | * @return ShippingMethodAddZoneAction |
|
44 | */ |
|
45 | public static function ofZone(ZoneReference $zone, $context = null) |
|
46 | { |
|
47 | return static::of($context)->setZone($zone); |
|
48 | } |
|
49 | } |
|
50 |
@@ 20-49 (lines=30) @@ | ||
17 | * @method TaxCategoryReference getTaxCategory() |
|
18 | * @method ShippingMethodChangeTaxCategoryAction setTaxCategory(TaxCategoryReference $taxCategory = null) |
|
19 | */ |
|
20 | class ShippingMethodChangeTaxCategoryAction extends AbstractAction |
|
21 | { |
|
22 | public function fieldDefinitions() |
|
23 | { |
|
24 | return [ |
|
25 | 'action' => [static::TYPE => 'string'], |
|
26 | 'taxCategory' => [static::TYPE => TaxCategoryReference::class], |
|
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('changeTaxCategory'); |
|
38 | } |
|
39 | ||
40 | /** |
|
41 | * @param TaxCategoryReference $taxCategory |
|
42 | * @param Context|callable $context |
|
43 | * @return ShippingMethodChangeTaxCategoryAction |
|
44 | */ |
|
45 | public static function ofTaxCategory(TaxCategoryReference $taxCategory, $context = null) |
|
46 | { |
|
47 | return static::of($context)->setTaxCategory($taxCategory); |
|
48 | } |
|
49 | } |
|
50 |
@@ 20-49 (lines=30) @@ | ||
17 | * @method ZoneReference getZone() |
|
18 | * @method ShippingMethodRemoveZoneAction setZone(ZoneReference $zone = null) |
|
19 | */ |
|
20 | class ShippingMethodRemoveZoneAction extends AbstractAction |
|
21 | { |
|
22 | public function fieldDefinitions() |
|
23 | { |
|
24 | return [ |
|
25 | 'action' => [static::TYPE => 'string'], |
|
26 | 'zone' => [static::TYPE => ZoneReference::class], |
|
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('removeZone'); |
|
38 | } |
|
39 | ||
40 | /** |
|
41 | * @param ZoneReference $zone |
|
42 | * @param Context|callable $context |
|
43 | * @return ShippingMethodRemoveZoneAction |
|
44 | */ |
|
45 | public static function ofZone(ZoneReference $zone, $context = null) |
|
46 | { |
|
47 | return static::of($context)->setZone($zone); |
|
48 | } |
|
49 | } |
|
50 |
@@ 19-48 (lines=30) @@ | ||
16 | * @method array getLineItemOrder() |
|
17 | * @method ShoppingListChangeLineItemsOrderAction setLineItemOrder(array $lineItemOrder = null) |
|
18 | */ |
|
19 | class ShoppingListChangeLineItemsOrderAction extends AbstractAction |
|
20 | { |
|
21 | public function fieldDefinitions() |
|
22 | { |
|
23 | return [ |
|
24 | 'action' => [static::TYPE => 'string'], |
|
25 | 'lineItemOrder' => [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('changeLineItemsOrder'); |
|
37 | } |
|
38 | ||
39 | /** |
|
40 | * @param array $lineItemOrder |
|
41 | * @param Context|callable $context |
|
42 | * @return ShoppingListChangeLineItemsOrderAction |
|
43 | */ |
|
44 | public static function ofLineItemIdOrder(array $lineItemOrder, $context = null) |
|
45 | { |
|
46 | return static::of($context)->setLineItemOrder($lineItemOrder); |
|
47 | } |
|
48 | } |
|
49 |
@@ 20-49 (lines=30) @@ | ||
17 | * @method LocalizedString getName() |
|
18 | * @method ShoppingListChangeNameAction setName(LocalizedString $name = null) |
|
19 | */ |
|
20 | class ShoppingListChangeNameAction extends AbstractAction |
|
21 | { |
|
22 | public function fieldDefinitions() |
|
23 | { |
|
24 | return [ |
|
25 | 'action' => [static::TYPE => 'string'], |
|
26 | 'name' => [static::TYPE => LocalizedString::class], |
|
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('changeName'); |
|
38 | } |
|
39 | ||
40 | /** |
|
41 | * @param LocalizedString $name |
|
42 | * @param Context|callable $context |
|
43 | * @return ShoppingListChangeNameAction |
|
44 | */ |
|
45 | public static function ofName(LocalizedString $name, $context = null) |
|
46 | { |
|
47 | return static::of($context)->setName($name); |
|
48 | } |
|
49 | } |
|
50 |
@@ 19-48 (lines=30) @@ | ||
16 | * @method array getTextLineItemOrder() |
|
17 | * @method ShoppingListChangeTextLineItemsOrderAction setTextLineItemOrder(array $textLineItemOrder = null) |
|
18 | */ |
|
19 | class ShoppingListChangeTextLineItemsOrderAction extends AbstractAction |
|
20 | { |
|
21 | public function fieldDefinitions() |
|
22 | { |
|
23 | return [ |
|
24 | 'action' => [static::TYPE => 'string'], |
|
25 | 'textLineItemOrder' => [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('changeTextLineItemsOrder'); |
|
37 | } |
|
38 | ||
39 | /** |
|
40 | * @param array $textLineItemOrder |
|
41 | * @param Context|callable $context |
|
42 | * @return ShoppingListChangeTextLineItemsOrderAction |
|
43 | */ |
|
44 | public static function ofTextLineItemIdOrder(array $textLineItemOrder, $context = null) |
|
45 | { |
|
46 | return static::of($context)->setTextLineItemOrder($textLineItemOrder); |
|
47 | } |
|
48 | } |
|
49 |
@@ 20-49 (lines=30) @@ | ||
17 | * @method CustomerReference getCustomer() |
|
18 | * @method ShoppingListSetCustomerAction setCustomer(CustomerReference $customer = null) |
|
19 | */ |
|
20 | class ShoppingListSetCustomerAction extends AbstractAction |
|
21 | { |
|
22 | public function fieldDefinitions() |
|
23 | { |
|
24 | return [ |
|
25 | 'action' => [static::TYPE => 'string'], |
|
26 | 'customer' => [static::TYPE => CustomerReference::class], |
|
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 | /** |
|
41 | * @param CustomerReference $customer |
|
42 | * @param Context|callable $context |
|
43 | * @return ShoppingListSetCustomerAction |
|
44 | */ |
|
45 | public static function ofCustomer(CustomerReference $customer, $context = null) |
|
46 | { |
|
47 | return static::of($context)->setCustomer($customer); |
|
48 | } |
|
49 | } |
|
50 |
@@ 18-37 (lines=20) @@ | ||
15 | * @method ShoppingListSetDeleteDaysAfterLastModificationAction setDeleteDaysAfterLastModification(int $deleteDaysAfterLastModification = null) |
|
16 | * @codingStandardsIgnoreEnd |
|
17 | */ |
|
18 | class ShoppingListSetDeleteDaysAfterLastModificationAction extends AbstractAction |
|
19 | { |
|
20 | public function fieldDefinitions() |
|
21 | { |
|
22 | return [ |
|
23 | 'action' => [static::TYPE => 'string'], |
|
24 | 'deleteDaysAfterLastModification' => [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('setDeleteDaysAfterLastModification'); |
|
36 | } |
|
37 | } |
|
38 |
@@ 20-49 (lines=30) @@ | ||
17 | * @method LocalizedString getDescription() |
|
18 | * @method ShoppingListSetDescriptionAction setDescription(LocalizedString $description = null) |
|
19 | */ |
|
20 | class ShoppingListSetDescriptionAction extends AbstractAction |
|
21 | { |
|
22 | public function fieldDefinitions() |
|
23 | { |
|
24 | return [ |
|
25 | 'action' => [static::TYPE => 'string'], |
|
26 | 'description' => [static::TYPE => LocalizedString::class], |
|
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('setDescription'); |
|
38 | } |
|
39 | ||
40 | /** |
|
41 | * @param string $description |
|
42 | * @param Context|callable $context |
|
43 | * @return ShoppingListSetDescriptionAction |
|
44 | */ |
|
45 | public static function ofDescription($description, $context = null) |
|
46 | { |
|
47 | return static::of($context)->setDescription($description); |
|
48 | } |
|
49 | } |
|
50 |
@@ 19-48 (lines=30) @@ | ||
16 | * @method string getKey() |
|
17 | * @method ShoppingListSetKeyAction setKey(string $key = null) |
|
18 | */ |
|
19 | class ShoppingListSetKeyAction 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 ShoppingListSetKeyAction |
|
43 | */ |
|
44 | public static function ofKey($key, $context = null) |
|
45 | { |
|
46 | return static::of($context)->setKey($key); |
|
47 | } |
|
48 | } |
|
49 |
@@ 20-49 (lines=30) @@ | ||
17 | * @method LocalizedString getSlug() |
|
18 | * @method ShoppingListSetSlugAction setSlug(LocalizedString $slug = null) |
|
19 | */ |
|
20 | class ShoppingListSetSlugAction extends AbstractAction |
|
21 | { |
|
22 | public function fieldDefinitions() |
|
23 | { |
|
24 | return [ |
|
25 | 'action' => [static::TYPE => 'string'], |
|
26 | 'slug' => [static::TYPE => LocalizedString::class], |
|
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('setSlug'); |
|
38 | } |
|
39 | ||
40 | /** |
|
41 | * @param string $slug |
|
42 | * @param Context|callable $context |
|
43 | * @return ShoppingListSetSlugAction |
|
44 | */ |
|
45 | public static function ofSlug($slug, $context = null) |
|
46 | { |
|
47 | return static::of($context)->setSlug($slug); |
|
48 | } |
|
49 | } |
|
50 |
@@ 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 |
@@ 20-49 (lines=30) @@ | ||
17 | * @method LocalizedString getDescription() |
|
18 | * @method StateSetDescriptionAction setDescription(LocalizedString $description = null) |
|
19 | */ |
|
20 | class StateSetDescriptionAction extends AbstractAction |
|
21 | { |
|
22 | public function fieldDefinitions() |
|
23 | { |
|
24 | return [ |
|
25 | 'action' => [static::TYPE => 'string'], |
|
26 | 'description' => [static::TYPE => LocalizedString::class], |
|
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('setDescription'); |
|
38 | } |
|
39 | ||
40 | /** |
|
41 | * @param LocalizedString $description |
|
42 | * @param Context|callable $context |
|
43 | * @return StateSetDescriptionAction |
|
44 | */ |
|
45 | public static function ofDescription(LocalizedString $description, $context = null) |
|
46 | { |
|
47 | return static::of($context)->setDescription($description); |
|
48 | } |
|
49 | } |
|
50 |
@@ 20-49 (lines=30) @@ | ||
17 | * @method LocalizedString getName() |
|
18 | * @method StateSetNameAction setName(LocalizedString $name = null) |
|
19 | */ |
|
20 | class StateSetNameAction extends AbstractAction |
|
21 | { |
|
22 | public function fieldDefinitions() |
|
23 | { |
|
24 | return [ |
|
25 | 'action' => [static::TYPE => 'string'], |
|
26 | 'name' => [static::TYPE => LocalizedString::class], |
|
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('setName'); |
|
38 | } |
|
39 | ||
40 | /** |
|
41 | * @param LocalizedString $name |
|
42 | * @param Context|callable $context |
|
43 | * @return StateSetNameAction |
|
44 | */ |
|
45 | public static function ofName(LocalizedString $name, $context = null) |
|
46 | { |
|
47 | return static::of($context)->setName($name); |
|
48 | } |
|
49 | } |
|
50 |
@@ 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 |
@@ 20-49 (lines=30) @@ | ||
17 | * @method StateReferenceCollection getTransitions() |
|
18 | * @method StateSetTransitionsAction setTransitions(StateReferenceCollection $transitions = null) |
|
19 | */ |
|
20 | class StateSetTransitionsAction extends AbstractAction |
|
21 | { |
|
22 | public function fieldDefinitions() |
|
23 | { |
|
24 | return [ |
|
25 | 'action' => [static::TYPE => 'string'], |
|
26 | 'transitions' => [static::TYPE => StateReferenceCollection::class], |
|
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('setTransitions'); |
|
38 | } |
|
39 | ||
40 | /** |
|
41 | * @param StateReferenceCollection $transitions |
|
42 | * @param Context|callable $context |
|
43 | * @return StateSetTransitionsAction |
|
44 | */ |
|
45 | public static function ofTransitions(StateReferenceCollection $transitions, $context = null) |
|
46 | { |
|
47 | return static::of($context)->setTransitions($transitions); |
|
48 | } |
|
49 | } |
|
50 |
@@ 19-38 (lines=20) @@ | ||
16 | * @method string getKey() |
|
17 | * @method SubscriptionSetKeyAction setKey(string $key = null) |
|
18 | */ |
|
19 | class SubscriptionSetKeyAction 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 |
@@ 20-49 (lines=30) @@ | ||
17 | * @method TaxRate getTaxRate() |
|
18 | * @method TaxCategoryAddTaxRateAction setTaxRate(TaxRate $taxRate = null) |
|
19 | */ |
|
20 | class TaxCategoryAddTaxRateAction extends AbstractAction |
|
21 | { |
|
22 | public function fieldDefinitions() |
|
23 | { |
|
24 | return [ |
|
25 | 'action' => [static::TYPE => 'string'], |
|
26 | 'taxRate' => [static::TYPE => TaxRate::class], |
|
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('addTaxRate'); |
|
38 | } |
|
39 | ||
40 | /** |
|
41 | * @param TaxRate $taxRate |
|
42 | * @param Context|callable $context |
|
43 | * @return TaxCategoryAddTaxRateAction |
|
44 | */ |
|
45 | public static function ofTaxRate(TaxRate $taxRate, $context = null) |
|
46 | { |
|
47 | return static::of($context)->setTaxRate($taxRate); |
|
48 | } |
|
49 | } |
|
50 |
@@ 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 |
@@ 21-50 (lines=30) @@ | ||
18 | * @method FieldDefinition getFieldDefinition() |
|
19 | * @method TypeAddFieldDefinitionAction setFieldDefinition(FieldDefinition $fieldDefinition = null) |
|
20 | */ |
|
21 | class TypeAddFieldDefinitionAction extends AbstractAction |
|
22 | { |
|
23 | public function fieldDefinitions() |
|
24 | { |
|
25 | return [ |
|
26 | 'action' => [static::TYPE => 'string'], |
|
27 | 'fieldDefinition' => [static::TYPE => FieldDefinition::class], |
|
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('addFieldDefinition'); |
|
39 | } |
|
40 | ||
41 | /** |
|
42 | * @param FieldDefinition $fieldDefinition |
|
43 | * @param Context|callable $context |
|
44 | * @return TypeAddFieldDefinitionAction |
|
45 | */ |
|
46 | public static function ofFieldDefinition(FieldDefinition $fieldDefinition, $context = null) |
|
47 | { |
|
48 | return static::of($context)->setFieldDefinition($fieldDefinition); |
|
49 | } |
|
50 | } |
|
51 |
@@ 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 |
@@ 20-49 (lines=30) @@ | ||
17 | * @method LocalizedString getName() |
|
18 | * @method TypeChangeNameAction setName(LocalizedString $name = null) |
|
19 | */ |
|
20 | class TypeChangeNameAction extends AbstractAction |
|
21 | { |
|
22 | public function fieldDefinitions() |
|
23 | { |
|
24 | return [ |
|
25 | 'action' => [static::TYPE => 'string'], |
|
26 | 'name' => [static::TYPE => LocalizedString::class], |
|
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('changeName'); |
|
38 | } |
|
39 | ||
40 | /** |
|
41 | * @param LocalizedString $name |
|
42 | * @param Context|callable $context |
|
43 | * @return TypeChangeNameAction |
|
44 | */ |
|
45 | public static function ofName(LocalizedString $name, $context = null) |
|
46 | { |
|
47 | return static::of($context)->setName($name); |
|
48 | } |
|
49 | } |
|
50 |
@@ 20-49 (lines=30) @@ | ||
17 | * @method Location getLocation() |
|
18 | * @method ZoneAddLocationAction setLocation(Location $location = null) |
|
19 | */ |
|
20 | class ZoneAddLocationAction extends AbstractAction |
|
21 | { |
|
22 | public function fieldDefinitions() |
|
23 | { |
|
24 | return [ |
|
25 | 'action' => [static::TYPE => 'string'], |
|
26 | 'location' => [static::TYPE => Location::class], |
|
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('addLocation'); |
|
38 | } |
|
39 | ||
40 | /** |
|
41 | * @param Location $location |
|
42 | * @param Context|callable $context |
|
43 | * @return ZoneAddLocationAction |
|
44 | */ |
|
45 | public static function ofLocation(Location $location, $context = null) |
|
46 | { |
|
47 | return static::of($context)->setLocation($location); |
|
48 | } |
|
49 | } |
|
50 |
@@ 20-49 (lines=30) @@ | ||
17 | * @method Location getLocation() |
|
18 | * @method ZoneRemoveLocationAction setLocation(Location $location = null) |
|
19 | */ |
|
20 | class ZoneRemoveLocationAction extends AbstractAction |
|
21 | { |
|
22 | public function fieldDefinitions() |
|
23 | { |
|
24 | return [ |
|
25 | 'action' => [static::TYPE => 'string'], |
|
26 | 'location' => [static::TYPE => Location::class], |
|
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('removeLocation'); |
|
38 | } |
|
39 | ||
40 | /** |
|
41 | * @param Location $location |
|
42 | * @param Context|callable $context |
|
43 | * @return ZoneRemoveLocationAction |
|
44 | */ |
|
45 | public static function ofLocation(Location $location, $context = null) |
|
46 | { |
|
47 | return static::of($context)->setLocation($location); |
|
48 | } |
|
49 | } |
|
50 |
@@ 20-39 (lines=20) @@ | ||
17 | * @method string getKey() |
|
18 | * @method PaymentSetKeyAction setKey(string $key = null) |
|
19 | */ |
|
20 | class PaymentSetKeyAction 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('setKey'); |
|
38 | } |
|
39 | } |
|
40 |
@@ 19-48 (lines=30) @@ | ||
16 | * @method string getAction() |
|
17 | * @method CategorySetKeyAction setAction(string $action = null) |
|
18 | */ |
|
19 | class CategorySetKeyAction 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 CategorySetKeyAction |
|
43 | */ |
|
44 | public static function ofKey($key, $context = null) |
|
45 | { |
|
46 | return static::of($context)->setKey($key); |
|
47 | } |
|
48 | } |
|
49 |
@@ 19-38 (lines=20) @@ | ||
16 | * @method string getAction() |
|
17 | * @method CustomerSetSalutationAction setAction(string $action = null) |
|
18 | */ |
|
19 | class CustomerSetSalutationAction extends AbstractAction |
|
20 | { |
|
21 | public function fieldDefinitions() |
|
22 | { |
|
23 | return [ |
|
24 | 'action' => [static::TYPE => 'string'], |
|
25 | 'salutation' => [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('setSalutation'); |
|
37 | } |
|
38 | } |
|
39 |