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 Nov 22, 2024
1 parent d26326b commit bf7c0ab
Show file tree
Hide file tree
Showing 49 changed files with 263 additions and 142 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
31 changes: 31 additions & 0 deletions src/Adyen/Model/BalancePlatform/CreateSweepConfigurationV2.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ class CreateSweepConfigurationV2 implements ModelInterface, ArrayAccess, \JsonSe
'description' => 'string',
'priorities' => 'string[]',
'reason' => 'string',
'reasonDetail' => 'string',
'reference' => 'string',
'referenceForBeneficiary' => 'string',
'schedule' => '\Adyen\Model\BalancePlatform\SweepSchedule',
Expand All @@ -74,6 +75,7 @@ class CreateSweepConfigurationV2 implements ModelInterface, ArrayAccess, \JsonSe
'description' => null,
'priorities' => null,
'reason' => null,
'reasonDetail' => null,
'reference' => null,
'referenceForBeneficiary' => null,
'schedule' => null,
Expand All @@ -96,6 +98,7 @@ class CreateSweepConfigurationV2 implements ModelInterface, ArrayAccess, \JsonSe
'description' => false,
'priorities' => false,
'reason' => false,
'reasonDetail' => false,
'reference' => false,
'referenceForBeneficiary' => false,
'schedule' => false,
Expand Down Expand Up @@ -198,6 +201,7 @@ public function isNullableSetToNull(string $property): bool
'description' => 'description',
'priorities' => 'priorities',
'reason' => 'reason',
'reasonDetail' => 'reasonDetail',
'reference' => 'reference',
'referenceForBeneficiary' => 'referenceForBeneficiary',
'schedule' => 'schedule',
Expand All @@ -220,6 +224,7 @@ public function isNullableSetToNull(string $property): bool
'description' => 'setDescription',
'priorities' => 'setPriorities',
'reason' => 'setReason',
'reasonDetail' => 'setReasonDetail',
'reference' => 'setReference',
'referenceForBeneficiary' => 'setReferenceForBeneficiary',
'schedule' => 'setSchedule',
Expand All @@ -242,6 +247,7 @@ public function isNullableSetToNull(string $property): bool
'description' => 'getDescription',
'priorities' => 'getPriorities',
'reason' => 'getReason',
'reasonDetail' => 'getReasonDetail',
'reference' => 'getReference',
'referenceForBeneficiary' => 'getReferenceForBeneficiary',
'schedule' => 'getSchedule',
Expand Down Expand Up @@ -437,6 +443,7 @@ public function __construct(array $data = null)
$this->setIfExists('description', $data ?? [], null);
$this->setIfExists('priorities', $data ?? [], null);
$this->setIfExists('reason', $data ?? [], null);
$this->setIfExists('reasonDetail', $data ?? [], null);
$this->setIfExists('reference', $data ?? [], null);
$this->setIfExists('referenceForBeneficiary', $data ?? [], null);
$this->setIfExists('schedule', $data ?? [], null);
Expand Down Expand Up @@ -707,6 +714,30 @@ public function setReason($reason)
return $this;
}

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

/**
* Sets reasonDetail
*
* @param string|null $reasonDetail The human readable reason for disabling the sweep.
*
* @return self
*/
public function setReasonDetail($reasonDetail)
{
$this->container['reasonDetail'] = $reasonDetail;

return $this;
}

