Skip to content

Commit 7484d70

Browse files
committed
Generate models
1 parent f11201a commit 7484d70

File tree

223 files changed

+5243
-383
lines changed

Some content is hidden

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

223 files changed

+5243
-383
lines changed

src/Adyen/Model/Checkout/AccountInfo.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@ public function getPaymentAccountIndicatorAllowableValues()
449449
* @param mixed[] $data Associated array of property values
450450
* initializing the model
451451
*/
452-
public function __construct(array $data = null)
452+
public function __construct(?array $data = null)
453453
{
454454
$this->setIfExists('accountAgeIndicator', $data ?? [], null);
455455
$this->setIfExists('accountChangeDate', $data ?? [], null);

src/Adyen/Model/Checkout/AcctInfo.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,7 @@ public function getSuspiciousAccActivityAllowableValues()
443443
* @param mixed[] $data Associated array of property values
444444
* initializing the model
445445
*/
446-
public function __construct(array $data = null)
446+
public function __construct(?array $data = null)
447447
{
448448
$this->setIfExists('chAccAgeInd', $data ?? [], null);
449449
$this->setIfExists('chAccChange', $data ?? [], null);

src/Adyen/Model/Checkout/AchDetails.php

Lines changed: 65 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ class AchDetails implements ModelInterface, ArrayAccess, \JsonSerializable
4444
* @var string[]
4545
*/
4646
protected static $openAPITypes = [
47+
'accountHolderType' => 'string',
4748
'bankAccountNumber' => 'string',
4849
'bankAccountType' => 'string',
4950
'bankLocationId' => 'string',
@@ -65,6 +66,7 @@ class AchDetails implements ModelInterface, ArrayAccess, \JsonSerializable
6566
* @psalm-var array<string, string|null>
6667
*/
6768
protected static $openAPIFormats = [
69+
'accountHolderType' => null,
6870
'bankAccountNumber' => null,
6971
'bankAccountType' => null,
7072
'bankLocationId' => null,
@@ -84,6 +86,7 @@ class AchDetails implements ModelInterface, ArrayAccess, \JsonSerializable
8486
* @var boolean[]
8587
*/
8688
protected static $openAPINullables = [
89+
'accountHolderType' => false,
8790
'bankAccountNumber' => false,
8891
'bankAccountType' => false,
8992
'bankLocationId' => false,
@@ -183,6 +186,7 @@ public function isNullableSetToNull(string $property): bool
183186
* @var string[]
184187
*/
185188
protected static $attributeMap = [
189+
'accountHolderType' => 'accountHolderType',
186190
'bankAccountNumber' => 'bankAccountNumber',
187191
'bankAccountType' => 'bankAccountType',
188192
'bankLocationId' => 'bankLocationId',
@@ -202,6 +206,7 @@ public function isNullableSetToNull(string $property): bool
202206
* @var string[]
203207
*/
204208
protected static $setters = [
209+
'accountHolderType' => 'setAccountHolderType',
205210
'bankAccountNumber' => 'setBankAccountNumber',
206211
'bankAccountType' => 'setBankAccountType',
207212
'bankLocationId' => 'setBankLocationId',
@@ -221,6 +226,7 @@ public function isNullableSetToNull(string $property): bool
221226
* @var string[]
222227
*/
223228
protected static $getters = [
229+
'accountHolderType' => 'getAccountHolderType',
224230
'bankAccountNumber' => 'getBankAccountNumber',
225231
'bankAccountType' => 'getBankAccountType',
226232
'bankLocationId' => 'getBankLocationId',
@@ -275,6 +281,8 @@ public function getModelName()
275281
return self::$openAPIModelName;
276282
}
277283

284+
public const ACCOUNT_HOLDER_TYPE_BUSINESS = 'business';
285+
public const ACCOUNT_HOLDER_TYPE_PERSONAL = 'personal';
278286
public const BANK_ACCOUNT_TYPE_BALANCE = 'balance';
279287
public const BANK_ACCOUNT_TYPE_CHECKING = 'checking';
280288
public const BANK_ACCOUNT_TYPE_DEPOSIT = 'deposit';
@@ -285,6 +293,18 @@ public function getModelName()
285293
public const TYPE_ACH = 'ach';
286294
public const TYPE_ACH_PLAID = 'ach_plaid';
287295

296+
/**
297+
* Gets allowable values of the enum
298+
*
299+
* @return string[]
300+
*/
301+
public function getAccountHolderTypeAllowableValues()
302+
{
303+
return [
304+
self::ACCOUNT_HOLDER_TYPE_BUSINESS,
305+
self::ACCOUNT_HOLDER_TYPE_PERSONAL,
306+
];
307+
}
288308
/**
289309
* Gets allowable values of the enum
290310
*
@@ -327,8 +347,9 @@ public function getTypeAllowableValues()
327347
* @param mixed[] $data Associated array of property values
328348
* initializing the model
329349
*/
330-
public function __construct(array $data = null)
350+
public function __construct(?array $data = null)
331351
{
352+
$this->setIfExists('accountHolderType', $data ?? [], null);
332353
$this->setIfExists('bankAccountNumber', $data ?? [], null);
333354
$this->setIfExists('bankAccountType', $data ?? [], null);
334355
$this->setIfExists('bankLocationId', $data ?? [], null);
@@ -369,6 +390,15 @@ public function listInvalidProperties()
369390
{
370391
$invalidProperties = [];
371392

393+
$allowedValues = $this->getAccountHolderTypeAllowableValues();
394+
if (!is_null($this->container['accountHolderType']) && !in_array($this->container['accountHolderType'], $allowedValues, true)) {
395+
$invalidProperties[] = sprintf(
396+
"invalid value '%s' for 'accountHolderType', must be one of '%s'",
397+
$this->container['accountHolderType'],
398+
implode("', '", $allowedValues)
399+
);
400+
}
401+
372402
$allowedValues = $this->getBankAccountTypeAllowableValues();
373403
if (!is_null($this->container['bankAccountType']) && !in_array($this->container['bankAccountType'], $allowedValues, true)) {
374404
$invalidProperties[] = sprintf(
@@ -402,6 +432,40 @@ public function valid()
402432
}
403433

404434

435+
/**
436+
* Gets accountHolderType
437+
*
438+
* @return string|null
439+
*/
440+
public function getAccountHolderType()
441+
{
442+
return $this->container['accountHolderType'];
443+
}
444+
445+
/**
446+
* Sets accountHolderType
447+
*
448+
* @param string|null $accountHolderType The account holder type (personal or business).
449+
*
450+
* @return self
451+
*/
452+
public function setAccountHolderType($accountHolderType)
453+
{
454+
$allowedValues = $this->getAccountHolderTypeAllowableValues();
455+
if (!in_array($accountHolderType, $allowedValues, true)) {
456+
throw new \InvalidArgumentException(
457+
sprintf(
458+
"Invalid value '%s' for 'accountHolderType', must be one of '%s'",
459+
$accountHolderType,
460+
implode("', '", $allowedValues)
461+
)
462+
);
463+
}
464+
$this->container['accountHolderType'] = $accountHolderType;
465+
466+
return $this;
467+
}
468+
405469
/**
406470
* Gets bankAccountNumber
407471
*

src/Adyen/Model/Checkout/AdditionalData3DSecure.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ public function getChallengeWindowSizeAllowableValues()
279279
* @param mixed[] $data Associated array of property values
280280
* initializing the model
281281
*/
282-
public function __construct(array $data = null)
282+
public function __construct(?array $data = null)
283283
{
284284
$this->setIfExists('allow3DS2', $data ?? [], null);
285285
$this->setIfExists('challengeWindowSize', $data ?? [], null);

src/Adyen/Model/Checkout/AdditionalDataAirline.php

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ public function getModelName()
397397
* @param mixed[] $data Associated array of property values
398398
* initializing the model
399399
*/
400-
public function __construct(array $data = null)
400+
public function __construct(?array $data = null)
401401
{
402402
$this->setIfExists('airlineAgencyInvoiceNumber', $data ?? [], null);
403403
$this->setIfExists('airlineAgencyPlanName', $data ?? [], null);
@@ -536,7 +536,7 @@ public function getAirlineAirlineCode()
536536
/**
537537
* Sets airlineAirlineCode
538538
*
539-
* @param string|null $airlineAirlineCode The [IATA](https://www.iata.org/services/pages/codes.aspx) 3-digit accounting code (PAX) that identifies the carrier. * Format: IATA 3-digit accounting code (PAX) * Example: KLM = 074 * minLength: 3 characters * maxLength: 3 characters * Must not be all spaces *Must not be all zeros.
539+
* @param string|null $airlineAirlineCode The [IATA](https://www.iata.org/services/pages/codes.aspx) 3-digit accounting code (PAX) that identifies the carrier. * Format: IATA 3-digit accounting code (PAX) * Example: KLM = 074 * minLength: 3 characters * maxLength: 3 characters * Must not be all spaces * Must not be all zeros.
540540
*
541541
* @return self
542542
*/
@@ -560,7 +560,7 @@ public function getAirlineAirlineDesignatorCode()
560560
/**
561561
* Sets airlineAirlineDesignatorCode
562562
*
563-
* @param string|null $airlineAirlineDesignatorCode The [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter accounting code (PAX) that identifies the carrier. * Encoding: ASCII * Example: KLM = KL * minLength: 2 characters * maxLength: 2 characters * Must not be all spaces *Must not be all zeros.
563+
* @param string|null $airlineAirlineDesignatorCode The [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter accounting code (PAX) that identifies the carrier. * Encoding: ASCII * Example: KLM = KL * minLength: 2 characters * maxLength: 2 characters * Must not be all spaces * Must not be all zeros.
564564
*
565565
* @return self
566566
*/
@@ -728,7 +728,7 @@ public function getAirlineLegCarrierCode()
728728
/**
729729
* Sets airlineLegCarrierCode
730730
*
731-
* @param string|null $airlineLegCarrierCode The [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter accounting code (PAX) that identifies the carrier. This field is required if the airline data includes leg details. * Example: KLM = KL * minLength: 2 characters * maxLength: 2 characters * Must not be all spaces *Must not be all zeros.
731+
* @param string|null $airlineLegCarrierCode The [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter accounting code (PAX) that identifies the carrier. This field is required if the airline data includes leg details. * Example: KLM = KL * minLength: 2 characters * maxLength: 2 characters * Must not be all spaces * Must not be all zeros.
732732
*
733733
* @return self
734734
*/
@@ -752,7 +752,7 @@ public function getAirlineLegClassOfTravel()
752752
/**
753753
* Sets airlineLegClassOfTravel
754754
*
755-
* @param string|null $airlineLegClassOfTravel A one-letter travel class identifier. The following are common: * F: first class * J: business class * Y: economy class * W: premium economy * Encoding: ASCII * minLength: 1 character * maxLength: 1 character * Must not be all spaces *Must not be all zeros.
755+
* @param string|null $airlineLegClassOfTravel A one-letter travel class identifier. The following are common: * F: first class * J: business class * Y: economy class * W: premium economy * Encoding: ASCII * minLength: 1 character * maxLength: 1 character * Must not be all spaces * Must not be all zeros.
756756
*
757757
* @return self
758758
*/
@@ -800,7 +800,7 @@ public function getAirlineLegDepartAirport()
800800
/**
801801
* Sets airlineLegDepartAirport
802802
*
803-
* @param string|null $airlineLegDepartAirport The [IATA](https://www.iata.org/services/pages/codes.aspx) three-letter airport code of the departure airport. This field is required if the airline data includes leg details. * Encoding: ASCII * Example: Amsterdam = AMS * minLength: 3 characters * maxLength: 3 characters * Must not be all spaces *Must not be all zeros.
803+
* @param string|null $airlineLegDepartAirport The [IATA](https://www.iata.org/services/pages/codes.aspx) three-letter airport code of the departure airport. This field is required if the airline data includes leg details. * Encoding: ASCII * Example: Amsterdam = AMS * minLength: 3 characters * maxLength: 3 characters * Must not be all spaces * Must not be all zeros.
804804
*
805805
* @return self
806806
*/
@@ -824,7 +824,7 @@ public function getAirlineLegDepartTax()
824824
/**
825825
* Sets airlineLegDepartTax
826826
*
827-
* @param string|null $airlineLegDepartTax The amount of [departure tax](https://en.wikipedia.org/wiki/Departure_tax) charged, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Encoding: Numeric * minLength: 1 * maxLength: 12 *Must not be all zeros.
827+
* @param string|null $airlineLegDepartTax The amount of [departure tax](https://en.wikipedia.org/wiki/Departure_tax) charged, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Encoding: Numeric * minLength: 1 * maxLength: 12 * Must not be all zeros.
828828
*
829829
* @return self
830830
*/
@@ -848,7 +848,7 @@ public function getAirlineLegDestinationCode()
848848
/**
849849
* Sets airlineLegDestinationCode
850850
*
851-
* @param string|null $airlineLegDestinationCode The [IATA](https://www.iata.org/services/pages/codes.aspx) 3-letter airport code of the destination airport. This field is required if the airline data includes leg details. * Example: Amsterdam = AMS * Encoding: ASCII * minLength: 3 characters * maxLength: 3 characters * Must not be all spaces *Must not be all zeros.
851+
* @param string|null $airlineLegDestinationCode The [IATA](https://www.iata.org/services/pages/codes.aspx) 3-letter airport code of the destination airport. This field is required if the airline data includes leg details. * Example: Amsterdam = AMS * Encoding: ASCII * minLength: 3 characters * maxLength: 3 characters * Must not be all spaces * Must not be all zeros.
852852
*
853853
* @return self
854854
*/
@@ -872,7 +872,7 @@ public function getAirlineLegFareBaseCode()
872872
/**
873873
* Sets airlineLegFareBaseCode
874874
*
875-
* @param string|null $airlineLegFareBaseCode The [fare basis code](https://en.wikipedia.org/wiki/Fare_basis_code), alphanumeric. * minLength: 1 character * maxLength: 6 characters * Must not be all spaces *Must not be all zeros.
875+
* @param string|null $airlineLegFareBaseCode The [fare basis code](https://en.wikipedia.org/wiki/Fare_basis_code), alphanumeric. * minLength: 1 character * maxLength: 6 characters * Must not be all spaces * Must not be all zeros.
876876
*
877877
* @return self
878878
*/
@@ -896,7 +896,7 @@ public function getAirlineLegFlightNumber()
896896
/**
897897
* Sets airlineLegFlightNumber
898898
*
899-
* @param string|null $airlineLegFlightNumber The flight identifier. * minLength: 1 character * maxLength: 5 characters * Must not be all spaces *Must not be all zeros.
899+
* @param string|null $airlineLegFlightNumber The flight identifier. * minLength: 1 character * maxLength: 5 characters * Must not be all spaces * Must not be all zeros.
900900
*
901901
* @return self
902902
*/
@@ -1064,7 +1064,7 @@ public function getAirlinePassengerName()
10641064
/**
10651065
* Sets airlinePassengerName
10661066
*
1067-
* @param string $airlinePassengerName The passenger's name, initials, and title. * Format: last name + first name or initials + title * Example: *FLYER / MARY MS* * minLength: 1 character * maxLength: 20 characters * If you send more than 20 characters, the name is truncated * Must not be all spaces *Must not be all zeros.
1067+
* @param string $airlinePassengerName The passenger's name, initials, and title. * Format: last name + first name or initials + title * Example: *FLYER / MARY MS* * minLength: 1 character * maxLength: 20 characters * If you send more than 20 characters, the name is truncated * Must not be all spaces * Must not be all zeros.
10681068
*
10691069
* @return self
10701070
*/
@@ -1112,7 +1112,7 @@ public function getAirlineTicketNumber()
11121112
/**
11131113
* Sets airlineTicketNumber
11141114
*
1115-
* @param string|null $airlineTicketNumber The ticket's unique identifier. * minLength: 1 character * maxLength: 15 characters * Must not be all spaces *Must not be all zeros.
1115+
* @param string|null $airlineTicketNumber The ticket's unique identifier. * minLength: 1 character * maxLength: 15 characters * Must not be all spaces * Must not be all zeros.
11161116
*
11171117
* @return self
11181118
*/
@@ -1136,7 +1136,7 @@ public function getAirlineTravelAgencyCode()
11361136
/**
11371137
* Sets airlineTravelAgencyCode
11381138
*
1139-
* @param string|null $airlineTravelAgencyCode The unique identifier from IATA or ARC for the travel agency that issues the ticket. * Encoding: ASCII * minLength: 1 character * maxLength: 8 characters * Must not be all spaces *Must not be all zeros.
1139+
* @param string|null $airlineTravelAgencyCode The unique identifier from IATA or ARC for the travel agency that issues the ticket. * Encoding: ASCII * minLength: 1 character * maxLength: 8 characters * Must not be all spaces * Must not be all zeros.
11401140
*
11411141
* @return self
11421142
*/
@@ -1160,7 +1160,7 @@ public function getAirlineTravelAgencyName()
11601160
/**
11611161
* Sets airlineTravelAgencyName
11621162
*
1163-
* @param string|null $airlineTravelAgencyName The name of the travel agency. * Encoding: ASCII * minLength: 1 character * maxLength: 25 characters * Must not be all spaces *Must not be all zeros.
1163+
* @param string|null $airlineTravelAgencyName The name of the travel agency. * Encoding: ASCII * minLength: 1 character * maxLength: 25 characters * Must not be all spaces * Must not be all zeros.
11641164
*
11651165
* @return self
11661166
*/

src/Adyen/Model/Checkout/AdditionalDataCarRental.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ public function getModelName()
361361
* @param mixed[] $data Associated array of property values
362362
* initializing the model
363363
*/
364-
public function __construct(array $data = null)
364+
public function __construct(?array $data = null)
365365
{
366366
$this->setIfExists('carRentalCheckOutDate', $data ?? [], null);
367367
$this->setIfExists('carRentalCustomerServiceTollFreeNumber', $data ?? [], null);

0 commit comments

Comments
 (0)