commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-api
src
Models
Message
DeliveryItemsUpdatedMessagePayloadBuilder.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
DeliveryItemsUpdatedMessagePayloadBuilder
implements
Builder
23
{
28
private
$deliveryId;
29
34
private
$items;
35
40
private
$oldItems;
41
46
private
$shippingKey;
47
54
public
function
getDeliveryId
()
55
{
56
return
$this->deliveryId;
57
}
58
65
public
function
getItems
()
66
{
67
return
$this->items;
68
}
69
76
public
function
getOldItems
()
77
{
78
return
$this->oldItems;
79
}
80
87
public
function
getShippingKey
()
88
{
89
return
$this->shippingKey;
90
}
91
96
public
function
withDeliveryId
(?
string
$deliveryId)
97
{
98
$this->deliveryId = $deliveryId;
99
100
return
$this;
101
}
102
107
public
function
withItems
(?
DeliveryItemCollection
$items)
108
{
109
$this->items = $items;
110
111
return
$this;
112
}
113
118
public
function
withOldItems
(?
DeliveryItemCollection
$oldItems)
119
{
120
$this->oldItems = $oldItems;
121
122
return
$this;
123
}
124
129
public
function
withShippingKey
(?
string
$shippingKey)
130
{
131
$this->shippingKey = $shippingKey;
132
133
return
$this;
134
}
135
136
137
public
function
build
():
DeliveryItemsUpdatedMessagePayload
138
{
139
return
new
DeliveryItemsUpdatedMessagePayloadModel
(
140
$this->deliveryId,
141
$this->items,
142
$this->oldItems,
143
$this->shippingKey
144
);
145
}
146
147
public
static
function
of
():
DeliveryItemsUpdatedMessagePayloadBuilder
148
{
149
return
new
self
();
150
}
151
}
Commercetools\Api\Models\Message\DeliveryItemsUpdatedMessagePayloadBuilder
Definition:
DeliveryItemsUpdatedMessagePayloadBuilder.php:23
Commercetools\Api\Models\Message\DeliveryItemsUpdatedMessagePayloadBuilder\getItems
getItems()
Definition:
DeliveryItemsUpdatedMessagePayloadBuilder.php:65
Commercetools\Api\Models\Message\DeliveryItemsUpdatedMessagePayloadBuilder\build
build()
Definition:
DeliveryItemsUpdatedMessagePayloadBuilder.php:137
Commercetools\Api\Models\Message\DeliveryItemsUpdatedMessagePayloadBuilder\getShippingKey
getShippingKey()
Definition:
DeliveryItemsUpdatedMessagePayloadBuilder.php:87
Commercetools\Api\Models\Message\DeliveryItemsUpdatedMessagePayloadBuilder\withItems
withItems(?DeliveryItemCollection $items)
Definition:
DeliveryItemsUpdatedMessagePayloadBuilder.php:107
Commercetools\Api\Models\Message\DeliveryItemsUpdatedMessagePayloadBuilder\getOldItems
getOldItems()
Definition:
DeliveryItemsUpdatedMessagePayloadBuilder.php:76
Commercetools\Api\Models\Message\DeliveryItemsUpdatedMessagePayloadBuilder\withShippingKey
withShippingKey(?string $shippingKey)
Definition:
DeliveryItemsUpdatedMessagePayloadBuilder.php:129
Commercetools\Api\Models\Message\DeliveryItemsUpdatedMessagePayloadBuilder\withDeliveryId
withDeliveryId(?string $deliveryId)
Definition:
DeliveryItemsUpdatedMessagePayloadBuilder.php:96
Commercetools\Api\Models\Message\DeliveryItemsUpdatedMessagePayloadBuilder\withOldItems
withOldItems(?DeliveryItemCollection $oldItems)
Definition:
DeliveryItemsUpdatedMessagePayloadBuilder.php:118
Commercetools\Api\Models\Message\DeliveryItemsUpdatedMessagePayloadBuilder\getDeliveryId
getDeliveryId()
Definition:
DeliveryItemsUpdatedMessagePayloadBuilder.php:54
Commercetools\Api\Models\Message\DeliveryItemsUpdatedMessagePayloadBuilder\of
static of()
Definition:
DeliveryItemsUpdatedMessagePayloadBuilder.php:147
Commercetools\Api\Models\Message\DeliveryItemsUpdatedMessagePayloadModel
Definition:
DeliveryItemsUpdatedMessagePayloadModel.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\DeliveryItemsUpdatedMessagePayload
Definition:
DeliveryItemsUpdatedMessagePayload.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