Skip to content

Commit 17f7997

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

File tree

61 files changed

+843
-411
lines changed

Some content is hidden

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

61 files changed

+843
-411
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/CostEstimateResponse.php

Lines changed: 6 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,7 @@ class CostEstimateResponse implements ModelInterface, ArrayAccess, \JsonSerializ
4747
'cardBin' => '\Adyen\Model\BinLookup\CardBin',
4848
'costEstimateAmount' => '\Adyen\Model\BinLookup\Amount',
4949
'costEstimateReference' => 'string',
50-
'resultCode' => 'string',
51-
'surchargeType' => 'string'
50+
'resultCode' => 'string'
5251
];
5352

5453
/**
@@ -62,8 +61,7 @@ class CostEstimateResponse implements ModelInterface, ArrayAccess, \JsonSerializ
6261
'cardBin' => null,
6362
'costEstimateAmount' => null,
6463
'costEstimateReference' => null,
65-
'resultCode' => null,
66-
'surchargeType' => null
64+
'resultCode' => null
6765
];
6866

6967
/**
@@ -75,8 +73,7 @@ class CostEstimateResponse implements ModelInterface, ArrayAccess, \JsonSerializ
7573
'cardBin' => false,
7674
'costEstimateAmount' => false,
7775
'costEstimateReference' => false,
78-
'resultCode' => false,
79-
'surchargeType' => false
76+
'resultCode' => false
8077
];
8178

8279
/**
@@ -168,8 +165,7 @@ public function isNullableSetToNull(string $property): bool
168165
'cardBin' => 'cardBin',
169166
'costEstimateAmount' => 'costEstimateAmount',
170167
'costEstimateReference' => 'costEstimateReference',
171-
'resultCode' => 'resultCode',
172-
'surchargeType' => 'surchargeType'
168+
'resultCode' => 'resultCode'
173169
];
174170

175171
/**
@@ -181,8 +177,7 @@ public function isNullableSetToNull(string $property): bool
181177
'cardBin' => 'setCardBin',
182178
'costEstimateAmount' => 'setCostEstimateAmount',
183179
'costEstimateReference' => 'setCostEstimateReference',
184-
'resultCode' => 'setResultCode',
185-
'surchargeType' => 'setSurchargeType'
180+
'resultCode' => 'setResultCode'
186181
];
187182

188183
/**
@@ -194,8 +189,7 @@ public function isNullableSetToNull(string $property): bool
194189
'cardBin' => 'getCardBin',
195190
'costEstimateAmount' => 'getCostEstimateAmount',
196191
'costEstimateReference' => 'getCostEstimateReference',
197-
'resultCode' => 'getResultCode',
198-
'surchargeType' => 'getSurchargeType'
192+
'resultCode' => 'getResultCode'
199193
];
200194

201195
/**
@@ -259,7 +253,6 @@ public function __construct(array $data = null)
259253
$this->setIfExists('costEstimateAmount', $data ?? [], null);
260254
$this->setIfExists('costEstimateReference', $data ?? [], null);
261255
$this->setIfExists('resultCode', $data ?? [], null);
262-
$this->setIfExists('surchargeType', $data ?? [], null);
263256
}
264257

265258
/**
@@ -399,30 +392,6 @@ public function setResultCode($resultCode)
399392

400393
return $this;
401394
}
402-
403-
/**
404-
* Gets surchargeType
405-
*
406-
* @return string|null
407-
*/
408-
public function getSurchargeType()
409-
{
410-
return $this->container['surchargeType'];
411-
}
412-
413-
/**
414-
* Sets surchargeType
415-
*
416-
* @param string|null $surchargeType Indicates the way the charges can be passed on to the cardholder. The following values are possible: * `ZERO` - the charges are not allowed to pass on * `PASSTHROUGH` - the charges can be passed on * `UNLIMITED` - there is no limit on how much surcharge is passed on
417-
*
418-
* @return self
419-
*/
420-
public function setSurchargeType($surchargeType)
421-
{
422-
$this->container['surchargeType'] = $surchargeType;
423-
424-
return $this;
425-
}
426395
/**
427396
* Returns true if offset exists. False otherwise.
428397
*

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
) {

0 commit comments

Comments
 (0)