Skip to content

Commit

Permalink
Update all services (#675)
Browse files Browse the repository at this point in the history
* [reformat][adyen-sdk-automation] automated change

* style(fmt): code formatted

---------

Co-authored-by: AdyenAutomationBot <Adyen Automation [email protected]>
  • Loading branch information
AdyenAutomationBot and AdyenAutomationBot authored Jul 11, 2024
1 parent 01d90f4 commit d3ad1ad
Show file tree
Hide file tree
Showing 10 changed files with 194 additions and 17 deletions.
7 changes: 2 additions & 5 deletions src/Adyen/Model/Checkout/DonationPaymentMethod.php
Original file line number Diff line number Diff line change
Expand Up @@ -444,9 +444,6 @@ public function listInvalidProperties()
if ($this->container['googlePayToken'] === null) {
$invalidProperties[] = "'googlePayToken' can't be null";
}
if ($this->container['issuer'] === null) {
$invalidProperties[] = "'issuer' can't be null";
}
return $invalidProperties;
}

Expand Down Expand Up @@ -1069,7 +1066,7 @@ public function setGooglePayToken($googlePayToken)
/**
* Gets issuer
*
* @return string
* @return string|null
*/
public function getIssuer()
{
Expand All @@ -1079,7 +1076,7 @@ public function getIssuer()
/**
* Sets issuer
*
* @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.
* @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.
*
* @return self
*/
Expand Down
7 changes: 2 additions & 5 deletions src/Adyen/Model/Checkout/IdealDetails.php
Original file line number Diff line number Diff line change
Expand Up @@ -301,9 +301,6 @@ public function listInvalidProperties()
{
$invalidProperties = [];

if ($this->container['issuer'] === null) {
$invalidProperties[] = "'issuer' can't be null";
}
$allowedValues = $this->getTypeAllowableValues();
if (!is_null($this->container['type']) && !in_array($this->container['type'], $allowedValues, true)) {
$invalidProperties[] = sprintf(
Expand Down Expand Up @@ -355,7 +352,7 @@ public function setCheckoutAttemptId($checkoutAttemptId)
/**
* Gets issuer
*
* @return string
* @return string|null
*/
public function getIssuer()
{
Expand All @@ -365,7 +362,7 @@ public function getIssuer()
/**
* Sets issuer
*
* @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.
* @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.
*
* @return self
*/
Expand Down
7 changes: 2 additions & 5 deletions src/Adyen/Model/Checkout/IdealDonations.php
Original file line number Diff line number Diff line change
Expand Up @@ -301,9 +301,6 @@ public function listInvalidProperties()
{
$invalidProperties = [];

if ($this->container['issuer'] === null) {
$invalidProperties[] = "'issuer' can't be null";
}
$allowedValues = $this->getTypeAllowableValues();
if (!is_null($this->container['type']) && !in_array($this->container['type'], $allowedValues, true)) {
$invalidProperties[] = sprintf(
Expand Down Expand Up @@ -355,7 +352,7 @@ public function setCheckoutAttemptId($checkoutAttemptId)
/**
* Gets issuer
*
* @return string
* @return string|null
*/
public function getIssuer()
{
Expand All @@ -365,7 +362,7 @@ public function getIssuer()
/**
* Sets issuer
*
* @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.
* @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.
*
* @return self
*/
Expand Down
2 changes: 0 additions & 2 deletions src/Adyen/Model/Checkout/PaymentDetails.php
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,6 @@ public function getModelName()

public const TYPE_ALIPAY = 'alipay';
public const TYPE_MULTIBANCO = 'multibanco';
public const TYPE_BANK_TRANSFER_IBAN = 'bankTransfer_IBAN';
public const TYPE_PAYBRIGHT = 'paybright';
public const TYPE_PAYNOW = 'paynow';
public const TYPE_AFFIRM = 'affirm';
Expand Down Expand Up @@ -322,7 +321,6 @@ public function getTypeAllowableValues()
return [
self::TYPE_ALIPAY,
self::TYPE_MULTIBANCO,
self::TYPE_BANK_TRANSFER_IBAN,
self::TYPE_PAYBRIGHT,
self::TYPE_PAYNOW,
self::TYPE_AFFIRM,
Expand Down
2 changes: 2 additions & 0 deletions src/Adyen/Model/Checkout/StoredPaymentMethodDetails.php
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,7 @@ public function getModelName()
public const TYPE_BCMC_MOBILE = 'bcmc_mobile';
public const TYPE_BCMC_MOBILE_QR = 'bcmc_mobile_QR';
public const TYPE_BCMC_MOBILE_APP = 'bcmc_mobile_app';
public const TYPE_BANK_TRANSFER_IBAN = 'bankTransfer_IBAN';
public const TYPE_MOMO_WALLET = 'momo_wallet';
public const TYPE_MOMO_WALLET_APP = 'momo_wallet_app';
public const TYPE_TWINT = 'twint';
Expand Down Expand Up @@ -263,6 +264,7 @@ public function getTypeAllowableValues()
self::TYPE_BCMC_MOBILE,
self::TYPE_BCMC_MOBILE_QR,
self::TYPE_BCMC_MOBILE_APP,
self::TYPE_BANK_TRANSFER_IBAN,
self::TYPE_MOMO_WALLET,
self::TYPE_MOMO_WALLET_APP,
self::TYPE_TWINT,
Expand Down
31 changes: 31 additions & 0 deletions src/Adyen/Model/Management/CreateCompanyUserRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ class CreateCompanyUserRequest implements ModelInterface, ArrayAccess, \JsonSeri
'accountGroups' => 'string[]',
'associatedMerchantAccounts' => 'string[]',
'email' => 'string',
'loginMethod' => 'string',
'name' => '\Adyen\Model\Management\Name',
'roles' => 'string[]',
'timeZoneCode' => 'string',
Expand All @@ -64,6 +65,7 @@ class CreateCompanyUserRequest implements ModelInterface, ArrayAccess, \JsonSeri
'accountGroups' => null,
'associatedMerchantAccounts' => null,
'email' => null,
'loginMethod' => null,
'name' => null,
'roles' => null,
'timeZoneCode' => null,
Expand All @@ -79,6 +81,7 @@ class CreateCompanyUserRequest implements ModelInterface, ArrayAccess, \JsonSeri
'accountGroups' => false,
'associatedMerchantAccounts' => false,
'email' => false,
'loginMethod' => false,
'name' => false,
'roles' => false,
'timeZoneCode' => false,
Expand Down Expand Up @@ -174,6 +177,7 @@ public function isNullableSetToNull(string $property): bool
'accountGroups' => 'accountGroups',
'associatedMerchantAccounts' => 'associatedMerchantAccounts',
'email' => 'email',
'loginMethod' => 'loginMethod',
'name' => 'name',
'roles' => 'roles',
'timeZoneCode' => 'timeZoneCode',
Expand All @@ -189,6 +193,7 @@ public function isNullableSetToNull(string $property): bool
'accountGroups' => 'setAccountGroups',
'associatedMerchantAccounts' => 'setAssociatedMerchantAccounts',
'email' => 'setEmail',
'loginMethod' => 'setLoginMethod',
'name' => 'setName',
'roles' => 'setRoles',
'timeZoneCode' => 'setTimeZoneCode',
Expand All @@ -204,6 +209,7 @@ public function isNullableSetToNull(string $property): bool
'accountGroups' => 'getAccountGroups',
'associatedMerchantAccounts' => 'getAssociatedMerchantAccounts',
'email' => 'getEmail',
'loginMethod' => 'getLoginMethod',
'name' => 'getName',
'roles' => 'getRoles',
'timeZoneCode' => 'getTimeZoneCode',
Expand Down Expand Up @@ -270,6 +276,7 @@ public function __construct(array $data = null)
$this->setIfExists('accountGroups', $data ?? [], null);
$this->setIfExists('associatedMerchantAccounts', $data ?? [], null);
$this->setIfExists('email', $data ?? [], null);
$this->setIfExists('loginMethod', $data ?? [], null);
$this->setIfExists('name', $data ?? [], null);
$this->setIfExists('roles', $data ?? [], null);
$this->setIfExists('timeZoneCode', $data ?? [], null);
Expand Down Expand Up @@ -399,6 +406,30 @@ public function setEmail($email)
return $this;
}

/**
* Gets loginMethod
*
* @return string|null
*/
public function getLoginMethod()
{
return $this->container['loginMethod'];
}

/**
* Sets loginMethod
*
* @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**
*
* @return self
*/
public function setLoginMethod($loginMethod)
{
$this->container['loginMethod'] = $loginMethod;

return $this;
}

/**
* Gets name
*
Expand Down
31 changes: 31 additions & 0 deletions src/Adyen/Model/Management/CreateMerchantUserRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ class CreateMerchantUserRequest implements ModelInterface, ArrayAccess, \JsonSer
protected static $openAPITypes = [
'accountGroups' => 'string[]',
'email' => 'string',
'loginMethod' => 'string',
'name' => '\Adyen\Model\Management\Name',
'roles' => 'string[]',
'timeZoneCode' => 'string',
Expand All @@ -62,6 +63,7 @@ class CreateMerchantUserRequest implements ModelInterface, ArrayAccess, \JsonSer
protected static $openAPIFormats = [
'accountGroups' => null,
'email' => null,
'loginMethod' => null,
'name' => null,
'roles' => null,
'timeZoneCode' => null,
Expand All @@ -76,6 +78,7 @@ class CreateMerchantUserRequest implements ModelInterface, ArrayAccess, \JsonSer
protected static $openAPINullables = [
'accountGroups' => false,
'email' => false,
'loginMethod' => false,
'name' => false,
'roles' => false,
'timeZoneCode' => false,
Expand Down Expand Up @@ -170,6 +173,7 @@ public function isNullableSetToNull(string $property): bool
protected static $attributeMap = [
'accountGroups' => 'accountGroups',
'email' => 'email',
'loginMethod' => 'loginMethod',
'name' => 'name',
'roles' => 'roles',
'timeZoneCode' => 'timeZoneCode',
Expand All @@ -184,6 +188,7 @@ public function isNullableSetToNull(string $property): bool
protected static $setters = [
'accountGroups' => 'setAccountGroups',
'email' => 'setEmail',
'loginMethod' => 'setLoginMethod',
'name' => 'setName',
'roles' => 'setRoles',
'timeZoneCode' => 'setTimeZoneCode',
Expand All @@ -198,6 +203,7 @@ public function isNullableSetToNull(string $property): bool
protected static $getters = [
'accountGroups' => 'getAccountGroups',
'email' => 'getEmail',
'loginMethod' => 'getLoginMethod',
'name' => 'getName',
'roles' => 'getRoles',
'timeZoneCode' => 'getTimeZoneCode',
Expand Down Expand Up @@ -263,6 +269,7 @@ public function __construct(array $data = null)
{
$this->setIfExists('accountGroups', $data ?? [], null);
$this->setIfExists('email', $data ?? [], null);
$this->setIfExists('loginMethod', $data ?? [], null);
$this->setIfExists('name', $data ?? [], null);
$this->setIfExists('roles', $data ?? [], null);
$this->setIfExists('timeZoneCode', $data ?? [], null);
Expand Down Expand Up @@ -368,6 +375,30 @@ public function setEmail($email)
return $this;
}

/**
* Gets loginMethod
*
* @return string|null
*/
public function getLoginMethod()
{
return $this->container['loginMethod'];
}

/**
* Sets loginMethod
*
* @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**
*
* @return self
*/
public function setLoginMethod($loginMethod)
{
$this->container['loginMethod'] = $loginMethod;

return $this;
}

/**
* Gets name
*
Expand Down
31 changes: 31 additions & 0 deletions src/Adyen/Model/Management/UpdateCompanyUserRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ class UpdateCompanyUserRequest implements ModelInterface, ArrayAccess, \JsonSeri
'active' => 'bool',
'associatedMerchantAccounts' => 'string[]',
'email' => 'string',
'loginMethod' => 'string',
'name' => '\Adyen\Model\Management\Name2',
'roles' => 'string[]',
'timeZoneCode' => 'string'
Expand All @@ -65,6 +66,7 @@ class UpdateCompanyUserRequest implements ModelInterface, ArrayAccess, \JsonSeri
'active' => null,
'associatedMerchantAccounts' => null,
'email' => null,
'loginMethod' => null,
'name' => null,
'roles' => null,
'timeZoneCode' => null
Expand All @@ -80,6 +82,7 @@ class UpdateCompanyUserRequest implements ModelInterface, ArrayAccess, \JsonSeri
'active' => false,
'associatedMerchantAccounts' => false,
'email' => false,
'loginMethod' => false,
'name' => false,
'roles' => false,
'timeZoneCode' => false
Expand Down Expand Up @@ -175,6 +178,7 @@ public function isNullableSetToNull(string $property): bool
'active' => 'active',
'associatedMerchantAccounts' => 'associatedMerchantAccounts',
'email' => 'email',
'loginMethod' => 'loginMethod',
'name' => 'name',
'roles' => 'roles',
'timeZoneCode' => 'timeZoneCode'
Expand All @@ -190,6 +194,7 @@ public function isNullableSetToNull(string $property): bool
'active' => 'setActive',
'associatedMerchantAccounts' => 'setAssociatedMerchantAccounts',
'email' => 'setEmail',
'loginMethod' => 'setLoginMethod',
'name' => 'setName',
'roles' => 'setRoles',
'timeZoneCode' => 'setTimeZoneCode'
Expand All @@ -205,6 +210,7 @@ public function isNullableSetToNull(string $property): bool
'active' => 'getActive',
'associatedMerchantAccounts' => 'getAssociatedMerchantAccounts',
'email' => 'getEmail',
'loginMethod' => 'getLoginMethod',
'name' => 'getName',
'roles' => 'getRoles',
'timeZoneCode' => 'getTimeZoneCode'
Expand Down Expand Up @@ -271,6 +277,7 @@ public function __construct(array $data = null)
$this->setIfExists('active', $data ?? [], null);
$this->setIfExists('associatedMerchantAccounts', $data ?? [], null);
$this->setIfExists('email', $data ?? [], null);
$this->setIfExists('loginMethod', $data ?? [], null);
$this->setIfExists('name', $data ?? [], null);
$this->setIfExists('roles', $data ?? [], null);
$this->setIfExists('timeZoneCode', $data ?? [], null);
Expand Down Expand Up @@ -414,6 +421,30 @@ public function setEmail($email)
return $this;
}

/**
* Gets loginMethod
*
* @return string|null
*/
public function getLoginMethod()
{
return $this->container['loginMethod'];
}

/**
* Sets loginMethod
*
* @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**
*
* @return self
*/
public function setLoginMethod($loginMethod)
{
$this->container['loginMethod'] = $loginMethod;

return $this;
}

/**
* Gets name
*
Expand Down
Loading

0 comments on commit d3ad1ad

Please sign in to comment.