commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-api
src
Models
Payment
PaymentAddInterfaceInteractionActionBuilder.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\Api\Models\Payment
;
10
11
use
Commercetools\Api\Models\Type\FieldContainer
;
12
use
Commercetools\Api\Models\Type\FieldContainerBuilder
;
13
use
Commercetools\Api\Models\Type\TypeResourceIdentifier
;
14
use
Commercetools\Api\Models\Type\TypeResourceIdentifierBuilder
;
15
use
Commercetools\Base\Builder
;
16
use
Commercetools\Base\DateTimeImmutableCollection
;
17
use
Commercetools\Base\JsonObject
;
18
use
Commercetools\Base\JsonObjectModel
;
19
use
Commercetools\Base\MapperFactory
;
20
use stdClass;
21
25
final
class
PaymentAddInterfaceInteractionActionBuilder
implements
Builder
26
{
31
private
$type;
32
37
private
$fields;
38
45
public
function
getType
()
46
{
47
return
$this->type instanceof
TypeResourceIdentifierBuilder
? $this->type->
build
() : $this->type;
48
}
49
56
public
function
getFields
()
57
{
58
return
$this->fields instanceof
FieldContainerBuilder
? $this->fields->
build
() : $this->fields;
59
}
60
65
public
function
withType
(?
TypeResourceIdentifier
$type)
66
{
67
$this->type = $type;
68
69
return
$this;
70
}
71
76
public
function
withFields
(?
FieldContainer
$fields)
77
{
78
$this->fields = $fields;
79
80
return
$this;
81
}
82
87
public
function
withTypeBuilder
(?
TypeResourceIdentifierBuilder
$type)
88
{
89
$this->type = $type;
90
91
return
$this;
92
}
93
98
public
function
withFieldsBuilder
(?
FieldContainerBuilder
$fields)
99
{
100
$this->fields = $fields;
101
102
return
$this;
103
}
104
105
public
function
build
():
PaymentAddInterfaceInteractionAction
106
{
107
return
new
PaymentAddInterfaceInteractionActionModel
(
108
$this->type instanceof
TypeResourceIdentifierBuilder
? $this->type->
build
() : $this->type,
109
$this->fields instanceof
FieldContainerBuilder
? $this->fields->
build
() : $this->fields
110
);
111
}
112
113
public
static
function
of
():
PaymentAddInterfaceInteractionActionBuilder
114
{
115
return
new
self
();
116
}
117
}
Commercetools\Api\Models\Payment\PaymentAddInterfaceInteractionActionBuilder
Definition:
PaymentAddInterfaceInteractionActionBuilder.php:26
Commercetools\Api\Models\Payment\PaymentAddInterfaceInteractionActionBuilder\getType
getType()
Definition:
PaymentAddInterfaceInteractionActionBuilder.php:45
Commercetools\Api\Models\Payment\PaymentAddInterfaceInteractionActionBuilder\withType
withType(?TypeResourceIdentifier $type)
Definition:
PaymentAddInterfaceInteractionActionBuilder.php:65
Commercetools\Api\Models\Payment\PaymentAddInterfaceInteractionActionBuilder\getFields
getFields()
Definition:
PaymentAddInterfaceInteractionActionBuilder.php:56
Commercetools\Api\Models\Payment\PaymentAddInterfaceInteractionActionBuilder\withFields
withFields(?FieldContainer $fields)
Definition:
PaymentAddInterfaceInteractionActionBuilder.php:76
Commercetools\Api\Models\Payment\PaymentAddInterfaceInteractionActionBuilder\of
static of()
Definition:
PaymentAddInterfaceInteractionActionBuilder.php:113
Commercetools\Api\Models\Payment\PaymentAddInterfaceInteractionActionBuilder\build
build()
Definition:
PaymentAddInterfaceInteractionActionBuilder.php:105
Commercetools\Api\Models\Payment\PaymentAddInterfaceInteractionActionBuilder\withTypeBuilder
withTypeBuilder(?TypeResourceIdentifierBuilder $type)
Definition:
PaymentAddInterfaceInteractionActionBuilder.php:87
Commercetools\Api\Models\Payment\PaymentAddInterfaceInteractionActionBuilder\withFieldsBuilder
withFieldsBuilder(?FieldContainerBuilder $fields)
Definition:
PaymentAddInterfaceInteractionActionBuilder.php:98
Commercetools\Api\Models\Payment\PaymentAddInterfaceInteractionActionModel
Definition:
PaymentAddInterfaceInteractionActionModel.php:25
Commercetools\Api\Models\Type\FieldContainerBuilder
Definition:
FieldContainerBuilder.php:20
Commercetools\Api\Models\Type\FieldContainerBuilder\build
build()
Definition:
FieldContainerBuilder.php:42
Commercetools\Api\Models\Type\TypeResourceIdentifierBuilder
Definition:
TypeResourceIdentifierBuilder.php:24
Commercetools\Api\Models\Type\TypeResourceIdentifierBuilder\build
build()
Definition:
TypeResourceIdentifierBuilder.php:82
Commercetools\Base\DateTimeImmutableCollection
Definition:
DateTimeImmutableCollection.php:21
Commercetools\Base\JsonObjectModel
Definition:
JsonObjectModel.php:15
Commercetools\Base\MapperFactory
Definition:
MapperFactory.php:16
Commercetools\Api\Models\Payment\PaymentAddInterfaceInteractionAction
Definition:
PaymentAddInterfaceInteractionAction.php:17
Commercetools\Api\Models\Type\FieldContainer
Definition:
FieldContainer.php:14
Commercetools\Api\Models\Type\TypeResourceIdentifier
Definition:
TypeResourceIdentifier.php:16
Commercetools\Base\Builder
Definition:
Builder.php:16
Commercetools\Base\JsonObject
Definition:
JsonObject.php:15
Commercetools\Api\Models\Payment
Definition:
Payment.php:9
Generated by
1.9.1