commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-api
src
Models
Message
ParcelItemsUpdatedMessagePayloadBuilder.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\Api\Models\Message
;
10
11
use
Commercetools\Api\Models\Order\DeliveryItemCollection
;
12
use
Commercetools\Base\Builder
;
13
use
Commercetools\Base\DateTimeImmutableCollection
;
14
use
Commercetools\Base\JsonObject
;
15
use
Commercetools\Base\JsonObjectModel
;
16
use
Commercetools\Base\MapperFactory
;
17
use stdClass;
18
22
final
class
ParcelItemsUpdatedMessagePayloadBuilder
implements
Builder
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
165
public
function
build
():
ParcelItemsUpdatedMessagePayload
166
{
167
return
new
ParcelItemsUpdatedMessagePayloadModel
(
168
$this->parcelId,
169
$this->deliveryId,
170
$this->items,
171
$this->oldItems,
172
$this->shippingKey
173
);
174
}
175
176
public
static
function
of
():
ParcelItemsUpdatedMessagePayloadBuilder
177
{
178
return
new
self
();
179
}
180
}
Commercetools\Api\Models\Message\ParcelItemsUpdatedMessagePayloadBuilder
Definition:
ParcelItemsUpdatedMessagePayloadBuilder.php:23
Commercetools\Api\Models\Message\ParcelItemsUpdatedMessagePayloadBuilder\build
build()
Definition:
ParcelItemsUpdatedMessagePayloadBuilder.php:165
Commercetools\Api\Models\Message\ParcelItemsUpdatedMessagePayloadBuilder\withDeliveryId
withDeliveryId(?string $deliveryId)
Definition:
ParcelItemsUpdatedMessagePayloadBuilder.php:124
Commercetools\Api\Models\Message\ParcelItemsUpdatedMessagePayloadBuilder\getParcelId
getParcelId()
Definition:
ParcelItemsUpdatedMessagePayloadBuilder.php:60
Commercetools\Api\Models\Message\ParcelItemsUpdatedMessagePayloadBuilder\getDeliveryId
getDeliveryId()
Definition:
ParcelItemsUpdatedMessagePayloadBuilder.php:71
Commercetools\Api\Models\Message\ParcelItemsUpdatedMessagePayloadBuilder\getItems
getItems()
Definition:
ParcelItemsUpdatedMessagePayloadBuilder.php:82
Commercetools\Api\Models\Message\ParcelItemsUpdatedMessagePayloadBuilder\withShippingKey
withShippingKey(?string $shippingKey)
Definition:
ParcelItemsUpdatedMessagePayloadBuilder.php:157
Commercetools\Api\Models\Message\ParcelItemsUpdatedMessagePayloadBuilder\of
static of()
Definition:
ParcelItemsUpdatedMessagePayloadBuilder.php:176
Commercetools\Api\Models\Message\ParcelItemsUpdatedMessagePayloadBuilder\getShippingKey
getShippingKey()
Definition:
ParcelItemsUpdatedMessagePayloadBuilder.php:104
Commercetools\Api\Models\Message\ParcelItemsUpdatedMessagePayloadBuilder\withItems
withItems(?DeliveryItemCollection $items)
Definition:
ParcelItemsUpdatedMessagePayloadBuilder.php:135
Commercetools\Api\Models\Message\ParcelItemsUpdatedMessagePayloadBuilder\withParcelId
withParcelId(?string $parcelId)
Definition:
ParcelItemsUpdatedMessagePayloadBuilder.php:113
Commercetools\Api\Models\Message\ParcelItemsUpdatedMessagePayloadBuilder\withOldItems
withOldItems(?DeliveryItemCollection $oldItems)
Definition:
ParcelItemsUpdatedMessagePayloadBuilder.php:146
Commercetools\Api\Models\Message\ParcelItemsUpdatedMessagePayloadBuilder\getOldItems
getOldItems()
Definition:
ParcelItemsUpdatedMessagePayloadBuilder.php:93
Commercetools\Api\Models\Message\ParcelItemsUpdatedMessagePayloadModel
Definition:
ParcelItemsUpdatedMessagePayloadModel.php:22
Commercetools\Api\Models\Order\DeliveryItemCollection
Definition:
DeliveryItemCollection.php:22
Commercetools\Base\DateTimeImmutableCollection
Definition:
DateTimeImmutableCollection.php:21
Commercetools\Base\JsonObjectModel
Definition:
JsonObjectModel.php:15
Commercetools\Base\MapperFactory
Definition:
MapperFactory.php:16
Commercetools\Api\Models\Message\ParcelItemsUpdatedMessagePayload
Definition:
ParcelItemsUpdatedMessagePayload.php:16
Commercetools\Base\Builder
Definition:
Builder.php:16
Commercetools\Base\JsonObject
Definition:
JsonObject.php:15
Commercetools\Api\Models\Message
Definition:
ApprovalFlowApprovedMessage.php:9
Generated by
1.9.1