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 Aug 20, 2024
1 parent 9ac4bf1 commit e8c162f
Show file tree
Hide file tree
Showing 52 changed files with 825 additions and 143 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
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
35 changes: 33 additions & 2 deletions src/Adyen/Model/Checkout/CheckoutPaymentMethod.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ class CheckoutPaymentMethod implements ModelInterface, ArrayAccess, \JsonSeriali
'payeePreferred' => 'string',
'payerID' => 'string',
'payerSelected' => 'string',
'shopperAccountIdentifier' => 'string',
'virtualPaymentAddress' => 'string',
'samsungPayToken' => 'string',
'iban' => 'string',
Expand Down Expand Up @@ -175,6 +176,7 @@ class CheckoutPaymentMethod implements ModelInterface, ArrayAccess, \JsonSeriali
'payeePreferred' => null,
'payerID' => null,
'payerSelected' => null,
'shopperAccountIdentifier' => null,
'virtualPaymentAddress' => null,
'samsungPayToken' => null,
'iban' => null,
Expand Down Expand Up @@ -247,6 +249,7 @@ class CheckoutPaymentMethod implements ModelInterface, ArrayAccess, \JsonSeriali
'payeePreferred' => false,
'payerID' => false,
'payerSelected' => false,
'shopperAccountIdentifier' => false,
'virtualPaymentAddress' => false,
'samsungPayToken' => false,
'iban' => false,
Expand Down Expand Up @@ -399,6 +402,7 @@ public function isNullableSetToNull(string $property): bool
'payeePreferred' => 'payeePreferred',
'payerID' => 'payerID',
'payerSelected' => 'payerSelected',
'shopperAccountIdentifier' => 'shopperAccountIdentifier',
'virtualPaymentAddress' => 'virtualPaymentAddress',
'samsungPayToken' => 'samsungPayToken',
'iban' => 'iban',
Expand Down Expand Up @@ -471,6 +475,7 @@ public function isNullableSetToNull(string $property): bool
'payeePreferred' => 'setPayeePreferred',
'payerID' => 'setPayerID',
'payerSelected' => 'setPayerSelected',
'shopperAccountIdentifier' => 'setShopperAccountIdentifier',
'virtualPaymentAddress' => 'setVirtualPaymentAddress',
'samsungPayToken' => 'setSamsungPayToken',
'iban' => 'setIban',
Expand Down Expand Up @@ -543,6 +548,7 @@ public function isNullableSetToNull(string $property): bool
'payeePreferred' => 'getPayeePreferred',
'payerID' => 'getPayerID',
'payerSelected' => 'getPayerSelected',
'shopperAccountIdentifier' => 'getShopperAccountIdentifier',
'virtualPaymentAddress' => 'getVirtualPaymentAddress',
'samsungPayToken' => 'getSamsungPayToken',
'iban' => 'getIban',
Expand Down Expand Up @@ -665,6 +671,7 @@ public function __construct(array $data = null)
$this->setIfExists('payeePreferred', $data ?? [], null);
$this->setIfExists('payerID', $data ?? [], null);
$this->setIfExists('payerSelected', $data ?? [], null);
$this->setIfExists('shopperAccountIdentifier', $data ?? [], null);
$this->setIfExists('virtualPaymentAddress', $data ?? [], null);
$this->setIfExists('samsungPayToken', $data ?? [], null);
$this->setIfExists('iban', $data ?? [], null);
Expand Down Expand Up @@ -1908,7 +1915,7 @@ public function getShopperEmail()
/**
* Sets shopperEmail
*
* @param string $shopperEmail
* @param string $shopperEmail
*
* @return self
*/
Expand All @@ -1932,7 +1939,7 @@ public function getTelephoneNumber()
/**
* Sets telephoneNumber
*
* @param string $telephoneNumber
* @param string $telephoneNumber
*
* @return self
*/
Expand Down Expand Up @@ -2111,6 +2118,30 @@ public function setPayerSelected($payerSelected)
return $this;
}

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

/**
* Sets shopperAccountIdentifier
*
* @param string|null $shopperAccountIdentifier The shopper's banking details or payId reference, used to complete payment.
*
* @return self
*/
public function setShopperAccountIdentifier($shopperAccountIdentifier)
{
$this->container['shopperAccountIdentifier'] = $shopperAccountIdentifier;

return $this;
}

