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 Dec 6, 2024
1 parent 88b0ac7 commit 3de279c
Show file tree
Hide file tree
Showing 103 changed files with 10,023 additions and 225 deletions.
4 changes: 2 additions & 2 deletions src/Adyen/Model/AcsWebhooks/Amount.php
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ public function getCurrency()
/**
* Sets currency
*
* @param string $currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes).
* @param string $currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes).
*
* @return self
*/
Expand All @@ -326,7 +326,7 @@ public function getValue()
/**
* Sets value
*
* @param int $value The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes).
* @param int $value The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units).
*
* @return self
*/
Expand Down
31 changes: 31 additions & 0 deletions src/Adyen/Model/AcsWebhooks/AuthenticationNotificationRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ class AuthenticationNotificationRequest implements ModelInterface, ArrayAccess,
protected static $openAPITypes = [
'data' => '\Adyen\Model\AcsWebhooks\AuthenticationNotificationData',
'environment' => 'string',
'timestamp' => '\DateTime',
'type' => 'string'
];

Expand All @@ -59,6 +60,7 @@ class AuthenticationNotificationRequest implements ModelInterface, ArrayAccess,
protected static $openAPIFormats = [
'data' => null,
'environment' => null,
'timestamp' => 'date-time',
'type' => null
];

Expand All @@ -70,6 +72,7 @@ class AuthenticationNotificationRequest implements ModelInterface, ArrayAccess,
protected static $openAPINullables = [
'data' => false,
'environment' => false,
'timestamp' => false,
'type' => false
];

Expand Down Expand Up @@ -161,6 +164,7 @@ public function isNullableSetToNull(string $property): bool
protected static $attributeMap = [
'data' => 'data',
'environment' => 'environment',
'timestamp' => 'timestamp',
'type' => 'type'
];

Expand All @@ -172,6 +176,7 @@ public function isNullableSetToNull(string $property): bool
protected static $setters = [
'data' => 'setData',
'environment' => 'setEnvironment',
'timestamp' => 'setTimestamp',
'type' => 'setType'
];

Expand All @@ -183,6 +188,7 @@ public function isNullableSetToNull(string $property): bool
protected static $getters = [
'data' => 'getData',
'environment' => 'getEnvironment',
'timestamp' => 'getTimestamp',
'type' => 'getType'
];

Expand Down Expand Up @@ -257,6 +263,7 @@ public function __construct(array $data = null)
{
$this->setIfExists('data', $data ?? [], null);
$this->setIfExists('environment', $data ?? [], null);
$this->setIfExists('timestamp', $data ?? [], null);
$this->setIfExists('type', $data ?? [], null);
}

Expand Down Expand Up @@ -368,6 +375,30 @@ public function setEnvironment($environment)
return $this;
}

/**
* Gets timestamp
*
* @return \DateTime|null
*/
public function getTimestamp()
{
return $this->container['timestamp'];
}

/**
* Sets timestamp
*
* @param \DateTime|null $timestamp When the event was queued.
*
* @return self
*/
public function setTimestamp($timestamp)
{
$this->container['timestamp'] = $timestamp;

return $this;
}

