|
39 | 39 | use Commercetools\Core\Request\Orders\Command\OrderSetLineItemShippingDetailsAction; |
40 | 40 | use Commercetools\Core\Request\Orders\Command\OrderSetLocaleAction; |
41 | 41 | use Commercetools\Core\Request\Orders\Command\OrderSetOrderNumberAction; |
| 42 | +use Commercetools\Core\Request\Orders\Command\OrderSetParcelCustomFieldAction; |
| 43 | +use Commercetools\Core\Request\Orders\Command\OrderSetParcelCustomTypeAction; |
42 | 44 | use Commercetools\Core\Request\Orders\Command\OrderSetParcelItemsAction; |
43 | 45 | use Commercetools\Core\Request\Orders\Command\OrderSetParcelMeasurementsAction; |
44 | 46 | use Commercetools\Core\Request\Orders\Command\OrderSetParcelTrackingDataAction; |
45 | 47 | use Commercetools\Core\Request\Orders\Command\OrderSetReturnInfoAction; |
| 48 | +use Commercetools\Core\Request\Orders\Command\OrderSetReturnItemCustomFieldAction; |
| 49 | +use Commercetools\Core\Request\Orders\Command\OrderSetReturnItemCustomTypeAction; |
46 | 50 | use Commercetools\Core\Request\Orders\Command\OrderSetReturnPaymentStateAction; |
47 | 51 | use Commercetools\Core\Request\Orders\Command\OrderSetReturnShipmentStateAction; |
48 | 52 | use Commercetools\Core\Request\Orders\Command\OrderSetShippingAddress; |
@@ -444,6 +448,28 @@ public function setOrderNumber($action = null) |
444 | 448 | return $this; |
445 | 449 | } |
446 | 450 |
|
| 451 | + /** |
| 452 | + * |
| 453 | + * @param OrderSetParcelCustomFieldAction|callable $action |
| 454 | + * @return $this |
| 455 | + */ |
| 456 | + public function setParcelCustomField($action = null) |
| 457 | + { |
| 458 | + $this->addAction($this->resolveAction(OrderSetParcelCustomFieldAction::class, $action)); |
| 459 | + return $this; |
| 460 | + } |
| 461 | + |
| 462 | + /** |
| 463 | + * |
| 464 | + * @param OrderSetParcelCustomTypeAction|callable $action |
| 465 | + * @return $this |
| 466 | + */ |
| 467 | + public function setParcelCustomType($action = null) |
| 468 | + { |
| 469 | + $this->addAction($this->resolveAction(OrderSetParcelCustomTypeAction::class, $action)); |
| 470 | + return $this; |
| 471 | + } |
| 472 | + |
447 | 473 | /** |
448 | 474 | * @link https://docs.commercetools.com/http-api-projects-orders.html#set-parcel-items |
449 | 475 | * @param OrderSetParcelItemsAction|callable $action |
@@ -488,6 +514,28 @@ public function setReturnInfo($action = null) |
488 | 514 | return $this; |
489 | 515 | } |
490 | 516 |
|
| 517 | + /** |
| 518 | + * |
| 519 | + * @param OrderSetReturnItemCustomFieldAction|callable $action |
| 520 | + * @return $this |
| 521 | + */ |
| 522 | + public function setReturnItemCustomField($action = null) |
| 523 | + { |
| 524 | + $this->addAction($this->resolveAction(OrderSetReturnItemCustomFieldAction::class, $action)); |
| 525 | + return $this; |
| 526 | + } |
| 527 | + |
| 528 | + /** |
| 529 | + * |
| 530 | + * @param OrderSetReturnItemCustomTypeAction|callable $action |
| 531 | + * @return $this |
| 532 | + */ |
| 533 | + public function setReturnItemCustomType($action = null) |
| 534 | + { |
| 535 | + $this->addAction($this->resolveAction(OrderSetReturnItemCustomTypeAction::class, $action)); |
| 536 | + return $this; |
| 537 | + } |
| 538 | + |
491 | 539 | /** |
492 | 540 | * @link https://docs.commercetools.com/http-api-projects-orders.html#set-returnpaymentstate |
493 | 541 | * @param OrderSetReturnPaymentStateAction|callable $action |
|
0 commit comments