From 367f452898a538990a9d28ac3559d702e2589809 Mon Sep 17 00:00:00 2001 From: beppe Date: Mon, 11 Aug 2025 13:47:00 +0200 Subject: [PATCH 1/3] Generate LEM models --- .../AULocalAccountIdentification.php | 4 ++-- .../AcceptTermsOfServiceRequest.php | 4 ++-- .../AcceptTermsOfServiceResponse.php | 4 ++-- .../AdditionalBankIdentification.php | 10 +++++++--- src/Adyen/Model/LegalEntityManagement/Address.php | 8 ++++---- src/Adyen/Model/LegalEntityManagement/Amount.php | 4 ++-- src/Adyen/Model/LegalEntityManagement/Attachment.php | 6 +++--- .../Model/LegalEntityManagement/BankAccountInfo.php | 4 ++-- .../BankAccountInfoAccountIdentification.php | 4 ++-- src/Adyen/Model/LegalEntityManagement/BirthData.php | 4 ++-- src/Adyen/Model/LegalEntityManagement/BusinessLine.php | 4 ++-- .../Model/LegalEntityManagement/BusinessLineInfo.php | 4 ++-- .../LegalEntityManagement/BusinessLineInfoUpdate.php | 4 ++-- .../Model/LegalEntityManagement/BusinessLines.php | 4 ++-- .../CALocalAccountIdentification.php | 4 ++-- .../CZLocalAccountIdentification.php | 4 ++-- .../CalculatePciStatusRequest.php | 4 ++-- .../CalculatePciStatusResponse.php | 4 ++-- .../CalculateTermsOfServiceStatusResponse.php | 4 ++-- .../Model/LegalEntityManagement/CapabilityProblem.php | 4 ++-- .../LegalEntityManagement/CapabilityProblemEntity.php | 4 ++-- .../CapabilityProblemEntityRecursive.php | 4 ++-- .../Model/LegalEntityManagement/CapabilitySettings.php | 4 ++-- .../CheckTaxElectronicDeliveryConsentResponse.php | 4 ++-- .../DKLocalAccountIdentification.php | 4 ++-- .../DataReviewConfirmationResponse.php | 4 ++-- src/Adyen/Model/LegalEntityManagement/Document.php | 4 ++-- src/Adyen/Model/LegalEntityManagement/DocumentPage.php | 4 ++-- .../Model/LegalEntityManagement/DocumentReference.php | 4 ++-- .../Model/LegalEntityManagement/EntityReference.php | 4 ++-- .../Model/LegalEntityManagement/FinancialReport.php | 4 ++-- .../GeneratePciDescriptionRequest.php | 4 ++-- .../GeneratePciDescriptionResponse.php | 4 ++-- .../GetAcceptedTermsOfServiceDocumentResponse.php | 4 ++-- .../GetPciQuestionnaireInfosResponse.php | 4 ++-- .../GetPciQuestionnaireResponse.php | 4 ++-- .../GetTermsOfServiceAcceptanceInfosResponse.php | 4 ++-- .../GetTermsOfServiceDocumentRequest.php | 4 ++-- .../GetTermsOfServiceDocumentResponse.php | 4 ++-- .../HKLocalAccountIdentification.php | 4 ++-- .../HULocalAccountIdentification.php | 4 ++-- .../IbanAccountIdentification.php | 4 ++-- .../Model/LegalEntityManagement/IdentificationData.php | 4 ++-- src/Adyen/Model/LegalEntityManagement/Individual.php | 4 ++-- src/Adyen/Model/LegalEntityManagement/LegalEntity.php | 6 +++--- .../LegalEntityManagement/LegalEntityAssociation.php | 4 ++-- .../LegalEntityManagement/LegalEntityCapability.php | 4 ++-- .../Model/LegalEntityManagement/LegalEntityInfo.php | 6 +++--- .../LegalEntityInfoRequiredType.php | 6 +++--- .../NOLocalAccountIdentification.php | 4 ++-- .../NZLocalAccountIdentification.php | 4 ++-- src/Adyen/Model/LegalEntityManagement/Name.php | 4 ++-- .../NumberAndBicAccountIdentification.php | 4 ++-- .../Model/LegalEntityManagement/OnboardingLink.php | 4 ++-- .../Model/LegalEntityManagement/OnboardingLinkInfo.php | 4 ++-- .../LegalEntityManagement/OnboardingLinkSettings.php | 4 ++-- .../Model/LegalEntityManagement/OnboardingTheme.php | 4 ++-- .../Model/LegalEntityManagement/OnboardingThemes.php | 4 ++-- src/Adyen/Model/LegalEntityManagement/Organization.php | 4 ++-- src/Adyen/Model/LegalEntityManagement/OwnerEntity.php | 4 ++-- .../PLLocalAccountIdentification.php | 4 ++-- .../Model/LegalEntityManagement/PciDocumentInfo.php | 4 ++-- .../Model/LegalEntityManagement/PciSigningRequest.php | 4 ++-- .../Model/LegalEntityManagement/PciSigningResponse.php | 4 ++-- src/Adyen/Model/LegalEntityManagement/PhoneNumber.php | 4 ++-- .../Model/LegalEntityManagement/RemediatingAction.php | 4 ++-- .../SELocalAccountIdentification.php | 4 ++-- .../SGLocalAccountIdentification.php | 4 ++-- src/Adyen/Model/LegalEntityManagement/ServiceError.php | 4 ++-- .../SetTaxElectronicDeliveryConsentRequest.php | 4 ++-- .../Model/LegalEntityManagement/SoleProprietorship.php | 4 ++-- .../Model/LegalEntityManagement/SourceOfFunds.php | 4 ++-- src/Adyen/Model/LegalEntityManagement/StockData.php | 4 ++-- .../SupportingEntityCapability.php | 4 ++-- .../Model/LegalEntityManagement/TaxInformation.php | 4 ++-- .../TaxReportingClassification.php | 4 ++-- .../TermsOfServiceAcceptanceInfo.php | 4 ++-- .../Model/LegalEntityManagement/TransferInstrument.php | 4 ++-- .../LegalEntityManagement/TransferInstrumentInfo.php | 4 ++-- .../TransferInstrumentReference.php | 4 ++-- src/Adyen/Model/LegalEntityManagement/Trust.php | 4 ++-- .../UKLocalAccountIdentification.php | 4 ++-- .../USLocalAccountIdentification.php | 4 ++-- .../LegalEntityManagement/UndefinedBeneficiary.php | 4 ++-- .../UnincorporatedPartnership.php | 4 ++-- .../LegalEntityManagement/VerificationDeadline.php | 4 ++-- .../Model/LegalEntityManagement/VerificationError.php | 4 ++-- .../VerificationErrorRecursive.php | 4 ++-- .../Model/LegalEntityManagement/VerificationErrors.php | 4 ++-- src/Adyen/Model/LegalEntityManagement/WebData.php | 4 ++-- .../Model/LegalEntityManagement/WebDataExemption.php | 4 ++-- 91 files changed, 193 insertions(+), 189 deletions(-) diff --git a/src/Adyen/Model/LegalEntityManagement/AULocalAccountIdentification.php b/src/Adyen/Model/LegalEntityManagement/AULocalAccountIdentification.php index f2938de4d..727395d29 100644 --- a/src/Adyen/Model/LegalEntityManagement/AULocalAccountIdentification.php +++ b/src/Adyen/Model/LegalEntityManagement/AULocalAccountIdentification.php @@ -15,14 +15,14 @@ namespace Adyen\Model\LegalEntityManagement; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\LegalEntityManagement\ObjectSerializer; /** * AULocalAccountIdentification Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class AULocalAccountIdentification implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/LegalEntityManagement/AcceptTermsOfServiceRequest.php b/src/Adyen/Model/LegalEntityManagement/AcceptTermsOfServiceRequest.php index 1adfdac16..32177911f 100644 --- a/src/Adyen/Model/LegalEntityManagement/AcceptTermsOfServiceRequest.php +++ b/src/Adyen/Model/LegalEntityManagement/AcceptTermsOfServiceRequest.php @@ -15,14 +15,14 @@ namespace Adyen\Model\LegalEntityManagement; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\LegalEntityManagement\ObjectSerializer; /** * AcceptTermsOfServiceRequest Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class AcceptTermsOfServiceRequest implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/LegalEntityManagement/AcceptTermsOfServiceResponse.php b/src/Adyen/Model/LegalEntityManagement/AcceptTermsOfServiceResponse.php index 9051cc946..bddac5042 100644 --- a/src/Adyen/Model/LegalEntityManagement/AcceptTermsOfServiceResponse.php +++ b/src/Adyen/Model/LegalEntityManagement/AcceptTermsOfServiceResponse.php @@ -15,14 +15,14 @@ namespace Adyen\Model\LegalEntityManagement; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\LegalEntityManagement\ObjectSerializer; /** * AcceptTermsOfServiceResponse Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class AcceptTermsOfServiceResponse implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/LegalEntityManagement/AdditionalBankIdentification.php b/src/Adyen/Model/LegalEntityManagement/AdditionalBankIdentification.php index 64d7c7230..8230a9af9 100644 --- a/src/Adyen/Model/LegalEntityManagement/AdditionalBankIdentification.php +++ b/src/Adyen/Model/LegalEntityManagement/AdditionalBankIdentification.php @@ -15,14 +15,14 @@ namespace Adyen\Model\LegalEntityManagement; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\LegalEntityManagement\ObjectSerializer; /** * AdditionalBankIdentification Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class AdditionalBankIdentification implements ModelInterface, ArrayAccess, \JsonSerializable { @@ -218,6 +218,8 @@ public function getModelName() return self::$openAPIModelName; } + public const TYPE_AU_BSB_CODE = 'auBsbCode'; + public const TYPE_CA_ROUTING_NUMBER = 'caRoutingNumber'; public const TYPE_GB_SORT_CODE = 'gbSortCode'; public const TYPE_US_ROUTING_NUMBER = 'usRoutingNumber'; @@ -229,6 +231,8 @@ public function getModelName() public function getTypeAllowableValues() { return [ + self::TYPE_AU_BSB_CODE, + self::TYPE_CA_ROUTING_NUMBER, self::TYPE_GB_SORT_CODE, self::TYPE_US_ROUTING_NUMBER, ]; @@ -340,7 +344,7 @@ public function getType() /** * Sets type * - * @param string|null $type The type of additional bank identification, depending on the country. Possible values: * **gbSortCode**: The 6-digit [UK sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * **usRoutingNumber**: The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or spaces. + * @param string|null $type The type of additional bank identification, depending on the country. Possible values: * **auBsbCode**: The 6-digit [Australian Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or spaces. * **caRoutingNumber**: The 9-digit [Canadian routing number](https://en.wikipedia.org/wiki/Routing_number_(Canada)), in EFT format, without separators or spaces. * **gbSortCode**: The 6-digit [UK sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * **usRoutingNumber**: The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or spaces. * * @return self */ diff --git a/src/Adyen/Model/LegalEntityManagement/Address.php b/src/Adyen/Model/LegalEntityManagement/Address.php index 06a81f544..5a32b7f9f 100644 --- a/src/Adyen/Model/LegalEntityManagement/Address.php +++ b/src/Adyen/Model/LegalEntityManagement/Address.php @@ -15,14 +15,14 @@ namespace Adyen\Model\LegalEntityManagement; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\LegalEntityManagement\ObjectSerializer; /** * Address Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class Address implements ModelInterface, ArrayAccess, \JsonSerializable { @@ -372,7 +372,7 @@ public function getPostalCode() /** * Sets postalCode * - * @param string|null $postalCode Postal code. Required if `stateOrProvince` and/or `city` is provided. + * @param string|null $postalCode The postal code. Required if `stateOrProvince` and/or `city` is provided. When using alphanumeric postal codes, all letters must be uppercase. For example, 1234 AB or SW1A 1AA. * * @return self */ @@ -396,7 +396,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. Required for Australia and New Zealand. If you specify the state or province, you must also send `city`, `postalCode`, and `street`. * * @return self */ diff --git a/src/Adyen/Model/LegalEntityManagement/Amount.php b/src/Adyen/Model/LegalEntityManagement/Amount.php index 325daf80b..0c0a8abca 100644 --- a/src/Adyen/Model/LegalEntityManagement/Amount.php +++ b/src/Adyen/Model/LegalEntityManagement/Amount.php @@ -15,14 +15,14 @@ namespace Adyen\Model\LegalEntityManagement; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\LegalEntityManagement\ObjectSerializer; /** * Amount Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class Amount implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/LegalEntityManagement/Attachment.php b/src/Adyen/Model/LegalEntityManagement/Attachment.php index 535eedeaf..9e8e306ad 100644 --- a/src/Adyen/Model/LegalEntityManagement/Attachment.php +++ b/src/Adyen/Model/LegalEntityManagement/Attachment.php @@ -15,14 +15,14 @@ namespace Adyen\Model\LegalEntityManagement; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\LegalEntityManagement\ObjectSerializer; /** * Attachment Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class Attachment implements ModelInterface, ArrayAccess, \JsonSerializable { @@ -417,7 +417,7 @@ public function getPageType() /** * Sets pageType * - * @param string|null $pageType Specifies which side of the ID card is uploaded. * When `type` is **driversLicense** or **identityCard**, set this to **front** or **back**. * When omitted, we infer the page number based on the order of attachments. + * @param string|null $pageType Specifies which side of the ID card is uploaded. * If the `type` is **driversLicense** or **identityCard**, you must set this to **front** or **back**. * For any other types, when this is omitted, we infer the page number based on the order of attachments. * * @return self */ diff --git a/src/Adyen/Model/LegalEntityManagement/BankAccountInfo.php b/src/Adyen/Model/LegalEntityManagement/BankAccountInfo.php index 68bb97d4a..ea0b0f4df 100644 --- a/src/Adyen/Model/LegalEntityManagement/BankAccountInfo.php +++ b/src/Adyen/Model/LegalEntityManagement/BankAccountInfo.php @@ -15,14 +15,14 @@ namespace Adyen\Model\LegalEntityManagement; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\LegalEntityManagement\ObjectSerializer; /** * BankAccountInfo Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class BankAccountInfo implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/LegalEntityManagement/BankAccountInfoAccountIdentification.php b/src/Adyen/Model/LegalEntityManagement/BankAccountInfoAccountIdentification.php index 457d5a32a..ee050a730 100644 --- a/src/Adyen/Model/LegalEntityManagement/BankAccountInfoAccountIdentification.php +++ b/src/Adyen/Model/LegalEntityManagement/BankAccountInfoAccountIdentification.php @@ -15,7 +15,7 @@ namespace Adyen\Model\LegalEntityManagement; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\LegalEntityManagement\ObjectSerializer; /** @@ -24,7 +24,7 @@ * Identification of the bank account. * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class BankAccountInfoAccountIdentification implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/LegalEntityManagement/BirthData.php b/src/Adyen/Model/LegalEntityManagement/BirthData.php index 74ed38fe7..b3606d16f 100644 --- a/src/Adyen/Model/LegalEntityManagement/BirthData.php +++ b/src/Adyen/Model/LegalEntityManagement/BirthData.php @@ -15,14 +15,14 @@ namespace Adyen\Model\LegalEntityManagement; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\LegalEntityManagement\ObjectSerializer; /** * BirthData Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class BirthData implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/LegalEntityManagement/BusinessLine.php b/src/Adyen/Model/LegalEntityManagement/BusinessLine.php index 2fd631880..53818fbfd 100644 --- a/src/Adyen/Model/LegalEntityManagement/BusinessLine.php +++ b/src/Adyen/Model/LegalEntityManagement/BusinessLine.php @@ -15,14 +15,14 @@ namespace Adyen\Model\LegalEntityManagement; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\LegalEntityManagement\ObjectSerializer; /** * BusinessLine Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class BusinessLine implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/LegalEntityManagement/BusinessLineInfo.php b/src/Adyen/Model/LegalEntityManagement/BusinessLineInfo.php index 10c848d41..e8d0ca98a 100644 --- a/src/Adyen/Model/LegalEntityManagement/BusinessLineInfo.php +++ b/src/Adyen/Model/LegalEntityManagement/BusinessLineInfo.php @@ -15,14 +15,14 @@ namespace Adyen\Model\LegalEntityManagement; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\LegalEntityManagement\ObjectSerializer; /** * BusinessLineInfo Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class BusinessLineInfo implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/LegalEntityManagement/BusinessLineInfoUpdate.php b/src/Adyen/Model/LegalEntityManagement/BusinessLineInfoUpdate.php index f65a73ed3..ece362dac 100644 --- a/src/Adyen/Model/LegalEntityManagement/BusinessLineInfoUpdate.php +++ b/src/Adyen/Model/LegalEntityManagement/BusinessLineInfoUpdate.php @@ -15,14 +15,14 @@ namespace Adyen\Model\LegalEntityManagement; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\LegalEntityManagement\ObjectSerializer; /** * BusinessLineInfoUpdate Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class BusinessLineInfoUpdate implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/LegalEntityManagement/BusinessLines.php b/src/Adyen/Model/LegalEntityManagement/BusinessLines.php index 0f351819b..416a45cd0 100644 --- a/src/Adyen/Model/LegalEntityManagement/BusinessLines.php +++ b/src/Adyen/Model/LegalEntityManagement/BusinessLines.php @@ -15,14 +15,14 @@ namespace Adyen\Model\LegalEntityManagement; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\LegalEntityManagement\ObjectSerializer; /** * BusinessLines Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class BusinessLines implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/LegalEntityManagement/CALocalAccountIdentification.php b/src/Adyen/Model/LegalEntityManagement/CALocalAccountIdentification.php index a4df5473e..4a63f593d 100644 --- a/src/Adyen/Model/LegalEntityManagement/CALocalAccountIdentification.php +++ b/src/Adyen/Model/LegalEntityManagement/CALocalAccountIdentification.php @@ -15,14 +15,14 @@ namespace Adyen\Model\LegalEntityManagement; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\LegalEntityManagement\ObjectSerializer; /** * CALocalAccountIdentification Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class CALocalAccountIdentification implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/LegalEntityManagement/CZLocalAccountIdentification.php b/src/Adyen/Model/LegalEntityManagement/CZLocalAccountIdentification.php index 054a82726..bd2b39b5d 100644 --- a/src/Adyen/Model/LegalEntityManagement/CZLocalAccountIdentification.php +++ b/src/Adyen/Model/LegalEntityManagement/CZLocalAccountIdentification.php @@ -15,14 +15,14 @@ namespace Adyen\Model\LegalEntityManagement; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\LegalEntityManagement\ObjectSerializer; /** * CZLocalAccountIdentification Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class CZLocalAccountIdentification implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/LegalEntityManagement/CalculatePciStatusRequest.php b/src/Adyen/Model/LegalEntityManagement/CalculatePciStatusRequest.php index 2789c5b54..cd21e6b14 100644 --- a/src/Adyen/Model/LegalEntityManagement/CalculatePciStatusRequest.php +++ b/src/Adyen/Model/LegalEntityManagement/CalculatePciStatusRequest.php @@ -15,14 +15,14 @@ namespace Adyen\Model\LegalEntityManagement; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\LegalEntityManagement\ObjectSerializer; /** * CalculatePciStatusRequest Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class CalculatePciStatusRequest implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/LegalEntityManagement/CalculatePciStatusResponse.php b/src/Adyen/Model/LegalEntityManagement/CalculatePciStatusResponse.php index 372812915..17ecae6e2 100644 --- a/src/Adyen/Model/LegalEntityManagement/CalculatePciStatusResponse.php +++ b/src/Adyen/Model/LegalEntityManagement/CalculatePciStatusResponse.php @@ -15,14 +15,14 @@ namespace Adyen\Model\LegalEntityManagement; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\LegalEntityManagement\ObjectSerializer; /** * CalculatePciStatusResponse Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class CalculatePciStatusResponse implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/LegalEntityManagement/CalculateTermsOfServiceStatusResponse.php b/src/Adyen/Model/LegalEntityManagement/CalculateTermsOfServiceStatusResponse.php index 6f891efc2..485776e6d 100644 --- a/src/Adyen/Model/LegalEntityManagement/CalculateTermsOfServiceStatusResponse.php +++ b/src/Adyen/Model/LegalEntityManagement/CalculateTermsOfServiceStatusResponse.php @@ -15,14 +15,14 @@ namespace Adyen\Model\LegalEntityManagement; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\LegalEntityManagement\ObjectSerializer; /** * CalculateTermsOfServiceStatusResponse Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class CalculateTermsOfServiceStatusResponse implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/LegalEntityManagement/CapabilityProblem.php b/src/Adyen/Model/LegalEntityManagement/CapabilityProblem.php index 74915f855..a87576372 100644 --- a/src/Adyen/Model/LegalEntityManagement/CapabilityProblem.php +++ b/src/Adyen/Model/LegalEntityManagement/CapabilityProblem.php @@ -15,14 +15,14 @@ namespace Adyen\Model\LegalEntityManagement; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\LegalEntityManagement\ObjectSerializer; /** * CapabilityProblem Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class CapabilityProblem implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/LegalEntityManagement/CapabilityProblemEntity.php b/src/Adyen/Model/LegalEntityManagement/CapabilityProblemEntity.php index 4d0825f77..04caa2de0 100644 --- a/src/Adyen/Model/LegalEntityManagement/CapabilityProblemEntity.php +++ b/src/Adyen/Model/LegalEntityManagement/CapabilityProblemEntity.php @@ -15,14 +15,14 @@ namespace Adyen\Model\LegalEntityManagement; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\LegalEntityManagement\ObjectSerializer; /** * CapabilityProblemEntity Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class CapabilityProblemEntity implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/LegalEntityManagement/CapabilityProblemEntityRecursive.php b/src/Adyen/Model/LegalEntityManagement/CapabilityProblemEntityRecursive.php index 83baae545..97b08949e 100644 --- a/src/Adyen/Model/LegalEntityManagement/CapabilityProblemEntityRecursive.php +++ b/src/Adyen/Model/LegalEntityManagement/CapabilityProblemEntityRecursive.php @@ -15,14 +15,14 @@ namespace Adyen\Model\LegalEntityManagement; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\LegalEntityManagement\ObjectSerializer; /** * CapabilityProblemEntityRecursive Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class CapabilityProblemEntityRecursive implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/LegalEntityManagement/CapabilitySettings.php b/src/Adyen/Model/LegalEntityManagement/CapabilitySettings.php index 44f389e17..f4942d3e8 100644 --- a/src/Adyen/Model/LegalEntityManagement/CapabilitySettings.php +++ b/src/Adyen/Model/LegalEntityManagement/CapabilitySettings.php @@ -15,14 +15,14 @@ namespace Adyen\Model\LegalEntityManagement; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\LegalEntityManagement\ObjectSerializer; /** * CapabilitySettings Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class CapabilitySettings implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/LegalEntityManagement/CheckTaxElectronicDeliveryConsentResponse.php b/src/Adyen/Model/LegalEntityManagement/CheckTaxElectronicDeliveryConsentResponse.php index 4f9acc575..491671a87 100644 --- a/src/Adyen/Model/LegalEntityManagement/CheckTaxElectronicDeliveryConsentResponse.php +++ b/src/Adyen/Model/LegalEntityManagement/CheckTaxElectronicDeliveryConsentResponse.php @@ -15,14 +15,14 @@ namespace Adyen\Model\LegalEntityManagement; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\LegalEntityManagement\ObjectSerializer; /** * CheckTaxElectronicDeliveryConsentResponse Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class CheckTaxElectronicDeliveryConsentResponse implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/LegalEntityManagement/DKLocalAccountIdentification.php b/src/Adyen/Model/LegalEntityManagement/DKLocalAccountIdentification.php index a52da8e8f..4f503edcd 100644 --- a/src/Adyen/Model/LegalEntityManagement/DKLocalAccountIdentification.php +++ b/src/Adyen/Model/LegalEntityManagement/DKLocalAccountIdentification.php @@ -15,14 +15,14 @@ namespace Adyen\Model\LegalEntityManagement; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\LegalEntityManagement\ObjectSerializer; /** * DKLocalAccountIdentification Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class DKLocalAccountIdentification implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/LegalEntityManagement/DataReviewConfirmationResponse.php b/src/Adyen/Model/LegalEntityManagement/DataReviewConfirmationResponse.php index d6496bea0..1ab2e78a4 100644 --- a/src/Adyen/Model/LegalEntityManagement/DataReviewConfirmationResponse.php +++ b/src/Adyen/Model/LegalEntityManagement/DataReviewConfirmationResponse.php @@ -15,14 +15,14 @@ namespace Adyen\Model\LegalEntityManagement; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\LegalEntityManagement\ObjectSerializer; /** * DataReviewConfirmationResponse Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class DataReviewConfirmationResponse implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/LegalEntityManagement/Document.php b/src/Adyen/Model/LegalEntityManagement/Document.php index 3ab7915e4..43757468d 100644 --- a/src/Adyen/Model/LegalEntityManagement/Document.php +++ b/src/Adyen/Model/LegalEntityManagement/Document.php @@ -15,14 +15,14 @@ namespace Adyen\Model\LegalEntityManagement; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\LegalEntityManagement\ObjectSerializer; /** * Document Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class Document implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/LegalEntityManagement/DocumentPage.php b/src/Adyen/Model/LegalEntityManagement/DocumentPage.php index 46c6b233d..0679b0a4e 100644 --- a/src/Adyen/Model/LegalEntityManagement/DocumentPage.php +++ b/src/Adyen/Model/LegalEntityManagement/DocumentPage.php @@ -15,14 +15,14 @@ namespace Adyen\Model\LegalEntityManagement; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\LegalEntityManagement\ObjectSerializer; /** * DocumentPage Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class DocumentPage implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/LegalEntityManagement/DocumentReference.php b/src/Adyen/Model/LegalEntityManagement/DocumentReference.php index 489285828..d0c480dde 100644 --- a/src/Adyen/Model/LegalEntityManagement/DocumentReference.php +++ b/src/Adyen/Model/LegalEntityManagement/DocumentReference.php @@ -15,14 +15,14 @@ namespace Adyen\Model\LegalEntityManagement; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\LegalEntityManagement\ObjectSerializer; /** * DocumentReference Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class DocumentReference implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/LegalEntityManagement/EntityReference.php b/src/Adyen/Model/LegalEntityManagement/EntityReference.php index 2e018a7c1..c38458ca6 100644 --- a/src/Adyen/Model/LegalEntityManagement/EntityReference.php +++ b/src/Adyen/Model/LegalEntityManagement/EntityReference.php @@ -15,14 +15,14 @@ namespace Adyen\Model\LegalEntityManagement; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\LegalEntityManagement\ObjectSerializer; /** * EntityReference Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class EntityReference implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/LegalEntityManagement/FinancialReport.php b/src/Adyen/Model/LegalEntityManagement/FinancialReport.php index 25a83971d..9aee5497b 100644 --- a/src/Adyen/Model/LegalEntityManagement/FinancialReport.php +++ b/src/Adyen/Model/LegalEntityManagement/FinancialReport.php @@ -15,14 +15,14 @@ namespace Adyen\Model\LegalEntityManagement; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\LegalEntityManagement\ObjectSerializer; /** * FinancialReport Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class FinancialReport implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/LegalEntityManagement/GeneratePciDescriptionRequest.php b/src/Adyen/Model/LegalEntityManagement/GeneratePciDescriptionRequest.php index 8290c1cdb..049d5f457 100644 --- a/src/Adyen/Model/LegalEntityManagement/GeneratePciDescriptionRequest.php +++ b/src/Adyen/Model/LegalEntityManagement/GeneratePciDescriptionRequest.php @@ -15,14 +15,14 @@ namespace Adyen\Model\LegalEntityManagement; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\LegalEntityManagement\ObjectSerializer; /** * GeneratePciDescriptionRequest Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class GeneratePciDescriptionRequest implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/LegalEntityManagement/GeneratePciDescriptionResponse.php b/src/Adyen/Model/LegalEntityManagement/GeneratePciDescriptionResponse.php index 4b9593fdd..72b987a93 100644 --- a/src/Adyen/Model/LegalEntityManagement/GeneratePciDescriptionResponse.php +++ b/src/Adyen/Model/LegalEntityManagement/GeneratePciDescriptionResponse.php @@ -15,14 +15,14 @@ namespace Adyen\Model\LegalEntityManagement; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\LegalEntityManagement\ObjectSerializer; /** * GeneratePciDescriptionResponse Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class GeneratePciDescriptionResponse implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/LegalEntityManagement/GetAcceptedTermsOfServiceDocumentResponse.php b/src/Adyen/Model/LegalEntityManagement/GetAcceptedTermsOfServiceDocumentResponse.php index 737bb4961..5ad9017d5 100644 --- a/src/Adyen/Model/LegalEntityManagement/GetAcceptedTermsOfServiceDocumentResponse.php +++ b/src/Adyen/Model/LegalEntityManagement/GetAcceptedTermsOfServiceDocumentResponse.php @@ -15,14 +15,14 @@ namespace Adyen\Model\LegalEntityManagement; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\LegalEntityManagement\ObjectSerializer; /** * GetAcceptedTermsOfServiceDocumentResponse Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class GetAcceptedTermsOfServiceDocumentResponse implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/LegalEntityManagement/GetPciQuestionnaireInfosResponse.php b/src/Adyen/Model/LegalEntityManagement/GetPciQuestionnaireInfosResponse.php index faa2c3003..82c55b911 100644 --- a/src/Adyen/Model/LegalEntityManagement/GetPciQuestionnaireInfosResponse.php +++ b/src/Adyen/Model/LegalEntityManagement/GetPciQuestionnaireInfosResponse.php @@ -15,14 +15,14 @@ namespace Adyen\Model\LegalEntityManagement; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\LegalEntityManagement\ObjectSerializer; /** * GetPciQuestionnaireInfosResponse Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class GetPciQuestionnaireInfosResponse implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/LegalEntityManagement/GetPciQuestionnaireResponse.php b/src/Adyen/Model/LegalEntityManagement/GetPciQuestionnaireResponse.php index 06c01adca..ecab3e420 100644 --- a/src/Adyen/Model/LegalEntityManagement/GetPciQuestionnaireResponse.php +++ b/src/Adyen/Model/LegalEntityManagement/GetPciQuestionnaireResponse.php @@ -15,14 +15,14 @@ namespace Adyen\Model\LegalEntityManagement; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\LegalEntityManagement\ObjectSerializer; /** * GetPciQuestionnaireResponse Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class GetPciQuestionnaireResponse implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/LegalEntityManagement/GetTermsOfServiceAcceptanceInfosResponse.php b/src/Adyen/Model/LegalEntityManagement/GetTermsOfServiceAcceptanceInfosResponse.php index 4612baaf3..33640a29d 100644 --- a/src/Adyen/Model/LegalEntityManagement/GetTermsOfServiceAcceptanceInfosResponse.php +++ b/src/Adyen/Model/LegalEntityManagement/GetTermsOfServiceAcceptanceInfosResponse.php @@ -15,14 +15,14 @@ namespace Adyen\Model\LegalEntityManagement; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\LegalEntityManagement\ObjectSerializer; /** * GetTermsOfServiceAcceptanceInfosResponse Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class GetTermsOfServiceAcceptanceInfosResponse implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/LegalEntityManagement/GetTermsOfServiceDocumentRequest.php b/src/Adyen/Model/LegalEntityManagement/GetTermsOfServiceDocumentRequest.php index df7307196..2b567503c 100644 --- a/src/Adyen/Model/LegalEntityManagement/GetTermsOfServiceDocumentRequest.php +++ b/src/Adyen/Model/LegalEntityManagement/GetTermsOfServiceDocumentRequest.php @@ -15,14 +15,14 @@ namespace Adyen\Model\LegalEntityManagement; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\LegalEntityManagement\ObjectSerializer; /** * GetTermsOfServiceDocumentRequest Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class GetTermsOfServiceDocumentRequest implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/LegalEntityManagement/GetTermsOfServiceDocumentResponse.php b/src/Adyen/Model/LegalEntityManagement/GetTermsOfServiceDocumentResponse.php index 0f8c971ea..3a31b214b 100644 --- a/src/Adyen/Model/LegalEntityManagement/GetTermsOfServiceDocumentResponse.php +++ b/src/Adyen/Model/LegalEntityManagement/GetTermsOfServiceDocumentResponse.php @@ -15,14 +15,14 @@ namespace Adyen\Model\LegalEntityManagement; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\LegalEntityManagement\ObjectSerializer; /** * GetTermsOfServiceDocumentResponse Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class GetTermsOfServiceDocumentResponse implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/LegalEntityManagement/HKLocalAccountIdentification.php b/src/Adyen/Model/LegalEntityManagement/HKLocalAccountIdentification.php index 8c8e6560a..946492758 100644 --- a/src/Adyen/Model/LegalEntityManagement/HKLocalAccountIdentification.php +++ b/src/Adyen/Model/LegalEntityManagement/HKLocalAccountIdentification.php @@ -15,14 +15,14 @@ namespace Adyen\Model\LegalEntityManagement; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\LegalEntityManagement\ObjectSerializer; /** * HKLocalAccountIdentification Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class HKLocalAccountIdentification implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/LegalEntityManagement/HULocalAccountIdentification.php b/src/Adyen/Model/LegalEntityManagement/HULocalAccountIdentification.php index 8cb93f105..8a543c40c 100644 --- a/src/Adyen/Model/LegalEntityManagement/HULocalAccountIdentification.php +++ b/src/Adyen/Model/LegalEntityManagement/HULocalAccountIdentification.php @@ -15,14 +15,14 @@ namespace Adyen\Model\LegalEntityManagement; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\LegalEntityManagement\ObjectSerializer; /** * HULocalAccountIdentification Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class HULocalAccountIdentification implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/LegalEntityManagement/IbanAccountIdentification.php b/src/Adyen/Model/LegalEntityManagement/IbanAccountIdentification.php index 5995117b5..409cf9cb2 100644 --- a/src/Adyen/Model/LegalEntityManagement/IbanAccountIdentification.php +++ b/src/Adyen/Model/LegalEntityManagement/IbanAccountIdentification.php @@ -15,14 +15,14 @@ namespace Adyen\Model\LegalEntityManagement; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\LegalEntityManagement\ObjectSerializer; /** * IbanAccountIdentification Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class IbanAccountIdentification implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/LegalEntityManagement/IdentificationData.php b/src/Adyen/Model/LegalEntityManagement/IdentificationData.php index 73dad24d1..3fbc1d145 100644 --- a/src/Adyen/Model/LegalEntityManagement/IdentificationData.php +++ b/src/Adyen/Model/LegalEntityManagement/IdentificationData.php @@ -15,14 +15,14 @@ namespace Adyen\Model\LegalEntityManagement; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\LegalEntityManagement\ObjectSerializer; /** * IdentificationData Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class IdentificationData implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/LegalEntityManagement/Individual.php b/src/Adyen/Model/LegalEntityManagement/Individual.php index 799ca5ee7..d8d69a7e3 100644 --- a/src/Adyen/Model/LegalEntityManagement/Individual.php +++ b/src/Adyen/Model/LegalEntityManagement/Individual.php @@ -15,14 +15,14 @@ namespace Adyen\Model\LegalEntityManagement; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\LegalEntityManagement\ObjectSerializer; /** * Individual Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class Individual implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/LegalEntityManagement/LegalEntity.php b/src/Adyen/Model/LegalEntityManagement/LegalEntity.php index 2d032c779..3a69e45c5 100644 --- a/src/Adyen/Model/LegalEntityManagement/LegalEntity.php +++ b/src/Adyen/Model/LegalEntityManagement/LegalEntity.php @@ -15,14 +15,14 @@ namespace Adyen\Model\LegalEntityManagement; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\LegalEntityManagement\ObjectSerializer; /** * LegalEntity Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class LegalEntity implements ModelInterface, ArrayAccess, \JsonSerializable { @@ -423,7 +423,7 @@ public function getCapabilities() /** * Sets capabilities * - * @param array|null $capabilities Contains key-value pairs that specify the actions that the legal entity can do in your platform.The key is a capability required for your integration. For example, **issueCard** for Issuing.The value is an object containing the settings for the capability. + * @param array|null $capabilities Contains key-value pairs that specify the actions that the legal entity can do in your platform.The key is a capability required for your integration. For example, **issueCard** for Issuing. The value is an object containing the settings for the capability. * * @return self */ diff --git a/src/Adyen/Model/LegalEntityManagement/LegalEntityAssociation.php b/src/Adyen/Model/LegalEntityManagement/LegalEntityAssociation.php index 5a9e9ab04..5b8f97cc1 100644 --- a/src/Adyen/Model/LegalEntityManagement/LegalEntityAssociation.php +++ b/src/Adyen/Model/LegalEntityManagement/LegalEntityAssociation.php @@ -15,14 +15,14 @@ namespace Adyen\Model\LegalEntityManagement; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\LegalEntityManagement\ObjectSerializer; /** * LegalEntityAssociation Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class LegalEntityAssociation implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/LegalEntityManagement/LegalEntityCapability.php b/src/Adyen/Model/LegalEntityManagement/LegalEntityCapability.php index 79f84addf..8425869d0 100644 --- a/src/Adyen/Model/LegalEntityManagement/LegalEntityCapability.php +++ b/src/Adyen/Model/LegalEntityManagement/LegalEntityCapability.php @@ -15,14 +15,14 @@ namespace Adyen\Model\LegalEntityManagement; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\LegalEntityManagement\ObjectSerializer; /** * LegalEntityCapability Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class LegalEntityCapability implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/LegalEntityManagement/LegalEntityInfo.php b/src/Adyen/Model/LegalEntityManagement/LegalEntityInfo.php index 06379af75..deaff2751 100644 --- a/src/Adyen/Model/LegalEntityManagement/LegalEntityInfo.php +++ b/src/Adyen/Model/LegalEntityManagement/LegalEntityInfo.php @@ -15,14 +15,14 @@ namespace Adyen\Model\LegalEntityManagement; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\LegalEntityManagement\ObjectSerializer; /** * LegalEntityInfo Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class LegalEntityInfo implements ModelInterface, ArrayAccess, \JsonSerializable { @@ -378,7 +378,7 @@ public function getCapabilities() /** * Sets capabilities * - * @param array|null $capabilities Contains key-value pairs that specify the actions that the legal entity can do in your platform.The key is a capability required for your integration. For example, **issueCard** for Issuing.The value is an object containing the settings for the capability. + * @param array|null $capabilities Contains key-value pairs that specify the actions that the legal entity can do in your platform.The key is a capability required for your integration. For example, **issueCard** for Issuing. The value is an object containing the settings for the capability. * * @return self */ diff --git a/src/Adyen/Model/LegalEntityManagement/LegalEntityInfoRequiredType.php b/src/Adyen/Model/LegalEntityManagement/LegalEntityInfoRequiredType.php index 5de731438..b9cce5d84 100644 --- a/src/Adyen/Model/LegalEntityManagement/LegalEntityInfoRequiredType.php +++ b/src/Adyen/Model/LegalEntityManagement/LegalEntityInfoRequiredType.php @@ -15,14 +15,14 @@ namespace Adyen\Model\LegalEntityManagement; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\LegalEntityManagement\ObjectSerializer; /** * LegalEntityInfoRequiredType Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class LegalEntityInfoRequiredType implements ModelInterface, ArrayAccess, \JsonSerializable { @@ -381,7 +381,7 @@ public function getCapabilities() /** * Sets capabilities * - * @param array|null $capabilities Contains key-value pairs that specify the actions that the legal entity can do in your platform.The key is a capability required for your integration. For example, **issueCard** for Issuing.The value is an object containing the settings for the capability. + * @param array|null $capabilities Contains key-value pairs that specify the actions that the legal entity can do in your platform.The key is a capability required for your integration. For example, **issueCard** for Issuing. The value is an object containing the settings for the capability. * * @return self */ diff --git a/src/Adyen/Model/LegalEntityManagement/NOLocalAccountIdentification.php b/src/Adyen/Model/LegalEntityManagement/NOLocalAccountIdentification.php index 0dece8135..bd2ed8b73 100644 --- a/src/Adyen/Model/LegalEntityManagement/NOLocalAccountIdentification.php +++ b/src/Adyen/Model/LegalEntityManagement/NOLocalAccountIdentification.php @@ -15,14 +15,14 @@ namespace Adyen\Model\LegalEntityManagement; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\LegalEntityManagement\ObjectSerializer; /** * NOLocalAccountIdentification Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class NOLocalAccountIdentification implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/LegalEntityManagement/NZLocalAccountIdentification.php b/src/Adyen/Model/LegalEntityManagement/NZLocalAccountIdentification.php index 22206df0b..e982ae96a 100644 --- a/src/Adyen/Model/LegalEntityManagement/NZLocalAccountIdentification.php +++ b/src/Adyen/Model/LegalEntityManagement/NZLocalAccountIdentification.php @@ -15,14 +15,14 @@ namespace Adyen\Model\LegalEntityManagement; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\LegalEntityManagement\ObjectSerializer; /** * NZLocalAccountIdentification Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class NZLocalAccountIdentification implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/LegalEntityManagement/Name.php b/src/Adyen/Model/LegalEntityManagement/Name.php index d462798b3..1457d5159 100644 --- a/src/Adyen/Model/LegalEntityManagement/Name.php +++ b/src/Adyen/Model/LegalEntityManagement/Name.php @@ -15,14 +15,14 @@ namespace Adyen\Model\LegalEntityManagement; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\LegalEntityManagement\ObjectSerializer; /** * Name Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class Name implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/LegalEntityManagement/NumberAndBicAccountIdentification.php b/src/Adyen/Model/LegalEntityManagement/NumberAndBicAccountIdentification.php index 862e847b3..f0aa2b213 100644 --- a/src/Adyen/Model/LegalEntityManagement/NumberAndBicAccountIdentification.php +++ b/src/Adyen/Model/LegalEntityManagement/NumberAndBicAccountIdentification.php @@ -15,14 +15,14 @@ namespace Adyen\Model\LegalEntityManagement; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\LegalEntityManagement\ObjectSerializer; /** * NumberAndBicAccountIdentification Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class NumberAndBicAccountIdentification implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/LegalEntityManagement/OnboardingLink.php b/src/Adyen/Model/LegalEntityManagement/OnboardingLink.php index a51187e5c..e2735a72e 100644 --- a/src/Adyen/Model/LegalEntityManagement/OnboardingLink.php +++ b/src/Adyen/Model/LegalEntityManagement/OnboardingLink.php @@ -15,14 +15,14 @@ namespace Adyen\Model\LegalEntityManagement; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\LegalEntityManagement\ObjectSerializer; /** * OnboardingLink Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class OnboardingLink implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/LegalEntityManagement/OnboardingLinkInfo.php b/src/Adyen/Model/LegalEntityManagement/OnboardingLinkInfo.php index 17fb7fb42..2f3e3a9f8 100644 --- a/src/Adyen/Model/LegalEntityManagement/OnboardingLinkInfo.php +++ b/src/Adyen/Model/LegalEntityManagement/OnboardingLinkInfo.php @@ -15,14 +15,14 @@ namespace Adyen\Model\LegalEntityManagement; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\LegalEntityManagement\ObjectSerializer; /** * OnboardingLinkInfo Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class OnboardingLinkInfo implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/LegalEntityManagement/OnboardingLinkSettings.php b/src/Adyen/Model/LegalEntityManagement/OnboardingLinkSettings.php index c8bd08914..42853c2ed 100644 --- a/src/Adyen/Model/LegalEntityManagement/OnboardingLinkSettings.php +++ b/src/Adyen/Model/LegalEntityManagement/OnboardingLinkSettings.php @@ -15,14 +15,14 @@ namespace Adyen\Model\LegalEntityManagement; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\LegalEntityManagement\ObjectSerializer; /** * OnboardingLinkSettings Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class OnboardingLinkSettings implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/LegalEntityManagement/OnboardingTheme.php b/src/Adyen/Model/LegalEntityManagement/OnboardingTheme.php index fe6b5a40b..62f41e38d 100644 --- a/src/Adyen/Model/LegalEntityManagement/OnboardingTheme.php +++ b/src/Adyen/Model/LegalEntityManagement/OnboardingTheme.php @@ -15,14 +15,14 @@ namespace Adyen\Model\LegalEntityManagement; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\LegalEntityManagement\ObjectSerializer; /** * OnboardingTheme Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class OnboardingTheme implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/LegalEntityManagement/OnboardingThemes.php b/src/Adyen/Model/LegalEntityManagement/OnboardingThemes.php index cc746a195..b73433d48 100644 --- a/src/Adyen/Model/LegalEntityManagement/OnboardingThemes.php +++ b/src/Adyen/Model/LegalEntityManagement/OnboardingThemes.php @@ -15,14 +15,14 @@ namespace Adyen\Model\LegalEntityManagement; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\LegalEntityManagement\ObjectSerializer; /** * OnboardingThemes Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class OnboardingThemes implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/LegalEntityManagement/Organization.php b/src/Adyen/Model/LegalEntityManagement/Organization.php index c7d9d4a99..69be3df63 100644 --- a/src/Adyen/Model/LegalEntityManagement/Organization.php +++ b/src/Adyen/Model/LegalEntityManagement/Organization.php @@ -15,14 +15,14 @@ namespace Adyen\Model\LegalEntityManagement; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\LegalEntityManagement\ObjectSerializer; /** * Organization Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class Organization implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/LegalEntityManagement/OwnerEntity.php b/src/Adyen/Model/LegalEntityManagement/OwnerEntity.php index 85e8e43fe..529c5746b 100644 --- a/src/Adyen/Model/LegalEntityManagement/OwnerEntity.php +++ b/src/Adyen/Model/LegalEntityManagement/OwnerEntity.php @@ -15,14 +15,14 @@ namespace Adyen\Model\LegalEntityManagement; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\LegalEntityManagement\ObjectSerializer; /** * OwnerEntity Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class OwnerEntity implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/LegalEntityManagement/PLLocalAccountIdentification.php b/src/Adyen/Model/LegalEntityManagement/PLLocalAccountIdentification.php index 8a66929d5..b90f7312e 100644 --- a/src/Adyen/Model/LegalEntityManagement/PLLocalAccountIdentification.php +++ b/src/Adyen/Model/LegalEntityManagement/PLLocalAccountIdentification.php @@ -15,14 +15,14 @@ namespace Adyen\Model\LegalEntityManagement; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\LegalEntityManagement\ObjectSerializer; /** * PLLocalAccountIdentification Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class PLLocalAccountIdentification implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/LegalEntityManagement/PciDocumentInfo.php b/src/Adyen/Model/LegalEntityManagement/PciDocumentInfo.php index 0ccbba546..39497ca9b 100644 --- a/src/Adyen/Model/LegalEntityManagement/PciDocumentInfo.php +++ b/src/Adyen/Model/LegalEntityManagement/PciDocumentInfo.php @@ -15,14 +15,14 @@ namespace Adyen\Model\LegalEntityManagement; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\LegalEntityManagement\ObjectSerializer; /** * PciDocumentInfo Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class PciDocumentInfo implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/LegalEntityManagement/PciSigningRequest.php b/src/Adyen/Model/LegalEntityManagement/PciSigningRequest.php index 2159b40ac..d1b763970 100644 --- a/src/Adyen/Model/LegalEntityManagement/PciSigningRequest.php +++ b/src/Adyen/Model/LegalEntityManagement/PciSigningRequest.php @@ -15,14 +15,14 @@ namespace Adyen\Model\LegalEntityManagement; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\LegalEntityManagement\ObjectSerializer; /** * PciSigningRequest Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class PciSigningRequest implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/LegalEntityManagement/PciSigningResponse.php b/src/Adyen/Model/LegalEntityManagement/PciSigningResponse.php index d652ac907..31bc0402b 100644 --- a/src/Adyen/Model/LegalEntityManagement/PciSigningResponse.php +++ b/src/Adyen/Model/LegalEntityManagement/PciSigningResponse.php @@ -15,14 +15,14 @@ namespace Adyen\Model\LegalEntityManagement; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\LegalEntityManagement\ObjectSerializer; /** * PciSigningResponse Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class PciSigningResponse implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/LegalEntityManagement/PhoneNumber.php b/src/Adyen/Model/LegalEntityManagement/PhoneNumber.php index daa5a1fbf..01c008d4b 100644 --- a/src/Adyen/Model/LegalEntityManagement/PhoneNumber.php +++ b/src/Adyen/Model/LegalEntityManagement/PhoneNumber.php @@ -15,14 +15,14 @@ namespace Adyen\Model\LegalEntityManagement; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\LegalEntityManagement\ObjectSerializer; /** * PhoneNumber Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class PhoneNumber implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/LegalEntityManagement/RemediatingAction.php b/src/Adyen/Model/LegalEntityManagement/RemediatingAction.php index d81d24a41..987368135 100644 --- a/src/Adyen/Model/LegalEntityManagement/RemediatingAction.php +++ b/src/Adyen/Model/LegalEntityManagement/RemediatingAction.php @@ -15,14 +15,14 @@ namespace Adyen\Model\LegalEntityManagement; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\LegalEntityManagement\ObjectSerializer; /** * RemediatingAction Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class RemediatingAction implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/LegalEntityManagement/SELocalAccountIdentification.php b/src/Adyen/Model/LegalEntityManagement/SELocalAccountIdentification.php index b51dfce1e..accd6b363 100644 --- a/src/Adyen/Model/LegalEntityManagement/SELocalAccountIdentification.php +++ b/src/Adyen/Model/LegalEntityManagement/SELocalAccountIdentification.php @@ -15,14 +15,14 @@ namespace Adyen\Model\LegalEntityManagement; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\LegalEntityManagement\ObjectSerializer; /** * SELocalAccountIdentification Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class SELocalAccountIdentification implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/LegalEntityManagement/SGLocalAccountIdentification.php b/src/Adyen/Model/LegalEntityManagement/SGLocalAccountIdentification.php index 0b645303e..15bdb5757 100644 --- a/src/Adyen/Model/LegalEntityManagement/SGLocalAccountIdentification.php +++ b/src/Adyen/Model/LegalEntityManagement/SGLocalAccountIdentification.php @@ -15,14 +15,14 @@ namespace Adyen\Model\LegalEntityManagement; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\LegalEntityManagement\ObjectSerializer; /** * SGLocalAccountIdentification Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class SGLocalAccountIdentification implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/LegalEntityManagement/ServiceError.php b/src/Adyen/Model/LegalEntityManagement/ServiceError.php index 4e0de21af..4887626bf 100644 --- a/src/Adyen/Model/LegalEntityManagement/ServiceError.php +++ b/src/Adyen/Model/LegalEntityManagement/ServiceError.php @@ -15,14 +15,14 @@ namespace Adyen\Model\LegalEntityManagement; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\LegalEntityManagement\ObjectSerializer; /** * ServiceError Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class ServiceError implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/LegalEntityManagement/SetTaxElectronicDeliveryConsentRequest.php b/src/Adyen/Model/LegalEntityManagement/SetTaxElectronicDeliveryConsentRequest.php index 6628cd3bd..8b9ee6469 100644 --- a/src/Adyen/Model/LegalEntityManagement/SetTaxElectronicDeliveryConsentRequest.php +++ b/src/Adyen/Model/LegalEntityManagement/SetTaxElectronicDeliveryConsentRequest.php @@ -15,14 +15,14 @@ namespace Adyen\Model\LegalEntityManagement; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\LegalEntityManagement\ObjectSerializer; /** * SetTaxElectronicDeliveryConsentRequest Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class SetTaxElectronicDeliveryConsentRequest implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/LegalEntityManagement/SoleProprietorship.php b/src/Adyen/Model/LegalEntityManagement/SoleProprietorship.php index afd30538d..3a2a52482 100644 --- a/src/Adyen/Model/LegalEntityManagement/SoleProprietorship.php +++ b/src/Adyen/Model/LegalEntityManagement/SoleProprietorship.php @@ -15,14 +15,14 @@ namespace Adyen\Model\LegalEntityManagement; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\LegalEntityManagement\ObjectSerializer; /** * SoleProprietorship Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class SoleProprietorship implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/LegalEntityManagement/SourceOfFunds.php b/src/Adyen/Model/LegalEntityManagement/SourceOfFunds.php index ac0896433..cf764b6c0 100644 --- a/src/Adyen/Model/LegalEntityManagement/SourceOfFunds.php +++ b/src/Adyen/Model/LegalEntityManagement/SourceOfFunds.php @@ -15,14 +15,14 @@ namespace Adyen\Model\LegalEntityManagement; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\LegalEntityManagement\ObjectSerializer; /** * SourceOfFunds Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class SourceOfFunds implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/LegalEntityManagement/StockData.php b/src/Adyen/Model/LegalEntityManagement/StockData.php index b42ffdf07..77c49ed88 100644 --- a/src/Adyen/Model/LegalEntityManagement/StockData.php +++ b/src/Adyen/Model/LegalEntityManagement/StockData.php @@ -15,14 +15,14 @@ namespace Adyen\Model\LegalEntityManagement; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\LegalEntityManagement\ObjectSerializer; /** * StockData Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class StockData implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/LegalEntityManagement/SupportingEntityCapability.php b/src/Adyen/Model/LegalEntityManagement/SupportingEntityCapability.php index 75bebdefe..117bb0a7b 100644 --- a/src/Adyen/Model/LegalEntityManagement/SupportingEntityCapability.php +++ b/src/Adyen/Model/LegalEntityManagement/SupportingEntityCapability.php @@ -15,14 +15,14 @@ namespace Adyen\Model\LegalEntityManagement; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\LegalEntityManagement\ObjectSerializer; /** * SupportingEntityCapability Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class SupportingEntityCapability implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/LegalEntityManagement/TaxInformation.php b/src/Adyen/Model/LegalEntityManagement/TaxInformation.php index c44fbf349..72e537622 100644 --- a/src/Adyen/Model/LegalEntityManagement/TaxInformation.php +++ b/src/Adyen/Model/LegalEntityManagement/TaxInformation.php @@ -15,14 +15,14 @@ namespace Adyen\Model\LegalEntityManagement; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\LegalEntityManagement\ObjectSerializer; /** * TaxInformation Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class TaxInformation implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/LegalEntityManagement/TaxReportingClassification.php b/src/Adyen/Model/LegalEntityManagement/TaxReportingClassification.php index af594988d..16dad21a1 100644 --- a/src/Adyen/Model/LegalEntityManagement/TaxReportingClassification.php +++ b/src/Adyen/Model/LegalEntityManagement/TaxReportingClassification.php @@ -15,14 +15,14 @@ namespace Adyen\Model\LegalEntityManagement; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\LegalEntityManagement\ObjectSerializer; /** * TaxReportingClassification Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class TaxReportingClassification implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/LegalEntityManagement/TermsOfServiceAcceptanceInfo.php b/src/Adyen/Model/LegalEntityManagement/TermsOfServiceAcceptanceInfo.php index 2409ef186..e053f13c8 100644 --- a/src/Adyen/Model/LegalEntityManagement/TermsOfServiceAcceptanceInfo.php +++ b/src/Adyen/Model/LegalEntityManagement/TermsOfServiceAcceptanceInfo.php @@ -15,14 +15,14 @@ namespace Adyen\Model\LegalEntityManagement; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\LegalEntityManagement\ObjectSerializer; /** * TermsOfServiceAcceptanceInfo Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class TermsOfServiceAcceptanceInfo implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/LegalEntityManagement/TransferInstrument.php b/src/Adyen/Model/LegalEntityManagement/TransferInstrument.php index f470129c5..40713caa3 100644 --- a/src/Adyen/Model/LegalEntityManagement/TransferInstrument.php +++ b/src/Adyen/Model/LegalEntityManagement/TransferInstrument.php @@ -15,14 +15,14 @@ namespace Adyen\Model\LegalEntityManagement; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\LegalEntityManagement\ObjectSerializer; /** * TransferInstrument Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class TransferInstrument implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/LegalEntityManagement/TransferInstrumentInfo.php b/src/Adyen/Model/LegalEntityManagement/TransferInstrumentInfo.php index fac529c1d..5aa514067 100644 --- a/src/Adyen/Model/LegalEntityManagement/TransferInstrumentInfo.php +++ b/src/Adyen/Model/LegalEntityManagement/TransferInstrumentInfo.php @@ -15,14 +15,14 @@ namespace Adyen\Model\LegalEntityManagement; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\LegalEntityManagement\ObjectSerializer; /** * TransferInstrumentInfo Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class TransferInstrumentInfo implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/LegalEntityManagement/TransferInstrumentReference.php b/src/Adyen/Model/LegalEntityManagement/TransferInstrumentReference.php index bd0e9dc2a..30be94656 100644 --- a/src/Adyen/Model/LegalEntityManagement/TransferInstrumentReference.php +++ b/src/Adyen/Model/LegalEntityManagement/TransferInstrumentReference.php @@ -15,14 +15,14 @@ namespace Adyen\Model\LegalEntityManagement; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\LegalEntityManagement\ObjectSerializer; /** * TransferInstrumentReference Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class TransferInstrumentReference implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/LegalEntityManagement/Trust.php b/src/Adyen/Model/LegalEntityManagement/Trust.php index 0edcc4fe4..2e2e2a9db 100644 --- a/src/Adyen/Model/LegalEntityManagement/Trust.php +++ b/src/Adyen/Model/LegalEntityManagement/Trust.php @@ -15,14 +15,14 @@ namespace Adyen\Model\LegalEntityManagement; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\LegalEntityManagement\ObjectSerializer; /** * Trust Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class Trust implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/LegalEntityManagement/UKLocalAccountIdentification.php b/src/Adyen/Model/LegalEntityManagement/UKLocalAccountIdentification.php index e8b9086f4..2af12cbf1 100644 --- a/src/Adyen/Model/LegalEntityManagement/UKLocalAccountIdentification.php +++ b/src/Adyen/Model/LegalEntityManagement/UKLocalAccountIdentification.php @@ -15,14 +15,14 @@ namespace Adyen\Model\LegalEntityManagement; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\LegalEntityManagement\ObjectSerializer; /** * UKLocalAccountIdentification Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class UKLocalAccountIdentification implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/LegalEntityManagement/USLocalAccountIdentification.php b/src/Adyen/Model/LegalEntityManagement/USLocalAccountIdentification.php index 81f45e1a4..5d0e6c29c 100644 --- a/src/Adyen/Model/LegalEntityManagement/USLocalAccountIdentification.php +++ b/src/Adyen/Model/LegalEntityManagement/USLocalAccountIdentification.php @@ -15,14 +15,14 @@ namespace Adyen\Model\LegalEntityManagement; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\LegalEntityManagement\ObjectSerializer; /** * USLocalAccountIdentification Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class USLocalAccountIdentification implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/LegalEntityManagement/UndefinedBeneficiary.php b/src/Adyen/Model/LegalEntityManagement/UndefinedBeneficiary.php index 8f1311c14..52671db67 100644 --- a/src/Adyen/Model/LegalEntityManagement/UndefinedBeneficiary.php +++ b/src/Adyen/Model/LegalEntityManagement/UndefinedBeneficiary.php @@ -15,14 +15,14 @@ namespace Adyen\Model\LegalEntityManagement; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\LegalEntityManagement\ObjectSerializer; /** * UndefinedBeneficiary Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class UndefinedBeneficiary implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/LegalEntityManagement/UnincorporatedPartnership.php b/src/Adyen/Model/LegalEntityManagement/UnincorporatedPartnership.php index 1665c8874..3ae9c33b4 100644 --- a/src/Adyen/Model/LegalEntityManagement/UnincorporatedPartnership.php +++ b/src/Adyen/Model/LegalEntityManagement/UnincorporatedPartnership.php @@ -15,14 +15,14 @@ namespace Adyen\Model\LegalEntityManagement; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\LegalEntityManagement\ObjectSerializer; /** * UnincorporatedPartnership Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class UnincorporatedPartnership implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/LegalEntityManagement/VerificationDeadline.php b/src/Adyen/Model/LegalEntityManagement/VerificationDeadline.php index d902d8c48..1b63645f2 100644 --- a/src/Adyen/Model/LegalEntityManagement/VerificationDeadline.php +++ b/src/Adyen/Model/LegalEntityManagement/VerificationDeadline.php @@ -15,14 +15,14 @@ namespace Adyen\Model\LegalEntityManagement; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\LegalEntityManagement\ObjectSerializer; /** * VerificationDeadline Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class VerificationDeadline implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/LegalEntityManagement/VerificationError.php b/src/Adyen/Model/LegalEntityManagement/VerificationError.php index 2393a76a2..463a2c03b 100644 --- a/src/Adyen/Model/LegalEntityManagement/VerificationError.php +++ b/src/Adyen/Model/LegalEntityManagement/VerificationError.php @@ -15,14 +15,14 @@ namespace Adyen\Model\LegalEntityManagement; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\LegalEntityManagement\ObjectSerializer; /** * VerificationError Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class VerificationError implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/LegalEntityManagement/VerificationErrorRecursive.php b/src/Adyen/Model/LegalEntityManagement/VerificationErrorRecursive.php index f96b13d66..c8316263a 100644 --- a/src/Adyen/Model/LegalEntityManagement/VerificationErrorRecursive.php +++ b/src/Adyen/Model/LegalEntityManagement/VerificationErrorRecursive.php @@ -15,14 +15,14 @@ namespace Adyen\Model\LegalEntityManagement; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\LegalEntityManagement\ObjectSerializer; /** * VerificationErrorRecursive Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class VerificationErrorRecursive implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/LegalEntityManagement/VerificationErrors.php b/src/Adyen/Model/LegalEntityManagement/VerificationErrors.php index a98b7d037..4fa32cf12 100644 --- a/src/Adyen/Model/LegalEntityManagement/VerificationErrors.php +++ b/src/Adyen/Model/LegalEntityManagement/VerificationErrors.php @@ -15,14 +15,14 @@ namespace Adyen\Model\LegalEntityManagement; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\LegalEntityManagement\ObjectSerializer; /** * VerificationErrors Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class VerificationErrors implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/LegalEntityManagement/WebData.php b/src/Adyen/Model/LegalEntityManagement/WebData.php index c2071c4a0..9f24c20ad 100644 --- a/src/Adyen/Model/LegalEntityManagement/WebData.php +++ b/src/Adyen/Model/LegalEntityManagement/WebData.php @@ -15,14 +15,14 @@ namespace Adyen\Model\LegalEntityManagement; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\LegalEntityManagement\ObjectSerializer; /** * WebData Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class WebData implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/LegalEntityManagement/WebDataExemption.php b/src/Adyen/Model/LegalEntityManagement/WebDataExemption.php index c9c060689..fb588864a 100644 --- a/src/Adyen/Model/LegalEntityManagement/WebDataExemption.php +++ b/src/Adyen/Model/LegalEntityManagement/WebDataExemption.php @@ -15,14 +15,14 @@ namespace Adyen\Model\LegalEntityManagement; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\LegalEntityManagement\ObjectSerializer; /** * WebDataExemption Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class WebDataExemption implements ModelInterface, ArrayAccess, \JsonSerializable { From 3c6097413b939f697a52c102dc0ac628b7592610 Mon Sep 17 00:00:00 2001 From: beppe Date: Mon, 11 Aug 2025 13:55:31 +0200 Subject: [PATCH 2/3] Generate Transfers models --- .../AULocalAccountIdentification.php | 4 +- .../AdditionalBankIdentification.php | 10 +- src/Adyen/Model/Transfers/Address.php | 4 +- src/Adyen/Model/Transfers/Airline.php | 4 +- src/Adyen/Model/Transfers/Amount.php | 4 +- .../Model/Transfers/AmountAdjustment.php | 4 +- .../Transfers/ApproveTransfersRequest.php | 4 +- .../BRLocalAccountIdentification.php | 4 +- src/Adyen/Model/Transfers/BalanceMutation.php | 4 +- src/Adyen/Model/Transfers/BankAccountV3.php | 4 +- .../BankAccountV3AccountIdentification.php | 4 +- .../Model/Transfers/BankCategoryData.php | 6 +- .../CALocalAccountIdentification.php | 4 +- .../CZLocalAccountIdentification.php | 4 +- .../Transfers/CancelTransfersRequest.php | 4 +- src/Adyen/Model/Transfers/CapitalBalance.php | 4 +- src/Adyen/Model/Transfers/CapitalGrant.php | 4 +- .../Model/Transfers/CapitalGrantInfo.php | 4 +- src/Adyen/Model/Transfers/CapitalGrants.php | 4 +- src/Adyen/Model/Transfers/Card.php | 4 +- .../Model/Transfers/CardIdentification.php | 4 +- .../Transfers/ConfirmationTrackingData.php | 6 +- src/Adyen/Model/Transfers/Counterparty.php | 4 +- .../Model/Transfers/CounterpartyInfoV3.php | 4 +- src/Adyen/Model/Transfers/CounterpartyV3.php | 4 +- .../DKLocalAccountIdentification.php | 4 +- .../Transfers/DirectDebitInformation.php | 4 +- .../Transfers/EstimationTrackingData.php | 4 +- src/Adyen/Model/Transfers/ExecutionDate.php | 435 ++++++++++++++++++ src/Adyen/Model/Transfers/ExternalReason.php | 4 +- src/Adyen/Model/Transfers/Fee.php | 4 +- .../Model/Transfers/FindTransfersResponse.php | 4 +- .../HKLocalAccountIdentification.php | 4 +- .../HULocalAccountIdentification.php | 4 +- .../Transfers/IbanAccountIdentification.php | 4 +- .../Model/Transfers/InternalCategoryData.php | 4 +- .../Transfers/InternalReviewTrackingData.php | 6 +- src/Adyen/Model/Transfers/InvalidField.php | 4 +- src/Adyen/Model/Transfers/IssuedCard.php | 35 +- .../Transfers/IssuingTransactionData.php | 4 +- src/Adyen/Model/Transfers/Leg.php | 4 +- src/Adyen/Model/Transfers/Link.php | 4 +- src/Adyen/Model/Transfers/Links.php | 4 +- src/Adyen/Model/Transfers/Lodging.php | 4 +- src/Adyen/Model/Transfers/MerchantData.php | 4 +- .../Model/Transfers/MerchantPurchaseData.php | 4 +- src/Adyen/Model/Transfers/Modification.php | 4 +- .../NOLocalAccountIdentification.php | 4 +- .../NZLocalAccountIdentification.php | 4 +- src/Adyen/Model/Transfers/NameLocation.php | 4 +- .../NumberAndBicAccountIdentification.php | 4 +- .../PLLocalAccountIdentification.php | 4 +- .../Model/Transfers/PartyIdentification.php | 78 +++- .../Model/Transfers/PaymentInstrument.php | 4 +- src/Adyen/Model/Transfers/PlatformPayment.php | 4 +- .../Transfers/RelayedAuthorisationData.php | 4 +- src/Adyen/Model/Transfers/Repayment.php | 4 +- src/Adyen/Model/Transfers/RepaymentTerm.php | 4 +- .../Model/Transfers/ResourceReference.php | 4 +- .../Model/Transfers/RestServiceError.php | 4 +- .../Model/Transfers/ReturnTransferRequest.php | 4 +- .../Transfers/ReturnTransferResponse.php | 4 +- src/Adyen/Model/Transfers/RoutingDetails.php | 6 +- .../SELocalAccountIdentification.php | 4 +- .../SGLocalAccountIdentification.php | 4 +- src/Adyen/Model/Transfers/ServiceError.php | 4 +- src/Adyen/Model/Transfers/ThreeDSecure.php | 404 ++++++++++++++++ .../Model/Transfers/ThresholdRepayment.php | 4 +- src/Adyen/Model/Transfers/Transaction.php | 6 +- .../Transfers/TransactionEventViolation.php | 4 +- .../Transfers/TransactionRuleReference.php | 6 +- .../Model/Transfers/TransactionRuleSource.php | 4 +- .../Transfers/TransactionRulesResult.php | 4 +- .../Transfers/TransactionSearchResponse.php | 4 +- src/Adyen/Model/Transfers/Transfer.php | 72 ++- .../Model/Transfers/TransferCategoryData.php | 37 +- src/Adyen/Model/Transfers/TransferData.php | 115 ++++- .../Model/Transfers/TransferDataTracking.php | 6 +- src/Adyen/Model/Transfers/TransferEvent.php | 6 +- .../TransferEventEventsDataInner.php | 4 +- .../Transfers/TransferEventTrackingData.php | 6 +- src/Adyen/Model/Transfers/TransferInfo.php | 39 +- .../TransferNotificationCounterParty.php | 4 +- .../TransferNotificationMerchantData.php | 4 +- .../TransferNotificationValidationFact.php | 4 +- .../Model/Transfers/TransferRequestReview.php | 4 +- src/Adyen/Model/Transfers/TransferReview.php | 4 +- .../TransferServiceRestServiceError.php | 4 +- src/Adyen/Model/Transfers/TransferView.php | 4 +- .../UKLocalAccountIdentification.php | 4 +- .../USLocalAccountIdentification.php | 4 +- .../Transfers/UltimatePartyIdentification.php | 78 +++- .../Service/Transfers/TransactionsApi.php | 2 +- src/Adyen/Service/Transfers/TransfersApi.php | 2 +- 94 files changed, 1439 insertions(+), 214 deletions(-) create mode 100644 src/Adyen/Model/Transfers/ExecutionDate.php create mode 100644 src/Adyen/Model/Transfers/ThreeDSecure.php diff --git a/src/Adyen/Model/Transfers/AULocalAccountIdentification.php b/src/Adyen/Model/Transfers/AULocalAccountIdentification.php index 5832585df..dcd5d4779 100644 --- a/src/Adyen/Model/Transfers/AULocalAccountIdentification.php +++ b/src/Adyen/Model/Transfers/AULocalAccountIdentification.php @@ -15,14 +15,14 @@ namespace Adyen\Model\Transfers; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\Transfers\ObjectSerializer; /** * AULocalAccountIdentification Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class AULocalAccountIdentification implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/Transfers/AdditionalBankIdentification.php b/src/Adyen/Model/Transfers/AdditionalBankIdentification.php index c7d4263a5..b240fa05a 100644 --- a/src/Adyen/Model/Transfers/AdditionalBankIdentification.php +++ b/src/Adyen/Model/Transfers/AdditionalBankIdentification.php @@ -15,14 +15,14 @@ namespace Adyen\Model\Transfers; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\Transfers\ObjectSerializer; /** * AdditionalBankIdentification Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class AdditionalBankIdentification implements ModelInterface, ArrayAccess, \JsonSerializable { @@ -218,6 +218,8 @@ public function getModelName() return self::$openAPIModelName; } + public const TYPE_AU_BSB_CODE = 'auBsbCode'; + public const TYPE_CA_ROUTING_NUMBER = 'caRoutingNumber'; public const TYPE_GB_SORT_CODE = 'gbSortCode'; public const TYPE_US_ROUTING_NUMBER = 'usRoutingNumber'; @@ -229,6 +231,8 @@ public function getModelName() public function getTypeAllowableValues() { return [ + self::TYPE_AU_BSB_CODE, + self::TYPE_CA_ROUTING_NUMBER, self::TYPE_GB_SORT_CODE, self::TYPE_US_ROUTING_NUMBER, ]; @@ -340,7 +344,7 @@ public function getType() /** * Sets type * - * @param string|null $type The type of additional bank identification, depending on the country. Possible values: * **gbSortCode**: The 6-digit [UK sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * **usRoutingNumber**: The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or spaces. + * @param string|null $type The type of additional bank identification, depending on the country. Possible values: * **auBsbCode**: The 6-digit [Australian Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or spaces. * **caRoutingNumber**: The 9-digit [Canadian routing number](https://en.wikipedia.org/wiki/Routing_number_(Canada)), in EFT format, without separators or spaces. * **gbSortCode**: The 6-digit [UK sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * **usRoutingNumber**: The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or spaces. * * @return self */ diff --git a/src/Adyen/Model/Transfers/Address.php b/src/Adyen/Model/Transfers/Address.php index d68f36fe4..97481ab17 100644 --- a/src/Adyen/Model/Transfers/Address.php +++ b/src/Adyen/Model/Transfers/Address.php @@ -15,14 +15,14 @@ namespace Adyen\Model\Transfers; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\Transfers\ObjectSerializer; /** * Address Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class Address implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/Transfers/Airline.php b/src/Adyen/Model/Transfers/Airline.php index 5fda010cc..2e3f8c57f 100644 --- a/src/Adyen/Model/Transfers/Airline.php +++ b/src/Adyen/Model/Transfers/Airline.php @@ -15,14 +15,14 @@ namespace Adyen\Model\Transfers; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\Transfers\ObjectSerializer; /** * Airline Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class Airline implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/Transfers/Amount.php b/src/Adyen/Model/Transfers/Amount.php index 31003bbb9..0e4d5f21b 100644 --- a/src/Adyen/Model/Transfers/Amount.php +++ b/src/Adyen/Model/Transfers/Amount.php @@ -15,14 +15,14 @@ namespace Adyen\Model\Transfers; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\Transfers\ObjectSerializer; /** * Amount Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class Amount implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/Transfers/AmountAdjustment.php b/src/Adyen/Model/Transfers/AmountAdjustment.php index 655c28476..596054140 100644 --- a/src/Adyen/Model/Transfers/AmountAdjustment.php +++ b/src/Adyen/Model/Transfers/AmountAdjustment.php @@ -15,14 +15,14 @@ namespace Adyen\Model\Transfers; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\Transfers\ObjectSerializer; /** * AmountAdjustment Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class AmountAdjustment implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/Transfers/ApproveTransfersRequest.php b/src/Adyen/Model/Transfers/ApproveTransfersRequest.php index 3a085c74f..e668a52a0 100644 --- a/src/Adyen/Model/Transfers/ApproveTransfersRequest.php +++ b/src/Adyen/Model/Transfers/ApproveTransfersRequest.php @@ -15,14 +15,14 @@ namespace Adyen\Model\Transfers; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\Transfers\ObjectSerializer; /** * ApproveTransfersRequest Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class ApproveTransfersRequest implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/Transfers/BRLocalAccountIdentification.php b/src/Adyen/Model/Transfers/BRLocalAccountIdentification.php index d7f07f21c..303371f0b 100644 --- a/src/Adyen/Model/Transfers/BRLocalAccountIdentification.php +++ b/src/Adyen/Model/Transfers/BRLocalAccountIdentification.php @@ -15,14 +15,14 @@ namespace Adyen\Model\Transfers; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\Transfers\ObjectSerializer; /** * BRLocalAccountIdentification Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class BRLocalAccountIdentification implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/Transfers/BalanceMutation.php b/src/Adyen/Model/Transfers/BalanceMutation.php index 19c20f1d5..82c47ae93 100644 --- a/src/Adyen/Model/Transfers/BalanceMutation.php +++ b/src/Adyen/Model/Transfers/BalanceMutation.php @@ -15,14 +15,14 @@ namespace Adyen\Model\Transfers; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\Transfers\ObjectSerializer; /** * BalanceMutation Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class BalanceMutation implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/Transfers/BankAccountV3.php b/src/Adyen/Model/Transfers/BankAccountV3.php index 69308ee1b..70d92aef7 100644 --- a/src/Adyen/Model/Transfers/BankAccountV3.php +++ b/src/Adyen/Model/Transfers/BankAccountV3.php @@ -15,14 +15,14 @@ namespace Adyen\Model\Transfers; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\Transfers\ObjectSerializer; /** * BankAccountV3 Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class BankAccountV3 implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/Transfers/BankAccountV3AccountIdentification.php b/src/Adyen/Model/Transfers/BankAccountV3AccountIdentification.php index c563a74c3..5f32627e5 100644 --- a/src/Adyen/Model/Transfers/BankAccountV3AccountIdentification.php +++ b/src/Adyen/Model/Transfers/BankAccountV3AccountIdentification.php @@ -15,7 +15,7 @@ namespace Adyen\Model\Transfers; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\Transfers\ObjectSerializer; /** @@ -24,7 +24,7 @@ * Contains the bank account details. The fields required in this object depend on the country of the bank account and the currency of the transfer. * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class BankAccountV3AccountIdentification implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/Transfers/BankCategoryData.php b/src/Adyen/Model/Transfers/BankCategoryData.php index 78faf309f..8f3eb058b 100644 --- a/src/Adyen/Model/Transfers/BankCategoryData.php +++ b/src/Adyen/Model/Transfers/BankCategoryData.php @@ -15,14 +15,14 @@ namespace Adyen\Model\Transfers; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\Transfers\ObjectSerializer; /** * BankCategoryData Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class BankCategoryData implements ModelInterface, ArrayAccess, \JsonSerializable { @@ -345,7 +345,7 @@ public function getPriority() /** * Sets priority * - * @param string|null $priority The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with `category` **bank**. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers in [SEPA countries](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). + * @param string|null $priority The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with `category` **bank**. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). * * @return self */ diff --git a/src/Adyen/Model/Transfers/CALocalAccountIdentification.php b/src/Adyen/Model/Transfers/CALocalAccountIdentification.php index 61df3ffff..eaebafabe 100644 --- a/src/Adyen/Model/Transfers/CALocalAccountIdentification.php +++ b/src/Adyen/Model/Transfers/CALocalAccountIdentification.php @@ -15,14 +15,14 @@ namespace Adyen\Model\Transfers; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\Transfers\ObjectSerializer; /** * CALocalAccountIdentification Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class CALocalAccountIdentification implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/Transfers/CZLocalAccountIdentification.php b/src/Adyen/Model/Transfers/CZLocalAccountIdentification.php index 76b002e04..6f46ab386 100644 --- a/src/Adyen/Model/Transfers/CZLocalAccountIdentification.php +++ b/src/Adyen/Model/Transfers/CZLocalAccountIdentification.php @@ -15,14 +15,14 @@ namespace Adyen\Model\Transfers; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\Transfers\ObjectSerializer; /** * CZLocalAccountIdentification Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class CZLocalAccountIdentification implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/Transfers/CancelTransfersRequest.php b/src/Adyen/Model/Transfers/CancelTransfersRequest.php index 31d8bccbb..ac070e50c 100644 --- a/src/Adyen/Model/Transfers/CancelTransfersRequest.php +++ b/src/Adyen/Model/Transfers/CancelTransfersRequest.php @@ -15,14 +15,14 @@ namespace Adyen\Model\Transfers; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\Transfers\ObjectSerializer; /** * CancelTransfersRequest Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class CancelTransfersRequest implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/Transfers/CapitalBalance.php b/src/Adyen/Model/Transfers/CapitalBalance.php index a0e657d81..c6ad1955b 100644 --- a/src/Adyen/Model/Transfers/CapitalBalance.php +++ b/src/Adyen/Model/Transfers/CapitalBalance.php @@ -15,14 +15,14 @@ namespace Adyen\Model\Transfers; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\Transfers\ObjectSerializer; /** * CapitalBalance Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class CapitalBalance implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/Transfers/CapitalGrant.php b/src/Adyen/Model/Transfers/CapitalGrant.php index 89d12b5a6..da59429bb 100644 --- a/src/Adyen/Model/Transfers/CapitalGrant.php +++ b/src/Adyen/Model/Transfers/CapitalGrant.php @@ -15,14 +15,14 @@ namespace Adyen\Model\Transfers; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\Transfers\ObjectSerializer; /** * CapitalGrant Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class CapitalGrant implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/Transfers/CapitalGrantInfo.php b/src/Adyen/Model/Transfers/CapitalGrantInfo.php index 7db2f6114..ccfd1e6b3 100644 --- a/src/Adyen/Model/Transfers/CapitalGrantInfo.php +++ b/src/Adyen/Model/Transfers/CapitalGrantInfo.php @@ -15,14 +15,14 @@ namespace Adyen\Model\Transfers; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\Transfers\ObjectSerializer; /** * CapitalGrantInfo Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class CapitalGrantInfo implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/Transfers/CapitalGrants.php b/src/Adyen/Model/Transfers/CapitalGrants.php index c8e3f9ef2..4050d03c7 100644 --- a/src/Adyen/Model/Transfers/CapitalGrants.php +++ b/src/Adyen/Model/Transfers/CapitalGrants.php @@ -15,14 +15,14 @@ namespace Adyen\Model\Transfers; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\Transfers\ObjectSerializer; /** * CapitalGrants Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class CapitalGrants implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/Transfers/Card.php b/src/Adyen/Model/Transfers/Card.php index 590f81e9e..7b3d3d30b 100644 --- a/src/Adyen/Model/Transfers/Card.php +++ b/src/Adyen/Model/Transfers/Card.php @@ -15,14 +15,14 @@ namespace Adyen\Model\Transfers; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\Transfers\ObjectSerializer; /** * Card Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class Card implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/Transfers/CardIdentification.php b/src/Adyen/Model/Transfers/CardIdentification.php index d091c67be..85c6586c9 100644 --- a/src/Adyen/Model/Transfers/CardIdentification.php +++ b/src/Adyen/Model/Transfers/CardIdentification.php @@ -15,14 +15,14 @@ namespace Adyen\Model\Transfers; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\Transfers\ObjectSerializer; /** * CardIdentification Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class CardIdentification implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/Transfers/ConfirmationTrackingData.php b/src/Adyen/Model/Transfers/ConfirmationTrackingData.php index 798d803fa..75645ac4f 100644 --- a/src/Adyen/Model/Transfers/ConfirmationTrackingData.php +++ b/src/Adyen/Model/Transfers/ConfirmationTrackingData.php @@ -15,14 +15,14 @@ namespace Adyen\Model\Transfers; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\Transfers\ObjectSerializer; /** * ConfirmationTrackingData Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class ConfirmationTrackingData implements ModelInterface, ArrayAccess, \JsonSerializable { @@ -341,7 +341,7 @@ public function getStatus() /** * Sets status * - * @param string $status The status of the transfer. Possible values: - **credited**: the funds are credited to your user's transfer instrument or bank account. + * @param string $status The status of the transfer. Possible values: - **credited**: the funds are credited to your user's transfer instrument or bank account. * * @return self */ diff --git a/src/Adyen/Model/Transfers/Counterparty.php b/src/Adyen/Model/Transfers/Counterparty.php index 522b6a5ca..d03913fc0 100644 --- a/src/Adyen/Model/Transfers/Counterparty.php +++ b/src/Adyen/Model/Transfers/Counterparty.php @@ -15,14 +15,14 @@ namespace Adyen\Model\Transfers; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\Transfers\ObjectSerializer; /** * Counterparty Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class Counterparty implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/Transfers/CounterpartyInfoV3.php b/src/Adyen/Model/Transfers/CounterpartyInfoV3.php index e8cc670b9..c18d83371 100644 --- a/src/Adyen/Model/Transfers/CounterpartyInfoV3.php +++ b/src/Adyen/Model/Transfers/CounterpartyInfoV3.php @@ -15,14 +15,14 @@ namespace Adyen\Model\Transfers; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\Transfers\ObjectSerializer; /** * CounterpartyInfoV3 Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class CounterpartyInfoV3 implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/Transfers/CounterpartyV3.php b/src/Adyen/Model/Transfers/CounterpartyV3.php index 4ee2fab37..5ddfdeeb1 100644 --- a/src/Adyen/Model/Transfers/CounterpartyV3.php +++ b/src/Adyen/Model/Transfers/CounterpartyV3.php @@ -15,14 +15,14 @@ namespace Adyen\Model\Transfers; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\Transfers\ObjectSerializer; /** * CounterpartyV3 Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class CounterpartyV3 implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/Transfers/DKLocalAccountIdentification.php b/src/Adyen/Model/Transfers/DKLocalAccountIdentification.php index ee7642f4f..10b64c980 100644 --- a/src/Adyen/Model/Transfers/DKLocalAccountIdentification.php +++ b/src/Adyen/Model/Transfers/DKLocalAccountIdentification.php @@ -15,14 +15,14 @@ namespace Adyen\Model\Transfers; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\Transfers\ObjectSerializer; /** * DKLocalAccountIdentification Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class DKLocalAccountIdentification implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/Transfers/DirectDebitInformation.php b/src/Adyen/Model/Transfers/DirectDebitInformation.php index 5834929bd..6ffd9fed0 100644 --- a/src/Adyen/Model/Transfers/DirectDebitInformation.php +++ b/src/Adyen/Model/Transfers/DirectDebitInformation.php @@ -15,14 +15,14 @@ namespace Adyen\Model\Transfers; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\Transfers\ObjectSerializer; /** * DirectDebitInformation Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class DirectDebitInformation implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/Transfers/EstimationTrackingData.php b/src/Adyen/Model/Transfers/EstimationTrackingData.php index faf409583..84eef03e5 100644 --- a/src/Adyen/Model/Transfers/EstimationTrackingData.php +++ b/src/Adyen/Model/Transfers/EstimationTrackingData.php @@ -15,14 +15,14 @@ namespace Adyen\Model\Transfers; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\Transfers\ObjectSerializer; /** * EstimationTrackingData Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class EstimationTrackingData implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/Transfers/ExecutionDate.php b/src/Adyen/Model/Transfers/ExecutionDate.php new file mode 100644 index 000000000..792feaca0 --- /dev/null +++ b/src/Adyen/Model/Transfers/ExecutionDate.php @@ -0,0 +1,435 @@ + + */ +class ExecutionDate implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'ExecutionDate'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'date' => '\DateTime', + 'timezone' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'date' => 'date', + 'timezone' => null + ]; + + /** + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ + protected static $openAPINullables = [ + 'date' => false, + 'timezone' => 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 = [ + 'date' => 'date', + 'timezone' => 'timezone' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'date' => 'setDate', + 'timezone' => 'setTimezone' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'date' => 'getDate', + 'timezone' => 'getTimezone' + ]; + + /** + * 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('date', $data ?? [], null); + $this->setIfExists('timezone', $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 date + * + * @return \DateTime|null + */ + public function getDate() + { + return $this->container['date']; + } + + /** + * Sets date + * + * @param \DateTime|null $date The date when the transfer will be processed. This date must be: * Within 30 days of the current date. * In the [ISO 8601 format](https://www.iso.org/iso-8601-date-and-time-format.html) **YYYY-MM-DD**. For example: 2025-01-31 + * + * @return self + */ + public function setDate($date) + { + $this->container['date'] = $date; + + return $this; + } + + /** + * Gets timezone + * + * @return string|null + */ + public function getTimezone() + { + return $this->container['timezone']; + } + + /** + * Sets timezone + * + * @param string|null $timezone The timezone that applies to the execution date. Use a timezone identifier from the [tz database](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). Example: **America/Los_Angeles**. Default value: **Europe/Amsterdam**. + * + * @return self + */ + public function setTimezone($timezone) + { + $this->container['timezone'] = $timezone; + + 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); + } + + public function toArray(): array + { + $array = []; + foreach (self::$openAPITypes as $propertyName => $propertyType) { + $propertyValue = $this[$propertyName]; + if ($propertyValue !== null) { + // Check if the property value is an object and has a toArray() method + if (is_object($propertyValue) && method_exists($propertyValue, 'toArray')) { + $array[$propertyName] = $propertyValue->toArray(); + // Check if it's type datetime + } elseif ($propertyValue instanceof \DateTime) { + $array[$propertyName] = $propertyValue->format(DATE_ATOM); + // If it's an array type we should check whether it contains objects and if so call toArray method + } elseif (is_array($propertyValue)) { + $array[$propertyName] = array_map(function ($item) { + return $item instanceof ModelInterface ? $item->toArray() : $item; + }, $propertyValue); + } else { + // Otherwise, directly assign the property value to the array + $array[$propertyName] = $propertyValue; + } + } + } + return $array; + } + + /** + * 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/Transfers/ExternalReason.php b/src/Adyen/Model/Transfers/ExternalReason.php index eaca6ba11..85aa36faa 100644 --- a/src/Adyen/Model/Transfers/ExternalReason.php +++ b/src/Adyen/Model/Transfers/ExternalReason.php @@ -15,14 +15,14 @@ namespace Adyen\Model\Transfers; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\Transfers\ObjectSerializer; /** * ExternalReason Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class ExternalReason implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/Transfers/Fee.php b/src/Adyen/Model/Transfers/Fee.php index 4d6440bbf..112a534e9 100644 --- a/src/Adyen/Model/Transfers/Fee.php +++ b/src/Adyen/Model/Transfers/Fee.php @@ -15,14 +15,14 @@ namespace Adyen\Model\Transfers; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\Transfers\ObjectSerializer; /** * Fee Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class Fee implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/Transfers/FindTransfersResponse.php b/src/Adyen/Model/Transfers/FindTransfersResponse.php index f0536b743..0cb70c799 100644 --- a/src/Adyen/Model/Transfers/FindTransfersResponse.php +++ b/src/Adyen/Model/Transfers/FindTransfersResponse.php @@ -15,14 +15,14 @@ namespace Adyen\Model\Transfers; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\Transfers\ObjectSerializer; /** * FindTransfersResponse Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class FindTransfersResponse implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/Transfers/HKLocalAccountIdentification.php b/src/Adyen/Model/Transfers/HKLocalAccountIdentification.php index e2187cfe6..054d2998e 100644 --- a/src/Adyen/Model/Transfers/HKLocalAccountIdentification.php +++ b/src/Adyen/Model/Transfers/HKLocalAccountIdentification.php @@ -15,14 +15,14 @@ namespace Adyen\Model\Transfers; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\Transfers\ObjectSerializer; /** * HKLocalAccountIdentification Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class HKLocalAccountIdentification implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/Transfers/HULocalAccountIdentification.php b/src/Adyen/Model/Transfers/HULocalAccountIdentification.php index 5a2ba0ce5..f5259177d 100644 --- a/src/Adyen/Model/Transfers/HULocalAccountIdentification.php +++ b/src/Adyen/Model/Transfers/HULocalAccountIdentification.php @@ -15,14 +15,14 @@ namespace Adyen\Model\Transfers; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\Transfers\ObjectSerializer; /** * HULocalAccountIdentification Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class HULocalAccountIdentification implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/Transfers/IbanAccountIdentification.php b/src/Adyen/Model/Transfers/IbanAccountIdentification.php index 869ca222b..3e1805b07 100644 --- a/src/Adyen/Model/Transfers/IbanAccountIdentification.php +++ b/src/Adyen/Model/Transfers/IbanAccountIdentification.php @@ -15,14 +15,14 @@ namespace Adyen\Model\Transfers; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\Transfers\ObjectSerializer; /** * IbanAccountIdentification Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class IbanAccountIdentification implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/Transfers/InternalCategoryData.php b/src/Adyen/Model/Transfers/InternalCategoryData.php index c8c5dae16..94f1d08b6 100644 --- a/src/Adyen/Model/Transfers/InternalCategoryData.php +++ b/src/Adyen/Model/Transfers/InternalCategoryData.php @@ -15,14 +15,14 @@ namespace Adyen\Model\Transfers; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\Transfers\ObjectSerializer; /** * InternalCategoryData Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class InternalCategoryData implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/Transfers/InternalReviewTrackingData.php b/src/Adyen/Model/Transfers/InternalReviewTrackingData.php index f93831124..76366d1d2 100644 --- a/src/Adyen/Model/Transfers/InternalReviewTrackingData.php +++ b/src/Adyen/Model/Transfers/InternalReviewTrackingData.php @@ -15,14 +15,14 @@ namespace Adyen\Model\Transfers; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\Transfers\ObjectSerializer; /** * InternalReviewTrackingData Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class InternalReviewTrackingData implements ModelInterface, ArrayAccess, \JsonSerializable { @@ -405,7 +405,7 @@ public function getStatus() /** * Sets status * - * @param string $status The status of the transfer. Possible values: - **pending**: the transfer is under internal review. - **failed**: the transfer failed Adyen's internal review. For details, see `reason`. + * @param string $status The status of the transfer. Possible values: - **pending**: the transfer is under internal review by Adyen. - **failed**: the transfer failed Adyen's internal review. For details, see `reason`. * * @return self */ diff --git a/src/Adyen/Model/Transfers/InvalidField.php b/src/Adyen/Model/Transfers/InvalidField.php index 390f78ba1..b2f537b79 100644 --- a/src/Adyen/Model/Transfers/InvalidField.php +++ b/src/Adyen/Model/Transfers/InvalidField.php @@ -15,14 +15,14 @@ namespace Adyen\Model\Transfers; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\Transfers\ObjectSerializer; /** * InvalidField Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class InvalidField implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/Transfers/IssuedCard.php b/src/Adyen/Model/Transfers/IssuedCard.php index 4d65a50c1..b7695d0c3 100644 --- a/src/Adyen/Model/Transfers/IssuedCard.php +++ b/src/Adyen/Model/Transfers/IssuedCard.php @@ -15,14 +15,14 @@ namespace Adyen\Model\Transfers; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\Transfers\ObjectSerializer; /** * IssuedCard Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class IssuedCard implements ModelInterface, ArrayAccess, \JsonSerializable { @@ -47,6 +47,7 @@ class IssuedCard implements ModelInterface, ArrayAccess, \JsonSerializable 'relayedAuthorisationData' => '\Adyen\Model\Transfers\RelayedAuthorisationData', 'schemeTraceId' => 'string', 'schemeUniqueTransactionId' => 'string', + 'threeDSecure' => '\Adyen\Model\Transfers\ThreeDSecure', 'type' => 'string', 'validationFacts' => '\Adyen\Model\Transfers\TransferNotificationValidationFact[]' ]; @@ -65,6 +66,7 @@ class IssuedCard implements ModelInterface, ArrayAccess, \JsonSerializable 'relayedAuthorisationData' => null, 'schemeTraceId' => null, 'schemeUniqueTransactionId' => null, + 'threeDSecure' => null, 'type' => null, 'validationFacts' => null ]; @@ -81,6 +83,7 @@ class IssuedCard implements ModelInterface, ArrayAccess, \JsonSerializable 'relayedAuthorisationData' => false, 'schemeTraceId' => false, 'schemeUniqueTransactionId' => false, + 'threeDSecure' => false, 'type' => false, 'validationFacts' => false ]; @@ -177,6 +180,7 @@ public function isNullableSetToNull(string $property): bool 'relayedAuthorisationData' => 'relayedAuthorisationData', 'schemeTraceId' => 'schemeTraceId', 'schemeUniqueTransactionId' => 'schemeUniqueTransactionId', + 'threeDSecure' => 'threeDSecure', 'type' => 'type', 'validationFacts' => 'validationFacts' ]; @@ -193,6 +197,7 @@ public function isNullableSetToNull(string $property): bool 'relayedAuthorisationData' => 'setRelayedAuthorisationData', 'schemeTraceId' => 'setSchemeTraceId', 'schemeUniqueTransactionId' => 'setSchemeUniqueTransactionId', + 'threeDSecure' => 'setThreeDSecure', 'type' => 'setType', 'validationFacts' => 'setValidationFacts' ]; @@ -209,6 +214,7 @@ public function isNullableSetToNull(string $property): bool 'relayedAuthorisationData' => 'getRelayedAuthorisationData', 'schemeTraceId' => 'getSchemeTraceId', 'schemeUniqueTransactionId' => 'getSchemeUniqueTransactionId', + 'threeDSecure' => 'getThreeDSecure', 'type' => 'getType', 'validationFacts' => 'getValidationFacts' ]; @@ -338,6 +344,7 @@ public function __construct(?array $data = null) $this->setIfExists('relayedAuthorisationData', $data ?? [], null); $this->setIfExists('schemeTraceId', $data ?? [], null); $this->setIfExists('schemeUniqueTransactionId', $data ?? [], null); + $this->setIfExists('threeDSecure', $data ?? [], null); $this->setIfExists('type', $data ?? [], null); $this->setIfExists('validationFacts', $data ?? [], null); } @@ -575,6 +582,30 @@ public function setSchemeUniqueTransactionId($schemeUniqueTransactionId) return $this; } + /** + * Gets threeDSecure + * + * @return \Adyen\Model\Transfers\ThreeDSecure|null + */ + public function getThreeDSecure() + { + return $this->container['threeDSecure']; + } + + /** + * Sets threeDSecure + * + * @param \Adyen\Model\Transfers\ThreeDSecure|null $threeDSecure threeDSecure + * + * @return self + */ + public function setThreeDSecure($threeDSecure) + { + $this->container['threeDSecure'] = $threeDSecure; + + return $this; + } + /** * Gets type * diff --git a/src/Adyen/Model/Transfers/IssuingTransactionData.php b/src/Adyen/Model/Transfers/IssuingTransactionData.php index 27686f55c..4e22a1d7d 100644 --- a/src/Adyen/Model/Transfers/IssuingTransactionData.php +++ b/src/Adyen/Model/Transfers/IssuingTransactionData.php @@ -15,14 +15,14 @@ namespace Adyen\Model\Transfers; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\Transfers\ObjectSerializer; /** * IssuingTransactionData Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class IssuingTransactionData implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/Transfers/Leg.php b/src/Adyen/Model/Transfers/Leg.php index a9b6ef676..dd533dcae 100644 --- a/src/Adyen/Model/Transfers/Leg.php +++ b/src/Adyen/Model/Transfers/Leg.php @@ -15,14 +15,14 @@ namespace Adyen\Model\Transfers; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\Transfers\ObjectSerializer; /** * Leg Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class Leg implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/Transfers/Link.php b/src/Adyen/Model/Transfers/Link.php index 6b3dd0f1a..e9705c665 100644 --- a/src/Adyen/Model/Transfers/Link.php +++ b/src/Adyen/Model/Transfers/Link.php @@ -15,14 +15,14 @@ namespace Adyen\Model\Transfers; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\Transfers\ObjectSerializer; /** * Link Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class Link implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/Transfers/Links.php b/src/Adyen/Model/Transfers/Links.php index ebaffe772..c0091ffb4 100644 --- a/src/Adyen/Model/Transfers/Links.php +++ b/src/Adyen/Model/Transfers/Links.php @@ -15,14 +15,14 @@ namespace Adyen\Model\Transfers; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\Transfers\ObjectSerializer; /** * Links Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class Links implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/Transfers/Lodging.php b/src/Adyen/Model/Transfers/Lodging.php index 9106cf473..0995d8107 100644 --- a/src/Adyen/Model/Transfers/Lodging.php +++ b/src/Adyen/Model/Transfers/Lodging.php @@ -15,14 +15,14 @@ namespace Adyen\Model\Transfers; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\Transfers\ObjectSerializer; /** * Lodging Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class Lodging implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/Transfers/MerchantData.php b/src/Adyen/Model/Transfers/MerchantData.php index 1bac4162d..69cf754b1 100644 --- a/src/Adyen/Model/Transfers/MerchantData.php +++ b/src/Adyen/Model/Transfers/MerchantData.php @@ -15,14 +15,14 @@ namespace Adyen\Model\Transfers; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\Transfers\ObjectSerializer; /** * MerchantData Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class MerchantData implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/Transfers/MerchantPurchaseData.php b/src/Adyen/Model/Transfers/MerchantPurchaseData.php index c0f278459..b15775a1a 100644 --- a/src/Adyen/Model/Transfers/MerchantPurchaseData.php +++ b/src/Adyen/Model/Transfers/MerchantPurchaseData.php @@ -15,14 +15,14 @@ namespace Adyen\Model\Transfers; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\Transfers\ObjectSerializer; /** * MerchantPurchaseData Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class MerchantPurchaseData implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/Transfers/Modification.php b/src/Adyen/Model/Transfers/Modification.php index 299f21dc6..bf9a54449 100644 --- a/src/Adyen/Model/Transfers/Modification.php +++ b/src/Adyen/Model/Transfers/Modification.php @@ -15,14 +15,14 @@ namespace Adyen\Model\Transfers; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\Transfers\ObjectSerializer; /** * Modification Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class Modification implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/Transfers/NOLocalAccountIdentification.php b/src/Adyen/Model/Transfers/NOLocalAccountIdentification.php index 96ce0ff30..99a6f1326 100644 --- a/src/Adyen/Model/Transfers/NOLocalAccountIdentification.php +++ b/src/Adyen/Model/Transfers/NOLocalAccountIdentification.php @@ -15,14 +15,14 @@ namespace Adyen\Model\Transfers; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\Transfers\ObjectSerializer; /** * NOLocalAccountIdentification Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class NOLocalAccountIdentification implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/Transfers/NZLocalAccountIdentification.php b/src/Adyen/Model/Transfers/NZLocalAccountIdentification.php index 5f59ea8b9..75cb41f3e 100644 --- a/src/Adyen/Model/Transfers/NZLocalAccountIdentification.php +++ b/src/Adyen/Model/Transfers/NZLocalAccountIdentification.php @@ -15,14 +15,14 @@ namespace Adyen\Model\Transfers; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\Transfers\ObjectSerializer; /** * NZLocalAccountIdentification Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class NZLocalAccountIdentification implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/Transfers/NameLocation.php b/src/Adyen/Model/Transfers/NameLocation.php index 5dc8e9f4d..fd7f9712c 100644 --- a/src/Adyen/Model/Transfers/NameLocation.php +++ b/src/Adyen/Model/Transfers/NameLocation.php @@ -15,14 +15,14 @@ namespace Adyen\Model\Transfers; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\Transfers\ObjectSerializer; /** * NameLocation Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class NameLocation implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/Transfers/NumberAndBicAccountIdentification.php b/src/Adyen/Model/Transfers/NumberAndBicAccountIdentification.php index 4e13a464b..55064bf7a 100644 --- a/src/Adyen/Model/Transfers/NumberAndBicAccountIdentification.php +++ b/src/Adyen/Model/Transfers/NumberAndBicAccountIdentification.php @@ -15,14 +15,14 @@ namespace Adyen\Model\Transfers; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\Transfers\ObjectSerializer; /** * NumberAndBicAccountIdentification Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class NumberAndBicAccountIdentification implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/Transfers/PLLocalAccountIdentification.php b/src/Adyen/Model/Transfers/PLLocalAccountIdentification.php index abcba3167..d2f499af3 100644 --- a/src/Adyen/Model/Transfers/PLLocalAccountIdentification.php +++ b/src/Adyen/Model/Transfers/PLLocalAccountIdentification.php @@ -15,14 +15,14 @@ namespace Adyen\Model\Transfers; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\Transfers\ObjectSerializer; /** * PLLocalAccountIdentification Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class PLLocalAccountIdentification implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/Transfers/PartyIdentification.php b/src/Adyen/Model/Transfers/PartyIdentification.php index 3def89f44..235f23e0f 100644 --- a/src/Adyen/Model/Transfers/PartyIdentification.php +++ b/src/Adyen/Model/Transfers/PartyIdentification.php @@ -15,14 +15,14 @@ namespace Adyen\Model\Transfers; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\Transfers\ObjectSerializer; /** * PartyIdentification Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class PartyIdentification implements ModelInterface, ArrayAccess, \JsonSerializable { @@ -43,11 +43,13 @@ class PartyIdentification implements ModelInterface, ArrayAccess, \JsonSerializa protected static $openAPITypes = [ 'address' => '\Adyen\Model\Transfers\Address', 'dateOfBirth' => '\DateTime', + 'email' => 'string', 'firstName' => 'string', 'fullName' => 'string', 'lastName' => 'string', 'reference' => 'string', - 'type' => 'string' + 'type' => 'string', + 'url' => 'string' ]; /** @@ -60,11 +62,13 @@ class PartyIdentification implements ModelInterface, ArrayAccess, \JsonSerializa protected static $openAPIFormats = [ 'address' => null, 'dateOfBirth' => 'date', + 'email' => null, 'firstName' => null, 'fullName' => null, 'lastName' => null, 'reference' => null, - 'type' => null + 'type' => null, + 'url' => null ]; /** @@ -75,11 +79,13 @@ class PartyIdentification implements ModelInterface, ArrayAccess, \JsonSerializa protected static $openAPINullables = [ 'address' => false, 'dateOfBirth' => false, + 'email' => false, 'firstName' => false, 'fullName' => false, 'lastName' => false, 'reference' => false, - 'type' => false + 'type' => false, + 'url' => false ]; /** @@ -170,11 +176,13 @@ public function isNullableSetToNull(string $property): bool protected static $attributeMap = [ 'address' => 'address', 'dateOfBirth' => 'dateOfBirth', + 'email' => 'email', 'firstName' => 'firstName', 'fullName' => 'fullName', 'lastName' => 'lastName', 'reference' => 'reference', - 'type' => 'type' + 'type' => 'type', + 'url' => 'url' ]; /** @@ -185,11 +193,13 @@ public function isNullableSetToNull(string $property): bool protected static $setters = [ 'address' => 'setAddress', 'dateOfBirth' => 'setDateOfBirth', + 'email' => 'setEmail', 'firstName' => 'setFirstName', 'fullName' => 'setFullName', 'lastName' => 'setLastName', 'reference' => 'setReference', - 'type' => 'setType' + 'type' => 'setType', + 'url' => 'setUrl' ]; /** @@ -200,11 +210,13 @@ public function isNullableSetToNull(string $property): bool protected static $getters = [ 'address' => 'getAddress', 'dateOfBirth' => 'getDateOfBirth', + 'email' => 'getEmail', 'firstName' => 'getFirstName', 'fullName' => 'getFullName', 'lastName' => 'getLastName', 'reference' => 'getReference', - 'type' => 'getType' + 'type' => 'getType', + 'url' => 'getUrl' ]; /** @@ -282,11 +294,13 @@ public function __construct(?array $data = null) { $this->setIfExists('address', $data ?? [], null); $this->setIfExists('dateOfBirth', $data ?? [], null); + $this->setIfExists('email', $data ?? [], null); $this->setIfExists('firstName', $data ?? [], null); $this->setIfExists('fullName', $data ?? [], null); $this->setIfExists('lastName', $data ?? [], null); $this->setIfExists('reference', $data ?? [], null); $this->setIfExists('type', $data ?? [], null); + $this->setIfExists('url', $data ?? [], null); } /** @@ -388,6 +402,30 @@ public function setDateOfBirth($dateOfBirth) return $this; } + /** + * Gets email + * + * @return string|null + */ + public function getEmail() + { + return $this->container['email']; + } + + /** + * Sets email + * + * @param string|null $email The email address of the organization or individual. Maximum length: 254 characters. + * + * @return self + */ + public function setEmail($email) + { + $this->container['email'] = $email; + + return $this; + } + /** * Gets firstName * @@ -517,6 +555,30 @@ public function setType($type) return $this; } + + /** + * Gets url + * + * @return string|null + */ + public function getUrl() + { + return $this->container['url']; + } + + /** + * Sets url + * + * @param string|null $url The URL of the organization or individual. Maximum length: 255 characters. + * + * @return self + */ + public function setUrl($url) + { + $this->container['url'] = $url; + + return $this; + } /** * Returns true if offset exists. False otherwise. * diff --git a/src/Adyen/Model/Transfers/PaymentInstrument.php b/src/Adyen/Model/Transfers/PaymentInstrument.php index 4b52e36d8..203708107 100644 --- a/src/Adyen/Model/Transfers/PaymentInstrument.php +++ b/src/Adyen/Model/Transfers/PaymentInstrument.php @@ -15,14 +15,14 @@ namespace Adyen\Model\Transfers; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\Transfers\ObjectSerializer; /** * PaymentInstrument Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class PaymentInstrument implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/Transfers/PlatformPayment.php b/src/Adyen/Model/Transfers/PlatformPayment.php index 8dc3c0000..c89fcde21 100644 --- a/src/Adyen/Model/Transfers/PlatformPayment.php +++ b/src/Adyen/Model/Transfers/PlatformPayment.php @@ -15,14 +15,14 @@ namespace Adyen\Model\Transfers; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\Transfers\ObjectSerializer; /** * PlatformPayment Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class PlatformPayment implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/Transfers/RelayedAuthorisationData.php b/src/Adyen/Model/Transfers/RelayedAuthorisationData.php index 3a1dfa6c9..3cd6dbccc 100644 --- a/src/Adyen/Model/Transfers/RelayedAuthorisationData.php +++ b/src/Adyen/Model/Transfers/RelayedAuthorisationData.php @@ -15,14 +15,14 @@ namespace Adyen\Model\Transfers; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\Transfers\ObjectSerializer; /** * RelayedAuthorisationData Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class RelayedAuthorisationData implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/Transfers/Repayment.php b/src/Adyen/Model/Transfers/Repayment.php index 8fef55c71..c5dbd260b 100644 --- a/src/Adyen/Model/Transfers/Repayment.php +++ b/src/Adyen/Model/Transfers/Repayment.php @@ -15,14 +15,14 @@ namespace Adyen\Model\Transfers; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\Transfers\ObjectSerializer; /** * Repayment Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class Repayment implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/Transfers/RepaymentTerm.php b/src/Adyen/Model/Transfers/RepaymentTerm.php index 271ef663a..1c23ac5db 100644 --- a/src/Adyen/Model/Transfers/RepaymentTerm.php +++ b/src/Adyen/Model/Transfers/RepaymentTerm.php @@ -15,14 +15,14 @@ namespace Adyen\Model\Transfers; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\Transfers\ObjectSerializer; /** * RepaymentTerm Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class RepaymentTerm implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/Transfers/ResourceReference.php b/src/Adyen/Model/Transfers/ResourceReference.php index 23c4c06ab..490540038 100644 --- a/src/Adyen/Model/Transfers/ResourceReference.php +++ b/src/Adyen/Model/Transfers/ResourceReference.php @@ -15,14 +15,14 @@ namespace Adyen\Model\Transfers; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\Transfers\ObjectSerializer; /** * ResourceReference Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class ResourceReference implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/Transfers/RestServiceError.php b/src/Adyen/Model/Transfers/RestServiceError.php index 8b3ca1382..e0eada39e 100644 --- a/src/Adyen/Model/Transfers/RestServiceError.php +++ b/src/Adyen/Model/Transfers/RestServiceError.php @@ -15,14 +15,14 @@ namespace Adyen\Model\Transfers; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\Transfers\ObjectSerializer; /** * RestServiceError Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class RestServiceError implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/Transfers/ReturnTransferRequest.php b/src/Adyen/Model/Transfers/ReturnTransferRequest.php index 30c6f56dd..6516429aa 100644 --- a/src/Adyen/Model/Transfers/ReturnTransferRequest.php +++ b/src/Adyen/Model/Transfers/ReturnTransferRequest.php @@ -15,14 +15,14 @@ namespace Adyen\Model\Transfers; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\Transfers\ObjectSerializer; /** * ReturnTransferRequest Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class ReturnTransferRequest implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/Transfers/ReturnTransferResponse.php b/src/Adyen/Model/Transfers/ReturnTransferResponse.php index 8b6020518..da941bff3 100644 --- a/src/Adyen/Model/Transfers/ReturnTransferResponse.php +++ b/src/Adyen/Model/Transfers/ReturnTransferResponse.php @@ -15,14 +15,14 @@ namespace Adyen\Model\Transfers; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\Transfers\ObjectSerializer; /** * ReturnTransferResponse Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class ReturnTransferResponse implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/Transfers/RoutingDetails.php b/src/Adyen/Model/Transfers/RoutingDetails.php index 20e1790dd..a8f655cf4 100644 --- a/src/Adyen/Model/Transfers/RoutingDetails.php +++ b/src/Adyen/Model/Transfers/RoutingDetails.php @@ -15,14 +15,14 @@ namespace Adyen\Model\Transfers; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\Transfers\ObjectSerializer; /** * RoutingDetails Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class RoutingDetails implements ModelInterface, ArrayAccess, \JsonSerializable { @@ -386,7 +386,7 @@ public function getPriority() /** * Sets priority * - * @param string|null $priority The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with `category` **bank**. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers in [SEPA countries](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). + * @param string|null $priority The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with `category` **bank**. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). * * @return self */ diff --git a/src/Adyen/Model/Transfers/SELocalAccountIdentification.php b/src/Adyen/Model/Transfers/SELocalAccountIdentification.php index 13697eb27..5a9726da2 100644 --- a/src/Adyen/Model/Transfers/SELocalAccountIdentification.php +++ b/src/Adyen/Model/Transfers/SELocalAccountIdentification.php @@ -15,14 +15,14 @@ namespace Adyen\Model\Transfers; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\Transfers\ObjectSerializer; /** * SELocalAccountIdentification Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class SELocalAccountIdentification implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/Transfers/SGLocalAccountIdentification.php b/src/Adyen/Model/Transfers/SGLocalAccountIdentification.php index a9e8f4525..0a431f48c 100644 --- a/src/Adyen/Model/Transfers/SGLocalAccountIdentification.php +++ b/src/Adyen/Model/Transfers/SGLocalAccountIdentification.php @@ -15,14 +15,14 @@ namespace Adyen\Model\Transfers; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\Transfers\ObjectSerializer; /** * SGLocalAccountIdentification Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class SGLocalAccountIdentification implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/Transfers/ServiceError.php b/src/Adyen/Model/Transfers/ServiceError.php index a2f12bb01..bdd5e4d7a 100644 --- a/src/Adyen/Model/Transfers/ServiceError.php +++ b/src/Adyen/Model/Transfers/ServiceError.php @@ -15,14 +15,14 @@ namespace Adyen\Model\Transfers; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\Transfers\ObjectSerializer; /** * ServiceError Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class ServiceError implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/Transfers/ThreeDSecure.php b/src/Adyen/Model/Transfers/ThreeDSecure.php new file mode 100644 index 000000000..8f47f98dd --- /dev/null +++ b/src/Adyen/Model/Transfers/ThreeDSecure.php @@ -0,0 +1,404 @@ + + */ +class ThreeDSecure implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'ThreeDSecure'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'acsTransactionId' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'acsTransactionId' => null + ]; + + /** + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ + protected static $openAPINullables = [ + 'acsTransactionId' => 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 = [ + 'acsTransactionId' => 'acsTransactionId' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'acsTransactionId' => 'setAcsTransactionId' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'acsTransactionId' => 'getAcsTransactionId' + ]; + + /** + * 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('acsTransactionId', $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 acsTransactionId + * + * @return string|null + */ + public function getAcsTransactionId() + { + return $this->container['acsTransactionId']; + } + + /** + * Sets acsTransactionId + * + * @param string|null $acsTransactionId The transaction identifier for the Access Control Server + * + * @return self + */ + public function setAcsTransactionId($acsTransactionId) + { + $this->container['acsTransactionId'] = $acsTransactionId; + + 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); + } + + public function toArray(): array + { + $array = []; + foreach (self::$openAPITypes as $propertyName => $propertyType) { + $propertyValue = $this[$propertyName]; + if ($propertyValue !== null) { + // Check if the property value is an object and has a toArray() method + if (is_object($propertyValue) && method_exists($propertyValue, 'toArray')) { + $array[$propertyName] = $propertyValue->toArray(); + // Check if it's type datetime + } elseif ($propertyValue instanceof \DateTime) { + $array[$propertyName] = $propertyValue->format(DATE_ATOM); + // If it's an array type we should check whether it contains objects and if so call toArray method + } elseif (is_array($propertyValue)) { + $array[$propertyName] = array_map(function ($item) { + return $item instanceof ModelInterface ? $item->toArray() : $item; + }, $propertyValue); + } else { + // Otherwise, directly assign the property value to the array + $array[$propertyName] = $propertyValue; + } + } + } + return $array; + } + + /** + * 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/Transfers/ThresholdRepayment.php b/src/Adyen/Model/Transfers/ThresholdRepayment.php index 8ca787c75..247af578a 100644 --- a/src/Adyen/Model/Transfers/ThresholdRepayment.php +++ b/src/Adyen/Model/Transfers/ThresholdRepayment.php @@ -15,14 +15,14 @@ namespace Adyen\Model\Transfers; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\Transfers\ObjectSerializer; /** * ThresholdRepayment Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class ThresholdRepayment implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/Transfers/Transaction.php b/src/Adyen/Model/Transfers/Transaction.php index 6d6350a54..8819646fe 100644 --- a/src/Adyen/Model/Transfers/Transaction.php +++ b/src/Adyen/Model/Transfers/Transaction.php @@ -15,14 +15,14 @@ namespace Adyen\Model\Transfers; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\Transfers\ObjectSerializer; /** * Transaction Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class Transaction implements ModelInterface, ArrayAccess, \JsonSerializable { @@ -537,7 +537,7 @@ public function getCreationDate() /** * Sets creationDate * - * @param \DateTime|null $creationDate The date and time when the event was triggered, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**. + * @param \DateTime|null $creationDate The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. * * @return self */ diff --git a/src/Adyen/Model/Transfers/TransactionEventViolation.php b/src/Adyen/Model/Transfers/TransactionEventViolation.php index 9b3bec0d5..7877200cf 100644 --- a/src/Adyen/Model/Transfers/TransactionEventViolation.php +++ b/src/Adyen/Model/Transfers/TransactionEventViolation.php @@ -15,14 +15,14 @@ namespace Adyen\Model\Transfers; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\Transfers\ObjectSerializer; /** * TransactionEventViolation Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class TransactionEventViolation implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/Transfers/TransactionRuleReference.php b/src/Adyen/Model/Transfers/TransactionRuleReference.php index 9604fabc8..60ee08c9c 100644 --- a/src/Adyen/Model/Transfers/TransactionRuleReference.php +++ b/src/Adyen/Model/Transfers/TransactionRuleReference.php @@ -15,14 +15,14 @@ namespace Adyen\Model\Transfers; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\Transfers\ObjectSerializer; /** * TransactionRuleReference Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class TransactionRuleReference implements ModelInterface, ArrayAccess, \JsonSerializable { @@ -410,7 +410,7 @@ public function getScore() /** * Sets score * - * @param int|null $score The score of the rule in case it's a scoreBased rule. + * @param int|null $score The transaction score determined by the rule. Returned only when `outcomeType` is **scoreBased**. * * @return self */ diff --git a/src/Adyen/Model/Transfers/TransactionRuleSource.php b/src/Adyen/Model/Transfers/TransactionRuleSource.php index d72556b5d..6ae8306a3 100644 --- a/src/Adyen/Model/Transfers/TransactionRuleSource.php +++ b/src/Adyen/Model/Transfers/TransactionRuleSource.php @@ -15,14 +15,14 @@ namespace Adyen\Model\Transfers; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\Transfers\ObjectSerializer; /** * TransactionRuleSource Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class TransactionRuleSource implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/Transfers/TransactionRulesResult.php b/src/Adyen/Model/Transfers/TransactionRulesResult.php index 322823614..f2f7f6870 100644 --- a/src/Adyen/Model/Transfers/TransactionRulesResult.php +++ b/src/Adyen/Model/Transfers/TransactionRulesResult.php @@ -15,14 +15,14 @@ namespace Adyen\Model\Transfers; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\Transfers\ObjectSerializer; /** * TransactionRulesResult Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class TransactionRulesResult implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/Transfers/TransactionSearchResponse.php b/src/Adyen/Model/Transfers/TransactionSearchResponse.php index 6cc4394fa..dbc908f7e 100644 --- a/src/Adyen/Model/Transfers/TransactionSearchResponse.php +++ b/src/Adyen/Model/Transfers/TransactionSearchResponse.php @@ -15,14 +15,14 @@ namespace Adyen\Model\Transfers; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\Transfers\ObjectSerializer; /** * TransactionSearchResponse Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class TransactionSearchResponse implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/Transfers/Transfer.php b/src/Adyen/Model/Transfers/Transfer.php index 207aeda9d..ddb7b6a6d 100644 --- a/src/Adyen/Model/Transfers/Transfer.php +++ b/src/Adyen/Model/Transfers/Transfer.php @@ -15,14 +15,14 @@ namespace Adyen\Model\Transfers; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\Transfers\ObjectSerializer; /** * Transfer Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class Transfer implements ModelInterface, ArrayAccess, \JsonSerializable { @@ -47,10 +47,12 @@ class Transfer implements ModelInterface, ArrayAccess, \JsonSerializable 'category' => 'string', 'categoryData' => '\Adyen\Model\Transfers\TransferCategoryData', 'counterparty' => '\Adyen\Model\Transfers\CounterpartyV3', + 'createdAt' => '\DateTime', 'creationDate' => '\DateTime', 'description' => 'string', 'directDebitInformation' => '\Adyen\Model\Transfers\DirectDebitInformation', 'direction' => 'string', + 'executionDate' => '\Adyen\Model\Transfers\ExecutionDate', 'id' => 'string', 'paymentInstrument' => '\Adyen\Model\Transfers\PaymentInstrument', 'reason' => 'string', @@ -75,10 +77,12 @@ class Transfer implements ModelInterface, ArrayAccess, \JsonSerializable 'category' => null, 'categoryData' => null, 'counterparty' => null, + 'createdAt' => 'date-time', 'creationDate' => 'date-time', 'description' => null, 'directDebitInformation' => null, 'direction' => null, + 'executionDate' => null, 'id' => null, 'paymentInstrument' => null, 'reason' => null, @@ -101,10 +105,12 @@ class Transfer implements ModelInterface, ArrayAccess, \JsonSerializable 'category' => false, 'categoryData' => false, 'counterparty' => false, + 'createdAt' => false, 'creationDate' => false, 'description' => false, 'directDebitInformation' => false, 'direction' => false, + 'executionDate' => false, 'id' => false, 'paymentInstrument' => false, 'reason' => false, @@ -207,10 +213,12 @@ public function isNullableSetToNull(string $property): bool 'category' => 'category', 'categoryData' => 'categoryData', 'counterparty' => 'counterparty', + 'createdAt' => 'createdAt', 'creationDate' => 'creationDate', 'description' => 'description', 'directDebitInformation' => 'directDebitInformation', 'direction' => 'direction', + 'executionDate' => 'executionDate', 'id' => 'id', 'paymentInstrument' => 'paymentInstrument', 'reason' => 'reason', @@ -233,10 +241,12 @@ public function isNullableSetToNull(string $property): bool 'category' => 'setCategory', 'categoryData' => 'setCategoryData', 'counterparty' => 'setCounterparty', + 'createdAt' => 'setCreatedAt', 'creationDate' => 'setCreationDate', 'description' => 'setDescription', 'directDebitInformation' => 'setDirectDebitInformation', 'direction' => 'setDirection', + 'executionDate' => 'setExecutionDate', 'id' => 'setId', 'paymentInstrument' => 'setPaymentInstrument', 'reason' => 'setReason', @@ -259,10 +269,12 @@ public function isNullableSetToNull(string $property): bool 'category' => 'getCategory', 'categoryData' => 'getCategoryData', 'counterparty' => 'getCounterparty', + 'createdAt' => 'getCreatedAt', 'creationDate' => 'getCreationDate', 'description' => 'getDescription', 'directDebitInformation' => 'getDirectDebitInformation', 'direction' => 'getDirection', + 'executionDate' => 'getExecutionDate', 'id' => 'getId', 'paymentInstrument' => 'getPaymentInstrument', 'reason' => 'getReason', @@ -324,6 +336,7 @@ public function getModelName() public const DIRECTION_OUTGOING = 'outgoing'; public const REASON_ACCOUNT_HIERARCHY_NOT_ACTIVE = 'accountHierarchyNotActive'; public const REASON_AMOUNT_LIMIT_EXCEEDED = 'amountLimitExceeded'; + public const REASON_APPROVAL_EXPIRED = 'approvalExpired'; public const REASON_APPROVED = 'approved'; public const REASON_BALANCE_ACCOUNT_TEMPORARILY_BLOCKED_BY_TRANSACTION_RULE = 'balanceAccountTemporarilyBlockedByTransactionRule'; public const REASON_COUNTERPARTY_ACCOUNT_BLOCKED = 'counterpartyAccountBlocked'; @@ -490,6 +503,7 @@ public function getReasonAllowableValues() return [ self::REASON_ACCOUNT_HIERARCHY_NOT_ACTIVE, self::REASON_AMOUNT_LIMIT_EXCEEDED, + self::REASON_APPROVAL_EXPIRED, self::REASON_APPROVED, self::REASON_BALANCE_ACCOUNT_TEMPORARILY_BLOCKED_BY_TRANSACTION_RULE, self::REASON_COUNTERPARTY_ACCOUNT_BLOCKED, @@ -660,10 +674,12 @@ public function __construct(?array $data = null) $this->setIfExists('category', $data ?? [], null); $this->setIfExists('categoryData', $data ?? [], null); $this->setIfExists('counterparty', $data ?? [], null); + $this->setIfExists('createdAt', $data ?? [], null); $this->setIfExists('creationDate', $data ?? [], null); $this->setIfExists('description', $data ?? [], null); $this->setIfExists('directDebitInformation', $data ?? [], null); $this->setIfExists('direction', $data ?? [], null); + $this->setIfExists('executionDate', $data ?? [], null); $this->setIfExists('id', $data ?? [], null); $this->setIfExists('paymentInstrument', $data ?? [], null); $this->setIfExists('reason', $data ?? [], null); @@ -927,10 +943,35 @@ public function setCounterparty($counterparty) return $this; } + /** + * Gets createdAt + * + * @return \DateTime|null + */ + public function getCreatedAt() + { + return $this->container['createdAt']; + } + + /** + * Sets createdAt + * + * @param \DateTime|null $createdAt The date and time when the transfer was created, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**. + * + * @return self + */ + public function setCreatedAt($createdAt) + { + $this->container['createdAt'] = $createdAt; + + return $this; + } + /** * Gets creationDate * * @return \DateTime|null + * @deprecated since Transfers API v3. "Use createdAt or updatedAt" */ public function getCreationDate() { @@ -943,6 +984,7 @@ public function getCreationDate() * @param \DateTime|null $creationDate The date and time when the event was triggered, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**. * * @return self + * @deprecated since Transfers API v3. "Use createdAt or updatedAt" */ public function setCreationDate($creationDate) { @@ -1033,6 +1075,30 @@ public function setDirection($direction) return $this; } + /** + * Gets executionDate + * + * @return \Adyen\Model\Transfers\ExecutionDate|null + */ + public function getExecutionDate() + { + return $this->container['executionDate']; + } + + /** + * Sets executionDate + * + * @param \Adyen\Model\Transfers\ExecutionDate|null $executionDate executionDate + * + * @return self + */ + public function setExecutionDate($executionDate) + { + $this->container['executionDate'] = $executionDate; + + return $this; + } + /** * Gets id * @@ -1200,7 +1266,7 @@ public function getStatus() /** * Sets status * - * @param string $status The result of the transfer. For example, **authorised**, **refused**, or **error**. + * @param string $status The result of the transfer. For example: - **received**: an outgoing transfer request is created. - **authorised**: the transfer request is authorized and the funds are reserved. - **booked**: the funds are deducted from your user's balance account. - **failed**: the transfer is rejected by the counterparty's bank. - **returned**: the transfer is returned by the counterparty's bank. * * @return self */ diff --git a/src/Adyen/Model/Transfers/TransferCategoryData.php b/src/Adyen/Model/Transfers/TransferCategoryData.php index 20756d794..68f12aa94 100644 --- a/src/Adyen/Model/Transfers/TransferCategoryData.php +++ b/src/Adyen/Model/Transfers/TransferCategoryData.php @@ -15,7 +15,7 @@ namespace Adyen\Model\Transfers; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\Transfers\ObjectSerializer; /** @@ -24,7 +24,7 @@ * The relevant data according to the transfer category. * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class TransferCategoryData implements ModelInterface, ArrayAccess, \JsonSerializable { @@ -53,6 +53,7 @@ class TransferCategoryData implements ModelInterface, ArrayAccess, \JsonSerializ 'relayedAuthorisationData' => '\Adyen\Model\Transfers\RelayedAuthorisationData', 'schemeTraceId' => 'string', 'schemeUniqueTransactionId' => 'string', + 'threeDSecure' => '\Adyen\Model\Transfers\ThreeDSecure', 'validationFacts' => '\Adyen\Model\Transfers\TransferNotificationValidationFact[]', 'paymentMerchantReference' => 'string', 'platformPaymentType' => 'string', @@ -77,6 +78,7 @@ class TransferCategoryData implements ModelInterface, ArrayAccess, \JsonSerializ 'relayedAuthorisationData' => null, 'schemeTraceId' => null, 'schemeUniqueTransactionId' => null, + 'threeDSecure' => null, 'validationFacts' => null, 'paymentMerchantReference' => null, 'platformPaymentType' => null, @@ -99,6 +101,7 @@ class TransferCategoryData implements ModelInterface, ArrayAccess, \JsonSerializ 'relayedAuthorisationData' => false, 'schemeTraceId' => false, 'schemeUniqueTransactionId' => false, + 'threeDSecure' => false, 'validationFacts' => false, 'paymentMerchantReference' => false, 'platformPaymentType' => false, @@ -201,6 +204,7 @@ public function isNullableSetToNull(string $property): bool 'relayedAuthorisationData' => 'relayedAuthorisationData', 'schemeTraceId' => 'schemeTraceId', 'schemeUniqueTransactionId' => 'schemeUniqueTransactionId', + 'threeDSecure' => 'threeDSecure', 'validationFacts' => 'validationFacts', 'paymentMerchantReference' => 'paymentMerchantReference', 'platformPaymentType' => 'platformPaymentType', @@ -223,6 +227,7 @@ public function isNullableSetToNull(string $property): bool 'relayedAuthorisationData' => 'setRelayedAuthorisationData', 'schemeTraceId' => 'setSchemeTraceId', 'schemeUniqueTransactionId' => 'setSchemeUniqueTransactionId', + 'threeDSecure' => 'setThreeDSecure', 'validationFacts' => 'setValidationFacts', 'paymentMerchantReference' => 'setPaymentMerchantReference', 'platformPaymentType' => 'setPlatformPaymentType', @@ -245,6 +250,7 @@ public function isNullableSetToNull(string $property): bool 'relayedAuthorisationData' => 'getRelayedAuthorisationData', 'schemeTraceId' => 'getSchemeTraceId', 'schemeUniqueTransactionId' => 'getSchemeUniqueTransactionId', + 'threeDSecure' => 'getThreeDSecure', 'validationFacts' => 'getValidationFacts', 'paymentMerchantReference' => 'getPaymentMerchantReference', 'platformPaymentType' => 'getPlatformPaymentType', @@ -317,6 +323,7 @@ public function __construct(?array $data = null) $this->setIfExists('relayedAuthorisationData', $data ?? [], null); $this->setIfExists('schemeTraceId', $data ?? [], null); $this->setIfExists('schemeUniqueTransactionId', $data ?? [], null); + $this->setIfExists('threeDSecure', $data ?? [], null); $this->setIfExists('validationFacts', $data ?? [], null); $this->setIfExists('paymentMerchantReference', $data ?? [], null); $this->setIfExists('platformPaymentType', $data ?? [], null); @@ -383,7 +390,7 @@ public function getPriority() /** * Sets priority * - * @param string|null $priority The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with `category` **bank**. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers in [SEPA countries](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). + * @param string|null $priority The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with `category` **bank**. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). * * @return self */ @@ -610,6 +617,30 @@ public function setSchemeUniqueTransactionId($schemeUniqueTransactionId) return $this; } + /** + * Gets threeDSecure + * + * @return \Adyen\Model\Transfers\ThreeDSecure|null + */ + public function getThreeDSecure() + { + return $this->container['threeDSecure']; + } + + /** + * Sets threeDSecure + * + * @param \Adyen\Model\Transfers\ThreeDSecure|null $threeDSecure threeDSecure + * + * @return self + */ + public function setThreeDSecure($threeDSecure) + { + $this->container['threeDSecure'] = $threeDSecure; + + return $this; + } + /** * Gets validationFacts * diff --git a/src/Adyen/Model/Transfers/TransferData.php b/src/Adyen/Model/Transfers/TransferData.php index 80d1a3ad3..d98110075 100644 --- a/src/Adyen/Model/Transfers/TransferData.php +++ b/src/Adyen/Model/Transfers/TransferData.php @@ -15,14 +15,14 @@ namespace Adyen\Model\Transfers; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\Transfers\ObjectSerializer; /** * TransferData Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class TransferData implements ModelInterface, ArrayAccess, \JsonSerializable { @@ -49,12 +49,14 @@ class TransferData implements ModelInterface, ArrayAccess, \JsonSerializable 'category' => 'string', 'categoryData' => '\Adyen\Model\Transfers\TransferCategoryData', 'counterparty' => '\Adyen\Model\Transfers\TransferNotificationCounterParty', + 'createdAt' => '\DateTime', 'creationDate' => '\DateTime', 'description' => 'string', 'directDebitInformation' => '\Adyen\Model\Transfers\DirectDebitInformation', 'direction' => 'string', 'eventId' => 'string', 'events' => '\Adyen\Model\Transfers\TransferEvent[]', + 'executionDate' => '\Adyen\Model\Transfers\ExecutionDate', 'externalReason' => '\Adyen\Model\Transfers\ExternalReason', 'id' => 'string', 'paymentInstrument' => '\Adyen\Model\Transfers\PaymentInstrument', @@ -66,7 +68,8 @@ class TransferData implements ModelInterface, ArrayAccess, \JsonSerializable 'status' => 'string', 'tracking' => '\Adyen\Model\Transfers\TransferDataTracking', 'transactionRulesResult' => '\Adyen\Model\Transfers\TransactionRulesResult', - 'type' => 'string' + 'type' => 'string', + 'updatedAt' => '\DateTime' ]; /** @@ -85,12 +88,14 @@ class TransferData implements ModelInterface, ArrayAccess, \JsonSerializable 'category' => null, 'categoryData' => null, 'counterparty' => null, + 'createdAt' => 'date-time', 'creationDate' => 'date-time', 'description' => null, 'directDebitInformation' => null, 'direction' => null, 'eventId' => null, 'events' => null, + 'executionDate' => null, 'externalReason' => null, 'id' => null, 'paymentInstrument' => null, @@ -102,7 +107,8 @@ class TransferData implements ModelInterface, ArrayAccess, \JsonSerializable 'status' => null, 'tracking' => null, 'transactionRulesResult' => null, - 'type' => null + 'type' => null, + 'updatedAt' => 'date-time' ]; /** @@ -119,12 +125,14 @@ class TransferData implements ModelInterface, ArrayAccess, \JsonSerializable 'category' => false, 'categoryData' => false, 'counterparty' => false, + 'createdAt' => false, 'creationDate' => false, 'description' => false, 'directDebitInformation' => false, 'direction' => false, 'eventId' => false, 'events' => false, + 'executionDate' => false, 'externalReason' => false, 'id' => false, 'paymentInstrument' => false, @@ -136,7 +144,8 @@ class TransferData implements ModelInterface, ArrayAccess, \JsonSerializable 'status' => false, 'tracking' => false, 'transactionRulesResult' => false, - 'type' => false + 'type' => false, + 'updatedAt' => false ]; /** @@ -233,12 +242,14 @@ public function isNullableSetToNull(string $property): bool 'category' => 'category', 'categoryData' => 'categoryData', 'counterparty' => 'counterparty', + 'createdAt' => 'createdAt', 'creationDate' => 'creationDate', 'description' => 'description', 'directDebitInformation' => 'directDebitInformation', 'direction' => 'direction', 'eventId' => 'eventId', 'events' => 'events', + 'executionDate' => 'executionDate', 'externalReason' => 'externalReason', 'id' => 'id', 'paymentInstrument' => 'paymentInstrument', @@ -250,7 +261,8 @@ public function isNullableSetToNull(string $property): bool 'status' => 'status', 'tracking' => 'tracking', 'transactionRulesResult' => 'transactionRulesResult', - 'type' => 'type' + 'type' => 'type', + 'updatedAt' => 'updatedAt' ]; /** @@ -267,12 +279,14 @@ public function isNullableSetToNull(string $property): bool 'category' => 'setCategory', 'categoryData' => 'setCategoryData', 'counterparty' => 'setCounterparty', + 'createdAt' => 'setCreatedAt', 'creationDate' => 'setCreationDate', 'description' => 'setDescription', 'directDebitInformation' => 'setDirectDebitInformation', 'direction' => 'setDirection', 'eventId' => 'setEventId', 'events' => 'setEvents', + 'executionDate' => 'setExecutionDate', 'externalReason' => 'setExternalReason', 'id' => 'setId', 'paymentInstrument' => 'setPaymentInstrument', @@ -284,7 +298,8 @@ public function isNullableSetToNull(string $property): bool 'status' => 'setStatus', 'tracking' => 'setTracking', 'transactionRulesResult' => 'setTransactionRulesResult', - 'type' => 'setType' + 'type' => 'setType', + 'updatedAt' => 'setUpdatedAt' ]; /** @@ -301,12 +316,14 @@ public function isNullableSetToNull(string $property): bool 'category' => 'getCategory', 'categoryData' => 'getCategoryData', 'counterparty' => 'getCounterparty', + 'createdAt' => 'getCreatedAt', 'creationDate' => 'getCreationDate', 'description' => 'getDescription', 'directDebitInformation' => 'getDirectDebitInformation', 'direction' => 'getDirection', 'eventId' => 'getEventId', 'events' => 'getEvents', + 'executionDate' => 'getExecutionDate', 'externalReason' => 'getExternalReason', 'id' => 'getId', 'paymentInstrument' => 'getPaymentInstrument', @@ -318,7 +335,8 @@ public function isNullableSetToNull(string $property): bool 'status' => 'getStatus', 'tracking' => 'getTracking', 'transactionRulesResult' => 'getTransactionRulesResult', - 'type' => 'getType' + 'type' => 'getType', + 'updatedAt' => 'getUpdatedAt' ]; /** @@ -372,6 +390,7 @@ public function getModelName() public const DIRECTION_OUTGOING = 'outgoing'; public const REASON_ACCOUNT_HIERARCHY_NOT_ACTIVE = 'accountHierarchyNotActive'; public const REASON_AMOUNT_LIMIT_EXCEEDED = 'amountLimitExceeded'; + public const REASON_APPROVAL_EXPIRED = 'approvalExpired'; public const REASON_APPROVED = 'approved'; public const REASON_BALANCE_ACCOUNT_TEMPORARILY_BLOCKED_BY_TRANSACTION_RULE = 'balanceAccountTemporarilyBlockedByTransactionRule'; public const REASON_COUNTERPARTY_ACCOUNT_BLOCKED = 'counterpartyAccountBlocked'; @@ -538,6 +557,7 @@ public function getReasonAllowableValues() return [ self::REASON_ACCOUNT_HIERARCHY_NOT_ACTIVE, self::REASON_AMOUNT_LIMIT_EXCEEDED, + self::REASON_APPROVAL_EXPIRED, self::REASON_APPROVED, self::REASON_BALANCE_ACCOUNT_TEMPORARILY_BLOCKED_BY_TRANSACTION_RULE, self::REASON_COUNTERPARTY_ACCOUNT_BLOCKED, @@ -710,12 +730,14 @@ public function __construct(?array $data = null) $this->setIfExists('category', $data ?? [], null); $this->setIfExists('categoryData', $data ?? [], null); $this->setIfExists('counterparty', $data ?? [], null); + $this->setIfExists('createdAt', $data ?? [], null); $this->setIfExists('creationDate', $data ?? [], null); $this->setIfExists('description', $data ?? [], null); $this->setIfExists('directDebitInformation', $data ?? [], null); $this->setIfExists('direction', $data ?? [], null); $this->setIfExists('eventId', $data ?? [], null); $this->setIfExists('events', $data ?? [], null); + $this->setIfExists('executionDate', $data ?? [], null); $this->setIfExists('externalReason', $data ?? [], null); $this->setIfExists('id', $data ?? [], null); $this->setIfExists('paymentInstrument', $data ?? [], null); @@ -728,6 +750,7 @@ public function __construct(?array $data = null) $this->setIfExists('tracking', $data ?? [], null); $this->setIfExists('transactionRulesResult', $data ?? [], null); $this->setIfExists('type', $data ?? [], null); + $this->setIfExists('updatedAt', $data ?? [], null); } /** @@ -1028,10 +1051,35 @@ public function setCounterparty($counterparty) return $this; } + /** + * Gets createdAt + * + * @return \DateTime|null + */ + public function getCreatedAt() + { + return $this->container['createdAt']; + } + + /** + * Sets createdAt + * + * @param \DateTime|null $createdAt The date and time when the transfer was created, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**. + * + * @return self + */ + public function setCreatedAt($createdAt) + { + $this->container['createdAt'] = $createdAt; + + return $this; + } + /** * Gets creationDate * * @return \DateTime|null + * @deprecated since Transfers API v3. "Use createdAt or updatedAt" */ public function getCreationDate() { @@ -1044,6 +1092,7 @@ public function getCreationDate() * @param \DateTime|null $creationDate The date and time when the event was triggered, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**. * * @return self + * @deprecated since Transfers API v3. "Use createdAt or updatedAt" */ public function setCreationDate($creationDate) { @@ -1182,6 +1231,30 @@ public function setEvents($events) return $this; } + /** + * Gets executionDate + * + * @return \Adyen\Model\Transfers\ExecutionDate|null + */ + public function getExecutionDate() + { + return $this->container['executionDate']; + } + + /** + * Sets executionDate + * + * @param \Adyen\Model\Transfers\ExecutionDate|null $executionDate executionDate + * + * @return self + */ + public function setExecutionDate($executionDate) + { + $this->container['executionDate'] = $executionDate; + + return $this; + } + /** * Gets externalReason * @@ -1397,7 +1470,7 @@ public function getStatus() /** * Sets status * - * @param string $status The result of the transfer. For example, **authorised**, **refused**, or **error**. + * @param string $status The result of the transfer. For example: - **received**: an outgoing transfer request is created. - **authorised**: the transfer request is authorized and the funds are reserved. - **booked**: the funds are deducted from your user's balance account. - **failed**: the transfer is rejected by the counterparty's bank. - **returned**: the transfer is returned by the counterparty's bank. * * @return self */ @@ -1499,6 +1572,30 @@ public function setType($type) return $this; } + + /** + * Gets updatedAt + * + * @return \DateTime|null + */ + public function getUpdatedAt() + { + return $this->container['updatedAt']; + } + + /** + * Sets updatedAt + * + * @param \DateTime|null $updatedAt The date and time when the event was triggered, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**. + * + * @return self + */ + public function setUpdatedAt($updatedAt) + { + $this->container['updatedAt'] = $updatedAt; + + return $this; + } /** * Returns true if offset exists. False otherwise. * diff --git a/src/Adyen/Model/Transfers/TransferDataTracking.php b/src/Adyen/Model/Transfers/TransferDataTracking.php index 3e67a6af7..a6d085527 100644 --- a/src/Adyen/Model/Transfers/TransferDataTracking.php +++ b/src/Adyen/Model/Transfers/TransferDataTracking.php @@ -15,7 +15,7 @@ namespace Adyen\Model\Transfers; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\Transfers\ObjectSerializer; /** @@ -24,7 +24,7 @@ * The latest tracking information of the transfer. * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class TransferDataTracking implements ModelInterface, ArrayAccess, \JsonSerializable { @@ -320,7 +320,7 @@ public function getStatus() /** * Sets status * - * @param string $status The status of the transfer. Possible values: - **pending**: the transfer is under internal review. - **failed**: the transfer failed Adyen's internal review. For details, see `reason`. + * @param string $status The status of the transfer. Possible values: - **pending**: the transfer is under internal review by Adyen. - **failed**: the transfer failed Adyen's internal review. For details, see `reason`. * * @return self */ diff --git a/src/Adyen/Model/Transfers/TransferEvent.php b/src/Adyen/Model/Transfers/TransferEvent.php index 272506a02..bdc6d2e7a 100644 --- a/src/Adyen/Model/Transfers/TransferEvent.php +++ b/src/Adyen/Model/Transfers/TransferEvent.php @@ -15,14 +15,14 @@ namespace Adyen\Model\Transfers; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\Transfers\ObjectSerializer; /** * TransferEvent Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class TransferEvent implements ModelInterface, ArrayAccess, \JsonSerializable { @@ -316,6 +316,7 @@ public function getModelName() public const REASON_ACCOUNT_HIERARCHY_NOT_ACTIVE = 'accountHierarchyNotActive'; public const REASON_AMOUNT_LIMIT_EXCEEDED = 'amountLimitExceeded'; + public const REASON_APPROVAL_EXPIRED = 'approvalExpired'; public const REASON_APPROVED = 'approved'; public const REASON_BALANCE_ACCOUNT_TEMPORARILY_BLOCKED_BY_TRANSACTION_RULE = 'balanceAccountTemporarilyBlockedByTransactionRule'; public const REASON_COUNTERPARTY_ACCOUNT_BLOCKED = 'counterpartyAccountBlocked'; @@ -418,6 +419,7 @@ public function getReasonAllowableValues() return [ self::REASON_ACCOUNT_HIERARCHY_NOT_ACTIVE, self::REASON_AMOUNT_LIMIT_EXCEEDED, + self::REASON_APPROVAL_EXPIRED, self::REASON_APPROVED, self::REASON_BALANCE_ACCOUNT_TEMPORARILY_BLOCKED_BY_TRANSACTION_RULE, self::REASON_COUNTERPARTY_ACCOUNT_BLOCKED, diff --git a/src/Adyen/Model/Transfers/TransferEventEventsDataInner.php b/src/Adyen/Model/Transfers/TransferEventEventsDataInner.php index 51227cd10..391da27f1 100644 --- a/src/Adyen/Model/Transfers/TransferEventEventsDataInner.php +++ b/src/Adyen/Model/Transfers/TransferEventEventsDataInner.php @@ -15,14 +15,14 @@ namespace Adyen\Model\Transfers; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\Transfers\ObjectSerializer; /** * TransferEventEventsDataInner Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class TransferEventEventsDataInner implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/Transfers/TransferEventTrackingData.php b/src/Adyen/Model/Transfers/TransferEventTrackingData.php index c4c0ee210..a22821ccd 100644 --- a/src/Adyen/Model/Transfers/TransferEventTrackingData.php +++ b/src/Adyen/Model/Transfers/TransferEventTrackingData.php @@ -15,7 +15,7 @@ namespace Adyen\Model\Transfers; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\Transfers\ObjectSerializer; /** @@ -24,7 +24,7 @@ * Additional information for the tracking event. * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class TransferEventTrackingData implements ModelInterface, ArrayAccess, \JsonSerializable { @@ -320,7 +320,7 @@ public function getStatus() /** * Sets status * - * @param string $status The status of the transfer. Possible values: - **pending**: the transfer is under internal review. - **failed**: the transfer failed Adyen's internal review. For details, see `reason`. + * @param string $status The status of the transfer. Possible values: - **pending**: the transfer is under internal review by Adyen. - **failed**: the transfer failed Adyen's internal review. For details, see `reason`. * * @return self */ diff --git a/src/Adyen/Model/Transfers/TransferInfo.php b/src/Adyen/Model/Transfers/TransferInfo.php index 159e3f38f..ba0ad92b7 100644 --- a/src/Adyen/Model/Transfers/TransferInfo.php +++ b/src/Adyen/Model/Transfers/TransferInfo.php @@ -15,14 +15,14 @@ namespace Adyen\Model\Transfers; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\Transfers\ObjectSerializer; /** * TransferInfo Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class TransferInfo implements ModelInterface, ArrayAccess, \JsonSerializable { @@ -46,6 +46,7 @@ class TransferInfo implements ModelInterface, ArrayAccess, \JsonSerializable 'category' => 'string', 'counterparty' => '\Adyen\Model\Transfers\CounterpartyInfoV3', 'description' => 'string', + 'executionDate' => '\Adyen\Model\Transfers\ExecutionDate', 'paymentInstrumentId' => 'string', 'priorities' => 'string[]', 'priority' => 'string', @@ -69,6 +70,7 @@ class TransferInfo implements ModelInterface, ArrayAccess, \JsonSerializable 'category' => null, 'counterparty' => null, 'description' => null, + 'executionDate' => null, 'paymentInstrumentId' => null, 'priorities' => null, 'priority' => null, @@ -90,6 +92,7 @@ class TransferInfo implements ModelInterface, ArrayAccess, \JsonSerializable 'category' => false, 'counterparty' => false, 'description' => false, + 'executionDate' => false, 'paymentInstrumentId' => false, 'priorities' => false, 'priority' => false, @@ -191,6 +194,7 @@ public function isNullableSetToNull(string $property): bool 'category' => 'category', 'counterparty' => 'counterparty', 'description' => 'description', + 'executionDate' => 'executionDate', 'paymentInstrumentId' => 'paymentInstrumentId', 'priorities' => 'priorities', 'priority' => 'priority', @@ -212,6 +216,7 @@ public function isNullableSetToNull(string $property): bool 'category' => 'setCategory', 'counterparty' => 'setCounterparty', 'description' => 'setDescription', + 'executionDate' => 'setExecutionDate', 'paymentInstrumentId' => 'setPaymentInstrumentId', 'priorities' => 'setPriorities', 'priority' => 'setPriority', @@ -233,6 +238,7 @@ public function isNullableSetToNull(string $property): bool 'category' => 'getCategory', 'counterparty' => 'getCounterparty', 'description' => 'getDescription', + 'executionDate' => 'getExecutionDate', 'paymentInstrumentId' => 'getPaymentInstrumentId', 'priorities' => 'getPriorities', 'priority' => 'getPriority', @@ -387,6 +393,7 @@ public function __construct(?array $data = null) $this->setIfExists('category', $data ?? [], null); $this->setIfExists('counterparty', $data ?? [], null); $this->setIfExists('description', $data ?? [], null); + $this->setIfExists('executionDate', $data ?? [], null); $this->setIfExists('paymentInstrumentId', $data ?? [], null); $this->setIfExists('priorities', $data ?? [], null); $this->setIfExists('priority', $data ?? [], null); @@ -605,6 +612,30 @@ public function setDescription($description) return $this; } + /** + * Gets executionDate + * + * @return \Adyen\Model\Transfers\ExecutionDate|null + */ + public function getExecutionDate() + { + return $this->container['executionDate']; + } + + /** + * Sets executionDate + * + * @param \Adyen\Model\Transfers\ExecutionDate|null $executionDate executionDate + * + * @return self + */ + public function setExecutionDate($executionDate) + { + $this->container['executionDate'] = $executionDate; + + return $this; + } + /** * Gets paymentInstrumentId * @@ -642,7 +673,7 @@ public function getPriorities() /** * Sets priorities * - * @param string[]|null $priorities The list of priorities for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. You can provide multiple priorities. Adyen will try to pay out using the priority you list first. If that's not possible, it moves on to the next option in the order of your provided priorities. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers in [SEPA countries](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). Required for transfers with `category` **bank**. For more details, see [fallback priorities](https://docs.adyen.com/payouts/payout-service/payout-to-users/#fallback-priorities). + * @param string[]|null $priorities The list of priorities for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. You can provide multiple priorities. Adyen will try to pay out using the priority you list first. If that's not possible, it moves on to the next option in the order of your provided priorities. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). Required for transfers with `category` **bank**. For more details, see [fallback priorities](https://docs.adyen.com/payouts/payout-service/payout-to-users/#fallback-priorities). * * @return self */ @@ -675,7 +706,7 @@ public function getPriority() /** * Sets priority * - * @param string|null $priority The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with `category` **bank**. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers in [SEPA countries](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). + * @param string|null $priority The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with `category` **bank**. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). * * @return self */ diff --git a/src/Adyen/Model/Transfers/TransferNotificationCounterParty.php b/src/Adyen/Model/Transfers/TransferNotificationCounterParty.php index 9cd90340b..ccead9052 100644 --- a/src/Adyen/Model/Transfers/TransferNotificationCounterParty.php +++ b/src/Adyen/Model/Transfers/TransferNotificationCounterParty.php @@ -15,14 +15,14 @@ namespace Adyen\Model\Transfers; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\Transfers\ObjectSerializer; /** * TransferNotificationCounterParty Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class TransferNotificationCounterParty implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/Transfers/TransferNotificationMerchantData.php b/src/Adyen/Model/Transfers/TransferNotificationMerchantData.php index 2c4c32901..dc7138126 100644 --- a/src/Adyen/Model/Transfers/TransferNotificationMerchantData.php +++ b/src/Adyen/Model/Transfers/TransferNotificationMerchantData.php @@ -15,14 +15,14 @@ namespace Adyen\Model\Transfers; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\Transfers\ObjectSerializer; /** * TransferNotificationMerchantData Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class TransferNotificationMerchantData implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/Transfers/TransferNotificationValidationFact.php b/src/Adyen/Model/Transfers/TransferNotificationValidationFact.php index a855e8b6c..6c1f98900 100644 --- a/src/Adyen/Model/Transfers/TransferNotificationValidationFact.php +++ b/src/Adyen/Model/Transfers/TransferNotificationValidationFact.php @@ -15,14 +15,14 @@ namespace Adyen\Model\Transfers; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\Transfers\ObjectSerializer; /** * TransferNotificationValidationFact Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class TransferNotificationValidationFact implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/Transfers/TransferRequestReview.php b/src/Adyen/Model/Transfers/TransferRequestReview.php index ea79f3602..2738168b2 100644 --- a/src/Adyen/Model/Transfers/TransferRequestReview.php +++ b/src/Adyen/Model/Transfers/TransferRequestReview.php @@ -15,14 +15,14 @@ namespace Adyen\Model\Transfers; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\Transfers\ObjectSerializer; /** * TransferRequestReview Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class TransferRequestReview implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/Transfers/TransferReview.php b/src/Adyen/Model/Transfers/TransferReview.php index f8bc0be36..341041195 100644 --- a/src/Adyen/Model/Transfers/TransferReview.php +++ b/src/Adyen/Model/Transfers/TransferReview.php @@ -15,14 +15,14 @@ namespace Adyen\Model\Transfers; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\Transfers\ObjectSerializer; /** * TransferReview Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class TransferReview implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/Transfers/TransferServiceRestServiceError.php b/src/Adyen/Model/Transfers/TransferServiceRestServiceError.php index ee6783817..c97feb141 100644 --- a/src/Adyen/Model/Transfers/TransferServiceRestServiceError.php +++ b/src/Adyen/Model/Transfers/TransferServiceRestServiceError.php @@ -15,14 +15,14 @@ namespace Adyen\Model\Transfers; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\Transfers\ObjectSerializer; /** * TransferServiceRestServiceError Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class TransferServiceRestServiceError implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/Transfers/TransferView.php b/src/Adyen/Model/Transfers/TransferView.php index 6f420a711..21b7adf33 100644 --- a/src/Adyen/Model/Transfers/TransferView.php +++ b/src/Adyen/Model/Transfers/TransferView.php @@ -15,14 +15,14 @@ namespace Adyen\Model\Transfers; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\Transfers\ObjectSerializer; /** * TransferView Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class TransferView implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/Transfers/UKLocalAccountIdentification.php b/src/Adyen/Model/Transfers/UKLocalAccountIdentification.php index 14bab4545..032731a97 100644 --- a/src/Adyen/Model/Transfers/UKLocalAccountIdentification.php +++ b/src/Adyen/Model/Transfers/UKLocalAccountIdentification.php @@ -15,14 +15,14 @@ namespace Adyen\Model\Transfers; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\Transfers\ObjectSerializer; /** * UKLocalAccountIdentification Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class UKLocalAccountIdentification implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/Transfers/USLocalAccountIdentification.php b/src/Adyen/Model/Transfers/USLocalAccountIdentification.php index 5ab321163..00b9694bb 100644 --- a/src/Adyen/Model/Transfers/USLocalAccountIdentification.php +++ b/src/Adyen/Model/Transfers/USLocalAccountIdentification.php @@ -15,14 +15,14 @@ namespace Adyen\Model\Transfers; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\Transfers\ObjectSerializer; /** * USLocalAccountIdentification Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class USLocalAccountIdentification implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/Transfers/UltimatePartyIdentification.php b/src/Adyen/Model/Transfers/UltimatePartyIdentification.php index f61dbca25..5291afd20 100644 --- a/src/Adyen/Model/Transfers/UltimatePartyIdentification.php +++ b/src/Adyen/Model/Transfers/UltimatePartyIdentification.php @@ -15,14 +15,14 @@ namespace Adyen\Model\Transfers; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\Transfers\ObjectSerializer; /** * UltimatePartyIdentification Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class UltimatePartyIdentification implements ModelInterface, ArrayAccess, \JsonSerializable { @@ -43,11 +43,13 @@ class UltimatePartyIdentification implements ModelInterface, ArrayAccess, \JsonS protected static $openAPITypes = [ 'address' => '\Adyen\Model\Transfers\Address', 'dateOfBirth' => '\DateTime', + 'email' => 'string', 'firstName' => 'string', 'fullName' => 'string', 'lastName' => 'string', 'reference' => 'string', - 'type' => 'string' + 'type' => 'string', + 'url' => 'string' ]; /** @@ -60,11 +62,13 @@ class UltimatePartyIdentification implements ModelInterface, ArrayAccess, \JsonS protected static $openAPIFormats = [ 'address' => null, 'dateOfBirth' => 'date', + 'email' => null, 'firstName' => null, 'fullName' => null, 'lastName' => null, 'reference' => null, - 'type' => null + 'type' => null, + 'url' => null ]; /** @@ -75,11 +79,13 @@ class UltimatePartyIdentification implements ModelInterface, ArrayAccess, \JsonS protected static $openAPINullables = [ 'address' => false, 'dateOfBirth' => false, + 'email' => false, 'firstName' => false, 'fullName' => false, 'lastName' => false, 'reference' => false, - 'type' => false + 'type' => false, + 'url' => false ]; /** @@ -170,11 +176,13 @@ public function isNullableSetToNull(string $property): bool protected static $attributeMap = [ 'address' => 'address', 'dateOfBirth' => 'dateOfBirth', + 'email' => 'email', 'firstName' => 'firstName', 'fullName' => 'fullName', 'lastName' => 'lastName', 'reference' => 'reference', - 'type' => 'type' + 'type' => 'type', + 'url' => 'url' ]; /** @@ -185,11 +193,13 @@ public function isNullableSetToNull(string $property): bool protected static $setters = [ 'address' => 'setAddress', 'dateOfBirth' => 'setDateOfBirth', + 'email' => 'setEmail', 'firstName' => 'setFirstName', 'fullName' => 'setFullName', 'lastName' => 'setLastName', 'reference' => 'setReference', - 'type' => 'setType' + 'type' => 'setType', + 'url' => 'setUrl' ]; /** @@ -200,11 +210,13 @@ public function isNullableSetToNull(string $property): bool protected static $getters = [ 'address' => 'getAddress', 'dateOfBirth' => 'getDateOfBirth', + 'email' => 'getEmail', 'firstName' => 'getFirstName', 'fullName' => 'getFullName', 'lastName' => 'getLastName', 'reference' => 'getReference', - 'type' => 'getType' + 'type' => 'getType', + 'url' => 'getUrl' ]; /** @@ -282,11 +294,13 @@ public function __construct(?array $data = null) { $this->setIfExists('address', $data ?? [], null); $this->setIfExists('dateOfBirth', $data ?? [], null); + $this->setIfExists('email', $data ?? [], null); $this->setIfExists('firstName', $data ?? [], null); $this->setIfExists('fullName', $data ?? [], null); $this->setIfExists('lastName', $data ?? [], null); $this->setIfExists('reference', $data ?? [], null); $this->setIfExists('type', $data ?? [], null); + $this->setIfExists('url', $data ?? [], null); } /** @@ -388,6 +402,30 @@ public function setDateOfBirth($dateOfBirth) return $this; } + /** + * Gets email + * + * @return string|null + */ + public function getEmail() + { + return $this->container['email']; + } + + /** + * Sets email + * + * @param string|null $email The email address of the organization or individual. Maximum length: 254 characters. + * + * @return self + */ + public function setEmail($email) + { + $this->container['email'] = $email; + + return $this; + } + /** * Gets firstName * @@ -517,6 +555,30 @@ public function setType($type) return $this; } + + /** + * Gets url + * + * @return string|null + */ + public function getUrl() + { + return $this->container['url']; + } + + /** + * Sets url + * + * @param string|null $url The URL of the organization or individual. Maximum length: 255 characters. + * + * @return self + */ + public function setUrl($url) + { + $this->container['url'] = $url; + + return $this; + } /** * Returns true if offset exists. False otherwise. * diff --git a/src/Adyen/Service/Transfers/TransactionsApi.php b/src/Adyen/Service/Transfers/TransactionsApi.php index 3e1c89996..659b8521e 100644 --- a/src/Adyen/Service/Transfers/TransactionsApi.php +++ b/src/Adyen/Service/Transfers/TransactionsApi.php @@ -42,7 +42,7 @@ public function __construct(Client $client) /** * Get all transactions * - * @param array|null $requestOptions ['queryParams' => ['balancePlatform'=> string, 'paymentInstrumentId'=> string, 'accountHolderId'=> string, 'balanceAccountId'=> string, 'cursor'=> string, 'createdSince'=> \DateTime, 'createdUntil'=> \DateTime, 'limit'=> int]] + * @param array|null $requestOptions ['queryParams' => ['balancePlatform'=> string, 'paymentInstrumentId'=> string, 'accountHolderId'=> string, 'balanceAccountId'=> string, 'cursor'=> string, 'createdSince'=> \DateTime, 'createdUntil'=> \DateTime, 'sortOrder'=> string, 'limit'=> int]] * @return \Adyen\Model\Transfers\TransactionSearchResponse * @throws AdyenException */ diff --git a/src/Adyen/Service/Transfers/TransfersApi.php b/src/Adyen/Service/Transfers/TransfersApi.php index aeda3ef5f..23ede4f10 100644 --- a/src/Adyen/Service/Transfers/TransfersApi.php +++ b/src/Adyen/Service/Transfers/TransfersApi.php @@ -70,7 +70,7 @@ public function cancelInitiatedTransfers(\Adyen\Model\Transfers\CancelTransfersR /** * Get all transfers * - * @param array|null $requestOptions ['queryParams' => ['balancePlatform'=> string, 'accountHolderId'=> string, 'balanceAccountId'=> string, 'paymentInstrumentId'=> string, 'reference'=> string, 'category'=> string, 'createdSince'=> \DateTime, 'createdUntil'=> \DateTime, 'cursor'=> string, 'limit'=> int]] + * @param array|null $requestOptions ['queryParams' => ['balancePlatform'=> string, 'accountHolderId'=> string, 'balanceAccountId'=> string, 'paymentInstrumentId'=> string, 'reference'=> string, 'category'=> string, 'createdSince'=> \DateTime, 'createdUntil'=> \DateTime, 'sortOrder'=> string, 'cursor'=> string, 'limit'=> int]] * @return \Adyen\Model\Transfers\FindTransfersResponse * @throws AdyenException */ From 625d749ae02354b8b233b768fc6117d43b034b90 Mon Sep 17 00:00:00 2001 From: beppe Date: Mon, 11 Aug 2025 15:10:48 +0200 Subject: [PATCH 3/3] Generate BalancePlatform services and models --- .../AULocalAccountIdentification.php | 4 +- .../Model/BalancePlatform/AccountHolder.php | 4 +- .../AccountHolderCapability.php | 4 +- .../BalancePlatform/AccountHolderInfo.php | 4 +- .../AccountHolderUpdateRequest.php | 4 +- .../AccountSupportingEntityCapability.php | 4 +- .../ActiveNetworkTokensRestriction.php | 4 +- .../AdditionalBankIdentification.php | 10 +- ...dditionalBankIdentificationRequirement.php | 537 ++++++++++++++++++ src/Adyen/Model/BalancePlatform/Address.php | 4 +- .../BalancePlatform/AddressRequirement.php | 4 +- src/Adyen/Model/BalancePlatform/Amount.php | 4 +- .../AmountMinMaxRequirement.php | 4 +- .../AmountNonZeroDecimalsRequirement.php | 4 +- ...AssociationDelegatedAuthenticationData.php | 4 +- .../AssociationFinaliseRequest.php | 4 +- .../AssociationFinaliseResponse.php | 4 +- .../AssociationInitiateRequest.php | 4 +- .../AssociationInitiateResponse.php | 4 +- .../Model/BalancePlatform/Authentication.php | 4 +- .../BalancePlatform/AuthorisedCardUsers.php | 404 +++++++++++++ .../BRLocalAccountIdentification.php | 4 +- src/Adyen/Model/BalancePlatform/Balance.php | 4 +- .../Model/BalancePlatform/BalanceAccount.php | 6 +- .../BalancePlatform/BalanceAccountBase.php | 6 +- .../BalancePlatform/BalanceAccountInfo.php | 6 +- .../BalanceAccountUpdateRequest.php | 6 +- .../Model/BalancePlatform/BalancePlatform.php | 4 +- .../BalanceSweepConfigurationsResponse.php | 4 +- .../Model/BalancePlatform/BankAccount.php | 4 +- .../BankAccountAccountIdentification.php | 4 +- .../BalancePlatform/BankAccountDetails.php | 4 +- ...nkAccountIdentificationTypeRequirement.php | 4 +- ...AccountIdentificationValidationRequest.php | 4 +- ...ValidationRequestAccountIdentification.php | 4 +- .../BalancePlatform/BankAccountModel.php | 4 +- .../BalancePlatform/BankIdentification.php | 4 +- .../BrandVariantsRestriction.php | 4 +- .../Model/BalancePlatform/BulkAddress.php | 4 +- .../CALocalAccountIdentification.php | 4 +- .../CZLocalAccountIdentification.php | 4 +- .../BalancePlatform/CapabilityProblem.php | 4 +- .../CapabilityProblemEntity.php | 4 +- .../CapabilityProblemEntityRecursive.php | 4 +- .../BalancePlatform/CapabilitySettings.php | 4 +- .../Model/BalancePlatform/CapitalBalance.php | 4 +- .../BalancePlatform/CapitalGrantAccount.php | 4 +- src/Adyen/Model/BalancePlatform/Card.php | 49 +- .../BalancePlatform/CardConfiguration.php | 4 +- src/Adyen/Model/BalancePlatform/CardInfo.php | 49 +- src/Adyen/Model/BalancePlatform/CardOrder.php | 4 +- .../Model/BalancePlatform/CardOrderItem.php | 6 +- .../CardOrderItemDeliveryStatus.php | 4 +- .../Model/BalancePlatform/ContactDetails.php | 4 +- .../Model/BalancePlatform/Counterparty.php | 4 +- .../CounterpartyBankRestriction.php | 4 +- .../CounterpartyTypesRestriction.php | 4 +- .../BalancePlatform/CountriesRestriction.php | 4 +- .../CreateSweepConfigurationV2.php | 8 +- .../DKLocalAccountIdentification.php | 4 +- .../BalancePlatform/DayOfWeekRestriction.php | 4 +- .../DelegatedAuthenticationData.php | 4 +- .../Model/BalancePlatform/DeliveryAddress.php | 6 +- .../Model/BalancePlatform/DeliveryContact.php | 4 +- src/Adyen/Model/BalancePlatform/Device.php | 4 +- .../Model/BalancePlatform/DeviceInfo.php | 4 +- .../DifferentCurrenciesRestriction.php | 4 +- src/Adyen/Model/BalancePlatform/Duration.php | 4 +- .../BalancePlatform/EntryModesRestriction.php | 4 +- src/Adyen/Model/BalancePlatform/Expiry.php | 4 +- src/Adyen/Model/BalancePlatform/Fee.php | 4 +- .../GetNetworkTokenResponse.php | 4 +- .../BalancePlatform/GetTaxFormResponse.php | 4 +- .../Model/BalancePlatform/GrantLimit.php | 4 +- .../Model/BalancePlatform/GrantOffer.php | 4 +- .../Model/BalancePlatform/GrantOffers.php | 4 +- .../HKLocalAccountIdentification.php | 4 +- .../HULocalAccountIdentification.php | 4 +- src/Adyen/Model/BalancePlatform/Href.php | 4 +- .../IbanAccountIdentification.php | 4 +- .../IbanAccountIdentificationRequirement.php | 4 +- .../InternationalTransactionRestriction.php | 4 +- .../Model/BalancePlatform/InvalidField.php | 4 +- src/Adyen/Model/BalancePlatform/Link.php | 4 +- .../ListNetworkTokensResponse.php | 4 +- .../MatchingTransactionsRestriction.php | 4 +- .../MatchingValuesRestriction.php | 4 +- .../Model/BalancePlatform/MccsRestriction.php | 4 +- .../BalancePlatform/MerchantAcquirerPair.php | 4 +- .../MerchantNamesRestriction.php | 4 +- .../BalancePlatform/MerchantsRestriction.php | 4 +- .../NOLocalAccountIdentification.php | 4 +- .../NZLocalAccountIdentification.php | 4 +- src/Adyen/Model/BalancePlatform/Name.php | 4 +- .../Model/BalancePlatform/NetworkToken.php | 37 +- .../NetworkTokenActivationDataRequest.php | 404 +++++++++++++ .../NetworkTokenActivationDataResponse.php | 404 +++++++++++++ .../BalancePlatform/NetworkTokenRequestor.php | 435 ++++++++++++++ .../NumberAndBicAccountIdentification.php | 4 +- .../PLLocalAccountIdentification.php | 4 +- .../PaginatedAccountHoldersResponse.php | 4 +- .../PaginatedBalanceAccountsResponse.php | 4 +- .../PaginatedGetCardOrderItemResponse.php | 4 +- .../PaginatedGetCardOrderResponse.php | 4 +- .../PaginatedPaymentInstrumentsResponse.php | 4 +- .../BalancePlatform/PaymentInstrument.php | 4 +- ...itionalBankAccountIdentificationsInner.php | 4 +- .../PaymentInstrumentGroup.php | 4 +- .../PaymentInstrumentGroupInfo.php | 4 +- .../BalancePlatform/PaymentInstrumentInfo.php | 4 +- .../PaymentInstrumentRequirement.php | 4 +- .../PaymentInstrumentRevealInfo.php | 4 +- .../PaymentInstrumentRevealRequest.php | 4 +- .../PaymentInstrumentRevealResponse.php | 4 +- .../PaymentInstrumentUpdateRequest.php | 4 +- src/Adyen/Model/BalancePlatform/Phone.php | 4 +- .../Model/BalancePlatform/PhoneNumber.php | 4 +- .../BalancePlatform/PinChangeRequest.php | 4 +- .../BalancePlatform/PinChangeResponse.php | 4 +- .../PlatformPaymentConfiguration.php | 8 +- .../ProcessingTypesRestriction.php | 4 +- .../BalancePlatform/PublicKeyResponse.php | 4 +- .../RegisterSCAFinalResponse.php | 4 +- .../BalancePlatform/RegisterSCARequest.php | 4 +- .../BalancePlatform/RegisterSCAResponse.php | 4 +- .../BalancePlatform/RemediatingAction.php | 4 +- src/Adyen/Model/BalancePlatform/Repayment.php | 4 +- .../Model/BalancePlatform/RepaymentTerm.php | 4 +- .../BalancePlatform/RestServiceError.php | 4 +- .../BalancePlatform/RevealPinRequest.php | 4 +- .../BalancePlatform/RevealPinResponse.php | 4 +- .../Model/BalancePlatform/RiskScores.php | 4 +- .../BalancePlatform/RiskScoresRestriction.php | 4 +- .../SELocalAccountIdentification.php | 4 +- .../SGLocalAccountIdentification.php | 4 +- .../BalancePlatform/SameAmountRestriction.php | 4 +- .../SameCounterpartyRestriction.php | 4 +- .../SearchRegisteredDevicesResponse.php | 4 +- .../SourceAccountTypesRestriction.php | 4 +- .../Model/BalancePlatform/StringMatch.php | 4 +- .../BalancePlatform/SweepConfigurationV2.php | 8 +- .../BalancePlatform/SweepCounterparty.php | 4 +- .../Model/BalancePlatform/SweepSchedule.php | 4 +- .../BalancePlatform/ThresholdRepayment.php | 4 +- src/Adyen/Model/BalancePlatform/TimeOfDay.php | 4 +- .../BalancePlatform/TimeOfDayRestriction.php | 4 +- .../TokenRequestorsRestriction.php | 4 +- .../TotalAmountRestriction.php | 4 +- .../Model/BalancePlatform/TransactionRule.php | 8 +- .../TransactionRuleEntityKey.php | 4 +- .../BalancePlatform/TransactionRuleInfo.php | 8 +- .../TransactionRuleInterval.php | 4 +- .../TransactionRuleResponse.php | 4 +- .../TransactionRuleRestrictions.php | 47 +- .../TransactionRulesResponse.php | 4 +- .../Model/BalancePlatform/TransferRoute.php | 8 +- .../BalancePlatform/TransferRouteRequest.php | 6 +- .../TransferRouteRequirementsInner.php | 82 ++- .../BalancePlatform/TransferRouteResponse.php | 4 +- .../UKLocalAccountIdentification.php | 4 +- .../USInstantPayoutAddressRequirement.php | 4 +- .../USInternationalAchAddressRequirement.php | 4 +- .../USInternationalAchPriorityRequirement.php | 469 +++++++++++++++ .../USLocalAccountIdentification.php | 4 +- .../UpdateNetworkTokenRequest.php | 4 +- .../UpdatePaymentInstrument.php | 4 +- .../UpdateSweepConfigurationV2.php | 8 +- .../BalancePlatform/VerificationDeadline.php | 4 +- .../BalancePlatform/VerificationError.php | 6 +- .../VerificationErrorRecursive.php | 6 +- .../WalletProviderAccountScoreRestriction.php | 4 +- .../WalletProviderDeviceScore.php | 4 +- .../WalletProviderDeviceType.php | 473 +++++++++++++++ .../BalancePlatform/AccountHoldersApi.php | 2 +- .../AuthorizedCardUsersApi.php | 100 ++++ .../BalancePlatform/PaymentInstrumentsApi.php | 31 + 176 files changed, 3822 insertions(+), 397 deletions(-) create mode 100644 src/Adyen/Model/BalancePlatform/AdditionalBankIdentificationRequirement.php create mode 100644 src/Adyen/Model/BalancePlatform/AuthorisedCardUsers.php create mode 100644 src/Adyen/Model/BalancePlatform/NetworkTokenActivationDataRequest.php create mode 100644 src/Adyen/Model/BalancePlatform/NetworkTokenActivationDataResponse.php create mode 100644 src/Adyen/Model/BalancePlatform/NetworkTokenRequestor.php create mode 100644 src/Adyen/Model/BalancePlatform/USInternationalAchPriorityRequirement.php create mode 100644 src/Adyen/Model/BalancePlatform/WalletProviderDeviceType.php create mode 100644 src/Adyen/Service/BalancePlatform/AuthorizedCardUsersApi.php diff --git a/src/Adyen/Model/BalancePlatform/AULocalAccountIdentification.php b/src/Adyen/Model/BalancePlatform/AULocalAccountIdentification.php index c0e345ced..7139a39a4 100644 --- a/src/Adyen/Model/BalancePlatform/AULocalAccountIdentification.php +++ b/src/Adyen/Model/BalancePlatform/AULocalAccountIdentification.php @@ -15,14 +15,14 @@ namespace Adyen\Model\BalancePlatform; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\BalancePlatform\ObjectSerializer; /** * AULocalAccountIdentification Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class AULocalAccountIdentification implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/BalancePlatform/AccountHolder.php b/src/Adyen/Model/BalancePlatform/AccountHolder.php index 0fb02ee54..48c03bb99 100644 --- a/src/Adyen/Model/BalancePlatform/AccountHolder.php +++ b/src/Adyen/Model/BalancePlatform/AccountHolder.php @@ -15,14 +15,14 @@ namespace Adyen\Model\BalancePlatform; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\BalancePlatform\ObjectSerializer; /** * AccountHolder Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class AccountHolder implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/BalancePlatform/AccountHolderCapability.php b/src/Adyen/Model/BalancePlatform/AccountHolderCapability.php index 01d123c54..e3e962fd2 100644 --- a/src/Adyen/Model/BalancePlatform/AccountHolderCapability.php +++ b/src/Adyen/Model/BalancePlatform/AccountHolderCapability.php @@ -15,14 +15,14 @@ namespace Adyen\Model\BalancePlatform; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\BalancePlatform\ObjectSerializer; /** * AccountHolderCapability Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class AccountHolderCapability implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/BalancePlatform/AccountHolderInfo.php b/src/Adyen/Model/BalancePlatform/AccountHolderInfo.php index 6a1349dc6..281f869d0 100644 --- a/src/Adyen/Model/BalancePlatform/AccountHolderInfo.php +++ b/src/Adyen/Model/BalancePlatform/AccountHolderInfo.php @@ -15,14 +15,14 @@ namespace Adyen\Model\BalancePlatform; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\BalancePlatform\ObjectSerializer; /** * AccountHolderInfo Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class AccountHolderInfo implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/BalancePlatform/AccountHolderUpdateRequest.php b/src/Adyen/Model/BalancePlatform/AccountHolderUpdateRequest.php index 40adeb98f..748ad78e6 100644 --- a/src/Adyen/Model/BalancePlatform/AccountHolderUpdateRequest.php +++ b/src/Adyen/Model/BalancePlatform/AccountHolderUpdateRequest.php @@ -15,14 +15,14 @@ namespace Adyen\Model\BalancePlatform; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\BalancePlatform\ObjectSerializer; /** * AccountHolderUpdateRequest Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class AccountHolderUpdateRequest implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/BalancePlatform/AccountSupportingEntityCapability.php b/src/Adyen/Model/BalancePlatform/AccountSupportingEntityCapability.php index 3d1d6ad3c..e1847ed13 100644 --- a/src/Adyen/Model/BalancePlatform/AccountSupportingEntityCapability.php +++ b/src/Adyen/Model/BalancePlatform/AccountSupportingEntityCapability.php @@ -15,14 +15,14 @@ namespace Adyen\Model\BalancePlatform; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\BalancePlatform\ObjectSerializer; /** * AccountSupportingEntityCapability Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class AccountSupportingEntityCapability implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/BalancePlatform/ActiveNetworkTokensRestriction.php b/src/Adyen/Model/BalancePlatform/ActiveNetworkTokensRestriction.php index 195a14d9c..1daa05ca9 100644 --- a/src/Adyen/Model/BalancePlatform/ActiveNetworkTokensRestriction.php +++ b/src/Adyen/Model/BalancePlatform/ActiveNetworkTokensRestriction.php @@ -15,14 +15,14 @@ namespace Adyen\Model\BalancePlatform; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\BalancePlatform\ObjectSerializer; /** * ActiveNetworkTokensRestriction Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class ActiveNetworkTokensRestriction implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/BalancePlatform/AdditionalBankIdentification.php b/src/Adyen/Model/BalancePlatform/AdditionalBankIdentification.php index 1e7683d5d..75d9e9ac4 100644 --- a/src/Adyen/Model/BalancePlatform/AdditionalBankIdentification.php +++ b/src/Adyen/Model/BalancePlatform/AdditionalBankIdentification.php @@ -15,14 +15,14 @@ namespace Adyen\Model\BalancePlatform; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\BalancePlatform\ObjectSerializer; /** * AdditionalBankIdentification Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class AdditionalBankIdentification implements ModelInterface, ArrayAccess, \JsonSerializable { @@ -218,6 +218,8 @@ public function getModelName() return self::$openAPIModelName; } + public const TYPE_AU_BSB_CODE = 'auBsbCode'; + public const TYPE_CA_ROUTING_NUMBER = 'caRoutingNumber'; public const TYPE_GB_SORT_CODE = 'gbSortCode'; public const TYPE_US_ROUTING_NUMBER = 'usRoutingNumber'; @@ -229,6 +231,8 @@ public function getModelName() public function getTypeAllowableValues() { return [ + self::TYPE_AU_BSB_CODE, + self::TYPE_CA_ROUTING_NUMBER, self::TYPE_GB_SORT_CODE, self::TYPE_US_ROUTING_NUMBER, ]; @@ -340,7 +344,7 @@ public function getType() /** * Sets type * - * @param string|null $type The type of additional bank identification, depending on the country. Possible values: * **gbSortCode**: The 6-digit [UK sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * **usRoutingNumber**: The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or spaces. + * @param string|null $type The type of additional bank identification, depending on the country. Possible values: * **auBsbCode**: The 6-digit [Australian Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or spaces. * **caRoutingNumber**: The 9-digit [Canadian routing number](https://en.wikipedia.org/wiki/Routing_number_(Canada)), in EFT format, without separators or spaces. * **gbSortCode**: The 6-digit [UK sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * **usRoutingNumber**: The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or spaces. * * @return self */ diff --git a/src/Adyen/Model/BalancePlatform/AdditionalBankIdentificationRequirement.php b/src/Adyen/Model/BalancePlatform/AdditionalBankIdentificationRequirement.php new file mode 100644 index 000000000..7abde059c --- /dev/null +++ b/src/Adyen/Model/BalancePlatform/AdditionalBankIdentificationRequirement.php @@ -0,0 +1,537 @@ + + */ +class AdditionalBankIdentificationRequirement implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'AdditionalBankIdentificationRequirement'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'additionalBankIdentificationType' => 'string', + 'description' => 'string', + 'type' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'additionalBankIdentificationType' => null, + 'description' => null, + 'type' => null + ]; + + /** + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ + protected static $openAPINullables = [ + 'additionalBankIdentificationType' => false, + 'description' => false, + 'type' => 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 = [ + 'additionalBankIdentificationType' => 'additionalBankIdentificationType', + 'description' => 'description', + 'type' => 'type' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'additionalBankIdentificationType' => 'setAdditionalBankIdentificationType', + 'description' => 'setDescription', + 'type' => 'setType' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'additionalBankIdentificationType' => 'getAdditionalBankIdentificationType', + 'description' => 'getDescription', + 'type' => 'getType' + ]; + + /** + * 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; + } + + public const ADDITIONAL_BANK_IDENTIFICATION_TYPE_AU_BSB_CODE = 'auBsbCode'; + public const ADDITIONAL_BANK_IDENTIFICATION_TYPE_CA_ROUTING_NUMBER = 'caRoutingNumber'; + public const ADDITIONAL_BANK_IDENTIFICATION_TYPE_GB_SORT_CODE = 'gbSortCode'; + public const ADDITIONAL_BANK_IDENTIFICATION_TYPE_US_ROUTING_NUMBER = 'usRoutingNumber'; + public const TYPE_ADDITIONAL_BANK_IDENTIFICATION_REQUIREMENT = 'additionalBankIdentificationRequirement'; + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getAdditionalBankIdentificationTypeAllowableValues() + { + return [ + self::ADDITIONAL_BANK_IDENTIFICATION_TYPE_AU_BSB_CODE, + self::ADDITIONAL_BANK_IDENTIFICATION_TYPE_CA_ROUTING_NUMBER, + self::ADDITIONAL_BANK_IDENTIFICATION_TYPE_GB_SORT_CODE, + self::ADDITIONAL_BANK_IDENTIFICATION_TYPE_US_ROUTING_NUMBER, + ]; + } + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getTypeAllowableValues() + { + return [ + self::TYPE_ADDITIONAL_BANK_IDENTIFICATION_REQUIREMENT, + ]; + } + /** + * 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('additionalBankIdentificationType', $data ?? [], null); + $this->setIfExists('description', $data ?? [], null); + $this->setIfExists('type', $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 = []; + + $allowedValues = $this->getAdditionalBankIdentificationTypeAllowableValues(); + if (!is_null($this->container['additionalBankIdentificationType']) && !in_array($this->container['additionalBankIdentificationType'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value '%s' for 'additionalBankIdentificationType', must be one of '%s'", + $this->container['additionalBankIdentificationType'], + implode("', '", $allowedValues) + ); + } + + if ($this->container['type'] === null) { + $invalidProperties[] = "'type' can't be null"; + } + $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) + ); + } + + 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 additionalBankIdentificationType + * + * @return string|null + */ + public function getAdditionalBankIdentificationType() + { + return $this->container['additionalBankIdentificationType']; + } + + /** + * Sets additionalBankIdentificationType + * + * @param string|null $additionalBankIdentificationType The type of additional bank identification, depending on the country. Possible values: * **auBsbCode**: The 6-digit [Australian Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or spaces. * **caRoutingNumber**: The 9-digit [Canadian routing number](https://en.wikipedia.org/wiki/Routing_number_(Canada)), in EFT format, without separators or spaces. * **gbSortCode**: The 6-digit [UK sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * **usRoutingNumber**: The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or spaces. + * + * @return self + */ + public function setAdditionalBankIdentificationType($additionalBankIdentificationType) + { + $allowedValues = $this->getAdditionalBankIdentificationTypeAllowableValues(); + if (!in_array($additionalBankIdentificationType, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'additionalBankIdentificationType', must be one of '%s'", + $additionalBankIdentificationType, + implode("', '", $allowedValues) + ) + ); + } + $this->container['additionalBankIdentificationType'] = $additionalBankIdentificationType; + + return $this; + } + + /** + * Gets description + * + * @return string|null + */ + public function getDescription() + { + return $this->container['description']; + } + + /** + * Sets description + * + * @param string|null $description The description of the additional bank identification requirement. + * + * @return self + */ + public function setDescription($description) + { + $this->container['description'] = $description; + + return $this; + } + + /** + * Gets type + * + * @return string + */ + public function getType() + { + return $this->container['type']; + } + + /** + * Sets type + * + * @param string $type **additionalBankIdentificationRequirement** + * + * @return self + */ + public function setType($type) + { + $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) + ) + ); + } + $this->container['type'] = $type; + + 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); + } + + public function toArray(): array + { + $array = []; + foreach (self::$openAPITypes as $propertyName => $propertyType) { + $propertyValue = $this[$propertyName]; + if ($propertyValue !== null) { + // Check if the property value is an object and has a toArray() method + if (is_object($propertyValue) && method_exists($propertyValue, 'toArray')) { + $array[$propertyName] = $propertyValue->toArray(); + // Check if it's type datetime + } elseif ($propertyValue instanceof \DateTime) { + $array[$propertyName] = $propertyValue->format(DATE_ATOM); + // If it's an array type we should check whether it contains objects and if so call toArray method + } elseif (is_array($propertyValue)) { + $array[$propertyName] = array_map(function ($item) { + return $item instanceof ModelInterface ? $item->toArray() : $item; + }, $propertyValue); + } else { + // Otherwise, directly assign the property value to the array + $array[$propertyName] = $propertyValue; + } + } + } + return $array; + } + + /** + * 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/BalancePlatform/Address.php b/src/Adyen/Model/BalancePlatform/Address.php index 29a4875bd..46c79a12d 100644 --- a/src/Adyen/Model/BalancePlatform/Address.php +++ b/src/Adyen/Model/BalancePlatform/Address.php @@ -15,14 +15,14 @@ namespace Adyen\Model\BalancePlatform; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\BalancePlatform\ObjectSerializer; /** * Address Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class Address implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/BalancePlatform/AddressRequirement.php b/src/Adyen/Model/BalancePlatform/AddressRequirement.php index 3d92a8df2..ef8cc8ed1 100644 --- a/src/Adyen/Model/BalancePlatform/AddressRequirement.php +++ b/src/Adyen/Model/BalancePlatform/AddressRequirement.php @@ -15,14 +15,14 @@ namespace Adyen\Model\BalancePlatform; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\BalancePlatform\ObjectSerializer; /** * AddressRequirement Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class AddressRequirement implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/BalancePlatform/Amount.php b/src/Adyen/Model/BalancePlatform/Amount.php index ceca7350c..b35f114f7 100644 --- a/src/Adyen/Model/BalancePlatform/Amount.php +++ b/src/Adyen/Model/BalancePlatform/Amount.php @@ -15,14 +15,14 @@ namespace Adyen\Model\BalancePlatform; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\BalancePlatform\ObjectSerializer; /** * Amount Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class Amount implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/BalancePlatform/AmountMinMaxRequirement.php b/src/Adyen/Model/BalancePlatform/AmountMinMaxRequirement.php index 29e22d230..a5fab4867 100644 --- a/src/Adyen/Model/BalancePlatform/AmountMinMaxRequirement.php +++ b/src/Adyen/Model/BalancePlatform/AmountMinMaxRequirement.php @@ -15,14 +15,14 @@ namespace Adyen\Model\BalancePlatform; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\BalancePlatform\ObjectSerializer; /** * AmountMinMaxRequirement Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class AmountMinMaxRequirement implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/BalancePlatform/AmountNonZeroDecimalsRequirement.php b/src/Adyen/Model/BalancePlatform/AmountNonZeroDecimalsRequirement.php index b3f037127..2c99514ec 100644 --- a/src/Adyen/Model/BalancePlatform/AmountNonZeroDecimalsRequirement.php +++ b/src/Adyen/Model/BalancePlatform/AmountNonZeroDecimalsRequirement.php @@ -15,14 +15,14 @@ namespace Adyen\Model\BalancePlatform; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\BalancePlatform\ObjectSerializer; /** * AmountNonZeroDecimalsRequirement Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class AmountNonZeroDecimalsRequirement implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/BalancePlatform/AssociationDelegatedAuthenticationData.php b/src/Adyen/Model/BalancePlatform/AssociationDelegatedAuthenticationData.php index 8bb588d2c..0ea5a41a3 100644 --- a/src/Adyen/Model/BalancePlatform/AssociationDelegatedAuthenticationData.php +++ b/src/Adyen/Model/BalancePlatform/AssociationDelegatedAuthenticationData.php @@ -15,14 +15,14 @@ namespace Adyen\Model\BalancePlatform; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\BalancePlatform\ObjectSerializer; /** * AssociationDelegatedAuthenticationData Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class AssociationDelegatedAuthenticationData implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/BalancePlatform/AssociationFinaliseRequest.php b/src/Adyen/Model/BalancePlatform/AssociationFinaliseRequest.php index 6223c72a6..49235e1e9 100644 --- a/src/Adyen/Model/BalancePlatform/AssociationFinaliseRequest.php +++ b/src/Adyen/Model/BalancePlatform/AssociationFinaliseRequest.php @@ -15,14 +15,14 @@ namespace Adyen\Model\BalancePlatform; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\BalancePlatform\ObjectSerializer; /** * AssociationFinaliseRequest Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class AssociationFinaliseRequest implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/BalancePlatform/AssociationFinaliseResponse.php b/src/Adyen/Model/BalancePlatform/AssociationFinaliseResponse.php index 3e608d4c1..af6944a9b 100644 --- a/src/Adyen/Model/BalancePlatform/AssociationFinaliseResponse.php +++ b/src/Adyen/Model/BalancePlatform/AssociationFinaliseResponse.php @@ -15,14 +15,14 @@ namespace Adyen\Model\BalancePlatform; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\BalancePlatform\ObjectSerializer; /** * AssociationFinaliseResponse Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class AssociationFinaliseResponse implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/BalancePlatform/AssociationInitiateRequest.php b/src/Adyen/Model/BalancePlatform/AssociationInitiateRequest.php index 73bb81080..7e7dbc6ed 100644 --- a/src/Adyen/Model/BalancePlatform/AssociationInitiateRequest.php +++ b/src/Adyen/Model/BalancePlatform/AssociationInitiateRequest.php @@ -15,14 +15,14 @@ namespace Adyen\Model\BalancePlatform; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\BalancePlatform\ObjectSerializer; /** * AssociationInitiateRequest Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class AssociationInitiateRequest implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/BalancePlatform/AssociationInitiateResponse.php b/src/Adyen/Model/BalancePlatform/AssociationInitiateResponse.php index 354d53bb8..bdaff5469 100644 --- a/src/Adyen/Model/BalancePlatform/AssociationInitiateResponse.php +++ b/src/Adyen/Model/BalancePlatform/AssociationInitiateResponse.php @@ -15,14 +15,14 @@ namespace Adyen\Model\BalancePlatform; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\BalancePlatform\ObjectSerializer; /** * AssociationInitiateResponse Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class AssociationInitiateResponse implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/BalancePlatform/Authentication.php b/src/Adyen/Model/BalancePlatform/Authentication.php index 16cbfbf37..24dd42519 100644 --- a/src/Adyen/Model/BalancePlatform/Authentication.php +++ b/src/Adyen/Model/BalancePlatform/Authentication.php @@ -15,14 +15,14 @@ namespace Adyen\Model\BalancePlatform; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\BalancePlatform\ObjectSerializer; /** * Authentication Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class Authentication implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/BalancePlatform/AuthorisedCardUsers.php b/src/Adyen/Model/BalancePlatform/AuthorisedCardUsers.php new file mode 100644 index 000000000..616af32ec --- /dev/null +++ b/src/Adyen/Model/BalancePlatform/AuthorisedCardUsers.php @@ -0,0 +1,404 @@ + + */ +class AuthorisedCardUsers implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'AuthorisedCardUsers'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'legalEntityIds' => 'string[]' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'legalEntityIds' => null + ]; + + /** + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ + protected static $openAPINullables = [ + 'legalEntityIds' => 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 = [ + 'legalEntityIds' => 'legalEntityIds' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'legalEntityIds' => 'setLegalEntityIds' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'legalEntityIds' => 'getLegalEntityIds' + ]; + + /** + * 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('legalEntityIds', $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 legalEntityIds + * + * @return string[]|null + */ + public function getLegalEntityIds() + { + return $this->container['legalEntityIds']; + } + + /** + * Sets legalEntityIds + * + * @param string[]|null $legalEntityIds The legal entity IDs of the authorized card users linked to the specified payment instrument. + * + * @return self + */ + public function setLegalEntityIds($legalEntityIds) + { + $this->container['legalEntityIds'] = $legalEntityIds; + + 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); + } + + public function toArray(): array + { + $array = []; + foreach (self::$openAPITypes as $propertyName => $propertyType) { + $propertyValue = $this[$propertyName]; + if ($propertyValue !== null) { + // Check if the property value is an object and has a toArray() method + if (is_object($propertyValue) && method_exists($propertyValue, 'toArray')) { + $array[$propertyName] = $propertyValue->toArray(); + // Check if it's type datetime + } elseif ($propertyValue instanceof \DateTime) { + $array[$propertyName] = $propertyValue->format(DATE_ATOM); + // If it's an array type we should check whether it contains objects and if so call toArray method + } elseif (is_array($propertyValue)) { + $array[$propertyName] = array_map(function ($item) { + return $item instanceof ModelInterface ? $item->toArray() : $item; + }, $propertyValue); + } else { + // Otherwise, directly assign the property value to the array + $array[$propertyName] = $propertyValue; + } + } + } + return $array; + } + + /** + * 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/BalancePlatform/BRLocalAccountIdentification.php b/src/Adyen/Model/BalancePlatform/BRLocalAccountIdentification.php index 1e4666688..8a05eea0d 100644 --- a/src/Adyen/Model/BalancePlatform/BRLocalAccountIdentification.php +++ b/src/Adyen/Model/BalancePlatform/BRLocalAccountIdentification.php @@ -15,14 +15,14 @@ namespace Adyen\Model\BalancePlatform; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\BalancePlatform\ObjectSerializer; /** * BRLocalAccountIdentification Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class BRLocalAccountIdentification implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/BalancePlatform/Balance.php b/src/Adyen/Model/BalancePlatform/Balance.php index 2e0fc6e7e..e3bab793d 100644 --- a/src/Adyen/Model/BalancePlatform/Balance.php +++ b/src/Adyen/Model/BalancePlatform/Balance.php @@ -15,14 +15,14 @@ namespace Adyen\Model\BalancePlatform; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\BalancePlatform\ObjectSerializer; /** * Balance Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class Balance implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/BalancePlatform/BalanceAccount.php b/src/Adyen/Model/BalancePlatform/BalanceAccount.php index f4e062651..0f81dc635 100644 --- a/src/Adyen/Model/BalancePlatform/BalanceAccount.php +++ b/src/Adyen/Model/BalancePlatform/BalanceAccount.php @@ -15,14 +15,14 @@ namespace Adyen\Model\BalancePlatform; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\BalancePlatform\ObjectSerializer; /** * BalanceAccount Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class BalanceAccount implements ModelInterface, ArrayAccess, \JsonSerializable { @@ -389,7 +389,7 @@ public function getAccountHolderId() /** * Sets accountHolderId * - * @param string $accountHolderId The unique identifier of the [account holder](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/accountHolders__resParam_id) associated with the balance account. + * @param string $accountHolderId The unique identifier of the [account holder](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/accountHolders#responses-200-id) associated with the balance account. * * @return self */ diff --git a/src/Adyen/Model/BalancePlatform/BalanceAccountBase.php b/src/Adyen/Model/BalancePlatform/BalanceAccountBase.php index eb47a9d9c..865b1416e 100644 --- a/src/Adyen/Model/BalancePlatform/BalanceAccountBase.php +++ b/src/Adyen/Model/BalancePlatform/BalanceAccountBase.php @@ -15,14 +15,14 @@ namespace Adyen\Model\BalancePlatform; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\BalancePlatform\ObjectSerializer; /** * BalanceAccountBase Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class BalanceAccountBase implements ModelInterface, ArrayAccess, \JsonSerializable { @@ -382,7 +382,7 @@ public function getAccountHolderId() /** * Sets accountHolderId * - * @param string $accountHolderId The unique identifier of the [account holder](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/accountHolders__resParam_id) associated with the balance account. + * @param string $accountHolderId The unique identifier of the [account holder](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/accountHolders#responses-200-id) associated with the balance account. * * @return self */ diff --git a/src/Adyen/Model/BalancePlatform/BalanceAccountInfo.php b/src/Adyen/Model/BalancePlatform/BalanceAccountInfo.php index 2b7be6f6f..cb7d61902 100644 --- a/src/Adyen/Model/BalancePlatform/BalanceAccountInfo.php +++ b/src/Adyen/Model/BalancePlatform/BalanceAccountInfo.php @@ -15,14 +15,14 @@ namespace Adyen\Model\BalancePlatform; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\BalancePlatform\ObjectSerializer; /** * BalanceAccountInfo Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class BalanceAccountInfo implements ModelInterface, ArrayAccess, \JsonSerializable { @@ -338,7 +338,7 @@ public function getAccountHolderId() /** * Sets accountHolderId * - * @param string $accountHolderId The unique identifier of the [account holder](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/accountHolders__resParam_id) associated with the balance account. + * @param string $accountHolderId The unique identifier of the [account holder](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/accountHolders#responses-200-id) associated with the balance account. * * @return self */ diff --git a/src/Adyen/Model/BalancePlatform/BalanceAccountUpdateRequest.php b/src/Adyen/Model/BalancePlatform/BalanceAccountUpdateRequest.php index c66710ea8..1cddd6460 100644 --- a/src/Adyen/Model/BalancePlatform/BalanceAccountUpdateRequest.php +++ b/src/Adyen/Model/BalancePlatform/BalanceAccountUpdateRequest.php @@ -15,14 +15,14 @@ namespace Adyen\Model\BalancePlatform; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\BalancePlatform\ObjectSerializer; /** * BalanceAccountUpdateRequest Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class BalanceAccountUpdateRequest implements ModelInterface, ArrayAccess, \JsonSerializable { @@ -355,7 +355,7 @@ public function getAccountHolderId() /** * Sets accountHolderId * - * @param string|null $accountHolderId The unique identifier of the [account holder](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/accountHolders__resParam_id) associated with the balance account. + * @param string|null $accountHolderId The unique identifier of the [account holder](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/accountHolders#responses-200-id) associated with the balance account. * * @return self */ diff --git a/src/Adyen/Model/BalancePlatform/BalancePlatform.php b/src/Adyen/Model/BalancePlatform/BalancePlatform.php index 1d08f3072..072be40c2 100644 --- a/src/Adyen/Model/BalancePlatform/BalancePlatform.php +++ b/src/Adyen/Model/BalancePlatform/BalancePlatform.php @@ -15,14 +15,14 @@ namespace Adyen\Model\BalancePlatform; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\BalancePlatform\ObjectSerializer; /** * BalancePlatform Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class BalancePlatform implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/BalancePlatform/BalanceSweepConfigurationsResponse.php b/src/Adyen/Model/BalancePlatform/BalanceSweepConfigurationsResponse.php index d1c673043..cc877e0ec 100644 --- a/src/Adyen/Model/BalancePlatform/BalanceSweepConfigurationsResponse.php +++ b/src/Adyen/Model/BalancePlatform/BalanceSweepConfigurationsResponse.php @@ -15,14 +15,14 @@ namespace Adyen\Model\BalancePlatform; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\BalancePlatform\ObjectSerializer; /** * BalanceSweepConfigurationsResponse Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class BalanceSweepConfigurationsResponse implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/BalancePlatform/BankAccount.php b/src/Adyen/Model/BalancePlatform/BankAccount.php index cf01d3d23..bcc6b0f0a 100644 --- a/src/Adyen/Model/BalancePlatform/BankAccount.php +++ b/src/Adyen/Model/BalancePlatform/BankAccount.php @@ -15,14 +15,14 @@ namespace Adyen\Model\BalancePlatform; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\BalancePlatform\ObjectSerializer; /** * BankAccount Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class BankAccount implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/BalancePlatform/BankAccountAccountIdentification.php b/src/Adyen/Model/BalancePlatform/BankAccountAccountIdentification.php index 57afdd3e8..f6129cc13 100644 --- a/src/Adyen/Model/BalancePlatform/BankAccountAccountIdentification.php +++ b/src/Adyen/Model/BalancePlatform/BankAccountAccountIdentification.php @@ -15,7 +15,7 @@ namespace Adyen\Model\BalancePlatform; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\BalancePlatform\ObjectSerializer; /** @@ -24,7 +24,7 @@ * Contains the bank account details. The fields required in this object depend on the country of the bank account and the currency of the transfer. * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class BankAccountAccountIdentification implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/BalancePlatform/BankAccountDetails.php b/src/Adyen/Model/BalancePlatform/BankAccountDetails.php index 41283013e..5e0a02bf7 100644 --- a/src/Adyen/Model/BalancePlatform/BankAccountDetails.php +++ b/src/Adyen/Model/BalancePlatform/BankAccountDetails.php @@ -15,14 +15,14 @@ namespace Adyen\Model\BalancePlatform; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\BalancePlatform\ObjectSerializer; /** * BankAccountDetails Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class BankAccountDetails implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/BalancePlatform/BankAccountIdentificationTypeRequirement.php b/src/Adyen/Model/BalancePlatform/BankAccountIdentificationTypeRequirement.php index f3512a6cf..8fe3538cb 100644 --- a/src/Adyen/Model/BalancePlatform/BankAccountIdentificationTypeRequirement.php +++ b/src/Adyen/Model/BalancePlatform/BankAccountIdentificationTypeRequirement.php @@ -15,14 +15,14 @@ namespace Adyen\Model\BalancePlatform; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\BalancePlatform\ObjectSerializer; /** * BankAccountIdentificationTypeRequirement Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class BankAccountIdentificationTypeRequirement implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/BalancePlatform/BankAccountIdentificationValidationRequest.php b/src/Adyen/Model/BalancePlatform/BankAccountIdentificationValidationRequest.php index 40fc920e7..fec8168bb 100644 --- a/src/Adyen/Model/BalancePlatform/BankAccountIdentificationValidationRequest.php +++ b/src/Adyen/Model/BalancePlatform/BankAccountIdentificationValidationRequest.php @@ -15,14 +15,14 @@ namespace Adyen\Model\BalancePlatform; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\BalancePlatform\ObjectSerializer; /** * BankAccountIdentificationValidationRequest Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class BankAccountIdentificationValidationRequest implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/BalancePlatform/BankAccountIdentificationValidationRequestAccountIdentification.php b/src/Adyen/Model/BalancePlatform/BankAccountIdentificationValidationRequestAccountIdentification.php index c5ad3cb1b..4c1447cfa 100644 --- a/src/Adyen/Model/BalancePlatform/BankAccountIdentificationValidationRequestAccountIdentification.php +++ b/src/Adyen/Model/BalancePlatform/BankAccountIdentificationValidationRequestAccountIdentification.php @@ -15,7 +15,7 @@ namespace Adyen\Model\BalancePlatform; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\BalancePlatform\ObjectSerializer; /** @@ -24,7 +24,7 @@ * Bank account identification. * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class BankAccountIdentificationValidationRequestAccountIdentification implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/BalancePlatform/BankAccountModel.php b/src/Adyen/Model/BalancePlatform/BankAccountModel.php index 00b2711ba..bf69e5934 100644 --- a/src/Adyen/Model/BalancePlatform/BankAccountModel.php +++ b/src/Adyen/Model/BalancePlatform/BankAccountModel.php @@ -15,14 +15,14 @@ namespace Adyen\Model\BalancePlatform; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\BalancePlatform\ObjectSerializer; /** * BankAccountModel Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class BankAccountModel implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/BalancePlatform/BankIdentification.php b/src/Adyen/Model/BalancePlatform/BankIdentification.php index 269a299a6..c94a92ead 100644 --- a/src/Adyen/Model/BalancePlatform/BankIdentification.php +++ b/src/Adyen/Model/BalancePlatform/BankIdentification.php @@ -15,14 +15,14 @@ namespace Adyen\Model\BalancePlatform; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\BalancePlatform\ObjectSerializer; /** * BankIdentification Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class BankIdentification implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/BalancePlatform/BrandVariantsRestriction.php b/src/Adyen/Model/BalancePlatform/BrandVariantsRestriction.php index ddb0e234f..e025012db 100644 --- a/src/Adyen/Model/BalancePlatform/BrandVariantsRestriction.php +++ b/src/Adyen/Model/BalancePlatform/BrandVariantsRestriction.php @@ -15,14 +15,14 @@ namespace Adyen\Model\BalancePlatform; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\BalancePlatform\ObjectSerializer; /** * BrandVariantsRestriction Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class BrandVariantsRestriction implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/BalancePlatform/BulkAddress.php b/src/Adyen/Model/BalancePlatform/BulkAddress.php index 02de183b3..c54b11bc7 100644 --- a/src/Adyen/Model/BalancePlatform/BulkAddress.php +++ b/src/Adyen/Model/BalancePlatform/BulkAddress.php @@ -15,14 +15,14 @@ namespace Adyen\Model\BalancePlatform; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\BalancePlatform\ObjectSerializer; /** * BulkAddress Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class BulkAddress implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/BalancePlatform/CALocalAccountIdentification.php b/src/Adyen/Model/BalancePlatform/CALocalAccountIdentification.php index d476b7cfc..38e099258 100644 --- a/src/Adyen/Model/BalancePlatform/CALocalAccountIdentification.php +++ b/src/Adyen/Model/BalancePlatform/CALocalAccountIdentification.php @@ -15,14 +15,14 @@ namespace Adyen\Model\BalancePlatform; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\BalancePlatform\ObjectSerializer; /** * CALocalAccountIdentification Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class CALocalAccountIdentification implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/BalancePlatform/CZLocalAccountIdentification.php b/src/Adyen/Model/BalancePlatform/CZLocalAccountIdentification.php index 18c94e639..aa31c698f 100644 --- a/src/Adyen/Model/BalancePlatform/CZLocalAccountIdentification.php +++ b/src/Adyen/Model/BalancePlatform/CZLocalAccountIdentification.php @@ -15,14 +15,14 @@ namespace Adyen\Model\BalancePlatform; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\BalancePlatform\ObjectSerializer; /** * CZLocalAccountIdentification Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class CZLocalAccountIdentification implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/BalancePlatform/CapabilityProblem.php b/src/Adyen/Model/BalancePlatform/CapabilityProblem.php index 5b541d3f8..5696f8c36 100644 --- a/src/Adyen/Model/BalancePlatform/CapabilityProblem.php +++ b/src/Adyen/Model/BalancePlatform/CapabilityProblem.php @@ -15,14 +15,14 @@ namespace Adyen\Model\BalancePlatform; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\BalancePlatform\ObjectSerializer; /** * CapabilityProblem Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class CapabilityProblem implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/BalancePlatform/CapabilityProblemEntity.php b/src/Adyen/Model/BalancePlatform/CapabilityProblemEntity.php index bd5ff664f..f66036af9 100644 --- a/src/Adyen/Model/BalancePlatform/CapabilityProblemEntity.php +++ b/src/Adyen/Model/BalancePlatform/CapabilityProblemEntity.php @@ -15,14 +15,14 @@ namespace Adyen\Model\BalancePlatform; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\BalancePlatform\ObjectSerializer; /** * CapabilityProblemEntity Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class CapabilityProblemEntity implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/BalancePlatform/CapabilityProblemEntityRecursive.php b/src/Adyen/Model/BalancePlatform/CapabilityProblemEntityRecursive.php index a1faa6a23..f6e261814 100644 --- a/src/Adyen/Model/BalancePlatform/CapabilityProblemEntityRecursive.php +++ b/src/Adyen/Model/BalancePlatform/CapabilityProblemEntityRecursive.php @@ -15,14 +15,14 @@ namespace Adyen\Model\BalancePlatform; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\BalancePlatform\ObjectSerializer; /** * CapabilityProblemEntityRecursive Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class CapabilityProblemEntityRecursive implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/BalancePlatform/CapabilitySettings.php b/src/Adyen/Model/BalancePlatform/CapabilitySettings.php index b79e1a5f0..d6312a71d 100644 --- a/src/Adyen/Model/BalancePlatform/CapabilitySettings.php +++ b/src/Adyen/Model/BalancePlatform/CapabilitySettings.php @@ -15,14 +15,14 @@ namespace Adyen\Model\BalancePlatform; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\BalancePlatform\ObjectSerializer; /** * CapabilitySettings Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class CapabilitySettings implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/BalancePlatform/CapitalBalance.php b/src/Adyen/Model/BalancePlatform/CapitalBalance.php index 3d8ee2326..51a342d59 100644 --- a/src/Adyen/Model/BalancePlatform/CapitalBalance.php +++ b/src/Adyen/Model/BalancePlatform/CapitalBalance.php @@ -15,14 +15,14 @@ namespace Adyen\Model\BalancePlatform; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\BalancePlatform\ObjectSerializer; /** * CapitalBalance Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class CapitalBalance implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/BalancePlatform/CapitalGrantAccount.php b/src/Adyen/Model/BalancePlatform/CapitalGrantAccount.php index 72389db6b..31653ca94 100644 --- a/src/Adyen/Model/BalancePlatform/CapitalGrantAccount.php +++ b/src/Adyen/Model/BalancePlatform/CapitalGrantAccount.php @@ -15,14 +15,14 @@ namespace Adyen\Model\BalancePlatform; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\BalancePlatform\ObjectSerializer; /** * CapitalGrantAccount Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class CapitalGrantAccount implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/BalancePlatform/Card.php b/src/Adyen/Model/BalancePlatform/Card.php index 95e194f52..ea0668173 100644 --- a/src/Adyen/Model/BalancePlatform/Card.php +++ b/src/Adyen/Model/BalancePlatform/Card.php @@ -15,14 +15,14 @@ namespace Adyen\Model\BalancePlatform; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\BalancePlatform\ObjectSerializer; /** * Card Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class Card implements ModelInterface, ArrayAccess, \JsonSerializable { @@ -53,7 +53,8 @@ class Card implements ModelInterface, ArrayAccess, \JsonSerializable 'formFactor' => 'string', 'lastFour' => 'string', 'number' => 'string', - 'threeDSecure' => 'string' + 'threeDSecure' => 'string', + 'usage' => 'string' ]; /** @@ -76,7 +77,8 @@ class Card implements ModelInterface, ArrayAccess, \JsonSerializable 'formFactor' => null, 'lastFour' => null, 'number' => null, - 'threeDSecure' => null + 'threeDSecure' => null, + 'usage' => null ]; /** @@ -97,7 +99,8 @@ class Card implements ModelInterface, ArrayAccess, \JsonSerializable 'formFactor' => false, 'lastFour' => false, 'number' => false, - 'threeDSecure' => false + 'threeDSecure' => false, + 'usage' => false ]; /** @@ -198,7 +201,8 @@ public function isNullableSetToNull(string $property): bool 'formFactor' => 'formFactor', 'lastFour' => 'lastFour', 'number' => 'number', - 'threeDSecure' => 'threeDSecure' + 'threeDSecure' => 'threeDSecure', + 'usage' => 'usage' ]; /** @@ -219,7 +223,8 @@ public function isNullableSetToNull(string $property): bool 'formFactor' => 'setFormFactor', 'lastFour' => 'setLastFour', 'number' => 'setNumber', - 'threeDSecure' => 'setThreeDSecure' + 'threeDSecure' => 'setThreeDSecure', + 'usage' => 'setUsage' ]; /** @@ -240,7 +245,8 @@ public function isNullableSetToNull(string $property): bool 'formFactor' => 'getFormFactor', 'lastFour' => 'getLastFour', 'number' => 'getNumber', - 'threeDSecure' => 'getThreeDSecure' + 'threeDSecure' => 'getThreeDSecure', + 'usage' => 'getUsage' ]; /** @@ -329,6 +335,7 @@ public function __construct(?array $data = null) $this->setIfExists('lastFour', $data ?? [], null); $this->setIfExists('number', $data ?? [], null); $this->setIfExists('threeDSecure', $data ?? [], null); + $this->setIfExists('usage', $data ?? [], null); } /** @@ -708,7 +715,7 @@ public function getThreeDSecure() /** * Sets threeDSecure * - * @param string|null $threeDSecure Allocates a specific product range for either a physical or a virtual card. Possible values: **fullySupported**, **secureCorporate**. >Reach out to your Adyen contact to get the values relevant for your integration. + * @param string|null $threeDSecure The 3DS configuration of the physical or the virtual card. Possible values: **fullySupported**, **secureCorporate**. > Reach out to your Adyen contact to get the values relevant for your integration. * * @return self */ @@ -718,6 +725,30 @@ public function setThreeDSecure($threeDSecure) return $this; } + + /** + * Gets usage + * + * @return string|null + */ + public function getUsage() + { + return $this->container['usage']; + } + + /** + * Sets usage + * + * @param string|null $usage Specifies how many times the card can be used. Possible values: **singleUse**, **multiUse**. > Reach out to your Adyen contact to determine the value relevant for your integration. + * + * @return self + */ + public function setUsage($usage) + { + $this->container['usage'] = $usage; + + return $this; + } /** * Returns true if offset exists. False otherwise. * diff --git a/src/Adyen/Model/BalancePlatform/CardConfiguration.php b/src/Adyen/Model/BalancePlatform/CardConfiguration.php index 77dcfaf27..974a49db5 100644 --- a/src/Adyen/Model/BalancePlatform/CardConfiguration.php +++ b/src/Adyen/Model/BalancePlatform/CardConfiguration.php @@ -15,14 +15,14 @@ namespace Adyen\Model\BalancePlatform; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\BalancePlatform\ObjectSerializer; /** * CardConfiguration Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class CardConfiguration implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/BalancePlatform/CardInfo.php b/src/Adyen/Model/BalancePlatform/CardInfo.php index 44399e703..eb21fa26d 100644 --- a/src/Adyen/Model/BalancePlatform/CardInfo.php +++ b/src/Adyen/Model/BalancePlatform/CardInfo.php @@ -15,14 +15,14 @@ namespace Adyen\Model\BalancePlatform; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\BalancePlatform\ObjectSerializer; /** * CardInfo Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class CardInfo implements ModelInterface, ArrayAccess, \JsonSerializable { @@ -48,7 +48,8 @@ class CardInfo implements ModelInterface, ArrayAccess, \JsonSerializable 'configuration' => '\Adyen\Model\BalancePlatform\CardConfiguration', 'deliveryContact' => '\Adyen\Model\BalancePlatform\DeliveryContact', 'formFactor' => 'string', - 'threeDSecure' => 'string' + 'threeDSecure' => 'string', + 'usage' => 'string' ]; /** @@ -66,7 +67,8 @@ class CardInfo implements ModelInterface, ArrayAccess, \JsonSerializable 'configuration' => null, 'deliveryContact' => null, 'formFactor' => null, - 'threeDSecure' => null + 'threeDSecure' => null, + 'usage' => null ]; /** @@ -82,7 +84,8 @@ class CardInfo implements ModelInterface, ArrayAccess, \JsonSerializable 'configuration' => false, 'deliveryContact' => false, 'formFactor' => false, - 'threeDSecure' => false + 'threeDSecure' => false, + 'usage' => false ]; /** @@ -178,7 +181,8 @@ public function isNullableSetToNull(string $property): bool 'configuration' => 'configuration', 'deliveryContact' => 'deliveryContact', 'formFactor' => 'formFactor', - 'threeDSecure' => 'threeDSecure' + 'threeDSecure' => 'threeDSecure', + 'usage' => 'usage' ]; /** @@ -194,7 +198,8 @@ public function isNullableSetToNull(string $property): bool 'configuration' => 'setConfiguration', 'deliveryContact' => 'setDeliveryContact', 'formFactor' => 'setFormFactor', - 'threeDSecure' => 'setThreeDSecure' + 'threeDSecure' => 'setThreeDSecure', + 'usage' => 'setUsage' ]; /** @@ -210,7 +215,8 @@ public function isNullableSetToNull(string $property): bool 'configuration' => 'getConfiguration', 'deliveryContact' => 'getDeliveryContact', 'formFactor' => 'getFormFactor', - 'threeDSecure' => 'getThreeDSecure' + 'threeDSecure' => 'getThreeDSecure', + 'usage' => 'getUsage' ]; /** @@ -294,6 +300,7 @@ public function __construct(?array $data = null) $this->setIfExists('deliveryContact', $data ?? [], null); $this->setIfExists('formFactor', $data ?? [], null); $this->setIfExists('threeDSecure', $data ?? [], null); + $this->setIfExists('usage', $data ?? [], null); } /** @@ -550,7 +557,7 @@ public function getThreeDSecure() /** * Sets threeDSecure * - * @param string|null $threeDSecure Allocates a specific product range for either a physical or a virtual card. Possible values: **fullySupported**, **secureCorporate**. >Reach out to your Adyen contact to get the values relevant for your integration. + * @param string|null $threeDSecure The 3DS configuration of the physical or the virtual card. Possible values: **fullySupported**, **secureCorporate**. > Reach out to your Adyen contact to get the values relevant for your integration. * * @return self */ @@ -560,6 +567,30 @@ public function setThreeDSecure($threeDSecure) return $this; } + + /** + * Gets usage + * + * @return string|null + */ + public function getUsage() + { + return $this->container['usage']; + } + + /** + * Sets usage + * + * @param string|null $usage Specifies how many times the card can be used. Possible values: **singleUse**, **multiUse**. > Reach out to your Adyen contact to determine the value relevant for your integration. + * + * @return self + */ + public function setUsage($usage) + { + $this->container['usage'] = $usage; + + return $this; + } /** * Returns true if offset exists. False otherwise. * diff --git a/src/Adyen/Model/BalancePlatform/CardOrder.php b/src/Adyen/Model/BalancePlatform/CardOrder.php index 65072b852..950bcba67 100644 --- a/src/Adyen/Model/BalancePlatform/CardOrder.php +++ b/src/Adyen/Model/BalancePlatform/CardOrder.php @@ -15,14 +15,14 @@ namespace Adyen\Model\BalancePlatform; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\BalancePlatform\ObjectSerializer; /** * CardOrder Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class CardOrder implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/BalancePlatform/CardOrderItem.php b/src/Adyen/Model/BalancePlatform/CardOrderItem.php index cf66098e3..f22361575 100644 --- a/src/Adyen/Model/BalancePlatform/CardOrderItem.php +++ b/src/Adyen/Model/BalancePlatform/CardOrderItem.php @@ -15,14 +15,14 @@ namespace Adyen\Model\BalancePlatform; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\BalancePlatform\ObjectSerializer; /** * CardOrderItem Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class CardOrderItem implements ModelInterface, ArrayAccess, \JsonSerializable { @@ -407,7 +407,7 @@ public function getCreationDate() /** * Sets creationDate * - * @param \DateTime|null $creationDate The date and time when the event was triggered, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**. + * @param \DateTime|null $creationDate The date and time when the event was triggered, in ISO 8601 extended format. For example, **2025-03-19T10:15:30+01:00**. * * @return self */ diff --git a/src/Adyen/Model/BalancePlatform/CardOrderItemDeliveryStatus.php b/src/Adyen/Model/BalancePlatform/CardOrderItemDeliveryStatus.php index ecf0fec8c..c3937c411 100644 --- a/src/Adyen/Model/BalancePlatform/CardOrderItemDeliveryStatus.php +++ b/src/Adyen/Model/BalancePlatform/CardOrderItemDeliveryStatus.php @@ -15,14 +15,14 @@ namespace Adyen\Model\BalancePlatform; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\BalancePlatform\ObjectSerializer; /** * CardOrderItemDeliveryStatus Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class CardOrderItemDeliveryStatus implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/BalancePlatform/ContactDetails.php b/src/Adyen/Model/BalancePlatform/ContactDetails.php index 92deca6ae..dd76a8afc 100644 --- a/src/Adyen/Model/BalancePlatform/ContactDetails.php +++ b/src/Adyen/Model/BalancePlatform/ContactDetails.php @@ -15,14 +15,14 @@ namespace Adyen\Model\BalancePlatform; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\BalancePlatform\ObjectSerializer; /** * ContactDetails Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class ContactDetails implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/BalancePlatform/Counterparty.php b/src/Adyen/Model/BalancePlatform/Counterparty.php index d2aaa82a0..3eeb940bc 100644 --- a/src/Adyen/Model/BalancePlatform/Counterparty.php +++ b/src/Adyen/Model/BalancePlatform/Counterparty.php @@ -15,14 +15,14 @@ namespace Adyen\Model\BalancePlatform; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\BalancePlatform\ObjectSerializer; /** * Counterparty Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class Counterparty implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/BalancePlatform/CounterpartyBankRestriction.php b/src/Adyen/Model/BalancePlatform/CounterpartyBankRestriction.php index 8b39c504f..3e5225ba4 100644 --- a/src/Adyen/Model/BalancePlatform/CounterpartyBankRestriction.php +++ b/src/Adyen/Model/BalancePlatform/CounterpartyBankRestriction.php @@ -15,14 +15,14 @@ namespace Adyen\Model\BalancePlatform; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\BalancePlatform\ObjectSerializer; /** * CounterpartyBankRestriction Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class CounterpartyBankRestriction implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/BalancePlatform/CounterpartyTypesRestriction.php b/src/Adyen/Model/BalancePlatform/CounterpartyTypesRestriction.php index 88be6d77f..68fe98a9c 100644 --- a/src/Adyen/Model/BalancePlatform/CounterpartyTypesRestriction.php +++ b/src/Adyen/Model/BalancePlatform/CounterpartyTypesRestriction.php @@ -15,14 +15,14 @@ namespace Adyen\Model\BalancePlatform; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\BalancePlatform\ObjectSerializer; /** * CounterpartyTypesRestriction Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class CounterpartyTypesRestriction implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/BalancePlatform/CountriesRestriction.php b/src/Adyen/Model/BalancePlatform/CountriesRestriction.php index 85387a78c..46747ee38 100644 --- a/src/Adyen/Model/BalancePlatform/CountriesRestriction.php +++ b/src/Adyen/Model/BalancePlatform/CountriesRestriction.php @@ -15,14 +15,14 @@ namespace Adyen\Model\BalancePlatform; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\BalancePlatform\ObjectSerializer; /** * CountriesRestriction Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class CountriesRestriction implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/BalancePlatform/CreateSweepConfigurationV2.php b/src/Adyen/Model/BalancePlatform/CreateSweepConfigurationV2.php index a45d5f800..98c506712 100644 --- a/src/Adyen/Model/BalancePlatform/CreateSweepConfigurationV2.php +++ b/src/Adyen/Model/BalancePlatform/CreateSweepConfigurationV2.php @@ -15,14 +15,14 @@ namespace Adyen\Model\BalancePlatform; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\BalancePlatform\ObjectSerializer; /** * CreateSweepConfigurationV2 Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class CreateSweepConfigurationV2 implements ModelInterface, ArrayAccess, \JsonSerializable { @@ -307,6 +307,7 @@ public function getModelName() public const PRIORITIES_WIRE = 'wire'; public const REASON_ACCOUNT_HIERARCHY_NOT_ACTIVE = 'accountHierarchyNotActive'; public const REASON_AMOUNT_LIMIT_EXCEEDED = 'amountLimitExceeded'; + public const REASON_APPROVAL_EXPIRED = 'approvalExpired'; public const REASON_APPROVED = 'approved'; public const REASON_BALANCE_ACCOUNT_TEMPORARILY_BLOCKED_BY_TRANSACTION_RULE = 'balanceAccountTemporarilyBlockedByTransactionRule'; public const REASON_COUNTERPARTY_ACCOUNT_BLOCKED = 'counterpartyAccountBlocked'; @@ -373,6 +374,7 @@ public function getReasonAllowableValues() return [ self::REASON_ACCOUNT_HIERARCHY_NOT_ACTIVE, self::REASON_AMOUNT_LIMIT_EXCEEDED, + self::REASON_APPROVAL_EXPIRED, self::REASON_APPROVED, self::REASON_BALANCE_ACCOUNT_TEMPORARILY_BLOCKED_BY_TRANSACTION_RULE, self::REASON_COUNTERPARTY_ACCOUNT_BLOCKED, @@ -659,7 +661,7 @@ public function getPriorities() /** * Sets priorities * - * @param string[]|null $priorities The list of priorities for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. You can provide multiple priorities, ordered by your preference. Adyen will try to pay out using the priorities in the given order. If the first priority is not currently supported or enabled for your platform, the system will try the next one, and so on. The request will be accepted as long as **at least one** of the provided priorities is valid (i.e., supported by Adyen and activated for your platform). For example, if you provide `[\"wire\",\"regular\"]`, and `wire` is not supported but `regular` is, the request will still be accepted and processed. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers in [SEPA countries](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). Set `category` to **bank**. For more details, see optional priorities setup for [marketplaces](https://docs.adyen.com/marketplaces/payout-to-users/scheduled-payouts#optional-priorities-setup) or [platforms](https://docs.adyen.com/platforms/payout-to-users/scheduled-payouts#optional-priorities-setup). + * @param string[]|null $priorities The list of priorities for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. You can provide multiple priorities, ordered by your preference. Adyen will try to pay out using the priorities in the given order. If the first priority is not currently supported or enabled for your platform, the system will try the next one, and so on. The request will be accepted as long as **at least one** of the provided priorities is valid (i.e., supported by Adyen and activated for your platform). For example, if you provide `[\"wire\",\"regular\"]`, and `wire` is not supported but `regular` is, the request will still be accepted and processed. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). Set `category` to **bank**. For more details, see optional priorities setup for [marketplaces](https://docs.adyen.com/marketplaces/payout-to-users/scheduled-payouts#optional-priorities-setup) or [platforms](https://docs.adyen.com/platforms/payout-to-users/scheduled-payouts#optional-priorities-setup). * * @return self */ diff --git a/src/Adyen/Model/BalancePlatform/DKLocalAccountIdentification.php b/src/Adyen/Model/BalancePlatform/DKLocalAccountIdentification.php index d7dbd73b6..5ff0eb86a 100644 --- a/src/Adyen/Model/BalancePlatform/DKLocalAccountIdentification.php +++ b/src/Adyen/Model/BalancePlatform/DKLocalAccountIdentification.php @@ -15,14 +15,14 @@ namespace Adyen\Model\BalancePlatform; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\BalancePlatform\ObjectSerializer; /** * DKLocalAccountIdentification Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class DKLocalAccountIdentification implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/BalancePlatform/DayOfWeekRestriction.php b/src/Adyen/Model/BalancePlatform/DayOfWeekRestriction.php index e3d0d28da..e8dcca6bc 100644 --- a/src/Adyen/Model/BalancePlatform/DayOfWeekRestriction.php +++ b/src/Adyen/Model/BalancePlatform/DayOfWeekRestriction.php @@ -15,14 +15,14 @@ namespace Adyen\Model\BalancePlatform; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\BalancePlatform\ObjectSerializer; /** * DayOfWeekRestriction Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class DayOfWeekRestriction implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/BalancePlatform/DelegatedAuthenticationData.php b/src/Adyen/Model/BalancePlatform/DelegatedAuthenticationData.php index 3592c79a9..7655a4f2a 100644 --- a/src/Adyen/Model/BalancePlatform/DelegatedAuthenticationData.php +++ b/src/Adyen/Model/BalancePlatform/DelegatedAuthenticationData.php @@ -15,14 +15,14 @@ namespace Adyen\Model\BalancePlatform; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\BalancePlatform\ObjectSerializer; /** * DelegatedAuthenticationData Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class DelegatedAuthenticationData implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/BalancePlatform/DeliveryAddress.php b/src/Adyen/Model/BalancePlatform/DeliveryAddress.php index 026e9de73..f1318473e 100644 --- a/src/Adyen/Model/BalancePlatform/DeliveryAddress.php +++ b/src/Adyen/Model/BalancePlatform/DeliveryAddress.php @@ -15,14 +15,14 @@ namespace Adyen\Model\BalancePlatform; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\BalancePlatform\ObjectSerializer; /** * DeliveryAddress Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class DeliveryAddress implements ModelInterface, ArrayAccess, \JsonSerializable { @@ -475,7 +475,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 or **ON** in Canada. > Required for the US and Canada. + * @param string|null $stateOrProvince The state or province code, maximum 3 characters. For example, **CA** for California in the US or **ON** for Ontario in Canada. > Required for the US and Canada. * * @return self */ diff --git a/src/Adyen/Model/BalancePlatform/DeliveryContact.php b/src/Adyen/Model/BalancePlatform/DeliveryContact.php index 32698a9cf..c624c0b04 100644 --- a/src/Adyen/Model/BalancePlatform/DeliveryContact.php +++ b/src/Adyen/Model/BalancePlatform/DeliveryContact.php @@ -15,14 +15,14 @@ namespace Adyen\Model\BalancePlatform; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\BalancePlatform\ObjectSerializer; /** * DeliveryContact Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class DeliveryContact implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/BalancePlatform/Device.php b/src/Adyen/Model/BalancePlatform/Device.php index 07a01d055..9ff808238 100644 --- a/src/Adyen/Model/BalancePlatform/Device.php +++ b/src/Adyen/Model/BalancePlatform/Device.php @@ -15,14 +15,14 @@ namespace Adyen\Model\BalancePlatform; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\BalancePlatform\ObjectSerializer; /** * Device Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class Device implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/BalancePlatform/DeviceInfo.php b/src/Adyen/Model/BalancePlatform/DeviceInfo.php index e2597947e..6cefc7558 100644 --- a/src/Adyen/Model/BalancePlatform/DeviceInfo.php +++ b/src/Adyen/Model/BalancePlatform/DeviceInfo.php @@ -15,14 +15,14 @@ namespace Adyen\Model\BalancePlatform; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\BalancePlatform\ObjectSerializer; /** * DeviceInfo Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class DeviceInfo implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/BalancePlatform/DifferentCurrenciesRestriction.php b/src/Adyen/Model/BalancePlatform/DifferentCurrenciesRestriction.php index 5b50b3e71..b13b47c48 100644 --- a/src/Adyen/Model/BalancePlatform/DifferentCurrenciesRestriction.php +++ b/src/Adyen/Model/BalancePlatform/DifferentCurrenciesRestriction.php @@ -15,14 +15,14 @@ namespace Adyen\Model\BalancePlatform; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\BalancePlatform\ObjectSerializer; /** * DifferentCurrenciesRestriction Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class DifferentCurrenciesRestriction implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/BalancePlatform/Duration.php b/src/Adyen/Model/BalancePlatform/Duration.php index 484582f38..d42e63673 100644 --- a/src/Adyen/Model/BalancePlatform/Duration.php +++ b/src/Adyen/Model/BalancePlatform/Duration.php @@ -15,14 +15,14 @@ namespace Adyen\Model\BalancePlatform; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\BalancePlatform\ObjectSerializer; /** * Duration Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class Duration implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/BalancePlatform/EntryModesRestriction.php b/src/Adyen/Model/BalancePlatform/EntryModesRestriction.php index 19af50f85..a6368fb91 100644 --- a/src/Adyen/Model/BalancePlatform/EntryModesRestriction.php +++ b/src/Adyen/Model/BalancePlatform/EntryModesRestriction.php @@ -15,14 +15,14 @@ namespace Adyen\Model\BalancePlatform; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\BalancePlatform\ObjectSerializer; /** * EntryModesRestriction Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class EntryModesRestriction implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/BalancePlatform/Expiry.php b/src/Adyen/Model/BalancePlatform/Expiry.php index 5ceeb868f..e853f61f0 100644 --- a/src/Adyen/Model/BalancePlatform/Expiry.php +++ b/src/Adyen/Model/BalancePlatform/Expiry.php @@ -15,14 +15,14 @@ namespace Adyen\Model\BalancePlatform; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\BalancePlatform\ObjectSerializer; /** * Expiry Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class Expiry implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/BalancePlatform/Fee.php b/src/Adyen/Model/BalancePlatform/Fee.php index 4ec6f4157..4df116ef9 100644 --- a/src/Adyen/Model/BalancePlatform/Fee.php +++ b/src/Adyen/Model/BalancePlatform/Fee.php @@ -15,14 +15,14 @@ namespace Adyen\Model\BalancePlatform; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\BalancePlatform\ObjectSerializer; /** * Fee Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class Fee implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/BalancePlatform/GetNetworkTokenResponse.php b/src/Adyen/Model/BalancePlatform/GetNetworkTokenResponse.php index 296ccdfe9..25f5d96a6 100644 --- a/src/Adyen/Model/BalancePlatform/GetNetworkTokenResponse.php +++ b/src/Adyen/Model/BalancePlatform/GetNetworkTokenResponse.php @@ -15,14 +15,14 @@ namespace Adyen\Model\BalancePlatform; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\BalancePlatform\ObjectSerializer; /** * GetNetworkTokenResponse Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class GetNetworkTokenResponse implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/BalancePlatform/GetTaxFormResponse.php b/src/Adyen/Model/BalancePlatform/GetTaxFormResponse.php index ec002ba3e..177673589 100644 --- a/src/Adyen/Model/BalancePlatform/GetTaxFormResponse.php +++ b/src/Adyen/Model/BalancePlatform/GetTaxFormResponse.php @@ -15,14 +15,14 @@ namespace Adyen\Model\BalancePlatform; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\BalancePlatform\ObjectSerializer; /** * GetTaxFormResponse Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class GetTaxFormResponse implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/BalancePlatform/GrantLimit.php b/src/Adyen/Model/BalancePlatform/GrantLimit.php index 286f0934d..bf3a643c2 100644 --- a/src/Adyen/Model/BalancePlatform/GrantLimit.php +++ b/src/Adyen/Model/BalancePlatform/GrantLimit.php @@ -15,14 +15,14 @@ namespace Adyen\Model\BalancePlatform; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\BalancePlatform\ObjectSerializer; /** * GrantLimit Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class GrantLimit implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/BalancePlatform/GrantOffer.php b/src/Adyen/Model/BalancePlatform/GrantOffer.php index 501069d60..44c1a7ee2 100644 --- a/src/Adyen/Model/BalancePlatform/GrantOffer.php +++ b/src/Adyen/Model/BalancePlatform/GrantOffer.php @@ -15,14 +15,14 @@ namespace Adyen\Model\BalancePlatform; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\BalancePlatform\ObjectSerializer; /** * GrantOffer Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class GrantOffer implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/BalancePlatform/GrantOffers.php b/src/Adyen/Model/BalancePlatform/GrantOffers.php index 620d19c1a..c6d685335 100644 --- a/src/Adyen/Model/BalancePlatform/GrantOffers.php +++ b/src/Adyen/Model/BalancePlatform/GrantOffers.php @@ -15,14 +15,14 @@ namespace Adyen\Model\BalancePlatform; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\BalancePlatform\ObjectSerializer; /** * GrantOffers Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class GrantOffers implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/BalancePlatform/HKLocalAccountIdentification.php b/src/Adyen/Model/BalancePlatform/HKLocalAccountIdentification.php index 47c4b2553..e536a57ad 100644 --- a/src/Adyen/Model/BalancePlatform/HKLocalAccountIdentification.php +++ b/src/Adyen/Model/BalancePlatform/HKLocalAccountIdentification.php @@ -15,14 +15,14 @@ namespace Adyen\Model\BalancePlatform; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\BalancePlatform\ObjectSerializer; /** * HKLocalAccountIdentification Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class HKLocalAccountIdentification implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/BalancePlatform/HULocalAccountIdentification.php b/src/Adyen/Model/BalancePlatform/HULocalAccountIdentification.php index 45b249dc6..35f427ad0 100644 --- a/src/Adyen/Model/BalancePlatform/HULocalAccountIdentification.php +++ b/src/Adyen/Model/BalancePlatform/HULocalAccountIdentification.php @@ -15,14 +15,14 @@ namespace Adyen\Model\BalancePlatform; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\BalancePlatform\ObjectSerializer; /** * HULocalAccountIdentification Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class HULocalAccountIdentification implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/BalancePlatform/Href.php b/src/Adyen/Model/BalancePlatform/Href.php index 9f6792e25..894cddbe3 100644 --- a/src/Adyen/Model/BalancePlatform/Href.php +++ b/src/Adyen/Model/BalancePlatform/Href.php @@ -15,14 +15,14 @@ namespace Adyen\Model\BalancePlatform; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\BalancePlatform\ObjectSerializer; /** * Href Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class Href implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/BalancePlatform/IbanAccountIdentification.php b/src/Adyen/Model/BalancePlatform/IbanAccountIdentification.php index 38fb9d713..debdad908 100644 --- a/src/Adyen/Model/BalancePlatform/IbanAccountIdentification.php +++ b/src/Adyen/Model/BalancePlatform/IbanAccountIdentification.php @@ -15,14 +15,14 @@ namespace Adyen\Model\BalancePlatform; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\BalancePlatform\ObjectSerializer; /** * IbanAccountIdentification Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class IbanAccountIdentification implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/BalancePlatform/IbanAccountIdentificationRequirement.php b/src/Adyen/Model/BalancePlatform/IbanAccountIdentificationRequirement.php index 4e0c5e609..ca0892661 100644 --- a/src/Adyen/Model/BalancePlatform/IbanAccountIdentificationRequirement.php +++ b/src/Adyen/Model/BalancePlatform/IbanAccountIdentificationRequirement.php @@ -15,14 +15,14 @@ namespace Adyen\Model\BalancePlatform; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\BalancePlatform\ObjectSerializer; /** * IbanAccountIdentificationRequirement Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class IbanAccountIdentificationRequirement implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/BalancePlatform/InternationalTransactionRestriction.php b/src/Adyen/Model/BalancePlatform/InternationalTransactionRestriction.php index f612800f3..714f20bd5 100644 --- a/src/Adyen/Model/BalancePlatform/InternationalTransactionRestriction.php +++ b/src/Adyen/Model/BalancePlatform/InternationalTransactionRestriction.php @@ -15,14 +15,14 @@ namespace Adyen\Model\BalancePlatform; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\BalancePlatform\ObjectSerializer; /** * InternationalTransactionRestriction Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class InternationalTransactionRestriction implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/BalancePlatform/InvalidField.php b/src/Adyen/Model/BalancePlatform/InvalidField.php index 3750fcb20..683b33982 100644 --- a/src/Adyen/Model/BalancePlatform/InvalidField.php +++ b/src/Adyen/Model/BalancePlatform/InvalidField.php @@ -15,14 +15,14 @@ namespace Adyen\Model\BalancePlatform; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\BalancePlatform\ObjectSerializer; /** * InvalidField Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class InvalidField implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/BalancePlatform/Link.php b/src/Adyen/Model/BalancePlatform/Link.php index aec863682..c1c129682 100644 --- a/src/Adyen/Model/BalancePlatform/Link.php +++ b/src/Adyen/Model/BalancePlatform/Link.php @@ -15,14 +15,14 @@ namespace Adyen\Model\BalancePlatform; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\BalancePlatform\ObjectSerializer; /** * Link Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class Link implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/BalancePlatform/ListNetworkTokensResponse.php b/src/Adyen/Model/BalancePlatform/ListNetworkTokensResponse.php index 988bb6227..b6d237dd5 100644 --- a/src/Adyen/Model/BalancePlatform/ListNetworkTokensResponse.php +++ b/src/Adyen/Model/BalancePlatform/ListNetworkTokensResponse.php @@ -15,14 +15,14 @@ namespace Adyen\Model\BalancePlatform; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\BalancePlatform\ObjectSerializer; /** * ListNetworkTokensResponse Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class ListNetworkTokensResponse implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/BalancePlatform/MatchingTransactionsRestriction.php b/src/Adyen/Model/BalancePlatform/MatchingTransactionsRestriction.php index 2ce799945..950c85e1e 100644 --- a/src/Adyen/Model/BalancePlatform/MatchingTransactionsRestriction.php +++ b/src/Adyen/Model/BalancePlatform/MatchingTransactionsRestriction.php @@ -15,14 +15,14 @@ namespace Adyen\Model\BalancePlatform; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\BalancePlatform\ObjectSerializer; /** * MatchingTransactionsRestriction Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class MatchingTransactionsRestriction implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/BalancePlatform/MatchingValuesRestriction.php b/src/Adyen/Model/BalancePlatform/MatchingValuesRestriction.php index bcb9f77e1..9347bfece 100644 --- a/src/Adyen/Model/BalancePlatform/MatchingValuesRestriction.php +++ b/src/Adyen/Model/BalancePlatform/MatchingValuesRestriction.php @@ -15,14 +15,14 @@ namespace Adyen\Model\BalancePlatform; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\BalancePlatform\ObjectSerializer; /** * MatchingValuesRestriction Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class MatchingValuesRestriction implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/BalancePlatform/MccsRestriction.php b/src/Adyen/Model/BalancePlatform/MccsRestriction.php index 01e114203..467430e7a 100644 --- a/src/Adyen/Model/BalancePlatform/MccsRestriction.php +++ b/src/Adyen/Model/BalancePlatform/MccsRestriction.php @@ -15,14 +15,14 @@ namespace Adyen\Model\BalancePlatform; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\BalancePlatform\ObjectSerializer; /** * MccsRestriction Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class MccsRestriction implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/BalancePlatform/MerchantAcquirerPair.php b/src/Adyen/Model/BalancePlatform/MerchantAcquirerPair.php index ee2980121..f5cc0f631 100644 --- a/src/Adyen/Model/BalancePlatform/MerchantAcquirerPair.php +++ b/src/Adyen/Model/BalancePlatform/MerchantAcquirerPair.php @@ -15,14 +15,14 @@ namespace Adyen\Model\BalancePlatform; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\BalancePlatform\ObjectSerializer; /** * MerchantAcquirerPair Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class MerchantAcquirerPair implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/BalancePlatform/MerchantNamesRestriction.php b/src/Adyen/Model/BalancePlatform/MerchantNamesRestriction.php index 429653043..80d4f1143 100644 --- a/src/Adyen/Model/BalancePlatform/MerchantNamesRestriction.php +++ b/src/Adyen/Model/BalancePlatform/MerchantNamesRestriction.php @@ -15,14 +15,14 @@ namespace Adyen\Model\BalancePlatform; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\BalancePlatform\ObjectSerializer; /** * MerchantNamesRestriction Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class MerchantNamesRestriction implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/BalancePlatform/MerchantsRestriction.php b/src/Adyen/Model/BalancePlatform/MerchantsRestriction.php index 946b64794..a8660be26 100644 --- a/src/Adyen/Model/BalancePlatform/MerchantsRestriction.php +++ b/src/Adyen/Model/BalancePlatform/MerchantsRestriction.php @@ -15,14 +15,14 @@ namespace Adyen\Model\BalancePlatform; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\BalancePlatform\ObjectSerializer; /** * MerchantsRestriction Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class MerchantsRestriction implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/BalancePlatform/NOLocalAccountIdentification.php b/src/Adyen/Model/BalancePlatform/NOLocalAccountIdentification.php index 9b57761e6..bc44f04e1 100644 --- a/src/Adyen/Model/BalancePlatform/NOLocalAccountIdentification.php +++ b/src/Adyen/Model/BalancePlatform/NOLocalAccountIdentification.php @@ -15,14 +15,14 @@ namespace Adyen\Model\BalancePlatform; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\BalancePlatform\ObjectSerializer; /** * NOLocalAccountIdentification Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class NOLocalAccountIdentification implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/BalancePlatform/NZLocalAccountIdentification.php b/src/Adyen/Model/BalancePlatform/NZLocalAccountIdentification.php index d0490669b..0d6aa714e 100644 --- a/src/Adyen/Model/BalancePlatform/NZLocalAccountIdentification.php +++ b/src/Adyen/Model/BalancePlatform/NZLocalAccountIdentification.php @@ -15,14 +15,14 @@ namespace Adyen\Model\BalancePlatform; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\BalancePlatform\ObjectSerializer; /** * NZLocalAccountIdentification Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class NZLocalAccountIdentification implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/BalancePlatform/Name.php b/src/Adyen/Model/BalancePlatform/Name.php index 0aec6df39..745ef6b79 100644 --- a/src/Adyen/Model/BalancePlatform/Name.php +++ b/src/Adyen/Model/BalancePlatform/Name.php @@ -15,14 +15,14 @@ namespace Adyen\Model\BalancePlatform; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\BalancePlatform\ObjectSerializer; /** * Name Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class Name implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/BalancePlatform/NetworkToken.php b/src/Adyen/Model/BalancePlatform/NetworkToken.php index bcd64bbfb..8dd1b2842 100644 --- a/src/Adyen/Model/BalancePlatform/NetworkToken.php +++ b/src/Adyen/Model/BalancePlatform/NetworkToken.php @@ -15,14 +15,14 @@ namespace Adyen\Model\BalancePlatform; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\BalancePlatform\ObjectSerializer; /** * NetworkToken Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class NetworkToken implements ModelInterface, ArrayAccess, \JsonSerializable { @@ -48,6 +48,7 @@ class NetworkToken implements ModelInterface, ArrayAccess, \JsonSerializable 'paymentInstrumentId' => 'string', 'status' => 'string', 'tokenLastFour' => 'string', + 'tokenRequestor' => '\Adyen\Model\BalancePlatform\NetworkTokenRequestor', 'type' => 'string' ]; @@ -66,6 +67,7 @@ class NetworkToken implements ModelInterface, ArrayAccess, \JsonSerializable 'paymentInstrumentId' => null, 'status' => null, 'tokenLastFour' => null, + 'tokenRequestor' => null, 'type' => null ]; @@ -82,6 +84,7 @@ class NetworkToken implements ModelInterface, ArrayAccess, \JsonSerializable 'paymentInstrumentId' => false, 'status' => false, 'tokenLastFour' => false, + 'tokenRequestor' => false, 'type' => false ]; @@ -178,6 +181,7 @@ public function isNullableSetToNull(string $property): bool 'paymentInstrumentId' => 'paymentInstrumentId', 'status' => 'status', 'tokenLastFour' => 'tokenLastFour', + 'tokenRequestor' => 'tokenRequestor', 'type' => 'type' ]; @@ -194,6 +198,7 @@ public function isNullableSetToNull(string $property): bool 'paymentInstrumentId' => 'setPaymentInstrumentId', 'status' => 'setStatus', 'tokenLastFour' => 'setTokenLastFour', + 'tokenRequestor' => 'setTokenRequestor', 'type' => 'setType' ]; @@ -210,6 +215,7 @@ public function isNullableSetToNull(string $property): bool 'paymentInstrumentId' => 'getPaymentInstrumentId', 'status' => 'getStatus', 'tokenLastFour' => 'getTokenLastFour', + 'tokenRequestor' => 'getTokenRequestor', 'type' => 'getType' ]; @@ -295,6 +301,7 @@ public function __construct(?array $data = null) $this->setIfExists('paymentInstrumentId', $data ?? [], null); $this->setIfExists('status', $data ?? [], null); $this->setIfExists('tokenLastFour', $data ?? [], null); + $this->setIfExists('tokenRequestor', $data ?? [], null); $this->setIfExists('type', $data ?? [], null); } @@ -386,7 +393,7 @@ public function getCreationDate() /** * Sets creationDate * - * @param \DateTime|null $creationDate Date and time when the network token was created, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) extended format. For example, **2020-12-18T10:15:30+01:00**.. + * @param \DateTime|null $creationDate Date and time when the network token was created, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) extended format. For example, **2025-03-19T10:15:30+01:00**.. * * @return self */ @@ -527,6 +534,30 @@ public function setTokenLastFour($tokenLastFour) return $this; } + /** + * Gets tokenRequestor + * + * @return \Adyen\Model\BalancePlatform\NetworkTokenRequestor|null + */ + public function getTokenRequestor() + { + return $this->container['tokenRequestor']; + } + + /** + * Sets tokenRequestor + * + * @param \Adyen\Model\BalancePlatform\NetworkTokenRequestor|null $tokenRequestor tokenRequestor + * + * @return self + */ + public function setTokenRequestor($tokenRequestor) + { + $this->container['tokenRequestor'] = $tokenRequestor; + + return $this; + } + /** * Gets type * diff --git a/src/Adyen/Model/BalancePlatform/NetworkTokenActivationDataRequest.php b/src/Adyen/Model/BalancePlatform/NetworkTokenActivationDataRequest.php new file mode 100644 index 000000000..4338e9cd7 --- /dev/null +++ b/src/Adyen/Model/BalancePlatform/NetworkTokenActivationDataRequest.php @@ -0,0 +1,404 @@ + + */ +class NetworkTokenActivationDataRequest implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'NetworkTokenActivationDataRequest'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'sdkOutput' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'sdkOutput' => null + ]; + + /** + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ + protected static $openAPINullables = [ + 'sdkOutput' => 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 = [ + 'sdkOutput' => 'sdkOutput' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'sdkOutput' => 'setSdkOutput' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'sdkOutput' => 'getSdkOutput' + ]; + + /** + * 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('sdkOutput', $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 sdkOutput + * + * @return string|null + */ + public function getSdkOutput() + { + return $this->container['sdkOutput']; + } + + /** + * Sets sdkOutput + * + * @param string|null $sdkOutput A block of data automatically generated by Adyen's SDK for network token provisioning. This `sdkOutput` is required to create provisioning data for the network token. For more information, see the repositories for Adyen's SDKs for network token provisioning: * [Adyen Apple Pay Provisioning SDK](https://github.com/Adyen/adyen-apple-pay-provisioning-ios). * [Adyen Google Wallet Provisioning SDK](https://github.com/Adyen/adyen-issuing-android) + * + * @return self + */ + public function setSdkOutput($sdkOutput) + { + $this->container['sdkOutput'] = $sdkOutput; + + 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); + } + + public function toArray(): array + { + $array = []; + foreach (self::$openAPITypes as $propertyName => $propertyType) { + $propertyValue = $this[$propertyName]; + if ($propertyValue !== null) { + // Check if the property value is an object and has a toArray() method + if (is_object($propertyValue) && method_exists($propertyValue, 'toArray')) { + $array[$propertyName] = $propertyValue->toArray(); + // Check if it's type datetime + } elseif ($propertyValue instanceof \DateTime) { + $array[$propertyName] = $propertyValue->format(DATE_ATOM); + // If it's an array type we should check whether it contains objects and if so call toArray method + } elseif (is_array($propertyValue)) { + $array[$propertyName] = array_map(function ($item) { + return $item instanceof ModelInterface ? $item->toArray() : $item; + }, $propertyValue); + } else { + // Otherwise, directly assign the property value to the array + $array[$propertyName] = $propertyValue; + } + } + } + return $array; + } + + /** + * 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/BalancePlatform/NetworkTokenActivationDataResponse.php b/src/Adyen/Model/BalancePlatform/NetworkTokenActivationDataResponse.php new file mode 100644 index 000000000..ab1bdc9aa --- /dev/null +++ b/src/Adyen/Model/BalancePlatform/NetworkTokenActivationDataResponse.php @@ -0,0 +1,404 @@ + + */ +class NetworkTokenActivationDataResponse implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'NetworkTokenActivationDataResponse'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'sdkInput' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'sdkInput' => null + ]; + + /** + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ + protected static $openAPINullables = [ + 'sdkInput' => 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 = [ + 'sdkInput' => 'sdkInput' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'sdkInput' => 'setSdkInput' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'sdkInput' => 'getSdkInput' + ]; + + /** + * 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('sdkInput', $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 sdkInput + * + * @return string|null + */ + public function getSdkInput() + { + return $this->container['sdkInput']; + } + + /** + * Sets sdkInput + * + * @param string|null $sdkInput A block of data that contains the activation data for a network token. This `sdkInput` is required to initialize Adyen's SDK for network token provisioning. For more information, see the repositories for Adyen's SDKs for network token provisioning: * [Adyen Apple Pay Provisioning SDK](https://github.com/Adyen/adyen-apple-pay-provisioning-ios). * [Adyen Google Wallet Provisioning SDK](https://github.com/Adyen/adyen-issuing-android) + * + * @return self + */ + public function setSdkInput($sdkInput) + { + $this->container['sdkInput'] = $sdkInput; + + 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); + } + + public function toArray(): array + { + $array = []; + foreach (self::$openAPITypes as $propertyName => $propertyType) { + $propertyValue = $this[$propertyName]; + if ($propertyValue !== null) { + // Check if the property value is an object and has a toArray() method + if (is_object($propertyValue) && method_exists($propertyValue, 'toArray')) { + $array[$propertyName] = $propertyValue->toArray(); + // Check if it's type datetime + } elseif ($propertyValue instanceof \DateTime) { + $array[$propertyName] = $propertyValue->format(DATE_ATOM); + // If it's an array type we should check whether it contains objects and if so call toArray method + } elseif (is_array($propertyValue)) { + $array[$propertyName] = array_map(function ($item) { + return $item instanceof ModelInterface ? $item->toArray() : $item; + }, $propertyValue); + } else { + // Otherwise, directly assign the property value to the array + $array[$propertyName] = $propertyValue; + } + } + } + return $array; + } + + /** + * 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/BalancePlatform/NetworkTokenRequestor.php b/src/Adyen/Model/BalancePlatform/NetworkTokenRequestor.php new file mode 100644 index 000000000..410472565 --- /dev/null +++ b/src/Adyen/Model/BalancePlatform/NetworkTokenRequestor.php @@ -0,0 +1,435 @@ + + */ +class NetworkTokenRequestor implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'NetworkTokenRequestor'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'id' => 'string', + 'name' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'id' => null, + 'name' => null + ]; + + /** + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ + protected static $openAPINullables = [ + 'id' => false, + 'name' => 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 = [ + 'id' => 'id', + 'name' => 'name' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'id' => 'setId', + 'name' => 'setName' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'id' => 'getId', + 'name' => 'getName' + ]; + + /** + * 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('id', $data ?? [], null); + $this->setIfExists('name', $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 id + * + * @return string|null + */ + public function getId() + { + return $this->container['id']; + } + + /** + * Sets id + * + * @param string|null $id The id of the network token requestor. + * + * @return self + */ + public function setId($id) + { + $this->container['id'] = $id; + + return $this; + } + + /** + * Gets name + * + * @return string|null + */ + public function getName() + { + return $this->container['name']; + } + + /** + * Sets name + * + * @param string|null $name The name of the network token requestor. + * + * @return self + */ + public function setName($name) + { + $this->container['name'] = $name; + + 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); + } + + public function toArray(): array + { + $array = []; + foreach (self::$openAPITypes as $propertyName => $propertyType) { + $propertyValue = $this[$propertyName]; + if ($propertyValue !== null) { + // Check if the property value is an object and has a toArray() method + if (is_object($propertyValue) && method_exists($propertyValue, 'toArray')) { + $array[$propertyName] = $propertyValue->toArray(); + // Check if it's type datetime + } elseif ($propertyValue instanceof \DateTime) { + $array[$propertyName] = $propertyValue->format(DATE_ATOM); + // If it's an array type we should check whether it contains objects and if so call toArray method + } elseif (is_array($propertyValue)) { + $array[$propertyName] = array_map(function ($item) { + return $item instanceof ModelInterface ? $item->toArray() : $item; + }, $propertyValue); + } else { + // Otherwise, directly assign the property value to the array + $array[$propertyName] = $propertyValue; + } + } + } + return $array; + } + + /** + * 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/BalancePlatform/NumberAndBicAccountIdentification.php b/src/Adyen/Model/BalancePlatform/NumberAndBicAccountIdentification.php index 4e4e7d8ce..f194459ad 100644 --- a/src/Adyen/Model/BalancePlatform/NumberAndBicAccountIdentification.php +++ b/src/Adyen/Model/BalancePlatform/NumberAndBicAccountIdentification.php @@ -15,14 +15,14 @@ namespace Adyen\Model\BalancePlatform; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\BalancePlatform\ObjectSerializer; /** * NumberAndBicAccountIdentification Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class NumberAndBicAccountIdentification implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/BalancePlatform/PLLocalAccountIdentification.php b/src/Adyen/Model/BalancePlatform/PLLocalAccountIdentification.php index afc3ed384..75733095c 100644 --- a/src/Adyen/Model/BalancePlatform/PLLocalAccountIdentification.php +++ b/src/Adyen/Model/BalancePlatform/PLLocalAccountIdentification.php @@ -15,14 +15,14 @@ namespace Adyen\Model\BalancePlatform; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\BalancePlatform\ObjectSerializer; /** * PLLocalAccountIdentification Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class PLLocalAccountIdentification implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/BalancePlatform/PaginatedAccountHoldersResponse.php b/src/Adyen/Model/BalancePlatform/PaginatedAccountHoldersResponse.php index d562e6ef2..d691fed7a 100644 --- a/src/Adyen/Model/BalancePlatform/PaginatedAccountHoldersResponse.php +++ b/src/Adyen/Model/BalancePlatform/PaginatedAccountHoldersResponse.php @@ -15,14 +15,14 @@ namespace Adyen\Model\BalancePlatform; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\BalancePlatform\ObjectSerializer; /** * PaginatedAccountHoldersResponse Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class PaginatedAccountHoldersResponse implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/BalancePlatform/PaginatedBalanceAccountsResponse.php b/src/Adyen/Model/BalancePlatform/PaginatedBalanceAccountsResponse.php index 0b0f8fb80..d3bd3a4cd 100644 --- a/src/Adyen/Model/BalancePlatform/PaginatedBalanceAccountsResponse.php +++ b/src/Adyen/Model/BalancePlatform/PaginatedBalanceAccountsResponse.php @@ -15,14 +15,14 @@ namespace Adyen\Model\BalancePlatform; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\BalancePlatform\ObjectSerializer; /** * PaginatedBalanceAccountsResponse Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class PaginatedBalanceAccountsResponse implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/BalancePlatform/PaginatedGetCardOrderItemResponse.php b/src/Adyen/Model/BalancePlatform/PaginatedGetCardOrderItemResponse.php index 264891119..889df079a 100644 --- a/src/Adyen/Model/BalancePlatform/PaginatedGetCardOrderItemResponse.php +++ b/src/Adyen/Model/BalancePlatform/PaginatedGetCardOrderItemResponse.php @@ -15,14 +15,14 @@ namespace Adyen\Model\BalancePlatform; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\BalancePlatform\ObjectSerializer; /** * PaginatedGetCardOrderItemResponse Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class PaginatedGetCardOrderItemResponse implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/BalancePlatform/PaginatedGetCardOrderResponse.php b/src/Adyen/Model/BalancePlatform/PaginatedGetCardOrderResponse.php index bdcd110fb..72da4c8d9 100644 --- a/src/Adyen/Model/BalancePlatform/PaginatedGetCardOrderResponse.php +++ b/src/Adyen/Model/BalancePlatform/PaginatedGetCardOrderResponse.php @@ -15,14 +15,14 @@ namespace Adyen\Model\BalancePlatform; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\BalancePlatform\ObjectSerializer; /** * PaginatedGetCardOrderResponse Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class PaginatedGetCardOrderResponse implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/BalancePlatform/PaginatedPaymentInstrumentsResponse.php b/src/Adyen/Model/BalancePlatform/PaginatedPaymentInstrumentsResponse.php index 2df3af08d..e6bfdc927 100644 --- a/src/Adyen/Model/BalancePlatform/PaginatedPaymentInstrumentsResponse.php +++ b/src/Adyen/Model/BalancePlatform/PaginatedPaymentInstrumentsResponse.php @@ -15,14 +15,14 @@ namespace Adyen\Model\BalancePlatform; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\BalancePlatform\ObjectSerializer; /** * PaginatedPaymentInstrumentsResponse Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class PaginatedPaymentInstrumentsResponse implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/BalancePlatform/PaymentInstrument.php b/src/Adyen/Model/BalancePlatform/PaymentInstrument.php index fd055b5cb..b367da3ce 100644 --- a/src/Adyen/Model/BalancePlatform/PaymentInstrument.php +++ b/src/Adyen/Model/BalancePlatform/PaymentInstrument.php @@ -15,14 +15,14 @@ namespace Adyen\Model\BalancePlatform; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\BalancePlatform\ObjectSerializer; /** * PaymentInstrument Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class PaymentInstrument implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/BalancePlatform/PaymentInstrumentAdditionalBankAccountIdentificationsInner.php b/src/Adyen/Model/BalancePlatform/PaymentInstrumentAdditionalBankAccountIdentificationsInner.php index b3c6b6045..e5818e088 100644 --- a/src/Adyen/Model/BalancePlatform/PaymentInstrumentAdditionalBankAccountIdentificationsInner.php +++ b/src/Adyen/Model/BalancePlatform/PaymentInstrumentAdditionalBankAccountIdentificationsInner.php @@ -15,14 +15,14 @@ namespace Adyen\Model\BalancePlatform; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\BalancePlatform\ObjectSerializer; /** * PaymentInstrumentAdditionalBankAccountIdentificationsInner Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class PaymentInstrumentAdditionalBankAccountIdentificationsInner implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/BalancePlatform/PaymentInstrumentGroup.php b/src/Adyen/Model/BalancePlatform/PaymentInstrumentGroup.php index 0f08643eb..5c0835521 100644 --- a/src/Adyen/Model/BalancePlatform/PaymentInstrumentGroup.php +++ b/src/Adyen/Model/BalancePlatform/PaymentInstrumentGroup.php @@ -15,14 +15,14 @@ namespace Adyen\Model\BalancePlatform; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\BalancePlatform\ObjectSerializer; /** * PaymentInstrumentGroup Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class PaymentInstrumentGroup implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/BalancePlatform/PaymentInstrumentGroupInfo.php b/src/Adyen/Model/BalancePlatform/PaymentInstrumentGroupInfo.php index 8ea9a53d9..ce7093295 100644 --- a/src/Adyen/Model/BalancePlatform/PaymentInstrumentGroupInfo.php +++ b/src/Adyen/Model/BalancePlatform/PaymentInstrumentGroupInfo.php @@ -15,14 +15,14 @@ namespace Adyen\Model\BalancePlatform; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\BalancePlatform\ObjectSerializer; /** * PaymentInstrumentGroupInfo Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class PaymentInstrumentGroupInfo implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/BalancePlatform/PaymentInstrumentInfo.php b/src/Adyen/Model/BalancePlatform/PaymentInstrumentInfo.php index c9adc6152..06f9903d0 100644 --- a/src/Adyen/Model/BalancePlatform/PaymentInstrumentInfo.php +++ b/src/Adyen/Model/BalancePlatform/PaymentInstrumentInfo.php @@ -15,14 +15,14 @@ namespace Adyen\Model\BalancePlatform; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\BalancePlatform\ObjectSerializer; /** * PaymentInstrumentInfo Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class PaymentInstrumentInfo implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/BalancePlatform/PaymentInstrumentRequirement.php b/src/Adyen/Model/BalancePlatform/PaymentInstrumentRequirement.php index 406ff537e..3daf5c2e5 100644 --- a/src/Adyen/Model/BalancePlatform/PaymentInstrumentRequirement.php +++ b/src/Adyen/Model/BalancePlatform/PaymentInstrumentRequirement.php @@ -15,14 +15,14 @@ namespace Adyen\Model\BalancePlatform; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\BalancePlatform\ObjectSerializer; /** * PaymentInstrumentRequirement Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class PaymentInstrumentRequirement implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/BalancePlatform/PaymentInstrumentRevealInfo.php b/src/Adyen/Model/BalancePlatform/PaymentInstrumentRevealInfo.php index 4afc6cdc6..c2d336c33 100644 --- a/src/Adyen/Model/BalancePlatform/PaymentInstrumentRevealInfo.php +++ b/src/Adyen/Model/BalancePlatform/PaymentInstrumentRevealInfo.php @@ -15,14 +15,14 @@ namespace Adyen\Model\BalancePlatform; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\BalancePlatform\ObjectSerializer; /** * PaymentInstrumentRevealInfo Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class PaymentInstrumentRevealInfo implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/BalancePlatform/PaymentInstrumentRevealRequest.php b/src/Adyen/Model/BalancePlatform/PaymentInstrumentRevealRequest.php index e0443434c..4367f47da 100644 --- a/src/Adyen/Model/BalancePlatform/PaymentInstrumentRevealRequest.php +++ b/src/Adyen/Model/BalancePlatform/PaymentInstrumentRevealRequest.php @@ -15,14 +15,14 @@ namespace Adyen\Model\BalancePlatform; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\BalancePlatform\ObjectSerializer; /** * PaymentInstrumentRevealRequest Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class PaymentInstrumentRevealRequest implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/BalancePlatform/PaymentInstrumentRevealResponse.php b/src/Adyen/Model/BalancePlatform/PaymentInstrumentRevealResponse.php index 56a2b03ea..78cd9bd66 100644 --- a/src/Adyen/Model/BalancePlatform/PaymentInstrumentRevealResponse.php +++ b/src/Adyen/Model/BalancePlatform/PaymentInstrumentRevealResponse.php @@ -15,14 +15,14 @@ namespace Adyen\Model\BalancePlatform; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\BalancePlatform\ObjectSerializer; /** * PaymentInstrumentRevealResponse Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class PaymentInstrumentRevealResponse implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/BalancePlatform/PaymentInstrumentUpdateRequest.php b/src/Adyen/Model/BalancePlatform/PaymentInstrumentUpdateRequest.php index f80e8da8f..3439659e9 100644 --- a/src/Adyen/Model/BalancePlatform/PaymentInstrumentUpdateRequest.php +++ b/src/Adyen/Model/BalancePlatform/PaymentInstrumentUpdateRequest.php @@ -15,14 +15,14 @@ namespace Adyen\Model\BalancePlatform; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\BalancePlatform\ObjectSerializer; /** * PaymentInstrumentUpdateRequest Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class PaymentInstrumentUpdateRequest implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/BalancePlatform/Phone.php b/src/Adyen/Model/BalancePlatform/Phone.php index 132388951..c0330dbf8 100644 --- a/src/Adyen/Model/BalancePlatform/Phone.php +++ b/src/Adyen/Model/BalancePlatform/Phone.php @@ -15,14 +15,14 @@ namespace Adyen\Model\BalancePlatform; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\BalancePlatform\ObjectSerializer; /** * Phone Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class Phone implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/BalancePlatform/PhoneNumber.php b/src/Adyen/Model/BalancePlatform/PhoneNumber.php index 875bdd08f..5ae47a297 100644 --- a/src/Adyen/Model/BalancePlatform/PhoneNumber.php +++ b/src/Adyen/Model/BalancePlatform/PhoneNumber.php @@ -15,14 +15,14 @@ namespace Adyen\Model\BalancePlatform; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\BalancePlatform\ObjectSerializer; /** * PhoneNumber Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class PhoneNumber implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/BalancePlatform/PinChangeRequest.php b/src/Adyen/Model/BalancePlatform/PinChangeRequest.php index 45863c8a8..ccfea4e7a 100644 --- a/src/Adyen/Model/BalancePlatform/PinChangeRequest.php +++ b/src/Adyen/Model/BalancePlatform/PinChangeRequest.php @@ -15,14 +15,14 @@ namespace Adyen\Model\BalancePlatform; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\BalancePlatform\ObjectSerializer; /** * PinChangeRequest Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class PinChangeRequest implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/BalancePlatform/PinChangeResponse.php b/src/Adyen/Model/BalancePlatform/PinChangeResponse.php index 10a0ec6c7..1627297c1 100644 --- a/src/Adyen/Model/BalancePlatform/PinChangeResponse.php +++ b/src/Adyen/Model/BalancePlatform/PinChangeResponse.php @@ -15,14 +15,14 @@ namespace Adyen\Model\BalancePlatform; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\BalancePlatform\ObjectSerializer; /** * PinChangeResponse Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class PinChangeResponse implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/BalancePlatform/PlatformPaymentConfiguration.php b/src/Adyen/Model/BalancePlatform/PlatformPaymentConfiguration.php index 5fd06c480..2c1377c14 100644 --- a/src/Adyen/Model/BalancePlatform/PlatformPaymentConfiguration.php +++ b/src/Adyen/Model/BalancePlatform/PlatformPaymentConfiguration.php @@ -15,14 +15,14 @@ namespace Adyen\Model\BalancePlatform; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\BalancePlatform\ObjectSerializer; /** * PlatformPaymentConfiguration Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class PlatformPaymentConfiguration implements ModelInterface, ArrayAccess, \JsonSerializable { @@ -293,7 +293,7 @@ public function getSalesDayClosingTime() /** * Sets salesDayClosingTime * - * @param string|null $salesDayClosingTime Specifies at what time a [sales day](https://docs.adyen.com/platforms/settle-funds/sales-day-settlement#sales-day) ends for this account. Possible values: Time in **\"HH:MM\"** format. **HH** ranges from **00** to **07**. **MM** must be **00**. Default value: **\"00:00\"**. + * @param string|null $salesDayClosingTime Specifies at what time a sales day ends for this account. Possible values: Time in **\"HH:MM\"** format. **HH** ranges from **00** to **07**. **MM** must be **00**. Default value: **\"00:00\"**. * * @return self */ @@ -317,7 +317,7 @@ public function getSettlementDelayDays() /** * Sets settlementDelayDays * - * @param int|null $settlementDelayDays Specifies after how many business days the funds in a [settlement batch](https://docs.adyen.com/platforms/settle-funds/sales-day-settlement#settlement-batch) are made available in this balance account. Possible values: **1** to **20**, or **null**. * Setting this value to an integer enables Sales day settlement in this balance account. See how Sales day settlement works in your [marketplace](https://docs.adyen.com/marketplaces/settle-funds/sales-day-settlement) or [platform](https://docs.adyen.com/platforms/settle-funds/sales-day-settlement). * Setting this value to **null** enables Pass-through settlement in this balance account. See how Pass-through settlement works in your [marketplace](https://docs.adyen.com/marketplaces/settle-funds/pass-through-settlement) or [platform](https://docs.adyen.com/platforms/settle-funds/pass-through-settlement). Default value: **null**. + * @param int|null $settlementDelayDays Specifies after how many business days the funds in a settlement batch are made available in this balance account. Possible values: **1** to **20**, or **null**. Default value: **null**. * * @return self */ diff --git a/src/Adyen/Model/BalancePlatform/ProcessingTypesRestriction.php b/src/Adyen/Model/BalancePlatform/ProcessingTypesRestriction.php index 4352b2603..be2330bb1 100644 --- a/src/Adyen/Model/BalancePlatform/ProcessingTypesRestriction.php +++ b/src/Adyen/Model/BalancePlatform/ProcessingTypesRestriction.php @@ -15,14 +15,14 @@ namespace Adyen\Model\BalancePlatform; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\BalancePlatform\ObjectSerializer; /** * ProcessingTypesRestriction Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class ProcessingTypesRestriction implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/BalancePlatform/PublicKeyResponse.php b/src/Adyen/Model/BalancePlatform/PublicKeyResponse.php index fab655d15..ae117a78e 100644 --- a/src/Adyen/Model/BalancePlatform/PublicKeyResponse.php +++ b/src/Adyen/Model/BalancePlatform/PublicKeyResponse.php @@ -15,14 +15,14 @@ namespace Adyen\Model\BalancePlatform; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\BalancePlatform\ObjectSerializer; /** * PublicKeyResponse Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class PublicKeyResponse implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/BalancePlatform/RegisterSCAFinalResponse.php b/src/Adyen/Model/BalancePlatform/RegisterSCAFinalResponse.php index e8c24d797..9d3d5017c 100644 --- a/src/Adyen/Model/BalancePlatform/RegisterSCAFinalResponse.php +++ b/src/Adyen/Model/BalancePlatform/RegisterSCAFinalResponse.php @@ -15,14 +15,14 @@ namespace Adyen\Model\BalancePlatform; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\BalancePlatform\ObjectSerializer; /** * RegisterSCAFinalResponse Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class RegisterSCAFinalResponse implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/BalancePlatform/RegisterSCARequest.php b/src/Adyen/Model/BalancePlatform/RegisterSCARequest.php index 37bdf783f..9f6973892 100644 --- a/src/Adyen/Model/BalancePlatform/RegisterSCARequest.php +++ b/src/Adyen/Model/BalancePlatform/RegisterSCARequest.php @@ -15,14 +15,14 @@ namespace Adyen\Model\BalancePlatform; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\BalancePlatform\ObjectSerializer; /** * RegisterSCARequest Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class RegisterSCARequest implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/BalancePlatform/RegisterSCAResponse.php b/src/Adyen/Model/BalancePlatform/RegisterSCAResponse.php index 2c0e33974..2c73cc8ac 100644 --- a/src/Adyen/Model/BalancePlatform/RegisterSCAResponse.php +++ b/src/Adyen/Model/BalancePlatform/RegisterSCAResponse.php @@ -15,14 +15,14 @@ namespace Adyen\Model\BalancePlatform; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\BalancePlatform\ObjectSerializer; /** * RegisterSCAResponse Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class RegisterSCAResponse implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/BalancePlatform/RemediatingAction.php b/src/Adyen/Model/BalancePlatform/RemediatingAction.php index ba0cf5304..9d7ed3509 100644 --- a/src/Adyen/Model/BalancePlatform/RemediatingAction.php +++ b/src/Adyen/Model/BalancePlatform/RemediatingAction.php @@ -15,14 +15,14 @@ namespace Adyen\Model\BalancePlatform; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\BalancePlatform\ObjectSerializer; /** * RemediatingAction Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class RemediatingAction implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/BalancePlatform/Repayment.php b/src/Adyen/Model/BalancePlatform/Repayment.php index b89f2f56e..ce39bcd77 100644 --- a/src/Adyen/Model/BalancePlatform/Repayment.php +++ b/src/Adyen/Model/BalancePlatform/Repayment.php @@ -15,14 +15,14 @@ namespace Adyen\Model\BalancePlatform; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\BalancePlatform\ObjectSerializer; /** * Repayment Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class Repayment implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/BalancePlatform/RepaymentTerm.php b/src/Adyen/Model/BalancePlatform/RepaymentTerm.php index 28a8e49a7..0b8cedc78 100644 --- a/src/Adyen/Model/BalancePlatform/RepaymentTerm.php +++ b/src/Adyen/Model/BalancePlatform/RepaymentTerm.php @@ -15,14 +15,14 @@ namespace Adyen\Model\BalancePlatform; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\BalancePlatform\ObjectSerializer; /** * RepaymentTerm Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class RepaymentTerm implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/BalancePlatform/RestServiceError.php b/src/Adyen/Model/BalancePlatform/RestServiceError.php index e33aaa143..b70b23e52 100644 --- a/src/Adyen/Model/BalancePlatform/RestServiceError.php +++ b/src/Adyen/Model/BalancePlatform/RestServiceError.php @@ -15,14 +15,14 @@ namespace Adyen\Model\BalancePlatform; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\BalancePlatform\ObjectSerializer; /** * RestServiceError Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class RestServiceError implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/BalancePlatform/RevealPinRequest.php b/src/Adyen/Model/BalancePlatform/RevealPinRequest.php index 37007e9f7..004286c40 100644 --- a/src/Adyen/Model/BalancePlatform/RevealPinRequest.php +++ b/src/Adyen/Model/BalancePlatform/RevealPinRequest.php @@ -15,14 +15,14 @@ namespace Adyen\Model\BalancePlatform; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\BalancePlatform\ObjectSerializer; /** * RevealPinRequest Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class RevealPinRequest implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/BalancePlatform/RevealPinResponse.php b/src/Adyen/Model/BalancePlatform/RevealPinResponse.php index ffd7023c3..da569836e 100644 --- a/src/Adyen/Model/BalancePlatform/RevealPinResponse.php +++ b/src/Adyen/Model/BalancePlatform/RevealPinResponse.php @@ -15,14 +15,14 @@ namespace Adyen\Model\BalancePlatform; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\BalancePlatform\ObjectSerializer; /** * RevealPinResponse Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class RevealPinResponse implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/BalancePlatform/RiskScores.php b/src/Adyen/Model/BalancePlatform/RiskScores.php index c6154c194..2344e6906 100644 --- a/src/Adyen/Model/BalancePlatform/RiskScores.php +++ b/src/Adyen/Model/BalancePlatform/RiskScores.php @@ -15,14 +15,14 @@ namespace Adyen\Model\BalancePlatform; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\BalancePlatform\ObjectSerializer; /** * RiskScores Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class RiskScores implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/BalancePlatform/RiskScoresRestriction.php b/src/Adyen/Model/BalancePlatform/RiskScoresRestriction.php index c419c6932..6e135f6fc 100644 --- a/src/Adyen/Model/BalancePlatform/RiskScoresRestriction.php +++ b/src/Adyen/Model/BalancePlatform/RiskScoresRestriction.php @@ -15,14 +15,14 @@ namespace Adyen\Model\BalancePlatform; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\BalancePlatform\ObjectSerializer; /** * RiskScoresRestriction Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class RiskScoresRestriction implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/BalancePlatform/SELocalAccountIdentification.php b/src/Adyen/Model/BalancePlatform/SELocalAccountIdentification.php index 0177fab3a..58ef7ce18 100644 --- a/src/Adyen/Model/BalancePlatform/SELocalAccountIdentification.php +++ b/src/Adyen/Model/BalancePlatform/SELocalAccountIdentification.php @@ -15,14 +15,14 @@ namespace Adyen\Model\BalancePlatform; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\BalancePlatform\ObjectSerializer; /** * SELocalAccountIdentification Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class SELocalAccountIdentification implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/BalancePlatform/SGLocalAccountIdentification.php b/src/Adyen/Model/BalancePlatform/SGLocalAccountIdentification.php index 655af596a..010f5378c 100644 --- a/src/Adyen/Model/BalancePlatform/SGLocalAccountIdentification.php +++ b/src/Adyen/Model/BalancePlatform/SGLocalAccountIdentification.php @@ -15,14 +15,14 @@ namespace Adyen\Model\BalancePlatform; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\BalancePlatform\ObjectSerializer; /** * SGLocalAccountIdentification Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class SGLocalAccountIdentification implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/BalancePlatform/SameAmountRestriction.php b/src/Adyen/Model/BalancePlatform/SameAmountRestriction.php index cba17740a..43d8811af 100644 --- a/src/Adyen/Model/BalancePlatform/SameAmountRestriction.php +++ b/src/Adyen/Model/BalancePlatform/SameAmountRestriction.php @@ -15,14 +15,14 @@ namespace Adyen\Model\BalancePlatform; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\BalancePlatform\ObjectSerializer; /** * SameAmountRestriction Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class SameAmountRestriction implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/BalancePlatform/SameCounterpartyRestriction.php b/src/Adyen/Model/BalancePlatform/SameCounterpartyRestriction.php index a6b948fc7..573170c4c 100644 --- a/src/Adyen/Model/BalancePlatform/SameCounterpartyRestriction.php +++ b/src/Adyen/Model/BalancePlatform/SameCounterpartyRestriction.php @@ -15,14 +15,14 @@ namespace Adyen\Model\BalancePlatform; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\BalancePlatform\ObjectSerializer; /** * SameCounterpartyRestriction Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class SameCounterpartyRestriction implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/BalancePlatform/SearchRegisteredDevicesResponse.php b/src/Adyen/Model/BalancePlatform/SearchRegisteredDevicesResponse.php index 0ad1a05d0..acc1017bd 100644 --- a/src/Adyen/Model/BalancePlatform/SearchRegisteredDevicesResponse.php +++ b/src/Adyen/Model/BalancePlatform/SearchRegisteredDevicesResponse.php @@ -15,14 +15,14 @@ namespace Adyen\Model\BalancePlatform; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\BalancePlatform\ObjectSerializer; /** * SearchRegisteredDevicesResponse Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class SearchRegisteredDevicesResponse implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/BalancePlatform/SourceAccountTypesRestriction.php b/src/Adyen/Model/BalancePlatform/SourceAccountTypesRestriction.php index 918917a7e..f9ba54f29 100644 --- a/src/Adyen/Model/BalancePlatform/SourceAccountTypesRestriction.php +++ b/src/Adyen/Model/BalancePlatform/SourceAccountTypesRestriction.php @@ -15,14 +15,14 @@ namespace Adyen\Model\BalancePlatform; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\BalancePlatform\ObjectSerializer; /** * SourceAccountTypesRestriction Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class SourceAccountTypesRestriction implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/BalancePlatform/StringMatch.php b/src/Adyen/Model/BalancePlatform/StringMatch.php index b178e3d9e..059f63715 100644 --- a/src/Adyen/Model/BalancePlatform/StringMatch.php +++ b/src/Adyen/Model/BalancePlatform/StringMatch.php @@ -15,14 +15,14 @@ namespace Adyen\Model\BalancePlatform; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\BalancePlatform\ObjectSerializer; /** * StringMatch Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class StringMatch implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/BalancePlatform/SweepConfigurationV2.php b/src/Adyen/Model/BalancePlatform/SweepConfigurationV2.php index 32e3c50ba..f874714ca 100644 --- a/src/Adyen/Model/BalancePlatform/SweepConfigurationV2.php +++ b/src/Adyen/Model/BalancePlatform/SweepConfigurationV2.php @@ -15,14 +15,14 @@ namespace Adyen\Model\BalancePlatform; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\BalancePlatform\ObjectSerializer; /** * SweepConfigurationV2 Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class SweepConfigurationV2 implements ModelInterface, ArrayAccess, \JsonSerializable { @@ -313,6 +313,7 @@ public function getModelName() public const PRIORITIES_WIRE = 'wire'; public const REASON_ACCOUNT_HIERARCHY_NOT_ACTIVE = 'accountHierarchyNotActive'; public const REASON_AMOUNT_LIMIT_EXCEEDED = 'amountLimitExceeded'; + public const REASON_APPROVAL_EXPIRED = 'approvalExpired'; public const REASON_APPROVED = 'approved'; public const REASON_BALANCE_ACCOUNT_TEMPORARILY_BLOCKED_BY_TRANSACTION_RULE = 'balanceAccountTemporarilyBlockedByTransactionRule'; public const REASON_COUNTERPARTY_ACCOUNT_BLOCKED = 'counterpartyAccountBlocked'; @@ -379,6 +380,7 @@ public function getReasonAllowableValues() return [ self::REASON_ACCOUNT_HIERARCHY_NOT_ACTIVE, self::REASON_AMOUNT_LIMIT_EXCEEDED, + self::REASON_APPROVAL_EXPIRED, self::REASON_APPROVED, self::REASON_BALANCE_ACCOUNT_TEMPORARILY_BLOCKED_BY_TRANSACTION_RULE, self::REASON_COUNTERPARTY_ACCOUNT_BLOCKED, @@ -693,7 +695,7 @@ public function getPriorities() /** * Sets priorities * - * @param string[]|null $priorities The list of priorities for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. You can provide multiple priorities, ordered by your preference. Adyen will try to pay out using the priorities in the given order. If the first priority is not currently supported or enabled for your platform, the system will try the next one, and so on. The request will be accepted as long as **at least one** of the provided priorities is valid (i.e., supported by Adyen and activated for your platform). For example, if you provide `[\"wire\",\"regular\"]`, and `wire` is not supported but `regular` is, the request will still be accepted and processed. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers in [SEPA countries](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). Set `category` to **bank**. For more details, see optional priorities setup for [marketplaces](https://docs.adyen.com/marketplaces/payout-to-users/scheduled-payouts#optional-priorities-setup) or [platforms](https://docs.adyen.com/platforms/payout-to-users/scheduled-payouts#optional-priorities-setup). + * @param string[]|null $priorities The list of priorities for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. You can provide multiple priorities, ordered by your preference. Adyen will try to pay out using the priorities in the given order. If the first priority is not currently supported or enabled for your platform, the system will try the next one, and so on. The request will be accepted as long as **at least one** of the provided priorities is valid (i.e., supported by Adyen and activated for your platform). For example, if you provide `[\"wire\",\"regular\"]`, and `wire` is not supported but `regular` is, the request will still be accepted and processed. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). Set `category` to **bank**. For more details, see optional priorities setup for [marketplaces](https://docs.adyen.com/marketplaces/payout-to-users/scheduled-payouts#optional-priorities-setup) or [platforms](https://docs.adyen.com/platforms/payout-to-users/scheduled-payouts#optional-priorities-setup). * * @return self */ diff --git a/src/Adyen/Model/BalancePlatform/SweepCounterparty.php b/src/Adyen/Model/BalancePlatform/SweepCounterparty.php index b41959c30..b05dec9b5 100644 --- a/src/Adyen/Model/BalancePlatform/SweepCounterparty.php +++ b/src/Adyen/Model/BalancePlatform/SweepCounterparty.php @@ -15,14 +15,14 @@ namespace Adyen\Model\BalancePlatform; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\BalancePlatform\ObjectSerializer; /** * SweepCounterparty Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class SweepCounterparty implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/BalancePlatform/SweepSchedule.php b/src/Adyen/Model/BalancePlatform/SweepSchedule.php index f80a24719..281fd5585 100644 --- a/src/Adyen/Model/BalancePlatform/SweepSchedule.php +++ b/src/Adyen/Model/BalancePlatform/SweepSchedule.php @@ -15,14 +15,14 @@ namespace Adyen\Model\BalancePlatform; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\BalancePlatform\ObjectSerializer; /** * SweepSchedule Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class SweepSchedule implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/BalancePlatform/ThresholdRepayment.php b/src/Adyen/Model/BalancePlatform/ThresholdRepayment.php index 0b47325d2..2c3d86495 100644 --- a/src/Adyen/Model/BalancePlatform/ThresholdRepayment.php +++ b/src/Adyen/Model/BalancePlatform/ThresholdRepayment.php @@ -15,14 +15,14 @@ namespace Adyen\Model\BalancePlatform; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\BalancePlatform\ObjectSerializer; /** * ThresholdRepayment Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class ThresholdRepayment implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/BalancePlatform/TimeOfDay.php b/src/Adyen/Model/BalancePlatform/TimeOfDay.php index 02ef3a367..38947599e 100644 --- a/src/Adyen/Model/BalancePlatform/TimeOfDay.php +++ b/src/Adyen/Model/BalancePlatform/TimeOfDay.php @@ -15,14 +15,14 @@ namespace Adyen\Model\BalancePlatform; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\BalancePlatform\ObjectSerializer; /** * TimeOfDay Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class TimeOfDay implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/BalancePlatform/TimeOfDayRestriction.php b/src/Adyen/Model/BalancePlatform/TimeOfDayRestriction.php index aa9f79786..45971b8b1 100644 --- a/src/Adyen/Model/BalancePlatform/TimeOfDayRestriction.php +++ b/src/Adyen/Model/BalancePlatform/TimeOfDayRestriction.php @@ -15,14 +15,14 @@ namespace Adyen\Model\BalancePlatform; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\BalancePlatform\ObjectSerializer; /** * TimeOfDayRestriction Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class TimeOfDayRestriction implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/BalancePlatform/TokenRequestorsRestriction.php b/src/Adyen/Model/BalancePlatform/TokenRequestorsRestriction.php index cee20326a..e02ef1975 100644 --- a/src/Adyen/Model/BalancePlatform/TokenRequestorsRestriction.php +++ b/src/Adyen/Model/BalancePlatform/TokenRequestorsRestriction.php @@ -15,14 +15,14 @@ namespace Adyen\Model\BalancePlatform; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\BalancePlatform\ObjectSerializer; /** * TokenRequestorsRestriction Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class TokenRequestorsRestriction implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/BalancePlatform/TotalAmountRestriction.php b/src/Adyen/Model/BalancePlatform/TotalAmountRestriction.php index 6d39a3930..dc76619ca 100644 --- a/src/Adyen/Model/BalancePlatform/TotalAmountRestriction.php +++ b/src/Adyen/Model/BalancePlatform/TotalAmountRestriction.php @@ -15,14 +15,14 @@ namespace Adyen\Model\BalancePlatform; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\BalancePlatform\ObjectSerializer; /** * TotalAmountRestriction Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class TotalAmountRestriction implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/BalancePlatform/TransactionRule.php b/src/Adyen/Model/BalancePlatform/TransactionRule.php index 1f750204d..19825ec8f 100644 --- a/src/Adyen/Model/BalancePlatform/TransactionRule.php +++ b/src/Adyen/Model/BalancePlatform/TransactionRule.php @@ -15,14 +15,14 @@ namespace Adyen\Model\BalancePlatform; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\BalancePlatform\ObjectSerializer; /** * TransactionRule Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class TransactionRule implements ModelInterface, ArrayAccess, \JsonSerializable { @@ -547,7 +547,7 @@ public function getEndDate() /** * Sets endDate * - * @param string|null $endDate The date when the rule will stop being evaluated, in ISO 8601 extended offset date-time format. For example, **2020-12-18T10:15:30+01:00**. If not provided, the rule will be evaluated until the rule status is set to **inactive**. + * @param string|null $endDate The date when the rule will stop being evaluated, in ISO 8601 extended offset date-time format. For example, **2025-03-19T10:15:30+01:00**. If not provided, the rule will be evaluated until the rule status is set to **inactive**. * * @return self */ @@ -783,7 +783,7 @@ public function getStartDate() /** * Sets startDate * - * @param string|null $startDate The date when the rule will start to be evaluated, in ISO 8601 extended offset date-time format. For example, **2020-12-18T10:15:30+01:00**. If not provided when creating a transaction rule, the `startDate` is set to the date when the rule status is set to **active**. + * @param string|null $startDate The date when the rule will start to be evaluated, in ISO 8601 extended offset date-time format. For example, **2025-03-19T10:15:30+01:00**. If not provided when creating a transaction rule, the `startDate` is set to the date when the rule status is set to **active**. * * @return self */ diff --git a/src/Adyen/Model/BalancePlatform/TransactionRuleEntityKey.php b/src/Adyen/Model/BalancePlatform/TransactionRuleEntityKey.php index d634a847e..26d54a667 100644 --- a/src/Adyen/Model/BalancePlatform/TransactionRuleEntityKey.php +++ b/src/Adyen/Model/BalancePlatform/TransactionRuleEntityKey.php @@ -15,14 +15,14 @@ namespace Adyen\Model\BalancePlatform; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\BalancePlatform\ObjectSerializer; /** * TransactionRuleEntityKey Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class TransactionRuleEntityKey implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/BalancePlatform/TransactionRuleInfo.php b/src/Adyen/Model/BalancePlatform/TransactionRuleInfo.php index 1f475ce55..d7c28d427 100644 --- a/src/Adyen/Model/BalancePlatform/TransactionRuleInfo.php +++ b/src/Adyen/Model/BalancePlatform/TransactionRuleInfo.php @@ -15,14 +15,14 @@ namespace Adyen\Model\BalancePlatform; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\BalancePlatform\ObjectSerializer; /** * TransactionRuleInfo Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class TransactionRuleInfo implements ModelInterface, ArrayAccess, \JsonSerializable { @@ -540,7 +540,7 @@ public function getEndDate() /** * Sets endDate * - * @param string|null $endDate The date when the rule will stop being evaluated, in ISO 8601 extended offset date-time format. For example, **2020-12-18T10:15:30+01:00**. If not provided, the rule will be evaluated until the rule status is set to **inactive**. + * @param string|null $endDate The date when the rule will stop being evaluated, in ISO 8601 extended offset date-time format. For example, **2025-03-19T10:15:30+01:00**. If not provided, the rule will be evaluated until the rule status is set to **inactive**. * * @return self */ @@ -752,7 +752,7 @@ public function getStartDate() /** * Sets startDate * - * @param string|null $startDate The date when the rule will start to be evaluated, in ISO 8601 extended offset date-time format. For example, **2020-12-18T10:15:30+01:00**. If not provided when creating a transaction rule, the `startDate` is set to the date when the rule status is set to **active**. + * @param string|null $startDate The date when the rule will start to be evaluated, in ISO 8601 extended offset date-time format. For example, **2025-03-19T10:15:30+01:00**. If not provided when creating a transaction rule, the `startDate` is set to the date when the rule status is set to **active**. * * @return self */ diff --git a/src/Adyen/Model/BalancePlatform/TransactionRuleInterval.php b/src/Adyen/Model/BalancePlatform/TransactionRuleInterval.php index 54e48f287..6089e6146 100644 --- a/src/Adyen/Model/BalancePlatform/TransactionRuleInterval.php +++ b/src/Adyen/Model/BalancePlatform/TransactionRuleInterval.php @@ -15,14 +15,14 @@ namespace Adyen\Model\BalancePlatform; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\BalancePlatform\ObjectSerializer; /** * TransactionRuleInterval Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class TransactionRuleInterval implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/BalancePlatform/TransactionRuleResponse.php b/src/Adyen/Model/BalancePlatform/TransactionRuleResponse.php index 96f6bc10b..e293789c6 100644 --- a/src/Adyen/Model/BalancePlatform/TransactionRuleResponse.php +++ b/src/Adyen/Model/BalancePlatform/TransactionRuleResponse.php @@ -15,14 +15,14 @@ namespace Adyen\Model\BalancePlatform; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\BalancePlatform\ObjectSerializer; /** * TransactionRuleResponse Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class TransactionRuleResponse implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/BalancePlatform/TransactionRuleRestrictions.php b/src/Adyen/Model/BalancePlatform/TransactionRuleRestrictions.php index 1f14b2e58..13b722ab5 100644 --- a/src/Adyen/Model/BalancePlatform/TransactionRuleRestrictions.php +++ b/src/Adyen/Model/BalancePlatform/TransactionRuleRestrictions.php @@ -15,14 +15,14 @@ namespace Adyen\Model\BalancePlatform; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\BalancePlatform\ObjectSerializer; /** * TransactionRuleRestrictions Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class TransactionRuleRestrictions implements ModelInterface, ArrayAccess, \JsonSerializable { @@ -64,7 +64,8 @@ class TransactionRuleRestrictions implements ModelInterface, ArrayAccess, \JsonS 'tokenRequestors' => '\Adyen\Model\BalancePlatform\TokenRequestorsRestriction', 'totalAmount' => '\Adyen\Model\BalancePlatform\TotalAmountRestriction', 'walletProviderAccountScore' => '\Adyen\Model\BalancePlatform\WalletProviderAccountScoreRestriction', - 'walletProviderDeviceScore' => '\Adyen\Model\BalancePlatform\WalletProviderDeviceScore' + 'walletProviderDeviceScore' => '\Adyen\Model\BalancePlatform\WalletProviderDeviceScore', + 'walletProviderDeviceType' => '\Adyen\Model\BalancePlatform\WalletProviderDeviceType' ]; /** @@ -98,7 +99,8 @@ class TransactionRuleRestrictions implements ModelInterface, ArrayAccess, \JsonS 'tokenRequestors' => null, 'totalAmount' => null, 'walletProviderAccountScore' => null, - 'walletProviderDeviceScore' => null + 'walletProviderDeviceScore' => null, + 'walletProviderDeviceType' => null ]; /** @@ -130,7 +132,8 @@ class TransactionRuleRestrictions implements ModelInterface, ArrayAccess, \JsonS 'tokenRequestors' => false, 'totalAmount' => false, 'walletProviderAccountScore' => false, - 'walletProviderDeviceScore' => false + 'walletProviderDeviceScore' => false, + 'walletProviderDeviceType' => false ]; /** @@ -242,7 +245,8 @@ public function isNullableSetToNull(string $property): bool 'tokenRequestors' => 'tokenRequestors', 'totalAmount' => 'totalAmount', 'walletProviderAccountScore' => 'walletProviderAccountScore', - 'walletProviderDeviceScore' => 'walletProviderDeviceScore' + 'walletProviderDeviceScore' => 'walletProviderDeviceScore', + 'walletProviderDeviceType' => 'walletProviderDeviceType' ]; /** @@ -274,7 +278,8 @@ public function isNullableSetToNull(string $property): bool 'tokenRequestors' => 'setTokenRequestors', 'totalAmount' => 'setTotalAmount', 'walletProviderAccountScore' => 'setWalletProviderAccountScore', - 'walletProviderDeviceScore' => 'setWalletProviderDeviceScore' + 'walletProviderDeviceScore' => 'setWalletProviderDeviceScore', + 'walletProviderDeviceType' => 'setWalletProviderDeviceType' ]; /** @@ -306,7 +311,8 @@ public function isNullableSetToNull(string $property): bool 'tokenRequestors' => 'getTokenRequestors', 'totalAmount' => 'getTotalAmount', 'walletProviderAccountScore' => 'getWalletProviderAccountScore', - 'walletProviderDeviceScore' => 'getWalletProviderDeviceScore' + 'walletProviderDeviceScore' => 'getWalletProviderDeviceScore', + 'walletProviderDeviceType' => 'getWalletProviderDeviceType' ]; /** @@ -390,6 +396,7 @@ public function __construct(?array $data = null) $this->setIfExists('totalAmount', $data ?? [], null); $this->setIfExists('walletProviderAccountScore', $data ?? [], null); $this->setIfExists('walletProviderDeviceScore', $data ?? [], null); + $this->setIfExists('walletProviderDeviceType', $data ?? [], null); } /** @@ -1009,6 +1016,30 @@ public function setWalletProviderDeviceScore($walletProviderDeviceScore) return $this; } + + /** + * Gets walletProviderDeviceType + * + * @return \Adyen\Model\BalancePlatform\WalletProviderDeviceType|null + */ + public function getWalletProviderDeviceType() + { + return $this->container['walletProviderDeviceType']; + } + + /** + * Sets walletProviderDeviceType + * + * @param \Adyen\Model\BalancePlatform\WalletProviderDeviceType|null $walletProviderDeviceType walletProviderDeviceType + * + * @return self + */ + public function setWalletProviderDeviceType($walletProviderDeviceType) + { + $this->container['walletProviderDeviceType'] = $walletProviderDeviceType; + + return $this; + } /** * Returns true if offset exists. False otherwise. * diff --git a/src/Adyen/Model/BalancePlatform/TransactionRulesResponse.php b/src/Adyen/Model/BalancePlatform/TransactionRulesResponse.php index bdbdf3c4a..6f43f8620 100644 --- a/src/Adyen/Model/BalancePlatform/TransactionRulesResponse.php +++ b/src/Adyen/Model/BalancePlatform/TransactionRulesResponse.php @@ -15,14 +15,14 @@ namespace Adyen\Model\BalancePlatform; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\BalancePlatform\ObjectSerializer; /** * TransactionRulesResponse Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class TransactionRulesResponse implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/BalancePlatform/TransferRoute.php b/src/Adyen/Model/BalancePlatform/TransferRoute.php index 32debb4d2..b96564b8b 100644 --- a/src/Adyen/Model/BalancePlatform/TransferRoute.php +++ b/src/Adyen/Model/BalancePlatform/TransferRoute.php @@ -15,14 +15,14 @@ namespace Adyen\Model\BalancePlatform; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\BalancePlatform\ObjectSerializer; /** * TransferRoute Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class TransferRoute implements ModelInterface, ArrayAccess, \JsonSerializable { @@ -239,6 +239,7 @@ public function getModelName() public const CATEGORY_BANK = 'bank'; public const CATEGORY_CARD = 'card'; public const CATEGORY_GRANTS = 'grants'; + public const CATEGORY_INTEREST = 'interest'; public const CATEGORY_INTERNAL = 'internal'; public const CATEGORY_ISSUED_CARD = 'issuedCard'; public const CATEGORY_MIGRATION = 'migration'; @@ -263,6 +264,7 @@ public function getCategoryAllowableValues() self::CATEGORY_BANK, self::CATEGORY_CARD, self::CATEGORY_GRANTS, + self::CATEGORY_INTEREST, self::CATEGORY_INTERNAL, self::CATEGORY_ISSUED_CARD, self::CATEGORY_MIGRATION, @@ -464,7 +466,7 @@ public function getPriority() /** * Sets priority * - * @param string|null $priority The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers in [SEPA countries](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). + * @param string|null $priority The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). * * @return self */ diff --git a/src/Adyen/Model/BalancePlatform/TransferRouteRequest.php b/src/Adyen/Model/BalancePlatform/TransferRouteRequest.php index ed49c5792..785e5e3b8 100644 --- a/src/Adyen/Model/BalancePlatform/TransferRouteRequest.php +++ b/src/Adyen/Model/BalancePlatform/TransferRouteRequest.php @@ -15,14 +15,14 @@ namespace Adyen\Model\BalancePlatform; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\BalancePlatform\ObjectSerializer; /** * TransferRouteRequest Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class TransferRouteRequest implements ModelInterface, ArrayAccess, \JsonSerializable { @@ -534,7 +534,7 @@ public function getPriorities() /** * Sets priorities * - * @param string[]|null $priorities The list of priorities for the bank transfer. Priorities set the speed at which the transfer is sent and the fees that you have to pay. Multiple values can be provided. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers in [SEPA countries](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). + * @param string[]|null $priorities The list of priorities for the bank transfer. Priorities set the speed at which the transfer is sent and the fees that you have to pay. Multiple values can be provided. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). * * @return self */ diff --git a/src/Adyen/Model/BalancePlatform/TransferRouteRequirementsInner.php b/src/Adyen/Model/BalancePlatform/TransferRouteRequirementsInner.php index ea1b6f978..1d75c5de3 100644 --- a/src/Adyen/Model/BalancePlatform/TransferRouteRequirementsInner.php +++ b/src/Adyen/Model/BalancePlatform/TransferRouteRequirementsInner.php @@ -15,14 +15,14 @@ namespace Adyen\Model\BalancePlatform; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\BalancePlatform\ObjectSerializer; /** * TransferRouteRequirementsInner Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class TransferRouteRequirementsInner implements ModelInterface, ArrayAccess, \JsonSerializable { @@ -41,9 +41,10 @@ class TransferRouteRequirementsInner implements ModelInterface, ArrayAccess, \Js * @var string[] */ protected static $openAPITypes = [ + 'additionalBankIdentificationType' => 'string', 'description' => 'string', - 'requiredAddressFields' => 'string[]', 'type' => 'string', + 'requiredAddressFields' => 'string[]', 'max' => 'int', 'min' => 'int', 'bankAccountIdentificationTypes' => 'string[]', @@ -62,9 +63,10 @@ class TransferRouteRequirementsInner implements ModelInterface, ArrayAccess, \Js * @psalm-var array */ protected static $openAPIFormats = [ + 'additionalBankIdentificationType' => null, 'description' => null, - 'requiredAddressFields' => null, 'type' => null, + 'requiredAddressFields' => null, 'max' => 'int64', 'min' => 'int64', 'bankAccountIdentificationTypes' => null, @@ -81,9 +83,10 @@ class TransferRouteRequirementsInner implements ModelInterface, ArrayAccess, \Js * @var boolean[] */ protected static $openAPINullables = [ + 'additionalBankIdentificationType' => false, 'description' => false, - 'requiredAddressFields' => false, 'type' => false, + 'requiredAddressFields' => false, 'max' => false, 'min' => false, 'bankAccountIdentificationTypes' => false, @@ -180,9 +183,10 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $attributeMap = [ + 'additionalBankIdentificationType' => 'additionalBankIdentificationType', 'description' => 'description', - 'requiredAddressFields' => 'requiredAddressFields', 'type' => 'type', + 'requiredAddressFields' => 'requiredAddressFields', 'max' => 'max', 'min' => 'min', 'bankAccountIdentificationTypes' => 'bankAccountIdentificationTypes', @@ -199,9 +203,10 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $setters = [ + 'additionalBankIdentificationType' => 'setAdditionalBankIdentificationType', 'description' => 'setDescription', - 'requiredAddressFields' => 'setRequiredAddressFields', 'type' => 'setType', + 'requiredAddressFields' => 'setRequiredAddressFields', 'max' => 'setMax', 'min' => 'setMin', 'bankAccountIdentificationTypes' => 'setBankAccountIdentificationTypes', @@ -218,9 +223,10 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $getters = [ + 'additionalBankIdentificationType' => 'getAdditionalBankIdentificationType', 'description' => 'getDescription', - 'requiredAddressFields' => 'getRequiredAddressFields', 'type' => 'getType', + 'requiredAddressFields' => 'getRequiredAddressFields', 'max' => 'getMax', 'min' => 'getMin', 'bankAccountIdentificationTypes' => 'getBankAccountIdentificationTypes', @@ -287,9 +293,10 @@ public function getModelName() */ public function __construct(?array $data = null) { + $this->setIfExists('additionalBankIdentificationType', $data ?? [], null); $this->setIfExists('description', $data ?? [], null); - $this->setIfExists('requiredAddressFields', $data ?? [], null); $this->setIfExists('type', $data ?? [], null); + $this->setIfExists('requiredAddressFields', $data ?? [], null); $this->setIfExists('max', $data ?? [], null); $this->setIfExists('min', $data ?? [], null); $this->setIfExists('bankAccountIdentificationTypes', $data ?? [], null); @@ -327,6 +334,7 @@ public function listInvalidProperties() { $invalidProperties = []; + if ($this->container['type'] === null) { $invalidProperties[] = "'type' can't be null"; } @@ -348,49 +356,49 @@ public function valid() /** - * Gets description + * Gets additionalBankIdentificationType * * @return string|null */ - public function getDescription() + public function getAdditionalBankIdentificationType() { - return $this->container['description']; + return $this->container['additionalBankIdentificationType']; } /** - * Sets description + * Sets additionalBankIdentificationType * - * @param string|null $description Specifies that you must provide a complete street address for International ACH (IAT) transactions. + * @param string|null $additionalBankIdentificationType The type of additional bank identification, depending on the country. Possible values: * **auBsbCode**: The 6-digit [Australian Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or spaces. * **caRoutingNumber**: The 9-digit [Canadian routing number](https://en.wikipedia.org/wiki/Routing_number_(Canada)), in EFT format, without separators or spaces. * **gbSortCode**: The 6-digit [UK sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * **usRoutingNumber**: The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or spaces. * * @return self */ - public function setDescription($description) + public function setAdditionalBankIdentificationType($additionalBankIdentificationType) { - $this->container['description'] = $description; + $this->container['additionalBankIdentificationType'] = $additionalBankIdentificationType; return $this; } /** - * Gets requiredAddressFields + * Gets description * - * @return string[]|null + * @return string|null */ - public function getRequiredAddressFields() + public function getDescription() { - return $this->container['requiredAddressFields']; + return $this->container['description']; } /** - * Sets requiredAddressFields + * Sets description * - * @param string[]|null $requiredAddressFields List of address fields. + * @param string|null $description Specifies that transactions deemed to be International ACH (IAT) per OFAC/NACHA rules cannot have fast priority. * * @return self */ - public function setRequiredAddressFields($requiredAddressFields) + public function setDescription($description) { - $this->container['requiredAddressFields'] = $requiredAddressFields; + $this->container['description'] = $description; return $this; } @@ -408,7 +416,7 @@ public function getType() /** * Sets type * - * @param string $type **usInternationalAchAddressRequirement** + * @param string $type **usInternationalAchPriorityRequirement** * * @return self */ @@ -419,6 +427,30 @@ public function setType($type) return $this; } + /** + * Gets requiredAddressFields + * + * @return string[]|null + */ + public function getRequiredAddressFields() + { + return $this->container['requiredAddressFields']; + } + + /** + * Sets requiredAddressFields + * + * @param string[]|null $requiredAddressFields List of address fields. + * + * @return self + */ + public function setRequiredAddressFields($requiredAddressFields) + { + $this->container['requiredAddressFields'] = $requiredAddressFields; + + return $this; + } + /** * Gets max * diff --git a/src/Adyen/Model/BalancePlatform/TransferRouteResponse.php b/src/Adyen/Model/BalancePlatform/TransferRouteResponse.php index e4ef67dea..e0e71da55 100644 --- a/src/Adyen/Model/BalancePlatform/TransferRouteResponse.php +++ b/src/Adyen/Model/BalancePlatform/TransferRouteResponse.php @@ -15,14 +15,14 @@ namespace Adyen\Model\BalancePlatform; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\BalancePlatform\ObjectSerializer; /** * TransferRouteResponse Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class TransferRouteResponse implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/BalancePlatform/UKLocalAccountIdentification.php b/src/Adyen/Model/BalancePlatform/UKLocalAccountIdentification.php index 08c98d475..a17771925 100644 --- a/src/Adyen/Model/BalancePlatform/UKLocalAccountIdentification.php +++ b/src/Adyen/Model/BalancePlatform/UKLocalAccountIdentification.php @@ -15,14 +15,14 @@ namespace Adyen\Model\BalancePlatform; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\BalancePlatform\ObjectSerializer; /** * UKLocalAccountIdentification Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class UKLocalAccountIdentification implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/BalancePlatform/USInstantPayoutAddressRequirement.php b/src/Adyen/Model/BalancePlatform/USInstantPayoutAddressRequirement.php index 140ba96f5..a487a8fdc 100644 --- a/src/Adyen/Model/BalancePlatform/USInstantPayoutAddressRequirement.php +++ b/src/Adyen/Model/BalancePlatform/USInstantPayoutAddressRequirement.php @@ -15,14 +15,14 @@ namespace Adyen\Model\BalancePlatform; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\BalancePlatform\ObjectSerializer; /** * USInstantPayoutAddressRequirement Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class USInstantPayoutAddressRequirement implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/BalancePlatform/USInternationalAchAddressRequirement.php b/src/Adyen/Model/BalancePlatform/USInternationalAchAddressRequirement.php index c30b094d0..9b4d4c24e 100644 --- a/src/Adyen/Model/BalancePlatform/USInternationalAchAddressRequirement.php +++ b/src/Adyen/Model/BalancePlatform/USInternationalAchAddressRequirement.php @@ -15,14 +15,14 @@ namespace Adyen\Model\BalancePlatform; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\BalancePlatform\ObjectSerializer; /** * USInternationalAchAddressRequirement Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class USInternationalAchAddressRequirement implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/BalancePlatform/USInternationalAchPriorityRequirement.php b/src/Adyen/Model/BalancePlatform/USInternationalAchPriorityRequirement.php new file mode 100644 index 000000000..a92f1f775 --- /dev/null +++ b/src/Adyen/Model/BalancePlatform/USInternationalAchPriorityRequirement.php @@ -0,0 +1,469 @@ + + */ +class USInternationalAchPriorityRequirement implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'USInternationalAchPriorityRequirement'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'description' => 'string', + 'type' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'description' => null, + 'type' => null + ]; + + /** + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ + protected static $openAPINullables = [ + 'description' => false, + 'type' => 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 = [ + 'description' => 'description', + 'type' => 'type' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'description' => 'setDescription', + 'type' => 'setType' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'description' => 'getDescription', + 'type' => 'getType' + ]; + + /** + * 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; + } + + public const TYPE_US_INTERNATIONAL_ACH_PRIORITY_REQUIREMENT = 'usInternationalAchPriorityRequirement'; + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getTypeAllowableValues() + { + return [ + self::TYPE_US_INTERNATIONAL_ACH_PRIORITY_REQUIREMENT, + ]; + } + /** + * 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('description', $data ?? [], null); + $this->setIfExists('type', $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['type'] === null) { + $invalidProperties[] = "'type' can't be null"; + } + $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) + ); + } + + 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 description + * + * @return string|null + */ + public function getDescription() + { + return $this->container['description']; + } + + /** + * Sets description + * + * @param string|null $description Specifies that transactions deemed to be International ACH (IAT) per OFAC/NACHA rules cannot have fast priority. + * + * @return self + */ + public function setDescription($description) + { + $this->container['description'] = $description; + + return $this; + } + + /** + * Gets type + * + * @return string + */ + public function getType() + { + return $this->container['type']; + } + + /** + * Sets type + * + * @param string $type **usInternationalAchPriorityRequirement** + * + * @return self + */ + public function setType($type) + { + $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) + ) + ); + } + $this->container['type'] = $type; + + 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); + } + + public function toArray(): array + { + $array = []; + foreach (self::$openAPITypes as $propertyName => $propertyType) { + $propertyValue = $this[$propertyName]; + if ($propertyValue !== null) { + // Check if the property value is an object and has a toArray() method + if (is_object($propertyValue) && method_exists($propertyValue, 'toArray')) { + $array[$propertyName] = $propertyValue->toArray(); + // Check if it's type datetime + } elseif ($propertyValue instanceof \DateTime) { + $array[$propertyName] = $propertyValue->format(DATE_ATOM); + // If it's an array type we should check whether it contains objects and if so call toArray method + } elseif (is_array($propertyValue)) { + $array[$propertyName] = array_map(function ($item) { + return $item instanceof ModelInterface ? $item->toArray() : $item; + }, $propertyValue); + } else { + // Otherwise, directly assign the property value to the array + $array[$propertyName] = $propertyValue; + } + } + } + return $array; + } + + /** + * 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/BalancePlatform/USLocalAccountIdentification.php b/src/Adyen/Model/BalancePlatform/USLocalAccountIdentification.php index 9249d2830..28d18c119 100644 --- a/src/Adyen/Model/BalancePlatform/USLocalAccountIdentification.php +++ b/src/Adyen/Model/BalancePlatform/USLocalAccountIdentification.php @@ -15,14 +15,14 @@ namespace Adyen\Model\BalancePlatform; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\BalancePlatform\ObjectSerializer; /** * USLocalAccountIdentification Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class USLocalAccountIdentification implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/BalancePlatform/UpdateNetworkTokenRequest.php b/src/Adyen/Model/BalancePlatform/UpdateNetworkTokenRequest.php index 4817cb013..21215a17b 100644 --- a/src/Adyen/Model/BalancePlatform/UpdateNetworkTokenRequest.php +++ b/src/Adyen/Model/BalancePlatform/UpdateNetworkTokenRequest.php @@ -15,14 +15,14 @@ namespace Adyen\Model\BalancePlatform; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\BalancePlatform\ObjectSerializer; /** * UpdateNetworkTokenRequest Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class UpdateNetworkTokenRequest implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/BalancePlatform/UpdatePaymentInstrument.php b/src/Adyen/Model/BalancePlatform/UpdatePaymentInstrument.php index 1a10e2e36..78b81c612 100644 --- a/src/Adyen/Model/BalancePlatform/UpdatePaymentInstrument.php +++ b/src/Adyen/Model/BalancePlatform/UpdatePaymentInstrument.php @@ -15,14 +15,14 @@ namespace Adyen\Model\BalancePlatform; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\BalancePlatform\ObjectSerializer; /** * UpdatePaymentInstrument Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class UpdatePaymentInstrument implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/BalancePlatform/UpdateSweepConfigurationV2.php b/src/Adyen/Model/BalancePlatform/UpdateSweepConfigurationV2.php index 7a442fdda..ac9e3f612 100644 --- a/src/Adyen/Model/BalancePlatform/UpdateSweepConfigurationV2.php +++ b/src/Adyen/Model/BalancePlatform/UpdateSweepConfigurationV2.php @@ -15,14 +15,14 @@ namespace Adyen\Model\BalancePlatform; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\BalancePlatform\ObjectSerializer; /** * UpdateSweepConfigurationV2 Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class UpdateSweepConfigurationV2 implements ModelInterface, ArrayAccess, \JsonSerializable { @@ -313,6 +313,7 @@ public function getModelName() public const PRIORITIES_WIRE = 'wire'; public const REASON_ACCOUNT_HIERARCHY_NOT_ACTIVE = 'accountHierarchyNotActive'; public const REASON_AMOUNT_LIMIT_EXCEEDED = 'amountLimitExceeded'; + public const REASON_APPROVAL_EXPIRED = 'approvalExpired'; public const REASON_APPROVED = 'approved'; public const REASON_BALANCE_ACCOUNT_TEMPORARILY_BLOCKED_BY_TRANSACTION_RULE = 'balanceAccountTemporarilyBlockedByTransactionRule'; public const REASON_COUNTERPARTY_ACCOUNT_BLOCKED = 'counterpartyAccountBlocked'; @@ -379,6 +380,7 @@ public function getReasonAllowableValues() return [ self::REASON_ACCOUNT_HIERARCHY_NOT_ACTIVE, self::REASON_AMOUNT_LIMIT_EXCEEDED, + self::REASON_APPROVAL_EXPIRED, self::REASON_APPROVED, self::REASON_BALANCE_ACCOUNT_TEMPORARILY_BLOCKED_BY_TRANSACTION_RULE, self::REASON_COUNTERPARTY_ACCOUNT_BLOCKED, @@ -681,7 +683,7 @@ public function getPriorities() /** * Sets priorities * - * @param string[]|null $priorities The list of priorities for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. You can provide multiple priorities, ordered by your preference. Adyen will try to pay out using the priorities in the given order. If the first priority is not currently supported or enabled for your platform, the system will try the next one, and so on. The request will be accepted as long as **at least one** of the provided priorities is valid (i.e., supported by Adyen and activated for your platform). For example, if you provide `[\"wire\",\"regular\"]`, and `wire` is not supported but `regular` is, the request will still be accepted and processed. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers in [SEPA countries](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). Set `category` to **bank**. For more details, see optional priorities setup for [marketplaces](https://docs.adyen.com/marketplaces/payout-to-users/scheduled-payouts#optional-priorities-setup) or [platforms](https://docs.adyen.com/platforms/payout-to-users/scheduled-payouts#optional-priorities-setup). + * @param string[]|null $priorities The list of priorities for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. You can provide multiple priorities, ordered by your preference. Adyen will try to pay out using the priorities in the given order. If the first priority is not currently supported or enabled for your platform, the system will try the next one, and so on. The request will be accepted as long as **at least one** of the provided priorities is valid (i.e., supported by Adyen and activated for your platform). For example, if you provide `[\"wire\",\"regular\"]`, and `wire` is not supported but `regular` is, the request will still be accepted and processed. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). Set `category` to **bank**. For more details, see optional priorities setup for [marketplaces](https://docs.adyen.com/marketplaces/payout-to-users/scheduled-payouts#optional-priorities-setup) or [platforms](https://docs.adyen.com/platforms/payout-to-users/scheduled-payouts#optional-priorities-setup). * * @return self */ diff --git a/src/Adyen/Model/BalancePlatform/VerificationDeadline.php b/src/Adyen/Model/BalancePlatform/VerificationDeadline.php index 418980648..b0729f341 100644 --- a/src/Adyen/Model/BalancePlatform/VerificationDeadline.php +++ b/src/Adyen/Model/BalancePlatform/VerificationDeadline.php @@ -15,14 +15,14 @@ namespace Adyen\Model\BalancePlatform; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\BalancePlatform\ObjectSerializer; /** * VerificationDeadline Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class VerificationDeadline implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/BalancePlatform/VerificationError.php b/src/Adyen/Model/BalancePlatform/VerificationError.php index c8d92068c..a2572f737 100644 --- a/src/Adyen/Model/BalancePlatform/VerificationError.php +++ b/src/Adyen/Model/BalancePlatform/VerificationError.php @@ -15,14 +15,14 @@ namespace Adyen\Model\BalancePlatform; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\BalancePlatform\ObjectSerializer; /** * VerificationError Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class VerificationError implements ModelInterface, ArrayAccess, \JsonSerializable { @@ -595,7 +595,7 @@ public function getType() /** * Sets type * - * @param string|null $type The type of error. Possible values: **invalidInput**, **dataMissing**. + * @param string|null $type The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** * * @return self */ diff --git a/src/Adyen/Model/BalancePlatform/VerificationErrorRecursive.php b/src/Adyen/Model/BalancePlatform/VerificationErrorRecursive.php index 96234bbee..bb045c6a7 100644 --- a/src/Adyen/Model/BalancePlatform/VerificationErrorRecursive.php +++ b/src/Adyen/Model/BalancePlatform/VerificationErrorRecursive.php @@ -15,14 +15,14 @@ namespace Adyen\Model\BalancePlatform; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\BalancePlatform\ObjectSerializer; /** * VerificationErrorRecursive Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class VerificationErrorRecursive implements ModelInterface, ArrayAccess, \JsonSerializable { @@ -540,7 +540,7 @@ public function getType() /** * Sets type * - * @param string|null $type The type of error. Possible values: **invalidInput**, **dataMissing**. + * @param string|null $type The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** * * @return self */ diff --git a/src/Adyen/Model/BalancePlatform/WalletProviderAccountScoreRestriction.php b/src/Adyen/Model/BalancePlatform/WalletProviderAccountScoreRestriction.php index 63f5b28da..abe11beff 100644 --- a/src/Adyen/Model/BalancePlatform/WalletProviderAccountScoreRestriction.php +++ b/src/Adyen/Model/BalancePlatform/WalletProviderAccountScoreRestriction.php @@ -15,14 +15,14 @@ namespace Adyen\Model\BalancePlatform; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\BalancePlatform\ObjectSerializer; /** * WalletProviderAccountScoreRestriction Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class WalletProviderAccountScoreRestriction implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/BalancePlatform/WalletProviderDeviceScore.php b/src/Adyen/Model/BalancePlatform/WalletProviderDeviceScore.php index 9ac0bca69..23d623af1 100644 --- a/src/Adyen/Model/BalancePlatform/WalletProviderDeviceScore.php +++ b/src/Adyen/Model/BalancePlatform/WalletProviderDeviceScore.php @@ -15,14 +15,14 @@ namespace Adyen\Model\BalancePlatform; -use \ArrayAccess; +use ArrayAccess; use Adyen\Model\BalancePlatform\ObjectSerializer; /** * WalletProviderDeviceScore Class Doc Comment * * @package Adyen - * @implements \ArrayAccess + * @implements ArrayAccess */ class WalletProviderDeviceScore implements ModelInterface, ArrayAccess, \JsonSerializable { diff --git a/src/Adyen/Model/BalancePlatform/WalletProviderDeviceType.php b/src/Adyen/Model/BalancePlatform/WalletProviderDeviceType.php new file mode 100644 index 000000000..4481a4776 --- /dev/null +++ b/src/Adyen/Model/BalancePlatform/WalletProviderDeviceType.php @@ -0,0 +1,473 @@ + + */ +class WalletProviderDeviceType implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'WalletProviderDeviceType'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'operation' => 'string', + 'value' => 'string[]' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'operation' => null, + 'value' => null + ]; + + /** + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ + protected static $openAPINullables = [ + 'operation' => false, + 'value' => 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 = [ + 'operation' => 'operation', + 'value' => 'value' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'operation' => 'setOperation', + 'value' => 'setValue' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'operation' => 'getOperation', + 'value' => 'getValue' + ]; + + /** + * 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; + } + + public const VALUE_CARD = 'CARD'; + public const VALUE_MOBILE_PHONE = 'MOBILE_PHONE'; + public const VALUE_OTHER = 'OTHER'; + public const VALUE_PC = 'PC'; + public const VALUE_TABLET_OR_EREADER = 'TABLET_OR_EREADER'; + public const VALUE_UNKNOWN = 'UNKNOWN'; + public const VALUE_WATCH_OR_WRISTBAND = 'WATCH_OR_WRISTBAND'; + public const VALUE_WEARABLE = 'WEARABLE'; + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getValueAllowableValues() + { + return [ + self::VALUE_CARD, + self::VALUE_MOBILE_PHONE, + self::VALUE_OTHER, + self::VALUE_PC, + self::VALUE_TABLET_OR_EREADER, + self::VALUE_UNKNOWN, + self::VALUE_WATCH_OR_WRISTBAND, + self::VALUE_WEARABLE, + ]; + } + /** + * 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('operation', $data ?? [], null); + $this->setIfExists('value', $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['operation'] === null) { + $invalidProperties[] = "'operation' 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 operation + * + * @return string + */ + public function getOperation() + { + return $this->container['operation']; + } + + /** + * Sets operation + * + * @param string $operation Defines how the condition must be evaluated. + * + * @return self + */ + public function setOperation($operation) + { + $this->container['operation'] = $operation; + + return $this; + } + + /** + * Gets value + * + * @return string[]|null + */ + public function getValue() + { + return $this->container['value']; + } + + /** + * Sets value + * + * @param string[]|null $value value + * + * @return self + */ + public function setValue($value) + { + $allowedValues = $this->getValueAllowableValues(); + if (array_diff($value, $allowedValues)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value for 'value', must be one of '%s'", + implode("', '", $allowedValues) + ) + ); + } + $this->container['value'] = $value; + + 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); + } + + public function toArray(): array + { + $array = []; + foreach (self::$openAPITypes as $propertyName => $propertyType) { + $propertyValue = $this[$propertyName]; + if ($propertyValue !== null) { + // Check if the property value is an object and has a toArray() method + if (is_object($propertyValue) && method_exists($propertyValue, 'toArray')) { + $array[$propertyName] = $propertyValue->toArray(); + // Check if it's type datetime + } elseif ($propertyValue instanceof \DateTime) { + $array[$propertyName] = $propertyValue->format(DATE_ATOM); + // If it's an array type we should check whether it contains objects and if so call toArray method + } elseif (is_array($propertyValue)) { + $array[$propertyName] = array_map(function ($item) { + return $item instanceof ModelInterface ? $item->toArray() : $item; + }, $propertyValue); + } else { + // Otherwise, directly assign the property value to the array + $array[$propertyName] = $propertyValue; + } + } + } + return $array; + } + + /** + * 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/Service/BalancePlatform/AccountHoldersApi.php b/src/Adyen/Service/BalancePlatform/AccountHoldersApi.php index 38f17c9ce..bc952856e 100644 --- a/src/Adyen/Service/BalancePlatform/AccountHoldersApi.php +++ b/src/Adyen/Service/BalancePlatform/AccountHoldersApi.php @@ -103,7 +103,7 @@ public function getAllTransactionRulesForAccountHolder(string $id, ?array $reque * Get a tax form * * @param string $id - * @param array|null $requestOptions ['queryParams' => ['formType'=> string, 'year'=> int]] + * @param array|null $requestOptions ['queryParams' => ['formType'=> string, 'year'=> int, 'legalEntityId'=> string]] * @return \Adyen\Model\BalancePlatform\GetTaxFormResponse * @throws AdyenException */ diff --git a/src/Adyen/Service/BalancePlatform/AuthorizedCardUsersApi.php b/src/Adyen/Service/BalancePlatform/AuthorizedCardUsersApi.php new file mode 100644 index 000000000..a1d3bc3bd --- /dev/null +++ b/src/Adyen/Service/BalancePlatform/AuthorizedCardUsersApi.php @@ -0,0 +1,100 @@ +baseURL = $this->createBaseUrl("https://balanceplatform-api-test.adyen.com/bcl/v2"); + } + + /** + * Create authorized users for a card. + * + * @param string $paymentInstrumentId + * @param \Adyen\Model\BalancePlatform\AuthorisedCardUsers $authorisedCardUsers + * @param array|null $requestOptions + + * @throws AdyenException + */ + public function createAuthorisedCardUsers(string $paymentInstrumentId, \Adyen\Model\BalancePlatform\AuthorisedCardUsers $authorisedCardUsers, ?array $requestOptions = null) + { + $endpoint = $this->baseURL . str_replace(['{paymentInstrumentId}'], [$paymentInstrumentId], "/paymentInstruments/{paymentInstrumentId}/authorisedCardUsers"); + $this->requestHttp($endpoint, strtolower('POST'), (array) $authorisedCardUsers->jsonSerialize(), $requestOptions); + } + + /** + * Delete the authorized users for a card. + * + * @param string $paymentInstrumentId + * @param array|null $requestOptions + + * @throws AdyenException + */ + public function deleteAuthorisedCardUsers(string $paymentInstrumentId, ?array $requestOptions = null) + { + $endpoint = $this->baseURL . str_replace(['{paymentInstrumentId}'], [$paymentInstrumentId], "/paymentInstruments/{paymentInstrumentId}/authorisedCardUsers"); + $this->requestHttp($endpoint, strtolower('DELETE'), null, $requestOptions); + } + + /** + * Get authorized users for a card. + * + * @param string $paymentInstrumentId + * @param array|null $requestOptions + * @return \Adyen\Model\BalancePlatform\AuthorisedCardUsers + * @throws AdyenException + */ + public function getAllAuthorisedCardUsers(string $paymentInstrumentId, ?array $requestOptions = null): \Adyen\Model\BalancePlatform\AuthorisedCardUsers + { + $endpoint = $this->baseURL . str_replace(['{paymentInstrumentId}'], [$paymentInstrumentId], "/paymentInstruments/{paymentInstrumentId}/authorisedCardUsers"); + $response = $this->requestHttp($endpoint, strtolower('GET'), null, $requestOptions); + return ObjectSerializer::deserialize($response, \Adyen\Model\BalancePlatform\AuthorisedCardUsers::class); + } + + /** + * Update the authorized users for a card. + * + * @param string $paymentInstrumentId + * @param \Adyen\Model\BalancePlatform\AuthorisedCardUsers $authorisedCardUsers + * @param array|null $requestOptions + + * @throws AdyenException + */ + public function updateAuthorisedCardUsers(string $paymentInstrumentId, \Adyen\Model\BalancePlatform\AuthorisedCardUsers $authorisedCardUsers, ?array $requestOptions = null) + { + $endpoint = $this->baseURL . str_replace(['{paymentInstrumentId}'], [$paymentInstrumentId], "/paymentInstruments/{paymentInstrumentId}/authorisedCardUsers"); + $this->requestHttp($endpoint, strtolower('PATCH'), (array) $authorisedCardUsers->jsonSerialize(), $requestOptions); + } +} diff --git a/src/Adyen/Service/BalancePlatform/PaymentInstrumentsApi.php b/src/Adyen/Service/BalancePlatform/PaymentInstrumentsApi.php index 3f788cd7c..b9335b620 100644 --- a/src/Adyen/Service/BalancePlatform/PaymentInstrumentsApi.php +++ b/src/Adyen/Service/BalancePlatform/PaymentInstrumentsApi.php @@ -39,6 +39,22 @@ public function __construct(Client $client) $this->baseURL = $this->createBaseUrl("https://balanceplatform-api-test.adyen.com/bcl/v2"); } + /** + * Create network token provisioning data + * + * @param string $id + * @param \Adyen\Model\BalancePlatform\NetworkTokenActivationDataRequest $networkTokenActivationDataRequest + * @param array|null $requestOptions + * @return \Adyen\Model\BalancePlatform\NetworkTokenActivationDataResponse + * @throws AdyenException + */ + public function createNetworkTokenProvisioningData(string $id, \Adyen\Model\BalancePlatform\NetworkTokenActivationDataRequest $networkTokenActivationDataRequest, ?array $requestOptions = null): \Adyen\Model\BalancePlatform\NetworkTokenActivationDataResponse + { + $endpoint = $this->baseURL . str_replace(['{id}'], [$id], "/paymentInstruments/{id}/networkTokenActivationData"); + $response = $this->requestHttp($endpoint, strtolower('POST'), (array) $networkTokenActivationDataRequest->jsonSerialize(), $requestOptions); + return ObjectSerializer::deserialize($response, \Adyen\Model\BalancePlatform\NetworkTokenActivationDataResponse::class); + } + /** * Create a payment instrument * @@ -69,6 +85,21 @@ public function getAllTransactionRulesForPaymentInstrument(string $id, ?array $r return ObjectSerializer::deserialize($response, \Adyen\Model\BalancePlatform\TransactionRulesResponse::class); } + /** + * Get network token activation data + * + * @param string $id + * @param array|null $requestOptions + * @return \Adyen\Model\BalancePlatform\NetworkTokenActivationDataResponse + * @throws AdyenException + */ + public function getNetworkTokenActivationData(string $id, ?array $requestOptions = null): \Adyen\Model\BalancePlatform\NetworkTokenActivationDataResponse + { + $endpoint = $this->baseURL . str_replace(['{id}'], [$id], "/paymentInstruments/{id}/networkTokenActivationData"); + $response = $this->requestHttp($endpoint, strtolower('GET'), null, $requestOptions); + return ObjectSerializer::deserialize($response, \Adyen\Model\BalancePlatform\NetworkTokenActivationDataResponse::class); + } + /** * Get the PAN of a payment instrument *