Skip to content

Commit 32daea0

Browse files
[reformat][adyen-sdk-automation] automated change
1 parent 6d4d320 commit 32daea0

File tree

47 files changed

+205
-147
lines changed

Some content is hidden

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

47 files changed

+205
-147
lines changed

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/AdditionalDataCommon.php

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,11 @@ class AdditionalDataCommon implements ModelInterface, ArrayAccess, \JsonSerializ
4747
'requestedTestErrorResponseCode' => 'string',
4848
'allowPartialAuth' => 'string',
4949
'authorisationType' => 'string',
50+
'autoRescue' => 'string',
5051
'customRoutingFlag' => 'string',
5152
'industryUsage' => 'string',
5253
'manualCapture' => 'string',
54+
'maxDaysToRescue' => 'string',
5355
'networkTxReference' => 'string',
5456
'overwriteBrand' => 'string',
5557
'subMerchantCity' => 'string',
@@ -73,9 +75,11 @@ class AdditionalDataCommon implements ModelInterface, ArrayAccess, \JsonSerializ
7375
'requestedTestErrorResponseCode' => null,
7476
'allowPartialAuth' => null,
7577
'authorisationType' => null,
78+
'autoRescue' => null,
7679
'customRoutingFlag' => null,
7780
'industryUsage' => null,
7881
'manualCapture' => null,
82+
'maxDaysToRescue' => null,
7983
'networkTxReference' => null,
8084
'overwriteBrand' => null,
8185
'subMerchantCity' => null,
@@ -97,9 +101,11 @@ class AdditionalDataCommon implements ModelInterface, ArrayAccess, \JsonSerializ
97101
'requestedTestErrorResponseCode' => false,
98102
'allowPartialAuth' => false,
99103
'authorisationType' => false,
104+
'autoRescue' => false,
100105
'customRoutingFlag' => false,
101106
'industryUsage' => false,
102107
'manualCapture' => false,
108+
'maxDaysToRescue' => false,
103109
'networkTxReference' => false,
104110
'overwriteBrand' => false,
105111
'subMerchantCity' => false,
@@ -201,9 +207,11 @@ public function isNullableSetToNull(string $property): bool
201207
'requestedTestErrorResponseCode' => 'RequestedTestErrorResponseCode',
202208
'allowPartialAuth' => 'allowPartialAuth',
203209
'authorisationType' => 'authorisationType',
210+
'autoRescue' => 'autoRescue',
204211
'customRoutingFlag' => 'customRoutingFlag',
205212
'industryUsage' => 'industryUsage',
206213
'manualCapture' => 'manualCapture',
214+
'maxDaysToRescue' => 'maxDaysToRescue',
207215
'networkTxReference' => 'networkTxReference',
208216
'overwriteBrand' => 'overwriteBrand',
209217
'subMerchantCity' => 'subMerchantCity',
@@ -225,9 +233,11 @@ public function isNullableSetToNull(string $property): bool
225233
'requestedTestErrorResponseCode' => 'setRequestedTestErrorResponseCode',
226234
'allowPartialAuth' => 'setAllowPartialAuth',
227235
'authorisationType' => 'setAuthorisationType',
236+
'autoRescue' => 'setAutoRescue',
228237
'customRoutingFlag' => 'setCustomRoutingFlag',
229238
'industryUsage' => 'setIndustryUsage',
230239
'manualCapture' => 'setManualCapture',
240+
'maxDaysToRescue' => 'setMaxDaysToRescue',
231241
'networkTxReference' => 'setNetworkTxReference',
232242
'overwriteBrand' => 'setOverwriteBrand',
233243
'subMerchantCity' => 'setSubMerchantCity',
@@ -249,9 +259,11 @@ public function isNullableSetToNull(string $property): bool
249259
'requestedTestErrorResponseCode' => 'getRequestedTestErrorResponseCode',
250260
'allowPartialAuth' => 'getAllowPartialAuth',
251261
'authorisationType' => 'getAuthorisationType',
262+
'autoRescue' => 'getAutoRescue',
252263
'customRoutingFlag' => 'getCustomRoutingFlag',
253264
'industryUsage' => 'getIndustryUsage',
254265
'manualCapture' => 'getManualCapture',
266+
'maxDaysToRescue' => 'getMaxDaysToRescue',
255267
'networkTxReference' => 'getNetworkTxReference',
256268
'overwriteBrand' => 'getOverwriteBrand',
257269
'subMerchantCity' => 'getSubMerchantCity',
@@ -338,9 +350,11 @@ public function __construct(array $data = null)
338350
$this->setIfExists('requestedTestErrorResponseCode', $data ?? [], null);
339351
$this->setIfExists('allowPartialAuth', $data ?? [], null);
340352
$this->setIfExists('authorisationType', $data ?? [], null);
353+
$this->setIfExists('autoRescue', $data ?? [], null);
341354
$this->setIfExists('customRoutingFlag', $data ?? [], null);
342355
$this->setIfExists('industryUsage', $data ?? [], null);
343356
$this->setIfExists('manualCapture', $data ?? [], null);
357+
$this->setIfExists('maxDaysToRescue', $data ?? [], null);
344358
$this->setIfExists('networkTxReference', $data ?? [], null);
345359
$this->setIfExists('overwriteBrand', $data ?? [], null);
346360
$this->setIfExists('subMerchantCity', $data ?? [], null);
@@ -476,6 +490,30 @@ public function setAuthorisationType($authorisationType)
476490
return $this;
477491
}
478492

493+
/**
494+
* Gets autoRescue
495+
*
496+
* @return string|null
497+
*/
498+
public function getAutoRescue()
499+
{
500+
return $this->container['autoRescue'];
501+
}
502+
503+
/**
504+
* Sets autoRescue
505+
*
506+
* @param string|null $autoRescue Set to **true** to enable [Auto Rescue](https://docs.adyen.com/online-payments/auto-rescue/) for a transaction. Use the `maxDaysToRescue` to specify a rescue window.
507+
*
508+
* @return self
509+
*/
510+
public function setAutoRescue($autoRescue)
511+
{
512+
$this->container['autoRescue'] = $autoRescue;
513+
514+
return $this;
515+
}
516+
479517
/**
480518
* Gets customRoutingFlag
481519
*
@@ -558,6 +596,30 @@ public function setManualCapture($manualCapture)
558596
return $this;
559597
}
560598

599+
/**
600+
* Gets maxDaysToRescue
601+
*
602+
* @return string|null
603+
*/
604+
public function getMaxDaysToRescue()
605+
{
606+
return $this->container['maxDaysToRescue'];
607+
}
608+
609+
/**
610+
* Sets maxDaysToRescue
611+
*
612+
* @param string|null $maxDaysToRescue The rescue window for a transaction, in days, when `autoRescue` is set to **true**. You can specify a value between 1 and 48. * For [cards](https://docs.adyen.com/online-payments/auto-rescue/cards/), the default is one calendar month. * For [SEPA](https://docs.adyen.com/online-payments/auto-rescue/sepa/), the default is 42 days.
613+
*
614+
* @return self
615+
*/
616+
public function setMaxDaysToRescue($maxDaysToRescue)
617+
{
618+
$this->container['maxDaysToRescue'] = $maxDaysToRescue;
619+
620+
return $this;
621+
}
622+
561623
/**
562624
* Gets networkTxReference
563625
*

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)