commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-api
src
Models
Order
OrderRemoveDeliveryActionBuilder.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\Api\Models\Order
;
10
11
use
Commercetools\Base\Builder
;
12
use
Commercetools\Base\DateTimeImmutableCollection
;
13
use
Commercetools\Base\JsonObject
;
14
use
Commercetools\Base\JsonObjectModel
;
15
use
Commercetools\Base\MapperFactory
;
16
use stdClass;
17
21
final
class
OrderRemoveDeliveryActionBuilder
implements
Builder
22
{
27
private
$deliveryId;
28
33
private
$deliveryKey;
34
42
public
function
getDeliveryId
()
43
{
44
return
$this->deliveryId;
45
}
46
54
public
function
getDeliveryKey
()
55
{
56
return
$this->deliveryKey;
57
}
58
63
public
function
withDeliveryId
(?
string
$deliveryId)
64
{
65
$this->deliveryId = $deliveryId;
66
67
return
$this;
68
}
69
74
public
function
withDeliveryKey
(?
string
$deliveryKey)
75
{
76
$this->deliveryKey = $deliveryKey;
77
78
return
$this;
79
}
80
81
82
public
function
build
():
OrderRemoveDeliveryAction
83
{
84
return
new
OrderRemoveDeliveryActionModel
(
85
$this->deliveryId,
86
$this->deliveryKey
87
);
88
}
89
90
public
static
function
of
():
OrderRemoveDeliveryActionBuilder
91
{
92
return
new
self
();
93
}
94
}
Commercetools\Api\Models\Order\OrderRemoveDeliveryActionBuilder
Definition:
OrderRemoveDeliveryActionBuilder.php:22
Commercetools\Api\Models\Order\OrderRemoveDeliveryActionBuilder\build
build()
Definition:
OrderRemoveDeliveryActionBuilder.php:82
Commercetools\Api\Models\Order\OrderRemoveDeliveryActionBuilder\getDeliveryId
getDeliveryId()
Definition:
OrderRemoveDeliveryActionBuilder.php:42
Commercetools\Api\Models\Order\OrderRemoveDeliveryActionBuilder\getDeliveryKey
getDeliveryKey()
Definition:
OrderRemoveDeliveryActionBuilder.php:54
Commercetools\Api\Models\Order\OrderRemoveDeliveryActionBuilder\withDeliveryKey
withDeliveryKey(?string $deliveryKey)
Definition:
OrderRemoveDeliveryActionBuilder.php:74
Commercetools\Api\Models\Order\OrderRemoveDeliveryActionBuilder\withDeliveryId
withDeliveryId(?string $deliveryId)
Definition:
OrderRemoveDeliveryActionBuilder.php:63
Commercetools\Api\Models\Order\OrderRemoveDeliveryActionBuilder\of
static of()
Definition:
OrderRemoveDeliveryActionBuilder.php:90
Commercetools\Api\Models\Order\OrderRemoveDeliveryActionModel
Definition:
OrderRemoveDeliveryActionModel.php:21
Commercetools\Base\DateTimeImmutableCollection
Definition:
DateTimeImmutableCollection.php:21
Commercetools\Base\JsonObjectModel
Definition:
JsonObjectModel.php:15
Commercetools\Base\MapperFactory
Definition:
MapperFactory.php:16
Commercetools\Api\Models\Order\OrderRemoveDeliveryAction
Definition:
OrderRemoveDeliveryAction.php:15
Commercetools\Base\Builder
Definition:
Builder.php:16
Commercetools\Base\JsonObject
Definition:
JsonObject.php:15
Commercetools\Api\Models\Order
Definition:
CustomLineItemImportDraft.php:9
Generated by
1.9.1