Skip to content

Commit e2cfaf6

Browse files
[reformat][adyen-sdk-automation] automated change
1 parent 7fe2146 commit e2cfaf6

File tree

60 files changed

+837
-374
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+837
-374
lines changed

src/Adyen/Model/AcsWebhooks/ChallengeInfo.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,13 +245,15 @@ public function getModelName()
245245
return self::$openAPIModelName;
246246
}
247247

248+
public const CHALLENGE_CANCEL__00 = '00';
248249
public const CHALLENGE_CANCEL__01 = '01';
249250
public const CHALLENGE_CANCEL__02 = '02';
250251
public const CHALLENGE_CANCEL__03 = '03';
251252
public const CHALLENGE_CANCEL__04 = '04';
252253
public const CHALLENGE_CANCEL__05 = '05';
253254
public const CHALLENGE_CANCEL__06 = '06';
254255
public const CHALLENGE_CANCEL__07 = '07';
256+
public const CHALLENGE_CANCEL__08 = '08';
255257
public const FLOW_OTP_SMS = 'OTP_SMS';
256258
public const FLOW_OOB = 'OOB';
257259

@@ -263,13 +265,15 @@ public function getModelName()
263265
public function getChallengeCancelAllowableValues()
264266
{
265267
return [
268+
self::CHALLENGE_CANCEL__00,
266269
self::CHALLENGE_CANCEL__01,
267270
self::CHALLENGE_CANCEL__02,
268271
self::CHALLENGE_CANCEL__03,
269272
self::CHALLENGE_CANCEL__04,
270273
self::CHALLENGE_CANCEL__05,
271274
self::CHALLENGE_CANCEL__06,
272275
self::CHALLENGE_CANCEL__07,
276+
self::CHALLENGE_CANCEL__08,
273277
];
274278
}
275279
/**
@@ -386,7 +390,7 @@ public function getChallengeCancel()
386390
/**
387391
* Sets challengeCancel
388392
*
389-
* @param string|null $challengeCancel Indicator informing the Access Control Server (ACS) and the Directory Server (DS) that the authentication has been cancelled. For possible values, refer to [3D Secure API reference](https://docs.adyen.com/online-payments/3d-secure/api-reference#mpidata).
393+
* @param string|null $challengeCancel Indicator informing the Access Control Server (ACS) and the Directory Server (DS) that the authentication has been cancelled. Possible values: * **00**: Data element is absent or value has been sent back with the key `challengeCancel`. * **01**: Cardholder selected **Cancel**. * **02**: 3DS Requestor cancelled Authentication. * **03**: Transaction abandoned. * **04**: Transaction timed out at ACS — other timeouts. * **05**: Transaction timed out at ACS — first CReq not received by ACS. * **06**: Transaction error. * **07**: Unknown. * **08**: Transaction time out at SDK.
390394
*
391395
* @return self
392396
*/

