commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
Loading...
Searching...
No Matches
ParcelItemsUpdatedMessagePayloadBuilder.php
1<?php
2
3declare(strict_types=1);
10
17use stdClass;
18
23{
28 private $parcelId;
29
34 private $deliveryId;
35
40 private $items;
41
46 private $oldItems;
47
52 private $shippingKey;
53
60 public function getParcelId()
61 {
62 return $this->parcelId;
63 }
64
71 public function getDeliveryId()
72 {
73 return $this->deliveryId;
74 }
75
82 public function getItems()
83 {
84 return $this->items;
85 }
86
93 public function getOldItems()
94 {
95 return $this->oldItems;
96 }
97
104 public function getShippingKey()
105 {
106 return $this->shippingKey;
107 }
108
113 public function withParcelId(?string $parcelId)
114 {
115 $this->parcelId = $parcelId;
116
117 return $this;
118 }
119
124 public function withDeliveryId(?string $deliveryId)
125 {
126 $this->deliveryId = $deliveryId;
127
128 return $this;
129 }
130
135 public function withItems(?DeliveryItemCollection $items)
136 {
137 $this->items = $items;
138
139 return $this;
140 }
141
146 public function withOldItems(?DeliveryItemCollection $oldItems)
147 {
148 $this->oldItems = $oldItems;
149
150 return $this;
151 }
152
157 public function withShippingKey(?string $shippingKey)
158 {
159 $this->shippingKey = $shippingKey;
160
161 return $this;
162 }
163
164
166 {
168 $this->parcelId,
169 $this->deliveryId,
170 $this->items,
171 $this->oldItems,
172 $this->shippingKey
173 );
174 }
175
177 {
178 return new self();
179 }
180}