Skip to content

Commit d3ad1ad

Browse files
AdyenAutomationBotAdyenAutomationBot
and
AdyenAutomationBot
authored
Update all services (#675)
* [reformat][adyen-sdk-automation] automated change * style(fmt): code formatted --------- Co-authored-by: AdyenAutomationBot <Adyen Automation [email protected]>
1 parent 01d90f4 commit d3ad1ad

10 files changed

+194
-17
lines changed

src/Adyen/Model/Checkout/DonationPaymentMethod.php

+2-5
Original file line numberDiff line numberDiff line change
@@ -444,9 +444,6 @@ public function listInvalidProperties()
444444
if ($this->container['googlePayToken'] === null) {
445445
$invalidProperties[] = "'googlePayToken' can't be null";
446446
}
447-
if ($this->container['issuer'] === null) {
448-
$invalidProperties[] = "'issuer' can't be null";
449-
}
450447
return $invalidProperties;
451448
}
452449

@@ -1069,7 +1066,7 @@ public function setGooglePayToken($googlePayToken)
10691066
/**
10701067
* Gets issuer
10711068
*
1072-
* @return string
1069+
* @return string|null
10731070
*/
10741071
public function getIssuer()
10751072
{
@@ -1079,7 +1076,7 @@ public function getIssuer()
10791076
/**
10801077
* Sets issuer
10811078
*
1082-
* @param string $issuer The iDEAL issuer value of the shopper's selected bank. Set this to an **id** of an iDEAL issuer to preselect it.
1079+
* @param string|null $issuer The iDEAL issuer value of the shopper's selected bank. Set this to an **id** of an iDEAL issuer to preselect it.
10831080
*
10841081
* @return self
10851082
*/

src/Adyen/Model/Checkout/IdealDetails.php

+2-5
Original file line numberDiff line numberDiff line change
@@ -301,9 +301,6 @@ public function listInvalidProperties()
301301
{
302302
$invalidProperties = [];
303303

304-
if ($this->container['issuer'] === null) {
305-
$invalidProperties[] = "'issuer' can't be null";
306-
}
307304
$allowedValues = $this->getTypeAllowableValues();
308305
if (!is_null($this->container['type']) && !in_array($this->container['type'], $allowedValues, true)) {
309306
$invalidProperties[] = sprintf(
@@ -355,7 +352,7 @@ public function setCheckoutAttemptId($checkoutAttemptId)
355352
/**
356353
* Gets issuer
357354
*
358-
* @return string
355+
* @return string|null
359356
*/
360357
public function getIssuer()
361358
{
@@ -365,7 +362,7 @@ public function getIssuer()
365362
/**
366363
* Sets issuer
367364
*
368-
* @param string $issuer The iDEAL issuer value of the shopper's selected bank. Set this to an **id** of an iDEAL issuer to preselect it.
365+
* @param string|null $issuer The iDEAL issuer value of the shopper's selected bank. Set this to an **id** of an iDEAL issuer to preselect it.
369366
*
370367
* @return self
371368
*/

src/Adyen/Model/Checkout/IdealDonations.php

+2-5
Original file line numberDiff line numberDiff line change
@@ -301,9 +301,6 @@ public function listInvalidProperties()
301301
{
302302
$invalidProperties = [];
303303

304-
if ($this->container['issuer'] === null) {
305-
$invalidProperties[] = "'issuer' can't be null";
306-
}
307304
$allowedValues = $this->getTypeAllowableValues();
308305
if (!is_null($this->container['type']) && !in_array($this->container['type'], $allowedValues, true)) {
309306
$invalidProperties[] = sprintf(
@@ -355,7 +352,7 @@ public function setCheckoutAttemptId($checkoutAttemptId)
355352
/**
356353
* Gets issuer
357354
*
358-
* @return string
355+
* @return string|null
359356
*/
360357
public function getIssuer()
361358
{
@@ -365,7 +362,7 @@ public function getIssuer()
365362
/**
366363
* Sets issuer
367364
*
368-
* @param string $issuer The iDEAL issuer value of the shopper's selected bank. Set this to an **id** of an iDEAL issuer to preselect it.
365+
* @param string|null $issuer The iDEAL issuer value of the shopper's selected bank. Set this to an **id** of an iDEAL issuer to preselect it.
369366
*
370367
* @return self
371368
*/

src/Adyen/Model/Checkout/PaymentDetails.php

-2
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,6 @@ public function getModelName()
223223

224224
public const TYPE_ALIPAY = 'alipay';
225225
public const TYPE_MULTIBANCO = 'multibanco';
226-
public const TYPE_BANK_TRANSFER_IBAN = 'bankTransfer_IBAN';
227226
public const TYPE_PAYBRIGHT = 'paybright';
228227
public const TYPE_PAYNOW = 'paynow';
229228
public const TYPE_AFFIRM = 'affirm';
@@ -322,7 +321,6 @@ public function getTypeAllowableValues()
322321
return [
323322
self::TYPE_ALIPAY,
324323
self::TYPE_MULTIBANCO,
325-
self::TYPE_BANK_TRANSFER_IBAN,
326324
self::TYPE_PAYBRIGHT,
327325
self::TYPE_PAYNOW,
328326
self::TYPE_AFFIRM,

src/Adyen/Model/Checkout/StoredPaymentMethodDetails.php

+2
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,7 @@ public function getModelName()
236236
public const TYPE_BCMC_MOBILE = 'bcmc_mobile';
237237
public const TYPE_BCMC_MOBILE_QR = 'bcmc_mobile_QR';
238238
public const TYPE_BCMC_MOBILE_APP = 'bcmc_mobile_app';
239+
public const TYPE_BANK_TRANSFER_IBAN = 'bankTransfer_IBAN';
239240
public const TYPE_MOMO_WALLET = 'momo_wallet';
240241
public const TYPE_MOMO_WALLET_APP = 'momo_wallet_app';
241242
public const TYPE_TWINT = 'twint';
@@ -263,6 +264,7 @@ public function getTypeAllowableValues()
263264
self::TYPE_BCMC_MOBILE,
264265
self::TYPE_BCMC_MOBILE_QR,
265266
self::TYPE_BCMC_MOBILE_APP,
267+
self::TYPE_BANK_TRANSFER_IBAN,
266268
self::TYPE_MOMO_WALLET,
267269
self::TYPE_MOMO_WALLET_APP,
268270
self::TYPE_TWINT,

src/Adyen/Model/Management/CreateCompanyUserRequest.php

+31
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ class CreateCompanyUserRequest implements ModelInterface, ArrayAccess, \JsonSeri
4747
'accountGroups' => 'string[]',
4848
'associatedMerchantAccounts' => 'string[]',
4949
'email' => 'string',
50+
'loginMethod' => 'string',
5051
'name' => '\Adyen\Model\Management\Name',
5152
'roles' => 'string[]',
5253
'timeZoneCode' => 'string',
@@ -64,6 +65,7 @@ class CreateCompanyUserRequest implements ModelInterface, ArrayAccess, \JsonSeri
6465
'accountGroups' => null,
6566
'associatedMerchantAccounts' => null,
6667
'email' => null,
68+
'loginMethod' => null,
6769
'name' => null,
6870
'roles' => null,
6971
'timeZoneCode' => null,
@@ -79,6 +81,7 @@ class CreateCompanyUserRequest implements ModelInterface, ArrayAccess, \JsonSeri
7981
'accountGroups' => false,
8082
'associatedMerchantAccounts' => false,
8183
'email' => false,
84+
'loginMethod' => false,
8285
'name' => false,
8386
'roles' => false,
8487
'timeZoneCode' => false,
@@ -174,6 +177,7 @@ public function isNullableSetToNull(string $property): bool
174177
'accountGroups' => 'accountGroups',
175178
'associatedMerchantAccounts' => 'associatedMerchantAccounts',
176179
'email' => 'email',
180+
'loginMethod' => 'loginMethod',
177181
'name' => 'name',
178182
'roles' => 'roles',
179183
'timeZoneCode' => 'timeZoneCode',
@@ -189,6 +193,7 @@ public function isNullableSetToNull(string $property): bool
189193
'accountGroups' => 'setAccountGroups',
190194
'associatedMerchantAccounts' => 'setAssociatedMerchantAccounts',
191195
'email' => 'setEmail',
196+
'loginMethod' => 'setLoginMethod',
192197
'name' => 'setName',
193198
'roles' => 'setRoles',
194199
'timeZoneCode' => 'setTimeZoneCode',
@@ -204,6 +209,7 @@ public function isNullableSetToNull(string $property): bool
204209
'accountGroups' => 'getAccountGroups',
205210
'associatedMerchantAccounts' => 'getAssociatedMerchantAccounts',
206211
'email' => 'getEmail',
212+
'loginMethod' => 'getLoginMethod',
207213
'name' => 'getName',
208214
'roles' => 'getRoles',
209215
'timeZoneCode' => 'getTimeZoneCode',
@@ -270,6 +276,7 @@ public function __construct(array $data = null)
270276
$this->setIfExists('accountGroups', $data ?? [], null);
271277
$this->setIfExists('associatedMerchantAccounts', $data ?? [], null);
272278
$this->setIfExists('email', $data ?? [], null);
279+
$this->setIfExists('loginMethod', $data ?? [], null);
273280
$this->setIfExists('name', $data ?? [], null);
274281
$this->setIfExists('roles', $data ?? [], null);
275282
$this->setIfExists('timeZoneCode', $data ?? [], null);
@@ -399,6 +406,30 @@ public function setEmail($email)
399406
return $this;
400407
}
401408

409+
/**
410+
* Gets loginMethod
411+
*
412+
* @return string|null
413+
*/
414+
public function getLoginMethod()
415+
{
416+
return $this->container['loginMethod'];
417+
}
418+
419+
/**
420+
* Sets loginMethod
421+
*
422+
* @param string|null $loginMethod The requested login method for the user. To use SSO, you must already have SSO configured with Adyen before creating the user. Possible values: **Username & account**, **Email**, or **SSO**
423+
*
424+
* @return self
425+
*/
426+
public function setLoginMethod($loginMethod)
427+
{
428+
$this->container['loginMethod'] = $loginMethod;
429+
430+
return $this;
431+
}
432+
402433
/**
403434
* Gets name
404435
*

src/Adyen/Model/Management/CreateMerchantUserRequest.php

+31
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ class CreateMerchantUserRequest implements ModelInterface, ArrayAccess, \JsonSer
4646
protected static $openAPITypes = [
4747
'accountGroups' => 'string[]',
4848
'email' => 'string',
49+
'loginMethod' => 'string',
4950
'name' => '\Adyen\Model\Management\Name',
5051
'roles' => 'string[]',
5152
'timeZoneCode' => 'string',
@@ -62,6 +63,7 @@ class CreateMerchantUserRequest implements ModelInterface, ArrayAccess, \JsonSer
6263
protected static $openAPIFormats = [
6364
'accountGroups' => null,
6465
'email' => null,
66+
'loginMethod' => null,
6567
'name' => null,
6668
'roles' => null,
6769
'timeZoneCode' => null,
@@ -76,6 +78,7 @@ class CreateMerchantUserRequest implements ModelInterface, ArrayAccess, \JsonSer
7678
protected static $openAPINullables = [
7779
'accountGroups' => false,
7880
'email' => false,
81+
'loginMethod' => false,
7982
'name' => false,
8083
'roles' => false,
8184
'timeZoneCode' => false,
@@ -170,6 +173,7 @@ public function isNullableSetToNull(string $property): bool
170173
protected static $attributeMap = [
171174
'accountGroups' => 'accountGroups',
172175
'email' => 'email',
176+
'loginMethod' => 'loginMethod',
173177
'name' => 'name',
174178
'roles' => 'roles',
175179
'timeZoneCode' => 'timeZoneCode',
@@ -184,6 +188,7 @@ public function isNullableSetToNull(string $property): bool
184188
protected static $setters = [
185189
'accountGroups' => 'setAccountGroups',
186190
'email' => 'setEmail',
191+
'loginMethod' => 'setLoginMethod',
187192
'name' => 'setName',
188193
'roles' => 'setRoles',
189194
'timeZoneCode' => 'setTimeZoneCode',
@@ -198,6 +203,7 @@ public function isNullableSetToNull(string $property): bool
198203
protected static $getters = [
199204
'accountGroups' => 'getAccountGroups',
200205
'email' => 'getEmail',
206+
'loginMethod' => 'getLoginMethod',
201207
'name' => 'getName',
202208
'roles' => 'getRoles',
203209
'timeZoneCode' => 'getTimeZoneCode',
@@ -263,6 +269,7 @@ public function __construct(array $data = null)
263269
{
264270
$this->setIfExists('accountGroups', $data ?? [], null);
265271
$this->setIfExists('email', $data ?? [], null);
272+
$this->setIfExists('loginMethod', $data ?? [], null);
266273
$this->setIfExists('name', $data ?? [], null);
267274
$this->setIfExists('roles', $data ?? [], null);
268275
$this->setIfExists('timeZoneCode', $data ?? [], null);
@@ -368,6 +375,30 @@ public function setEmail($email)
368375
return $this;
369376
}
370377

378+
/**
379+
* Gets loginMethod
380+
*
381+
* @return string|null
382+
*/
383+
public function getLoginMethod()
384+
{
385+
return $this->container['loginMethod'];
386+
}
387+
388+
/**
389+
* Sets loginMethod
390+
*
391+
* @param string|null $loginMethod The requested login method for the user. To use SSO, you must already have SSO configured with Adyen before creating the user. Possible values: **Username & account**, **Email**, or **SSO**
392+
*
393+
* @return self
394+
*/
395+
public function setLoginMethod($loginMethod)
396+
{
397+
$this->container['loginMethod'] = $loginMethod;
398+
399+
return $this;
400+
}
401+
371402
/**
372403
* Gets name
373404
*

src/Adyen/Model/Management/UpdateCompanyUserRequest.php

+31
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ class UpdateCompanyUserRequest implements ModelInterface, ArrayAccess, \JsonSeri
4848
'active' => 'bool',
4949
'associatedMerchantAccounts' => 'string[]',
5050
'email' => 'string',
51+
'loginMethod' => 'string',
5152
'name' => '\Adyen\Model\Management\Name2',
5253
'roles' => 'string[]',
5354
'timeZoneCode' => 'string'
@@ -65,6 +66,7 @@ class UpdateCompanyUserRequest implements ModelInterface, ArrayAccess, \JsonSeri
6566
'active' => null,
6667
'associatedMerchantAccounts' => null,
6768
'email' => null,
69+
'loginMethod' => null,
6870
'name' => null,
6971
'roles' => null,
7072
'timeZoneCode' => null
@@ -80,6 +82,7 @@ class UpdateCompanyUserRequest implements ModelInterface, ArrayAccess, \JsonSeri
8082
'active' => false,
8183
'associatedMerchantAccounts' => false,
8284
'email' => false,
85+
'loginMethod' => false,
8386
'name' => false,
8487
'roles' => false,
8588
'timeZoneCode' => false
@@ -175,6 +178,7 @@ public function isNullableSetToNull(string $property): bool
175178
'active' => 'active',
176179
'associatedMerchantAccounts' => 'associatedMerchantAccounts',
177180
'email' => 'email',
181+
'loginMethod' => 'loginMethod',
178182
'name' => 'name',
179183
'roles' => 'roles',
180184
'timeZoneCode' => 'timeZoneCode'
@@ -190,6 +194,7 @@ public function isNullableSetToNull(string $property): bool
190194
'active' => 'setActive',
191195
'associatedMerchantAccounts' => 'setAssociatedMerchantAccounts',
192196
'email' => 'setEmail',
197+
'loginMethod' => 'setLoginMethod',
193198
'name' => 'setName',
194199
'roles' => 'setRoles',
195200
'timeZoneCode' => 'setTimeZoneCode'
@@ -205,6 +210,7 @@ public function isNullableSetToNull(string $property): bool
205210
'active' => 'getActive',
206211
'associatedMerchantAccounts' => 'getAssociatedMerchantAccounts',
207212
'email' => 'getEmail',
213+
'loginMethod' => 'getLoginMethod',
208214
'name' => 'getName',
209215
'roles' => 'getRoles',
210216
'timeZoneCode' => 'getTimeZoneCode'
@@ -271,6 +277,7 @@ public function __construct(array $data = null)
271277
$this->setIfExists('active', $data ?? [], null);
272278
$this->setIfExists('associatedMerchantAccounts', $data ?? [], null);
273279
$this->setIfExists('email', $data ?? [], null);
280+
$this->setIfExists('loginMethod', $data ?? [], null);
274281
$this->setIfExists('name', $data ?? [], null);
275282
$this->setIfExists('roles', $data ?? [], null);
276283
$this->setIfExists('timeZoneCode', $data ?? [], null);
@@ -414,6 +421,30 @@ public function setEmail($email)
414421
return $this;
415422
}
416423

424+
/**
425+
* Gets loginMethod
426+
*
427+
* @return string|null
428+
*/
429+
public function getLoginMethod()
430+
{
431+
return $this->container['loginMethod'];
432+
}
433+
434+
/**
435+
* Sets loginMethod
436+
*
437+
* @param string|null $loginMethod The requested login method for the user. To use SSO, you must already have SSO configured with Adyen before creating the user. Possible values: **Username & account**, **Email**, or **SSO**
438+
*
439+
* @return self
440+
*/
441+
public function setLoginMethod($loginMethod)
442+
{
443+
$this->container['loginMethod'] = $loginMethod;
444+
445+
return $this;
446+
}
447+
417448
/**
418449
* Gets name
419450
*

0 commit comments

Comments
 (0)