src/Adyen/Model/AcsWebhooks/ObjectSerializer.php

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public static function sanitizeForSerialization($data, $type = null, $format = n
8181
}
8282
}
8383
} else {
84-
foreach ($data as $property => $value) {
84+
foreach($data as $property => $value) {
8585
$values[$property] = self::sanitizeForSerialization($value);
8686
}
8787
}
@@ -117,9 +117,7 @@ public static function sanitizeFilename($filename)
117117
*/
118118
public static function sanitizeTimestamp($timestamp)
119119
{
120-
if (!is_string($timestamp)) {
121-
return $timestamp;
122-
}
120+
if (!is_string($timestamp)) return $timestamp;
123121

124122
return preg_replace('/(:\d{2}.\d{6})\d*/', '$1', $timestamp);
125123
}
@@ -242,7 +240,8 @@ public static function deserialize($data, $class, $httpHeaders = null)
242240
/** @var \Psr\Http\Message\StreamInterface $data */
243241

244242
// determine file name
245-
if (is_array($httpHeaders)
243+
if (
244+
is_array($httpHeaders)
246245
&& array_key_exists('Content-Disposition', $httpHeaders)
247246
&& preg_match('/inline; filename=[\'"]?([^\'"\s]+)[\'"]?$/i', $httpHeaders['Content-Disposition'], $match)
248247
) {

src/Adyen/Model/BalanceControl/ObjectSerializer.php

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public static function sanitizeForSerialization($data, $type = null, $format = n
8181
}
8282
}
8383
} else {
84-
foreach ($data as $property => $value) {
84+
foreach($data as $property => $value) {
8585
$values[$property] = self::sanitizeForSerialization($value);
8686
}
8787
}
@@ -117,9 +117,7 @@ public static function sanitizeFilename($filename)
117117
*/
118118
public static function sanitizeTimestamp($timestamp)
119119
{
120-
if (!is_string($timestamp)) {
121-
return $timestamp;
122-
}
120+
if (!is_string($timestamp)) return $timestamp;
123121

124122
return preg_replace('/(:\d{2}.\d{6})\d*/', '$1', $timestamp);
125123
}
@@ -242,7 +240,8 @@ public static function deserialize($data, $class, $httpHeaders = null)
242240
/** @var \Psr\Http\Message\StreamInterface $data */
243241

244242
// determine file name
245-
if (is_array($httpHeaders)
243+
if (
244+
is_array($httpHeaders)
246245
&& array_key_exists('Content-Disposition', $httpHeaders)
247246
&& preg_match('/inline; filename=[\'"]?([^\'"\s]+)[\'"]?$/i', $httpHeaders['Content-Disposition'], $match)
248247
) {

src/Adyen/Model/BalancePlatform/CapabilitySettings.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ public function getAmountPerIndustry()
358358
/**
359359
* Sets amountPerIndustry
360360
*
361-
* @param array<string,\Adyen\Model\BalancePlatform\Amount>|null $amountPerIndustry
361+
* @param array<string,\Adyen\Model\BalancePlatform\Amount>|null $amountPerIndustry
362362
*
363363
* @return self
364364
*/
@@ -382,7 +382,7 @@ public function getAuthorizedCardUsers()
382382
/**
383383
* Sets authorizedCardUsers
384384
*
385-
* @param bool|null $authorizedCardUsers
385+
* @param bool|null $authorizedCardUsers
386386
*
387387
* @return self
388388
*/
@@ -406,7 +406,7 @@ public function getFundingSource()
406406
/**
407407
* Sets fundingSource
408408
*
409-
* @param string[]|null $fundingSource
409+
* @param string[]|null $fundingSource
410410
*
411411
* @return self
412412
*/
@@ -439,7 +439,7 @@ public function getInterval()
439439
/**
440440
* Sets interval
441441
*
442-
* @param string|null $interval
442+
* @param string|null $interval
443443
*
444444
* @return self
445445
*/

src/Adyen/Model/BalancePlatform/ObjectSerializer.php

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public static function sanitizeForSerialization($data, $type = null, $format = n
8181
}
8282
}
8383
} else {
84-
foreach ($data as $property => $value) {
84+
foreach($data as $property => $value) {
8585
$values[$property] = self::sanitizeForSerialization($value);
8686
}
8787
}
@@ -117,9 +117,7 @@ public static function sanitizeFilename($filename)
117117
*/
118118
public static function sanitizeTimestamp($timestamp)
119119
{
120-
if (!is_string($timestamp)) {
121-
return $timestamp;
122-
}
120+
if (!is_string($timestamp)) return $timestamp;
123121

124122
return preg_replace('/(:\d{2}.\d{6})\d*/', '$1', $timestamp);
125123
}
@@ -242,7 +240,8 @@ public static function deserialize($data, $class, $httpHeaders = null)
242240
/** @var \Psr\Http\Message\StreamInterface $data */
243241

244242
// determine file name
245-
if (is_array($httpHeaders)
243+
if (
244+
is_array($httpHeaders)
246245
&& array_key_exists('Content-Disposition', $httpHeaders)
247246
&& preg_match('/inline; filename=[\'"]?([^\'"\s]+)[\'"]?$/i', $httpHeaders['Content-Disposition'], $match)
248247
) {

src/Adyen/Model/BinLookup/ObjectSerializer.php

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public static function sanitizeForSerialization($data, $type = null, $format = n
8181
}
8282
}
8383
} else {
84-
foreach ($data as $property => $value) {
84+
foreach($data as $property => $value) {
8585
$values[$property] = self::sanitizeForSerialization($value);
8686
}
8787
}
@@ -117,9 +117,7 @@ public static function sanitizeFilename($filename)
117117
*/
118118
public static function sanitizeTimestamp($timestamp)
119119
{
120-
if (!is_string($timestamp)) {
121-
return $timestamp;
122-
}
120+
if (!is_string($timestamp)) return $timestamp;
123121

124122
return preg_replace('/(:\d{2}.\d{6})\d*/', '$1', $timestamp);
125123
}
@@ -242,7 +240,8 @@ public static function deserialize($data, $class, $httpHeaders = null)
242240
/** @var \Psr\Http\Message\StreamInterface $data */
243241

244242
// determine file name
245-
if (is_array($httpHeaders)
243+
if (
244+
is_array($httpHeaders)
246245
&& array_key_exists('Content-Disposition', $httpHeaders)
247246
&& preg_match('/inline; filename=[\'"]?([^\'"\s]+)[\'"]?$/i', $httpHeaders['Content-Disposition'], $match)
248247
) {

src/Adyen/Model/Checkout/CheckoutPaymentMethod.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1999,7 +1999,7 @@ public function getShopperEmail()
19991999
/**
20002000
* Sets shopperEmail
20012001
*
2002-
* @param string $shopperEmail
2002+
* @param string $shopperEmail
20032003
*
20042004
* @return self
20052005
*/
@@ -2023,7 +2023,7 @@ public function getTelephoneNumber()
20232023
/**
20242024
* Sets telephoneNumber
20252025
*
2026-
* @param string $telephoneNumber
2026+
* @param string $telephoneNumber
20272027
*
20282028
* @return self
20292029
*/

src/Adyen/Model/Checkout/MbwayDetails.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ public function getShopperEmail()
361361
/**
362362
* Sets shopperEmail
363363
*
364-
* @param string $shopperEmail
364+
* @param string $shopperEmail
365365
*
366366
* @return self
367367
*/
@@ -385,7 +385,7 @@ public function getTelephoneNumber()
385385
/**
386386
* Sets telephoneNumber
387387
*
388-
* @param string $telephoneNumber
388+
* @param string $telephoneNumber
389389
*
390390
* @return self
391391
*/

src/Adyen/Model/Checkout/ObjectSerializer.php

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public static function sanitizeForSerialization($data, $type = null, $format = n
8181
}
8282
}
8383
} else {
84-
foreach ($data as $property => $value) {
84+
foreach($data as $property => $value) {
8585
$values[$property] = self::sanitizeForSerialization($value);
8686
}
8787
}
@@ -117,9 +117,7 @@ public static function sanitizeFilename($filename)
117117
*/
118118
public static function sanitizeTimestamp($timestamp)
119119
{
120-
if (!is_string($timestamp)) {
121-
return $timestamp;
122-
}
120+
if (!is_string($timestamp)) return $timestamp;
123121

124122
return preg_replace('/(:\d{2}.\d{6})\d*/', '$1', $timestamp);
125123
}
@@ -242,7 +240,8 @@ public static function deserialize($data, $class, $httpHeaders = null)
242240
/** @var \Psr\Http\Message\StreamInterface $data */
243241

244242
// determine file name
245-
if (is_array($httpHeaders)
243+
if (
244+
is_array($httpHeaders)
246245
&& array_key_exists('Content-Disposition', $httpHeaders)
247246
&& preg_match('/inline; filename=[\'"]?([^\'"\s]+)[\'"]?$/i', $httpHeaders['Content-Disposition'], $match)
248247
) {

src/Adyen/Model/Checkout/VippsDetails.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,7 @@ public function getTelephoneNumber()
415415
/**
416416
* Sets telephoneNumber
417417
*
418-
* @param string $telephoneNumber
418+
* @param string $telephoneNumber
419419
*
420420
* @return self
421421
*/

0 commit comments

Comments
 (0)