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 Jan 30, 2025
1 parent f10d14c commit 2467442
Show file tree
Hide file tree
Showing 127 changed files with 3,296 additions and 362 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
6 changes: 2 additions & 4 deletions src/Adyen/Model/BalancePlatform/AccountHolder.php
Original file line number Diff line number Diff line change
Expand Up @@ -443,8 +443,7 @@ public function setCapabilities($capabilities)
* Gets contactDetails
*
* @return \Adyen\Model\BalancePlatform\ContactDetails|null
* @deprecated
*/
* @deprecated */
public function getContactDetails()
{
return $this->container['contactDetails'];
Expand All @@ -456,8 +455,7 @@ public function getContactDetails()
* @param \Adyen\Model\BalancePlatform\ContactDetails|null $contactDetails contactDetails
*
* @return self
* @deprecated
*/
* @deprecated */
public function setContactDetails($contactDetails)
{
$this->container['contactDetails'] = $contactDetails;
Expand Down
6 changes: 2 additions & 4 deletions src/Adyen/Model/BalancePlatform/AccountHolderInfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -387,8 +387,7 @@ public function setCapabilities($capabilities)
* Gets contactDetails
*
* @return \Adyen\Model\BalancePlatform\ContactDetails|null
* @deprecated
*/
* @deprecated */
public function getContactDetails()
{
return $this->container['contactDetails'];
Expand All @@ -400,8 +399,7 @@ public function getContactDetails()
* @param \Adyen\Model\BalancePlatform\ContactDetails|null $contactDetails contactDetails
*
* @return self
* @deprecated
*/
* @deprecated */
public function setContactDetails($contactDetails)
{
$this->container['contactDetails'] = $contactDetails;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -423,8 +423,7 @@ public function setCapabilities($capabilities)
* Gets contactDetails
*
* @return \Adyen\Model\BalancePlatform\ContactDetails|null
* @deprecated
*/
* @deprecated */
public function getContactDetails()
{
return $this->container['contactDetails'];
Expand All @@ -436,8 +435,7 @@ public function getContactDetails()
* @param \Adyen\Model\BalancePlatform\ContactDetails|null $contactDetails contactDetails
*
* @return self
* @deprecated
*/
* @deprecated */
public function setContactDetails($contactDetails)
{
$this->container['contactDetails'] = $contactDetails;
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
4 changes: 2 additions & 2 deletions src/Adyen/Model/BalancePlatform/PaymentInstrument.php
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,7 @@ public function valid()
* Gets additionalBankAccountIdentifications
*
* @return \Adyen\Model\BalancePlatform\PaymentInstrumentAdditionalBankAccountIdentificationsInner[]|null
* @deprecated
* @deprecated since Configuration API v2. "Please use `bankAccount` object instead"
*/
public function getAdditionalBankAccountIdentifications()
{
Expand All @@ -476,7 +476,7 @@ public function getAdditionalBankAccountIdentifications()
* @param \Adyen\Model\BalancePlatform\PaymentInstrumentAdditionalBankAccountIdentificationsInner[]|null $additionalBankAccountIdentifications Contains optional, additional business account details. Returned when you create a payment instrument with `type` **bankAccount**.
*
* @return self
* @deprecated
* @deprecated since Configuration API v2. "Please use `bankAccount` object instead"
*/
public function setAdditionalBankAccountIdentifications($additionalBankAccountIdentifications)
{
Expand Down
4 changes: 2 additions & 2 deletions src/Adyen/Model/BalancePlatform/UpdatePaymentInstrument.php
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,7 @@ public function valid()
* Gets additionalBankAccountIdentifications
*
* @return \Adyen\Model\BalancePlatform\PaymentInstrumentAdditionalBankAccountIdentificationsInner[]|null
* @deprecated
* @deprecated since Configuration API v2. "Please use `bankAccount` object instead"
*/
public function getAdditionalBankAccountIdentifications()
{
Expand All @@ -476,7 +476,7 @@ public function getAdditionalBankAccountIdentifications()
* @param \Adyen\Model\BalancePlatform\PaymentInstrumentAdditionalBankAccountIdentificationsInner[]|null $additionalBankAccountIdentifications Contains optional, additional business account details. Returned when you create a payment instrument with `type` **bankAccount**.
*
* @return self
* @deprecated
* @deprecated since Configuration API v2. "Please use `bankAccount` object instead"
*/
public function setAdditionalBankAccountIdentifications($additionalBankAccountIdentifications)
{
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
12 changes: 6 additions & 6 deletions src/Adyen/Model/Checkout/AccountInfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -804,7 +804,7 @@ public function setDeliveryAddressUsageIndicator($deliveryAddressUsageIndicator)
* Gets homePhone
*
* @return string|null
* @deprecated
* @deprecated since Adyen Checkout API v68. "Use `ThreeDS2RequestData.homePhone` instead."
*/
public function getHomePhone()
{
Expand All @@ -817,7 +817,7 @@ public function getHomePhone()
* @param string|null $homePhone Shopper's home phone number (including the country code).
*
* @return self
* @deprecated
* @deprecated since Adyen Checkout API v68. "Use `ThreeDS2RequestData.homePhone` instead."
*/
public function setHomePhone($homePhone)
{
Expand All @@ -830,7 +830,7 @@ public function setHomePhone($homePhone)
* Gets mobilePhone
*
* @return string|null
* @deprecated
* @deprecated since Adyen Checkout API v68. "Use `ThreeDS2RequestData.mobilePhone` instead."
*/
public function getMobilePhone()
{
Expand All @@ -843,7 +843,7 @@ public function getMobilePhone()
* @param string|null $mobilePhone Shopper's mobile phone number (including the country code).
*
* @return self
* @deprecated
* @deprecated since Adyen Checkout API v68. "Use `ThreeDS2RequestData.mobilePhone` instead."
*/
public function setMobilePhone($mobilePhone)
{
Expand Down Expand Up @@ -1068,7 +1068,7 @@ public function setSuspiciousActivity($suspiciousActivity)
* Gets workPhone
*
* @return string|null
* @deprecated
* @deprecated since Adyen Checkout API v68. "Use `ThreeDS2RequestData.workPhone` instead."
*/
public function getWorkPhone()
{
Expand All @@ -1081,7 +1081,7 @@ public function getWorkPhone()
* @param string|null $workPhone Shopper's work phone number (including the country code).
*
* @return self
* @deprecated
* @deprecated since Adyen Checkout API v68. "Use `ThreeDS2RequestData.workPhone` instead."
*/
public function setWorkPhone($workPhone)
{
Expand Down
4 changes: 2 additions & 2 deletions src/Adyen/Model/Checkout/AchDetails.php
Original file line number Diff line number Diff line change
Expand Up @@ -584,7 +584,7 @@ public function setOwnerName($ownerName)
* Gets recurringDetailReference
*
* @return string|null
* @deprecated
* @deprecated since Adyen Checkout API v49. "Use `storedPaymentMethodId` instead."
*/
public function getRecurringDetailReference()
{
Expand All @@ -597,7 +597,7 @@ public function getRecurringDetailReference()
* @param string|null $recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token.
*
* @return self
* @deprecated
* @deprecated since Adyen Checkout API v49. "Use `storedPaymentMethodId` instead."
*/
public function setRecurringDetailReference($recurringDetailReference)
{
Expand Down
8 changes: 4 additions & 4 deletions src/Adyen/Model/Checkout/AdditionalData3DSecure.php
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ public function valid()
* Gets allow3DS2
*
* @return string|null
* @deprecated
* @deprecated since Adyen Checkout API v69. "Use `authenticationData.threeDSRequestData.nativeThreeDS` instead."
*/
public function getAllow3DS2()
{
Expand All @@ -357,7 +357,7 @@ public function getAllow3DS2()
* @param string|null $allow3DS2 Indicates if you are able to process 3D Secure 2 transactions natively on your payment page. Send this parameter when you are using `/payments` endpoint with any of our [native 3D Secure 2 solutions](https://docs.adyen.com/online-payments/3d-secure/native-3ds2). > This parameter only indicates readiness to support native 3D Secure 2 authentication. To specify if you _want_ to perform 3D Secure, use [Dynamic 3D Secure](/risk-management/dynamic-3d-secure) or send the `executeThreeD` parameter. Possible values: * **true** - Ready to support native 3D Secure 2 authentication. Setting this to true does not mean always applying 3D Secure 2. Adyen selects redirect or native authentication based on your configuration to optimize authorization rates and improve the shopper's experience. * **false** – Not ready to support native 3D Secure 2 authentication. Adyen offers redirect 3D Secure 2 authentication instead, based on your configuration.
*
* @return self
* @deprecated
* @deprecated since Adyen Checkout API v69. "Use `authenticationData.threeDSRequestData.nativeThreeDS` instead."
*/
public function setAllow3DS2($allow3DS2)
{
Expand Down Expand Up @@ -404,7 +404,7 @@ public function setChallengeWindowSize($challengeWindowSize)
* Gets executeThreeD
*
* @return string|null
* @deprecated
* @deprecated since Adyen Checkout API v69. "Use [`authenticationData.attemptAuthentication`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments?target=_blank#request-authenticationData-attemptAuthentication) instead"
*/
public function getExecuteThreeD()
{
Expand All @@ -417,7 +417,7 @@ public function getExecuteThreeD()
* @param string|null $executeThreeD Indicates if you want to perform 3D Secure authentication on a transaction. > Alternatively, you can use [Dynamic 3D Secure](/risk-management/dynamic-3d-secure) to configure rules for applying 3D Secure. Possible values: * **true** – Perform 3D Secure authentication. * **false** – Don't perform 3D Secure authentication. Note that this setting results in refusals if the issuer mandates 3D Secure because of the PSD2 directive or other, national regulations.
*
* @return self
* @deprecated
* @deprecated since Adyen Checkout API v69. "Use [`authenticationData.attemptAuthentication`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments?target=_blank#request-authenticationData-attemptAuthentication) instead"
*/
public function setExecuteThreeD($executeThreeD)
{
Expand Down
4 changes: 2 additions & 2 deletions src/Adyen/Model/Checkout/AfterpayDetails.php
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ public function setPersonalDetails($personalDetails)
* Gets recurringDetailReference
*
* @return string|null
* @deprecated
* @deprecated since Adyen Checkout API v49. "Use `storedPaymentMethodId` instead."
*/
public function getRecurringDetailReference()
{
Expand All @@ -461,7 +461,7 @@ public function getRecurringDetailReference()
* @param string|null $recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token.
*
* @return self
* @deprecated
* @deprecated since Adyen Checkout API v49. "Use `storedPaymentMethodId` instead."
*/
public function setRecurringDetailReference($recurringDetailReference)
{
Expand Down
4 changes: 2 additions & 2 deletions src/Adyen/Model/Checkout/AncvDetails.php
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ public function setCheckoutAttemptId($checkoutAttemptId)
* Gets recurringDetailReference
*
* @return string|null
* @deprecated
* @deprecated since Adyen Checkout API v49. "Use `storedPaymentMethodId` instead."
*/
public function getRecurringDetailReference()
{
Expand All @@ -390,7 +390,7 @@ public function getRecurringDetailReference()
* @param string|null $recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token.
*
* @return self
* @deprecated
* @deprecated since Adyen Checkout API v49. "Use `storedPaymentMethodId` instead."
*/
public function setRecurringDetailReference($recurringDetailReference)
{
Expand Down
Loading

0 comments on commit 2467442

Please sign in to comment.