|
1
|
|
|
<?php |
|
2
|
|
|
|
|
3
|
|
|
namespace Commercetools\Core\Builder\Update; |
|
4
|
|
|
|
|
5
|
|
|
use Commercetools\Core\Request\ShippingMethods\Command\ShippingMethodAddShippingRateAction; |
|
6
|
|
|
use Commercetools\Core\Request\ShippingMethods\Command\ShippingMethodChangeIsDefaultAction; |
|
7
|
|
|
use Commercetools\Core\Request\ShippingMethods\Command\ShippingMethodChangeTaxCategoryAction; |
|
8
|
|
|
use Commercetools\Core\Request\ShippingMethods\Command\ShippingMethodSetKeyAction; |
|
9
|
|
|
use Commercetools\Core\Request\ShippingMethods\Command\ShippingMethodAddZoneAction; |
|
10
|
|
|
use Commercetools\Core\Request\ShippingMethods\Command\ShippingMethodRemoveZoneAction; |
|
11
|
|
|
use Commercetools\Core\Request\ShippingMethods\Command\ShippingMethodChangeNameAction; |
|
12
|
|
|
use Commercetools\Core\Request\ShippingMethods\Command\ShippingMethodSetPredicateAction; |
|
13
|
|
|
use Commercetools\Core\Request\ShippingMethods\Command\ShippingMethodRemoveShippingRateAction; |
|
14
|
|
|
use Commercetools\Core\Request\ShippingMethods\Command\ShippingMethodSetDescriptionAction; |
|
15
|
|
|
|
|
16
|
|
|
class ShippingMethodsActionBuilder |
|
17
|
|
|
{ |
|
18
|
|
|
/** |
|
19
|
|
|
* @return ShippingMethodAddShippingRateAction |
|
20
|
|
|
*/ |
|
21
|
|
|
public function addShippingRate() |
|
22
|
|
|
{ |
|
23
|
|
|
return ShippingMethodAddShippingRateAction::of(); |
|
24
|
|
|
} |
|
25
|
|
|
|
|
26
|
|
|
/** |
|
27
|
|
|
* @return ShippingMethodChangeIsDefaultAction |
|
28
|
|
|
*/ |
|
29
|
|
|
public function changeIsDefault() |
|
30
|
|
|
{ |
|
31
|
|
|
return ShippingMethodChangeIsDefaultAction::of(); |
|
32
|
|
|
} |
|
33
|
|
|
|
|
34
|
|
|
/** |
|
35
|
|
|
* @return ShippingMethodChangeTaxCategoryAction |
|
36
|
|
|
*/ |
|
37
|
|
|
public function changeTaxCategory() |
|
38
|
|
|
{ |
|
39
|
|
|
return ShippingMethodChangeTaxCategoryAction::of(); |
|
40
|
|
|
} |
|
41
|
|
|
|
|
42
|
|
|
/** |
|
43
|
|
|
* @return ShippingMethodSetKeyAction |
|
44
|
|
|
*/ |
|
45
|
|
|
public function setKey() |
|
46
|
|
|
{ |
|
47
|
|
|
return ShippingMethodSetKeyAction::of(); |
|
48
|
|
|
} |
|
49
|
|
|
|
|
50
|
|
|
/** |
|
51
|
|
|
* @return ShippingMethodAddZoneAction |
|
52
|
|
|
*/ |
|
53
|
|
|
public function addZone() |
|
54
|
|
|
{ |
|
55
|
|
|
return ShippingMethodAddZoneAction::of(); |
|
56
|
|
|
} |
|
57
|
|
|
|
|
58
|
|
|
/** |
|
59
|
|
|
* @return ShippingMethodRemoveZoneAction |
|
60
|
|
|
*/ |
|
61
|
|
|
public function removeZone() |
|
62
|
|
|
{ |
|
63
|
|
|
return ShippingMethodRemoveZoneAction::of(); |
|
64
|
|
|
} |
|
65
|
|
|
|
|
66
|
|
|
/** |
|
67
|
|
|
* @return ShippingMethodChangeNameAction |
|
68
|
|
|
*/ |
|
69
|
|
|
public function changeName() |
|
70
|
|
|
{ |
|
71
|
|
|
return ShippingMethodChangeNameAction::of(); |
|
72
|
|
|
} |
|
73
|
|
|
|
|
74
|
|
|
/** |
|
75
|
|
|
* @return ShippingMethodSetPredicateAction |
|
76
|
|
|
*/ |
|
77
|
|
|
public function setPredicate() |
|
78
|
|
|
{ |
|
79
|
|
|
return ShippingMethodSetPredicateAction::of(); |
|
80
|
|
|
} |
|
81
|
|
|
|
|
82
|
|
|
/** |
|
83
|
|
|
* @return ShippingMethodRemoveShippingRateAction |
|
84
|
|
|
*/ |
|
85
|
|
|
public function removeShippingRate() |
|
86
|
|
|
{ |
|
87
|
|
|
return ShippingMethodRemoveShippingRateAction::of(); |
|
88
|
|
|
} |
|
89
|
|
|
|
|
90
|
|
|
/** |
|
91
|
|
|
* @return ShippingMethodSetDescriptionAction |
|
92
|
|
|
*/ |
|
93
|
|
|
public function setDescription() |
|
94
|
|
|
{ |
|
95
|
|
|
return ShippingMethodSetDescriptionAction::of(); |
|
96
|
|
|
} |
|
97
|
|
|
} |
|
98
|
|
|
|