Skip to content

Commit 428b005

Browse files
[adyen-sdk-automation] automated changes
1 parent 852e733 commit 428b005

File tree

161 files changed

+8161
-41064
lines changed

Some content is hidden

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

161 files changed

+8161
-41064
lines changed

src/Adyen/Model/LegalEntityManagement/SGLocalAccountIdentification.php renamed to src/Adyen/Model/BalancePlatform/ApproveAssociationRequest.php

Lines changed: 91 additions & 85 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<?php
22

33
/**
4-
* Legal Entity Management API
4+
* Configuration API
55
*
6-
* The version of the OpenAPI document: 4
6+
* The version of the OpenAPI document: 2
77
* Generated by: https://openapi-generator.tech
88
* OpenAPI Generator version: 6.0.1
99
*
@@ -13,18 +13,18 @@
1313
*/
1414

1515

16-
namespace Adyen\Model\LegalEntityManagement;
16+
namespace Adyen\Model\BalancePlatform;
1717

1818
use ArrayAccess;
19-
use Adyen\Model\LegalEntityManagement\ObjectSerializer;
19+
use Adyen\Model\BalancePlatform\ObjectSerializer;
2020

2121
/**
22-
* SGLocalAccountIdentification Class Doc Comment
22+
* ApproveAssociationRequest Class Doc Comment
2323
*
2424
* @package Adyen
2525
* @implements ArrayAccess<string, mixed>
2626
*/
27-
class SGLocalAccountIdentification implements ModelInterface, ArrayAccess, \JsonSerializable
27+
class ApproveAssociationRequest implements ModelInterface, ArrayAccess, \JsonSerializable
2828
{
2929
public const DISCRIMINATOR = null;
3030

@@ -33,17 +33,18 @@ class SGLocalAccountIdentification implements ModelInterface, ArrayAccess, \Json
3333
*
3434
* @var string
3535
*/
36-
protected static $openAPIModelName = 'SGLocalAccountIdentification';
36+
protected static $openAPIModelName = 'ApproveAssociationRequest';
3737

3838
/**
3939
* Array of property to type mappings. Used for (de)serialization
4040
*
4141
* @var string[]
4242
*/
4343
protected static $openAPITypes = [
44-
'accountNumber' => 'string',
45-
'bic' => 'string',
46-
'type' => 'string'
44+
'entityId' => 'string',
45+
'entityType' => '\Adyen\Model\BalancePlatform\ScaEntityType',
46+
'scaDeviceIds' => 'string[]',
47+
'status' => '\Adyen\Model\BalancePlatform\AssociationStatus'
4748
];
4849

4950
/**
@@ -54,9 +55,10 @@ class SGLocalAccountIdentification implements ModelInterface, ArrayAccess, \Json
5455
* @psalm-var array<string, string|null>
5556
*/
5657
protected static $openAPIFormats = [
57-
'accountNumber' => null,
58-
'bic' => null,
59-
'type' => null
58+
'entityId' => null,
59+
'entityType' => null,
60+
'scaDeviceIds' => null,
61+
'status' => null
6062
];
6163

6264
/**
@@ -65,9 +67,10 @@ class SGLocalAccountIdentification implements ModelInterface, ArrayAccess, \Json
6567
* @var boolean[]
6668
*/
6769
protected static $openAPINullables = [
68-
'accountNumber' => false,
69-
'bic' => false,
70-
'type' => false
70+
'entityId' => false,
71+
'entityType' => false,
72+
'scaDeviceIds' => false,
73+
'status' => false
7174
];
7275

7376
/**
@@ -156,9 +159,10 @@ public function isNullableSetToNull(string $property): bool
156159
* @var string[]
157160
*/
158161
protected static $attributeMap = [
159-
'accountNumber' => 'accountNumber',
160-
'bic' => 'bic',
161-
'type' => 'type'
162+
'entityId' => 'entityId',
163+
'entityType' => 'entityType',
164+
'scaDeviceIds' => 'scaDeviceIds',
165+
'status' => 'status'
162166
];
163167

164168
/**
@@ -167,9 +171,10 @@ public function isNullableSetToNull(string $property): bool
167171
* @var string[]
168172
*/
169173
protected static $setters = [
170-
'accountNumber' => 'setAccountNumber',
171-
'bic' => 'setBic',
172-
'type' => 'setType'
174+
'entityId' => 'setEntityId',
175+
'entityType' => 'setEntityType',
176+
'scaDeviceIds' => 'setScaDeviceIds',
177+
'status' => 'setStatus'
173178
];
174179

175180
/**
@@ -178,9 +183,10 @@ public function isNullableSetToNull(string $property): bool
178183
* @var string[]
179184
*/
180185
protected static $getters = [
181-
'accountNumber' => 'getAccountNumber',
182-
'bic' => 'getBic',
183-
'type' => 'getType'
186+
'entityId' => 'getEntityId',
187+
'entityType' => 'getEntityType',
188+
'scaDeviceIds' => 'getScaDeviceIds',
189+
'status' => 'getStatus'
184190
];
185191

186192
/**
@@ -224,19 +230,7 @@ public function getModelName()
224230
return self::$openAPIModelName;
225231
}
226232

227-
public const TYPE_SG_LOCAL = 'sgLocal';
228233

229-
/**
230-
* Gets allowable values of the enum
231-
*
232-
* @return string[]
233-
*/
234-
public function getTypeAllowableValues()
235-
{
236-
return [
237-
self::TYPE_SG_LOCAL,
238-
];
239-
}
240234
/**
241235
* Associative array for storing property values
242236
*
@@ -252,9 +246,10 @@ public function getTypeAllowableValues()
252246
*/
253247
public function __construct(?array $data = null)
254248
{
255-
$this->setIfExists('accountNumber', $data ?? [], null);
256-
$this->setIfExists('bic', $data ?? [], null);
257-
$this->setIfExists('type', $data ?? [], null);
249+
$this->setIfExists('entityId', $data ?? [], null);
250+
$this->setIfExists('entityType', $data ?? [], null);
251+
$this->setIfExists('scaDeviceIds', $data ?? [], null);
252+
$this->setIfExists('status', $data ?? [], null);
258253
}
259254

260255
/**
@@ -284,21 +279,18 @@ public function listInvalidProperties()
284279
{
285280
$invalidProperties = [];
286281

287-
if ($this->container['accountNumber'] === null) {
288-
$invalidProperties[] = "'accountNumber' can't be null";
282+
if ($this->container['entityId'] === null) {
283+
$invalidProperties[] = "'entityId' can't be null";
289284
}
290-
if ($this->container['bic'] === null) {
291-
$invalidProperties[] = "'bic' can't be null";
285+
if ($this->container['entityType'] === null) {
286+
$invalidProperties[] = "'entityType' can't be null";
292287
}
293-
$allowedValues = $this->getTypeAllowableValues();
294-
if (!is_null($this->container['type']) && !in_array($this->container['type'], $allowedValues, true)) {
295-
$invalidProperties[] = sprintf(
296-
"invalid value '%s' for 'type', must be one of '%s'",
297-
$this->container['type'],
298-
implode("', '", $allowedValues)
299-
);
288+
if ($this->container['scaDeviceIds'] === null) {
289+
$invalidProperties[] = "'scaDeviceIds' can't be null";
290+
}
291+
if ($this->container['status'] === null) {
292+
$invalidProperties[] = "'status' can't be null";
300293
}
301-
302294
return $invalidProperties;
303295
}
304296

@@ -315,83 +307,97 @@ public function valid()
315307

316308

317309
/**
318-
* Gets accountNumber
310+
* Gets entityId
319311
*
320312
* @return string
321313
*/
322-
public function getAccountNumber()
314+
public function getEntityId()
323315
{
324-
return $this->container['accountNumber'];
316+
return $this->container['entityId'];
325317
}
326318

327319
/**
328-
* Sets accountNumber
320+
* Sets entityId
329321
*
330-
* @param string $accountNumber The 4- to 19-digit bank account number, without separators or whitespace.
322+
* @param string $entityId The unique identifier of the entity.
331323
*
332324
* @return self
333325
*/
334-
public function setAccountNumber($accountNumber)
326+
public function setEntityId($entityId)
335327
{
336-
$this->container['accountNumber'] = $accountNumber;
328+
$this->container['entityId'] = $entityId;
337329

338330
return $this;
339331
}
340332

341333
/**
342-
* Gets bic
334+
* Gets entityType
343335
*
344-
* @return string
336+
* @return \Adyen\Model\BalancePlatform\ScaEntityType
345337
*/
346-
public function getBic()
338+
public function getEntityType()
347339
{
348-
return $this->container['bic'];
340+
return $this->container['entityType'];
349341
}
350342

351343
/**
352-
* Sets bic
344+
* Sets entityType
353345
*
354-
* @param string $bic The bank's 8- or 11-character BIC or SWIFT code.
346+
* @param \Adyen\Model\BalancePlatform\ScaEntityType $entityType entityType
355347
*
356348
* @return self
357349
*/
358-
public function setBic($bic)
350+
public function setEntityType($entityType)
359351
{
360-
$this->container['bic'] = $bic;
352+
$this->container['entityType'] = $entityType;
361353

362354
return $this;
363355
}
364356

365357
/**
366-
* Gets type
358+
* Gets scaDeviceIds
367359
*
368-
* @return string|null
360+
* @return string[]
369361
*/
370-
public function getType()
362+
public function getScaDeviceIds()
371363
{
372-
return $this->container['type'];
364+
return $this->container['scaDeviceIds'];
373365
}
374366

375367
/**
376-
* Sets type
368+
* Sets scaDeviceIds
377369
*
378-
* @param string|null $type **sgLocal**
370+
* @param string[] $scaDeviceIds List of device ids associated to the entity that will be approved.
379371
*
380372
* @return self
381373
*/
382-
public function setType($type)
374+
public function setScaDeviceIds($scaDeviceIds)
383375
{
384-
$allowedValues = $this->getTypeAllowableValues();
385-
if (!in_array($type, $allowedValues, true)) {
386-
error_log(
387-
sprintf(
388-
"type: unexpected enum value '%s' - Supported values are [%s]",
389-
$type,
390-
implode(', ', $allowedValues)
391-
)
392-
);
393-
}
394-
$this->container['type'] = $type;
376+
$this->container['scaDeviceIds'] = $scaDeviceIds;
377+
378+
return $this;
379+
}
380+
381+
/**
382+
* Gets status
383+
*
384+
* @return \Adyen\Model\BalancePlatform\AssociationStatus
385+
*/
386+
public function getStatus()
387+
{
388+
return $this->container['status'];
389+
}
390+
391+
/**
392+
* Sets status
393+
*
394+
* @param \Adyen\Model\BalancePlatform\AssociationStatus $status status
395+
*
396+
* @return self
397+
*/
398+
public function setStatus($status)
399+
{
400+
$this->container['status'] = $status;
395401

396402
return $this;
397403
}

0 commit comments

Comments
 (0)