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 5, 2024
1 parent 433c784 commit 2943dc4
Show file tree
Hide file tree
Showing 87 changed files with 7,394 additions and 365 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
31 changes: 31 additions & 0 deletions src/Adyen/Model/Checkout/AchDetails.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ class AchDetails implements ModelInterface, ArrayAccess, \JsonSerializable
'ownerName' => 'string',
'recurringDetailReference' => 'string',
'storedPaymentMethodId' => 'string',
'transferInstrumentId' => 'string',
'type' => 'string'
];

Expand All @@ -73,6 +74,7 @@ class AchDetails implements ModelInterface, ArrayAccess, \JsonSerializable
'ownerName' => null,
'recurringDetailReference' => null,
'storedPaymentMethodId' => null,
'transferInstrumentId' => null,
'type' => null
];

Expand All @@ -91,6 +93,7 @@ class AchDetails implements ModelInterface, ArrayAccess, \JsonSerializable
'ownerName' => false,
'recurringDetailReference' => false,
'storedPaymentMethodId' => false,
'transferInstrumentId' => false,
'type' => false
];

Expand Down Expand Up @@ -189,6 +192,7 @@ public function isNullableSetToNull(string $property): bool
'ownerName' => 'ownerName',
'recurringDetailReference' => 'recurringDetailReference',
'storedPaymentMethodId' => 'storedPaymentMethodId',
'transferInstrumentId' => 'transferInstrumentId',
'type' => 'type'
];

Expand All @@ -207,6 +211,7 @@ public function isNullableSetToNull(string $property): bool
'ownerName' => 'setOwnerName',
'recurringDetailReference' => 'setRecurringDetailReference',
'storedPaymentMethodId' => 'setStoredPaymentMethodId',
'transferInstrumentId' => 'setTransferInstrumentId',
'type' => 'setType'
];

Expand All @@ -225,6 +230,7 @@ public function isNullableSetToNull(string $property): bool
'ownerName' => 'getOwnerName',
'recurringDetailReference' => 'getRecurringDetailReference',
'storedPaymentMethodId' => 'getStoredPaymentMethodId',
'transferInstrumentId' => 'getTransferInstrumentId',
'type' => 'getType'
];

Expand Down Expand Up @@ -332,6 +338,7 @@ public function __construct(array $data = null)
$this->setIfExists('ownerName', $data ?? [], null);
$this->setIfExists('recurringDetailReference', $data ?? [], null);
$this->setIfExists('storedPaymentMethodId', $data ?? [], null);
$this->setIfExists('transferInstrumentId', $data ?? [], null);
$this->setIfExists('type', $data ?? [], null);
}

Expand Down Expand Up @@ -623,6 +630,30 @@ public function setStoredPaymentMethodId($storedPaymentMethodId)
return $this;
}

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

/**
* Sets transferInstrumentId
*
* @param string|null $transferInstrumentId The unique identifier of your user's verified transfer instrument, which you can use to top up their balance accounts.
*
* @return self
*/
public function setTransferInstrumentId($transferInstrumentId)
{
$this->container['transferInstrumentId'] = $transferInstrumentId;

return $this;
}

/**
* Gets type
*
Expand Down
Loading

0 comments on commit 2943dc4

Please sign in to comment.