/**
* Gets type
*
Expand Down
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
4 changes: 2 additions & 2 deletions src/Adyen/Model/Checkout/Amount.php
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ public function getCurrency()
/**
* Sets currency
*
* @param string $currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes).
* @param string $currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes).
*
* @return self
*/
Expand All @@ -326,7 +326,7 @@ public function getValue()
/**
* Sets value
*
* @param int $value The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes).
* @param int $value The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units).
*
* @return self
*/
Expand Down
33 changes: 33 additions & 0 deletions src/Adyen/Model/Checkout/CardDetails.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ class CardDetails implements ModelInterface, ArrayAccess, \JsonSerializable
'checkoutAttemptId' => 'string',
'cupsecureplusSmscode' => 'string',
'cvc' => 'string',
'encryptedCard' => 'string',
'encryptedCardNumber' => 'string',
'encryptedExpiryMonth' => 'string',
'encryptedExpiryYear' => 'string',
Expand Down Expand Up @@ -81,6 +82,7 @@ class CardDetails implements ModelInterface, ArrayAccess, \JsonSerializable
'checkoutAttemptId' => null,
'cupsecureplusSmscode' => null,
'cvc' => null,
'encryptedCard' => null,
'encryptedCardNumber' => null,
'encryptedExpiryMonth' => null,
'encryptedExpiryYear' => null,
Expand Down Expand Up @@ -112,6 +114,7 @@ class CardDetails implements ModelInterface, ArrayAccess, \JsonSerializable
'checkoutAttemptId' => false,
'cupsecureplusSmscode' => false,
'cvc' => false,
'encryptedCard' => false,
'encryptedCardNumber' => false,
'encryptedExpiryMonth' => false,
'encryptedExpiryYear' => false,
Expand Down Expand Up @@ -223,6 +226,7 @@ public function isNullableSetToNull(string $property): bool
'checkoutAttemptId' => 'checkoutAttemptId',
'cupsecureplusSmscode' => 'cupsecureplus.smscode',
'cvc' => 'cvc',
'encryptedCard' => 'encryptedCard',
'encryptedCardNumber' => 'encryptedCardNumber',
'encryptedExpiryMonth' => 'encryptedExpiryMonth',
'encryptedExpiryYear' => 'encryptedExpiryYear',
Expand Down Expand Up @@ -254,6 +258,7 @@ public function isNullableSetToNull(string $property): bool
'checkoutAttemptId' => 'setCheckoutAttemptId',
'cupsecureplusSmscode' => 'setCupsecureplusSmscode',
'cvc' => 'setCvc',
'encryptedCard' => 'setEncryptedCard',
'encryptedCardNumber' => 'setEncryptedCardNumber',
'encryptedExpiryMonth' => 'setEncryptedExpiryMonth',
'encryptedExpiryYear' => 'setEncryptedExpiryYear',
Expand Down Expand Up @@ -285,6 +290,7 @@ public function isNullableSetToNull(string $property): bool
'checkoutAttemptId' => 'getCheckoutAttemptId',
'cupsecureplusSmscode' => 'getCupsecureplusSmscode',
'cvc' => 'getCvc',
'encryptedCard' => 'getEncryptedCard',
'encryptedCardNumber' => 'getEncryptedCardNumber',
'encryptedExpiryMonth' => 'getEncryptedExpiryMonth',
'encryptedExpiryYear' => 'getEncryptedExpiryYear',
Expand Down Expand Up @@ -354,6 +360,7 @@ public function getModelName()
public const TYPE_NETWORK_TOKEN = 'networkToken';
public const TYPE_GIFTCARD = 'giftcard';
public const TYPE_CARD = 'card';
public const TYPE_CLICKTOPAY = 'clicktopay';

/**
* Gets allowable values of the enum
Expand All @@ -380,6 +387,7 @@ public function getTypeAllowableValues()
self::TYPE_NETWORK_TOKEN,
self::TYPE_GIFTCARD,
self::TYPE_CARD,
self::TYPE_CLICKTOPAY,
];
}
/**
Expand All @@ -401,6 +409,7 @@ public function __construct(array $data = null)
$this->setIfExists('checkoutAttemptId', $data ?? [], null);
$this->setIfExists('cupsecureplusSmscode', $data ?? [], null);
$this->setIfExists('cvc', $data ?? [], null);
$this->setIfExists('encryptedCard', $data ?? [], null);
$this->setIfExists('encryptedCardNumber', $data ?? [], null);
$this->setIfExists('encryptedExpiryMonth', $data ?? [], null);
$this->setIfExists('encryptedExpiryYear', $data ?? [], null);
Expand Down Expand Up @@ -580,6 +589,30 @@ public function setCvc($cvc)
return $this;
}

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

/**
* Sets encryptedCard
*
* @param string|null $encryptedCard Only include this for JSON Web Encryption (JWE) implementations. The JWE-encrypted card details.
*
* @return self
*/
public function setEncryptedCard($encryptedCard)
{
$this->container['encryptedCard'] = $encryptedCard;

return $this;
}

/**
* Gets encryptedCardNumber
*
Expand Down
Loading

0 comments on commit 3de279c

Please sign in to comment.