Skip to content

Commit

Permalink
[reformat][adyen-sdk-automation] automated change
Browse files Browse the repository at this point in the history
  • Loading branch information
AdyenAutomationBot committed Feb 26, 2025
1 parent d8b3427 commit 87133c9
Show file tree
Hide file tree
Showing 89 changed files with 3,056 additions and 202 deletions.
9 changes: 4 additions & 5 deletions src/Adyen/Model/AcsWebhooks/ObjectSerializer.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public static function sanitizeForSerialization($data, $type = null, $format = n
}
}
} else {
foreach ($data as $property => $value) {
foreach($data as $property => $value) {
$values[$property] = self::sanitizeForSerialization($value);
}
}
Expand Down Expand Up @@ -117,9 +117,7 @@ public static function sanitizeFilename($filename)
*/
public static function sanitizeTimestamp($timestamp)
{
if (!is_string($timestamp)) {
return $timestamp;
}
if (!is_string($timestamp)) return $timestamp;

return preg_replace('/(:\d{2}.\d{6})\d*/', '$1', $timestamp);
}
Expand Down Expand Up @@ -242,7 +240,8 @@ public static function deserialize($data, $class, $httpHeaders = null)
/** @var \Psr\Http\Message\StreamInterface $data */

// determine file name
if (is_array($httpHeaders)
if (
is_array($httpHeaders)
&& array_key_exists('Content-Disposition', $httpHeaders)
&& preg_match('/inline; filename=[\'"]?([^\'"\s]+)[\'"]?$/i', $httpHeaders['Content-Disposition'], $match)
) {
Expand Down
9 changes: 4 additions & 5 deletions src/Adyen/Model/BalanceControl/ObjectSerializer.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public static function sanitizeForSerialization($data, $type = null, $format = n
}
}
} else {
foreach ($data as $property => $value) {
foreach($data as $property => $value) {
$values[$property] = self::sanitizeForSerialization($value);
}
}
Expand Down Expand Up @@ -117,9 +117,7 @@ public static function sanitizeFilename($filename)
*/
public static function sanitizeTimestamp($timestamp)
{
if (!is_string($timestamp)) {
return $timestamp;
}
if (!is_string($timestamp)) return $timestamp;

return preg_replace('/(:\d{2}.\d{6})\d*/', '$1', $timestamp);
}
Expand Down Expand Up @@ -242,7 +240,8 @@ public static function deserialize($data, $class, $httpHeaders = null)
/** @var \Psr\Http\Message\StreamInterface $data */

// determine file name
if (is_array($httpHeaders)
if (
is_array($httpHeaders)
&& array_key_exists('Content-Disposition', $httpHeaders)
&& preg_match('/inline; filename=[\'"]?([^\'"\s]+)[\'"]?$/i', $httpHeaders['Content-Disposition'], $match)
) {
Expand Down
8 changes: 4 additions & 4 deletions src/Adyen/Model/BalancePlatform/CapabilitySettings.php
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ public function getAmountPerIndustry()
/**
* Sets amountPerIndustry
*
* @param array<string,\Adyen\Model\BalancePlatform\Amount>|null $amountPerIndustry
* @param array<string,\Adyen\Model\BalancePlatform\Amount>|null $amountPerIndustry
*
* @return self
*/
Expand All @@ -382,7 +382,7 @@ public function getAuthorizedCardUsers()
/**
* Sets authorizedCardUsers
*
* @param bool|null $authorizedCardUsers
* @param bool|null $authorizedCardUsers
*
* @return self
*/
Expand All @@ -406,7 +406,7 @@ public function getFundingSource()
/**
* Sets fundingSource
*
* @param string[]|null $fundingSource
* @param string[]|null $fundingSource
*
* @return self
*/
Expand Down Expand Up @@ -439,7 +439,7 @@ public function getInterval()
/**
* Sets interval
*
* @param string|null $interval
* @param string|null $interval
*
* @return self
*/
Expand Down
9 changes: 4 additions & 5 deletions src/Adyen/Model/BalancePlatform/ObjectSerializer.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public static function sanitizeForSerialization($data, $type = null, $format = n
}
}
} else {
foreach ($data as $property => $value) {
foreach($data as $property => $value) {
$values[$property] = self::sanitizeForSerialization($value);
}
}
Expand Down Expand Up @@ -117,9 +117,7 @@ public static function sanitizeFilename($filename)
*/
public static function sanitizeTimestamp($timestamp)
{
if (!is_string($timestamp)) {
return $timestamp;
}
if (!is_string($timestamp)) return $timestamp;

return preg_replace('/(:\d{2}.\d{6})\d*/', '$1', $timestamp);
}
Expand Down Expand Up @@ -242,7 +240,8 @@ public static function deserialize($data, $class, $httpHeaders = null)
/** @var \Psr\Http\Message\StreamInterface $data */

// determine file name
if (is_array($httpHeaders)
if (
is_array($httpHeaders)
&& array_key_exists('Content-Disposition', $httpHeaders)
&& preg_match('/inline; filename=[\'"]?([^\'"\s]+)[\'"]?$/i', $httpHeaders['Content-Disposition'], $match)
) {
Expand Down
2 changes: 1 addition & 1 deletion src/Adyen/Model/BinLookup/CostEstimateRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -611,7 +611,7 @@ public function getShopperReference()
/**
* Sets shopperReference
*
* @param string|null $shopperReference Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. Minimum length: 3 characters. > Your reference must not include personally identifiable information (PII), for example name or email address.
* @param string|null $shopperReference Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address.
*
* @return self
*/
Expand Down
9 changes: 4 additions & 5 deletions src/Adyen/Model/BinLookup/ObjectSerializer.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public static function sanitizeForSerialization($data, $type = null, $format = n
}
}
} else {
foreach ($data as $property => $value) {
foreach($data as $property => $value) {
$values[$property] = self::sanitizeForSerialization($value);
}
}
Expand Down Expand Up @@ -117,9 +117,7 @@ public static function sanitizeFilename($filename)
*/
public static function sanitizeTimestamp($timestamp)
{
if (!is_string($timestamp)) {
return $timestamp;
}
if (!is_string($timestamp)) return $timestamp;

return preg_replace('/(:\d{2}.\d{6})\d*/', '$1', $timestamp);
}
Expand Down Expand Up @@ -242,7 +240,8 @@ public static function deserialize($data, $class, $httpHeaders = null)
/** @var \Psr\Http\Message\StreamInterface $data */

// determine file name
if (is_array($httpHeaders)
if (
is_array($httpHeaders)
&& array_key_exists('Content-Disposition', $httpHeaders)
&& preg_match('/inline; filename=[\'"]?([^\'"\s]+)[\'"]?$/i', $httpHeaders['Content-Disposition'], $match)
) {
Expand Down
2 changes: 1 addition & 1 deletion src/Adyen/Model/Checkout/AdditionalData3DSecure.php
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ public function getThreeDSVersion()
/**
* Sets threeDSVersion
*
* @param string|null $threeDSVersion Indicates your preference for the 3D Secure version. > If you use this parameter, you override the checks from Adyen's Authentication Engine. We recommend to use this field only if you have an extensive knowledge of 3D Secure. Possible values: * **1.0.2**: Apply 3D Secure version 1.0.2. * **2.1.0**: Apply 3D Secure version 2.1.0. * **2.2.0**: Apply 3D Secure version 2.2.0. If the issuer does not support version 2.2.0, we will fall back to 2.1.0. The following rules apply: * If you prefer 2.1.0 or 2.2.0 but we receive a negative `transStatus` in the `ARes`, we will apply the fallback policy configured in your account. For example, if the configuration is to fall back to 3D Secure 1, we will apply version 1.0.2. * If you prefer 2.1.0 or 2.2.0 but the BIN is not enrolled, you will receive an error.
* @param string|null $threeDSVersion Indicates your preference for the 3D Secure version. > If you use this parameter, you override the checks from Adyen's Authentication Engine. We recommend to use this field only if you have an extensive knowledge of 3D Secure. Possible values: * **2.1.0**: Apply 3D Secure version 2.1.0. * **2.2.0**: Apply 3D Secure version 2.2.0. If the issuer does not support version 2.2.0, we will fall back to 2.1.0. The following rules apply: * If you prefer 2.1.0 or 2.2.0 but we receive a negative `transStatus` in the `ARes`, we will apply the fallback policy configured in your account. * If you the BIN is not enrolled, you will receive an error.
*
* @return self
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Adyen/Model/Checkout/BalanceCheckRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -1487,7 +1487,7 @@ public function getShopperReference()
/**
* Sets shopperReference
*
* @param string|null $shopperReference Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. Minimum length: 3 characters. > Your reference must not include personally identifiable information (PII), for example name or email address.
* @param string|null $shopperReference Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address.
*
* @return self
*/
Expand Down
35 changes: 33 additions & 2 deletions src/Adyen/Model/Checkout/CheckoutPaymentMethod.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ class CheckoutPaymentMethod implements ModelInterface, ArrayAccess, \JsonSeriali
'payerSelected' => 'string',
'shopperAccountIdentifier' => 'string',
'virtualPaymentAddress' => 'string',
'pixRecurring' => '\Adyen\Model\Checkout\PixRecurring',
'bank' => 'string',
'clientType' => 'string',
'identification' => 'string',
Expand Down Expand Up @@ -189,6 +190,7 @@ class CheckoutPaymentMethod implements ModelInterface, ArrayAccess, \JsonSeriali
'payerSelected' => null,
'shopperAccountIdentifier' => null,
'virtualPaymentAddress' => null,
'pixRecurring' => null,
'bank' => null,
'clientType' => null,
'identification' => null,
Expand Down Expand Up @@ -270,6 +272,7 @@ class CheckoutPaymentMethod implements ModelInterface, ArrayAccess, \JsonSeriali
'payerSelected' => false,
'shopperAccountIdentifier' => false,
'virtualPaymentAddress' => false,
'pixRecurring' => false,
'bank' => false,
'clientType' => false,
'identification' => false,
Expand Down Expand Up @@ -431,6 +434,7 @@ public function isNullableSetToNull(string $property): bool
'payerSelected' => 'payerSelected',
'shopperAccountIdentifier' => 'shopperAccountIdentifier',
'virtualPaymentAddress' => 'virtualPaymentAddress',
'pixRecurring' => 'pixRecurring',
'bank' => 'bank',
'clientType' => 'clientType',
'identification' => 'identification',
Expand Down Expand Up @@ -512,6 +516,7 @@ public function isNullableSetToNull(string $property): bool
'payerSelected' => 'setPayerSelected',
'shopperAccountIdentifier' => 'setShopperAccountIdentifier',
'virtualPaymentAddress' => 'setVirtualPaymentAddress',
'pixRecurring' => 'setPixRecurring',
'bank' => 'setBank',
'clientType' => 'setClientType',
'identification' => 'setIdentification',
Expand Down Expand Up @@ -593,6 +598,7 @@ public function isNullableSetToNull(string $property): bool
'payerSelected' => 'getPayerSelected',
'shopperAccountIdentifier' => 'getShopperAccountIdentifier',
'virtualPaymentAddress' => 'getVirtualPaymentAddress',
'pixRecurring' => 'getPixRecurring',
'bank' => 'getBank',
'clientType' => 'getClientType',
'identification' => 'getIdentification',
Expand Down Expand Up @@ -724,6 +730,7 @@ public function __construct(array $data = null)
$this->setIfExists('payerSelected', $data ?? [], null);
$this->setIfExists('shopperAccountIdentifier', $data ?? [], null);
$this->setIfExists('virtualPaymentAddress', $data ?? [], null);
$this->setIfExists('pixRecurring', $data ?? [], null);
$this->setIfExists('bank', $data ?? [], null);
$this->setIfExists('clientType', $data ?? [], null);
$this->setIfExists('identification', $data ?? [], null);
Expand Down Expand Up @@ -2033,7 +2040,7 @@ public function getShopperEmail()
/**
* Sets shopperEmail
*
* @param string $shopperEmail
* @param string $shopperEmail
*
* @return self
*/
Expand All @@ -2057,7 +2064,7 @@ public function getTelephoneNumber()
/**
* Sets telephoneNumber
*
* @param string $telephoneNumber
* @param string $telephoneNumber
*
* @return self
*/
Expand Down Expand Up @@ -2308,6 +2315,30 @@ public function setVirtualPaymentAddress($virtualPaymentAddress)
return $this;
}

/**
* Gets pixRecurring
*
* @return \Adyen\Model\Checkout\PixRecurring|null
*/
public function getPixRecurring()
{
return $this->container['pixRecurring'];
}

/**
* Sets pixRecurring
*
* @param \Adyen\Model\Checkout\PixRecurring|null $pixRecurring pixRecurring
*
* @return self
*/
public function setPixRecurring($pixRecurring)
{
$this->container['pixRecurring'] = $pixRecurring;

return $this;
}

/**
* Gets bank
*
Expand Down
2 changes: 1 addition & 1 deletion src/Adyen/Model/Checkout/CreateCheckoutSessionRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -1991,7 +1991,7 @@ public function getShopperReference()
/**
* Sets shopperReference
*
* @param string|null $shopperReference Your reference to uniquely identify this shopper, for example user ID or account ID. Minimum length: 3 characters. > Your reference must not include personally identifiable information (PII), for example name or email address.
* @param string|null $shopperReference Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address.
*
* @return self
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Adyen/Model/Checkout/CreateCheckoutSessionResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -2066,7 +2066,7 @@ public function getShopperReference()
/**
* Sets shopperReference
*
* @param string|null $shopperReference Your reference to uniquely identify this shopper, for example user ID or account ID. Minimum length: 3 characters. > Your reference must not include personally identifiable information (PII), for example name or email address.
* @param string|null $shopperReference Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address.
*
* @return self
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Adyen/Model/Checkout/FundRecipient.php
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,7 @@ public function getShopperReference()
/**
* Sets shopperReference
*
* @param string|null $shopperReference Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. Minimum length: 3 characters. > Your reference must not include personally identifiable information (PII), for example name or email address.
* @param string|null $shopperReference Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address.
*
* @return self
*/
Expand Down
4 changes: 2 additions & 2 deletions src/Adyen/Model/Checkout/MbwayDetails.php
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ public function getShopperEmail()
/**
* Sets shopperEmail
*
* @param string $shopperEmail
* @param string $shopperEmail
*
* @return self
*/
Expand All @@ -385,7 +385,7 @@ public function getTelephoneNumber()
/**
* Sets telephoneNumber
*
* @param string $telephoneNumber
* @param string $telephoneNumber
*
* @return self
*/
Expand Down
9 changes: 4 additions & 5 deletions src/Adyen/Model/Checkout/ObjectSerializer.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public static function sanitizeForSerialization($data, $type = null, $format = n
}
}
} else {
foreach ($data as $property => $value) {
foreach($data as $property => $value) {
$values[$property] = self::sanitizeForSerialization($value);
}
}
Expand Down Expand Up @@ -117,9 +117,7 @@ public static function sanitizeFilename($filename)
*/
public static function sanitizeTimestamp($timestamp)
{
if (!is_string($timestamp)) {
return $timestamp;
}
if (!is_string($timestamp)) return $timestamp;

return preg_replace('/(:\d{2}.\d{6})\d*/', '$1', $timestamp);
}
Expand Down Expand Up @@ -242,7 +240,8 @@ public static function deserialize($data, $class, $httpHeaders = null)
/** @var \Psr\Http\Message\StreamInterface $data */

// determine file name
if (is_array($httpHeaders)
if (
is_array($httpHeaders)
&& array_key_exists('Content-Disposition', $httpHeaders)
&& preg_match('/inline; filename=[\'"]?([^\'"\s]+)[\'"]?$/i', $httpHeaders['Content-Disposition'], $match)
) {
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 @@ -253,7 +253,6 @@ public function getModelName()
public const TYPE_MOLPAY_EBANKING_MY = 'molpay_ebanking_MY';
public const TYPE_MOLPAY_EBANKING_DIRECT_MY = 'molpay_ebanking_direct_MY';
public const TYPE_SWISH = 'swish';
public const TYPE_PIX = 'pix';
public const TYPE_BIZUM = 'bizum';
public const TYPE_WALLEY = 'walley';
public const TYPE_WALLEY_B2B = 'walley_b2b';
Expand Down Expand Up @@ -351,7 +350,6 @@ public function getTypeAllowableValues()
self::TYPE_MOLPAY_EBANKING_MY,
self::TYPE_MOLPAY_EBANKING_DIRECT_MY,
self::TYPE_SWISH,
self::TYPE_PIX,
self::TYPE_BIZUM,
self::TYPE_WALLEY,
self::TYPE_WALLEY_B2B,
Expand Down
2 changes: 1 addition & 1 deletion src/Adyen/Model/Checkout/PaymentLinkRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -1418,7 +1418,7 @@ public function getShopperReference()
/**
* Sets shopperReference
*
* @param string|null $shopperReference Your reference to uniquely identify this shopper, for example user ID or account ID. Minimum length: 3 characters. > Your reference must not include personally identifiable information (PII), for example name or email address.
* @param string|null $shopperReference Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address.
*
* @return self
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Adyen/Model/Checkout/PaymentLinkResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -1508,7 +1508,7 @@ public function getShopperReference()
/**
* Sets shopperReference
*
* @param string|null $shopperReference Your reference to uniquely identify this shopper, for example user ID or account ID. Minimum length: 3 characters. > Your reference must not include personally identifiable information (PII), for example name or email address.
* @param string|null $shopperReference Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address.
*
* @return self
*/
Expand Down
Loading

0 comments on commit 87133c9

Please sign in to comment.