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 Mar 22, 2024
1 parent 022bb3f commit 6bb480c
Show file tree
Hide file tree
Showing 107 changed files with 3,443 additions and 574 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 @@ -385,7 +385,7 @@ public function getAuthorizedCardUsers()
/**
* Sets authorizedCardUsers
*
* @param bool|null $authorizedCardUsers
* @param bool|null $authorizedCardUsers
*
* @return self
*/
Expand All @@ -412,7 +412,7 @@ public function getFundingSource()
/**
* Sets fundingSource
*
* @param string[]|null $fundingSource
* @param string[]|null $fundingSource
*
* @return self
*/
Expand Down Expand Up @@ -448,7 +448,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
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
4 changes: 2 additions & 2 deletions src/Adyen/Model/Checkout/BalanceCheckRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -1666,7 +1666,7 @@ public function getSplits()
/**
* Sets splits
*
* @param \Adyen\Model\Checkout\Split[]|null $splits An array of objects specifying how the payment should be split when using [Adyen for Platforms](https://docs.adyen.com/marketplaces-and-platforms/processing-payments#providing-split-information) or [Issuing](https://docs.adyen.com/issuing/add-manage-funds#split).
* @param \Adyen\Model\Checkout\Split[]|null $splits An array of objects specifying how the payment should be split when using either Adyen for Platforms for [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or [platforms]((https://docs.adyen.com/platforms/split-payments), or standalone [Issuing](https://docs.adyen.com/issuing/add-manage-funds#split).
*
* @return self
*/
Expand All @@ -1693,7 +1693,7 @@ public function getStore()
/**
* Sets store
*
* @param string|null $store Required for Adyen for Platforms integrations if you have a platform setup. This is your [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) (on [balance platform](https://docs.adyen.com/marketplaces-and-platforms/classic/platforms-for-partners#route-payments)) or the [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) (in the [classic integration](https://docs.adyen.com/marketplaces-and-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) for the ecommerce or point-of-sale store that is processing the payment.
* @param string|null $store Required for Adyen for Platforms integrations if you are a platform model. This is your [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) (on [balance platform](https://docs.adyen.com/platforms)) or the [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) (in the [classic integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) for the ecommerce or point-of-sale store that is processing the payment.
*
* @return self
*/
Expand Down
58 changes: 29 additions & 29 deletions src/Adyen/Model/Checkout/CheckoutPaymentMethod.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@ class CheckoutPaymentMethod implements ModelInterface, ArrayAccess, \JsonSeriali
'samsungPayToken' => 'string',
'iban' => 'string',
'billingSequenceNumber' => 'string',
'visaCheckoutCallId' => 'string',
'appId' => 'string',
'visaCheckoutCallId' => 'string',
'openid' => 'string',
'clickAndCollect' => 'string'
];
Expand Down Expand Up @@ -159,8 +159,8 @@ class CheckoutPaymentMethod implements ModelInterface, ArrayAccess, \JsonSeriali
'samsungPayToken' => null,
'iban' => null,
'billingSequenceNumber' => null,
'visaCheckoutCallId' => null,
'appId' => null,
'visaCheckoutCallId' => null,
'openid' => null,
'clickAndCollect' => null
];
Expand Down Expand Up @@ -221,8 +221,8 @@ class CheckoutPaymentMethod implements ModelInterface, ArrayAccess, \JsonSeriali
'samsungPayToken' => false,
'iban' => false,
'billingSequenceNumber' => false,
'visaCheckoutCallId' => false,
'appId' => false,
'visaCheckoutCallId' => false,
'openid' => false,
'clickAndCollect' => false
];
Expand Down Expand Up @@ -363,8 +363,8 @@ public function isNullableSetToNull(string $property): bool
'samsungPayToken' => 'samsungPayToken',
'iban' => 'iban',
'billingSequenceNumber' => 'billingSequenceNumber',
'visaCheckoutCallId' => 'visaCheckoutCallId',
'appId' => 'appId',
'visaCheckoutCallId' => 'visaCheckoutCallId',
'openid' => 'openid',
'clickAndCollect' => 'clickAndCollect'
];
Expand Down Expand Up @@ -425,8 +425,8 @@ public function isNullableSetToNull(string $property): bool
'samsungPayToken' => 'setSamsungPayToken',
'iban' => 'setIban',
'billingSequenceNumber' => 'setBillingSequenceNumber',
'visaCheckoutCallId' => 'setVisaCheckoutCallId',
'appId' => 'setAppId',
'visaCheckoutCallId' => 'setVisaCheckoutCallId',
'openid' => 'setOpenid',
'clickAndCollect' => 'setClickAndCollect'
];
Expand Down Expand Up @@ -487,8 +487,8 @@ public function isNullableSetToNull(string $property): bool
'samsungPayToken' => 'getSamsungPayToken',
'iban' => 'getIban',
'billingSequenceNumber' => 'getBillingSequenceNumber',
'visaCheckoutCallId' => 'getVisaCheckoutCallId',
'appId' => 'getAppId',
'visaCheckoutCallId' => 'getVisaCheckoutCallId',
'openid' => 'getOpenid',
'clickAndCollect' => 'getClickAndCollect'
];
Expand Down Expand Up @@ -599,8 +599,8 @@ public function __construct(array $data = null)
$this->setIfExists('samsungPayToken', $data ?? [], null);
$this->setIfExists('iban', $data ?? [], null);
$this->setIfExists('billingSequenceNumber', $data ?? [], null);
$this->setIfExists('visaCheckoutCallId', $data ?? [], null);
$this->setIfExists('appId', $data ?? [], null);
$this->setIfExists('visaCheckoutCallId', $data ?? [], null);
$this->setIfExists('openid', $data ?? [], null);
$this->setIfExists('clickAndCollect', $data ?? [], null);
}
Expand Down Expand Up @@ -1682,7 +1682,7 @@ public function getShopperEmail()
/**
* Sets shopperEmail
*
* @param string $shopperEmail
* @param string $shopperEmail
*
* @return self
*/
Expand All @@ -1709,7 +1709,7 @@ public function getTelephoneNumber()
/**
* Sets telephoneNumber
*
* @param string $telephoneNumber
* @param string $telephoneNumber
*
* @return self
*/
Expand Down Expand Up @@ -2048,55 +2048,55 @@ public function setBillingSequenceNumber($billingSequenceNumber)
}

