Skip to content

Commit 2232779

Browse files
author
Adyen Automation
committed
[reformat][adyen-sdk-automation] automated change
1 parent 7c5244a commit 2232779

File tree

95 files changed

+5540
-393
lines changed

Some content is hidden

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

95 files changed

+5540
-393
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/BankAccountDetails.php

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ class BankAccountDetails implements ModelInterface, ArrayAccess, \JsonSerializab
4646
protected static $openAPITypes = [
4747
'accountNumber' => 'string',
4848
'accountType' => 'string',
49+
'branchNumber' => 'string',
4950
'formFactor' => 'string',
5051
'iban' => 'string',
5152
'routingNumber' => 'string',
@@ -63,6 +64,7 @@ class BankAccountDetails implements ModelInterface, ArrayAccess, \JsonSerializab
6364
protected static $openAPIFormats = [
6465
'accountNumber' => null,
6566
'accountType' => null,
67+
'branchNumber' => null,
6668
'formFactor' => null,
6769
'iban' => null,
6870
'routingNumber' => null,
@@ -78,6 +80,7 @@ class BankAccountDetails implements ModelInterface, ArrayAccess, \JsonSerializab
7880
protected static $openAPINullables = [
7981
'accountNumber' => false,
8082
'accountType' => false,
83+
'branchNumber' => false,
8184
'formFactor' => false,
8285
'iban' => false,
8386
'routingNumber' => false,
@@ -173,6 +176,7 @@ public function isNullableSetToNull(string $property): bool
173176
protected static $attributeMap = [
174177
'accountNumber' => 'accountNumber',
175178
'accountType' => 'accountType',
179+
'branchNumber' => 'branchNumber',
176180
'formFactor' => 'formFactor',
177181
'iban' => 'iban',
178182
'routingNumber' => 'routingNumber',
@@ -188,6 +192,7 @@ public function isNullableSetToNull(string $property): bool
188192
protected static $setters = [
189193
'accountNumber' => 'setAccountNumber',
190194
'accountType' => 'setAccountType',
195+
'branchNumber' => 'setBranchNumber',
191196
'formFactor' => 'setFormFactor',
192197
'iban' => 'setIban',
193198
'routingNumber' => 'setRoutingNumber',
@@ -203,6 +208,7 @@ public function isNullableSetToNull(string $property): bool
203208
protected static $getters = [
204209
'accountNumber' => 'getAccountNumber',
205210
'accountType' => 'getAccountType',
211+
'branchNumber' => 'getBranchNumber',
206212
'formFactor' => 'getFormFactor',
207213
'iban' => 'getIban',
208214
'routingNumber' => 'getRoutingNumber',
@@ -269,6 +275,7 @@ public function __construct(array $data = null)
269275
{
270276
$this->setIfExists('accountNumber', $data ?? [], null);
271277
$this->setIfExists('accountType', $data ?? [], null);
278+
$this->setIfExists('branchNumber', $data ?? [], null);
272279
$this->setIfExists('formFactor', $data ?? [], null);
273280
$this->setIfExists('iban', $data ?? [], null);
274281
$this->setIfExists('routingNumber', $data ?? [], null);
@@ -369,6 +376,30 @@ public function setAccountType($accountType)
369376
return $this;
370377
}
371378

379+
/**
380+
* Gets branchNumber
381+
*
382+
* @return string|null
383+
*/
384+
public function getBranchNumber()
385+
{
386+
return $this->container['branchNumber'];
387+
}
388+
389+
/**
390+
* Sets branchNumber
391+
*
392+
* @param string|null $branchNumber The bank account branch number, without separators or whitespace
393+
*
394+
* @return self
395+
*/
396+
public function setBranchNumber($branchNumber)
397+
{
398+
$this->container['branchNumber'] = $branchNumber;
399+
400+
return $this;
401+
}
402+
372403
/**
373404
* Gets formFactor
374405
*

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,7 @@ public function getModelName()
302302
public const PRIORITIES_INTERNAL = 'internal';
303303
public const PRIORITIES_REGULAR = 'regular';
304304
public const PRIORITIES_WIRE = 'wire';
305+
public const REASON_ACCOUNT_HIERARCHY_NOT_ACTIVE = 'accountHierarchyNotActive';
305306
public const REASON_AMOUNT_LIMIT_EXCEEDED = 'amountLimitExceeded';
306307
public const REASON_APPROVED = 'approved';
307308
public const REASON_BALANCE_ACCOUNT_TEMPORARILY_BLOCKED_BY_TRANSACTION_RULE = 'balanceAccountTemporarilyBlockedByTransactionRule';
@@ -313,12 +314,15 @@ public function getModelName()
313314
public const REASON_COUNTERPARTY_BANK_UNAVAILABLE = 'counterpartyBankUnavailable';
314315
public const REASON_DECLINED = 'declined';
315316
public const REASON_DECLINED_BY_TRANSACTION_RULE = 'declinedByTransactionRule';
317+
public const REASON_DIRECT_DEBIT_NOT_SUPPORTED = 'directDebitNotSupported';
316318
public const REASON_ERROR = 'error';
317319
public const REASON_NOT_ENOUGH_BALANCE = 'notEnoughBalance';
318320
public const REASON_PENDING_APPROVAL = 'pendingApproval';
321+
public const REASON_PENDING_EXECUTION = 'pendingExecution';
319322
public const REASON_REFUSED_BY_COUNTERPARTY_BANK = 'refusedByCounterpartyBank';
320323
public const REASON_ROUTE_NOT_FOUND = 'routeNotFound';
321324
public const REASON_SCA_FAILED = 'scaFailed';
325+
public const REASON_TRANSFER_INSTRUMENT_DOES_NOT_EXIST = 'transferInstrumentDoesNotExist';
322326
public const REASON_UNKNOWN = 'unknown';
323327
public const STATUS_ACTIVE = 'active';
324328
public const STATUS_INACTIVE = 'inactive';
@@ -362,6 +366,7 @@ public function getPrioritiesAllowableValues()
362366
public function getReasonAllowableValues()
363367
{
364368
return [
369+
self::REASON_ACCOUNT_HIERARCHY_NOT_ACTIVE,
365370
self::REASON_AMOUNT_LIMIT_EXCEEDED,
366371
self::REASON_APPROVED,
367372
self::REASON_BALANCE_ACCOUNT_TEMPORARILY_BLOCKED_BY_TRANSACTION_RULE,
@@ -373,12 +378,15 @@ public function getReasonAllowableValues()
373378
self::REASON_COUNTERPARTY_BANK_UNAVAILABLE,
374379
self::REASON_DECLINED,
375380
self::REASON_DECLINED_BY_TRANSACTION_RULE,
381+
self::REASON_DIRECT_DEBIT_NOT_SUPPORTED,
376382
self::REASON_ERROR,
377383
self::REASON_NOT_ENOUGH_BALANCE,
378384
self::REASON_PENDING_APPROVAL,
385+
self::REASON_PENDING_EXECUTION,
379386
self::REASON_REFUSED_BY_COUNTERPARTY_BANK,
380387
self::REASON_ROUTE_NOT_FOUND,
381388
self::REASON_SCA_FAILED,
389+
self::REASON_TRANSFER_INSTRUMENT_DOES_NOT_EXIST,
382390
self::REASON_UNKNOWN,
383391
];
384392
}

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/BalancePlatform/PlatformPaymentConfiguration.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ public function getSettlementDelayDays()
320320
/**
321321
* Sets settlementDelayDays
322322
*
323-
* @param int|null $settlementDelayDays Specifies after how many business days the funds in a [settlement batch](https://docs.adyen.com/platforms/settle-funds/sales-day-settlement#settlement-batch) are made available in this balance account. Possible values: **0** to **10**, or **null**. * Setting this value to an integer enables Sales day settlement in this balance account. See how Sales day settlement works in your [marketplace](https://docs.adyen.com/marketplaces/settle-funds/sales-day-settlement) or [platform](https://docs.adyen.com/platforms/settle-funds/sales-day-settlement). * Setting this value to **null** enables Pass-through settlement in this balance account. See how Pass-through settlement works in your [marketplace](https://docs.adyen.com/marketplaces/settle-funds/pass-through-settlement) or [platform](https://docs.adyen.com/platforms/settle-funds/pass-through-settlement). Default value: **null**.
323+
* @param int|null $settlementDelayDays Specifies after how many business days the funds in a [settlement batch](https://docs.adyen.com/platforms/settle-funds/sales-day-settlement#settlement-batch) are made available in this balance account. Possible values: **1** to **10**, or **null**. * Setting this value to an integer enables Sales day settlement in this balance account. See how Sales day settlement works in your [marketplace](https://docs.adyen.com/marketplaces/settle-funds/sales-day-settlement) or [platform](https://docs.adyen.com/platforms/settle-funds/sales-day-settlement). * Setting this value to **null** enables Pass-through settlement in this balance account. See how Pass-through settlement works in your [marketplace](https://docs.adyen.com/marketplaces/settle-funds/pass-through-settlement) or [platform](https://docs.adyen.com/platforms/settle-funds/pass-through-settlement). Default value: **null**.
324324
*
325325
* @return self
326326
*/

src/Adyen/Model/BalancePlatform/RegisterSCARequest.php

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ class RegisterSCARequest implements ModelInterface, ArrayAccess, \JsonSerializab
4444
* @var string[]
4545
*/
4646
protected static $openAPITypes = [
47+
'name' => 'string',
4748
'paymentInstrumentId' => 'string',
4849
'strongCustomerAuthentication' => '\Adyen\Model\BalancePlatform\DelegatedAuthenticationData'
4950
];
@@ -56,6 +57,7 @@ class RegisterSCARequest implements ModelInterface, ArrayAccess, \JsonSerializab
5657
* @psalm-var array<string, string|null>
5758
*/
5859
protected static $openAPIFormats = [
60+
'name' => null,
5961
'paymentInstrumentId' => null,
6062
'strongCustomerAuthentication' => null
6163
];
@@ -66,6 +68,7 @@ class RegisterSCARequest implements ModelInterface, ArrayAccess, \JsonSerializab
6668
* @var boolean[]
6769
*/
6870
protected static $openAPINullables = [
71+
'name' => false,
6972
'paymentInstrumentId' => false,
7073
'strongCustomerAuthentication' => false
7174
];
@@ -156,6 +159,7 @@ public function isNullableSetToNull(string $property): bool
156159
* @var string[]
157160
*/
158161
protected static $attributeMap = [
162+
'name' => 'name',
159163
'paymentInstrumentId' => 'paymentInstrumentId',
160164
'strongCustomerAuthentication' => 'strongCustomerAuthentication'
161165
];
@@ -166,6 +170,7 @@ public function isNullableSetToNull(string $property): bool
166170
* @var string[]
167171
*/
168172
protected static $setters = [
173+
'name' => 'setName',
169174
'paymentInstrumentId' => 'setPaymentInstrumentId',
170175
'strongCustomerAuthentication' => 'setStrongCustomerAuthentication'
171176
];
@@ -176,6 +181,7 @@ public function isNullableSetToNull(string $property): bool
176181
* @var string[]
177182
*/
178183
protected static $getters = [
184+
'name' => 'getName',
179185
'paymentInstrumentId' => 'getPaymentInstrumentId',
180186
'strongCustomerAuthentication' => 'getStrongCustomerAuthentication'
181187
];
@@ -237,6 +243,7 @@ public function getModelName()
237243
*/
238244
public function __construct(array $data = null)
239245
{
246+
$this->setIfExists('name', $data ?? [], null);
240247
$this->setIfExists('paymentInstrumentId', $data ?? [], null);
241248
$this->setIfExists('strongCustomerAuthentication', $data ?? [], null);
242249
}
@@ -289,6 +296,30 @@ public function valid()
289296
}
290297

291298

299+
/**
300+
* Gets name
301+
*
302+
* @return string|null
303+
*/
304+
public function getName()
305+
{
306+
return $this->container['name'];
307+
}
308+
309+
/**
310+
* Sets name
311+
*
312+
* @param string|null $name The name of the SCA device that you are registering. You can use it to help your users identify the device. If you do not specify a `name`, Adyen automatically generates one.
313+
*
314+
* @return self
315+
*/
316+
public function setName($name)
317+
{
318+
$this->container['name'] = $name;
319+
320+
return $this;
321+
}
322+
292323
/**
293324
* Gets paymentInstrumentId
294325
*

0 commit comments

Comments
 (0)