commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
Loading...
Searching...
No Matches
PaymentSetMethodInfoActionBuilder.php
1<?php
2
3declare(strict_types=1);
10
22use stdClass;
23
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
219 {
220 $this->name = $name;
221
222 return $this;
223 }
224
230 {
231 $this->token = $token;
232
233 return $this;
234 }
235
241 {
242 $this->custom = $custom;
243
244 return $this;
245 }
246
248 {
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}