commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-api
src
Models
OrderEdit
OrderEditPreviewSuccessBuilder.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\Api\Models\OrderEdit
;
10
11
use
Commercetools\Api\Models\Message\MessagePayloadCollection
;
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
OrderEditPreviewSuccessBuilder
implements
Builder
23
{
28
private
$preview;
29
34
private
$messagePayloads;
35
42
public
function
getPreview
()
43
{
44
return
$this->preview instanceof
StagedOrderBuilder
? $this->preview->
build
() : $this->preview;
45
}
46
53
public
function
getMessagePayloads
()
54
{
55
return
$this->messagePayloads;
56
}
57
62
public
function
withPreview
(?
StagedOrder
$preview)
63
{
64
$this->preview = $preview;
65
66
return
$this;
67
}
68
73
public
function
withMessagePayloads
(?
MessagePayloadCollection
$messagePayloads)
74
{
75
$this->messagePayloads = $messagePayloads;
76
77
return
$this;
78
}
79
84
public
function
withPreviewBuilder
(?
StagedOrderBuilder
$preview)
85
{
86
$this->preview = $preview;
87
88
return
$this;
89
}
90
91
public
function
build
():
OrderEditPreviewSuccess
92
{
93
return
new
OrderEditPreviewSuccessModel
(
94
$this->preview instanceof
StagedOrderBuilder
? $this->preview->
build
() : $this->preview,
95
$this->messagePayloads
96
);
97
}
98
99
public
static
function
of
():
OrderEditPreviewSuccessBuilder
100
{
101
return
new
self
();
102
}
103
}
Commercetools\Api\Models\Message\MessagePayloadCollection
Definition:
MessagePayloadCollection.php:26
Commercetools\Api\Models\OrderEdit\OrderEditPreviewSuccessBuilder
Definition:
OrderEditPreviewSuccessBuilder.php:23
Commercetools\Api\Models\OrderEdit\OrderEditPreviewSuccessBuilder\getMessagePayloads
getMessagePayloads()
Definition:
OrderEditPreviewSuccessBuilder.php:53
Commercetools\Api\Models\OrderEdit\OrderEditPreviewSuccessBuilder\of
static of()
Definition:
OrderEditPreviewSuccessBuilder.php:99
Commercetools\Api\Models\OrderEdit\OrderEditPreviewSuccessBuilder\withPreview
withPreview(?StagedOrder $preview)
Definition:
OrderEditPreviewSuccessBuilder.php:62
Commercetools\Api\Models\OrderEdit\OrderEditPreviewSuccessBuilder\getPreview
getPreview()
Definition:
OrderEditPreviewSuccessBuilder.php:42
Commercetools\Api\Models\OrderEdit\OrderEditPreviewSuccessBuilder\build
build()
Definition:
OrderEditPreviewSuccessBuilder.php:91
Commercetools\Api\Models\OrderEdit\OrderEditPreviewSuccessBuilder\withMessagePayloads
withMessagePayloads(?MessagePayloadCollection $messagePayloads)
Definition:
OrderEditPreviewSuccessBuilder.php:73
Commercetools\Api\Models\OrderEdit\OrderEditPreviewSuccessBuilder\withPreviewBuilder
withPreviewBuilder(?StagedOrderBuilder $preview)
Definition:
OrderEditPreviewSuccessBuilder.php:84
Commercetools\Api\Models\OrderEdit\OrderEditPreviewSuccessModel
Definition:
OrderEditPreviewSuccessModel.php:22
Commercetools\Api\Models\OrderEdit\StagedOrderBuilder
Definition:
StagedOrderBuilder.php:66
Commercetools\Api\Models\OrderEdit\StagedOrderBuilder\build
build()
Definition:
StagedOrderBuilder.php:1729
Commercetools\Base\DateTimeImmutableCollection
Definition:
DateTimeImmutableCollection.php:21
Commercetools\Base\JsonObjectModel
Definition:
JsonObjectModel.php:15
Commercetools\Base\MapperFactory
Definition:
MapperFactory.php:16
Commercetools\Api\Models\OrderEdit\OrderEditPreviewSuccess
Definition:
OrderEditPreviewSuccess.php:16
Commercetools\Api\Models\OrderEdit\StagedOrder
Definition:
StagedOrder.php:16
Commercetools\Base\Builder
Definition:
Builder.php:16
Commercetools\Base\JsonObject
Definition:
JsonObject.php:15
Commercetools\Api\Models\OrderEdit
Definition:
OrderEdit.php:9
Generated by
1.9.1