From 44ecb3db96f620cf1919df07ffa728bd9db891c7 Mon Sep 17 00:00:00 2001 From: Adyen Automation Date: Tue, 16 May 2023 07:12:33 +0000 Subject: [PATCH] [create-pull-request] automated change --- .../Model/BalancePlatform/AccountHolder.php | 2 +- .../BalancePlatform/AccountHolderInfo.php | 2 +- .../Model/BalancePlatform/BalanceAccount.php | 2 +- .../BalancePlatform/BalanceAccountBase.php | 2 +- .../BalancePlatform/BalanceAccountInfo.php | 2 +- .../BalanceAccountUpdateRequest.php | 2 +- .../{Address2.php => DeliveryAddress.php} | 6 +- .../Model/BalancePlatform/DeliveryContact.php | 6 +- .../Model/Checkout/AdditionalDataAirline.php | 56 +-- .../Checkout/AdditionalDataCarRental.php | 46 +-- .../Model/Checkout/AdditionalDataLevel23.php | 34 +- .../Model/Checkout/AdditionalDataLodging.php | 62 +-- .../AdditionalDataTemporaryServices.php | 18 +- src/Adyen/Model/Checkout/CardDetails.php | 6 + .../Checkout/CreateCheckoutSessionRequest.php | 2 +- .../CreateCheckoutSessionResponse.php | 2 +- .../Checkout/CreatePaymentLinkRequest.php | 2 +- src/Adyen/Model/Checkout/PaymentDetails.php | 2 + .../Model/Checkout/PaymentLinkResponse.php | 2 +- src/Adyen/Model/Checkout/Split.php | 12 + .../Model/LegalEntityManagement/Address.php | 2 +- .../LegalEntityManagement/BankAccountInfo.php | 46 ++- .../Model/LegalEntityManagement/Document.php | 2 +- .../IdentificationData.php | 2 +- .../LegalEntityAssociation.php | 4 +- .../LegalEntityManagement/Organization.php | 2 +- .../TransferInstrumentReference.php | 2 +- ...perStatement.php => AfterpayTouchInfo.php} | 110 +---- src/Adyen/Model/Management/ClearpayInfo.php | 387 ++++++++++++++++++ src/Adyen/Model/Management/CompanyUser.php | 50 +-- .../Management/CreateCompanyUserRequest.php | 36 +- .../Management/CreateCompanyUserResponse.php | 50 +-- .../Management/CreateMerchantUserRequest.php | 36 +- .../Model/Management/CreateUserResponse.php | 32 +- .../Model/Management/InvalidFieldWrapper.php | 384 +++++++++++++++++ src/Adyen/Model/Management/JSONObject.php | 6 +- .../Model/Management/JSONPathWrapper.php | 384 +++++++++++++++++ .../Management/ListTerminalsResponse.php | 116 +++++- src/Adyen/Model/Management/PaymentMethod.php | 102 +++++ .../Management/PaymentMethodResponse.php | 10 +- .../Management/PaymentMethodSetupInfo.php | 106 +++++ .../Model/Management/PaymentMethodWrapper.php | 384 +++++++++++++++++ .../Model/Management/RestServiceError.php | 6 +- .../Model/Management/StoreCreationRequest.php | 4 +- .../StoreCreationWithMerchantCodeRequest.php | 4 +- src/Adyen/Model/Management/Terminal.php | 36 ++ .../Model/Management/TerminalOrderRequest.php | 34 ++ src/Adyen/Model/Management/TwintInfo.php | 387 ++++++++++++++++++ .../Management/UpdateCompanyUserRequest.php | 68 --- .../Management/UpdateMerchantUserRequest.php | 68 --- .../Management/UpdatePaymentMethodInfo.php | 126 +++--- src/Adyen/Model/Management/User.php | 32 +- src/Adyen/Model/Management/VippsInfo.php | 2 +- src/Adyen/Model/Transfers/Address2.php | 2 +- src/Adyen/Model/Transfers/Transfer.php | 2 +- src/Adyen/Model/Transfers/TransferInfo.php | 2 +- 56 files changed, 2678 insertions(+), 616 deletions(-) rename src/Adyen/Model/BalancePlatform/{Address2.php => DeliveryAddress.php} (98%) rename src/Adyen/Model/Management/{ShopperStatement.php => AfterpayTouchInfo.php} (71%) create mode 100644 src/Adyen/Model/Management/ClearpayInfo.php create mode 100644 src/Adyen/Model/Management/InvalidFieldWrapper.php create mode 100644 src/Adyen/Model/Management/JSONPathWrapper.php create mode 100644 src/Adyen/Model/Management/PaymentMethodWrapper.php create mode 100644 src/Adyen/Model/Management/TwintInfo.php diff --git a/src/Adyen/Model/BalancePlatform/AccountHolder.php b/src/Adyen/Model/BalancePlatform/AccountHolder.php index 3e017b887..f0b00a08b 100644 --- a/src/Adyen/Model/BalancePlatform/AccountHolder.php +++ b/src/Adyen/Model/BalancePlatform/AccountHolder.php @@ -645,7 +645,7 @@ public function getTimeZone() /** * Sets timeZone * - * @param string|null $timeZone The [time zone](https://www.iana.org/time-zones) of the account holder. For example, **Europe/Amsterdam**. Defaults to the time zone of the balance platform if no time zone is set. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). + * @param string|null $timeZone The time zone of the account holder. For example, **Europe/Amsterdam**. Defaults to the time zone of the balance platform if no time zone is set. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). * * @return self */ diff --git a/src/Adyen/Model/BalancePlatform/AccountHolderInfo.php b/src/Adyen/Model/BalancePlatform/AccountHolderInfo.php index 045d8d14d..976d487bb 100644 --- a/src/Adyen/Model/BalancePlatform/AccountHolderInfo.php +++ b/src/Adyen/Model/BalancePlatform/AccountHolderInfo.php @@ -496,7 +496,7 @@ public function getTimeZone() /** * Sets timeZone * - * @param string|null $timeZone The [time zone](https://www.iana.org/time-zones) of the account holder. For example, **Europe/Amsterdam**. Defaults to the time zone of the balance platform if no time zone is set. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). + * @param string|null $timeZone The time zone of the account holder. For example, **Europe/Amsterdam**. Defaults to the time zone of the balance platform if no time zone is set. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). * * @return self */ diff --git a/src/Adyen/Model/BalancePlatform/BalanceAccount.php b/src/Adyen/Model/BalancePlatform/BalanceAccount.php index cc5af096c..b1f62d5dc 100644 --- a/src/Adyen/Model/BalancePlatform/BalanceAccount.php +++ b/src/Adyen/Model/BalancePlatform/BalanceAccount.php @@ -570,7 +570,7 @@ public function getTimeZone() /** * Sets timeZone * - * @param string|null $timeZone The [time zone](https://www.iana.org/time-zones) of the balance account. For example, **Europe/Amsterdam**. Defaults to the time zone of the account holder if no time zone is set. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). + * @param string|null $timeZone The time zone of the balance account. For example, **Europe/Amsterdam**. Defaults to the time zone of the account holder if no time zone is set. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). * * @return self */ diff --git a/src/Adyen/Model/BalancePlatform/BalanceAccountBase.php b/src/Adyen/Model/BalancePlatform/BalanceAccountBase.php index e2f5eed94..d27a6ca17 100644 --- a/src/Adyen/Model/BalancePlatform/BalanceAccountBase.php +++ b/src/Adyen/Model/BalancePlatform/BalanceAccountBase.php @@ -536,7 +536,7 @@ public function getTimeZone() /** * Sets timeZone * - * @param string|null $timeZone The [time zone](https://www.iana.org/time-zones) of the balance account. For example, **Europe/Amsterdam**. Defaults to the time zone of the account holder if no time zone is set. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). + * @param string|null $timeZone The time zone of the balance account. For example, **Europe/Amsterdam**. Defaults to the time zone of the account holder if no time zone is set. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). * * @return self */ diff --git a/src/Adyen/Model/BalancePlatform/BalanceAccountInfo.php b/src/Adyen/Model/BalancePlatform/BalanceAccountInfo.php index e89859ba0..7dfb410f3 100644 --- a/src/Adyen/Model/BalancePlatform/BalanceAccountInfo.php +++ b/src/Adyen/Model/BalancePlatform/BalanceAccountInfo.php @@ -428,7 +428,7 @@ public function getTimeZone() /** * Sets timeZone * - * @param string|null $timeZone The [time zone](https://www.iana.org/time-zones) of the balance account. For example, **Europe/Amsterdam**. Defaults to the time zone of the account holder if no time zone is set. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). + * @param string|null $timeZone The time zone of the balance account. For example, **Europe/Amsterdam**. Defaults to the time zone of the account holder if no time zone is set. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). * * @return self */ diff --git a/src/Adyen/Model/BalancePlatform/BalanceAccountUpdateRequest.php b/src/Adyen/Model/BalancePlatform/BalanceAccountUpdateRequest.php index f047752ca..335754719 100644 --- a/src/Adyen/Model/BalancePlatform/BalanceAccountUpdateRequest.php +++ b/src/Adyen/Model/BalancePlatform/BalanceAccountUpdateRequest.php @@ -496,7 +496,7 @@ public function getTimeZone() /** * Sets timeZone * - * @param string|null $timeZone The [time zone](https://www.iana.org/time-zones) of the balance account. For example, **Europe/Amsterdam**. Defaults to the time zone of the account holder if no time zone is set. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). + * @param string|null $timeZone The time zone of the balance account. For example, **Europe/Amsterdam**. Defaults to the time zone of the account holder if no time zone is set. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). * * @return self */ diff --git a/src/Adyen/Model/BalancePlatform/Address2.php b/src/Adyen/Model/BalancePlatform/DeliveryAddress.php similarity index 98% rename from src/Adyen/Model/BalancePlatform/Address2.php rename to src/Adyen/Model/BalancePlatform/DeliveryAddress.php index 403ace51b..623dfa472 100644 --- a/src/Adyen/Model/BalancePlatform/Address2.php +++ b/src/Adyen/Model/BalancePlatform/DeliveryAddress.php @@ -19,7 +19,7 @@ use Adyen\Model\BalancePlatform\ObjectSerializer; /** - * Address2 Class Doc Comment + * DeliveryAddress Class Doc Comment * * @category Class * @package Adyen @@ -27,7 +27,7 @@ * @link https://openapi-generator.tech * @implements \ArrayAccess */ -class Address2 implements ModelInterface, ArrayAccess, \JsonSerializable +class DeliveryAddress implements ModelInterface, ArrayAccess, \JsonSerializable { public const DISCRIMINATOR = null; @@ -36,7 +36,7 @@ class Address2 implements ModelInterface, ArrayAccess, \JsonSerializable * * @var string */ - protected static $openAPIModelName = 'Address-2'; + protected static $openAPIModelName = 'DeliveryAddress'; /** * Array of property to type mappings. Used for (de)serialization diff --git a/src/Adyen/Model/BalancePlatform/DeliveryContact.php b/src/Adyen/Model/BalancePlatform/DeliveryContact.php index 845fad5c5..4973f2b86 100644 --- a/src/Adyen/Model/BalancePlatform/DeliveryContact.php +++ b/src/Adyen/Model/BalancePlatform/DeliveryContact.php @@ -44,7 +44,7 @@ class DeliveryContact implements ModelInterface, ArrayAccess, \JsonSerializable * @var string[] */ protected static $openAPITypes = [ - 'address' => '\Adyen\Model\BalancePlatform\Address2', + 'address' => '\Adyen\Model\BalancePlatform\DeliveryAddress', 'email' => 'string', 'fullPhoneNumber' => 'string', 'name' => '\Adyen\Model\BalancePlatform\Name', @@ -320,7 +320,7 @@ public function valid() /** * Gets address * - * @return \Adyen\Model\BalancePlatform\Address2 + * @return \Adyen\Model\BalancePlatform\DeliveryAddress */ public function getAddress() { @@ -330,7 +330,7 @@ public function getAddress() /** * Sets address * - * @param \Adyen\Model\BalancePlatform\Address2 $address address + * @param \Adyen\Model\BalancePlatform\DeliveryAddress $address address * * @return self */ diff --git a/src/Adyen/Model/Checkout/AdditionalDataAirline.php b/src/Adyen/Model/Checkout/AdditionalDataAirline.php index c861f1e63..6b5fa6173 100644 --- a/src/Adyen/Model/Checkout/AdditionalDataAirline.php +++ b/src/Adyen/Model/Checkout/AdditionalDataAirline.php @@ -481,7 +481,7 @@ public function getAirlineAgencyInvoiceNumber() /** * Sets airlineAgencyInvoiceNumber * - * @param string|null $airlineAgencyInvoiceNumber Reference number for the invoice, issued by the agency. * minLength: 1 * maxLength: 6 + * @param string|null $airlineAgencyInvoiceNumber The reference number for the invoice, issued by the agency. * Encoding: ASCII * minLength: 1 character * maxLength: 6 characters * * @return self */ @@ -508,7 +508,7 @@ public function getAirlineAgencyPlanName() /** * Sets airlineAgencyPlanName * - * @param string|null $airlineAgencyPlanName 2-letter agency plan identifier; alphabetical. * minLength: 2 * maxLength: 2 + * @param string|null $airlineAgencyPlanName The two-letter agency plan identifier. * Encoding: ASCII * minLength: 2 characters * maxLength: 2 characters * * @return self */ @@ -535,7 +535,7 @@ public function getAirlineAirlineCode() /** * Sets airlineAirlineCode * - * @param string|null $airlineAirlineCode [IATA](https://www.iata.org/services/pages/codes.aspx) 3-digit accounting code (PAX); numeric. It identifies the carrier. * Format: IATA 3-digit accounting code (PAX) * Example: KLM = 074 * minLength: 3 * maxLength: 3 + * @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 * * @return self */ @@ -562,7 +562,7 @@ public function getAirlineAirlineDesignatorCode() /** * Sets airlineAirlineDesignatorCode * - * @param string|null $airlineAirlineDesignatorCode [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter accounting code (PAX); alphabetical. It identifies the carrier. * Format: [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter airline code * Example: KLM = KL * minLength: 2 * maxLength: 2 + * @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 * * @return self */ @@ -589,7 +589,7 @@ public function getAirlineBoardingFee() /** * Sets airlineBoardingFee * - * @param string|null $airlineBoardingFee Chargeable amount for boarding the plane. The transaction amount needs to be represented in minor units according to the [following table](https://docs.adyen.com/development-resources/currency-codes). * minLength: 1 * maxLength: 18 + * @param string|null $airlineBoardingFee The amount charged for boarding the plane, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Encoding: Numeric * minLength: 1 character * maxLength: 18 characters * * @return self */ @@ -616,7 +616,7 @@ public function getAirlineComputerizedReservationSystem() /** * Sets airlineComputerizedReservationSystem * - * @param string|null $airlineComputerizedReservationSystem The [CRS](https://en.wikipedia.org/wiki/Computer_reservation_system) used to make the reservation and purchase the ticket. * Format: alphanumeric. * minLength: 4 * maxLength: 4 + * @param string|null $airlineComputerizedReservationSystem The [CRS](https://en.wikipedia.org/wiki/Computer_reservation_system) used to make the reservation and purchase the ticket. * Encoding: ASCII * minLength: 4 characters * maxLength: 4 characters * * @return self */ @@ -643,7 +643,7 @@ public function getAirlineCustomerReferenceNumber() /** * Sets airlineCustomerReferenceNumber * - * @param string|null $airlineCustomerReferenceNumber Reference number; alphanumeric. * minLength: 0 * maxLength: 20 + * @param string|null $airlineCustomerReferenceNumber The alphanumeric customer reference number. * Encoding: ASCII * maxLength: 20 characters * If you send more than 20 characters, the customer reference number is truncated * Must not be all spaces * * @return self */ @@ -670,7 +670,7 @@ public function getAirlineDocumentType() /** * Sets airlineDocumentType * - * @param string|null $airlineDocumentType Optional 2-digit code; alphanumeric. It identifies the type of product of the transaction. The description of the code may appear on credit card statements. * Format: 2-digit code * Example: Passenger ticket = 01 * minLength: 2 * maxLength: 2 + * @param string|null $airlineDocumentType A code that identifies the type of item bought. The description of the code can appear on credit card statements. * Encoding: ASCII * Example: Passenger ticket = 01 * minLength: 2 characters * maxLength: 2 characters * * @return self */ @@ -697,7 +697,7 @@ public function getAirlineFlightDate() /** * Sets airlineFlightDate * - * @param string|null $airlineFlightDate Flight departure date. Local time `(HH:mm)` is optional. * Date format: `yyyy-MM-dd` * Date and time format: `yyyy-MM-dd HH:mm` * minLength: 10 * maxLength: 16 + * @param string|null $airlineFlightDate The flight departure date. Local time `(HH:mm)` is optional. * Date format: `yyyy-MM-dd` * Date and time format: `yyyy-MM-dd HH:mm` * minLength: 10 characters * maxLength: 16 characters * * @return self */ @@ -724,7 +724,7 @@ public function getAirlineLegCarrierCode() /** * Sets airlineLegCarrierCode * - * @param string|null $airlineLegCarrierCode [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter accounting code (PAX); alphabetical. It identifies the carrier. This field is required/mandatory if the airline data includes leg details. * Format: IATA 2-letter airline code * Example: KLM = KL * minLength: 2 * maxLength: 2 + * @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 * * @return self */ @@ -751,7 +751,7 @@ public function getAirlineLegClassOfTravel() /** * Sets airlineLegClassOfTravel * - * @param string|null $airlineLegClassOfTravel 1-letter travel class identifier; alphabetical. There is no standard; however, the following codes are used rather consistently: * F: first class * J: business class * Y: economy class * W: premium economy Limitations: * minLength: 1 * maxLength: 1 + * @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 * * @return self */ @@ -778,7 +778,7 @@ public function getAirlineLegDateOfTravel() /** * Sets airlineLegDateOfTravel * - * @param string|null $airlineLegDateOfTravel Date and time of travel. [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)-compliant. * Format: `yyyy-MM-dd HH:mm` * minLength: 16 * maxLength: 16 + * @param string|null $airlineLegDateOfTravel Date and time of travel in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format `yyyy-MM-dd HH:mm`. * Encoding: ASCII * minLength: 16 characters * maxLength: 16 characters * * @return self */ @@ -805,7 +805,7 @@ public function getAirlineLegDepartAirport() /** * Sets airlineLegDepartAirport * - * @param string|null $airlineLegDepartAirport Alphabetical identifier of the departure airport. This field is required if the airline data includes leg details. * Format: [IATA](https://www.iata.org/services/pages/codes.aspx) 3-letter airport code. * Example: Amsterdam = AMS * minLength: 3 * maxLength: 3 + * @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 * * @return self */ @@ -832,7 +832,7 @@ public function getAirlineLegDepartTax() /** * Sets airlineLegDepartTax * - * @param string|null $airlineLegDepartTax [Departure tax](https://en.wikipedia.org/wiki/Departure_tax). Amount charged by a country to an individual upon their leaving. The transaction amount needs to be represented in minor units according to the [following table](https://docs.adyen.com/development-resources/currency-codes). * minLength: 1 * maxLength: 12 + * @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 * * @return self */ @@ -859,7 +859,7 @@ public function getAirlineLegDestinationCode() /** * Sets airlineLegDestinationCode * - * @param string|null $airlineLegDestinationCode Alphabetical identifier of the destination/arrival airport. This field is required/mandatory if the airline data includes leg details. * Format: [IATA](https://www.iata.org/services/pages/codes.aspx) 3-letter airport code. * Example: Amsterdam = AMS * minLength: 3 * maxLength: 3 + * @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 * * @return self */ @@ -886,7 +886,7 @@ public function getAirlineLegFareBaseCode() /** * Sets airlineLegFareBaseCode * - * @param string|null $airlineLegFareBaseCode [Fare basis code](https://en.wikipedia.org/wiki/Fare_basis_code); alphanumeric. * minLength: 1 * maxLength: 7 + * @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 * * @return self */ @@ -913,7 +913,7 @@ public function getAirlineLegFlightNumber() /** * Sets airlineLegFlightNumber * - * @param string|null $airlineLegFlightNumber The flight identifier. * minLength: 1 * maxLength: 5 + * @param string|null $airlineLegFlightNumber The flight identifier. * minLength: 1 character * maxLength: 5 characters * Must not be all spaces * Must not be all zeros * * @return self */ @@ -940,7 +940,7 @@ public function getAirlineLegStopOverCode() /** * Sets airlineLegStopOverCode * - * @param string|null $airlineLegStopOverCode 1-letter code that indicates whether the passenger is entitled to make a stopover. Only two types of characters are allowed: * O: Stopover allowed * X: Stopover not allowed Limitations: * minLength: 1 * maxLength: 1 + * @param string|null $airlineLegStopOverCode A one-letter code that indicates whether the passenger is entitled to make a stopover. Can be a space, O if the passenger is entitled to make a stopover, or X if they are not. * Encoding: ASCII * minLength: 1 character * maxLength: 1 character * * @return self */ @@ -967,7 +967,7 @@ public function getAirlinePassengerDateOfBirth() /** * Sets airlinePassengerDateOfBirth * - * @param string|null $airlinePassengerDateOfBirth Date of birth of the passenger. Date format: `yyyy-MM-dd` * minLength: 10 * maxLength: 10 + * @param string|null $airlinePassengerDateOfBirth The passenger's date of birth. Date format: `yyyy-MM-dd` * minLength: 10 * maxLength: 10 * * @return self */ @@ -994,7 +994,7 @@ public function getAirlinePassengerFirstName() /** * Sets airlinePassengerFirstName * - * @param string|null $airlinePassengerFirstName Passenger first name/given name. > This field is required/mandatory if the airline data includes passenger details or leg details. + * @param string|null $airlinePassengerFirstName The passenger's first name. > This field is required if the airline data includes passenger details or leg details. * Encoding: ASCII * * @return self */ @@ -1021,7 +1021,7 @@ public function getAirlinePassengerLastName() /** * Sets airlinePassengerLastName * - * @param string|null $airlinePassengerLastName Passenger last name/family name. > This field is required/mandatory if the airline data includes passenger details or leg details. + * @param string|null $airlinePassengerLastName The passenger's last name. > This field is required if the airline data includes passenger details or leg details. * Encoding: ASCII * * @return self */ @@ -1048,7 +1048,7 @@ public function getAirlinePassengerTelephoneNumber() /** * Sets airlinePassengerTelephoneNumber * - * @param string|null $airlinePassengerTelephoneNumber Telephone number of the passenger, including country code. This is an alphanumeric field that can include the '+' and '-' signs. * minLength: 3 * maxLength: 30 + * @param string|null $airlinePassengerTelephoneNumber The passenger's telephone number, including country code. This is an alphanumeric field that can include the '+' and '-' signs. * Encoding: ASCII * minLength: 3 characters * maxLength: 30 characters * * @return self */ @@ -1075,7 +1075,7 @@ public function getAirlinePassengerTravellerType() /** * Sets airlinePassengerTravellerType * - * @param string|null $airlinePassengerTravellerType Passenger type code (PTC). IATA PTC values are 3-letter alphabetical. Example: ADT, SRC, CNN, INS. However, several carriers use non-standard codes that can be up to 5 alphanumeric characters. * minLength: 3 * maxLength: 6 + * @param string|null $airlinePassengerTravellerType The IATA passenger type code (PTC). * Encoding: ASCII * minLength: 3 characters * maxLength: 6 characters * * @return self */ @@ -1102,7 +1102,7 @@ public function getAirlinePassengerName() /** * Sets airlinePassengerName * - * @param string $airlinePassengerName Passenger name, initials, and a title. * Format: last name + first name or initials + title. * Example: *FLYER / MARY MS*. * minLength: 1 * maxLength: 49 + * @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 * * @return self */ @@ -1129,7 +1129,7 @@ public function getAirlineTicketIssueAddress() /** * Sets airlineTicketIssueAddress * - * @param string|null $airlineTicketIssueAddress Address of the place/agency that issued the ticket. * minLength: 0 * maxLength: 16 + * @param string|null $airlineTicketIssueAddress The address of the organization that issued the ticket. * minLength: 0 characters * maxLength: 16 characters * * @return self */ @@ -1156,7 +1156,7 @@ public function getAirlineTicketNumber() /** * Sets airlineTicketNumber * - * @param string|null $airlineTicketNumber The ticket's unique identifier. * minLength: 1 * maxLength: 150 + * @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 * * @return self */ @@ -1183,7 +1183,7 @@ public function getAirlineTravelAgencyCode() /** * Sets airlineTravelAgencyCode * - * @param string|null $airlineTravelAgencyCode IATA number, also ARC number or ARC/IATA number. Unique identifier number for travel agencies. * minLength: 1 * maxLength: 8 + * @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 * * @return self */ @@ -1210,7 +1210,7 @@ public function getAirlineTravelAgencyName() /** * Sets airlineTravelAgencyName * - * @param string|null $airlineTravelAgencyName The name of the travel agency. * minLength: 1 * maxLength: 25 + * @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 * * @return self */ diff --git a/src/Adyen/Model/Checkout/AdditionalDataCarRental.php b/src/Adyen/Model/Checkout/AdditionalDataCarRental.php index 29625f501..d084eba71 100644 --- a/src/Adyen/Model/Checkout/AdditionalDataCarRental.php +++ b/src/Adyen/Model/Checkout/AdditionalDataCarRental.php @@ -443,7 +443,7 @@ public function getCarRentalCheckOutDate() /** * Sets carRentalCheckOutDate * - * @param string|null $carRentalCheckOutDate Pick-up date. * Date format: `yyyyMMdd` + * @param string|null $carRentalCheckOutDate The pick-up date. * Date format: `yyyyMMdd` * * @return self */ @@ -470,7 +470,7 @@ public function getCarRentalCustomerServiceTollFreeNumber() /** * Sets carRentalCustomerServiceTollFreeNumber * - * @param string|null $carRentalCustomerServiceTollFreeNumber The customer service phone number of the car rental company. * Format: Alphanumeric * maxLength: 17 + * @param string|null $carRentalCustomerServiceTollFreeNumber The customer service phone number of the car rental company. * Format: Alphanumeric * maxLength: 17 * For US and CA numbers must be 10 characters in length * Must not start with a space * Must not be all zeros * Must not contain any special characters such as + or - * * @return self */ @@ -497,7 +497,7 @@ public function getCarRentalDaysRented() /** * Sets carRentalDaysRented * - * @param string|null $carRentalDaysRented Number of days for which the car is being rented. * Format: Numeric * maxLength: 19 + * @param string|null $carRentalDaysRented Number of days for which the car is being rented. * Format: Numeric * maxLength: 2 * Must not be all spaces * * @return self */ @@ -524,7 +524,7 @@ public function getCarRentalFuelCharges() /** * Sets carRentalFuelCharges * - * @param string|null $carRentalFuelCharges Any fuel charges associated with the rental. * Format: Numeric * maxLength: 12 + * @param string|null $carRentalFuelCharges Any fuel charges associated with the rental, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: Numeric * maxLength: 12 * * @return self */ @@ -551,7 +551,7 @@ public function getCarRentalInsuranceCharges() /** * Sets carRentalInsuranceCharges * - * @param string|null $carRentalInsuranceCharges Any insurance charges associated with the rental. * Format: Numeric * maxLength: 12 + * @param string|null $carRentalInsuranceCharges Any insurance charges associated with the rental, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: Numeric * maxLength: 12 * Must not be all spaces * Must not be all zeros * * @return self */ @@ -578,7 +578,7 @@ public function getCarRentalLocationCity() /** * Sets carRentalLocationCity * - * @param string|null $carRentalLocationCity The city from which the car is rented. * Format: Alphanumeric * maxLength: 18 + * @param string|null $carRentalLocationCity The city where the car is rented. * Format: Alphanumeric * maxLength: 18 * Must not start with a space or be all spaces * Must not be all zeros * * @return self */ @@ -605,7 +605,7 @@ public function getCarRentalLocationCountry() /** * Sets carRentalLocationCountry * - * @param string|null $carRentalLocationCountry The country from which the car is rented. * Format: Alphanumeric * maxLength: 2 + * @param string|null $carRentalLocationCountry The country where the car is rented, in [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. * Format: Alphanumeric * maxLength: 2 * * @return self */ @@ -632,7 +632,7 @@ public function getCarRentalLocationStateProvince() /** * Sets carRentalLocationStateProvince * - * @param string|null $carRentalLocationStateProvince The state or province from where the car is rented. * Format: Alphanumeric * maxLength: 3 + * @param string|null $carRentalLocationStateProvince The state or province where the car is rented. * Format: Alphanumeric * maxLength: 2 * Must not start with a space or be all spaces * Must not be all zeros * * @return self */ @@ -659,7 +659,7 @@ public function getCarRentalNoShowIndicator() /** * Sets carRentalNoShowIndicator * - * @param string|null $carRentalNoShowIndicator Indicates if the customer was a \"no-show\" (neither keeps nor cancels their booking). * Y - Customer was a no show. * N - Not applicable. + * @param string|null $carRentalNoShowIndicator Indicates if the customer didn't pick up their rental car. * Y - Customer did not pick up their car * N - Not applicable * * @return self */ @@ -686,7 +686,7 @@ public function getCarRentalOneWayDropOffCharges() /** * Sets carRentalOneWayDropOffCharges * - * @param string|null $carRentalOneWayDropOffCharges Charge associated with not returning a vehicle to the original rental location. + * @param string|null $carRentalOneWayDropOffCharges The charge for not returning a car to the original rental location, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * maxLength: 12 * * @return self */ @@ -713,7 +713,7 @@ public function getCarRentalRate() /** * Sets carRentalRate * - * @param string|null $carRentalRate Daily rental rate. * Format: Alphanumeric * maxLength: 12 + * @param string|null $carRentalRate The daily rental rate, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: Alphanumeric * maxLength: 12 * * @return self */ @@ -740,7 +740,7 @@ public function getCarRentalRateIndicator() /** * Sets carRentalRateIndicator * - * @param string|null $carRentalRateIndicator Specifies whether the given rate is applied daily or weekly. * D - Daily rate. * W - Weekly rate. + * @param string|null $carRentalRateIndicator Specifies whether the given rate is applied daily or weekly. * D - Daily rate * W - Weekly rate * * @return self */ @@ -767,7 +767,7 @@ public function getCarRentalRentalAgreementNumber() /** * Sets carRentalRentalAgreementNumber * - * @param string|null $carRentalRentalAgreementNumber The rental agreement number associated with this car rental. * Format: Alphanumeric * maxLength: 9 + * @param string|null $carRentalRentalAgreementNumber The rental agreement number for the car rental. * Format: Alphanumeric * maxLength: 9 * Must not start with a space or be all spaces * Must not be all zeros * * @return self */ @@ -794,7 +794,7 @@ public function getCarRentalRentalClassId() /** * Sets carRentalRentalClassId * - * @param string|null $carRentalRentalClassId Daily rental rate. * Format: Alphanumeric * maxLength: 12 + * @param string|null $carRentalRentalClassId The classification of the rental car. * Format: Alphanumeric * maxLength: 4 * Must not start with a space or be all spaces * Must not be all zeros * * @return self */ @@ -821,7 +821,7 @@ public function getCarRentalRenterName() /** * Sets carRentalRenterName * - * @param string|null $carRentalRenterName The name of the person renting the car. * Format: Alphanumeric * maxLength: 26 + * @param string|null $carRentalRenterName The name of the person renting the car. * Format: Alphanumeric * maxLength: 26 * If you send more than 26 characters, the name is truncated * Must not start with a space or be all spaces * Must not be all zeros * * @return self */ @@ -848,7 +848,7 @@ public function getCarRentalReturnCity() /** * Sets carRentalReturnCity * - * @param string|null $carRentalReturnCity The city where the car must be returned. * Format: Alphanumeric * maxLength: 18 + * @param string|null $carRentalReturnCity The city where the car must be returned. * Format: Alphanumeric * maxLength: 18 * Must not start with a space or be all spaces * Must not be all zeros * * @return self */ @@ -875,7 +875,7 @@ public function getCarRentalReturnCountry() /** * Sets carRentalReturnCountry * - * @param string|null $carRentalReturnCountry The country where the car must be returned. * Format: Alphanumeric * maxLength: 2 + * @param string|null $carRentalReturnCountry The country where the car must be returned, in [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. * Format: Alphanumeric * maxLength: 2 * * @return self */ @@ -902,7 +902,7 @@ public function getCarRentalReturnDate() /** * Sets carRentalReturnDate * - * @param string|null $carRentalReturnDate The last date to return the car by. * Date format: `yyyyMMdd` + * @param string|null $carRentalReturnDate The last date to return the car by. * Date format: `yyyyMMdd` * maxLength: 8 * * @return self */ @@ -929,7 +929,7 @@ public function getCarRentalReturnLocationId() /** * Sets carRentalReturnLocationId * - * @param string|null $carRentalReturnLocationId Agency code, phone number, or address abbreviation * Format: Alphanumeric * maxLength: 10 + * @param string|null $carRentalReturnLocationId The agency code, phone number, or address abbreviation * Format: Alphanumeric * maxLength: 10 * Must not start with a space or be all spaces * Must not be all zeros * * @return self */ @@ -956,7 +956,7 @@ public function getCarRentalReturnStateProvince() /** * Sets carRentalReturnStateProvince * - * @param string|null $carRentalReturnStateProvince The state or province where the car must be returned. * Format: Alphanumeric * maxLength: 3 + * @param string|null $carRentalReturnStateProvince The state or province where the car must be returned. * Format: Alphanumeric * maxLength: 3 * Must not start with a space or be all spaces * Must not be all zeros * * @return self */ @@ -983,7 +983,7 @@ public function getCarRentalTaxExemptIndicator() /** * Sets carRentalTaxExemptIndicator * - * @param string|null $carRentalTaxExemptIndicator Indicates whether the goods or services were tax-exempt, or tax was not collected. Values: * Y - Goods or services were tax exempt * N - Tax was not collected + * @param string|null $carRentalTaxExemptIndicator Indicates if the goods or services were tax-exempt, or if tax was not paid on them. Values: * Y - Goods or services were tax exempt * N - Tax was not collected * * @return self */ @@ -1010,7 +1010,7 @@ public function getTravelEntertainmentAuthDataDuration() /** * Sets travelEntertainmentAuthDataDuration * - * @param string|null $travelEntertainmentAuthDataDuration Number of nights. This should be included in the auth message. * Format: Numeric * maxLength: 2 + * @param string|null $travelEntertainmentAuthDataDuration Number of days the car is rented for. This should be included in the auth message. * Format: Numeric * maxLength: 2 * * @return self */ @@ -1037,7 +1037,7 @@ public function getTravelEntertainmentAuthDataMarket() /** * Sets travelEntertainmentAuthDataMarket * - * @param string|null $travelEntertainmentAuthDataMarket Indicates what market-specific dataset will be submitted or is being submitted. Value should be \"A\" for Car rental. This should be included in the auth message. * Format: Alphanumeric * maxLength: 1 + * @param string|null $travelEntertainmentAuthDataMarket Indicates what market-specific dataset will be submitted or is being submitted. Value should be 'A' for car rental. This should be included in the auth message. * Format: Alphanumeric * maxLength: 1 * * @return self */ diff --git a/src/Adyen/Model/Checkout/AdditionalDataLevel23.php b/src/Adyen/Model/Checkout/AdditionalDataLevel23.php index d82c7a0c2..62231910e 100644 --- a/src/Adyen/Model/Checkout/AdditionalDataLevel23.php +++ b/src/Adyen/Model/Checkout/AdditionalDataLevel23.php @@ -401,7 +401,7 @@ public function getEnhancedSchemeDataCustomerReference() /** * Sets enhancedSchemeDataCustomerReference * - * @param string|null $enhancedSchemeDataCustomerReference Customer code, if supplied by a customer. Encoding: ASCII. Max length: 25 characters. > Required for Level 2 and Level 3 data. + * @param string|null $enhancedSchemeDataCustomerReference The customer code, if supplied by a customer. Encoding: ASCII Max length: 25 characters Must not start with a space or be all spaces Must not be all zeros * * @return self */ @@ -428,7 +428,7 @@ public function getEnhancedSchemeDataDestinationCountryCode() /** * Sets enhancedSchemeDataDestinationCountryCode * - * @param string|null $enhancedSchemeDataDestinationCountryCode Destination country code. Encoding: ASCII. Max length: 3 characters. + * @param string|null $enhancedSchemeDataDestinationCountryCode The three-letter [ISO 3166-1 alpha-3 country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) for the destination address. Encoding: ASCII Fixed length: 3 characters * * @return self */ @@ -455,7 +455,7 @@ public function getEnhancedSchemeDataDestinationPostalCode() /** * Sets enhancedSchemeDataDestinationPostalCode * - * @param string|null $enhancedSchemeDataDestinationPostalCode The postal code of a destination address. Encoding: ASCII. Max length: 10 characters. > Required for American Express. + * @param string|null $enhancedSchemeDataDestinationPostalCode The postal code of the destination address. Encoding: ASCII Max length: 10 characters Must not start with a space * * @return self */ @@ -482,7 +482,7 @@ public function getEnhancedSchemeDataDestinationStateProvinceCode() /** * Sets enhancedSchemeDataDestinationStateProvinceCode * - * @param string|null $enhancedSchemeDataDestinationStateProvinceCode Destination state or province code. Encoding: ASCII.Max length: 3 characters. + * @param string|null $enhancedSchemeDataDestinationStateProvinceCode Destination state or province code. Encoding: ASCII Max length: 3 characters Must not start with a space * * @return self */ @@ -509,7 +509,7 @@ public function getEnhancedSchemeDataDutyAmount() /** * Sets enhancedSchemeDataDutyAmount * - * @param string|null $enhancedSchemeDataDutyAmount Duty amount, in minor units. For example, 2000 means USD 20.00. Max length: 12 characters. + * @param string|null $enhancedSchemeDataDutyAmount The duty amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). For example, 2000 means USD 20.00. Encoding: Numeric Max length: 12 characters * * @return self */ @@ -536,7 +536,7 @@ public function getEnhancedSchemeDataFreightAmount() /** * Sets enhancedSchemeDataFreightAmount * - * @param string|null $enhancedSchemeDataFreightAmount Shipping amount, in minor units. For example, 2000 means USD 20.00. Max length: 12 characters. + * @param string|null $enhancedSchemeDataFreightAmount The shipping amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). For example, 2000 means USD 20.00. Encoding: Numeric Max length: 12 characters * * @return self */ @@ -563,7 +563,7 @@ public function getEnhancedSchemeDataItemDetailLineItemNrCommodityCode() /** * Sets enhancedSchemeDataItemDetailLineItemNrCommodityCode * - * @param string|null $enhancedSchemeDataItemDetailLineItemNrCommodityCode Item commodity code. Encoding: ASCII. Max length: 12 characters. + * @param string|null $enhancedSchemeDataItemDetailLineItemNrCommodityCode The [UNSPC commodity code](https://www.unspsc.org/) of the item. Encoding: ASCII Max length: 12 characters Must not start with a space or be all spaces Must not be all zeros * * @return self */ @@ -590,7 +590,7 @@ public function getEnhancedSchemeDataItemDetailLineItemNrDescription() /** * Sets enhancedSchemeDataItemDetailLineItemNrDescription * - * @param string|null $enhancedSchemeDataItemDetailLineItemNrDescription Item description. Encoding: ASCII. Max length: 26 characters. + * @param string|null $enhancedSchemeDataItemDetailLineItemNrDescription A description of the item. Encoding: ASCII Max length: 26 characters Must not start with a space or be all spaces Must not be all zeros * * @return self */ @@ -617,7 +617,7 @@ public function getEnhancedSchemeDataItemDetailLineItemNrDiscountAmount() /** * Sets enhancedSchemeDataItemDetailLineItemNrDiscountAmount * - * @param string|null $enhancedSchemeDataItemDetailLineItemNrDiscountAmount Discount amount, in minor units. For example, 2000 means USD 20.00. Max length: 12 characters. + * @param string|null $enhancedSchemeDataItemDetailLineItemNrDiscountAmount The discount amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). For example, 2000 means USD 20.00. Encoding: Numeric Max length: 12 characters * * @return self */ @@ -644,7 +644,7 @@ public function getEnhancedSchemeDataItemDetailLineItemNrProductCode() /** * Sets enhancedSchemeDataItemDetailLineItemNrProductCode * - * @param string|null $enhancedSchemeDataItemDetailLineItemNrProductCode Product code. Encoding: ASCII. Max length: 12 characters. + * @param string|null $enhancedSchemeDataItemDetailLineItemNrProductCode The product code. Encoding: ASCII. Max length: 12 characters Must not start with a space or be all spaces Must not be all zeros * * @return self */ @@ -671,7 +671,7 @@ public function getEnhancedSchemeDataItemDetailLineItemNrQuantity() /** * Sets enhancedSchemeDataItemDetailLineItemNrQuantity * - * @param string|null $enhancedSchemeDataItemDetailLineItemNrQuantity Quantity, specified as an integer value. Value must be greater than 0. Max length: 12 characters. + * @param string|null $enhancedSchemeDataItemDetailLineItemNrQuantity The number of items. Must be an integer greater than zero. Encoding: Numeric Max length: 12 characters Must not start with a space or be all spaces * * @return self */ @@ -698,7 +698,7 @@ public function getEnhancedSchemeDataItemDetailLineItemNrTotalAmount() /** * Sets enhancedSchemeDataItemDetailLineItemNrTotalAmount * - * @param string|null $enhancedSchemeDataItemDetailLineItemNrTotalAmount Total amount, in minor units. For example, 2000 means USD 20.00. Max length: 12 characters. + * @param string|null $enhancedSchemeDataItemDetailLineItemNrTotalAmount The total amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). For example, 2000 means USD 20.00. Max length: 12 characters Must not start with a space or be all spaces Must not be all zeros * * @return self */ @@ -725,7 +725,7 @@ public function getEnhancedSchemeDataItemDetailLineItemNrUnitOfMeasure() /** * Sets enhancedSchemeDataItemDetailLineItemNrUnitOfMeasure * - * @param string|null $enhancedSchemeDataItemDetailLineItemNrUnitOfMeasure Item unit of measurement. Encoding: ASCII. Max length: 3 characters. + * @param string|null $enhancedSchemeDataItemDetailLineItemNrUnitOfMeasure The unit of measurement for an item. Encoding: ASCII Max length: 3 characters Must not start with a space or be all spaces Must not be all zeros * * @return self */ @@ -752,7 +752,7 @@ public function getEnhancedSchemeDataItemDetailLineItemNrUnitPrice() /** * Sets enhancedSchemeDataItemDetailLineItemNrUnitPrice * - * @param string|null $enhancedSchemeDataItemDetailLineItemNrUnitPrice Unit price, specified in [minor units](https://docs.adyen.com/development-resources/currency-codes). Max length: 12 characters. + * @param string|null $enhancedSchemeDataItemDetailLineItemNrUnitPrice The unit price in [minor units](https://docs.adyen.com/development-resources/currency-codes). For example, 2000 means USD 20.00. Encoding: Numeric Max length: 12 characters * * @return self */ @@ -779,7 +779,7 @@ public function getEnhancedSchemeDataOrderDate() /** * Sets enhancedSchemeDataOrderDate * - * @param string|null $enhancedSchemeDataOrderDate Order date. * Format: `ddMMyy` Encoding: ASCII. Max length: 6 characters. + * @param string|null $enhancedSchemeDataOrderDate The order date. * Format: `ddMMyy` Encoding: ASCII Max length: 6 characters * * @return self */ @@ -806,7 +806,7 @@ public function getEnhancedSchemeDataShipFromPostalCode() /** * Sets enhancedSchemeDataShipFromPostalCode * - * @param string|null $enhancedSchemeDataShipFromPostalCode The postal code of a \"ship-from\" address. Encoding: ASCII. Max length: 10 characters. + * @param string|null $enhancedSchemeDataShipFromPostalCode The postal code of the address the item is shipped from. Encoding: ASCII Max length: 10 characters Must not start with a space or be all spaces Must not be all zeros * * @return self */ @@ -833,7 +833,7 @@ public function getEnhancedSchemeDataTotalTaxAmount() /** * Sets enhancedSchemeDataTotalTaxAmount * - * @param string|null $enhancedSchemeDataTotalTaxAmount Total tax amount, in minor units. For example, 2000 means USD 20.00. Max length: 12 characters. > Required for Level 2 and Level 3 data. + * @param string|null $enhancedSchemeDataTotalTaxAmount The total tax amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). For example, 2000 means USD 20.00. Encoding: Numeric Max length: 12 characters * * @return self */ diff --git a/src/Adyen/Model/Checkout/AdditionalDataLodging.php b/src/Adyen/Model/Checkout/AdditionalDataLodging.php index ab71ad8a9..3ec9a5f96 100644 --- a/src/Adyen/Model/Checkout/AdditionalDataLodging.php +++ b/src/Adyen/Model/Checkout/AdditionalDataLodging.php @@ -56,7 +56,6 @@ class AdditionalDataLodging implements ModelInterface, ArrayAccess, \JsonSeriali 'lodgingPropertyPhoneNumber' => 'string', 'lodgingRoom1NumberOfNights' => 'string', 'lodgingRoom1Rate' => 'string', - 'lodgingRoom1Tax' => 'string', 'lodgingTotalRoomTax' => 'string', 'lodgingTotalTax' => 'string', 'travelEntertainmentAuthDataDuration' => 'string', @@ -83,7 +82,6 @@ class AdditionalDataLodging implements ModelInterface, ArrayAccess, \JsonSeriali 'lodgingPropertyPhoneNumber' => null, 'lodgingRoom1NumberOfNights' => null, 'lodgingRoom1Rate' => null, - 'lodgingRoom1Tax' => null, 'lodgingTotalRoomTax' => null, 'lodgingTotalTax' => null, 'travelEntertainmentAuthDataDuration' => null, @@ -108,7 +106,6 @@ class AdditionalDataLodging implements ModelInterface, ArrayAccess, \JsonSeriali 'lodgingPropertyPhoneNumber' => false, 'lodgingRoom1NumberOfNights' => false, 'lodgingRoom1Rate' => false, - 'lodgingRoom1Tax' => false, 'lodgingTotalRoomTax' => false, 'lodgingTotalTax' => false, 'travelEntertainmentAuthDataDuration' => false, @@ -213,7 +210,6 @@ public function isNullableSetToNull(string $property): bool 'lodgingPropertyPhoneNumber' => 'lodging.propertyPhoneNumber', 'lodgingRoom1NumberOfNights' => 'lodging.room1.numberOfNights', 'lodgingRoom1Rate' => 'lodging.room1.rate', - 'lodgingRoom1Tax' => 'lodging.room1.tax', 'lodgingTotalRoomTax' => 'lodging.totalRoomTax', 'lodgingTotalTax' => 'lodging.totalTax', 'travelEntertainmentAuthDataDuration' => 'travelEntertainmentAuthData.duration', @@ -238,7 +234,6 @@ public function isNullableSetToNull(string $property): bool 'lodgingPropertyPhoneNumber' => 'setLodgingPropertyPhoneNumber', 'lodgingRoom1NumberOfNights' => 'setLodgingRoom1NumberOfNights', 'lodgingRoom1Rate' => 'setLodgingRoom1Rate', - 'lodgingRoom1Tax' => 'setLodgingRoom1Tax', 'lodgingTotalRoomTax' => 'setLodgingTotalRoomTax', 'lodgingTotalTax' => 'setLodgingTotalTax', 'travelEntertainmentAuthDataDuration' => 'setTravelEntertainmentAuthDataDuration', @@ -263,7 +258,6 @@ public function isNullableSetToNull(string $property): bool 'lodgingPropertyPhoneNumber' => 'getLodgingPropertyPhoneNumber', 'lodgingRoom1NumberOfNights' => 'getLodgingRoom1NumberOfNights', 'lodgingRoom1Rate' => 'getLodgingRoom1Rate', - 'lodgingRoom1Tax' => 'getLodgingRoom1Tax', 'lodgingTotalRoomTax' => 'getLodgingTotalRoomTax', 'lodgingTotalTax' => 'getLodgingTotalTax', 'travelEntertainmentAuthDataDuration' => 'getTravelEntertainmentAuthDataDuration', @@ -339,7 +333,6 @@ public function __construct(array $data = null) $this->setIfExists('lodgingPropertyPhoneNumber', $data ?? [], null); $this->setIfExists('lodgingRoom1NumberOfNights', $data ?? [], null); $this->setIfExists('lodgingRoom1Rate', $data ?? [], null); - $this->setIfExists('lodgingRoom1Tax', $data ?? [], null); $this->setIfExists('lodgingTotalRoomTax', $data ?? [], null); $this->setIfExists('lodgingTotalTax', $data ?? [], null); $this->setIfExists('travelEntertainmentAuthDataDuration', $data ?? [], null); @@ -455,7 +448,7 @@ public function getLodgingCustomerServiceTollFreeNumber() /** * Sets lodgingCustomerServiceTollFreeNumber * - * @param string|null $lodgingCustomerServiceTollFreeNumber The toll-free phone number for the lodging. * Format: alphanumeric. * Max length: 17 characters. * For US numbers: must start with 3 digits and be at least 10 characters in length. Otherwise, the capture can fail. + * @param string|null $lodgingCustomerServiceTollFreeNumber The toll-free phone number for the lodging. * Format: numeric * Max length: 17 characters. * For US and CA numbers must be 10 characters in length * Must not start with a space * Must not be all zeros * Must not contain any special characters such as + or - * * @return self */ @@ -482,7 +475,7 @@ public function getLodgingFireSafetyActIndicator() /** * Sets lodgingFireSafetyActIndicator * - * @param string|null $lodgingFireSafetyActIndicator Identifies that the facility complies with the Hotel and Motel Fire Safety Act of 1990. Values can be: 'Y' or 'N'. * Format: alphabetic. * Max length: 1 character. + * @param string|null $lodgingFireSafetyActIndicator Identifies that the facility complies with the Hotel and Motel Fire Safety Act of 1990. Must be 'Y' or 'N'. * Format: alphabetic * Max length: 1 character * * @return self */ @@ -509,7 +502,7 @@ public function getLodgingFolioCashAdvances() /** * Sets lodgingFolioCashAdvances * - * @param string|null $lodgingFolioCashAdvances The folio cash advances. * Format: numeric. * Max length: 12 characters. + * @param string|null $lodgingFolioCashAdvances The folio cash advances, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max length: 12 characters * * @return self */ @@ -536,7 +529,7 @@ public function getLodgingFolioNumber() /** * Sets lodgingFolioNumber * - * @param string|null $lodgingFolioNumber The card acceptor’s internal invoice or billing ID reference number. * Format: alphanumeric. * Max length: 25 characters. + * @param string|null $lodgingFolioNumber The card acceptor’s internal invoice or billing ID reference number. * Max length: 25 characters. * Must not start with a space * Must not be all zeros * * @return self */ @@ -563,7 +556,7 @@ public function getLodgingFoodBeverageCharges() /** * Sets lodgingFoodBeverageCharges * - * @param string|null $lodgingFoodBeverageCharges The additional charges for food and beverages associated with the booking. * Format: numeric. * Max length: 12 characters. + * @param string|null $lodgingFoodBeverageCharges Any charges for food and beverages associated with the booking, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max length: 12 characters * * @return self */ @@ -590,7 +583,7 @@ public function getLodgingNoShowIndicator() /** * Sets lodgingNoShowIndicator * - * @param string|null $lodgingNoShowIndicator Indicates if the customer didn't check in for their booking. Possible values: * **Y**: the customer didn't check in. **N**: the customer checked in. + * @param string|null $lodgingNoShowIndicator Indicates if the customer didn't check in for their booking. Possible values: * **Y**: the customer didn't check in * **N**: the customer checked in * * @return self */ @@ -617,7 +610,7 @@ public function getLodgingPrepaidExpenses() /** * Sets lodgingPrepaidExpenses * - * @param string|null $lodgingPrepaidExpenses The prepaid expenses for the booking. * Format: numeric. * Max length: 12 characters. + * @param string|null $lodgingPrepaidExpenses The prepaid expenses for the booking. * Format: numeric * Max length: 12 characters * * @return self */ @@ -644,7 +637,7 @@ public function getLodgingPropertyPhoneNumber() /** * Sets lodgingPropertyPhoneNumber * - * @param string|null $lodgingPropertyPhoneNumber Identifies the location of the lodging by its local phone number. * Format: alphanumeric. * Max length: 17 characters. * For US numbers: must start with 3 digits and be at least 10 characters in length. Otherwise, the capture can fail. + * @param string|null $lodgingPropertyPhoneNumber The lodging property location's phone number. * Format: numeric. * Min length: 10 characters * Max length: 17 characters * For US and CA numbers must be 10 characters in length * Must not start with a space * Must not be all zeros * Must not contain any special characters such as + or - * * @return self */ @@ -671,7 +664,7 @@ public function getLodgingRoom1NumberOfNights() /** * Sets lodgingRoom1NumberOfNights * - * @param string|null $lodgingRoom1NumberOfNights The total number of nights the room is booked for. * Format: numeric. * Max length: 4 characters. + * @param string|null $lodgingRoom1NumberOfNights The total number of nights the room is booked for. * Format: numeric * Must be a number between 0 and 99 * Max length: 2 characters * * @return self */ @@ -698,7 +691,7 @@ public function getLodgingRoom1Rate() /** * Sets lodgingRoom1Rate * - * @param string|null $lodgingRoom1Rate The rate of the room. * Format: numeric. * Max length: 12 characters. * Must be in [minor units](https://docs.adyen.com/development-resources/currency-codes). + * @param string|null $lodgingRoom1Rate The rate for the room, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max length: 12 characters * Must not be a negative number * * @return self */ @@ -712,33 +705,6 @@ public function setLodgingRoom1Rate($lodgingRoom1Rate) return $this; } - /** - * Gets lodgingRoom1Tax - * - * @return string|null - */ - public function getLodgingRoom1Tax() - { - return $this->container['lodgingRoom1Tax']; - } - - /** - * Sets lodgingRoom1Tax - * - * @param string|null $lodgingRoom1Tax The total amount of tax to be paid. * Format: numeric. * Max length: 12 chracters. * Must be in [minor units](https://docs.adyen.com/development-resources/currency-codes). - * - * @return self - */ - public function setLodgingRoom1Tax($lodgingRoom1Tax) - { - if (is_null($lodgingRoom1Tax)) { - throw new \InvalidArgumentException('non-nullable lodgingRoom1Tax cannot be null'); - } - $this->container['lodgingRoom1Tax'] = $lodgingRoom1Tax; - - return $this; - } - /** * Gets lodgingTotalRoomTax * @@ -752,7 +718,7 @@ public function getLodgingTotalRoomTax() /** * Sets lodgingTotalRoomTax * - * @param string|null $lodgingTotalRoomTax The total room tax amount. * Format: numeric. * Max length: 12 characters. * Must be in [minor units](https://docs.adyen.com/development-resources/currency-codes). + * @param string|null $lodgingTotalRoomTax The total room tax amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max length: 12 characters * Must not be a negative number * * @return self */ @@ -779,7 +745,7 @@ public function getLodgingTotalTax() /** * Sets lodgingTotalTax * - * @param string|null $lodgingTotalTax The total tax amount. * Format: numeric. * Max length: 12 characters. * Must be in [minor units](https://docs.adyen.com/development-resources/currency-codes). + * @param string|null $lodgingTotalTax The total tax amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: numeric * Max length: 12 characters * Must not be a negative number * * @return self */ @@ -806,7 +772,7 @@ public function getTravelEntertainmentAuthDataDuration() /** * Sets travelEntertainmentAuthDataDuration * - * @param string|null $travelEntertainmentAuthDataDuration The number of nights. This should be included in the auth message. * Format: numeric. * Max length: 2 characters. + * @param string|null $travelEntertainmentAuthDataDuration The number of nights. This should be included in the auth message. * Format: numeric * Max length: 2 characters * * @return self */ @@ -833,7 +799,7 @@ public function getTravelEntertainmentAuthDataMarket() /** * Sets travelEntertainmentAuthDataMarket * - * @param string|null $travelEntertainmentAuthDataMarket Indicates what market-specific dataset will be submitted or is being submitted. Value should be \"H\" for Hotel. This should be included in the auth message. * Format: alphanumeric. * Max length: 1 character. + * @param string|null $travelEntertainmentAuthDataMarket Indicates what market-specific dataset will be submitted. Must be 'H' for Hotel. This should be included in the auth message. * Format: alphanumeric * Max length: 1 character * * @return self */ diff --git a/src/Adyen/Model/Checkout/AdditionalDataTemporaryServices.php b/src/Adyen/Model/Checkout/AdditionalDataTemporaryServices.php index 63964769d..755c28146 100644 --- a/src/Adyen/Model/Checkout/AdditionalDataTemporaryServices.php +++ b/src/Adyen/Model/Checkout/AdditionalDataTemporaryServices.php @@ -345,7 +345,7 @@ public function getEnhancedSchemeDataCustomerReference() /** * Sets enhancedSchemeDataCustomerReference * - * @param string|null $enhancedSchemeDataCustomerReference Customer code, if supplied by a customer. * Encoding: ASCII * maxLength: 25 + * @param string|null $enhancedSchemeDataCustomerReference The customer code, if supplied by a customer. * Encoding: ASCII * maxLength: 25 * * @return self */ @@ -372,7 +372,7 @@ public function getEnhancedSchemeDataEmployeeName() /** * Sets enhancedSchemeDataEmployeeName * - * @param string|null $enhancedSchemeDataEmployeeName Name or ID associated with the individual working in a temporary capacity. * maxLength: 40 + * @param string|null $enhancedSchemeDataEmployeeName The name or ID of the person working in a temporary capacity. * maxLength: 40 * Must not be all zeros * Must not be all spaces * * @return self */ @@ -399,7 +399,7 @@ public function getEnhancedSchemeDataJobDescription() /** * Sets enhancedSchemeDataJobDescription * - * @param string|null $enhancedSchemeDataJobDescription Description of the job or task of the individual working in a temporary capacity. * maxLength: 40 + * @param string|null $enhancedSchemeDataJobDescription The job description of the person working in a temporary capacity. * maxLength: 40 * Must not be all zeros * Must not be all spaces * * @return self */ @@ -426,7 +426,7 @@ public function getEnhancedSchemeDataRegularHoursRate() /** * Sets enhancedSchemeDataRegularHoursRate * - * @param string|null $enhancedSchemeDataRegularHoursRate Amount paid per regular hours worked, minor units. * maxLength: 7 + * @param string|null $enhancedSchemeDataRegularHoursRate The amount paid for regular hours worked, [minor units](https://docs.adyen.com/development-resources/currency-codes). * maxLength: 7 * Must not be empty * Can be all zeros * * @return self */ @@ -453,7 +453,7 @@ public function getEnhancedSchemeDataRegularHoursWorked() /** * Sets enhancedSchemeDataRegularHoursWorked * - * @param string|null $enhancedSchemeDataRegularHoursWorked Amount of time worked during a normal operation for the task or job. * maxLength: 7 + * @param string|null $enhancedSchemeDataRegularHoursWorked The hours worked. * maxLength: 7 * Must not be empty * Can be all zeros * * @return self */ @@ -480,7 +480,7 @@ public function getEnhancedSchemeDataRequestName() /** * Sets enhancedSchemeDataRequestName * - * @param string|null $enhancedSchemeDataRequestName Name of the individual requesting temporary services. * maxLength: 40 + * @param string|null $enhancedSchemeDataRequestName The name of the person requesting temporary services. * maxLength: 40 * Must not be all zeros * Must not be all spaces * * @return self */ @@ -507,7 +507,7 @@ public function getEnhancedSchemeDataTempStartDate() /** * Sets enhancedSchemeDataTempStartDate * - * @param string|null $enhancedSchemeDataTempStartDate Date for the beginning of the pay period. * Format: ddMMyy * maxLength: 6 + * @param string|null $enhancedSchemeDataTempStartDate The billing period start date. * Format: ddMMyy * maxLength: 6 * * @return self */ @@ -534,7 +534,7 @@ public function getEnhancedSchemeDataTempWeekEnding() /** * Sets enhancedSchemeDataTempWeekEnding * - * @param string|null $enhancedSchemeDataTempWeekEnding Date of the end of the billing cycle. * Format: ddMMyy * maxLength: 6 + * @param string|null $enhancedSchemeDataTempWeekEnding The billing period end date. * Format: ddMMyy * maxLength: 6 * * @return self */ @@ -561,7 +561,7 @@ public function getEnhancedSchemeDataTotalTaxAmount() /** * Sets enhancedSchemeDataTotalTaxAmount * - * @param string|null $enhancedSchemeDataTotalTaxAmount Total tax amount, in minor units. For example, 2000 means USD 20.00 * maxLength: 12 + * @param string|null $enhancedSchemeDataTotalTaxAmount The total tax amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). For example, 2000 means USD 20.00 * maxLength: 12 * * @return self */ diff --git a/src/Adyen/Model/Checkout/CardDetails.php b/src/Adyen/Model/Checkout/CardDetails.php index c5280513b..00f7ca6c9 100644 --- a/src/Adyen/Model/Checkout/CardDetails.php +++ b/src/Adyen/Model/Checkout/CardDetails.php @@ -327,6 +327,9 @@ public function getModelName() public const TYPE_SCHEME = 'scheme'; public const TYPE_NETWORK_TOKEN = 'networkToken'; public const TYPE_GIFTCARD = 'giftcard'; + public const TYPE_MEAL_VOUCHER_FR_GROUPEUP = 'mealVoucher_FR_groupeup'; + public const TYPE_MEAL_VOUCHER_FR_NATIXIS = 'mealVoucher_FR_natixis'; + public const TYPE_MEAL_VOUCHER_FR_SODEXO = 'mealVoucher_FR_sodexo'; public const TYPE_ALLIANCEDATA = 'alliancedata'; public const TYPE_CARD = 'card'; @@ -352,6 +355,9 @@ public function getTypeAllowableValues() self::TYPE_SCHEME, self::TYPE_NETWORK_TOKEN, self::TYPE_GIFTCARD, + self::TYPE_MEAL_VOUCHER_FR_GROUPEUP, + self::TYPE_MEAL_VOUCHER_FR_NATIXIS, + self::TYPE_MEAL_VOUCHER_FR_SODEXO, self::TYPE_ALLIANCEDATA, self::TYPE_CARD, ]; diff --git a/src/Adyen/Model/Checkout/CreateCheckoutSessionRequest.php b/src/Adyen/Model/Checkout/CreateCheckoutSessionRequest.php index 7a1d26a5a..6c27a56b3 100644 --- a/src/Adyen/Model/Checkout/CreateCheckoutSessionRequest.php +++ b/src/Adyen/Model/Checkout/CreateCheckoutSessionRequest.php @@ -2071,7 +2071,7 @@ public function getSplits() /** * Sets splits * - * @param \Adyen\Model\Checkout\Split[]|null $splits An array of objects specifying how the payment should be split when using [Adyen for Platforms](https://docs.adyen.com/platforms/processing-payments#providing-split-information) or [Issuing](https://docs.adyen.com/issuing/manage-funds#split). + * @param \Adyen\Model\Checkout\Split[]|null $splits An array of objects specifying how to split a payment when using [Adyen for Platforms](https://docs.adyen.com/marketplaces-and-platforms/processing-payments#providing-split-information), [Classic Platforms integration](https://docs.adyen.com/marketplaces-and-platforms/classic/processing-payments#providing-split-information), or [Issuing](https://docs.adyen.com/issuing/manage-funds#split). * * @return self */ diff --git a/src/Adyen/Model/Checkout/CreateCheckoutSessionResponse.php b/src/Adyen/Model/Checkout/CreateCheckoutSessionResponse.php index aa0708b4a..4388f4b63 100644 --- a/src/Adyen/Model/Checkout/CreateCheckoutSessionResponse.php +++ b/src/Adyen/Model/Checkout/CreateCheckoutSessionResponse.php @@ -2212,7 +2212,7 @@ public function getSplits() /** * Sets splits * - * @param \Adyen\Model\Checkout\Split[]|null $splits An array of objects specifying how the payment should be split when using [Adyen for Platforms](https://docs.adyen.com/platforms/processing-payments#providing-split-information) or [Issuing](https://docs.adyen.com/issuing/manage-funds#split). + * @param \Adyen\Model\Checkout\Split[]|null $splits An array of objects specifying how to split a payment when using [Adyen for Platforms](https://docs.adyen.com/marketplaces-and-platforms/processing-payments#providing-split-information), [Classic Platforms integration](https://docs.adyen.com/marketplaces-and-platforms/classic/processing-payments#providing-split-information), or [Issuing](https://docs.adyen.com/issuing/manage-funds#split). * * @return self */ diff --git a/src/Adyen/Model/Checkout/CreatePaymentLinkRequest.php b/src/Adyen/Model/Checkout/CreatePaymentLinkRequest.php index f4903be6b..bfccf642e 100644 --- a/src/Adyen/Model/Checkout/CreatePaymentLinkRequest.php +++ b/src/Adyen/Model/Checkout/CreatePaymentLinkRequest.php @@ -1535,7 +1535,7 @@ public function getSplits() /** * Sets splits * - * @param \Adyen\Model\Checkout\Split[]|null $splits An array of objects specifying how the payment should be split between accounts when using Adyen for Platforms. For details, refer to [Providing split information](https://docs.adyen.com/marketplaces-and-platforms/processing-payments#providing-split-information). + * @param \Adyen\Model\Checkout\Split[]|null $splits An array of objects specifying how to split a payment when using [Adyen for Platforms](https://docs.adyen.com/marketplaces-and-platforms/processing-payments#providing-split-information), [Classic Platforms integration](https://docs.adyen.com/marketplaces-and-platforms/classic/processing-payments#providing-split-information), or [Issuing](https://docs.adyen.com/issuing/manage-funds#split). * * @return self */ diff --git a/src/Adyen/Model/Checkout/PaymentDetails.php b/src/Adyen/Model/Checkout/PaymentDetails.php index 8e421b5fb..b94e13215 100644 --- a/src/Adyen/Model/Checkout/PaymentDetails.php +++ b/src/Adyen/Model/Checkout/PaymentDetails.php @@ -261,6 +261,7 @@ public function getModelName() public const TYPE_PIX = 'pix'; public const TYPE_BIZUM = 'bizum'; public const TYPE_ALMA = 'alma'; + public const TYPE_PAYPO = 'paypo'; public const TYPE_MOLPAY_FPX = 'molpay_fpx'; public const TYPE_KONBINI = 'konbini'; public const TYPE_DIRECT_EBANKING = 'directEbanking'; @@ -359,6 +360,7 @@ public function getTypeAllowableValues() self::TYPE_PIX, self::TYPE_BIZUM, self::TYPE_ALMA, + self::TYPE_PAYPO, self::TYPE_MOLPAY_FPX, self::TYPE_KONBINI, self::TYPE_DIRECT_EBANKING, diff --git a/src/Adyen/Model/Checkout/PaymentLinkResponse.php b/src/Adyen/Model/Checkout/PaymentLinkResponse.php index fab47d450..83398854e 100644 --- a/src/Adyen/Model/Checkout/PaymentLinkResponse.php +++ b/src/Adyen/Model/Checkout/PaymentLinkResponse.php @@ -1628,7 +1628,7 @@ public function getSplits() /** * Sets splits * - * @param \Adyen\Model\Checkout\Split[]|null $splits An array of objects specifying how the payment should be split between accounts when using Adyen for Platforms. For details, refer to [Providing split information](https://docs.adyen.com/marketplaces-and-platforms/processing-payments#providing-split-information). + * @param \Adyen\Model\Checkout\Split[]|null $splits An array of objects specifying how to split a payment when using [Adyen for Platforms](https://docs.adyen.com/marketplaces-and-platforms/processing-payments#providing-split-information), [Classic Platforms integration](https://docs.adyen.com/marketplaces-and-platforms/classic/processing-payments#providing-split-information), or [Issuing](https://docs.adyen.com/issuing/manage-funds#split). * * @return self */ diff --git a/src/Adyen/Model/Checkout/Split.php b/src/Adyen/Model/Checkout/Split.php index a68bfbd2d..e4026614a 100644 --- a/src/Adyen/Model/Checkout/Split.php +++ b/src/Adyen/Model/Checkout/Split.php @@ -244,6 +244,12 @@ public function getModelName() public const TYPE__DEFAULT = 'Default'; public const TYPE_MARKET_PLACE = 'MarketPlace'; public const TYPE_PAYMENT_FEE = 'PaymentFee'; + public const TYPE_PAYMENT_FEE_ACQUIRING = 'PaymentFeeAcquiring'; + public const TYPE_PAYMENT_FEE_ADYEN = 'PaymentFeeAdyen'; + public const TYPE_PAYMENT_FEE_ADYEN_COMMISSION = 'PaymentFeeAdyenCommission'; + public const TYPE_PAYMENT_FEE_ADYEN_MARKUP = 'PaymentFeeAdyenMarkup'; + public const TYPE_PAYMENT_FEE_INTERCHANGE = 'PaymentFeeInterchange'; + public const TYPE_PAYMENT_FEE_SCHEME_FEE = 'PaymentFeeSchemeFee'; public const TYPE_REMAINDER = 'Remainder'; public const TYPE_SURCHARGE = 'Surcharge'; public const TYPE_TIP = 'Tip'; @@ -263,6 +269,12 @@ public function getTypeAllowableValues() self::TYPE__DEFAULT, self::TYPE_MARKET_PLACE, self::TYPE_PAYMENT_FEE, + self::TYPE_PAYMENT_FEE_ACQUIRING, + self::TYPE_PAYMENT_FEE_ADYEN, + self::TYPE_PAYMENT_FEE_ADYEN_COMMISSION, + self::TYPE_PAYMENT_FEE_ADYEN_MARKUP, + self::TYPE_PAYMENT_FEE_INTERCHANGE, + self::TYPE_PAYMENT_FEE_SCHEME_FEE, self::TYPE_REMAINDER, self::TYPE_SURCHARGE, self::TYPE_TIP, diff --git a/src/Adyen/Model/LegalEntityManagement/Address.php b/src/Adyen/Model/LegalEntityManagement/Address.php index f789fbd1e..f08cb68ee 100644 --- a/src/Adyen/Model/LegalEntityManagement/Address.php +++ b/src/Adyen/Model/LegalEntityManagement/Address.php @@ -408,7 +408,7 @@ public function getStateOrProvince() /** * Sets stateOrProvince * - * @param string|null $stateOrProvince The two-letter ISO 3166-2 state or province code. For example, **CA** in the US. If you specify the state or province, you must also send `city`, `postalCode`, and `street`. + * @param string|null $stateOrProvince The two-letter ISO 3166-2 state or province code. For example, **CA** in the US. If you specify the state or province, you must also send `city`, `postalCode`, and `street`. * * @return self */ diff --git a/src/Adyen/Model/LegalEntityManagement/BankAccountInfo.php b/src/Adyen/Model/LegalEntityManagement/BankAccountInfo.php index 2dd02ccb8..77b637fd6 100644 --- a/src/Adyen/Model/LegalEntityManagement/BankAccountInfo.php +++ b/src/Adyen/Model/LegalEntityManagement/BankAccountInfo.php @@ -46,7 +46,8 @@ class BankAccountInfo implements ModelInterface, ArrayAccess, \JsonSerializable protected static $openAPITypes = [ 'accountIdentification' => '\Adyen\Model\LegalEntityManagement\BankAccount', 'accountType' => 'string', - 'countryCode' => 'string' + 'countryCode' => 'string', + 'trustedSource' => 'bool' ]; /** @@ -59,7 +60,8 @@ class BankAccountInfo implements ModelInterface, ArrayAccess, \JsonSerializable protected static $openAPIFormats = [ 'accountIdentification' => null, 'accountType' => null, - 'countryCode' => null + 'countryCode' => null, + 'trustedSource' => null ]; /** @@ -70,7 +72,8 @@ class BankAccountInfo implements ModelInterface, ArrayAccess, \JsonSerializable protected static $openAPINullables = [ 'accountIdentification' => false, 'accountType' => false, - 'countryCode' => false + 'countryCode' => false, + 'trustedSource' => false ]; /** @@ -161,7 +164,8 @@ public function isNullableSetToNull(string $property): bool protected static $attributeMap = [ 'accountIdentification' => 'accountIdentification', 'accountType' => 'accountType', - 'countryCode' => 'countryCode' + 'countryCode' => 'countryCode', + 'trustedSource' => 'trustedSource' ]; /** @@ -172,7 +176,8 @@ public function isNullableSetToNull(string $property): bool protected static $setters = [ 'accountIdentification' => 'setAccountIdentification', 'accountType' => 'setAccountType', - 'countryCode' => 'setCountryCode' + 'countryCode' => 'setCountryCode', + 'trustedSource' => 'setTrustedSource' ]; /** @@ -183,7 +188,8 @@ public function isNullableSetToNull(string $property): bool protected static $getters = [ 'accountIdentification' => 'getAccountIdentification', 'accountType' => 'getAccountType', - 'countryCode' => 'getCountryCode' + 'countryCode' => 'getCountryCode', + 'trustedSource' => 'getTrustedSource' ]; /** @@ -246,6 +252,7 @@ public function __construct(array $data = null) $this->setIfExists('accountIdentification', $data ?? [], null); $this->setIfExists('accountType', $data ?? [], null); $this->setIfExists('countryCode', $data ?? [], null); + $this->setIfExists('trustedSource', $data ?? [], null); } /** @@ -372,6 +379,33 @@ public function setCountryCode($countryCode) return $this; } + + /** + * Gets trustedSource + * + * @return bool|null + */ + public function getTrustedSource() + { + return $this->container['trustedSource']; + } + + /** + * Sets trustedSource + * + * @param bool|null $trustedSource Identifies if the bank account was created through [instant bank verification](https://docs.adyen.com/release-notes/platforms-and-financial-products#releaseNote=2023-05-08-hosted-onboarding). + * + * @return self + */ + public function setTrustedSource($trustedSource) + { + if (is_null($trustedSource)) { + throw new \InvalidArgumentException('non-nullable trustedSource cannot be null'); + } + $this->container['trustedSource'] = $trustedSource; + + return $this; + } /** * Returns true if offset exists. False otherwise. * diff --git a/src/Adyen/Model/LegalEntityManagement/Document.php b/src/Adyen/Model/LegalEntityManagement/Document.php index 7ce1199d3..cf5191673 100644 --- a/src/Adyen/Model/LegalEntityManagement/Document.php +++ b/src/Adyen/Model/LegalEntityManagement/Document.php @@ -760,7 +760,7 @@ public function getType() /** * Sets type * - * @param string $type Type of document, used when providing an ID number or uploading a document. The possible values depend on the legal entity type. When providing ID numbers: * For **individual**, the `type` values can be **driversLicense**, **identityCard**, **nationalIdNumber**, or **passport**. When uploading photo IDs: * For **individual**, the `type` values can be **identityCard**, **driversLicense**, or **passport**. When uploading other documents: * For **organization**, the `type` values can be **proofOfAddress**, **registrationDocument**, **vatDocument**, **proofOfOrganizationTaxInfo**, **proofOfOwnership**, or **proofOfIndustry**. * For **individual**, the `type` values can be **identityCard**, **driversLicense**, **passport**, **proofOfNationalIdNumber**, **proofOfResidency**, **proofOfIndustry**, or **proofOfIndividualTaxId**. * For **soleProprietorship**, the `type` values can be **constitutionalDocument**, **proofOfAddress**, or **proofOfIndustry**. * Use **bankStatement** to upload documents for a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). + * @param string $type Type of document, used when providing an ID number or uploading a document. The possible values depend on the legal entity type. When providing ID numbers: * For **individual**, the `type` values can be **driversLicense**, **identityCard**, **nationalIdNumber**, or **passport**. When uploading photo IDs: * For **individual**, the `type` values can be **identityCard**, **driversLicense**, or **passport**. When uploading other documents: * For **organization**, the `type` values can be **proofOfAddress**, **registrationDocument**, **vatDocument**, **proofOfOrganizationTaxInfo**, **proofOfOwnership**, or **proofOfIndustry**. * For **individual**, the `type` values can be **identityCard**, **driversLicense**, **passport**, **proofOfNationalIdNumber**, **proofOfResidency**, **proofOfIndustry**, or **proofOfIndividualTaxId**. * For **soleProprietorship**, the `type` values can be **constitutionalDocument**, **proofOfAddress**, or **proofOfIndustry**. * Use **bankStatement** to upload documents for a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). * * @return self */ diff --git a/src/Adyen/Model/LegalEntityManagement/IdentificationData.php b/src/Adyen/Model/LegalEntityManagement/IdentificationData.php index 47db1b652..3c06f7a68 100644 --- a/src/Adyen/Model/LegalEntityManagement/IdentificationData.php +++ b/src/Adyen/Model/LegalEntityManagement/IdentificationData.php @@ -545,7 +545,7 @@ public function getType() /** * Sets type * - * @param string $type Type of document, used when providing an ID number or uploading a document. The possible values depend on the legal entity type. When providing ID numbers: * For **individual**, the `type` values can be **driversLicense**, **identityCard**, **nationalIdNumber**, or **passport**. When uploading photo IDs: * For **individual**, the `type` values can be **identityCard**, **driversLicense**, or **passport**. When uploading other documents: * For **organization**, the `type` values can be **proofOfAddress**, **registrationDocument**, **vatDocument**, **proofOfOrganizationTaxInfo**, **proofOfOwnership**, or **proofOfIndustry**. * For **individual**, the `type` values can be **identityCard**, **driversLicense**, **passport**, **proofOfNationalIdNumber**, **proofOfResidency**, **proofOfIndustry**, or **proofOfIndividualTaxId**. * For **soleProprietorship**, the `type` values can be **constitutionalDocument**, **proofOfAddress**, or **proofOfIndustry**. * Use **bankStatement** to upload documents for a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). + * @param string $type Type of document, used when providing an ID number or uploading a document. The possible values depend on the legal entity type. When providing ID numbers: * For **individual**, the `type` values can be **driversLicense**, **identityCard**, **nationalIdNumber**, or **passport**. When uploading photo IDs: * For **individual**, the `type` values can be **identityCard**, **driversLicense**, or **passport**. When uploading other documents: * For **organization**, the `type` values can be **proofOfAddress**, **registrationDocument**, **vatDocument**, **proofOfOrganizationTaxInfo**, **proofOfOwnership**, or **proofOfIndustry**. * For **individual**, the `type` values can be **identityCard**, **driversLicense**, **passport**, **proofOfNationalIdNumber**, **proofOfResidency**, **proofOfIndustry**, or **proofOfIndividualTaxId**. * For **soleProprietorship**, the `type` values can be **constitutionalDocument**, **proofOfAddress**, or **proofOfIndustry**. * Use **bankStatement** to upload documents for a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). * * @return self */ diff --git a/src/Adyen/Model/LegalEntityManagement/LegalEntityAssociation.php b/src/Adyen/Model/LegalEntityManagement/LegalEntityAssociation.php index 58c973242..5104228cd 100644 --- a/src/Adyen/Model/LegalEntityManagement/LegalEntityAssociation.php +++ b/src/Adyen/Model/LegalEntityManagement/LegalEntityAssociation.php @@ -388,7 +388,7 @@ public function getEntityType() /** * Sets entityType * - * @param string|null $entityType The legal entity type of associated legal entity. For example, **organization**, **soleProprietorship** or **individual**. + * @param string|null $entityType The legal entity type of associated legal entity. For example, **organization**, **soleProprietorship** or **individual**. * * @return self */ @@ -496,7 +496,7 @@ public function getType() /** * Sets type * - * @param string $type Defines the relationship of the legal entity to the current legal entity. Possible values for organizations: **uboThroughOwnership**, **uboThroughControl**, **signatory**, or **ultimateParentCompany**. Possible values for sole proprietorships: **soleProprietorship**. + * @param string $type Defines the relationship of the legal entity to the current legal entity. Possible values for organizations: **uboThroughOwnership**, **uboThroughControl**, **signatory**, or **ultimateParentCompany**. Possible values for sole proprietorships: **soleProprietorship**. * * @return self */ diff --git a/src/Adyen/Model/LegalEntityManagement/Organization.php b/src/Adyen/Model/LegalEntityManagement/Organization.php index d0a7b4191..329d5ba48 100644 --- a/src/Adyen/Model/LegalEntityManagement/Organization.php +++ b/src/Adyen/Model/LegalEntityManagement/Organization.php @@ -778,7 +778,7 @@ public function getType() /** * Sets type * - * @param string|null $type Type of organization. Possible values: **associationIncorporated**, **governmentalOrganization**, **listedPublicCompany**, **nonProfit**, **partnershipIncorporated**, **privateCompany**. + * @param string|null $type Type of organization. Possible values: **associationIncorporated**, **governmentalOrganization**, **listedPublicCompany**, **nonProfit**, **partnershipIncorporated**, **privateCompany**. * * @return self */ diff --git a/src/Adyen/Model/LegalEntityManagement/TransferInstrumentReference.php b/src/Adyen/Model/LegalEntityManagement/TransferInstrumentReference.php index 1c0bc8b4c..45c3b7437 100644 --- a/src/Adyen/Model/LegalEntityManagement/TransferInstrumentReference.php +++ b/src/Adyen/Model/LegalEntityManagement/TransferInstrumentReference.php @@ -397,7 +397,7 @@ public function getTrustedSource() /** * Sets trustedSource * - * @param bool|null $trustedSource Identifies if the TI was created from a trusted source. + * @param bool|null $trustedSource Identifies if the bank account was created through [instant bank verification](https://docs.adyen.com/release-notes/platforms-and-financial-products#releaseNote=2023-05-08-hosted-onboarding). * * @return self */ diff --git a/src/Adyen/Model/Management/ShopperStatement.php b/src/Adyen/Model/Management/AfterpayTouchInfo.php similarity index 71% rename from src/Adyen/Model/Management/ShopperStatement.php rename to src/Adyen/Model/Management/AfterpayTouchInfo.php index f310117ff..57591d5bf 100644 --- a/src/Adyen/Model/Management/ShopperStatement.php +++ b/src/Adyen/Model/Management/AfterpayTouchInfo.php @@ -19,7 +19,7 @@ use Adyen\Model\Management\ObjectSerializer; /** - * ShopperStatement Class Doc Comment + * AfterpayTouchInfo Class Doc Comment * * @category Class * @package Adyen @@ -27,7 +27,7 @@ * @link https://openapi-generator.tech * @implements \ArrayAccess */ -class ShopperStatement implements ModelInterface, ArrayAccess, \JsonSerializable +class AfterpayTouchInfo implements ModelInterface, ArrayAccess, \JsonSerializable { public const DISCRIMINATOR = null; @@ -36,7 +36,7 @@ class ShopperStatement implements ModelInterface, ArrayAccess, \JsonSerializable * * @var string */ - protected static $openAPIModelName = 'ShopperStatement'; + protected static $openAPIModelName = 'AfterpayTouchInfo'; /** * Array of property to type mappings. Used for (de)serialization @@ -44,8 +44,7 @@ class ShopperStatement implements ModelInterface, ArrayAccess, \JsonSerializable * @var string[] */ protected static $openAPITypes = [ - 'doingBusinessAsName' => 'string', - 'type' => 'string' + 'supportUrl' => 'string' ]; /** @@ -56,8 +55,7 @@ class ShopperStatement implements ModelInterface, ArrayAccess, \JsonSerializable * @psalm-var array */ protected static $openAPIFormats = [ - 'doingBusinessAsName' => null, - 'type' => null + 'supportUrl' => null ]; /** @@ -66,8 +64,7 @@ class ShopperStatement implements ModelInterface, ArrayAccess, \JsonSerializable * @var boolean[] */ protected static $openAPINullables = [ - 'doingBusinessAsName' => false, - 'type' => false + 'supportUrl' => false ]; /** @@ -156,8 +153,7 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $attributeMap = [ - 'doingBusinessAsName' => 'doingBusinessAsName', - 'type' => 'type' + 'supportUrl' => 'supportUrl' ]; /** @@ -166,8 +162,7 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $setters = [ - 'doingBusinessAsName' => 'setDoingBusinessAsName', - 'type' => 'setType' + 'supportUrl' => 'setSupportUrl' ]; /** @@ -176,8 +171,7 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $getters = [ - 'doingBusinessAsName' => 'getDoingBusinessAsName', - 'type' => 'getType' + 'supportUrl' => 'getSupportUrl' ]; /** @@ -221,23 +215,7 @@ public function getModelName() return self::$openAPIModelName; } - public const TYPE_APPEND = 'append'; - public const TYPE_DYNAMIC = 'dynamic'; - public const TYPE_FIXED = 'fixed'; - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getTypeAllowableValues() - { - return [ - self::TYPE_APPEND, - self::TYPE_DYNAMIC, - self::TYPE_FIXED, - ]; - } /** * Associative array for storing property values * @@ -253,8 +231,7 @@ public function getTypeAllowableValues() */ public function __construct(array $data = null) { - $this->setIfExists('doingBusinessAsName', $data ?? [], null); - $this->setIfExists('type', $data ?? [], 'dynamic'); + $this->setIfExists('supportUrl', $data ?? [], null); } /** @@ -284,15 +261,9 @@ public function listInvalidProperties() { $invalidProperties = []; - $allowedValues = $this->getTypeAllowableValues(); - if (!is_null($this->container['type']) && !in_array($this->container['type'], $allowedValues, true)) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'type', must be one of '%s'", - $this->container['type'], - implode("', '", $allowedValues) - ); + if ($this->container['supportUrl'] === null) { + $invalidProperties[] = "'supportUrl' can't be null"; } - return $invalidProperties; } @@ -309,65 +280,28 @@ public function valid() /** - * Gets doingBusinessAsName - * - * @return string|null - */ - public function getDoingBusinessAsName() - { - return $this->container['doingBusinessAsName']; - } - - /** - * Sets doingBusinessAsName - * - * @param string|null $doingBusinessAsName The name you want to be shown on the shopper's bank or credit card statement. Can't be all numbers. If a shopper statement is present, this field is required. + * Gets supportUrl * - * @return self - */ - public function setDoingBusinessAsName($doingBusinessAsName) - { - if (is_null($doingBusinessAsName)) { - throw new \InvalidArgumentException('non-nullable doingBusinessAsName cannot be null'); - } - $this->container['doingBusinessAsName'] = $doingBusinessAsName; - - return $this; - } - - /** - * Gets type - * - * @return string|null + * @return string */ - public function getType() + public function getSupportUrl() { - return $this->container['type']; + return $this->container['supportUrl']; } /** - * Sets type + * Sets supportUrl * - * @param string|null $type The type of shopperstatement you want to use: fixed, append or dynamic + * @param string $supportUrl Support Url * * @return self */ - public function setType($type) + public function setSupportUrl($supportUrl) { - if (is_null($type)) { - throw new \InvalidArgumentException('non-nullable type cannot be null'); - } - $allowedValues = $this->getTypeAllowableValues(); - if (!in_array($type, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'type', must be one of '%s'", - $type, - implode("', '", $allowedValues) - ) - ); + if (is_null($supportUrl)) { + throw new \InvalidArgumentException('non-nullable supportUrl cannot be null'); } - $this->container['type'] = $type; + $this->container['supportUrl'] = $supportUrl; return $this; } diff --git a/src/Adyen/Model/Management/ClearpayInfo.php b/src/Adyen/Model/Management/ClearpayInfo.php new file mode 100644 index 000000000..107e4072c --- /dev/null +++ b/src/Adyen/Model/Management/ClearpayInfo.php @@ -0,0 +1,387 @@ + + */ +class ClearpayInfo implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'ClearpayInfo'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'supportUrl' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'supportUrl' => null + ]; + + /** + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ + protected static $openAPINullables = [ + 'supportUrl' => false + ]; + + /** + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ + protected $openAPINullablesSetToNull = []; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of nullable properties + * + * @return array + */ + protected static function openAPINullables(): array + { + return self::$openAPINullables; + } + + /** + * Array of nullable field names deliberately set to null + * + * @return boolean[] + */ + private function getOpenAPINullablesSetToNull(): array + { + return $this->openAPINullablesSetToNull; + } + + /** + * Setter - Array of nullable field names deliberately set to null + * + * @param boolean[] $openAPINullablesSetToNull + */ + private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void + { + $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; + } + + /** + * Checks if a property is nullable + * + * @param string $property + * @return bool + */ + public static function isNullable(string $property): bool + { + return self::openAPINullables()[$property] ?? false; + } + + /** + * Checks if a nullable property is set to null. + * + * @param string $property + * @return bool + */ + public function isNullableSetToNull(string $property): bool + { + return in_array($property, $this->getOpenAPINullablesSetToNull(), true); + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'supportUrl' => 'supportUrl' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'supportUrl' => 'setSupportUrl' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'supportUrl' => 'getSupportUrl' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->setIfExists('supportUrl', $data ?? [], null); + } + + /** + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ + private function setIfExists(string $variableName, array $fields, $defaultValue): void + { + if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { + $this->openAPINullablesSetToNull[] = $variableName; + } + + $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['supportUrl'] === null) { + $invalidProperties[] = "'supportUrl' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets supportUrl + * + * @return string + */ + public function getSupportUrl() + { + return $this->container['supportUrl']; + } + + /** + * Sets supportUrl + * + * @param string $supportUrl Support Url + * + * @return self + */ + public function setSupportUrl($supportUrl) + { + if (is_null($supportUrl)) { + throw new \InvalidArgumentException('non-nullable supportUrl cannot be null'); + } + $this->container['supportUrl'] = $supportUrl; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset): bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed|null + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + * + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value): void + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset): void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed Returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource. + */ + #[\ReturnTypeWillChange] + public function jsonSerialize() + { + return ObjectSerializer::sanitizeForSerialization($this); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } +} diff --git a/src/Adyen/Model/Management/CompanyUser.php b/src/Adyen/Model/Management/CompanyUser.php index 43309e5b6..e571929f9 100644 --- a/src/Adyen/Model/Management/CompanyUser.php +++ b/src/Adyen/Model/Management/CompanyUser.php @@ -47,8 +47,8 @@ class CompanyUser implements ModelInterface, ArrayAccess, \JsonSerializable 'links' => '\Adyen\Model\Management\Links', 'accountGroups' => 'string[]', 'active' => 'bool', + 'apps' => 'string[]', 'associatedMerchantAccounts' => 'string[]', - 'authnApps' => 'string[]', 'email' => 'string', 'id' => 'string', 'name' => '\Adyen\Model\Management\Name', @@ -68,8 +68,8 @@ class CompanyUser implements ModelInterface, ArrayAccess, \JsonSerializable 'links' => null, 'accountGroups' => null, 'active' => null, + 'apps' => null, 'associatedMerchantAccounts' => null, - 'authnApps' => null, 'email' => null, 'id' => null, 'name' => null, @@ -87,8 +87,8 @@ class CompanyUser implements ModelInterface, ArrayAccess, \JsonSerializable 'links' => false, 'accountGroups' => false, 'active' => false, + 'apps' => false, 'associatedMerchantAccounts' => false, - 'authnApps' => false, 'email' => false, 'id' => false, 'name' => false, @@ -186,8 +186,8 @@ public function isNullableSetToNull(string $property): bool 'links' => '_links', 'accountGroups' => 'accountGroups', 'active' => 'active', + 'apps' => 'apps', 'associatedMerchantAccounts' => 'associatedMerchantAccounts', - 'authnApps' => 'authnApps', 'email' => 'email', 'id' => 'id', 'name' => 'name', @@ -205,8 +205,8 @@ public function isNullableSetToNull(string $property): bool 'links' => 'setLinks', 'accountGroups' => 'setAccountGroups', 'active' => 'setActive', + 'apps' => 'setApps', 'associatedMerchantAccounts' => 'setAssociatedMerchantAccounts', - 'authnApps' => 'setAuthnApps', 'email' => 'setEmail', 'id' => 'setId', 'name' => 'setName', @@ -224,8 +224,8 @@ public function isNullableSetToNull(string $property): bool 'links' => 'getLinks', 'accountGroups' => 'getAccountGroups', 'active' => 'getActive', + 'apps' => 'getApps', 'associatedMerchantAccounts' => 'getAssociatedMerchantAccounts', - 'authnApps' => 'getAuthnApps', 'email' => 'getEmail', 'id' => 'getId', 'name' => 'getName', @@ -294,8 +294,8 @@ public function __construct(array $data = null) $this->setIfExists('links', $data ?? [], null); $this->setIfExists('accountGroups', $data ?? [], null); $this->setIfExists('active', $data ?? [], null); + $this->setIfExists('apps', $data ?? [], null); $this->setIfExists('associatedMerchantAccounts', $data ?? [], null); - $this->setIfExists('authnApps', $data ?? [], null); $this->setIfExists('email', $data ?? [], null); $this->setIfExists('id', $data ?? [], null); $this->setIfExists('name', $data ?? [], null); @@ -443,55 +443,55 @@ public function setActive($active) } /** - * Gets associatedMerchantAccounts + * Gets apps * * @return string[]|null */ - public function getAssociatedMerchantAccounts() + public function getApps() { - return $this->container['associatedMerchantAccounts']; + return $this->container['apps']; } /** - * Sets associatedMerchantAccounts + * Sets apps * - * @param string[]|null $associatedMerchantAccounts The list of [merchant accounts](https://docs.adyen.com/account/account-structure#merchant-accounts) associated with this user. + * @param string[]|null $apps Set of apps available to this user * * @return self */ - public function setAssociatedMerchantAccounts($associatedMerchantAccounts) + public function setApps($apps) { - if (is_null($associatedMerchantAccounts)) { - throw new \InvalidArgumentException('non-nullable associatedMerchantAccounts cannot be null'); + if (is_null($apps)) { + throw new \InvalidArgumentException('non-nullable apps cannot be null'); } - $this->container['associatedMerchantAccounts'] = $associatedMerchantAccounts; + $this->container['apps'] = $apps; return $this; } /** - * Gets authnApps + * Gets associatedMerchantAccounts * * @return string[]|null */ - public function getAuthnApps() + public function getAssociatedMerchantAccounts() { - return $this->container['authnApps']; + return $this->container['associatedMerchantAccounts']; } /** - * Sets authnApps + * Sets associatedMerchantAccounts * - * @param string[]|null $authnApps Set of authn apps available to this user + * @param string[]|null $associatedMerchantAccounts The list of [merchant accounts](https://docs.adyen.com/account/account-structure#merchant-accounts) associated with this user. * * @return self */ - public function setAuthnApps($authnApps) + public function setAssociatedMerchantAccounts($associatedMerchantAccounts) { - if (is_null($authnApps)) { - throw new \InvalidArgumentException('non-nullable authnApps cannot be null'); + if (is_null($associatedMerchantAccounts)) { + throw new \InvalidArgumentException('non-nullable associatedMerchantAccounts cannot be null'); } - $this->container['authnApps'] = $authnApps; + $this->container['associatedMerchantAccounts'] = $associatedMerchantAccounts; return $this; } diff --git a/src/Adyen/Model/Management/CreateCompanyUserRequest.php b/src/Adyen/Model/Management/CreateCompanyUserRequest.php index 5cf133c68..c6990b649 100644 --- a/src/Adyen/Model/Management/CreateCompanyUserRequest.php +++ b/src/Adyen/Model/Management/CreateCompanyUserRequest.php @@ -46,7 +46,6 @@ class CreateCompanyUserRequest implements ModelInterface, ArrayAccess, \JsonSeri protected static $openAPITypes = [ 'accountGroups' => 'string[]', 'associatedMerchantAccounts' => 'string[]', - 'authnApps' => 'string[]', 'email' => 'string', 'name' => '\Adyen\Model\Management\Name', 'roles' => 'string[]', @@ -64,7 +63,6 @@ class CreateCompanyUserRequest implements ModelInterface, ArrayAccess, \JsonSeri protected static $openAPIFormats = [ 'accountGroups' => null, 'associatedMerchantAccounts' => null, - 'authnApps' => null, 'email' => null, 'name' => null, 'roles' => null, @@ -80,7 +78,6 @@ class CreateCompanyUserRequest implements ModelInterface, ArrayAccess, \JsonSeri protected static $openAPINullables = [ 'accountGroups' => false, 'associatedMerchantAccounts' => false, - 'authnApps' => false, 'email' => false, 'name' => false, 'roles' => false, @@ -176,7 +173,6 @@ public function isNullableSetToNull(string $property): bool protected static $attributeMap = [ 'accountGroups' => 'accountGroups', 'associatedMerchantAccounts' => 'associatedMerchantAccounts', - 'authnApps' => 'authnApps', 'email' => 'email', 'name' => 'name', 'roles' => 'roles', @@ -192,7 +188,6 @@ public function isNullableSetToNull(string $property): bool protected static $setters = [ 'accountGroups' => 'setAccountGroups', 'associatedMerchantAccounts' => 'setAssociatedMerchantAccounts', - 'authnApps' => 'setAuthnApps', 'email' => 'setEmail', 'name' => 'setName', 'roles' => 'setRoles', @@ -208,7 +203,6 @@ public function isNullableSetToNull(string $property): bool protected static $getters = [ 'accountGroups' => 'getAccountGroups', 'associatedMerchantAccounts' => 'getAssociatedMerchantAccounts', - 'authnApps' => 'getAuthnApps', 'email' => 'getEmail', 'name' => 'getName', 'roles' => 'getRoles', @@ -275,7 +269,6 @@ public function __construct(array $data = null) { $this->setIfExists('accountGroups', $data ?? [], null); $this->setIfExists('associatedMerchantAccounts', $data ?? [], null); - $this->setIfExists('authnApps', $data ?? [], null); $this->setIfExists('email', $data ?? [], null); $this->setIfExists('name', $data ?? [], null); $this->setIfExists('roles', $data ?? [], null); @@ -388,33 +381,6 @@ public function setAssociatedMerchantAccounts($associatedMerchantAccounts) return $this; } - /** - * Gets authnApps - * - * @return string[]|null - */ - public function getAuthnApps() - { - return $this->container['authnApps']; - } - - /** - * Sets authnApps - * - * @param string[]|null $authnApps Set of authn apps to add to this user - * - * @return self - */ - public function setAuthnApps($authnApps) - { - if (is_null($authnApps)) { - throw new \InvalidArgumentException('non-nullable authnApps cannot be null'); - } - $this->container['authnApps'] = $authnApps; - - return $this; - } - /** * Gets email * @@ -536,7 +502,7 @@ public function getUsername() /** * Sets username * - * @param string $username The username for this user. Allowed length: 255 alphanumeric characters. + * @param string $username The user's email address that will be their username. Must be the same as the one in the `email` field. * * @return self */ diff --git a/src/Adyen/Model/Management/CreateCompanyUserResponse.php b/src/Adyen/Model/Management/CreateCompanyUserResponse.php index 72fe184af..e568db7d6 100644 --- a/src/Adyen/Model/Management/CreateCompanyUserResponse.php +++ b/src/Adyen/Model/Management/CreateCompanyUserResponse.php @@ -47,8 +47,8 @@ class CreateCompanyUserResponse implements ModelInterface, ArrayAccess, \JsonSer 'links' => '\Adyen\Model\Management\Links', 'accountGroups' => 'string[]', 'active' => 'bool', + 'apps' => 'string[]', 'associatedMerchantAccounts' => 'string[]', - 'authnApps' => 'string[]', 'email' => 'string', 'id' => 'string', 'name' => '\Adyen\Model\Management\Name', @@ -68,8 +68,8 @@ class CreateCompanyUserResponse implements ModelInterface, ArrayAccess, \JsonSer 'links' => null, 'accountGroups' => null, 'active' => null, + 'apps' => null, 'associatedMerchantAccounts' => null, - 'authnApps' => null, 'email' => null, 'id' => null, 'name' => null, @@ -87,8 +87,8 @@ class CreateCompanyUserResponse implements ModelInterface, ArrayAccess, \JsonSer 'links' => false, 'accountGroups' => false, 'active' => false, + 'apps' => false, 'associatedMerchantAccounts' => false, - 'authnApps' => false, 'email' => false, 'id' => false, 'name' => false, @@ -186,8 +186,8 @@ public function isNullableSetToNull(string $property): bool 'links' => '_links', 'accountGroups' => 'accountGroups', 'active' => 'active', + 'apps' => 'apps', 'associatedMerchantAccounts' => 'associatedMerchantAccounts', - 'authnApps' => 'authnApps', 'email' => 'email', 'id' => 'id', 'name' => 'name', @@ -205,8 +205,8 @@ public function isNullableSetToNull(string $property): bool 'links' => 'setLinks', 'accountGroups' => 'setAccountGroups', 'active' => 'setActive', + 'apps' => 'setApps', 'associatedMerchantAccounts' => 'setAssociatedMerchantAccounts', - 'authnApps' => 'setAuthnApps', 'email' => 'setEmail', 'id' => 'setId', 'name' => 'setName', @@ -224,8 +224,8 @@ public function isNullableSetToNull(string $property): bool 'links' => 'getLinks', 'accountGroups' => 'getAccountGroups', 'active' => 'getActive', + 'apps' => 'getApps', 'associatedMerchantAccounts' => 'getAssociatedMerchantAccounts', - 'authnApps' => 'getAuthnApps', 'email' => 'getEmail', 'id' => 'getId', 'name' => 'getName', @@ -294,8 +294,8 @@ public function __construct(array $data = null) $this->setIfExists('links', $data ?? [], null); $this->setIfExists('accountGroups', $data ?? [], null); $this->setIfExists('active', $data ?? [], null); + $this->setIfExists('apps', $data ?? [], null); $this->setIfExists('associatedMerchantAccounts', $data ?? [], null); - $this->setIfExists('authnApps', $data ?? [], null); $this->setIfExists('email', $data ?? [], null); $this->setIfExists('id', $data ?? [], null); $this->setIfExists('name', $data ?? [], null); @@ -443,55 +443,55 @@ public function setActive($active) } /** - * Gets associatedMerchantAccounts + * Gets apps * * @return string[]|null */ - public function getAssociatedMerchantAccounts() + public function getApps() { - return $this->container['associatedMerchantAccounts']; + return $this->container['apps']; } /** - * Sets associatedMerchantAccounts + * Sets apps * - * @param string[]|null $associatedMerchantAccounts The list of [merchant accounts](https://docs.adyen.com/account/account-structure#merchant-accounts) associated with this user. + * @param string[]|null $apps Set of apps available to this user * * @return self */ - public function setAssociatedMerchantAccounts($associatedMerchantAccounts) + public function setApps($apps) { - if (is_null($associatedMerchantAccounts)) { - throw new \InvalidArgumentException('non-nullable associatedMerchantAccounts cannot be null'); + if (is_null($apps)) { + throw new \InvalidArgumentException('non-nullable apps cannot be null'); } - $this->container['associatedMerchantAccounts'] = $associatedMerchantAccounts; + $this->container['apps'] = $apps; return $this; } /** - * Gets authnApps + * Gets associatedMerchantAccounts * * @return string[]|null */ - public function getAuthnApps() + public function getAssociatedMerchantAccounts() { - return $this->container['authnApps']; + return $this->container['associatedMerchantAccounts']; } /** - * Sets authnApps + * Sets associatedMerchantAccounts * - * @param string[]|null $authnApps Set of authn apps available to this user + * @param string[]|null $associatedMerchantAccounts The list of [merchant accounts](https://docs.adyen.com/account/account-structure#merchant-accounts) associated with this user. * * @return self */ - public function setAuthnApps($authnApps) + public function setAssociatedMerchantAccounts($associatedMerchantAccounts) { - if (is_null($authnApps)) { - throw new \InvalidArgumentException('non-nullable authnApps cannot be null'); + if (is_null($associatedMerchantAccounts)) { + throw new \InvalidArgumentException('non-nullable associatedMerchantAccounts cannot be null'); } - $this->container['authnApps'] = $authnApps; + $this->container['associatedMerchantAccounts'] = $associatedMerchantAccounts; return $this; } diff --git a/src/Adyen/Model/Management/CreateMerchantUserRequest.php b/src/Adyen/Model/Management/CreateMerchantUserRequest.php index 64a68f32b..deee403e0 100644 --- a/src/Adyen/Model/Management/CreateMerchantUserRequest.php +++ b/src/Adyen/Model/Management/CreateMerchantUserRequest.php @@ -45,7 +45,6 @@ class CreateMerchantUserRequest implements ModelInterface, ArrayAccess, \JsonSer */ protected static $openAPITypes = [ 'accountGroups' => 'string[]', - 'authnApps' => 'string[]', 'email' => 'string', 'name' => '\Adyen\Model\Management\Name', 'roles' => 'string[]', @@ -62,7 +61,6 @@ class CreateMerchantUserRequest implements ModelInterface, ArrayAccess, \JsonSer */ protected static $openAPIFormats = [ 'accountGroups' => null, - 'authnApps' => null, 'email' => null, 'name' => null, 'roles' => null, @@ -77,7 +75,6 @@ class CreateMerchantUserRequest implements ModelInterface, ArrayAccess, \JsonSer */ protected static $openAPINullables = [ 'accountGroups' => false, - 'authnApps' => false, 'email' => false, 'name' => false, 'roles' => false, @@ -172,7 +169,6 @@ public function isNullableSetToNull(string $property): bool */ protected static $attributeMap = [ 'accountGroups' => 'accountGroups', - 'authnApps' => 'authnApps', 'email' => 'email', 'name' => 'name', 'roles' => 'roles', @@ -187,7 +183,6 @@ public function isNullableSetToNull(string $property): bool */ protected static $setters = [ 'accountGroups' => 'setAccountGroups', - 'authnApps' => 'setAuthnApps', 'email' => 'setEmail', 'name' => 'setName', 'roles' => 'setRoles', @@ -202,7 +197,6 @@ public function isNullableSetToNull(string $property): bool */ protected static $getters = [ 'accountGroups' => 'getAccountGroups', - 'authnApps' => 'getAuthnApps', 'email' => 'getEmail', 'name' => 'getName', 'roles' => 'getRoles', @@ -268,7 +262,6 @@ public function getModelName() public function __construct(array $data = null) { $this->setIfExists('accountGroups', $data ?? [], null); - $this->setIfExists('authnApps', $data ?? [], null); $this->setIfExists('email', $data ?? [], null); $this->setIfExists('name', $data ?? [], null); $this->setIfExists('roles', $data ?? [], null); @@ -354,33 +347,6 @@ public function setAccountGroups($accountGroups) return $this; } - /** - * Gets authnApps - * - * @return string[]|null - */ - public function getAuthnApps() - { - return $this->container['authnApps']; - } - - /** - * Sets authnApps - * - * @param string[]|null $authnApps Set of authn apps to add to this user - * - * @return self - */ - public function setAuthnApps($authnApps) - { - if (is_null($authnApps)) { - throw new \InvalidArgumentException('non-nullable authnApps cannot be null'); - } - $this->container['authnApps'] = $authnApps; - - return $this; - } - /** * Gets email * @@ -502,7 +468,7 @@ public function getUsername() /** * Sets username * - * @param string $username The username for this user. Allowed length: 255 alphanumeric characters. + * @param string $username The user's email address that will be their username. Must be the same as the one in the `email` field. * * @return self */ diff --git a/src/Adyen/Model/Management/CreateUserResponse.php b/src/Adyen/Model/Management/CreateUserResponse.php index 152d3817f..60ebde706 100644 --- a/src/Adyen/Model/Management/CreateUserResponse.php +++ b/src/Adyen/Model/Management/CreateUserResponse.php @@ -47,7 +47,7 @@ class CreateUserResponse implements ModelInterface, ArrayAccess, \JsonSerializab 'links' => '\Adyen\Model\Management\Links', 'accountGroups' => 'string[]', 'active' => 'bool', - 'authnApps' => 'string[]', + 'apps' => 'string[]', 'email' => 'string', 'id' => 'string', 'name' => '\Adyen\Model\Management\Name', @@ -67,7 +67,7 @@ class CreateUserResponse implements ModelInterface, ArrayAccess, \JsonSerializab 'links' => null, 'accountGroups' => null, 'active' => null, - 'authnApps' => null, + 'apps' => null, 'email' => null, 'id' => null, 'name' => null, @@ -85,7 +85,7 @@ class CreateUserResponse implements ModelInterface, ArrayAccess, \JsonSerializab 'links' => false, 'accountGroups' => false, 'active' => false, - 'authnApps' => false, + 'apps' => false, 'email' => false, 'id' => false, 'name' => false, @@ -183,7 +183,7 @@ public function isNullableSetToNull(string $property): bool 'links' => '_links', 'accountGroups' => 'accountGroups', 'active' => 'active', - 'authnApps' => 'authnApps', + 'apps' => 'apps', 'email' => 'email', 'id' => 'id', 'name' => 'name', @@ -201,7 +201,7 @@ public function isNullableSetToNull(string $property): bool 'links' => 'setLinks', 'accountGroups' => 'setAccountGroups', 'active' => 'setActive', - 'authnApps' => 'setAuthnApps', + 'apps' => 'setApps', 'email' => 'setEmail', 'id' => 'setId', 'name' => 'setName', @@ -219,7 +219,7 @@ public function isNullableSetToNull(string $property): bool 'links' => 'getLinks', 'accountGroups' => 'getAccountGroups', 'active' => 'getActive', - 'authnApps' => 'getAuthnApps', + 'apps' => 'getApps', 'email' => 'getEmail', 'id' => 'getId', 'name' => 'getName', @@ -288,7 +288,7 @@ public function __construct(array $data = null) $this->setIfExists('links', $data ?? [], null); $this->setIfExists('accountGroups', $data ?? [], null); $this->setIfExists('active', $data ?? [], null); - $this->setIfExists('authnApps', $data ?? [], null); + $this->setIfExists('apps', $data ?? [], null); $this->setIfExists('email', $data ?? [], null); $this->setIfExists('id', $data ?? [], null); $this->setIfExists('name', $data ?? [], null); @@ -436,28 +436,28 @@ public function setActive($active) } /** - * Gets authnApps + * Gets apps * * @return string[]|null */ - public function getAuthnApps() + public function getApps() { - return $this->container['authnApps']; + return $this->container['apps']; } /** - * Sets authnApps + * Sets apps * - * @param string[]|null $authnApps Set of authn apps available to this user + * @param string[]|null $apps Set of apps available to this user * * @return self */ - public function setAuthnApps($authnApps) + public function setApps($apps) { - if (is_null($authnApps)) { - throw new \InvalidArgumentException('non-nullable authnApps cannot be null'); + if (is_null($apps)) { + throw new \InvalidArgumentException('non-nullable apps cannot be null'); } - $this->container['authnApps'] = $authnApps; + $this->container['apps'] = $apps; return $this; } diff --git a/src/Adyen/Model/Management/InvalidFieldWrapper.php b/src/Adyen/Model/Management/InvalidFieldWrapper.php new file mode 100644 index 000000000..357145df7 --- /dev/null +++ b/src/Adyen/Model/Management/InvalidFieldWrapper.php @@ -0,0 +1,384 @@ + + */ +class InvalidFieldWrapper implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'InvalidFieldWrapper'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'invalidField' => '\Adyen\Model\Management\InvalidField' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'invalidField' => null + ]; + + /** + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ + protected static $openAPINullables = [ + 'invalidField' => false + ]; + + /** + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ + protected $openAPINullablesSetToNull = []; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of nullable properties + * + * @return array + */ + protected static function openAPINullables(): array + { + return self::$openAPINullables; + } + + /** + * Array of nullable field names deliberately set to null + * + * @return boolean[] + */ + private function getOpenAPINullablesSetToNull(): array + { + return $this->openAPINullablesSetToNull; + } + + /** + * Setter - Array of nullable field names deliberately set to null + * + * @param boolean[] $openAPINullablesSetToNull + */ + private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void + { + $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; + } + + /** + * Checks if a property is nullable + * + * @param string $property + * @return bool + */ + public static function isNullable(string $property): bool + { + return self::openAPINullables()[$property] ?? false; + } + + /** + * Checks if a nullable property is set to null. + * + * @param string $property + * @return bool + */ + public function isNullableSetToNull(string $property): bool + { + return in_array($property, $this->getOpenAPINullablesSetToNull(), true); + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'invalidField' => 'InvalidField' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'invalidField' => 'setInvalidField' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'invalidField' => 'getInvalidField' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->setIfExists('invalidField', $data ?? [], null); + } + + /** + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ + private function setIfExists(string $variableName, array $fields, $defaultValue): void + { + if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { + $this->openAPINullablesSetToNull[] = $variableName; + } + + $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets invalidField + * + * @return \Adyen\Model\Management\InvalidField|null + */ + public function getInvalidField() + { + return $this->container['invalidField']; + } + + /** + * Sets invalidField + * + * @param \Adyen\Model\Management\InvalidField|null $invalidField invalidField + * + * @return self + */ + public function setInvalidField($invalidField) + { + if (is_null($invalidField)) { + throw new \InvalidArgumentException('non-nullable invalidField cannot be null'); + } + $this->container['invalidField'] = $invalidField; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset): bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed|null + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + * + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value): void + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset): void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed Returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource. + */ + #[\ReturnTypeWillChange] + public function jsonSerialize() + { + return ObjectSerializer::sanitizeForSerialization($this); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } +} diff --git a/src/Adyen/Model/Management/JSONObject.php b/src/Adyen/Model/Management/JSONObject.php index 32df5be45..de992412f 100644 --- a/src/Adyen/Model/Management/JSONObject.php +++ b/src/Adyen/Model/Management/JSONObject.php @@ -44,7 +44,7 @@ class JSONObject implements ModelInterface, ArrayAccess, \JsonSerializable * @var string[] */ protected static $openAPITypes = [ - 'paths' => '\Adyen\Model\Management\JSONPath[]', + 'paths' => '\Adyen\Model\Management\JSONPathWrapper[]', 'rootPath' => '\Adyen\Model\Management\JSONPath' ]; @@ -286,7 +286,7 @@ public function valid() /** * Gets paths * - * @return \Adyen\Model\Management\JSONPath[]|null + * @return \Adyen\Model\Management\JSONPathWrapper[]|null */ public function getPaths() { @@ -296,7 +296,7 @@ public function getPaths() /** * Sets paths * - * @param \Adyen\Model\Management\JSONPath[]|null $paths paths + * @param \Adyen\Model\Management\JSONPathWrapper[]|null $paths paths * * @return self */ diff --git a/src/Adyen/Model/Management/JSONPathWrapper.php b/src/Adyen/Model/Management/JSONPathWrapper.php new file mode 100644 index 000000000..595430c9a --- /dev/null +++ b/src/Adyen/Model/Management/JSONPathWrapper.php @@ -0,0 +1,384 @@ + + */ +class JSONPathWrapper implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'JSONPathWrapper'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'jSONPath' => '\Adyen\Model\Management\JSONPath' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'jSONPath' => null + ]; + + /** + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ + protected static $openAPINullables = [ + 'jSONPath' => false + ]; + + /** + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ + protected $openAPINullablesSetToNull = []; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of nullable properties + * + * @return array + */ + protected static function openAPINullables(): array + { + return self::$openAPINullables; + } + + /** + * Array of nullable field names deliberately set to null + * + * @return boolean[] + */ + private function getOpenAPINullablesSetToNull(): array + { + return $this->openAPINullablesSetToNull; + } + + /** + * Setter - Array of nullable field names deliberately set to null + * + * @param boolean[] $openAPINullablesSetToNull + */ + private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void + { + $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; + } + + /** + * Checks if a property is nullable + * + * @param string $property + * @return bool + */ + public static function isNullable(string $property): bool + { + return self::openAPINullables()[$property] ?? false; + } + + /** + * Checks if a nullable property is set to null. + * + * @param string $property + * @return bool + */ + public function isNullableSetToNull(string $property): bool + { + return in_array($property, $this->getOpenAPINullablesSetToNull(), true); + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'jSONPath' => 'JSONPath' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'jSONPath' => 'setJSONPath' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'jSONPath' => 'getJSONPath' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->setIfExists('jSONPath', $data ?? [], null); + } + + /** + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ + private function setIfExists(string $variableName, array $fields, $defaultValue): void + { + if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { + $this->openAPINullablesSetToNull[] = $variableName; + } + + $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets jSONPath + * + * @return \Adyen\Model\Management\JSONPath|null + */ + public function getJSONPath() + { + return $this->container['jSONPath']; + } + + /** + * Sets jSONPath + * + * @param \Adyen\Model\Management\JSONPath|null $jSONPath jSONPath + * + * @return self + */ + public function setJSONPath($jSONPath) + { + if (is_null($jSONPath)) { + throw new \InvalidArgumentException('non-nullable jSONPath cannot be null'); + } + $this->container['jSONPath'] = $jSONPath; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset): bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed|null + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + * + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value): void + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset): void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed Returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource. + */ + #[\ReturnTypeWillChange] + public function jsonSerialize() + { + return ObjectSerializer::sanitizeForSerialization($this); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } +} diff --git a/src/Adyen/Model/Management/ListTerminalsResponse.php b/src/Adyen/Model/Management/ListTerminalsResponse.php index 7eacf4a0a..a05328ddb 100644 --- a/src/Adyen/Model/Management/ListTerminalsResponse.php +++ b/src/Adyen/Model/Management/ListTerminalsResponse.php @@ -44,7 +44,10 @@ class ListTerminalsResponse implements ModelInterface, ArrayAccess, \JsonSeriali * @var string[] */ protected static $openAPITypes = [ - 'data' => '\Adyen\Model\Management\Terminal[]' + 'links' => '\Adyen\Model\Management\PaginationLinks', + 'data' => '\Adyen\Model\Management\Terminal[]', + 'itemsTotal' => 'int', + 'pagesTotal' => 'int' ]; /** @@ -55,7 +58,10 @@ class ListTerminalsResponse implements ModelInterface, ArrayAccess, \JsonSeriali * @psalm-var array */ protected static $openAPIFormats = [ - 'data' => null + 'links' => null, + 'data' => null, + 'itemsTotal' => 'int32', + 'pagesTotal' => 'int32' ]; /** @@ -64,7 +70,10 @@ class ListTerminalsResponse implements ModelInterface, ArrayAccess, \JsonSeriali * @var boolean[] */ protected static $openAPINullables = [ - 'data' => false + 'links' => false, + 'data' => false, + 'itemsTotal' => true, + 'pagesTotal' => true ]; /** @@ -153,7 +162,10 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $attributeMap = [ - 'data' => 'data' + 'links' => '_links', + 'data' => 'data', + 'itemsTotal' => 'itemsTotal', + 'pagesTotal' => 'pagesTotal' ]; /** @@ -162,7 +174,10 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $setters = [ - 'data' => 'setData' + 'links' => 'setLinks', + 'data' => 'setData', + 'itemsTotal' => 'setItemsTotal', + 'pagesTotal' => 'setPagesTotal' ]; /** @@ -171,7 +186,10 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $getters = [ - 'data' => 'getData' + 'links' => 'getLinks', + 'data' => 'getData', + 'itemsTotal' => 'getItemsTotal', + 'pagesTotal' => 'getPagesTotal' ]; /** @@ -231,7 +249,10 @@ public function getModelName() */ public function __construct(array $data = null) { + $this->setIfExists('links', $data ?? [], null); $this->setIfExists('data', $data ?? [], null); + $this->setIfExists('itemsTotal', $data ?? [], null); + $this->setIfExists('pagesTotal', $data ?? [], null); } /** @@ -261,6 +282,12 @@ public function listInvalidProperties() { $invalidProperties = []; + if ($this->container['itemsTotal'] === null) { + $invalidProperties[] = "'itemsTotal' can't be null"; + } + if ($this->container['pagesTotal'] === null) { + $invalidProperties[] = "'pagesTotal' can't be null"; + } return $invalidProperties; } @@ -276,6 +303,33 @@ public function valid() } + /** + * Gets links + * + * @return \Adyen\Model\Management\PaginationLinks|null + */ + public function getLinks() + { + return $this->container['links']; + } + + /** + * Sets links + * + * @param \Adyen\Model\Management\PaginationLinks|null $links links + * + * @return self + */ + public function setLinks($links) + { + if (is_null($links)) { + throw new \InvalidArgumentException('non-nullable links cannot be null'); + } + $this->container['links'] = $links; + + return $this; + } + /** * Gets data * @@ -302,6 +356,56 @@ public function setData($data) return $this; } + + /** + * Gets itemsTotal + * + * @return int + */ + public function getItemsTotal() + { + return $this->container['itemsTotal']; + } + + /** + * Sets itemsTotal + * + * @param int $itemsTotal Total number of items. + * + * @return self + */ + public function setItemsTotal($itemsTotal) + { + // Do nothing for nullable integers + $this->container['itemsTotal'] = $itemsTotal; + + return $this; + } + + /** + * Gets pagesTotal + * + * @return int + */ + public function getPagesTotal() + { + return $this->container['pagesTotal']; + } + + /** + * Sets pagesTotal + * + * @param int $pagesTotal Total number of pages. + * + * @return self + */ + public function setPagesTotal($pagesTotal) + { + // Do nothing for nullable integers + $this->container['pagesTotal'] = $pagesTotal; + + return $this; + } /** * Returns true if offset exists. False otherwise. * diff --git a/src/Adyen/Model/Management/PaymentMethod.php b/src/Adyen/Model/Management/PaymentMethod.php index adbb66acc..ec629a823 100644 --- a/src/Adyen/Model/Management/PaymentMethod.php +++ b/src/Adyen/Model/Management/PaymentMethod.php @@ -44,11 +44,13 @@ class PaymentMethod implements ModelInterface, ArrayAccess, \JsonSerializable * @var string[] */ protected static $openAPITypes = [ + 'afterpayTouch' => '\Adyen\Model\Management\AfterpayTouchInfo', 'allowed' => 'bool', 'applePay' => '\Adyen\Model\Management\ApplePayInfo', 'bcmc' => '\Adyen\Model\Management\BcmcInfo', 'businessLineId' => 'string', 'cartesBancaires' => '\Adyen\Model\Management\CartesBancairesInfo', + 'clearpay' => '\Adyen\Model\Management\ClearpayInfo', 'countries' => 'string[]', 'currencies' => 'string[]', 'customRoutingFlags' => 'string[]', @@ -64,6 +66,7 @@ class PaymentMethod implements ModelInterface, ArrayAccess, \JsonSerializable 'sofort' => '\Adyen\Model\Management\SofortInfo', 'storeId' => 'string', 'swish' => '\Adyen\Model\Management\SwishInfo', + 'twint' => '\Adyen\Model\Management\TwintInfo', 'type' => 'string', 'verificationStatus' => 'string', 'vipps' => '\Adyen\Model\Management\VippsInfo' @@ -77,11 +80,13 @@ class PaymentMethod implements ModelInterface, ArrayAccess, \JsonSerializable * @psalm-var array */ protected static $openAPIFormats = [ + 'afterpayTouch' => null, 'allowed' => null, 'applePay' => null, 'bcmc' => null, 'businessLineId' => null, 'cartesBancaires' => null, + 'clearpay' => null, 'countries' => null, 'currencies' => null, 'customRoutingFlags' => null, @@ -97,6 +102,7 @@ class PaymentMethod implements ModelInterface, ArrayAccess, \JsonSerializable 'sofort' => null, 'storeId' => null, 'swish' => null, + 'twint' => null, 'type' => null, 'verificationStatus' => null, 'vipps' => null @@ -108,11 +114,13 @@ class PaymentMethod implements ModelInterface, ArrayAccess, \JsonSerializable * @var boolean[] */ protected static $openAPINullables = [ + 'afterpayTouch' => false, 'allowed' => false, 'applePay' => false, 'bcmc' => false, 'businessLineId' => false, 'cartesBancaires' => false, + 'clearpay' => false, 'countries' => false, 'currencies' => false, 'customRoutingFlags' => false, @@ -128,6 +136,7 @@ class PaymentMethod implements ModelInterface, ArrayAccess, \JsonSerializable 'sofort' => false, 'storeId' => false, 'swish' => false, + 'twint' => false, 'type' => false, 'verificationStatus' => false, 'vipps' => false @@ -219,11 +228,13 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $attributeMap = [ + 'afterpayTouch' => 'afterpayTouch', 'allowed' => 'allowed', 'applePay' => 'applePay', 'bcmc' => 'bcmc', 'businessLineId' => 'businessLineId', 'cartesBancaires' => 'cartesBancaires', + 'clearpay' => 'clearpay', 'countries' => 'countries', 'currencies' => 'currencies', 'customRoutingFlags' => 'customRoutingFlags', @@ -239,6 +250,7 @@ public function isNullableSetToNull(string $property): bool 'sofort' => 'sofort', 'storeId' => 'storeId', 'swish' => 'swish', + 'twint' => 'twint', 'type' => 'type', 'verificationStatus' => 'verificationStatus', 'vipps' => 'vipps' @@ -250,11 +262,13 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $setters = [ + 'afterpayTouch' => 'setAfterpayTouch', 'allowed' => 'setAllowed', 'applePay' => 'setApplePay', 'bcmc' => 'setBcmc', 'businessLineId' => 'setBusinessLineId', 'cartesBancaires' => 'setCartesBancaires', + 'clearpay' => 'setClearpay', 'countries' => 'setCountries', 'currencies' => 'setCurrencies', 'customRoutingFlags' => 'setCustomRoutingFlags', @@ -270,6 +284,7 @@ public function isNullableSetToNull(string $property): bool 'sofort' => 'setSofort', 'storeId' => 'setStoreId', 'swish' => 'setSwish', + 'twint' => 'setTwint', 'type' => 'setType', 'verificationStatus' => 'setVerificationStatus', 'vipps' => 'setVipps' @@ -281,11 +296,13 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $getters = [ + 'afterpayTouch' => 'getAfterpayTouch', 'allowed' => 'getAllowed', 'applePay' => 'getApplePay', 'bcmc' => 'getBcmc', 'businessLineId' => 'getBusinessLineId', 'cartesBancaires' => 'getCartesBancaires', + 'clearpay' => 'getClearpay', 'countries' => 'getCountries', 'currencies' => 'getCurrencies', 'customRoutingFlags' => 'getCustomRoutingFlags', @@ -301,6 +318,7 @@ public function isNullableSetToNull(string $property): bool 'sofort' => 'getSofort', 'storeId' => 'getStoreId', 'swish' => 'getSwish', + 'twint' => 'getTwint', 'type' => 'getType', 'verificationStatus' => 'getVerificationStatus', 'vipps' => 'getVipps' @@ -381,11 +399,13 @@ public function getVerificationStatusAllowableValues() */ public function __construct(array $data = null) { + $this->setIfExists('afterpayTouch', $data ?? [], null); $this->setIfExists('allowed', $data ?? [], null); $this->setIfExists('applePay', $data ?? [], null); $this->setIfExists('bcmc', $data ?? [], null); $this->setIfExists('businessLineId', $data ?? [], null); $this->setIfExists('cartesBancaires', $data ?? [], null); + $this->setIfExists('clearpay', $data ?? [], null); $this->setIfExists('countries', $data ?? [], null); $this->setIfExists('currencies', $data ?? [], null); $this->setIfExists('customRoutingFlags', $data ?? [], null); @@ -401,6 +421,7 @@ public function __construct(array $data = null) $this->setIfExists('sofort', $data ?? [], null); $this->setIfExists('storeId', $data ?? [], null); $this->setIfExists('swish', $data ?? [], null); + $this->setIfExists('twint', $data ?? [], null); $this->setIfExists('type', $data ?? [], null); $this->setIfExists('verificationStatus', $data ?? [], null); $this->setIfExists('vipps', $data ?? [], null); @@ -460,6 +481,33 @@ public function valid() } + /** + * Gets afterpayTouch + * + * @return \Adyen\Model\Management\AfterpayTouchInfo|null + */ + public function getAfterpayTouch() + { + return $this->container['afterpayTouch']; + } + + /** + * Sets afterpayTouch + * + * @param \Adyen\Model\Management\AfterpayTouchInfo|null $afterpayTouch afterpayTouch + * + * @return self + */ + public function setAfterpayTouch($afterpayTouch) + { + if (is_null($afterpayTouch)) { + throw new \InvalidArgumentException('non-nullable afterpayTouch cannot be null'); + } + $this->container['afterpayTouch'] = $afterpayTouch; + + return $this; + } + /** * Gets allowed * @@ -595,6 +643,33 @@ public function setCartesBancaires($cartesBancaires) return $this; } + /** + * Gets clearpay + * + * @return \Adyen\Model\Management\ClearpayInfo|null + */ + public function getClearpay() + { + return $this->container['clearpay']; + } + + /** + * Sets clearpay + * + * @param \Adyen\Model\Management\ClearpayInfo|null $clearpay clearpay + * + * @return self + */ + public function setClearpay($clearpay) + { + if (is_null($clearpay)) { + throw new \InvalidArgumentException('non-nullable clearpay cannot be null'); + } + $this->container['clearpay'] = $clearpay; + + return $this; + } + /** * Gets countries * @@ -1000,6 +1075,33 @@ public function setSwish($swish) return $this; } + /** + * Gets twint + * + * @return \Adyen\Model\Management\TwintInfo|null + */ + public function getTwint() + { + return $this->container['twint']; + } + + /** + * Sets twint + * + * @param \Adyen\Model\Management\TwintInfo|null $twint twint + * + * @return self + */ + public function setTwint($twint) + { + if (is_null($twint)) { + throw new \InvalidArgumentException('non-nullable twint cannot be null'); + } + $this->container['twint'] = $twint; + + return $this; + } + /** * Gets type * diff --git a/src/Adyen/Model/Management/PaymentMethodResponse.php b/src/Adyen/Model/Management/PaymentMethodResponse.php index a46973265..188729423 100644 --- a/src/Adyen/Model/Management/PaymentMethodResponse.php +++ b/src/Adyen/Model/Management/PaymentMethodResponse.php @@ -45,7 +45,7 @@ class PaymentMethodResponse implements ModelInterface, ArrayAccess, \JsonSeriali */ protected static $openAPITypes = [ 'links' => '\Adyen\Model\Management\PaginationLinks', - 'data' => '\Adyen\Model\Management\PaymentMethod[]', + 'data' => '\Adyen\Model\Management\PaymentMethodWrapper[]', 'itemsTotal' => 'int', 'pagesTotal' => 'int', 'typesWithErrors' => 'string[]' @@ -281,6 +281,8 @@ public function getModelName() public const TYPES_WITH_ERRORS_PAYSHOP = 'payshop'; public const TYPES_WITH_ERRORS_SWISH = 'swish'; public const TYPES_WITH_ERRORS_TRUSTLY = 'trustly'; + public const TYPES_WITH_ERRORS_TWINT = 'twint'; + public const TYPES_WITH_ERRORS_TWINT_POS = 'twint_pos'; public const TYPES_WITH_ERRORS_VIPPS = 'vipps'; public const TYPES_WITH_ERRORS_VISA = 'visa'; public const TYPES_WITH_ERRORS_VISADEBIT = 'visadebit'; @@ -338,6 +340,8 @@ public function getTypesWithErrorsAllowableValues() self::TYPES_WITH_ERRORS_PAYSHOP, self::TYPES_WITH_ERRORS_SWISH, self::TYPES_WITH_ERRORS_TRUSTLY, + self::TYPES_WITH_ERRORS_TWINT, + self::TYPES_WITH_ERRORS_TWINT_POS, self::TYPES_WITH_ERRORS_VIPPS, self::TYPES_WITH_ERRORS_VISA, self::TYPES_WITH_ERRORS_VISADEBIT, @@ -446,7 +450,7 @@ public function setLinks($links) /** * Gets data * - * @return \Adyen\Model\Management\PaymentMethod[]|null + * @return \Adyen\Model\Management\PaymentMethodWrapper[]|null */ public function getData() { @@ -456,7 +460,7 @@ public function getData() /** * Sets data * - * @param \Adyen\Model\Management\PaymentMethod[]|null $data Payment methods details. + * @param \Adyen\Model\Management\PaymentMethodWrapper[]|null $data Payment methods details. * * @return self */ diff --git a/src/Adyen/Model/Management/PaymentMethodSetupInfo.php b/src/Adyen/Model/Management/PaymentMethodSetupInfo.php index 142a6529f..df4d3c6b5 100644 --- a/src/Adyen/Model/Management/PaymentMethodSetupInfo.php +++ b/src/Adyen/Model/Management/PaymentMethodSetupInfo.php @@ -44,10 +44,12 @@ class PaymentMethodSetupInfo implements ModelInterface, ArrayAccess, \JsonSerial * @var string[] */ protected static $openAPITypes = [ + 'afterpayTouch' => '\Adyen\Model\Management\AfterpayTouchInfo', 'applePay' => '\Adyen\Model\Management\ApplePayInfo', 'bcmc' => '\Adyen\Model\Management\BcmcInfo', 'businessLineId' => 'string', 'cartesBancaires' => '\Adyen\Model\Management\CartesBancairesInfo', + 'clearpay' => '\Adyen\Model\Management\ClearpayInfo', 'countries' => 'string[]', 'currencies' => 'string[]', 'customRoutingFlags' => 'string[]', @@ -61,6 +63,7 @@ class PaymentMethodSetupInfo implements ModelInterface, ArrayAccess, \JsonSerial 'sofort' => '\Adyen\Model\Management\SofortInfo', 'storeId' => 'string', 'swish' => '\Adyen\Model\Management\SwishInfo', + 'twint' => '\Adyen\Model\Management\TwintInfo', 'type' => 'string', 'vipps' => '\Adyen\Model\Management\VippsInfo' ]; @@ -73,10 +76,12 @@ class PaymentMethodSetupInfo implements ModelInterface, ArrayAccess, \JsonSerial * @psalm-var array */ protected static $openAPIFormats = [ + 'afterpayTouch' => null, 'applePay' => null, 'bcmc' => null, 'businessLineId' => null, 'cartesBancaires' => null, + 'clearpay' => null, 'countries' => null, 'currencies' => null, 'customRoutingFlags' => null, @@ -90,6 +95,7 @@ class PaymentMethodSetupInfo implements ModelInterface, ArrayAccess, \JsonSerial 'sofort' => null, 'storeId' => null, 'swish' => null, + 'twint' => null, 'type' => null, 'vipps' => null ]; @@ -100,10 +106,12 @@ class PaymentMethodSetupInfo implements ModelInterface, ArrayAccess, \JsonSerial * @var boolean[] */ protected static $openAPINullables = [ + 'afterpayTouch' => false, 'applePay' => false, 'bcmc' => false, 'businessLineId' => false, 'cartesBancaires' => false, + 'clearpay' => false, 'countries' => false, 'currencies' => false, 'customRoutingFlags' => false, @@ -117,6 +125,7 @@ class PaymentMethodSetupInfo implements ModelInterface, ArrayAccess, \JsonSerial 'sofort' => false, 'storeId' => false, 'swish' => false, + 'twint' => false, 'type' => false, 'vipps' => false ]; @@ -207,10 +216,12 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $attributeMap = [ + 'afterpayTouch' => 'afterpayTouch', 'applePay' => 'applePay', 'bcmc' => 'bcmc', 'businessLineId' => 'businessLineId', 'cartesBancaires' => 'cartesBancaires', + 'clearpay' => 'clearpay', 'countries' => 'countries', 'currencies' => 'currencies', 'customRoutingFlags' => 'customRoutingFlags', @@ -224,6 +235,7 @@ public function isNullableSetToNull(string $property): bool 'sofort' => 'sofort', 'storeId' => 'storeId', 'swish' => 'swish', + 'twint' => 'twint', 'type' => 'type', 'vipps' => 'vipps' ]; @@ -234,10 +246,12 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $setters = [ + 'afterpayTouch' => 'setAfterpayTouch', 'applePay' => 'setApplePay', 'bcmc' => 'setBcmc', 'businessLineId' => 'setBusinessLineId', 'cartesBancaires' => 'setCartesBancaires', + 'clearpay' => 'setClearpay', 'countries' => 'setCountries', 'currencies' => 'setCurrencies', 'customRoutingFlags' => 'setCustomRoutingFlags', @@ -251,6 +265,7 @@ public function isNullableSetToNull(string $property): bool 'sofort' => 'setSofort', 'storeId' => 'setStoreId', 'swish' => 'setSwish', + 'twint' => 'setTwint', 'type' => 'setType', 'vipps' => 'setVipps' ]; @@ -261,10 +276,12 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $getters = [ + 'afterpayTouch' => 'getAfterpayTouch', 'applePay' => 'getApplePay', 'bcmc' => 'getBcmc', 'businessLineId' => 'getBusinessLineId', 'cartesBancaires' => 'getCartesBancaires', + 'clearpay' => 'getClearpay', 'countries' => 'getCountries', 'currencies' => 'getCurrencies', 'customRoutingFlags' => 'getCustomRoutingFlags', @@ -278,6 +295,7 @@ public function isNullableSetToNull(string $property): bool 'sofort' => 'getSofort', 'storeId' => 'getStoreId', 'swish' => 'getSwish', + 'twint' => 'getTwint', 'type' => 'getType', 'vipps' => 'getVipps' ]; @@ -369,6 +387,8 @@ public function getModelName() public const TYPE_PAYSHOP = 'payshop'; public const TYPE_SWISH = 'swish'; public const TYPE_TRUSTLY = 'trustly'; + public const TYPE_TWINT = 'twint'; + public const TYPE_TWINT_POS = 'twint_pos'; public const TYPE_VIPPS = 'vipps'; public const TYPE_VISA = 'visa'; public const TYPE_VISADEBIT = 'visadebit'; @@ -440,6 +460,8 @@ public function getTypeAllowableValues() self::TYPE_PAYSHOP, self::TYPE_SWISH, self::TYPE_TRUSTLY, + self::TYPE_TWINT, + self::TYPE_TWINT_POS, self::TYPE_VIPPS, self::TYPE_VISA, self::TYPE_VISADEBIT, @@ -463,10 +485,12 @@ public function getTypeAllowableValues() */ public function __construct(array $data = null) { + $this->setIfExists('afterpayTouch', $data ?? [], null); $this->setIfExists('applePay', $data ?? [], null); $this->setIfExists('bcmc', $data ?? [], null); $this->setIfExists('businessLineId', $data ?? [], null); $this->setIfExists('cartesBancaires', $data ?? [], null); + $this->setIfExists('clearpay', $data ?? [], null); $this->setIfExists('countries', $data ?? [], null); $this->setIfExists('currencies', $data ?? [], null); $this->setIfExists('customRoutingFlags', $data ?? [], null); @@ -480,6 +504,7 @@ public function __construct(array $data = null) $this->setIfExists('sofort', $data ?? [], null); $this->setIfExists('storeId', $data ?? [], null); $this->setIfExists('swish', $data ?? [], null); + $this->setIfExists('twint', $data ?? [], null); $this->setIfExists('type', $data ?? [], null); $this->setIfExists('vipps', $data ?? [], null); } @@ -544,6 +569,33 @@ public function valid() } + /** + * Gets afterpayTouch + * + * @return \Adyen\Model\Management\AfterpayTouchInfo|null + */ + public function getAfterpayTouch() + { + return $this->container['afterpayTouch']; + } + + /** + * Sets afterpayTouch + * + * @param \Adyen\Model\Management\AfterpayTouchInfo|null $afterpayTouch afterpayTouch + * + * @return self + */ + public function setAfterpayTouch($afterpayTouch) + { + if (is_null($afterpayTouch)) { + throw new \InvalidArgumentException('non-nullable afterpayTouch cannot be null'); + } + $this->container['afterpayTouch'] = $afterpayTouch; + + return $this; + } + /** * Gets applePay * @@ -652,6 +704,33 @@ public function setCartesBancaires($cartesBancaires) return $this; } + /** + * Gets clearpay + * + * @return \Adyen\Model\Management\ClearpayInfo|null + */ + public function getClearpay() + { + return $this->container['clearpay']; + } + + /** + * Sets clearpay + * + * @param \Adyen\Model\Management\ClearpayInfo|null $clearpay clearpay + * + * @return self + */ + public function setClearpay($clearpay) + { + if (is_null($clearpay)) { + throw new \InvalidArgumentException('non-nullable clearpay cannot be null'); + } + $this->container['clearpay'] = $clearpay; + + return $this; + } + /** * Gets countries * @@ -1013,6 +1092,33 @@ public function setSwish($swish) return $this; } + /** + * Gets twint + * + * @return \Adyen\Model\Management\TwintInfo|null + */ + public function getTwint() + { + return $this->container['twint']; + } + + /** + * Sets twint + * + * @param \Adyen\Model\Management\TwintInfo|null $twint twint + * + * @return self + */ + public function setTwint($twint) + { + if (is_null($twint)) { + throw new \InvalidArgumentException('non-nullable twint cannot be null'); + } + $this->container['twint'] = $twint; + + return $this; + } + /** * Gets type * diff --git a/src/Adyen/Model/Management/PaymentMethodWrapper.php b/src/Adyen/Model/Management/PaymentMethodWrapper.php new file mode 100644 index 000000000..fe06ccc8e --- /dev/null +++ b/src/Adyen/Model/Management/PaymentMethodWrapper.php @@ -0,0 +1,384 @@ + + */ +class PaymentMethodWrapper implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'PaymentMethodWrapper'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'paymentMethod' => '\Adyen\Model\Management\PaymentMethod' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'paymentMethod' => null + ]; + + /** + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ + protected static $openAPINullables = [ + 'paymentMethod' => false + ]; + + /** + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ + protected $openAPINullablesSetToNull = []; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of nullable properties + * + * @return array + */ + protected static function openAPINullables(): array + { + return self::$openAPINullables; + } + + /** + * Array of nullable field names deliberately set to null + * + * @return boolean[] + */ + private function getOpenAPINullablesSetToNull(): array + { + return $this->openAPINullablesSetToNull; + } + + /** + * Setter - Array of nullable field names deliberately set to null + * + * @param boolean[] $openAPINullablesSetToNull + */ + private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void + { + $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; + } + + /** + * Checks if a property is nullable + * + * @param string $property + * @return bool + */ + public static function isNullable(string $property): bool + { + return self::openAPINullables()[$property] ?? false; + } + + /** + * Checks if a nullable property is set to null. + * + * @param string $property + * @return bool + */ + public function isNullableSetToNull(string $property): bool + { + return in_array($property, $this->getOpenAPINullablesSetToNull(), true); + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'paymentMethod' => 'PaymentMethod' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'paymentMethod' => 'setPaymentMethod' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'paymentMethod' => 'getPaymentMethod' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->setIfExists('paymentMethod', $data ?? [], null); + } + + /** + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ + private function setIfExists(string $variableName, array $fields, $defaultValue): void + { + if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { + $this->openAPINullablesSetToNull[] = $variableName; + } + + $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets paymentMethod + * + * @return \Adyen\Model\Management\PaymentMethod|null + */ + public function getPaymentMethod() + { + return $this->container['paymentMethod']; + } + + /** + * Sets paymentMethod + * + * @param \Adyen\Model\Management\PaymentMethod|null $paymentMethod paymentMethod + * + * @return self + */ + public function setPaymentMethod($paymentMethod) + { + if (is_null($paymentMethod)) { + throw new \InvalidArgumentException('non-nullable paymentMethod cannot be null'); + } + $this->container['paymentMethod'] = $paymentMethod; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset): bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed|null + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + * + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value): void + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset): void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed Returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource. + */ + #[\ReturnTypeWillChange] + public function jsonSerialize() + { + return ObjectSerializer::sanitizeForSerialization($this); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } +} diff --git a/src/Adyen/Model/Management/RestServiceError.php b/src/Adyen/Model/Management/RestServiceError.php index a66ee465d..acf97d1ca 100644 --- a/src/Adyen/Model/Management/RestServiceError.php +++ b/src/Adyen/Model/Management/RestServiceError.php @@ -47,7 +47,7 @@ class RestServiceError implements ModelInterface, ArrayAccess, \JsonSerializable 'detail' => 'string', 'errorCode' => 'string', 'instance' => 'string', - 'invalidFields' => '\Adyen\Model\Management\InvalidField[]', + 'invalidFields' => '\Adyen\Model\Management\InvalidFieldWrapper[]', 'requestId' => 'string', 'response' => '\Adyen\Model\Management\JSONObject', 'status' => 'int', @@ -431,7 +431,7 @@ public function setInstance($instance) /** * Gets invalidFields * - * @return \Adyen\Model\Management\InvalidField[]|null + * @return \Adyen\Model\Management\InvalidFieldWrapper[]|null */ public function getInvalidFields() { @@ -441,7 +441,7 @@ public function getInvalidFields() /** * Sets invalidFields * - * @param \Adyen\Model\Management\InvalidField[]|null $invalidFields Detailed explanation of each validation error, when applicable. + * @param \Adyen\Model\Management\InvalidFieldWrapper[]|null $invalidFields Detailed explanation of each validation error, when applicable. * * @return self */ diff --git a/src/Adyen/Model/Management/StoreCreationRequest.php b/src/Adyen/Model/Management/StoreCreationRequest.php index 1392056e8..0b8999eb3 100644 --- a/src/Adyen/Model/Management/StoreCreationRequest.php +++ b/src/Adyen/Model/Management/StoreCreationRequest.php @@ -377,7 +377,7 @@ public function getBusinessLineIds() /** * Sets businessLineIds * - * @param string[]|null $businessLineIds The unique identifiers of the [business lines](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/businesslines__resParam_id) that the store is associated with. If not specified, the business line of the merchant account is used. Required when there are multiple business lines under the merchant account. + * @param string[]|null $businessLineIds The unique identifiers of the [business lines](https://docs.adyen.com/api-explorer/legalentity/latest/post/businessLines#responses-200-id) that the store is associated with. If not specified, the business line of the merchant account is used. Required when there are multiple business lines under the merchant account. * * @return self */ @@ -485,7 +485,7 @@ public function getReference() /** * Sets reference * - * @param string|null $reference Your reference to recognize the store by. Also known as the store code. Allowed characters: Lowercase and uppercase letters without diacritics, numbers 0 through 9, hyphen (-), and underscore (_). + * @param string|null $reference Your reference to recognize the store by. Also known as the store code. Allowed characters: lowercase and uppercase letters without diacritics, numbers 0 through 9, hyphen (-), and underscore (_). If you do not provide a reference in your POST request, it is populated with the Adyen-generated [id](https://docs.adyen.com/api-explorer/Management/latest/post/stores#responses-200-id). * * @return self */ diff --git a/src/Adyen/Model/Management/StoreCreationWithMerchantCodeRequest.php b/src/Adyen/Model/Management/StoreCreationWithMerchantCodeRequest.php index 26bdb04fc..8d3179f0c 100644 --- a/src/Adyen/Model/Management/StoreCreationWithMerchantCodeRequest.php +++ b/src/Adyen/Model/Management/StoreCreationWithMerchantCodeRequest.php @@ -387,7 +387,7 @@ public function getBusinessLineIds() /** * Sets businessLineIds * - * @param string[]|null $businessLineIds The unique identifiers of the [business lines](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/businesslines__resParam_id) that the store is associated with. If not specified, the business line of the merchant account is used. Required when there are multiple business lines under the merchant account. + * @param string[]|null $businessLineIds The unique identifiers of the [business lines](https://docs.adyen.com/api-explorer/legalentity/latest/post/businessLines#responses-200-id) that the store is associated with. If not specified, the business line of the merchant account is used. Required when there are multiple business lines under the merchant account. * * @return self */ @@ -522,7 +522,7 @@ public function getReference() /** * Sets reference * - * @param string|null $reference Your reference to recognize the store by. Also known as the store code. Allowed characters: Lowercase and uppercase letters without diacritics, numbers 0 through 9, hyphen (-), and underscore (_). + * @param string|null $reference Your reference to recognize the store by. Also known as the store code. Allowed characters: lowercase and uppercase letters without diacritics, numbers 0 through 9, hyphen (-), and underscore (_). If you do not provide a reference in your POST request, it is populated with the Adyen-generated [id](https://docs.adyen.com/api-explorer/Management/latest/post/stores#responses-200-id). * * @return self */ diff --git a/src/Adyen/Model/Management/Terminal.php b/src/Adyen/Model/Management/Terminal.php index 4018cf820..3e729de42 100644 --- a/src/Adyen/Model/Management/Terminal.php +++ b/src/Adyen/Model/Management/Terminal.php @@ -427,6 +427,7 @@ public function valid() * Gets assigned * * @return bool|null + * @deprecated */ public function getAssigned() { @@ -439,6 +440,7 @@ public function getAssigned() * @param bool|null $assigned The [assignment status](https://docs.adyen.com/point-of-sale/automating-terminal-management/assign-terminals-api) of the terminal. If true, the terminal is assigned. If false, the terminal is in inventory and can't be boarded. * * @return self + * @deprecated */ public function setAssigned($assigned) { @@ -454,6 +456,7 @@ public function setAssigned($assigned) * Gets bluetoothIp * * @return string|null + * @deprecated */ public function getBluetoothIp() { @@ -466,6 +469,7 @@ public function getBluetoothIp() * @param string|null $bluetoothIp The Bluetooth IP address of the terminal. * * @return self + * @deprecated */ public function setBluetoothIp($bluetoothIp) { @@ -508,6 +512,7 @@ public function setBluetoothMac($bluetoothMac) * Gets city * * @return string|null + * @deprecated */ public function getCity() { @@ -520,6 +525,7 @@ public function getCity() * @param string|null $city The city where the terminal is located. * * @return self + * @deprecated */ public function setCity($city) { @@ -535,6 +541,7 @@ public function setCity($city) * Gets companyAccount * * @return string|null + * @deprecated */ public function getCompanyAccount() { @@ -547,6 +554,7 @@ public function getCompanyAccount() * @param string|null $companyAccount The company account that the terminal is associated with. If this is the only account level shown in the response, the terminal is assigned to the inventory of the company account. * * @return self + * @deprecated */ public function setCompanyAccount($companyAccount) { @@ -562,6 +570,7 @@ public function setCompanyAccount($companyAccount) * Gets countryCode * * @return string|null + * @deprecated */ public function getCountryCode() { @@ -574,6 +583,7 @@ public function getCountryCode() * @param string|null $countryCode The country code of the country where the terminal is located. * * @return self + * @deprecated */ public function setCountryCode($countryCode) { @@ -589,6 +599,7 @@ public function setCountryCode($countryCode) * Gets deviceModel * * @return string|null + * @deprecated */ public function getDeviceModel() { @@ -601,6 +612,7 @@ public function getDeviceModel() * @param string|null $deviceModel The model name of the terminal. * * @return self + * @deprecated */ public function setDeviceModel($deviceModel) { @@ -616,6 +628,7 @@ public function setDeviceModel($deviceModel) * Gets ethernetIp * * @return string|null + * @deprecated */ public function getEthernetIp() { @@ -628,6 +641,7 @@ public function getEthernetIp() * @param string|null $ethernetIp The ethernet IP address of the terminal. * * @return self + * @deprecated */ public function setEthernetIp($ethernetIp) { @@ -643,6 +657,7 @@ public function setEthernetIp($ethernetIp) * Gets ethernetMac * * @return string|null + * @deprecated */ public function getEthernetMac() { @@ -655,6 +670,7 @@ public function getEthernetMac() * @param string|null $ethernetMac The ethernet MAC address of the terminal. * * @return self + * @deprecated */ public function setEthernetMac($ethernetMac) { @@ -697,6 +713,7 @@ public function setFirmwareVersion($firmwareVersion) * Gets iccid * * @return string|null + * @deprecated */ public function getIccid() { @@ -709,6 +726,7 @@ public function getIccid() * @param string|null $iccid The integrated circuit card identifier (ICCID) of the SIM card in the terminal. * * @return self + * @deprecated */ public function setIccid($iccid) { @@ -751,6 +769,7 @@ public function setId($id) * Gets lastActivityDateTime * * @return \DateTime|null + * @deprecated */ public function getLastActivityDateTime() { @@ -763,6 +782,7 @@ public function getLastActivityDateTime() * @param \DateTime|null $lastActivityDateTime Date and time of the last activity on the terminal. Not included when the last activity was more than 14 days ago. * * @return self + * @deprecated */ public function setLastActivityDateTime($lastActivityDateTime) { @@ -778,6 +798,7 @@ public function setLastActivityDateTime($lastActivityDateTime) * Gets lastTransactionDateTime * * @return \DateTime|null + * @deprecated */ public function getLastTransactionDateTime() { @@ -790,6 +811,7 @@ public function getLastTransactionDateTime() * @param \DateTime|null $lastTransactionDateTime Date and time of the last transaction on the terminal. Not included when the last transaction was more than 14 days ago. * * @return self + * @deprecated */ public function setLastTransactionDateTime($lastTransactionDateTime) { @@ -805,6 +827,7 @@ public function setLastTransactionDateTime($lastTransactionDateTime) * Gets linkNegotiation * * @return string|null + * @deprecated */ public function getLinkNegotiation() { @@ -817,6 +840,7 @@ public function getLinkNegotiation() * @param string|null $linkNegotiation The Ethernet link negotiation that the terminal uses: - `auto`: Auto-negotiation - `100full`: 100 Mbps full duplex * * @return self + * @deprecated */ public function setLinkNegotiation($linkNegotiation) { @@ -859,6 +883,7 @@ public function setSerialNumber($serialNumber) * Gets simStatus * * @return string|null + * @deprecated */ public function getSimStatus() { @@ -871,6 +896,7 @@ public function getSimStatus() * @param string|null $simStatus On a terminal that supports 3G or 4G connectivity, indicates the status of the SIM card in the terminal: ACTIVE or INVENTORY. * * @return self + * @deprecated */ public function setSimStatus($simStatus) { @@ -886,6 +912,7 @@ public function setSimStatus($simStatus) * Gets status * * @return string|null + * @deprecated */ public function getStatus() { @@ -898,6 +925,7 @@ public function getStatus() * @param string|null $status Indicates when the terminal was last online, whether the terminal is being reassigned, or whether the terminal is turned off. If the terminal was last online more that a week ago, it is also shown as turned off. * * @return self + * @deprecated */ public function setStatus($status) { @@ -913,6 +941,7 @@ public function setStatus($status) * Gets storeStatus * * @return string|null + * @deprecated */ public function getStoreStatus() { @@ -925,6 +954,7 @@ public function getStoreStatus() * @param string|null $storeStatus The status of the store that the terminal is assigned to. * * @return self + * @deprecated */ public function setStoreStatus($storeStatus) { @@ -940,6 +970,7 @@ public function setStoreStatus($storeStatus) * Gets wifiIp * * @return string|null + * @deprecated */ public function getWifiIp() { @@ -952,6 +983,7 @@ public function getWifiIp() * @param string|null $wifiIp The terminal's IP address in your Wi-Fi network. * * @return self + * @deprecated */ public function setWifiIp($wifiIp) { @@ -967,6 +999,7 @@ public function setWifiIp($wifiIp) * Gets wifiMac * * @return string|null + * @deprecated */ public function getWifiMac() { @@ -979,6 +1012,7 @@ public function getWifiMac() * @param string|null $wifiMac The terminal's MAC address in your Wi-Fi network. * * @return self + * @deprecated */ public function setWifiMac($wifiMac) { @@ -994,6 +1028,7 @@ public function setWifiMac($wifiMac) * Gets wifiSsid * * @return string|null + * @deprecated */ public function getWifiSsid() { @@ -1006,6 +1041,7 @@ public function getWifiSsid() * @param string|null $wifiSsid The SSID of the Wi-Fi network that your terminal is connected to. * * @return self + * @deprecated */ public function setWifiSsid($wifiSsid) { diff --git a/src/Adyen/Model/Management/TerminalOrderRequest.php b/src/Adyen/Model/Management/TerminalOrderRequest.php index 7e3f2e98b..baee03954 100644 --- a/src/Adyen/Model/Management/TerminalOrderRequest.php +++ b/src/Adyen/Model/Management/TerminalOrderRequest.php @@ -47,6 +47,7 @@ class TerminalOrderRequest implements ModelInterface, ArrayAccess, \JsonSerializ 'billingEntityId' => 'string', 'customerOrderReference' => 'string', 'items' => '\Adyen\Model\Management\OrderItem[]', + 'orderType' => 'string', 'shippingLocationId' => 'string', 'taxId' => 'string' ]; @@ -62,6 +63,7 @@ class TerminalOrderRequest implements ModelInterface, ArrayAccess, \JsonSerializ 'billingEntityId' => null, 'customerOrderReference' => null, 'items' => null, + 'orderType' => null, 'shippingLocationId' => null, 'taxId' => null ]; @@ -75,6 +77,7 @@ class TerminalOrderRequest implements ModelInterface, ArrayAccess, \JsonSerializ 'billingEntityId' => false, 'customerOrderReference' => false, 'items' => false, + 'orderType' => false, 'shippingLocationId' => false, 'taxId' => false ]; @@ -168,6 +171,7 @@ public function isNullableSetToNull(string $property): bool 'billingEntityId' => 'billingEntityId', 'customerOrderReference' => 'customerOrderReference', 'items' => 'items', + 'orderType' => 'orderType', 'shippingLocationId' => 'shippingLocationId', 'taxId' => 'taxId' ]; @@ -181,6 +185,7 @@ public function isNullableSetToNull(string $property): bool 'billingEntityId' => 'setBillingEntityId', 'customerOrderReference' => 'setCustomerOrderReference', 'items' => 'setItems', + 'orderType' => 'setOrderType', 'shippingLocationId' => 'setShippingLocationId', 'taxId' => 'setTaxId' ]; @@ -194,6 +199,7 @@ public function isNullableSetToNull(string $property): bool 'billingEntityId' => 'getBillingEntityId', 'customerOrderReference' => 'getCustomerOrderReference', 'items' => 'getItems', + 'orderType' => 'getOrderType', 'shippingLocationId' => 'getShippingLocationId', 'taxId' => 'getTaxId' ]; @@ -258,6 +264,7 @@ public function __construct(array $data = null) $this->setIfExists('billingEntityId', $data ?? [], null); $this->setIfExists('customerOrderReference', $data ?? [], null); $this->setIfExists('items', $data ?? [], null); + $this->setIfExists('orderType', $data ?? [], null); $this->setIfExists('shippingLocationId', $data ?? [], null); $this->setIfExists('taxId', $data ?? [], null); } @@ -385,6 +392,33 @@ public function setItems($items) return $this; } + /** + * Gets orderType + * + * @return string|null + */ + public function getOrderType() + { + return $this->container['orderType']; + } + + /** + * Sets orderType + * + * @param string|null $orderType Type of order + * + * @return self + */ + public function setOrderType($orderType) + { + if (is_null($orderType)) { + throw new \InvalidArgumentException('non-nullable orderType cannot be null'); + } + $this->container['orderType'] = $orderType; + + return $this; + } + /** * Gets shippingLocationId * diff --git a/src/Adyen/Model/Management/TwintInfo.php b/src/Adyen/Model/Management/TwintInfo.php new file mode 100644 index 000000000..31b53cf05 --- /dev/null +++ b/src/Adyen/Model/Management/TwintInfo.php @@ -0,0 +1,387 @@ + + */ +class TwintInfo implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'TwintInfo'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'logo' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'logo' => null + ]; + + /** + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ + protected static $openAPINullables = [ + 'logo' => false + ]; + + /** + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ + protected $openAPINullablesSetToNull = []; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of nullable properties + * + * @return array + */ + protected static function openAPINullables(): array + { + return self::$openAPINullables; + } + + /** + * Array of nullable field names deliberately set to null + * + * @return boolean[] + */ + private function getOpenAPINullablesSetToNull(): array + { + return $this->openAPINullablesSetToNull; + } + + /** + * Setter - Array of nullable field names deliberately set to null + * + * @param boolean[] $openAPINullablesSetToNull + */ + private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void + { + $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; + } + + /** + * Checks if a property is nullable + * + * @param string $property + * @return bool + */ + public static function isNullable(string $property): bool + { + return self::openAPINullables()[$property] ?? false; + } + + /** + * Checks if a nullable property is set to null. + * + * @param string $property + * @return bool + */ + public function isNullableSetToNull(string $property): bool + { + return in_array($property, $this->getOpenAPINullablesSetToNull(), true); + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'logo' => 'logo' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'logo' => 'setLogo' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'logo' => 'getLogo' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->setIfExists('logo', $data ?? [], null); + } + + /** + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ + private function setIfExists(string $variableName, array $fields, $defaultValue): void + { + if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { + $this->openAPINullablesSetToNull[] = $variableName; + } + + $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['logo'] === null) { + $invalidProperties[] = "'logo' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets logo + * + * @return string + */ + public function getLogo() + { + return $this->container['logo']; + } + + /** + * Sets logo + * + * @param string $logo Twint logo. Format: Base64-encoded string. + * + * @return self + */ + public function setLogo($logo) + { + if (is_null($logo)) { + throw new \InvalidArgumentException('non-nullable logo cannot be null'); + } + $this->container['logo'] = $logo; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset): bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed|null + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + * + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value): void + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset): void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed Returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource. + */ + #[\ReturnTypeWillChange] + public function jsonSerialize() + { + return ObjectSerializer::sanitizeForSerialization($this); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } +} diff --git a/src/Adyen/Model/Management/UpdateCompanyUserRequest.php b/src/Adyen/Model/Management/UpdateCompanyUserRequest.php index 7d5e8e14d..0cf79d24f 100644 --- a/src/Adyen/Model/Management/UpdateCompanyUserRequest.php +++ b/src/Adyen/Model/Management/UpdateCompanyUserRequest.php @@ -47,8 +47,6 @@ class UpdateCompanyUserRequest implements ModelInterface, ArrayAccess, \JsonSeri 'accountGroups' => 'string[]', 'active' => 'bool', 'associatedMerchantAccounts' => 'string[]', - 'authnAppsToAdd' => 'string[]', - 'authnAppsToRemove' => 'string[]', 'email' => 'string', 'name' => '\Adyen\Model\Management\Name2', 'roles' => 'string[]', @@ -66,8 +64,6 @@ class UpdateCompanyUserRequest implements ModelInterface, ArrayAccess, \JsonSeri 'accountGroups' => null, 'active' => null, 'associatedMerchantAccounts' => null, - 'authnAppsToAdd' => null, - 'authnAppsToRemove' => null, 'email' => null, 'name' => null, 'roles' => null, @@ -83,8 +79,6 @@ class UpdateCompanyUserRequest implements ModelInterface, ArrayAccess, \JsonSeri 'accountGroups' => false, 'active' => false, 'associatedMerchantAccounts' => false, - 'authnAppsToAdd' => false, - 'authnAppsToRemove' => false, 'email' => false, 'name' => false, 'roles' => false, @@ -180,8 +174,6 @@ public function isNullableSetToNull(string $property): bool 'accountGroups' => 'accountGroups', 'active' => 'active', 'associatedMerchantAccounts' => 'associatedMerchantAccounts', - 'authnAppsToAdd' => 'authnAppsToAdd', - 'authnAppsToRemove' => 'authnAppsToRemove', 'email' => 'email', 'name' => 'name', 'roles' => 'roles', @@ -197,8 +189,6 @@ public function isNullableSetToNull(string $property): bool 'accountGroups' => 'setAccountGroups', 'active' => 'setActive', 'associatedMerchantAccounts' => 'setAssociatedMerchantAccounts', - 'authnAppsToAdd' => 'setAuthnAppsToAdd', - 'authnAppsToRemove' => 'setAuthnAppsToRemove', 'email' => 'setEmail', 'name' => 'setName', 'roles' => 'setRoles', @@ -214,8 +204,6 @@ public function isNullableSetToNull(string $property): bool 'accountGroups' => 'getAccountGroups', 'active' => 'getActive', 'associatedMerchantAccounts' => 'getAssociatedMerchantAccounts', - 'authnAppsToAdd' => 'getAuthnAppsToAdd', - 'authnAppsToRemove' => 'getAuthnAppsToRemove', 'email' => 'getEmail', 'name' => 'getName', 'roles' => 'getRoles', @@ -282,8 +270,6 @@ public function __construct(array $data = null) $this->setIfExists('accountGroups', $data ?? [], null); $this->setIfExists('active', $data ?? [], null); $this->setIfExists('associatedMerchantAccounts', $data ?? [], null); - $this->setIfExists('authnAppsToAdd', $data ?? [], null); - $this->setIfExists('authnAppsToRemove', $data ?? [], null); $this->setIfExists('email', $data ?? [], null); $this->setIfExists('name', $data ?? [], null); $this->setIfExists('roles', $data ?? [], null); @@ -413,60 +399,6 @@ public function setAssociatedMerchantAccounts($associatedMerchantAccounts) return $this; } - /** - * Gets authnAppsToAdd - * - * @return string[]|null - */ - public function getAuthnAppsToAdd() - { - return $this->container['authnAppsToAdd']; - } - - /** - * Sets authnAppsToAdd - * - * @param string[]|null $authnAppsToAdd Set of authn apps to add to this user - * - * @return self - */ - public function setAuthnAppsToAdd($authnAppsToAdd) - { - if (is_null($authnAppsToAdd)) { - throw new \InvalidArgumentException('non-nullable authnAppsToAdd cannot be null'); - } - $this->container['authnAppsToAdd'] = $authnAppsToAdd; - - return $this; - } - - /** - * Gets authnAppsToRemove - * - * @return string[]|null - */ - public function getAuthnAppsToRemove() - { - return $this->container['authnAppsToRemove']; - } - - /** - * Sets authnAppsToRemove - * - * @param string[]|null $authnAppsToRemove Set of authn apps to remove from this user - * - * @return self - */ - public function setAuthnAppsToRemove($authnAppsToRemove) - { - if (is_null($authnAppsToRemove)) { - throw new \InvalidArgumentException('non-nullable authnAppsToRemove cannot be null'); - } - $this->container['authnAppsToRemove'] = $authnAppsToRemove; - - return $this; - } - /** * Gets email * diff --git a/src/Adyen/Model/Management/UpdateMerchantUserRequest.php b/src/Adyen/Model/Management/UpdateMerchantUserRequest.php index 85d8f7975..a4f582b77 100644 --- a/src/Adyen/Model/Management/UpdateMerchantUserRequest.php +++ b/src/Adyen/Model/Management/UpdateMerchantUserRequest.php @@ -46,8 +46,6 @@ class UpdateMerchantUserRequest implements ModelInterface, ArrayAccess, \JsonSer protected static $openAPITypes = [ 'accountGroups' => 'string[]', 'active' => 'bool', - 'authnAppsToAdd' => 'string[]', - 'authnAppsToRemove' => 'string[]', 'email' => 'string', 'name' => '\Adyen\Model\Management\Name2', 'roles' => 'string[]', @@ -64,8 +62,6 @@ class UpdateMerchantUserRequest implements ModelInterface, ArrayAccess, \JsonSer protected static $openAPIFormats = [ 'accountGroups' => null, 'active' => null, - 'authnAppsToAdd' => null, - 'authnAppsToRemove' => null, 'email' => null, 'name' => null, 'roles' => null, @@ -80,8 +76,6 @@ class UpdateMerchantUserRequest implements ModelInterface, ArrayAccess, \JsonSer protected static $openAPINullables = [ 'accountGroups' => false, 'active' => false, - 'authnAppsToAdd' => false, - 'authnAppsToRemove' => false, 'email' => false, 'name' => false, 'roles' => false, @@ -176,8 +170,6 @@ public function isNullableSetToNull(string $property): bool protected static $attributeMap = [ 'accountGroups' => 'accountGroups', 'active' => 'active', - 'authnAppsToAdd' => 'authnAppsToAdd', - 'authnAppsToRemove' => 'authnAppsToRemove', 'email' => 'email', 'name' => 'name', 'roles' => 'roles', @@ -192,8 +184,6 @@ public function isNullableSetToNull(string $property): bool protected static $setters = [ 'accountGroups' => 'setAccountGroups', 'active' => 'setActive', - 'authnAppsToAdd' => 'setAuthnAppsToAdd', - 'authnAppsToRemove' => 'setAuthnAppsToRemove', 'email' => 'setEmail', 'name' => 'setName', 'roles' => 'setRoles', @@ -208,8 +198,6 @@ public function isNullableSetToNull(string $property): bool protected static $getters = [ 'accountGroups' => 'getAccountGroups', 'active' => 'getActive', - 'authnAppsToAdd' => 'getAuthnAppsToAdd', - 'authnAppsToRemove' => 'getAuthnAppsToRemove', 'email' => 'getEmail', 'name' => 'getName', 'roles' => 'getRoles', @@ -275,8 +263,6 @@ public function __construct(array $data = null) { $this->setIfExists('accountGroups', $data ?? [], null); $this->setIfExists('active', $data ?? [], null); - $this->setIfExists('authnAppsToAdd', $data ?? [], null); - $this->setIfExists('authnAppsToRemove', $data ?? [], null); $this->setIfExists('email', $data ?? [], null); $this->setIfExists('name', $data ?? [], null); $this->setIfExists('roles', $data ?? [], null); @@ -379,60 +365,6 @@ public function setActive($active) return $this; } - /** - * Gets authnAppsToAdd - * - * @return string[]|null - */ - public function getAuthnAppsToAdd() - { - return $this->container['authnAppsToAdd']; - } - - /** - * Sets authnAppsToAdd - * - * @param string[]|null $authnAppsToAdd Set of authn apps to add to this user - * - * @return self - */ - public function setAuthnAppsToAdd($authnAppsToAdd) - { - if (is_null($authnAppsToAdd)) { - throw new \InvalidArgumentException('non-nullable authnAppsToAdd cannot be null'); - } - $this->container['authnAppsToAdd'] = $authnAppsToAdd; - - return $this; - } - - /** - * Gets authnAppsToRemove - * - * @return string[]|null - */ - public function getAuthnAppsToRemove() - { - return $this->container['authnAppsToRemove']; - } - - /** - * Sets authnAppsToRemove - * - * @param string[]|null $authnAppsToRemove Set of authn apps to remove from this user - * - * @return self - */ - public function setAuthnAppsToRemove($authnAppsToRemove) - { - if (is_null($authnAppsToRemove)) { - throw new \InvalidArgumentException('non-nullable authnAppsToRemove cannot be null'); - } - $this->container['authnAppsToRemove'] = $authnAppsToRemove; - - return $this; - } - /** * Gets email * diff --git a/src/Adyen/Model/Management/UpdatePaymentMethodInfo.php b/src/Adyen/Model/Management/UpdatePaymentMethodInfo.php index 0d53a3277..a5d23c0e7 100644 --- a/src/Adyen/Model/Management/UpdatePaymentMethodInfo.php +++ b/src/Adyen/Model/Management/UpdatePaymentMethodInfo.php @@ -44,11 +44,11 @@ class UpdatePaymentMethodInfo implements ModelInterface, ArrayAccess, \JsonSeria * @var string[] */ protected static $openAPITypes = [ + 'bcmc' => '\Adyen\Model\Management\BcmcInfo', + 'cartesBancaires' => '\Adyen\Model\Management\CartesBancairesInfo', 'countries' => 'string[]', 'currencies' => 'string[]', - 'customRoutingFlags' => 'string[]', 'enabled' => 'bool', - 'shopperStatement' => '\Adyen\Model\Management\ShopperStatement', 'storeIds' => 'string[]' ]; @@ -60,11 +60,11 @@ class UpdatePaymentMethodInfo implements ModelInterface, ArrayAccess, \JsonSeria * @psalm-var array */ protected static $openAPIFormats = [ + 'bcmc' => null, + 'cartesBancaires' => null, 'countries' => null, 'currencies' => null, - 'customRoutingFlags' => null, 'enabled' => null, - 'shopperStatement' => null, 'storeIds' => null ]; @@ -74,11 +74,11 @@ class UpdatePaymentMethodInfo implements ModelInterface, ArrayAccess, \JsonSeria * @var boolean[] */ protected static $openAPINullables = [ + 'bcmc' => false, + 'cartesBancaires' => false, 'countries' => false, 'currencies' => false, - 'customRoutingFlags' => false, 'enabled' => false, - 'shopperStatement' => false, 'storeIds' => false ]; @@ -168,11 +168,11 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $attributeMap = [ + 'bcmc' => 'bcmc', + 'cartesBancaires' => 'cartesBancaires', 'countries' => 'countries', 'currencies' => 'currencies', - 'customRoutingFlags' => 'customRoutingFlags', 'enabled' => 'enabled', - 'shopperStatement' => 'shopperStatement', 'storeIds' => 'storeIds' ]; @@ -182,11 +182,11 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $setters = [ + 'bcmc' => 'setBcmc', + 'cartesBancaires' => 'setCartesBancaires', 'countries' => 'setCountries', 'currencies' => 'setCurrencies', - 'customRoutingFlags' => 'setCustomRoutingFlags', 'enabled' => 'setEnabled', - 'shopperStatement' => 'setShopperStatement', 'storeIds' => 'setStoreIds' ]; @@ -196,11 +196,11 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $getters = [ + 'bcmc' => 'getBcmc', + 'cartesBancaires' => 'getCartesBancaires', 'countries' => 'getCountries', 'currencies' => 'getCurrencies', - 'customRoutingFlags' => 'getCustomRoutingFlags', 'enabled' => 'getEnabled', - 'shopperStatement' => 'getShopperStatement', 'storeIds' => 'getStoreIds' ]; @@ -261,11 +261,11 @@ public function getModelName() */ public function __construct(array $data = null) { + $this->setIfExists('bcmc', $data ?? [], null); + $this->setIfExists('cartesBancaires', $data ?? [], null); $this->setIfExists('countries', $data ?? [], null); $this->setIfExists('currencies', $data ?? [], null); - $this->setIfExists('customRoutingFlags', $data ?? [], null); $this->setIfExists('enabled', $data ?? [], null); - $this->setIfExists('shopperStatement', $data ?? [], null); $this->setIfExists('storeIds', $data ?? [], null); } @@ -312,136 +312,136 @@ public function valid() /** - * Gets countries + * Gets bcmc * - * @return string[]|null + * @return \Adyen\Model\Management\BcmcInfo|null */ - public function getCountries() + public function getBcmc() { - return $this->container['countries']; + return $this->container['bcmc']; } /** - * Sets countries + * Sets bcmc * - * @param string[]|null $countries The list of countries where a payment method is available. By default, all countries supported by the payment method. + * @param \Adyen\Model\Management\BcmcInfo|null $bcmc bcmc * * @return self */ - public function setCountries($countries) + public function setBcmc($bcmc) { - if (is_null($countries)) { - throw new \InvalidArgumentException('non-nullable countries cannot be null'); + if (is_null($bcmc)) { + throw new \InvalidArgumentException('non-nullable bcmc cannot be null'); } - $this->container['countries'] = $countries; + $this->container['bcmc'] = $bcmc; return $this; } /** - * Gets currencies + * Gets cartesBancaires * - * @return string[]|null + * @return \Adyen\Model\Management\CartesBancairesInfo|null */ - public function getCurrencies() + public function getCartesBancaires() { - return $this->container['currencies']; + return $this->container['cartesBancaires']; } /** - * Sets currencies + * Sets cartesBancaires * - * @param string[]|null $currencies The list of currencies that a payment method supports. By default, all currencies supported by the payment method. + * @param \Adyen\Model\Management\CartesBancairesInfo|null $cartesBancaires cartesBancaires * * @return self */ - public function setCurrencies($currencies) + public function setCartesBancaires($cartesBancaires) { - if (is_null($currencies)) { - throw new \InvalidArgumentException('non-nullable currencies cannot be null'); + if (is_null($cartesBancaires)) { + throw new \InvalidArgumentException('non-nullable cartesBancaires cannot be null'); } - $this->container['currencies'] = $currencies; + $this->container['cartesBancaires'] = $cartesBancaires; return $this; } /** - * Gets customRoutingFlags + * Gets countries * * @return string[]|null */ - public function getCustomRoutingFlags() + public function getCountries() { - return $this->container['customRoutingFlags']; + return $this->container['countries']; } /** - * Sets customRoutingFlags + * Sets countries * - * @param string[]|null $customRoutingFlags Custom routing flags for acquirer routing. + * @param string[]|null $countries The list of countries where a payment method is available. By default, all countries supported by the payment method. * * @return self */ - public function setCustomRoutingFlags($customRoutingFlags) + public function setCountries($countries) { - if (is_null($customRoutingFlags)) { - throw new \InvalidArgumentException('non-nullable customRoutingFlags cannot be null'); + if (is_null($countries)) { + throw new \InvalidArgumentException('non-nullable countries cannot be null'); } - $this->container['customRoutingFlags'] = $customRoutingFlags; + $this->container['countries'] = $countries; return $this; } /** - * Gets enabled + * Gets currencies * - * @return bool|null + * @return string[]|null */ - public function getEnabled() + public function getCurrencies() { - return $this->container['enabled']; + return $this->container['currencies']; } /** - * Sets enabled + * Sets currencies * - * @param bool|null $enabled Indicates whether the payment method is enabled (**true**) or disabled (**false**). + * @param string[]|null $currencies The list of currencies that a payment method supports. By default, all currencies supported by the payment method. * * @return self */ - public function setEnabled($enabled) + public function setCurrencies($currencies) { - if (is_null($enabled)) { - throw new \InvalidArgumentException('non-nullable enabled cannot be null'); + if (is_null($currencies)) { + throw new \InvalidArgumentException('non-nullable currencies cannot be null'); } - $this->container['enabled'] = $enabled; + $this->container['currencies'] = $currencies; return $this; } /** - * Gets shopperStatement + * Gets enabled * - * @return \Adyen\Model\Management\ShopperStatement|null + * @return bool|null */ - public function getShopperStatement() + public function getEnabled() { - return $this->container['shopperStatement']; + return $this->container['enabled']; } /** - * Sets shopperStatement + * Sets enabled * - * @param \Adyen\Model\Management\ShopperStatement|null $shopperStatement shopperStatement + * @param bool|null $enabled Indicates whether the payment method is enabled (**true**) or disabled (**false**). * * @return self */ - public function setShopperStatement($shopperStatement) + public function setEnabled($enabled) { - if (is_null($shopperStatement)) { - throw new \InvalidArgumentException('non-nullable shopperStatement cannot be null'); + if (is_null($enabled)) { + throw new \InvalidArgumentException('non-nullable enabled cannot be null'); } - $this->container['shopperStatement'] = $shopperStatement; + $this->container['enabled'] = $enabled; return $this; } diff --git a/src/Adyen/Model/Management/User.php b/src/Adyen/Model/Management/User.php index f31b7e45b..d198a75e6 100644 --- a/src/Adyen/Model/Management/User.php +++ b/src/Adyen/Model/Management/User.php @@ -47,7 +47,7 @@ class User implements ModelInterface, ArrayAccess, \JsonSerializable 'links' => '\Adyen\Model\Management\Links', 'accountGroups' => 'string[]', 'active' => 'bool', - 'authnApps' => 'string[]', + 'apps' => 'string[]', 'email' => 'string', 'id' => 'string', 'name' => '\Adyen\Model\Management\Name', @@ -67,7 +67,7 @@ class User implements ModelInterface, ArrayAccess, \JsonSerializable 'links' => null, 'accountGroups' => null, 'active' => null, - 'authnApps' => null, + 'apps' => null, 'email' => null, 'id' => null, 'name' => null, @@ -85,7 +85,7 @@ class User implements ModelInterface, ArrayAccess, \JsonSerializable 'links' => false, 'accountGroups' => false, 'active' => false, - 'authnApps' => false, + 'apps' => false, 'email' => false, 'id' => false, 'name' => false, @@ -183,7 +183,7 @@ public function isNullableSetToNull(string $property): bool 'links' => '_links', 'accountGroups' => 'accountGroups', 'active' => 'active', - 'authnApps' => 'authnApps', + 'apps' => 'apps', 'email' => 'email', 'id' => 'id', 'name' => 'name', @@ -201,7 +201,7 @@ public function isNullableSetToNull(string $property): bool 'links' => 'setLinks', 'accountGroups' => 'setAccountGroups', 'active' => 'setActive', - 'authnApps' => 'setAuthnApps', + 'apps' => 'setApps', 'email' => 'setEmail', 'id' => 'setId', 'name' => 'setName', @@ -219,7 +219,7 @@ public function isNullableSetToNull(string $property): bool 'links' => 'getLinks', 'accountGroups' => 'getAccountGroups', 'active' => 'getActive', - 'authnApps' => 'getAuthnApps', + 'apps' => 'getApps', 'email' => 'getEmail', 'id' => 'getId', 'name' => 'getName', @@ -288,7 +288,7 @@ public function __construct(array $data = null) $this->setIfExists('links', $data ?? [], null); $this->setIfExists('accountGroups', $data ?? [], null); $this->setIfExists('active', $data ?? [], null); - $this->setIfExists('authnApps', $data ?? [], null); + $this->setIfExists('apps', $data ?? [], null); $this->setIfExists('email', $data ?? [], null); $this->setIfExists('id', $data ?? [], null); $this->setIfExists('name', $data ?? [], null); @@ -436,28 +436,28 @@ public function setActive($active) } /** - * Gets authnApps + * Gets apps * * @return string[]|null */ - public function getAuthnApps() + public function getApps() { - return $this->container['authnApps']; + return $this->container['apps']; } /** - * Sets authnApps + * Sets apps * - * @param string[]|null $authnApps Set of authn apps available to this user + * @param string[]|null $apps Set of apps available to this user * * @return self */ - public function setAuthnApps($authnApps) + public function setApps($apps) { - if (is_null($authnApps)) { - throw new \InvalidArgumentException('non-nullable authnApps cannot be null'); + if (is_null($apps)) { + throw new \InvalidArgumentException('non-nullable apps cannot be null'); } - $this->container['authnApps'] = $authnApps; + $this->container['apps'] = $apps; return $this; } diff --git a/src/Adyen/Model/Management/VippsInfo.php b/src/Adyen/Model/Management/VippsInfo.php index 824fba5f6..e7824dc92 100644 --- a/src/Adyen/Model/Management/VippsInfo.php +++ b/src/Adyen/Model/Management/VippsInfo.php @@ -326,7 +326,7 @@ public function getSubscriptionCancelUrl() /** * Sets subscriptionCancelUrl * - * @param string|null $subscriptionCancelUrl Vipps subscription cancel url + * @param string|null $subscriptionCancelUrl Vipps subscription cancel url (required in case of [recurring payments](https://docs.adyen.com/online-payments/tokenization)) * * @return self */ diff --git a/src/Adyen/Model/Transfers/Address2.php b/src/Adyen/Model/Transfers/Address2.php index d329b6ed9..030ee8507 100644 --- a/src/Adyen/Model/Transfers/Address2.php +++ b/src/Adyen/Model/Transfers/Address2.php @@ -354,7 +354,7 @@ public function getCountry() /** * Sets country * - * @param string $country The two-character ISO 3166-1 alpha-2 country code. For example, **US**. >If you don't know the country or are not collecting the country from the shopper, provide `country` as `ZZ`. + * @param string $country The two-character ISO 3166-1 alpha-2 country code. For example, **US**, **NL**, or **GB**. * * @return self */ diff --git a/src/Adyen/Model/Transfers/Transfer.php b/src/Adyen/Model/Transfers/Transfer.php index 0a1d23c6f..df89b1d02 100644 --- a/src/Adyen/Model/Transfers/Transfer.php +++ b/src/Adyen/Model/Transfers/Transfer.php @@ -1097,7 +1097,7 @@ public function getReferenceForBeneficiary() /** * Sets referenceForBeneficiary * - * @param string|null $referenceForBeneficiary A reference that is sent to the recipient. This reference is also sent in all notification webhooks related to the transfer, so you can use it to track statuses for both the source and recipient of funds. Supported characters: **a-z**, **A-Z**, **0-9**. The maximum length depends on the `category`. - **internal**: 80 characters - **bank**: 35 characters when transferring to an IBAN, 15 characters for others. + * @param string|null $referenceForBeneficiary A reference that is sent to the recipient. This reference is also sent in all webhooks related to the transfer, so you can use it to track statuses for both the source and recipient of funds. Supported characters: **a-z**, **A-Z**, **0-9**. The maximum length depends on the `category`. - **internal**: 80 characters - **bank**: 35 characters when transferring to an IBAN, 15 characters for others. * * @return self */ diff --git a/src/Adyen/Model/Transfers/TransferInfo.php b/src/Adyen/Model/Transfers/TransferInfo.php index 619937caf..321000791 100644 --- a/src/Adyen/Model/Transfers/TransferInfo.php +++ b/src/Adyen/Model/Transfers/TransferInfo.php @@ -691,7 +691,7 @@ public function getReferenceForBeneficiary() /** * Sets referenceForBeneficiary * - * @param string|null $referenceForBeneficiary A reference that is sent to the recipient. This reference is also sent in all notification webhooks related to the transfer, so you can use it to track statuses for both the source and recipient of funds. Supported characters: **a-z**, **A-Z**, **0-9**. The maximum length depends on the `category`. - **internal**: 80 characters - **bank**: 35 characters when transferring to an IBAN, 15 characters for others. + * @param string|null $referenceForBeneficiary A reference that is sent to the recipient. This reference is also sent in all webhooks related to the transfer, so you can use it to track statuses for both the source and recipient of funds. Supported characters: **a-z**, **A-Z**, **0-9**. The maximum length depends on the `category`. - **internal**: 80 characters - **bank**: 35 characters when transferring to an IBAN, 15 characters for others. * * @return self */