Skip to content

Commit

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

* style(fmt): code formatted

* Update unittest (#657)

* updated Mobile to mobile

* changed  Active to active

---------

Co-authored-by: AdyenAutomationBot <Adyen Automation [email protected]>
Co-authored-by: Djoyke Reijans <[email protected]>
Co-authored-by: Wouter Boereboom <[email protected]>
  • Loading branch information
4 people authored May 16, 2024
1 parent a162bde commit bc2da52
Show file tree
Hide file tree
Showing 186 changed files with 18,778 additions and 2,497 deletions.
41 changes: 0 additions & 41 deletions src/Adyen/Model/BalancePlatform/AULocalAccountIdentification.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ class AULocalAccountIdentification implements ModelInterface, ArrayAccess, \Json
protected static $openAPITypes = [
'accountNumber' => 'string',
'bsbCode' => 'string',
'formFactor' => 'string',
'type' => 'string'
];

Expand All @@ -60,7 +59,6 @@ class AULocalAccountIdentification implements ModelInterface, ArrayAccess, \Json
protected static $openAPIFormats = [
'accountNumber' => null,
'bsbCode' => null,
'formFactor' => null,
'type' => null
];

Expand All @@ -72,7 +70,6 @@ class AULocalAccountIdentification implements ModelInterface, ArrayAccess, \Json
protected static $openAPINullables = [
'accountNumber' => false,
'bsbCode' => false,
'formFactor' => true,
'type' => false
];

Expand Down Expand Up @@ -164,7 +161,6 @@ public function isNullableSetToNull(string $property): bool
protected static $attributeMap = [
'accountNumber' => 'accountNumber',
'bsbCode' => 'bsbCode',
'formFactor' => 'formFactor',
'type' => 'type'
];

Expand All @@ -176,7 +172,6 @@ public function isNullableSetToNull(string $property): bool
protected static $setters = [
'accountNumber' => 'setAccountNumber',
'bsbCode' => 'setBsbCode',
'formFactor' => 'setFormFactor',
'type' => 'setType'
];

Expand All @@ -188,7 +183,6 @@ public function isNullableSetToNull(string $property): bool
protected static $getters = [
'accountNumber' => 'getAccountNumber',
'bsbCode' => 'getBsbCode',
'formFactor' => 'getFormFactor',
'type' => 'getType'
];

Expand Down Expand Up @@ -263,7 +257,6 @@ public function __construct(array $data = null)
{
$this->setIfExists('accountNumber', $data ?? [], null);
$this->setIfExists('bsbCode', $data ?? [], null);
$this->setIfExists('formFactor', $data ?? [], null);
$this->setIfExists('type', $data ?? [], null);
}

Expand Down Expand Up @@ -381,40 +374,6 @@ public function setBsbCode($bsbCode)
return $this;
}

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

/**
* Sets formFactor
*
* @param string|null $formFactor The form factor of the account. Possible values: **physical**, **virtual**. Default value: **physical**.
*
* @return self
*/
public function setFormFactor($formFactor)
{
if (is_null($formFactor)) {
array_push($this->openAPINullablesSetToNull, 'formFactor');
} else {
$nullablesSetToNull = $this->getOpenAPINullablesSetToNull();
$index = array_search('formFactor', $nullablesSetToNull);
if ($index !== false) {
unset($nullablesSetToNull[$index]);
$this->setOpenAPINullablesSetToNull($nullablesSetToNull);
}
}
$this->container['formFactor'] = $formFactor;

return $this;
}

