55use Commercetools \Core \Error \InvalidArgumentException ;
66use Commercetools \Core \Request \AbstractAction ;
77use Commercetools \Core \Request \Orders \Command \OrderAddDeliveryAction ;
8+ use Commercetools \Core \Request \Orders \Command \OrderAddItemShippingAddressAction ;
89use Commercetools \Core \Request \Orders \Command \OrderAddParcelToDeliveryAction ;
910use Commercetools \Core \Request \Orders \Command \OrderAddPaymentAction ;
1011use Commercetools \Core \Request \Orders \Command \OrderAddReturnInfoAction ;
1415use Commercetools \Core \Request \Orders \Command \OrderImportCustomLineItemStateAction ;
1516use Commercetools \Core \Request \Orders \Command \OrderImportLineItemStateAction ;
1617use Commercetools \Core \Request \Orders \Command \OrderRemoveDeliveryAction ;
18+ use Commercetools \Core \Request \Orders \Command \OrderRemoveItemShippingAddressAction ;
1719use Commercetools \Core \Request \Orders \Command \OrderRemoveParcelFromDeliveryAction ;
1820use Commercetools \Core \Request \Orders \Command \OrderRemovePaymentAction ;
1921use Commercetools \Core \Request \Orders \Command \OrderSetBillingAddress ;
2022use Commercetools \Core \Request \Orders \Command \OrderSetCustomFieldAction ;
2123use Commercetools \Core \Request \Orders \Command \OrderSetCustomLineItemCustomFieldAction ;
2224use Commercetools \Core \Request \Orders \Command \OrderSetCustomLineItemCustomTypeAction ;
25+ use Commercetools \Core \Request \Orders \Command \OrderSetCustomLineItemShippingDetailsAction ;
2326use Commercetools \Core \Request \Orders \Command \OrderSetCustomTypeAction ;
2427use Commercetools \Core \Request \Orders \Command \OrderSetCustomerEmail ;
2528use Commercetools \Core \Request \Orders \Command \OrderSetDeliveryAddressAction ;
2629use Commercetools \Core \Request \Orders \Command \OrderSetDeliveryItemsAction ;
2730use Commercetools \Core \Request \Orders \Command \OrderSetLineItemCustomFieldAction ;
2831use Commercetools \Core \Request \Orders \Command \OrderSetLineItemCustomTypeAction ;
32+ use Commercetools \Core \Request \Orders \Command \OrderSetLineItemShippingDetailsAction ;
2933use Commercetools \Core \Request \Orders \Command \OrderSetLocaleAction ;
3034use Commercetools \Core \Request \Orders \Command \OrderSetOrderNumberAction ;
3135use Commercetools \Core \Request \Orders \Command \OrderSetParcelItemsAction ;
3741use Commercetools \Core \Request \Orders \Command \OrderTransitionCustomLineItemStateAction ;
3842use Commercetools \Core \Request \Orders \Command \OrderTransitionLineItemStateAction ;
3943use Commercetools \Core \Request \Orders \Command \OrderTransitionStateAction ;
44+ use Commercetools \Core \Request \Orders \Command \OrderUpdateItemShippingAddressAction ;
4045use Commercetools \Core \Request \Orders \Command \OrderUpdateSyncInfoAction ;
4146
4247class OrdersActionBuilder
@@ -54,6 +59,17 @@ public function addDelivery($action = null)
5459 return $ this ;
5560 }
5661
62+ /**
63+ *
64+ * @param OrderAddItemShippingAddressAction|callable $action
65+ * @return $this
66+ */
67+ public function addItemShippingAddress ($ action = null )
68+ {
69+ $ this ->addAction ($ this ->resolveAction (OrderAddItemShippingAddressAction::class, $ action ));
70+ return $ this ;
71+ }
72+
5773 /**
5874 * @link https://docs.commercetools.com/http-api-projects-orders.html#add-parcel
5975 * @param OrderAddParcelToDeliveryAction|callable $action
@@ -153,6 +169,17 @@ public function removeDelivery($action = null)
153169 return $ this ;
154170 }
155171
172+ /**
173+ *
174+ * @param OrderRemoveItemShippingAddressAction|callable $action
175+ * @return $this
176+ */
177+ public function removeItemShippingAddress ($ action = null )
178+ {
179+ $ this ->addAction ($ this ->resolveAction (OrderRemoveItemShippingAddressAction::class, $ action ));
180+ return $ this ;
181+ }
182+
156183 /**
157184 * @link https://docs.commercetools.com/http-api-projects-orders.html#remove-parcel-from-delivery
158185 * @param OrderRemoveParcelFromDeliveryAction|callable $action
@@ -219,6 +246,17 @@ public function setCustomLineItemCustomType($action = null)
219246 return $ this ;
220247 }
221248
249+ /**
250+ *
251+ * @param OrderSetCustomLineItemShippingDetailsAction|callable $action
252+ * @return $this
253+ */
254+ public function setCustomLineItemShippingDetails ($ action = null )
255+ {
256+ $ this ->addAction ($ this ->resolveAction (OrderSetCustomLineItemShippingDetailsAction::class, $ action ));
257+ return $ this ;
258+ }
259+
222260 /**
223261 *
224262 * @param OrderSetCustomTypeAction|callable $action
@@ -285,6 +323,17 @@ public function setLineItemCustomType($action = null)
285323 return $ this ;
286324 }
287325
326+ /**
327+ *
328+ * @param OrderSetLineItemShippingDetailsAction|callable $action
329+ * @return $this
330+ */
331+ public function setLineItemShippingDetails ($ action = null )
332+ {
333+ $ this ->addAction ($ this ->resolveAction (OrderSetLineItemShippingDetailsAction::class, $ action ));
334+ return $ this ;
335+ }
336+
288337 /**
289338 * @link https://docs.commercetools.com/http-api-projects-orders.html#set-locale
290339 * @param OrderSetLocaleAction|callable $action
@@ -406,6 +455,17 @@ public function transitionState($action = null)
406455 return $ this ;
407456 }
408457
458+ /**
459+ *
460+ * @param OrderUpdateItemShippingAddressAction|callable $action
461+ * @return $this
462+ */
463+ public function updateItemShippingAddress ($ action = null )
464+ {
465+ $ this ->addAction ($ this ->resolveAction (OrderUpdateItemShippingAddressAction::class, $ action ));
466+ return $ this ;
467+ }
468+
409469 /**
410470 * @link https://docs.commercetools.com/http-api-projects-orders.html#update-syncinfo
411471 * @param OrderUpdateSyncInfoAction|callable $action
0 commit comments