/**
* Gets reference
*
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
31 changes: 31 additions & 0 deletions src/Adyen/Model/BalancePlatform/SweepConfigurationV2.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ class SweepConfigurationV2 implements ModelInterface, ArrayAccess, \JsonSerializ
'id' => 'string',
'priorities' => 'string[]',
'reason' => 'string',
'reasonDetail' => 'string',
'reference' => 'string',
'referenceForBeneficiary' => 'string',
'schedule' => '\Adyen\Model\BalancePlatform\SweepSchedule',
Expand All @@ -76,6 +77,7 @@ class SweepConfigurationV2 implements ModelInterface, ArrayAccess, \JsonSerializ
'id' => null,
'priorities' => null,
'reason' => null,
'reasonDetail' => null,
'reference' => null,
'referenceForBeneficiary' => null,
'schedule' => null,
Expand All @@ -99,6 +101,7 @@ class SweepConfigurationV2 implements ModelInterface, ArrayAccess, \JsonSerializ
'id' => false,
'priorities' => false,
'reason' => false,
'reasonDetail' => false,
'reference' => false,
'referenceForBeneficiary' => false,
'schedule' => false,
Expand Down Expand Up @@ -202,6 +205,7 @@ public function isNullableSetToNull(string $property): bool
'id' => 'id',
'priorities' => 'priorities',
'reason' => 'reason',
'reasonDetail' => 'reasonDetail',
'reference' => 'reference',
'referenceForBeneficiary' => 'referenceForBeneficiary',
'schedule' => 'schedule',
Expand All @@ -225,6 +229,7 @@ public function isNullableSetToNull(string $property): bool
'id' => 'setId',
'priorities' => 'setPriorities',
'reason' => 'setReason',
'reasonDetail' => 'setReasonDetail',
'reference' => 'setReference',
'referenceForBeneficiary' => 'setReferenceForBeneficiary',
'schedule' => 'setSchedule',
Expand All @@ -248,6 +253,7 @@ public function isNullableSetToNull(string $property): bool
'id' => 'getId',
'priorities' => 'getPriorities',
'reason' => 'getReason',
'reasonDetail' => 'getReasonDetail',
'reference' => 'getReference',
'referenceForBeneficiary' => 'getReferenceForBeneficiary',
'schedule' => 'getSchedule',
Expand Down Expand Up @@ -444,6 +450,7 @@ public function __construct(array $data = null)
$this->setIfExists('id', $data ?? [], null);
$this->setIfExists('priorities', $data ?? [], null);
$this->setIfExists('reason', $data ?? [], null);
$this->setIfExists('reasonDetail', $data ?? [], null);
$this->setIfExists('reference', $data ?? [], null);
$this->setIfExists('referenceForBeneficiary', $data ?? [], null);
$this->setIfExists('schedule', $data ?? [], null);
Expand Down Expand Up @@ -741,6 +748,30 @@ public function setReason($reason)
return $this;
}

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

/**
* Sets reasonDetail
*
* @param string|null $reasonDetail The human readable reason for disabling the sweep.
*
* @return self
*/
public function setReasonDetail($reasonDetail)
{
$this->container['reasonDetail'] = $reasonDetail;

return $this;
}

/**
* Gets reference
*
Expand Down
31 changes: 31 additions & 0 deletions src/Adyen/Model/BalancePlatform/UpdateSweepConfigurationV2.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ class UpdateSweepConfigurationV2 implements ModelInterface, ArrayAccess, \JsonSe
'id' => 'string',
'priorities' => 'string[]',
'reason' => 'string',
'reasonDetail' => 'string',
'reference' => 'string',
'referenceForBeneficiary' => 'string',
'schedule' => '\Adyen\Model\BalancePlatform\SweepSchedule',
Expand All @@ -76,6 +77,7 @@ class UpdateSweepConfigurationV2 implements ModelInterface, ArrayAccess, \JsonSe
'id' => null,
'priorities' => null,
'reason' => null,
'reasonDetail' => null,
'reference' => null,
'referenceForBeneficiary' => null,
'schedule' => null,
Expand All @@ -99,6 +101,7 @@ class UpdateSweepConfigurationV2 implements ModelInterface, ArrayAccess, \JsonSe
'id' => false,
'priorities' => false,
'reason' => false,
'reasonDetail' => false,
'reference' => false,
'referenceForBeneficiary' => false,
'schedule' => false,
Expand Down Expand Up @@ -202,6 +205,7 @@ public function isNullableSetToNull(string $property): bool
'id' => 'id',
'priorities' => 'priorities',
'reason' => 'reason',
'reasonDetail' => 'reasonDetail',
'reference' => 'reference',
'referenceForBeneficiary' => 'referenceForBeneficiary',
'schedule' => 'schedule',
Expand All @@ -225,6 +229,7 @@ public function isNullableSetToNull(string $property): bool
'id' => 'setId',
'priorities' => 'setPriorities',
'reason' => 'setReason',
'reasonDetail' => 'setReasonDetail',
'reference' => 'setReference',
'referenceForBeneficiary' => 'setReferenceForBeneficiary',
'schedule' => 'setSchedule',
Expand All @@ -248,6 +253,7 @@ public function isNullableSetToNull(string $property): bool
'id' => 'getId',
'priorities' => 'getPriorities',
'reason' => 'getReason',
'reasonDetail' => 'getReasonDetail',
'reference' => 'getReference',
'referenceForBeneficiary' => 'getReferenceForBeneficiary',
'schedule' => 'getSchedule',
Expand Down Expand Up @@ -444,6 +450,7 @@ public function __construct(array $data = null)
$this->setIfExists('id', $data ?? [], null);
$this->setIfExists('priorities', $data ?? [], null);
$this->setIfExists('reason', $data ?? [], null);
$this->setIfExists('reasonDetail', $data ?? [], null);
$this->setIfExists('reference', $data ?? [], null);
$this->setIfExists('referenceForBeneficiary', $data ?? [], null);
$this->setIfExists('schedule', $data ?? [], null);
Expand Down Expand Up @@ -729,6 +736,30 @@ public function setReason($reason)
return $this;
}

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

/**
* Sets reasonDetail
*
* @param string|null $reasonDetail The human readable reason for disabling the sweep.
*
* @return self
*/
public function setReasonDetail($reasonDetail)
{
$this->container['reasonDetail'] = $reasonDetail;

return $this;
}

/**
* Gets reference
*
Expand Down
Loading

0 comments on commit bf7c0ab

Please sign in to comment.