Skip to content

Commit 0f81b32

Browse files
author
Adyen Automation
committed
[reformat][adyen-sdk-automation] automated change
1 parent d8b3427 commit 0f81b32

File tree

118 files changed

+3112
-277
lines changed

Some content is hidden

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

118 files changed

+3112
-277
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/CostEstimateRequest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -611,7 +611,7 @@ public function getShopperReference()
611611
/**
612612
* Sets shopperReference
613613
*
614-
* @param string|null $shopperReference Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. Minimum length: 3 characters. > Your reference must not include personally identifiable information (PII), for example name or email address.
614+
* @param string|null $shopperReference Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address.
615615
*
616616
* @return self
617617
*/

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,7 @@ public function getThreeDSVersion()
487487
/**
488488
* Sets threeDSVersion
489489
*
490-
* @param string|null $threeDSVersion Indicates your preference for the 3D Secure version. > If you use this parameter, you override the checks from Adyen's Authentication Engine. We recommend to use this field only if you have an extensive knowledge of 3D Secure. Possible values: * **1.0.2**: Apply 3D Secure version 1.0.2. * **2.1.0**: Apply 3D Secure version 2.1.0. * **2.2.0**: Apply 3D Secure version 2.2.0. If the issuer does not support version 2.2.0, we will fall back to 2.1.0. The following rules apply: * If you prefer 2.1.0 or 2.2.0 but we receive a negative `transStatus` in the `ARes`, we will apply the fallback policy configured in your account. For example, if the configuration is to fall back to 3D Secure 1, we will apply version 1.0.2. * If you prefer 2.1.0 or 2.2.0 but the BIN is not enrolled, you will receive an error.
490+
* @param string|null $threeDSVersion Indicates your preference for the 3D Secure version. > If you use this parameter, you override the checks from Adyen's Authentication Engine. We recommend to use this field only if you have an extensive knowledge of 3D Secure. Possible values: * **2.1.0**: Apply 3D Secure version 2.1.0. * **2.2.0**: Apply 3D Secure version 2.2.0. If the issuer does not support version 2.2.0, we will fall back to 2.1.0. The following rules apply: * If you prefer 2.1.0 or 2.2.0 but we receive a negative `transStatus` in the `ARes`, we will apply the fallback policy configured in your account. * If you the BIN is not enrolled, you will receive an error.
491491
*
492492
* @return self
493493
*/

src/Adyen/Model/Checkout/BalanceCheckRequest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1487,7 +1487,7 @@ public function getShopperReference()
14871487
/**
14881488
* Sets shopperReference
14891489
*
1490-
* @param string|null $shopperReference Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. Minimum length: 3 characters. > Your reference must not include personally identifiable information (PII), for example name or email address.
1490+
* @param string|null $shopperReference Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address.
14911491
*
14921492
* @return self
14931493
*/

src/Adyen/Model/Checkout/CheckoutPaymentMethod.php