/**
* Gets type
*
Expand Down
8 changes: 3 additions & 5 deletions src/Adyen/Model/BalancePlatform/AccountHolder.php
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,6 @@ public function getModelName()

public const STATUS_ACTIVE = 'active';
public const STATUS_CLOSED = 'closed';
public const STATUS_INACTIVE = 'inactive';
public const STATUS_SUSPENDED = 'suspended';

/**
Expand All @@ -302,7 +301,6 @@ public function getStatusAllowableValues()
return [
self::STATUS_ACTIVE,
self::STATUS_CLOSED,
self::STATUS_INACTIVE,
self::STATUS_SUSPENDED,
];
}
Expand Down Expand Up @@ -487,7 +485,7 @@ public function getDescription()
/**
* Sets description
*
* @param string|null $description Your description for the account holder, maximum 300 characters.
* @param string|null $description Your description for the account holder.
*
* @return self
*/
Expand Down Expand Up @@ -649,7 +647,7 @@ public function getReference()
/**
* Sets reference
*
* @param string|null $reference Your reference for the account holder, maximum 150 characters.
* @param string|null $reference Your reference for the account holder.
*
* @return self
*/
Expand All @@ -676,7 +674,7 @@ public function getStatus()
/**
* Sets status
*
* @param string|null $status The status of the account holder. Possible values: * **active**: The account holder is active. This is the default status when creating an account holder. * **inactive (Deprecated)**: The account holder is temporarily inactive due to missing KYC details. You can set the account back to active by providing the missing KYC details. * **suspended**: The account holder is permanently deactivated by Adyen. This action cannot be undone. * **closed**: The account holder is permanently deactivated by you. This action cannot be undone.
* @param string|null $status The status of the account holder. Possible values: * **active**: The account holder is active. This is the default status when creating an account holder. * **suspended**: The account holder is permanently deactivated by Adyen. This action cannot be undone. * **closed**: The account holder is permanently deactivated by you. This action cannot be undone.
*
* @return self
*/
Expand Down
4 changes: 2 additions & 2 deletions src/Adyen/Model/BalancePlatform/AccountHolderInfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ public function getDescription()
/**
* Sets description
*
* @param string|null $description Your description for the account holder, maximum 300 characters.
* @param string|null $description Your description for the account holder.
*
* @return self
*/
Expand Down Expand Up @@ -537,7 +537,7 @@ public function getReference()
/**
* Sets reference
*
* @param string|null $reference Your reference for the account holder, maximum 150 characters.
* @param string|null $reference Your reference for the account holder.
*
* @return self
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,6 @@ public function getModelName()

public const STATUS_ACTIVE = 'active';
public const STATUS_CLOSED = 'closed';
public const STATUS_INACTIVE = 'inactive';
public const STATUS_SUSPENDED = 'suspended';

/**
Expand All @@ -290,7 +289,6 @@ public function getStatusAllowableValues()
return [
self::STATUS_ACTIVE,
self::STATUS_CLOSED,
self::STATUS_INACTIVE,
self::STATUS_SUSPENDED,
];
}
Expand Down Expand Up @@ -467,7 +465,7 @@ public function getDescription()
/**
* Sets description
*
* @param string|null $description Your description for the account holder, maximum 300 characters.
* @param string|null $description Your description for the account holder.
*
* @return self
*/
Expand Down Expand Up @@ -575,7 +573,7 @@ public function getReference()
/**
* Sets reference
*
* @param string|null $reference Your reference for the account holder, maximum 150 characters.
* @param string|null $reference Your reference for the account holder.
*
* @return self
*/
Expand All @@ -602,7 +600,7 @@ public function getStatus()
/**
* Sets status
*
* @param string|null $status The status of the account holder. Possible values: * **active**: The account holder is active. This is the default status when creating an account holder. * **inactive (Deprecated)**: The account holder is temporarily inactive due to missing KYC details. You can set the account back to active by providing the missing KYC details. * **suspended**: The account holder is permanently deactivated by Adyen. This action cannot be undone. * **closed**: The account holder is permanently deactivated by you. This action cannot be undone.
* @param string|null $status The status of the account holder. Possible values: * **active**: The account holder is active. This is the default status when creating an account holder. * **suspended**: The account holder is permanently deactivated by Adyen. This action cannot be undone. * **closed**: The account holder is permanently deactivated by you. This action cannot be undone.
*
* @return self
*/
Expand Down
39 changes: 16 additions & 23 deletions src/Adyen/Model/BalancePlatform/BRLocalAccountIdentification.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class BRLocalAccountIdentification implements ModelInterface, ArrayAccess, \Json
'accountNumber' => 'string',
'bankCode' => 'string',
'branchNumber' => 'string',
'formFactor' => 'string',
'ispb' => 'string',
'type' => 'string'
];

Expand All @@ -62,7 +62,7 @@ class BRLocalAccountIdentification implements ModelInterface, ArrayAccess, \Json
'accountNumber' => null,
'bankCode' => null,
'branchNumber' => null,
'formFactor' => null,
'ispb' => null,
'type' => null
];

Expand All @@ -75,7 +75,7 @@ class BRLocalAccountIdentification implements ModelInterface, ArrayAccess, \Json
'accountNumber' => false,
'bankCode' => false,
'branchNumber' => false,
'formFactor' => true,
'ispb' => false,
'type' => false
];

Expand Down Expand Up @@ -168,7 +168,7 @@ public function isNullableSetToNull(string $property): bool
'accountNumber' => 'accountNumber',
'bankCode' => 'bankCode',
'branchNumber' => 'branchNumber',
'formFactor' => 'formFactor',
'ispb' => 'ispb',
'type' => 'type'
];

Expand All @@ -181,7 +181,7 @@ public function isNullableSetToNull(string $property): bool
'accountNumber' => 'setAccountNumber',
'bankCode' => 'setBankCode',
'branchNumber' => 'setBranchNumber',
'formFactor' => 'setFormFactor',
'ispb' => 'setIspb',
'type' => 'setType'
];

Expand All @@ -194,7 +194,7 @@ public function isNullableSetToNull(string $property): bool
'accountNumber' => 'getAccountNumber',
'bankCode' => 'getBankCode',
'branchNumber' => 'getBranchNumber',
'formFactor' => 'getFormFactor',
'ispb' => 'getIspb',
'type' => 'getType'
];