/**
* Gets virtualPaymentAddress
*
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 @@ -2183,7 +2183,7 @@ public function getStoreFiltrationMode()
/**
* Sets storeFiltrationMode
*
* @param string|null $storeFiltrationMode Specifies how payment methods should be filtered based on the 'store' parameter: - 'exclusive': Only payment methods belonging to the specified 'store' are returned. - 'inclusive': Payment methods from the 'store' and those not associated with any other store are returned. - 'skipFilter': All payment methods are returned, regardless of store association.
* @param string|null $storeFiltrationMode Specifies how payment methods should be filtered based on the 'store' parameter: - 'exclusive': Only payment methods belonging to the specified 'store' are returned. - 'inclusive': Payment methods from the 'store' and those not associated with any other store are returned.
*
* @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 @@ -2258,7 +2258,7 @@ public function getStoreFiltrationMode()
/**
* Sets storeFiltrationMode
*
* @param string|null $storeFiltrationMode Specifies how payment methods should be filtered based on the 'store' parameter: - 'exclusive': Only payment methods belonging to the specified 'store' are returned. - 'inclusive': Payment methods from the 'store' and those not associated with any other store are returned. - 'skipFilter': All payment methods are returned, regardless of store association.
* @param string|null $storeFiltrationMode Specifies how payment methods should be filtered based on the 'store' parameter: - 'exclusive': Only payment methods belonging to the specified 'store' are returned. - 'inclusive': Payment methods from the 'store' and those not associated with any other store are returned.
*
* @return self
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Adyen/Model/Checkout/Donation.php
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ public function getDonationType()
/**
* Sets donationType
*
* @param string $donationType The [type of donation](https://docs.adyen.com/online-payments/donations/#donation-types).\"Possible values:\\n\\n**roundup**: a donation where the original transaction amount is rounded up as a donation.**fixedAmounts**: a donation where you show fixed donations amounts that the shopper can select from.
* @param string $donationType The [type of donation](https://docs.adyen.com/online-payments/donations/#donation-types). Possible values: * **roundup**: a donation where the original transaction amount is rounded up as a donation. * **fixedAmounts**: a donation where you show fixed donations amounts that the shopper can select from.
*
* @return self
*/
Expand Down
31 changes: 31 additions & 0 deletions src/Adyen/Model/Checkout/FundRecipient.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ class FundRecipient implements ModelInterface, ArrayAccess, \JsonSerializable
* @var string[]
*/
protected static $openAPITypes = [
'iBAN' => 'string',
'billingAddress' => '\Adyen\Model\Checkout\Address',
'paymentMethod' => '\Adyen\Model\Checkout\CardDetails',
'shopperEmail' => 'string',
Expand All @@ -64,6 +65,7 @@ class FundRecipient implements ModelInterface, ArrayAccess, \JsonSerializable
* @psalm-var array<string, string|null>
*/
protected static $openAPIFormats = [
'iBAN' => null,
'billingAddress' => null,
'paymentMethod' => null,
'shopperEmail' => null,
Expand All @@ -82,6 +84,7 @@ class FundRecipient implements ModelInterface, ArrayAccess, \JsonSerializable
* @var boolean[]
*/
protected static $openAPINullables = [
'iBAN' => false,
'billingAddress' => false,
'paymentMethod' => false,
'shopperEmail' => false,
Expand Down Expand Up @@ -180,6 +183,7 @@ public function isNullableSetToNull(string $property): bool
* @var string[]
*/
protected static $attributeMap = [
'iBAN' => 'IBAN',
'billingAddress' => 'billingAddress',
'paymentMethod' => 'paymentMethod',
'shopperEmail' => 'shopperEmail',
Expand All @@ -198,6 +202,7 @@ public function isNullableSetToNull(string $property): bool
* @var string[]
*/
protected static $setters = [
'iBAN' => 'setIBAN',
'billingAddress' => 'setBillingAddress',
'paymentMethod' => 'setPaymentMethod',
'shopperEmail' => 'setShopperEmail',
Expand All @@ -216,6 +221,7 @@ public function isNullableSetToNull(string $property): bool
* @var string[]
*/
protected static $getters = [
'iBAN' => 'getIBAN',
'billingAddress' => 'getBillingAddress',
'paymentMethod' => 'getPaymentMethod',
'shopperEmail' => 'getShopperEmail',
Expand Down Expand Up @@ -285,6 +291,7 @@ public function getModelName()
*/
public function __construct(array $data = null)
{
$this->setIfExists('iBAN', $data ?? [], null);
$this->setIfExists('billingAddress', $data ?? [], null);
$this->setIfExists('paymentMethod', $data ?? [], null);
$this->setIfExists('shopperEmail', $data ?? [], null);
Expand Down Expand Up @@ -339,6 +346,30 @@ public function valid()
}


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

/**
* Sets iBAN
*
* @param string|null $iBAN Fund Recipient Iban for C2C payments
*
* @return self
*/
public function setIBAN($iBAN)
{
$this->container['iBAN'] = $iBAN;

return $this;
}

/**
* Gets billingAddress
*
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
Loading

0 comments on commit e8c162f

Please sign in to comment.