Lines changed: 33 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ class CheckoutPaymentMethod implements ModelInterface, ArrayAccess, \JsonSeriali
106106
'payerSelected' => 'string',
107107
'shopperAccountIdentifier' => 'string',
108108
'virtualPaymentAddress' => 'string',
109+
'pixRecurring' => '\Adyen\Model\Checkout\PixRecurring',
109110
'bank' => 'string',
110111
'clientType' => 'string',
111112
'identification' => 'string',
@@ -189,6 +190,7 @@ class CheckoutPaymentMethod implements ModelInterface, ArrayAccess, \JsonSeriali
189190
'payerSelected' => null,
190191
'shopperAccountIdentifier' => null,
191192
'virtualPaymentAddress' => null,
193+
'pixRecurring' => null,
192194
'bank' => null,
193195
'clientType' => null,
194196
'identification' => null,
@@ -270,6 +272,7 @@ class CheckoutPaymentMethod implements ModelInterface, ArrayAccess, \JsonSeriali
270272
'payerSelected' => false,
271273
'shopperAccountIdentifier' => false,
272274
'virtualPaymentAddress' => false,
275+
'pixRecurring' => false,
273276
'bank' => false,
274277
'clientType' => false,
275278
'identification' => false,
@@ -431,6 +434,7 @@ public function isNullableSetToNull(string $property): bool
431434
'payerSelected' => 'payerSelected',
432435
'shopperAccountIdentifier' => 'shopperAccountIdentifier',
433436
'virtualPaymentAddress' => 'virtualPaymentAddress',
437+
'pixRecurring' => 'pixRecurring',
434438
'bank' => 'bank',
435439
'clientType' => 'clientType',
436440
'identification' => 'identification',
@@ -512,6 +516,7 @@ public function isNullableSetToNull(string $property): bool
512516
'payerSelected' => 'setPayerSelected',
513517
'shopperAccountIdentifier' => 'setShopperAccountIdentifier',
514518
'virtualPaymentAddress' => 'setVirtualPaymentAddress',
519+
'pixRecurring' => 'setPixRecurring',
515520
'bank' => 'setBank',
516521
'clientType' => 'setClientType',
517522
'identification' => 'setIdentification',
@@ -593,6 +598,7 @@ public function isNullableSetToNull(string $property): bool
593598
'payerSelected' => 'getPayerSelected',
594599
'shopperAccountIdentifier' => 'getShopperAccountIdentifier',
595600
'virtualPaymentAddress' => 'getVirtualPaymentAddress',
601+
'pixRecurring' => 'getPixRecurring',
596602
'bank' => 'getBank',
597603
'clientType' => 'getClientType',
598604
'identification' => 'getIdentification',
@@ -724,6 +730,7 @@ public function __construct(array $data = null)
724730
$this->setIfExists('payerSelected', $data ?? [], null);
725731
$this->setIfExists('shopperAccountIdentifier', $data ?? [], null);
726732
$this->setIfExists('virtualPaymentAddress', $data ?? [], null);
733+
$this->setIfExists('pixRecurring', $data ?? [], null);
727734
$this->setIfExists('bank', $data ?? [], null);
728735
$this->setIfExists('clientType', $data ?? [], null);
729736
$this->setIfExists('identification', $data ?? [], null);
@@ -2033,7 +2040,7 @@ public function getShopperEmail()
20332040
/**
20342041
* Sets shopperEmail
20352042
*
2036-
* @param string $shopperEmail
2043+
* @param string $shopperEmail
20372044
*
20382045
* @return self
20392046
*/
@@ -2057,7 +2064,7 @@ public function getTelephoneNumber()
20572064
/**
20582065
* Sets telephoneNumber
20592066
*
2060-
* @param string $telephoneNumber
2067+
* @param string $telephoneNumber
20612068
*
20622069
* @return self
20632070
*/
@@ -2308,6 +2315,30 @@ public function setVirtualPaymentAddress($virtualPaymentAddress)
23082315
return $this;
23092316
}
23102317

2318+
/**
2319+
* Gets pixRecurring
2320+
*
2321+
* @return \Adyen\Model\Checkout\PixRecurring|null
2322+
*/
2323+
public function getPixRecurring()
2324+
{
2325+
return $this->container['pixRecurring'];
2326+
}
2327+
2328+
/**
2329+
* Sets pixRecurring
2330+
*
2331+
* @param \Adyen\Model\Checkout\PixRecurring|null $pixRecurring pixRecurring
2332+
*
2333+
* @return self
2334+
*/
2335+
public function setPixRecurring($pixRecurring)
2336+
{
2337+
$this->container['pixRecurring'] = $pixRecurring;
2338+
2339+
return $this;
2340+
}
2341+
23112342
/**
23122343
* Gets bank
23132344
*

src/Adyen/Model/Checkout/CreateCheckoutSessionRequest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1991,7 +1991,7 @@ public function getShopperReference()
19911991
/**
19921992
* Sets shopperReference
19931993
*
1994-
* @param string|null $shopperReference Your reference to uniquely identify this shopper, for example user ID or account ID. Minimum length: 3 characters. > Your reference must not include personally identifiable information (PII), for example name or email address.
1994+
* @param string|null $shopperReference Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address.
19951995
*
19961996
* @return self
19971997
*/

0 commit comments

Comments
 (0)