commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
Loading...
Searching...
No Matches
lib
commercetools-api
src
Models
Payment
PaymentSetMethodInfoActionBuilder.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\Api\Models\Payment
;
10
11
use
Commercetools\Api\Models\Common\LocalizedString
;
12
use
Commercetools\Api\Models\Common\LocalizedStringBuilder
;
13
use
Commercetools\Api\Models\PaymentMethod\PaymentMethodToken
;
14
use
Commercetools\Api\Models\PaymentMethod\PaymentMethodTokenBuilder
;
15
use
Commercetools\Api\Models\Type\CustomFieldsDraft
;
16
use
Commercetools\Api\Models\Type\CustomFieldsDraftBuilder
;
17
use
Commercetools\Base\Builder
;
18
use
Commercetools\Base\DateTimeImmutableCollection
;
19
use
Commercetools\Base\JsonObject
;
20
use
Commercetools\Base\JsonObjectModel
;
21
use
Commercetools\Base\MapperFactory
;
22
use stdClass;
23
27
final
class
PaymentSetMethodInfoActionBuilder
implements
Builder
28
{
33
private
$paymentInterface;
34
39
private
$method;
40
45
private
$name;
46
51
private
$token;
52
57
private
$interfaceAccount;
58
63
private
$custom;
64
74
public
function
getPaymentInterface
()
75
{
76
return
$this->paymentInterface;
77
}
78
87
public
function
getMethod
()
88
{
89
return
$this->method;
90
}
91
100
public
function
getName
()
101
{
102
return
$this->name instanceof
LocalizedStringBuilder
? $this->name->
build
() : $this->name;
103
}
104
113
public
function
getToken
()
114
{
115
return
$this->token instanceof
PaymentMethodTokenBuilder
? $this->token->
build
() : $this->token;
116
}
117
126
public
function
getInterfaceAccount
()
127
{
128
return
$this->interfaceAccount;
129
}
130
143
public
function
getCustom
()
144
{
145
return
$this->custom instanceof
CustomFieldsDraftBuilder
? $this->custom->
build
() : $this->custom;
146
}
147
152
public
function
withPaymentInterface
(?
string
$paymentInterface)
153
{
154
$this->paymentInterface = $paymentInterface;
155
156
return
$this;
157
}
158
163
public
function
withMethod
(?
string
$method)
164
{
165
$this->method = $method;
166
167
return
$this;
168
}
169
174
public
function
withName
(?
LocalizedString
$name)
175
{
176
$this->name = $name;
177
178
return
$this;
179
}
180
185
public
function
withToken
(?
PaymentMethodToken
$token)
186
{
187
$this->token = $token;
188
189
return
$this;
190
}
191
196
public
function
withInterfaceAccount
(?
string
$interfaceAccount)
197
{
198
$this->interfaceAccount = $interfaceAccount;
199
200
return
$this;
201
}
202
207
public
function
withCustom
(?
CustomFieldsDraft
$custom)
208
{
209
$this->custom = $custom;
210
211
return
$this;
212
}
213
218
public
function
withNameBuilder
(?
LocalizedStringBuilder
$name)
219
{
220
$this->name = $name;
221
222
return
$this;
223
}
224
229
public
function
withTokenBuilder
(?
PaymentMethodTokenBuilder
$token)
230
{
231
$this->token = $token;
232
233
return
$this;
234
}
235
240
public
function
withCustomBuilder
(?
CustomFieldsDraftBuilder
$custom)
241
{
242
$this->custom = $custom;
243
244
return
$this;
245
}
246
247
public
function
build
():
PaymentSetMethodInfoAction
248
{
249
return
new
PaymentSetMethodInfoActionModel
(
250
$this->paymentInterface,
251
$this->method,
252
$this->name instanceof
LocalizedStringBuilder
? $this->name->
build
() : $this->name,
253
$this->token instanceof
PaymentMethodTokenBuilder
? $this->token->
build
() : $this->token,
254
$this->interfaceAccount,
255
$this->custom instanceof
CustomFieldsDraftBuilder
? $this->custom->
build
() : $this->custom
256
);
257
}
258
259
public
static
function
of
():
PaymentSetMethodInfoActionBuilder
260
{
261
return
new
self
();
262
}
263
}
Commercetools\Api\Models\Common\LocalizedStringBuilder
Definition
LocalizedStringBuilder.php:20
Commercetools\Api\Models\Common\LocalizedStringBuilder\build
build()
Definition
LocalizedStringBuilder.php:42
Commercetools\Api\Models\Payment\PaymentSetMethodInfoActionBuilder
Definition
PaymentSetMethodInfoActionBuilder.php:28
Commercetools\Api\Models\Payment\PaymentSetMethodInfoActionBuilder\of
static of()
Definition
PaymentSetMethodInfoActionBuilder.php:259
Commercetools\Api\Models\Payment\PaymentSetMethodInfoActionBuilder\getInterfaceAccount
getInterfaceAccount()
Definition
PaymentSetMethodInfoActionBuilder.php:126
Commercetools\Api\Models\Payment\PaymentSetMethodInfoActionBuilder\withCustomBuilder
withCustomBuilder(?CustomFieldsDraftBuilder $custom)
Definition
PaymentSetMethodInfoActionBuilder.php:240
Commercetools\Api\Models\Payment\PaymentSetMethodInfoActionBuilder\build
build()
Definition
PaymentSetMethodInfoActionBuilder.php:247
Commercetools\Api\Models\Payment\PaymentSetMethodInfoActionBuilder\withPaymentInterface
withPaymentInterface(?string $paymentInterface)
Definition
PaymentSetMethodInfoActionBuilder.php:152
Commercetools\Api\Models\Payment\PaymentSetMethodInfoActionBuilder\withMethod
withMethod(?string $method)
Definition
PaymentSetMethodInfoActionBuilder.php:163
Commercetools\Api\Models\Payment\PaymentSetMethodInfoActionBuilder\getName
getName()
Definition
PaymentSetMethodInfoActionBuilder.php:100
Commercetools\Api\Models\Payment\PaymentSetMethodInfoActionBuilder\withName
withName(?LocalizedString $name)
Definition
PaymentSetMethodInfoActionBuilder.php:174
Commercetools\Api\Models\Payment\PaymentSetMethodInfoActionBuilder\withTokenBuilder
withTokenBuilder(?PaymentMethodTokenBuilder $token)
Definition
PaymentSetMethodInfoActionBuilder.php:229
Commercetools\Api\Models\Payment\PaymentSetMethodInfoActionBuilder\getPaymentInterface
getPaymentInterface()
Definition
PaymentSetMethodInfoActionBuilder.php:74
Commercetools\Api\Models\Payment\PaymentSetMethodInfoActionBuilder\withInterfaceAccount
withInterfaceAccount(?string $interfaceAccount)
Definition
PaymentSetMethodInfoActionBuilder.php:196
Commercetools\Api\Models\Payment\PaymentSetMethodInfoActionBuilder\getCustom
getCustom()
Definition
PaymentSetMethodInfoActionBuilder.php:143
Commercetools\Api\Models\Payment\PaymentSetMethodInfoActionBuilder\getToken
getToken()
Definition
PaymentSetMethodInfoActionBuilder.php:113
Commercetools\Api\Models\Payment\PaymentSetMethodInfoActionBuilder\withCustom
withCustom(?CustomFieldsDraft $custom)
Definition
PaymentSetMethodInfoActionBuilder.php:207
Commercetools\Api\Models\Payment\PaymentSetMethodInfoActionBuilder\getMethod
getMethod()
Definition
PaymentSetMethodInfoActionBuilder.php:87
Commercetools\Api\Models\Payment\PaymentSetMethodInfoActionBuilder\withNameBuilder
withNameBuilder(?LocalizedStringBuilder $name)
Definition
PaymentSetMethodInfoActionBuilder.php:218
Commercetools\Api\Models\Payment\PaymentSetMethodInfoActionBuilder\withToken
withToken(?PaymentMethodToken $token)
Definition
PaymentSetMethodInfoActionBuilder.php:185
Commercetools\Api\Models\Payment\PaymentSetMethodInfoActionModel
Definition
PaymentSetMethodInfoActionModel.php:27
Commercetools\Api\Models\PaymentMethod\PaymentMethodTokenBuilder
Definition
PaymentMethodTokenBuilder.php:22
Commercetools\Api\Models\PaymentMethod\PaymentMethodTokenBuilder\build
build()
Definition
PaymentMethodTokenBuilder.php:63
Commercetools\Api\Models\Type\CustomFieldsDraftBuilder
Definition
CustomFieldsDraftBuilder.php:22
Commercetools\Api\Models\Type\CustomFieldsDraftBuilder\build
build()
Definition
CustomFieldsDraftBuilder.php:101
Commercetools\Base\DateTimeImmutableCollection
Definition
DateTimeImmutableCollection.php:21
Commercetools\Base\JsonObjectModel
Definition
JsonObjectModel.php:15
Commercetools\Base\MapperFactory
Definition
MapperFactory.php:16
Commercetools\Api\Models\Common\LocalizedString
Definition
LocalizedString.php:14
Commercetools\Api\Models\Payment\PaymentSetMethodInfoAction
Definition
PaymentSetMethodInfoAction.php:18
Commercetools\Api\Models\PaymentMethod\PaymentMethodToken
Definition
PaymentMethodToken.php:15
Commercetools\Api\Models\Type\CustomFieldsDraft
Definition
CustomFieldsDraft.php:15
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.8