/**
* Gets visaCheckoutCallId
* Gets appId
*
* @return string
* @return string|null
*/
public function getVisaCheckoutCallId()
public function getAppId()
{
return $this->container['visaCheckoutCallId'];
return $this->container['appId'];
}

/**
* Sets visaCheckoutCallId
* Sets appId
*
* @param string $visaCheckoutCallId The Visa Click to Pay Call ID value. When your shopper selects a payment and/or a shipping address from Visa Click to Pay, you will receive a Visa Click to Pay Call ID.
* @param string|null $appId appId
*
* @return self
*/
public function setVisaCheckoutCallId($visaCheckoutCallId)
public function setAppId($appId)
{
if (is_null($visaCheckoutCallId)) {
throw new \InvalidArgumentException('non-nullable visaCheckoutCallId cannot be null');
if (is_null($appId)) {
throw new \InvalidArgumentException('non-nullable appId cannot be null');
}
$this->container['visaCheckoutCallId'] = $visaCheckoutCallId;
$this->container['appId'] = $appId;

return $this;
}

/**
* Gets appId
* Gets visaCheckoutCallId
*
* @return string|null
* @return string
*/
public function getAppId()
public function getVisaCheckoutCallId()
{
return $this->container['appId'];
return $this->container['visaCheckoutCallId'];
}

/**
* Sets appId
* Sets visaCheckoutCallId
*
* @param string|null $appId appId
* @param string $visaCheckoutCallId The Visa Click to Pay Call ID value. When your shopper selects a payment and/or a shipping address from Visa Click to Pay, you will receive a Visa Click to Pay Call ID.
*
* @return self
*/
public function setAppId($appId)
public function setVisaCheckoutCallId($visaCheckoutCallId)
{
if (is_null($appId)) {
throw new \InvalidArgumentException('non-nullable appId cannot be null');
if (is_null($visaCheckoutCallId)) {
throw new \InvalidArgumentException('non-nullable visaCheckoutCallId cannot be null');
}
$this->container['appId'] = $appId;
$this->container['visaCheckoutCallId'] = $visaCheckoutCallId;

return $this;
}
Expand Down
4 changes: 2 additions & 2 deletions src/Adyen/Model/Checkout/CreateCheckoutSessionRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2247,7 +2247,7 @@ public function getSplits()
/**
* Sets splits
*
* @param \Adyen\Model\Checkout\Split[]|null $splits An array of objects specifying how to split a payment when using [Adyen for Platforms](https://docs.adyen.com/marketplaces-and-platforms/processing-payments#providing-split-information), [Classic Platforms integration](https://docs.adyen.com/marketplaces-and-platforms/classic/processing-payments#providing-split-information), or [Issuing](https://docs.adyen.com/issuing/manage-funds#split).
* @param \Adyen\Model\Checkout\Split[]|null $splits An array of objects specifying how to split a payment when using [Adyen for Platforms](https://docs.adyen.com/platforms/processing-payments#providing-split-information), [Classic Platforms integration](https://docs.adyen.com/classic-platforms/processing-payments#providing-split-information), or [Issuing](https://docs.adyen.com/issuing/manage-funds#split).
*
* @return self
*/
Expand All @@ -2274,7 +2274,7 @@ public function getStore()
/**
* Sets store
*
* @param string|null $store Required for Adyen for Platforms integrations if you have a platform setup. This is your [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) (on [balance platform](https://docs.adyen.com/marketplaces-and-platforms/classic/platforms-for-partners#route-payments)) or the [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) (in the [classic integration](https://docs.adyen.com/marketplaces-and-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) for the ecommerce or point-of-sale store that is processing the payment.
* @param string|null $store Required for Adyen for Platforms integrations if you are a platform model. This is your [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) (on [balance platform](https://docs.adyen.com/platforms)) or the [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) (in the [classic integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) for the ecommerce or point-of-sale store that is processing the payment.
*
* @return self
*/
Expand Down
4 changes: 2 additions & 2 deletions src/Adyen/Model/Checkout/CreateCheckoutSessionResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -2328,7 +2328,7 @@ public function getSplits()
/**
* Sets splits
*
* @param \Adyen\Model\Checkout\Split[]|null $splits An array of objects specifying how to split a payment when using [Adyen for Platforms](https://docs.adyen.com/marketplaces-and-platforms/processing-payments#providing-split-information), [Classic Platforms integration](https://docs.adyen.com/marketplaces-and-platforms/classic/processing-payments#providing-split-information), or [Issuing](https://docs.adyen.com/issuing/manage-funds#split).
* @param \Adyen\Model\Checkout\Split[]|null $splits An array of objects specifying how to split a payment when using [Adyen for Platforms](https://docs.adyen.com/platforms/processing-payments#providing-split-information), [Classic Platforms integration](https://docs.adyen.com/classic-platforms/processing-payments#providing-split-information), or [Issuing](https://docs.adyen.com/issuing/manage-funds#split).
*
* @return self
*/
Expand All @@ -2355,7 +2355,7 @@ public function getStore()
/**
* Sets store
*
* @param string|null $store Required for Adyen for Platforms integrations if you have a platform setup. This is your [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) (on [balance platform](https://docs.adyen.com/marketplaces-and-platforms/classic/platforms-for-partners#route-payments)) or the [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) (in the [classic integration](https://docs.adyen.com/marketplaces-and-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) for the ecommerce or point-of-sale store that is processing the payment.
* @param string|null $store Required for Adyen for Platforms integrations if you are a platform model. This is your [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) (on [balance platform](https://docs.adyen.com/platforms)) or the [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) (in the [classic integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) for the ecommerce or point-of-sale store that is processing the payment.
*
* @return self
*/
Expand Down
Loading

0 comments on commit 6bb480c

Please sign in to comment.