Expand Down Expand Up @@ -270,7 +270,7 @@ public function __construct(array $data = null)
$this->setIfExists('accountNumber', $data ?? [], null);
$this->setIfExists('bankCode', $data ?? [], null);
$this->setIfExists('branchNumber', $data ?? [], null);
$this->setIfExists('formFactor', $data ?? [], null);
$this->setIfExists('ispb', $data ?? [], null);
$this->setIfExists('type', $data ?? [], null);
}

Expand Down Expand Up @@ -419,35 +419,28 @@ public function setBranchNumber($branchNumber)
}

/**
* Gets formFactor
* Gets ispb
*
* @return string|null
*/
public function getFormFactor()
public function getIspb()
{
return $this->container['formFactor'];
return $this->container['ispb'];
}

/**
* Sets formFactor
* Sets ispb
*
* @param string|null $formFactor The form factor of the account. Possible values: **physical**, **virtual**. Default value: **physical**.
* @param string|null $ispb The 8-digit ISPB, with leading zeros.
*
* @return self
*/
public function setFormFactor($formFactor)
public function setIspb($ispb)
{
if (is_null($formFactor)) {
array_push($this->openAPINullablesSetToNull, 'formFactor');
} else {
$nullablesSetToNull = $this->getOpenAPINullablesSetToNull();
$index = array_search('formFactor', $nullablesSetToNull);
if ($index !== false) {
unset($nullablesSetToNull[$index]);
$this->setOpenAPINullablesSetToNull($nullablesSetToNull);
}
if (is_null($ispb)) {
throw new \InvalidArgumentException('non-nullable ispb cannot be null');
}
$this->container['formFactor'] = $formFactor;
$this->container['ispb'] = $ispb;

return $this;
}
Expand Down
8 changes: 4 additions & 4 deletions src/Adyen/Model/BalancePlatform/Balance.php
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ public function getAvailable()
/**
* Sets available
*
* @param int $available The remaining amount available for spending.
* @param int $available The current balance minus any reserved balance.
*
* @return self
*/
Expand All @@ -356,7 +356,7 @@ public function getBalance()
/**
* Sets balance
*
* @param int $balance The total amount in the balance.
* @param int $balance The current balance of funds in the balance account. These are the funds from all transactions with a value date in the past that have not yet been paid out.
*
* @return self
*/
Expand Down Expand Up @@ -410,7 +410,7 @@ public function getPending()
/**
* Sets pending
*
* @param int|null $pending The amount pending to be paid out but not yet available in the balance.
* @param int|null $pending The amount of funds that Adyen has processed for this account, but will be settled in a future date. For more information, see how to settle funds for users in your [platform](https://docs.adyen.com/platforms/settle-funds) and [marketplace](https://docs.adyen.com/marketplaces/settle-funds).
*
* @return self
*/
Expand All @@ -437,7 +437,7 @@ public function getReserved()
/**
* Sets reserved
*
* @param int $reserved The amount reserved for payments that have been authorised, but have not been captured yet.
* @param int $reserved The amount reserved for payments that have been [authorised](https://docs.adyen.com/issuing/payment-stages/#authorised), but not yet [captured](https://docs.adyen.com/issuing/payment-stages/#captured) by the merchant. Applies only to [Adyen-issued cards](https://docs.adyen.com/issuing).
*
* @return self
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ public function getDescription()
/**
* Sets description
*
* @param string|null $description A human-readable description of the balance account, maximum 300 characters. You can use this parameter to distinguish between multiple balance accounts under an account holder.
* @param string|null $description A human-readable description of the balance account. You can use this parameter to distinguish between multiple balance accounts under an account holder.
*
* @return self
*/
Expand Down Expand Up @@ -466,7 +466,7 @@ public function getReference()
/**
* Sets reference
*
* @param string|null $reference Your reference to the balance account, maximum 150 characters.
* @param string|null $reference Your reference to the balance account.
*
* @return self
*/
Expand All @@ -493,7 +493,7 @@ public function getStatus()
/**
* Sets status
*
* @param string|null $status The status of the balance account. Payment instruments linked to the balance account can only be used if the balance account status is **active**. Possible values: **active**, **inactive**, **closed**, **suspended**.
* @param string|null $status The status of the balance account. Payment instruments linked to the balance account can only be used if the balance account status is **active**. Possible values: **active**, **closed**, **suspended**.
*
* @return self
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Adyen/Model/BalancePlatform/BalancePlatform.php
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ public function getDescription()
/**
* Sets description
*
* @param string|null $description Your description of the balance platform, maximum 300 characters.
* @param string|null $description Your description of the balance platform.
*
* @return self
*/
Expand Down
Loading

0 comments on commit bc2da52

Please sign in to comment.