From f562afda8b7e6c06ece797629d579f68e3bc2a01 Mon Sep 17 00:00:00 2001 From: beppe Date: Thu, 16 Oct 2025 10:16:10 +0200 Subject: [PATCH 1/2] Generate LEM v4 --- .../AULocalAccountIdentification.php | 2 +- .../AcceptTermsOfServiceRequest.php | 2 +- .../AcceptTermsOfServiceResponse.php | 4 +- .../AdditionalBankIdentification.php | 2 +- .../Model/LegalEntityManagement/Address.php | 2 +- .../Model/LegalEntityManagement/Amount.php | 2 +- .../LegalEntityManagement/Attachment.php | 4 +- .../LegalEntityManagement/BankAccountInfo.php | 2 +- .../BankAccountInfoAccountIdentification.php | 2 +- .../Model/LegalEntityManagement/BirthData.php | 2 +- .../LegalEntityManagement/BusinessLine.php | 74 +-- .../BusinessLineInfo.php | 74 +-- .../BusinessLineInfoUpdate.php | 2 +- .../LegalEntityManagement/BusinessLines.php | 2 +- .../CALocalAccountIdentification.php | 2 +- .../CZLocalAccountIdentification.php | 2 +- .../CalculatePciStatusRequest.php | 2 +- .../CalculatePciStatusResponse.php | 2 +- .../CalculateTermsOfServiceStatusResponse.php | 2 +- .../CapabilityProblem.php | 2 +- .../CapabilityProblemEntity.php | 2 +- .../CapabilityProblemEntityRecursive.php | 2 +- .../CapabilitySettings.php | 2 +- ...ckTaxElectronicDeliveryConsentResponse.php | 2 +- .../DKLocalAccountIdentification.php | 2 +- .../DataReviewConfirmationResponse.php | 2 +- .../Model/LegalEntityManagement/Document.php | 6 +- .../LegalEntityManagement/DocumentPage.php | 2 +- .../DocumentReference.php | 2 +- .../LegalEntityManagement/EntityReference.php | 2 +- .../LegalEntityManagement/FinancialReport.php | 2 +- .../Model/LegalEntityManagement/Financier.php | 509 ++++++++++++++++++ .../GeneratePciDescriptionRequest.php | 2 +- .../GeneratePciDescriptionResponse.php | 2 +- ...AcceptedTermsOfServiceDocumentResponse.php | 2 +- .../GetPciQuestionnaireInfosResponse.php | 2 +- .../GetPciQuestionnaireResponse.php | 2 +- ...tTermsOfServiceAcceptanceInfosResponse.php | 2 +- .../GetTermsOfServiceDocumentRequest.php | 2 +- .../GetTermsOfServiceDocumentResponse.php | 4 +- .../HKLocalAccountIdentification.php | 4 +- .../HULocalAccountIdentification.php | 2 +- .../IbanAccountIdentification.php | 2 +- .../IdentificationData.php | 2 +- .../LegalEntityManagement/Individual.php | 33 +- .../LegalEntityManagement/LegalEntity.php | 2 +- .../LegalEntityAssociation.php | 2 +- .../LegalEntityCapability.php | 2 +- .../LegalEntityManagement/LegalEntityInfo.php | 2 +- .../LegalEntityInfoRequiredType.php | 2 +- .../LegalEntityManagement/ModelInterface.php | 2 +- .../NOLocalAccountIdentification.php | 2 +- .../NZLocalAccountIdentification.php | 2 +- .../Model/LegalEntityManagement/Name.php | 2 +- .../NumberAndBicAccountIdentification.php | 2 +- .../ObjectSerializer.php | 2 +- .../LegalEntityManagement/OnboardingLink.php | 4 +- .../OnboardingLinkInfo.php | 2 +- .../OnboardingLinkSettings.php | 2 +- .../LegalEntityManagement/OnboardingTheme.php | 2 +- .../OnboardingThemes.php | 2 +- .../LegalEntityManagement/Organization.php | 432 ++++++++++++++- .../LegalEntityManagement/OwnerEntity.php | 2 +- .../PLLocalAccountIdentification.php | 2 +- .../LegalEntityManagement/PciDocumentInfo.php | 2 +- .../PciSigningRequest.php | 2 +- .../PciSigningResponse.php | 2 +- .../LegalEntityManagement/PhoneNumber.php | 2 +- .../RemediatingAction.php | 2 +- .../SELocalAccountIdentification.php | 2 +- .../SGLocalAccountIdentification.php | 2 +- .../LegalEntityManagement/ServiceError.php | 2 +- ...SetTaxElectronicDeliveryConsentRequest.php | 2 +- .../SoleProprietorship.php | 43 +- .../LegalEntityManagement/SourceOfFunds.php | 374 +++++++++++-- .../Model/LegalEntityManagement/StockData.php | 2 +- .../Model/LegalEntityManagement/Support.php | 435 +++++++++++++++ .../SupportingEntityCapability.php | 2 +- .../LegalEntityManagement/TaxInformation.php | 33 +- .../TaxReportingClassification.php | 2 +- .../TermsOfServiceAcceptanceInfo.php | 2 +- .../TransferInstrument.php | 2 +- .../TransferInstrumentInfo.php | 2 +- .../TransferInstrumentReference.php | 2 +- .../Model/LegalEntityManagement/Trust.php | 43 +- .../UKLocalAccountIdentification.php | 2 +- .../USLocalAccountIdentification.php | 2 +- .../UndefinedBeneficiary.php | 2 +- .../UnincorporatedPartnership.php | 43 +- .../VerificationDeadline.php | 2 +- .../VerificationError.php | 2 +- .../VerificationErrorRecursive.php | 2 +- .../VerificationErrors.php | 2 +- .../Model/LegalEntityManagement/WebData.php | 2 +- .../WebDataExemption.php | 2 +- .../BusinessLinesApi.php | 4 +- .../LegalEntityManagement/DocumentsApi.php | 4 +- .../HostedOnboardingApi.php | 4 +- .../LegalEntitiesApi.php | 4 +- .../PCIQuestionnairesApi.php | 4 +- .../TaxEDeliveryConsentApi.php | 4 +- .../TermsOfServiceApi.php | 4 +- .../TransferInstrumentsApi.php | 4 +- 103 files changed, 2022 insertions(+), 285 deletions(-) create mode 100644 src/Adyen/Model/LegalEntityManagement/Financier.php create mode 100644 src/Adyen/Model/LegalEntityManagement/Support.php diff --git a/src/Adyen/Model/LegalEntityManagement/AULocalAccountIdentification.php b/src/Adyen/Model/LegalEntityManagement/AULocalAccountIdentification.php index f1723751b..ddfc71232 100644 --- a/src/Adyen/Model/LegalEntityManagement/AULocalAccountIdentification.php +++ b/src/Adyen/Model/LegalEntityManagement/AULocalAccountIdentification.php @@ -3,7 +3,7 @@ /** * Legal Entity Management API * - * The version of the OpenAPI document: 3 + * The version of the OpenAPI document: 4 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/LegalEntityManagement/AcceptTermsOfServiceRequest.php b/src/Adyen/Model/LegalEntityManagement/AcceptTermsOfServiceRequest.php index 32177911f..07be30527 100644 --- a/src/Adyen/Model/LegalEntityManagement/AcceptTermsOfServiceRequest.php +++ b/src/Adyen/Model/LegalEntityManagement/AcceptTermsOfServiceRequest.php @@ -3,7 +3,7 @@ /** * Legal Entity Management API * - * The version of the OpenAPI document: 3 + * The version of the OpenAPI document: 4 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/LegalEntityManagement/AcceptTermsOfServiceResponse.php b/src/Adyen/Model/LegalEntityManagement/AcceptTermsOfServiceResponse.php index af4f79489..6e502577a 100644 --- a/src/Adyen/Model/LegalEntityManagement/AcceptTermsOfServiceResponse.php +++ b/src/Adyen/Model/LegalEntityManagement/AcceptTermsOfServiceResponse.php @@ -3,7 +3,7 @@ /** * Legal Entity Management API * - * The version of the OpenAPI document: 3 + * The version of the OpenAPI document: 4 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * @@ -432,7 +432,7 @@ public function getLanguage() /** * Sets language * - * @param string|null $language The language used for the Terms of Service document, specified by the two-letter [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code. Possible value: **en** for English. + * @param string|null $language The language used for the Terms of Service document, specified by the two-letter [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code. Possible value: **en** for English or **fr** for French. Note that French is only available for some integration types in certain countries/regions. Reach out to your Adyen contact for more information. * * @return self */ diff --git a/src/Adyen/Model/LegalEntityManagement/AdditionalBankIdentification.php b/src/Adyen/Model/LegalEntityManagement/AdditionalBankIdentification.php index 6d594a565..a03fa1e06 100644 --- a/src/Adyen/Model/LegalEntityManagement/AdditionalBankIdentification.php +++ b/src/Adyen/Model/LegalEntityManagement/AdditionalBankIdentification.php @@ -3,7 +3,7 @@ /** * Legal Entity Management API * - * The version of the OpenAPI document: 3 + * The version of the OpenAPI document: 4 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/LegalEntityManagement/Address.php b/src/Adyen/Model/LegalEntityManagement/Address.php index 5a32b7f9f..caae7a6de 100644 --- a/src/Adyen/Model/LegalEntityManagement/Address.php +++ b/src/Adyen/Model/LegalEntityManagement/Address.php @@ -3,7 +3,7 @@ /** * Legal Entity Management API * - * The version of the OpenAPI document: 3 + * The version of the OpenAPI document: 4 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/LegalEntityManagement/Amount.php b/src/Adyen/Model/LegalEntityManagement/Amount.php index 0c0a8abca..d831dd55e 100644 --- a/src/Adyen/Model/LegalEntityManagement/Amount.php +++ b/src/Adyen/Model/LegalEntityManagement/Amount.php @@ -3,7 +3,7 @@ /** * Legal Entity Management API * - * The version of the OpenAPI document: 3 + * The version of the OpenAPI document: 4 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/LegalEntityManagement/Attachment.php b/src/Adyen/Model/LegalEntityManagement/Attachment.php index 9e8e306ad..eb3905281 100644 --- a/src/Adyen/Model/LegalEntityManagement/Attachment.php +++ b/src/Adyen/Model/LegalEntityManagement/Attachment.php @@ -3,7 +3,7 @@ /** * Legal Entity Management API * - * The version of the OpenAPI document: 3 + * The version of the OpenAPI document: 4 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * @@ -417,7 +417,7 @@ public function getPageType() /** * Sets pageType * - * @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. + * @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** and include both sides in the same API request. * 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 ea0b0f4df..952f086d6 100644 --- a/src/Adyen/Model/LegalEntityManagement/BankAccountInfo.php +++ b/src/Adyen/Model/LegalEntityManagement/BankAccountInfo.php @@ -3,7 +3,7 @@ /** * Legal Entity Management API * - * The version of the OpenAPI document: 3 + * The version of the OpenAPI document: 4 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/LegalEntityManagement/BankAccountInfoAccountIdentification.php b/src/Adyen/Model/LegalEntityManagement/BankAccountInfoAccountIdentification.php index ee050a730..75fe5aea9 100644 --- a/src/Adyen/Model/LegalEntityManagement/BankAccountInfoAccountIdentification.php +++ b/src/Adyen/Model/LegalEntityManagement/BankAccountInfoAccountIdentification.php @@ -3,7 +3,7 @@ /** * Legal Entity Management API * - * The version of the OpenAPI document: 3 + * The version of the OpenAPI document: 4 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/LegalEntityManagement/BirthData.php b/src/Adyen/Model/LegalEntityManagement/BirthData.php index b3606d16f..90aaec2a9 100644 --- a/src/Adyen/Model/LegalEntityManagement/BirthData.php +++ b/src/Adyen/Model/LegalEntityManagement/BirthData.php @@ -3,7 +3,7 @@ /** * Legal Entity Management API * - * The version of the OpenAPI document: 3 + * The version of the OpenAPI document: 4 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/LegalEntityManagement/BusinessLine.php b/src/Adyen/Model/LegalEntityManagement/BusinessLine.php index 645b99172..e989d17f5 100644 --- a/src/Adyen/Model/LegalEntityManagement/BusinessLine.php +++ b/src/Adyen/Model/LegalEntityManagement/BusinessLine.php @@ -3,7 +3,7 @@ /** * Legal Entity Management API * - * The version of the OpenAPI document: 3 + * The version of the OpenAPI document: 4 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * @@ -41,7 +41,6 @@ class BusinessLine implements ModelInterface, ArrayAccess, \JsonSerializable * @var string[] */ protected static $openAPITypes = [ - 'capability' => 'string', 'id' => 'string', 'industryCode' => 'string', 'legalEntityId' => 'string', @@ -61,7 +60,6 @@ class BusinessLine implements ModelInterface, ArrayAccess, \JsonSerializable * @psalm-var array */ protected static $openAPIFormats = [ - 'capability' => null, 'id' => null, 'industryCode' => null, 'legalEntityId' => null, @@ -79,7 +77,6 @@ class BusinessLine implements ModelInterface, ArrayAccess, \JsonSerializable * @var boolean[] */ protected static $openAPINullables = [ - 'capability' => false, 'id' => false, 'industryCode' => false, 'legalEntityId' => false, @@ -177,7 +174,6 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $attributeMap = [ - 'capability' => 'capability', 'id' => 'id', 'industryCode' => 'industryCode', 'legalEntityId' => 'legalEntityId', @@ -195,7 +191,6 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $setters = [ - 'capability' => 'setCapability', 'id' => 'setId', 'industryCode' => 'setIndustryCode', 'legalEntityId' => 'setLegalEntityId', @@ -213,7 +208,6 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $getters = [ - 'capability' => 'getCapability', 'id' => 'getId', 'industryCode' => 'getIndustryCode', 'legalEntityId' => 'getLegalEntityId', @@ -266,25 +260,10 @@ public function getModelName() return self::$openAPIModelName; } - public const CAPABILITY_RECEIVE_PAYMENTS = 'receivePayments'; - public const CAPABILITY_RECEIVE_FROM_PLATFORM_PAYMENTS = 'receiveFromPlatformPayments'; - public const CAPABILITY_ISSUE_BANK_ACCOUNT = 'issueBankAccount'; public const SERVICE_PAYMENT_PROCESSING = 'paymentProcessing'; + public const SERVICE_ISSUING = 'issuing'; public const SERVICE_BANKING = 'banking'; - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getCapabilityAllowableValues() - { - return [ - self::CAPABILITY_RECEIVE_PAYMENTS, - self::CAPABILITY_RECEIVE_FROM_PLATFORM_PAYMENTS, - self::CAPABILITY_ISSUE_BANK_ACCOUNT, - ]; - } /** * Gets allowable values of the enum * @@ -294,6 +273,7 @@ public function getServiceAllowableValues() { return [ self::SERVICE_PAYMENT_PROCESSING, + self::SERVICE_ISSUING, self::SERVICE_BANKING, ]; } @@ -312,7 +292,6 @@ public function getServiceAllowableValues() */ public function __construct(?array $data = null) { - $this->setIfExists('capability', $data ?? [], null); $this->setIfExists('id', $data ?? [], null); $this->setIfExists('industryCode', $data ?? [], null); $this->setIfExists('legalEntityId', $data ?? [], null); @@ -351,15 +330,6 @@ public function listInvalidProperties() { $invalidProperties = []; - $allowedValues = $this->getCapabilityAllowableValues(); - if (!is_null($this->container['capability']) && !in_array($this->container['capability'], $allowedValues, true)) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'capability', must be one of '%s'", - $this->container['capability'], - implode("', '", $allowedValues) - ); - } - if ($this->container['id'] === null) { $invalidProperties[] = "'id' can't be null"; } @@ -396,42 +366,6 @@ public function valid() } - /** - * Gets capability - * - * @return string|null - * @deprecated since Legal Entity Management API v3. "Use `service` instead." - */ - public function getCapability() - { - return $this->container['capability']; - } - - /** - * Sets capability - * - * @param string|null $capability The capability for which you are creating the business line. Possible values: **receivePayments**, **receiveFromPlatformPayments**, **issueBankAccount** - * - * @return self - * @deprecated since Legal Entity Management API v3. "Use `service` instead." - */ - public function setCapability($capability) - { - $allowedValues = $this->getCapabilityAllowableValues(); - if (!in_array($capability, $allowedValues, true)) { - error_log( - sprintf( - "capability: unexpected enum value '%s' - Supported values are [%s]", - $capability, - implode(', ', $allowedValues) - ) - ); - } - $this->container['capability'] = $capability; - - return $this; - } - /** * Gets id * @@ -565,7 +499,7 @@ public function getService() /** * Sets service * - * @param string $service The service for which you are creating the business line. Possible values: * **paymentProcessing** * **banking** + * @param string $service The service for which you are creating the business line. Possible values: * **paymentProcessing** * **issuing** * **banking** * * @return self */ diff --git a/src/Adyen/Model/LegalEntityManagement/BusinessLineInfo.php b/src/Adyen/Model/LegalEntityManagement/BusinessLineInfo.php index 5cbd32a2c..a8baf10fe 100644 --- a/src/Adyen/Model/LegalEntityManagement/BusinessLineInfo.php +++ b/src/Adyen/Model/LegalEntityManagement/BusinessLineInfo.php @@ -3,7 +3,7 @@ /** * Legal Entity Management API * - * The version of the OpenAPI document: 3 + * The version of the OpenAPI document: 4 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * @@ -41,7 +41,6 @@ class BusinessLineInfo implements ModelInterface, ArrayAccess, \JsonSerializable * @var string[] */ protected static $openAPITypes = [ - 'capability' => 'string', 'industryCode' => 'string', 'legalEntityId' => 'string', 'salesChannels' => 'string[]', @@ -59,7 +58,6 @@ class BusinessLineInfo implements ModelInterface, ArrayAccess, \JsonSerializable * @psalm-var array */ protected static $openAPIFormats = [ - 'capability' => null, 'industryCode' => null, 'legalEntityId' => null, 'salesChannels' => null, @@ -75,7 +73,6 @@ class BusinessLineInfo implements ModelInterface, ArrayAccess, \JsonSerializable * @var boolean[] */ protected static $openAPINullables = [ - 'capability' => false, 'industryCode' => false, 'legalEntityId' => false, 'salesChannels' => false, @@ -171,7 +168,6 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $attributeMap = [ - 'capability' => 'capability', 'industryCode' => 'industryCode', 'legalEntityId' => 'legalEntityId', 'salesChannels' => 'salesChannels', @@ -187,7 +183,6 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $setters = [ - 'capability' => 'setCapability', 'industryCode' => 'setIndustryCode', 'legalEntityId' => 'setLegalEntityId', 'salesChannels' => 'setSalesChannels', @@ -203,7 +198,6 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $getters = [ - 'capability' => 'getCapability', 'industryCode' => 'getIndustryCode', 'legalEntityId' => 'getLegalEntityId', 'salesChannels' => 'getSalesChannels', @@ -254,25 +248,10 @@ public function getModelName() return self::$openAPIModelName; } - public const CAPABILITY_RECEIVE_PAYMENTS = 'receivePayments'; - public const CAPABILITY_RECEIVE_FROM_PLATFORM_PAYMENTS = 'receiveFromPlatformPayments'; - public const CAPABILITY_ISSUE_BANK_ACCOUNT = 'issueBankAccount'; public const SERVICE_PAYMENT_PROCESSING = 'paymentProcessing'; + public const SERVICE_ISSUING = 'issuing'; public const SERVICE_BANKING = 'banking'; - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getCapabilityAllowableValues() - { - return [ - self::CAPABILITY_RECEIVE_PAYMENTS, - self::CAPABILITY_RECEIVE_FROM_PLATFORM_PAYMENTS, - self::CAPABILITY_ISSUE_BANK_ACCOUNT, - ]; - } /** * Gets allowable values of the enum * @@ -282,6 +261,7 @@ public function getServiceAllowableValues() { return [ self::SERVICE_PAYMENT_PROCESSING, + self::SERVICE_ISSUING, self::SERVICE_BANKING, ]; } @@ -300,7 +280,6 @@ public function getServiceAllowableValues() */ public function __construct(?array $data = null) { - $this->setIfExists('capability', $data ?? [], null); $this->setIfExists('industryCode', $data ?? [], null); $this->setIfExists('legalEntityId', $data ?? [], null); $this->setIfExists('salesChannels', $data ?? [], null); @@ -337,15 +316,6 @@ public function listInvalidProperties() { $invalidProperties = []; - $allowedValues = $this->getCapabilityAllowableValues(); - if (!is_null($this->container['capability']) && !in_array($this->container['capability'], $allowedValues, true)) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'capability', must be one of '%s'", - $this->container['capability'], - implode("', '", $allowedValues) - ); - } - if ($this->container['industryCode'] === null) { $invalidProperties[] = "'industryCode' can't be null"; } @@ -379,42 +349,6 @@ public function valid() } - /** - * Gets capability - * - * @return string|null - * @deprecated since Legal Entity Management API v3. "Use `service` instead." - */ - public function getCapability() - { - return $this->container['capability']; - } - - /** - * Sets capability - * - * @param string|null $capability The capability for which you are creating the business line. Possible values: **receivePayments**, **receiveFromPlatformPayments**, **issueBankAccount** - * - * @return self - * @deprecated since Legal Entity Management API v3. "Use `service` instead." - */ - public function setCapability($capability) - { - $allowedValues = $this->getCapabilityAllowableValues(); - if (!in_array($capability, $allowedValues, true)) { - error_log( - sprintf( - "capability: unexpected enum value '%s' - Supported values are [%s]", - $capability, - implode(', ', $allowedValues) - ) - ); - } - $this->container['capability'] = $capability; - - return $this; - } - /** * Gets industryCode * @@ -500,7 +434,7 @@ public function getService() /** * Sets service * - * @param string $service The service for which you are creating the business line. Possible values: * **paymentProcessing** * **banking** + * @param string $service The service for which you are creating the business line. Possible values: * **paymentProcessing** * **issuing** * **banking** * * @return self */ diff --git a/src/Adyen/Model/LegalEntityManagement/BusinessLineInfoUpdate.php b/src/Adyen/Model/LegalEntityManagement/BusinessLineInfoUpdate.php index ece362dac..7ef4ca4a1 100644 --- a/src/Adyen/Model/LegalEntityManagement/BusinessLineInfoUpdate.php +++ b/src/Adyen/Model/LegalEntityManagement/BusinessLineInfoUpdate.php @@ -3,7 +3,7 @@ /** * Legal Entity Management API * - * The version of the OpenAPI document: 3 + * The version of the OpenAPI document: 4 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/LegalEntityManagement/BusinessLines.php b/src/Adyen/Model/LegalEntityManagement/BusinessLines.php index 416a45cd0..eae1302c1 100644 --- a/src/Adyen/Model/LegalEntityManagement/BusinessLines.php +++ b/src/Adyen/Model/LegalEntityManagement/BusinessLines.php @@ -3,7 +3,7 @@ /** * Legal Entity Management API * - * The version of the OpenAPI document: 3 + * The version of the OpenAPI document: 4 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/LegalEntityManagement/CALocalAccountIdentification.php b/src/Adyen/Model/LegalEntityManagement/CALocalAccountIdentification.php index 8c21d910f..f3f13b9b0 100644 --- a/src/Adyen/Model/LegalEntityManagement/CALocalAccountIdentification.php +++ b/src/Adyen/Model/LegalEntityManagement/CALocalAccountIdentification.php @@ -3,7 +3,7 @@ /** * Legal Entity Management API * - * The version of the OpenAPI document: 3 + * The version of the OpenAPI document: 4 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/LegalEntityManagement/CZLocalAccountIdentification.php b/src/Adyen/Model/LegalEntityManagement/CZLocalAccountIdentification.php index 8afe0ce78..b07afa57e 100644 --- a/src/Adyen/Model/LegalEntityManagement/CZLocalAccountIdentification.php +++ b/src/Adyen/Model/LegalEntityManagement/CZLocalAccountIdentification.php @@ -3,7 +3,7 @@ /** * Legal Entity Management API * - * The version of the OpenAPI document: 3 + * The version of the OpenAPI document: 4 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/LegalEntityManagement/CalculatePciStatusRequest.php b/src/Adyen/Model/LegalEntityManagement/CalculatePciStatusRequest.php index cd21e6b14..34da24546 100644 --- a/src/Adyen/Model/LegalEntityManagement/CalculatePciStatusRequest.php +++ b/src/Adyen/Model/LegalEntityManagement/CalculatePciStatusRequest.php @@ -3,7 +3,7 @@ /** * Legal Entity Management API * - * The version of the OpenAPI document: 3 + * The version of the OpenAPI document: 4 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/LegalEntityManagement/CalculatePciStatusResponse.php b/src/Adyen/Model/LegalEntityManagement/CalculatePciStatusResponse.php index 17ecae6e2..db3da190a 100644 --- a/src/Adyen/Model/LegalEntityManagement/CalculatePciStatusResponse.php +++ b/src/Adyen/Model/LegalEntityManagement/CalculatePciStatusResponse.php @@ -3,7 +3,7 @@ /** * Legal Entity Management API * - * The version of the OpenAPI document: 3 + * The version of the OpenAPI document: 4 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/LegalEntityManagement/CalculateTermsOfServiceStatusResponse.php b/src/Adyen/Model/LegalEntityManagement/CalculateTermsOfServiceStatusResponse.php index 485776e6d..cc4aaf10b 100644 --- a/src/Adyen/Model/LegalEntityManagement/CalculateTermsOfServiceStatusResponse.php +++ b/src/Adyen/Model/LegalEntityManagement/CalculateTermsOfServiceStatusResponse.php @@ -3,7 +3,7 @@ /** * Legal Entity Management API * - * The version of the OpenAPI document: 3 + * The version of the OpenAPI document: 4 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/LegalEntityManagement/CapabilityProblem.php b/src/Adyen/Model/LegalEntityManagement/CapabilityProblem.php index a87576372..596a187f9 100644 --- a/src/Adyen/Model/LegalEntityManagement/CapabilityProblem.php +++ b/src/Adyen/Model/LegalEntityManagement/CapabilityProblem.php @@ -3,7 +3,7 @@ /** * Legal Entity Management API * - * The version of the OpenAPI document: 3 + * The version of the OpenAPI document: 4 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/LegalEntityManagement/CapabilityProblemEntity.php b/src/Adyen/Model/LegalEntityManagement/CapabilityProblemEntity.php index fc4a9ffa1..e04178e9c 100644 --- a/src/Adyen/Model/LegalEntityManagement/CapabilityProblemEntity.php +++ b/src/Adyen/Model/LegalEntityManagement/CapabilityProblemEntity.php @@ -3,7 +3,7 @@ /** * Legal Entity Management API * - * The version of the OpenAPI document: 3 + * The version of the OpenAPI document: 4 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/LegalEntityManagement/CapabilityProblemEntityRecursive.php b/src/Adyen/Model/LegalEntityManagement/CapabilityProblemEntityRecursive.php index 52a65046c..a3d27624d 100644 --- a/src/Adyen/Model/LegalEntityManagement/CapabilityProblemEntityRecursive.php +++ b/src/Adyen/Model/LegalEntityManagement/CapabilityProblemEntityRecursive.php @@ -3,7 +3,7 @@ /** * Legal Entity Management API * - * The version of the OpenAPI document: 3 + * The version of the OpenAPI document: 4 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/LegalEntityManagement/CapabilitySettings.php b/src/Adyen/Model/LegalEntityManagement/CapabilitySettings.php index 1c787b6dd..8df69794b 100644 --- a/src/Adyen/Model/LegalEntityManagement/CapabilitySettings.php +++ b/src/Adyen/Model/LegalEntityManagement/CapabilitySettings.php @@ -3,7 +3,7 @@ /** * Legal Entity Management API * - * The version of the OpenAPI document: 3 + * The version of the OpenAPI document: 4 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/LegalEntityManagement/CheckTaxElectronicDeliveryConsentResponse.php b/src/Adyen/Model/LegalEntityManagement/CheckTaxElectronicDeliveryConsentResponse.php index 491671a87..ade5130af 100644 --- a/src/Adyen/Model/LegalEntityManagement/CheckTaxElectronicDeliveryConsentResponse.php +++ b/src/Adyen/Model/LegalEntityManagement/CheckTaxElectronicDeliveryConsentResponse.php @@ -3,7 +3,7 @@ /** * Legal Entity Management API * - * The version of the OpenAPI document: 3 + * The version of the OpenAPI document: 4 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/LegalEntityManagement/DKLocalAccountIdentification.php b/src/Adyen/Model/LegalEntityManagement/DKLocalAccountIdentification.php index 3c6065347..6ff525b3a 100644 --- a/src/Adyen/Model/LegalEntityManagement/DKLocalAccountIdentification.php +++ b/src/Adyen/Model/LegalEntityManagement/DKLocalAccountIdentification.php @@ -3,7 +3,7 @@ /** * Legal Entity Management API * - * The version of the OpenAPI document: 3 + * The version of the OpenAPI document: 4 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/LegalEntityManagement/DataReviewConfirmationResponse.php b/src/Adyen/Model/LegalEntityManagement/DataReviewConfirmationResponse.php index 1ab2e78a4..994ab730f 100644 --- a/src/Adyen/Model/LegalEntityManagement/DataReviewConfirmationResponse.php +++ b/src/Adyen/Model/LegalEntityManagement/DataReviewConfirmationResponse.php @@ -3,7 +3,7 @@ /** * Legal Entity Management API * - * The version of the OpenAPI document: 3 + * The version of the OpenAPI document: 4 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/LegalEntityManagement/Document.php b/src/Adyen/Model/LegalEntityManagement/Document.php index 4bb3bce3b..ce6076ede 100644 --- a/src/Adyen/Model/LegalEntityManagement/Document.php +++ b/src/Adyen/Model/LegalEntityManagement/Document.php @@ -3,7 +3,7 @@ /** * Legal Entity Management API * - * The version of the OpenAPI document: 3 + * The version of the OpenAPI document: 4 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * @@ -303,6 +303,7 @@ public function getModelName() public const TYPE_CONSTITUTIONAL_DOCUMENT = 'constitutionalDocument'; public const TYPE_PROOF_OF_FUNDING_OR_WEALTH_SOURCE = 'proofOfFundingOrWealthSource'; public const TYPE_PROOF_OF_RELATIONSHIP = 'proofOfRelationship'; + public const TYPE_PROOF_OF_DIRECTOR = 'proofOfDirector'; /** * Gets allowable values of the enum @@ -331,6 +332,7 @@ public function getTypeAllowableValues() self::TYPE_CONSTITUTIONAL_DOCUMENT, self::TYPE_PROOF_OF_FUNDING_OR_WEALTH_SOURCE, self::TYPE_PROOF_OF_RELATIONSHIP, + self::TYPE_PROOF_OF_DIRECTOR, ]; } /** @@ -727,7 +729,7 @@ public function getType() /** * Sets type * - * @param string $type Type of document, used when providing an ID number or uploading a document. The possible values depend on the legal entity type. * For **organization**, the `type` values can be **proofOfAddress**, **registrationDocument**, **vatDocument**, **proofOfOrganizationTaxInfo**, **proofOfOwnership**, **proofOfIndustry**, **proofOfSignatory**, or **proofOfFundingOrWealthSource**. * For **individual**, the `type` values can be **identityCard**, **driversLicense**, **passport**, **liveSelfie**, **proofOfNationalIdNumber**, **proofOfResidency**, **proofOfIndustry**, **proofOfIndividualTaxId**, **proofOfFundingOrWealthSource** or **proofOfRelationship**. * For **soleProprietorship**, the `type` values can be **constitutionalDocument**, **proofOfAddress**, or **proofOfIndustry**. * For **trust**, the `type` value is **constitutionalDocument**. * For **unincorporatedPartnership**, the `type` value is **constitutionalDocument**. * Use **bankStatement** to upload documents for a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). + * @param string $type Type of document, used when providing an ID number or uploading a document. The possible values depend on the legal entity type. * For **organization**, the `type` values can be **proofOfAddress**, **registrationDocument**, **vatDocument**, **proofOfOrganizationTaxInfo**, **proofOfOwnership**, **proofOfIndustry**, **proofOfSignatory**, **proofOfDirector**, or **proofOfFundingOrWealthSource**. * For **individual**, the `type` values can be **identityCard**, **driversLicense**, **passport**, **liveSelfie**, **proofOfNationalIdNumber**, **proofOfResidency**, **proofOfIndustry**, **proofOfIndividualTaxId**, **proofOfFundingOrWealthSource** or **proofOfRelationship**. * For **soleProprietorship**, the `type` values can be **constitutionalDocument**, **proofOfAddress**, or **proofOfIndustry**. * For **trust**, the `type` value is **constitutionalDocument**. * For **unincorporatedPartnership**, the `type` value is **constitutionalDocument**. * Use **bankStatement** to upload documents for a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). * * @return self */ diff --git a/src/Adyen/Model/LegalEntityManagement/DocumentPage.php b/src/Adyen/Model/LegalEntityManagement/DocumentPage.php index 1628bdc27..31a7587b0 100644 --- a/src/Adyen/Model/LegalEntityManagement/DocumentPage.php +++ b/src/Adyen/Model/LegalEntityManagement/DocumentPage.php @@ -3,7 +3,7 @@ /** * Legal Entity Management API * - * The version of the OpenAPI document: 3 + * The version of the OpenAPI document: 4 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/LegalEntityManagement/DocumentReference.php b/src/Adyen/Model/LegalEntityManagement/DocumentReference.php index d0c480dde..1375382a2 100644 --- a/src/Adyen/Model/LegalEntityManagement/DocumentReference.php +++ b/src/Adyen/Model/LegalEntityManagement/DocumentReference.php @@ -3,7 +3,7 @@ /** * Legal Entity Management API * - * The version of the OpenAPI document: 3 + * The version of the OpenAPI document: 4 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/LegalEntityManagement/EntityReference.php b/src/Adyen/Model/LegalEntityManagement/EntityReference.php index c38458ca6..7699fcf60 100644 --- a/src/Adyen/Model/LegalEntityManagement/EntityReference.php +++ b/src/Adyen/Model/LegalEntityManagement/EntityReference.php @@ -3,7 +3,7 @@ /** * Legal Entity Management API * - * The version of the OpenAPI document: 3 + * The version of the OpenAPI document: 4 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/LegalEntityManagement/FinancialReport.php b/src/Adyen/Model/LegalEntityManagement/FinancialReport.php index 9aee5497b..489e6f17d 100644 --- a/src/Adyen/Model/LegalEntityManagement/FinancialReport.php +++ b/src/Adyen/Model/LegalEntityManagement/FinancialReport.php @@ -3,7 +3,7 @@ /** * Legal Entity Management API * - * The version of the OpenAPI document: 3 + * The version of the OpenAPI document: 4 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/LegalEntityManagement/Financier.php b/src/Adyen/Model/LegalEntityManagement/Financier.php new file mode 100644 index 000000000..d9709669f --- /dev/null +++ b/src/Adyen/Model/LegalEntityManagement/Financier.php @@ -0,0 +1,509 @@ + + */ +class Financier implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'Financier'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'amount' => '\Adyen\Model\LegalEntityManagement\Amount', + 'firstName' => 'string', + 'lastName' => 'string', + 'location' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'amount' => null, + 'firstName' => null, + 'lastName' => null, + 'location' => null + ]; + + /** + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ + protected static $openAPINullables = [ + 'amount' => false, + 'firstName' => false, + 'lastName' => false, + 'location' => 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 = [ + 'amount' => 'amount', + 'firstName' => 'firstName', + 'lastName' => 'lastName', + 'location' => 'location' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'amount' => 'setAmount', + 'firstName' => 'setFirstName', + 'lastName' => 'setLastName', + 'location' => 'setLocation' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'amount' => 'getAmount', + 'firstName' => 'getFirstName', + 'lastName' => 'getLastName', + 'location' => 'getLocation' + ]; + + /** + * 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('amount', $data ?? [], null); + $this->setIfExists('firstName', $data ?? [], null); + $this->setIfExists('lastName', $data ?? [], null); + $this->setIfExists('location', $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['amount'] === null) { + $invalidProperties[] = "'amount' can't be null"; + } + if ($this->container['firstName'] === null) { + $invalidProperties[] = "'firstName' can't be null"; + } + if ($this->container['lastName'] === null) { + $invalidProperties[] = "'lastName' can't be null"; + } + if ($this->container['location'] === null) { + $invalidProperties[] = "'location' 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 amount + * + * @return \Adyen\Model\LegalEntityManagement\Amount + */ + public function getAmount() + { + return $this->container['amount']; + } + + /** + * Sets amount + * + * @param \Adyen\Model\LegalEntityManagement\Amount $amount amount + * + * @return self + */ + public function setAmount($amount) + { + $this->container['amount'] = $amount; + + return $this; + } + + /** + * Gets firstName + * + * @return string + */ + public function getFirstName() + { + return $this->container['firstName']; + } + + /** + * Sets firstName + * + * @param string $firstName The financier's first name. + * + * @return self + */ + public function setFirstName($firstName) + { + $this->container['firstName'] = $firstName; + + return $this; + } + + /** + * Gets lastName + * + * @return string + */ + public function getLastName() + { + return $this->container['lastName']; + } + + /** + * Sets lastName + * + * @param string $lastName The financier's last name. + * + * @return self + */ + public function setLastName($lastName) + { + $this->container['lastName'] = $lastName; + + return $this; + } + + /** + * Gets location + * + * @return string + */ + public function getLocation() + { + return $this->container['location']; + } + + /** + * Sets location + * + * @param string $location The city and country/region where the financier is currently located. For example: Chicago, USA + * + * @return self + */ + public function setLocation($location) + { + $this->container['location'] = $location; + + 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/LegalEntityManagement/GeneratePciDescriptionRequest.php b/src/Adyen/Model/LegalEntityManagement/GeneratePciDescriptionRequest.php index 049d5f457..e5194dee2 100644 --- a/src/Adyen/Model/LegalEntityManagement/GeneratePciDescriptionRequest.php +++ b/src/Adyen/Model/LegalEntityManagement/GeneratePciDescriptionRequest.php @@ -3,7 +3,7 @@ /** * Legal Entity Management API * - * The version of the OpenAPI document: 3 + * The version of the OpenAPI document: 4 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/LegalEntityManagement/GeneratePciDescriptionResponse.php b/src/Adyen/Model/LegalEntityManagement/GeneratePciDescriptionResponse.php index 72b987a93..55e68cd7d 100644 --- a/src/Adyen/Model/LegalEntityManagement/GeneratePciDescriptionResponse.php +++ b/src/Adyen/Model/LegalEntityManagement/GeneratePciDescriptionResponse.php @@ -3,7 +3,7 @@ /** * Legal Entity Management API * - * The version of the OpenAPI document: 3 + * The version of the OpenAPI document: 4 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/LegalEntityManagement/GetAcceptedTermsOfServiceDocumentResponse.php b/src/Adyen/Model/LegalEntityManagement/GetAcceptedTermsOfServiceDocumentResponse.php index 47216952d..38e19ca6c 100644 --- a/src/Adyen/Model/LegalEntityManagement/GetAcceptedTermsOfServiceDocumentResponse.php +++ b/src/Adyen/Model/LegalEntityManagement/GetAcceptedTermsOfServiceDocumentResponse.php @@ -3,7 +3,7 @@ /** * Legal Entity Management API * - * The version of the OpenAPI document: 3 + * The version of the OpenAPI document: 4 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/LegalEntityManagement/GetPciQuestionnaireInfosResponse.php b/src/Adyen/Model/LegalEntityManagement/GetPciQuestionnaireInfosResponse.php index 82c55b911..de6a907d7 100644 --- a/src/Adyen/Model/LegalEntityManagement/GetPciQuestionnaireInfosResponse.php +++ b/src/Adyen/Model/LegalEntityManagement/GetPciQuestionnaireInfosResponse.php @@ -3,7 +3,7 @@ /** * Legal Entity Management API * - * The version of the OpenAPI document: 3 + * The version of the OpenAPI document: 4 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/LegalEntityManagement/GetPciQuestionnaireResponse.php b/src/Adyen/Model/LegalEntityManagement/GetPciQuestionnaireResponse.php index ecab3e420..291673ce1 100644 --- a/src/Adyen/Model/LegalEntityManagement/GetPciQuestionnaireResponse.php +++ b/src/Adyen/Model/LegalEntityManagement/GetPciQuestionnaireResponse.php @@ -3,7 +3,7 @@ /** * Legal Entity Management API * - * The version of the OpenAPI document: 3 + * The version of the OpenAPI document: 4 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/LegalEntityManagement/GetTermsOfServiceAcceptanceInfosResponse.php b/src/Adyen/Model/LegalEntityManagement/GetTermsOfServiceAcceptanceInfosResponse.php index 33640a29d..7f568979d 100644 --- a/src/Adyen/Model/LegalEntityManagement/GetTermsOfServiceAcceptanceInfosResponse.php +++ b/src/Adyen/Model/LegalEntityManagement/GetTermsOfServiceAcceptanceInfosResponse.php @@ -3,7 +3,7 @@ /** * Legal Entity Management API * - * The version of the OpenAPI document: 3 + * The version of the OpenAPI document: 4 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/LegalEntityManagement/GetTermsOfServiceDocumentRequest.php b/src/Adyen/Model/LegalEntityManagement/GetTermsOfServiceDocumentRequest.php index 4c7f51e13..2653ba850 100644 --- a/src/Adyen/Model/LegalEntityManagement/GetTermsOfServiceDocumentRequest.php +++ b/src/Adyen/Model/LegalEntityManagement/GetTermsOfServiceDocumentRequest.php @@ -3,7 +3,7 @@ /** * Legal Entity Management API * - * The version of the OpenAPI document: 3 + * The version of the OpenAPI document: 4 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/LegalEntityManagement/GetTermsOfServiceDocumentResponse.php b/src/Adyen/Model/LegalEntityManagement/GetTermsOfServiceDocumentResponse.php index b6fd943c8..25e6d5f2d 100644 --- a/src/Adyen/Model/LegalEntityManagement/GetTermsOfServiceDocumentResponse.php +++ b/src/Adyen/Model/LegalEntityManagement/GetTermsOfServiceDocumentResponse.php @@ -3,7 +3,7 @@ /** * Legal Entity Management API * - * The version of the OpenAPI document: 3 + * The version of the OpenAPI document: 4 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * @@ -408,7 +408,7 @@ public function getLanguage() /** * Sets language * - * @param string|null $language The language used for the Terms of Service document, specified by the two-letter [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code. Possible value: **en** for English. + * @param string|null $language The language used for the Terms of Service document, specified by the two-letter [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code. Possible value: **en** for English or **fr** for French. Note that French is only available for some integration types in certain countries/regions. Reach out to your Adyen contact for more information. * * @return self */ diff --git a/src/Adyen/Model/LegalEntityManagement/HKLocalAccountIdentification.php b/src/Adyen/Model/LegalEntityManagement/HKLocalAccountIdentification.php index bc307744f..ed1954319 100644 --- a/src/Adyen/Model/LegalEntityManagement/HKLocalAccountIdentification.php +++ b/src/Adyen/Model/LegalEntityManagement/HKLocalAccountIdentification.php @@ -3,7 +3,7 @@ /** * Legal Entity Management API * - * The version of the OpenAPI document: 3 + * The version of the OpenAPI document: 4 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * @@ -330,7 +330,7 @@ public function getAccountNumber() /** * Sets accountNumber * - * @param string $accountNumber The 9- to 15-character bank account number (alphanumeric), without separators or whitespace. Starts with the 3-digit branch code. + * @param string $accountNumber The 9- to 17-digit bank account number, without separators or whitespace. Starts with the 3-digit branch code. * * @return self */ diff --git a/src/Adyen/Model/LegalEntityManagement/HULocalAccountIdentification.php b/src/Adyen/Model/LegalEntityManagement/HULocalAccountIdentification.php index 04cbf1dbf..bde4af742 100644 --- a/src/Adyen/Model/LegalEntityManagement/HULocalAccountIdentification.php +++ b/src/Adyen/Model/LegalEntityManagement/HULocalAccountIdentification.php @@ -3,7 +3,7 @@ /** * Legal Entity Management API * - * The version of the OpenAPI document: 3 + * The version of the OpenAPI document: 4 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/LegalEntityManagement/IbanAccountIdentification.php b/src/Adyen/Model/LegalEntityManagement/IbanAccountIdentification.php index 3010e7fa0..aaf7bb213 100644 --- a/src/Adyen/Model/LegalEntityManagement/IbanAccountIdentification.php +++ b/src/Adyen/Model/LegalEntityManagement/IbanAccountIdentification.php @@ -3,7 +3,7 @@ /** * Legal Entity Management API * - * The version of the OpenAPI document: 3 + * The version of the OpenAPI document: 4 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/LegalEntityManagement/IdentificationData.php b/src/Adyen/Model/LegalEntityManagement/IdentificationData.php index 4f73c20e9..cae8b20e4 100644 --- a/src/Adyen/Model/LegalEntityManagement/IdentificationData.php +++ b/src/Adyen/Model/LegalEntityManagement/IdentificationData.php @@ -3,7 +3,7 @@ /** * Legal Entity Management API * - * The version of the OpenAPI document: 3 + * The version of the OpenAPI document: 4 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/LegalEntityManagement/Individual.php b/src/Adyen/Model/LegalEntityManagement/Individual.php index d8d69a7e3..de8b3886d 100644 --- a/src/Adyen/Model/LegalEntityManagement/Individual.php +++ b/src/Adyen/Model/LegalEntityManagement/Individual.php @@ -3,7 +3,7 @@ /** * Legal Entity Management API * - * The version of the OpenAPI document: 3 + * The version of the OpenAPI document: 4 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * @@ -48,6 +48,7 @@ class Individual implements ModelInterface, ArrayAccess, \JsonSerializable 'nationality' => 'string', 'phone' => '\Adyen\Model\LegalEntityManagement\PhoneNumber', 'residentialAddress' => '\Adyen\Model\LegalEntityManagement\Address', + 'support' => '\Adyen\Model\LegalEntityManagement\Support', 'taxInformation' => '\Adyen\Model\LegalEntityManagement\TaxInformation[]', 'webData' => '\Adyen\Model\LegalEntityManagement\WebData' ]; @@ -67,6 +68,7 @@ class Individual implements ModelInterface, ArrayAccess, \JsonSerializable 'nationality' => null, 'phone' => null, 'residentialAddress' => null, + 'support' => null, 'taxInformation' => null, 'webData' => null ]; @@ -84,6 +86,7 @@ class Individual implements ModelInterface, ArrayAccess, \JsonSerializable 'nationality' => false, 'phone' => false, 'residentialAddress' => false, + 'support' => false, 'taxInformation' => false, 'webData' => false ]; @@ -181,6 +184,7 @@ public function isNullableSetToNull(string $property): bool 'nationality' => 'nationality', 'phone' => 'phone', 'residentialAddress' => 'residentialAddress', + 'support' => 'support', 'taxInformation' => 'taxInformation', 'webData' => 'webData' ]; @@ -198,6 +202,7 @@ public function isNullableSetToNull(string $property): bool 'nationality' => 'setNationality', 'phone' => 'setPhone', 'residentialAddress' => 'setResidentialAddress', + 'support' => 'setSupport', 'taxInformation' => 'setTaxInformation', 'webData' => 'setWebData' ]; @@ -215,6 +220,7 @@ public function isNullableSetToNull(string $property): bool 'nationality' => 'getNationality', 'phone' => 'getPhone', 'residentialAddress' => 'getResidentialAddress', + 'support' => 'getSupport', 'taxInformation' => 'getTaxInformation', 'webData' => 'getWebData' ]; @@ -283,6 +289,7 @@ public function __construct(?array $data = null) $this->setIfExists('nationality', $data ?? [], null); $this->setIfExists('phone', $data ?? [], null); $this->setIfExists('residentialAddress', $data ?? [], null); + $this->setIfExists('support', $data ?? [], null); $this->setIfExists('taxInformation', $data ?? [], null); $this->setIfExists('webData', $data ?? [], null); } @@ -503,6 +510,30 @@ public function setResidentialAddress($residentialAddress) return $this; } + /** + * Gets support + * + * @return \Adyen\Model\LegalEntityManagement\Support|null + */ + public function getSupport() + { + return $this->container['support']; + } + + /** + * Sets support + * + * @param \Adyen\Model\LegalEntityManagement\Support|null $support support + * + * @return self + */ + public function setSupport($support) + { + $this->container['support'] = $support; + + return $this; + } + /** * Gets taxInformation * diff --git a/src/Adyen/Model/LegalEntityManagement/LegalEntity.php b/src/Adyen/Model/LegalEntityManagement/LegalEntity.php index a464cd1c2..5dc73c4eb 100644 --- a/src/Adyen/Model/LegalEntityManagement/LegalEntity.php +++ b/src/Adyen/Model/LegalEntityManagement/LegalEntity.php @@ -3,7 +3,7 @@ /** * Legal Entity Management API * - * The version of the OpenAPI document: 3 + * The version of the OpenAPI document: 4 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/LegalEntityManagement/LegalEntityAssociation.php b/src/Adyen/Model/LegalEntityManagement/LegalEntityAssociation.php index e74c713ca..d61f952de 100644 --- a/src/Adyen/Model/LegalEntityManagement/LegalEntityAssociation.php +++ b/src/Adyen/Model/LegalEntityManagement/LegalEntityAssociation.php @@ -3,7 +3,7 @@ /** * Legal Entity Management API * - * The version of the OpenAPI document: 3 + * The version of the OpenAPI document: 4 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/LegalEntityManagement/LegalEntityCapability.php b/src/Adyen/Model/LegalEntityManagement/LegalEntityCapability.php index 47ed3a14b..d240a4d3f 100644 --- a/src/Adyen/Model/LegalEntityManagement/LegalEntityCapability.php +++ b/src/Adyen/Model/LegalEntityManagement/LegalEntityCapability.php @@ -3,7 +3,7 @@ /** * Legal Entity Management API * - * The version of the OpenAPI document: 3 + * The version of the OpenAPI document: 4 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/LegalEntityManagement/LegalEntityInfo.php b/src/Adyen/Model/LegalEntityManagement/LegalEntityInfo.php index 213fd4bde..2fc02bbbb 100644 --- a/src/Adyen/Model/LegalEntityManagement/LegalEntityInfo.php +++ b/src/Adyen/Model/LegalEntityManagement/LegalEntityInfo.php @@ -3,7 +3,7 @@ /** * Legal Entity Management API * - * The version of the OpenAPI document: 3 + * The version of the OpenAPI document: 4 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/LegalEntityManagement/LegalEntityInfoRequiredType.php b/src/Adyen/Model/LegalEntityManagement/LegalEntityInfoRequiredType.php index f0385ba07..325a933dd 100644 --- a/src/Adyen/Model/LegalEntityManagement/LegalEntityInfoRequiredType.php +++ b/src/Adyen/Model/LegalEntityManagement/LegalEntityInfoRequiredType.php @@ -3,7 +3,7 @@ /** * Legal Entity Management API * - * The version of the OpenAPI document: 3 + * The version of the OpenAPI document: 4 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/LegalEntityManagement/ModelInterface.php b/src/Adyen/Model/LegalEntityManagement/ModelInterface.php index 452a98309..2cdb7048a 100644 --- a/src/Adyen/Model/LegalEntityManagement/ModelInterface.php +++ b/src/Adyen/Model/LegalEntityManagement/ModelInterface.php @@ -3,7 +3,7 @@ /** * Legal Entity Management API * - * The version of the OpenAPI document: 3 + * The version of the OpenAPI document: 4 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/LegalEntityManagement/NOLocalAccountIdentification.php b/src/Adyen/Model/LegalEntityManagement/NOLocalAccountIdentification.php index d2f20f031..a05a76ed1 100644 --- a/src/Adyen/Model/LegalEntityManagement/NOLocalAccountIdentification.php +++ b/src/Adyen/Model/LegalEntityManagement/NOLocalAccountIdentification.php @@ -3,7 +3,7 @@ /** * Legal Entity Management API * - * The version of the OpenAPI document: 3 + * The version of the OpenAPI document: 4 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/LegalEntityManagement/NZLocalAccountIdentification.php b/src/Adyen/Model/LegalEntityManagement/NZLocalAccountIdentification.php index 540116fe9..bbf8736e1 100644 --- a/src/Adyen/Model/LegalEntityManagement/NZLocalAccountIdentification.php +++ b/src/Adyen/Model/LegalEntityManagement/NZLocalAccountIdentification.php @@ -3,7 +3,7 @@ /** * Legal Entity Management API * - * The version of the OpenAPI document: 3 + * The version of the OpenAPI document: 4 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/LegalEntityManagement/Name.php b/src/Adyen/Model/LegalEntityManagement/Name.php index 1457d5159..d5289b970 100644 --- a/src/Adyen/Model/LegalEntityManagement/Name.php +++ b/src/Adyen/Model/LegalEntityManagement/Name.php @@ -3,7 +3,7 @@ /** * Legal Entity Management API * - * The version of the OpenAPI document: 3 + * The version of the OpenAPI document: 4 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/LegalEntityManagement/NumberAndBicAccountIdentification.php b/src/Adyen/Model/LegalEntityManagement/NumberAndBicAccountIdentification.php index 2d26c2e50..860decc7d 100644 --- a/src/Adyen/Model/LegalEntityManagement/NumberAndBicAccountIdentification.php +++ b/src/Adyen/Model/LegalEntityManagement/NumberAndBicAccountIdentification.php @@ -3,7 +3,7 @@ /** * Legal Entity Management API * - * The version of the OpenAPI document: 3 + * The version of the OpenAPI document: 4 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/LegalEntityManagement/ObjectSerializer.php b/src/Adyen/Model/LegalEntityManagement/ObjectSerializer.php index 21a86c284..3a2ad8485 100644 --- a/src/Adyen/Model/LegalEntityManagement/ObjectSerializer.php +++ b/src/Adyen/Model/LegalEntityManagement/ObjectSerializer.php @@ -3,7 +3,7 @@ /** * Legal Entity Management API * - * The version of the OpenAPI document: 3 + * The version of the OpenAPI document: 4 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/LegalEntityManagement/OnboardingLink.php b/src/Adyen/Model/LegalEntityManagement/OnboardingLink.php index e2735a72e..debcf2fab 100644 --- a/src/Adyen/Model/LegalEntityManagement/OnboardingLink.php +++ b/src/Adyen/Model/LegalEntityManagement/OnboardingLink.php @@ -3,7 +3,7 @@ /** * Legal Entity Management API * - * The version of the OpenAPI document: 3 + * The version of the OpenAPI document: 4 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * @@ -286,7 +286,7 @@ public function getUrl() /** * Sets url * - * @param string|null $url The URL of the hosted onboarding page where you need to redirect your user. This URL expires after 4 minutes and can only be used once. If the link expires, you need to create a new link. + * @param string|null $url The URL of the hosted onboarding page where you need to redirect your user. This URL: - Expires after 4 minutes. - Can only be used once. - Can only be clicked once by the user. If the link expires, you need to create a new link. * * @return self */ diff --git a/src/Adyen/Model/LegalEntityManagement/OnboardingLinkInfo.php b/src/Adyen/Model/LegalEntityManagement/OnboardingLinkInfo.php index 2f3e3a9f8..cb6d92af5 100644 --- a/src/Adyen/Model/LegalEntityManagement/OnboardingLinkInfo.php +++ b/src/Adyen/Model/LegalEntityManagement/OnboardingLinkInfo.php @@ -3,7 +3,7 @@ /** * Legal Entity Management API * - * The version of the OpenAPI document: 3 + * The version of the OpenAPI document: 4 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/LegalEntityManagement/OnboardingLinkSettings.php b/src/Adyen/Model/LegalEntityManagement/OnboardingLinkSettings.php index 42853c2ed..b0f5d7593 100644 --- a/src/Adyen/Model/LegalEntityManagement/OnboardingLinkSettings.php +++ b/src/Adyen/Model/LegalEntityManagement/OnboardingLinkSettings.php @@ -3,7 +3,7 @@ /** * Legal Entity Management API * - * The version of the OpenAPI document: 3 + * The version of the OpenAPI document: 4 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/LegalEntityManagement/OnboardingTheme.php b/src/Adyen/Model/LegalEntityManagement/OnboardingTheme.php index 62f41e38d..f6e2f8bc4 100644 --- a/src/Adyen/Model/LegalEntityManagement/OnboardingTheme.php +++ b/src/Adyen/Model/LegalEntityManagement/OnboardingTheme.php @@ -3,7 +3,7 @@ /** * Legal Entity Management API * - * The version of the OpenAPI document: 3 + * The version of the OpenAPI document: 4 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/LegalEntityManagement/OnboardingThemes.php b/src/Adyen/Model/LegalEntityManagement/OnboardingThemes.php index b73433d48..b7f716995 100644 --- a/src/Adyen/Model/LegalEntityManagement/OnboardingThemes.php +++ b/src/Adyen/Model/LegalEntityManagement/OnboardingThemes.php @@ -3,7 +3,7 @@ /** * Legal Entity Management API * - * The version of the OpenAPI document: 3 + * The version of the OpenAPI document: 4 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/LegalEntityManagement/Organization.php b/src/Adyen/Model/LegalEntityManagement/Organization.php index c4ca04768..72ab72b0a 100644 --- a/src/Adyen/Model/LegalEntityManagement/Organization.php +++ b/src/Adyen/Model/LegalEntityManagement/Organization.php @@ -3,7 +3,7 @@ /** * Legal Entity Management API * - * The version of the OpenAPI document: 3 + * The version of the OpenAPI document: 4 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * @@ -43,16 +43,26 @@ class Organization implements ModelInterface, ArrayAccess, \JsonSerializable protected static $openAPITypes = [ 'countryOfGoverningLaw' => 'string', 'dateOfIncorporation' => 'string', + 'dateOfInitiationOfLegalProceeding' => 'string', 'description' => 'string', 'doingBusinessAs' => 'string', + 'doingBusinessAsAbsent' => 'bool', + 'economicSector' => 'string', 'email' => 'string', 'financialReports' => '\Adyen\Model\LegalEntityManagement\FinancialReport[]', + 'globalLegalEntityIdentifier' => 'string', + 'headOfficeIndicator' => 'bool', + 'institutionalSector' => 'string', + 'legalForm' => 'string', 'legalName' => 'string', 'phone' => '\Adyen\Model\LegalEntityManagement\PhoneNumber', 'principalPlaceOfBusiness' => '\Adyen\Model\LegalEntityManagement\Address', 'registeredAddress' => '\Adyen\Model\LegalEntityManagement\Address', 'registrationNumber' => 'string', + 'registrationNumberAbsent' => 'bool', + 'statusOfLegalProceeding' => 'string', 'stockData' => '\Adyen\Model\LegalEntityManagement\StockData', + 'support' => '\Adyen\Model\LegalEntityManagement\Support', 'taxInformation' => '\Adyen\Model\LegalEntityManagement\TaxInformation[]', 'taxReportingClassification' => '\Adyen\Model\LegalEntityManagement\TaxReportingClassification', 'type' => 'string', @@ -71,16 +81,26 @@ class Organization implements ModelInterface, ArrayAccess, \JsonSerializable protected static $openAPIFormats = [ 'countryOfGoverningLaw' => null, 'dateOfIncorporation' => null, + 'dateOfInitiationOfLegalProceeding' => null, 'description' => null, 'doingBusinessAs' => null, + 'doingBusinessAsAbsent' => null, + 'economicSector' => null, 'email' => null, 'financialReports' => null, + 'globalLegalEntityIdentifier' => null, + 'headOfficeIndicator' => null, + 'institutionalSector' => null, + 'legalForm' => null, 'legalName' => null, 'phone' => null, 'principalPlaceOfBusiness' => null, 'registeredAddress' => null, 'registrationNumber' => null, + 'registrationNumberAbsent' => null, + 'statusOfLegalProceeding' => null, 'stockData' => null, + 'support' => null, 'taxInformation' => null, 'taxReportingClassification' => null, 'type' => null, @@ -97,16 +117,26 @@ class Organization implements ModelInterface, ArrayAccess, \JsonSerializable protected static $openAPINullables = [ 'countryOfGoverningLaw' => false, 'dateOfIncorporation' => false, + 'dateOfInitiationOfLegalProceeding' => false, 'description' => false, 'doingBusinessAs' => false, + 'doingBusinessAsAbsent' => true, + 'economicSector' => false, 'email' => false, 'financialReports' => false, + 'globalLegalEntityIdentifier' => false, + 'headOfficeIndicator' => false, + 'institutionalSector' => false, + 'legalForm' => false, 'legalName' => false, 'phone' => false, 'principalPlaceOfBusiness' => false, 'registeredAddress' => false, 'registrationNumber' => false, + 'registrationNumberAbsent' => true, + 'statusOfLegalProceeding' => false, 'stockData' => false, + 'support' => false, 'taxInformation' => false, 'taxReportingClassification' => false, 'type' => false, @@ -203,16 +233,26 @@ public function isNullableSetToNull(string $property): bool protected static $attributeMap = [ 'countryOfGoverningLaw' => 'countryOfGoverningLaw', 'dateOfIncorporation' => 'dateOfIncorporation', + 'dateOfInitiationOfLegalProceeding' => 'dateOfInitiationOfLegalProceeding', 'description' => 'description', 'doingBusinessAs' => 'doingBusinessAs', + 'doingBusinessAsAbsent' => 'doingBusinessAsAbsent', + 'economicSector' => 'economicSector', 'email' => 'email', 'financialReports' => 'financialReports', + 'globalLegalEntityIdentifier' => 'globalLegalEntityIdentifier', + 'headOfficeIndicator' => 'headOfficeIndicator', + 'institutionalSector' => 'institutionalSector', + 'legalForm' => 'legalForm', 'legalName' => 'legalName', 'phone' => 'phone', 'principalPlaceOfBusiness' => 'principalPlaceOfBusiness', 'registeredAddress' => 'registeredAddress', 'registrationNumber' => 'registrationNumber', + 'registrationNumberAbsent' => 'registrationNumberAbsent', + 'statusOfLegalProceeding' => 'statusOfLegalProceeding', 'stockData' => 'stockData', + 'support' => 'support', 'taxInformation' => 'taxInformation', 'taxReportingClassification' => 'taxReportingClassification', 'type' => 'type', @@ -229,16 +269,26 @@ public function isNullableSetToNull(string $property): bool protected static $setters = [ 'countryOfGoverningLaw' => 'setCountryOfGoverningLaw', 'dateOfIncorporation' => 'setDateOfIncorporation', + 'dateOfInitiationOfLegalProceeding' => 'setDateOfInitiationOfLegalProceeding', 'description' => 'setDescription', 'doingBusinessAs' => 'setDoingBusinessAs', + 'doingBusinessAsAbsent' => 'setDoingBusinessAsAbsent', + 'economicSector' => 'setEconomicSector', 'email' => 'setEmail', 'financialReports' => 'setFinancialReports', + 'globalLegalEntityIdentifier' => 'setGlobalLegalEntityIdentifier', + 'headOfficeIndicator' => 'setHeadOfficeIndicator', + 'institutionalSector' => 'setInstitutionalSector', + 'legalForm' => 'setLegalForm', 'legalName' => 'setLegalName', 'phone' => 'setPhone', 'principalPlaceOfBusiness' => 'setPrincipalPlaceOfBusiness', 'registeredAddress' => 'setRegisteredAddress', 'registrationNumber' => 'setRegistrationNumber', + 'registrationNumberAbsent' => 'setRegistrationNumberAbsent', + 'statusOfLegalProceeding' => 'setStatusOfLegalProceeding', 'stockData' => 'setStockData', + 'support' => 'setSupport', 'taxInformation' => 'setTaxInformation', 'taxReportingClassification' => 'setTaxReportingClassification', 'type' => 'setType', @@ -255,16 +305,26 @@ public function isNullableSetToNull(string $property): bool protected static $getters = [ 'countryOfGoverningLaw' => 'getCountryOfGoverningLaw', 'dateOfIncorporation' => 'getDateOfIncorporation', + 'dateOfInitiationOfLegalProceeding' => 'getDateOfInitiationOfLegalProceeding', 'description' => 'getDescription', 'doingBusinessAs' => 'getDoingBusinessAs', + 'doingBusinessAsAbsent' => 'getDoingBusinessAsAbsent', + 'economicSector' => 'getEconomicSector', 'email' => 'getEmail', 'financialReports' => 'getFinancialReports', + 'globalLegalEntityIdentifier' => 'getGlobalLegalEntityIdentifier', + 'headOfficeIndicator' => 'getHeadOfficeIndicator', + 'institutionalSector' => 'getInstitutionalSector', + 'legalForm' => 'getLegalForm', 'legalName' => 'getLegalName', 'phone' => 'getPhone', 'principalPlaceOfBusiness' => 'getPrincipalPlaceOfBusiness', 'registeredAddress' => 'getRegisteredAddress', 'registrationNumber' => 'getRegistrationNumber', + 'registrationNumberAbsent' => 'getRegistrationNumberAbsent', + 'statusOfLegalProceeding' => 'getStatusOfLegalProceeding', 'stockData' => 'getStockData', + 'support' => 'getSupport', 'taxInformation' => 'getTaxInformation', 'taxReportingClassification' => 'getTaxReportingClassification', 'type' => 'getType', @@ -314,6 +374,27 @@ public function getModelName() return self::$openAPIModelName; } + public const INSTITUTIONAL_SECTOR_NON_FINANCIAL_CORPORATION = 'nonFinancialCorporation'; + public const INSTITUTIONAL_SECTOR_CENTRAL_BANK = 'centralBank'; + public const INSTITUTIONAL_SECTOR_CREDIT_INSTITUTIONS = 'creditInstitutions'; + public const INSTITUTIONAL_SECTOR_DEPOSIT_TAKING_CORPORATIONS = 'depositTakingCorporations'; + public const INSTITUTIONAL_SECTOR_MONEY_MARKET_FUNDS = 'moneyMarketFunds'; + public const INSTITUTIONAL_SECTOR_NON_MMF_INVESTMENT_FUNDS = 'nonMMFInvestmentFunds'; + public const INSTITUTIONAL_SECTOR_FINANCIAL_VEHICLE_CORPORATION = 'financialVehicleCorporation'; + public const INSTITUTIONAL_SECTOR_OTHER_FINANCIAL_INTERMEDIARIES = 'otherFinancialIntermediaries'; + public const INSTITUTIONAL_SECTOR_FINANCIAL_AUXILIARIES = 'financialAuxiliaries'; + public const INSTITUTIONAL_SECTOR_CAPTIVE_FINANCIAL_INSTITUTIONS_AND_MONEY_LENDERS = 'captiveFinancialInstitutionsAndMoneyLenders'; + public const INSTITUTIONAL_SECTOR_INSURANCE_CORPORATIONS = 'insuranceCorporations'; + public const INSTITUTIONAL_SECTOR_PENSION_FUNDS = 'pensionFunds'; + public const INSTITUTIONAL_SECTOR_CENTRAL_GOVERNMENT = 'centralGovernment'; + public const INSTITUTIONAL_SECTOR_STATE_GOVERNMENT = 'stateGovernment'; + public const INSTITUTIONAL_SECTOR_LOCAL_GOVERNMENT = 'localGovernment'; + public const INSTITUTIONAL_SECTOR_SOCIAL_SECURITY_FUNDS = 'socialSecurityFunds'; + public const INSTITUTIONAL_SECTOR_NON_PROFIT_INSTITUTIONS_SERVING_HOUSEHOLDS = 'nonProfitInstitutionsServingHouseholds'; + public const STATUS_OF_LEGAL_PROCEEDING_NO_LEGAL_ACTIONS_TAKEN = 'noLegalActionsTaken'; + public const STATUS_OF_LEGAL_PROCEEDING_UNDER_JUDICIAL_ADMINISTRATION = 'underJudicialAdministration'; + public const STATUS_OF_LEGAL_PROCEEDING_BANKRUPTCY_INSOLVENCY = 'bankruptcyInsolvency'; + public const STATUS_OF_LEGAL_PROCEEDING_OTHER_LEGAL_MEASURES = 'otherLegalMeasures'; public const TYPE_ASSOCIATION_INCORPORATED = 'associationIncorporated'; public const TYPE_GOVERNMENTAL_ORGANIZATION = 'governmentalOrganization'; public const TYPE_LISTED_PUBLIC_COMPANY = 'listedPublicCompany'; @@ -323,6 +404,47 @@ public function getModelName() public const VAT_ABSENCE_REASON_INDUSTRY_EXEMPTION = 'industryExemption'; public const VAT_ABSENCE_REASON_BELOW_TAX_THRESHOLD = 'belowTaxThreshold'; + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getInstitutionalSectorAllowableValues() + { + return [ + self::INSTITUTIONAL_SECTOR_NON_FINANCIAL_CORPORATION, + self::INSTITUTIONAL_SECTOR_CENTRAL_BANK, + self::INSTITUTIONAL_SECTOR_CREDIT_INSTITUTIONS, + self::INSTITUTIONAL_SECTOR_DEPOSIT_TAKING_CORPORATIONS, + self::INSTITUTIONAL_SECTOR_MONEY_MARKET_FUNDS, + self::INSTITUTIONAL_SECTOR_NON_MMF_INVESTMENT_FUNDS, + self::INSTITUTIONAL_SECTOR_FINANCIAL_VEHICLE_CORPORATION, + self::INSTITUTIONAL_SECTOR_OTHER_FINANCIAL_INTERMEDIARIES, + self::INSTITUTIONAL_SECTOR_FINANCIAL_AUXILIARIES, + self::INSTITUTIONAL_SECTOR_CAPTIVE_FINANCIAL_INSTITUTIONS_AND_MONEY_LENDERS, + self::INSTITUTIONAL_SECTOR_INSURANCE_CORPORATIONS, + self::INSTITUTIONAL_SECTOR_PENSION_FUNDS, + self::INSTITUTIONAL_SECTOR_CENTRAL_GOVERNMENT, + self::INSTITUTIONAL_SECTOR_STATE_GOVERNMENT, + self::INSTITUTIONAL_SECTOR_LOCAL_GOVERNMENT, + self::INSTITUTIONAL_SECTOR_SOCIAL_SECURITY_FUNDS, + self::INSTITUTIONAL_SECTOR_NON_PROFIT_INSTITUTIONS_SERVING_HOUSEHOLDS, + ]; + } + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getStatusOfLegalProceedingAllowableValues() + { + return [ + self::STATUS_OF_LEGAL_PROCEEDING_NO_LEGAL_ACTIONS_TAKEN, + self::STATUS_OF_LEGAL_PROCEEDING_UNDER_JUDICIAL_ADMINISTRATION, + self::STATUS_OF_LEGAL_PROCEEDING_BANKRUPTCY_INSOLVENCY, + self::STATUS_OF_LEGAL_PROCEEDING_OTHER_LEGAL_MEASURES, + ]; + } /** * Gets allowable values of the enum * @@ -368,16 +490,26 @@ public function __construct(?array $data = null) { $this->setIfExists('countryOfGoverningLaw', $data ?? [], null); $this->setIfExists('dateOfIncorporation', $data ?? [], null); + $this->setIfExists('dateOfInitiationOfLegalProceeding', $data ?? [], null); $this->setIfExists('description', $data ?? [], null); $this->setIfExists('doingBusinessAs', $data ?? [], null); + $this->setIfExists('doingBusinessAsAbsent', $data ?? [], null); + $this->setIfExists('economicSector', $data ?? [], null); $this->setIfExists('email', $data ?? [], null); $this->setIfExists('financialReports', $data ?? [], null); + $this->setIfExists('globalLegalEntityIdentifier', $data ?? [], null); + $this->setIfExists('headOfficeIndicator', $data ?? [], null); + $this->setIfExists('institutionalSector', $data ?? [], null); + $this->setIfExists('legalForm', $data ?? [], null); $this->setIfExists('legalName', $data ?? [], null); $this->setIfExists('phone', $data ?? [], null); $this->setIfExists('principalPlaceOfBusiness', $data ?? [], null); $this->setIfExists('registeredAddress', $data ?? [], null); $this->setIfExists('registrationNumber', $data ?? [], null); + $this->setIfExists('registrationNumberAbsent', $data ?? [], null); + $this->setIfExists('statusOfLegalProceeding', $data ?? [], null); $this->setIfExists('stockData', $data ?? [], null); + $this->setIfExists('support', $data ?? [], null); $this->setIfExists('taxInformation', $data ?? [], null); $this->setIfExists('taxReportingClassification', $data ?? [], null); $this->setIfExists('type', $data ?? [], null); @@ -413,12 +545,30 @@ public function listInvalidProperties() { $invalidProperties = []; + $allowedValues = $this->getInstitutionalSectorAllowableValues(); + if (!is_null($this->container['institutionalSector']) && !in_array($this->container['institutionalSector'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value '%s' for 'institutionalSector', must be one of '%s'", + $this->container['institutionalSector'], + implode("', '", $allowedValues) + ); + } + if ($this->container['legalName'] === null) { $invalidProperties[] = "'legalName' can't be null"; } if ($this->container['registeredAddress'] === null) { $invalidProperties[] = "'registeredAddress' can't be null"; } + $allowedValues = $this->getStatusOfLegalProceedingAllowableValues(); + if (!is_null($this->container['statusOfLegalProceeding']) && !in_array($this->container['statusOfLegalProceeding'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value '%s' for 'statusOfLegalProceeding', must be one of '%s'", + $this->container['statusOfLegalProceeding'], + implode("', '", $allowedValues) + ); + } + $allowedValues = $this->getTypeAllowableValues(); if (!is_null($this->container['type']) && !in_array($this->container['type'], $allowedValues, true)) { $invalidProperties[] = sprintf( @@ -500,6 +650,30 @@ public function setDateOfIncorporation($dateOfIncorporation) return $this; } + /** + * Gets dateOfInitiationOfLegalProceeding + * + * @return string|null + */ + public function getDateOfInitiationOfLegalProceeding() + { + return $this->container['dateOfInitiationOfLegalProceeding']; + } + + /** + * Sets dateOfInitiationOfLegalProceeding + * + * @param string|null $dateOfInitiationOfLegalProceeding Required if the value of `statusOfLegalProceeding` is one of the following: **underJudicialAdministration**, **bankruptcyInsolvency**, **otherLegalMeasures** The date at which a legal proceeding was initiated, in **YYYY-MM-DD** format. Example: **2000-02-12** + * + * @return self + */ + public function setDateOfInitiationOfLegalProceeding($dateOfInitiationOfLegalProceeding) + { + $this->container['dateOfInitiationOfLegalProceeding'] = $dateOfInitiationOfLegalProceeding; + + return $this; + } + /** * Gets description * @@ -548,6 +722,64 @@ public function setDoingBusinessAs($doingBusinessAs) return $this; } + /** + * Gets doingBusinessAsAbsent + * + * @return bool|null + */ + public function getDoingBusinessAsAbsent() + { + return $this->container['doingBusinessAsAbsent']; + } + + /** + * Sets doingBusinessAsAbsent + * + * @param bool|null $doingBusinessAsAbsent Set this to **true** if the organization or legal arrangement does not have a `Doing business as` name. + * + * @return self + */ + public function setDoingBusinessAsAbsent($doingBusinessAsAbsent) + { + if (is_null($doingBusinessAsAbsent)) { + array_push($this->openAPINullablesSetToNull, 'doingBusinessAsAbsent'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('doingBusinessAsAbsent', $nullablesSetToNull); + if ($index !== false) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } + } + $this->container['doingBusinessAsAbsent'] = $doingBusinessAsAbsent; + + return $this; + } + + /** + * Gets economicSector + * + * @return string|null + */ + public function getEconomicSector() + { + return $this->container['economicSector']; + } + + /** + * Sets economicSector + * + * @param string|null $economicSector The sector of the economy the legal entity operates within, represented by a 2-4 digit code that may include a \".\". Example: 45.11 You can locate economic sector codes for your area by referencing codes defined by the NACE (Nomenclature of Economic Activities) used in the European Union. + * + * @return self + */ + public function setEconomicSector($economicSector) + { + $this->container['economicSector'] = $economicSector; + + return $this; + } + /** * Gets email * @@ -596,6 +828,112 @@ public function setFinancialReports($financialReports) return $this; } + /** + * Gets globalLegalEntityIdentifier + * + * @return string|null + */ + public function getGlobalLegalEntityIdentifier() + { + return $this->container['globalLegalEntityIdentifier']; + } + + /** + * Sets globalLegalEntityIdentifier + * + * @param string|null $globalLegalEntityIdentifier The global legal entity identifier for the organization. + * + * @return self + */ + public function setGlobalLegalEntityIdentifier($globalLegalEntityIdentifier) + { + $this->container['globalLegalEntityIdentifier'] = $globalLegalEntityIdentifier; + + return $this; + } + + /** + * Gets headOfficeIndicator + * + * @return bool|null + */ + public function getHeadOfficeIndicator() + { + return $this->container['headOfficeIndicator']; + } + + /** + * Sets headOfficeIndicator + * + * @param bool|null $headOfficeIndicator Indicates that the registered business address is also the company's headquarters. + * + * @return self + */ + public function setHeadOfficeIndicator($headOfficeIndicator) + { + $this->container['headOfficeIndicator'] = $headOfficeIndicator; + + return $this; + } + + /** + * Gets institutionalSector + * + * @return string|null + */ + public function getInstitutionalSector() + { + return $this->container['institutionalSector']; + } + + /** + * Sets institutionalSector + * + * @param string|null $institutionalSector The institutional sector the organization operates within. + * + * @return self + */ + public function setInstitutionalSector($institutionalSector) + { + $allowedValues = $this->getInstitutionalSectorAllowableValues(); + if (!in_array($institutionalSector, $allowedValues, true)) { + error_log( + sprintf( + "institutionalSector: unexpected enum value '%s' - Supported values are [%s]", + $institutionalSector, + implode(', ', $allowedValues) + ) + ); + } + $this->container['institutionalSector'] = $institutionalSector; + + return $this; + } + + /** + * Gets legalForm + * + * @return string|null + */ + public function getLegalForm() + { + return $this->container['legalForm']; + } + + /** + * Sets legalForm + * + * @param string|null $legalForm The type of business entity as defined in the national legal system. Use a legal form listed within the accepted legal forms compiled by the Central Bank of Europe. + * + * @return self + */ + public function setLegalForm($legalForm) + { + $this->container['legalForm'] = $legalForm; + + return $this; + } + /** * Gets legalName * @@ -716,6 +1054,74 @@ public function setRegistrationNumber($registrationNumber) return $this; } + /** + * Gets registrationNumberAbsent + * + * @return bool|null + */ + public function getRegistrationNumberAbsent() + { + return $this->container['registrationNumberAbsent']; + } + + /** + * Sets registrationNumberAbsent + * + * @param bool|null $registrationNumberAbsent Set this to **true** if the organization does not have a registration number available. Only applicable for organizations in New Zealand, and incorporated partnerships and government organizations in Australia. + * + * @return self + */ + public function setRegistrationNumberAbsent($registrationNumberAbsent) + { + if (is_null($registrationNumberAbsent)) { + array_push($this->openAPINullablesSetToNull, 'registrationNumberAbsent'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('registrationNumberAbsent', $nullablesSetToNull); + if ($index !== false) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } + } + $this->container['registrationNumberAbsent'] = $registrationNumberAbsent; + + return $this; + } + + /** + * Gets statusOfLegalProceeding + * + * @return string|null + */ + public function getStatusOfLegalProceeding() + { + return $this->container['statusOfLegalProceeding']; + } + + /** + * Sets statusOfLegalProceeding + * + * @param string|null $statusOfLegalProceeding The status of any current or past legal action taken against the legal entity. Possible values: **noLegalActionsTaken**, **underJudicialAdministration**, **bankruptcyInsolvency**, **otherLegalMeasures** If the value of this field is **noLegalActionsTaken**, then `dateOfInitiationOfLegalProceeding` is not required. Otherwise, it is required. + * + * @return self + */ + public function setStatusOfLegalProceeding($statusOfLegalProceeding) + { + $allowedValues = $this->getStatusOfLegalProceedingAllowableValues(); + if (!in_array($statusOfLegalProceeding, $allowedValues, true)) { + error_log( + sprintf( + "statusOfLegalProceeding: unexpected enum value '%s' - Supported values are [%s]", + $statusOfLegalProceeding, + implode(', ', $allowedValues) + ) + ); + } + $this->container['statusOfLegalProceeding'] = $statusOfLegalProceeding; + + return $this; + } + /** * Gets stockData * @@ -740,6 +1146,30 @@ public function setStockData($stockData) return $this; } + /** + * Gets support + * + * @return \Adyen\Model\LegalEntityManagement\Support|null + */ + public function getSupport() + { + return $this->container['support']; + } + + /** + * Sets support + * + * @param \Adyen\Model\LegalEntityManagement\Support|null $support support + * + * @return self + */ + public function setSupport($support) + { + $this->container['support'] = $support; + + return $this; + } + /** * Gets taxInformation * diff --git a/src/Adyen/Model/LegalEntityManagement/OwnerEntity.php b/src/Adyen/Model/LegalEntityManagement/OwnerEntity.php index 529c5746b..48bb80671 100644 --- a/src/Adyen/Model/LegalEntityManagement/OwnerEntity.php +++ b/src/Adyen/Model/LegalEntityManagement/OwnerEntity.php @@ -3,7 +3,7 @@ /** * Legal Entity Management API * - * The version of the OpenAPI document: 3 + * The version of the OpenAPI document: 4 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/LegalEntityManagement/PLLocalAccountIdentification.php b/src/Adyen/Model/LegalEntityManagement/PLLocalAccountIdentification.php index 0eed3a83a..95a36cacc 100644 --- a/src/Adyen/Model/LegalEntityManagement/PLLocalAccountIdentification.php +++ b/src/Adyen/Model/LegalEntityManagement/PLLocalAccountIdentification.php @@ -3,7 +3,7 @@ /** * Legal Entity Management API * - * The version of the OpenAPI document: 3 + * The version of the OpenAPI document: 4 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/LegalEntityManagement/PciDocumentInfo.php b/src/Adyen/Model/LegalEntityManagement/PciDocumentInfo.php index 39497ca9b..de53d8821 100644 --- a/src/Adyen/Model/LegalEntityManagement/PciDocumentInfo.php +++ b/src/Adyen/Model/LegalEntityManagement/PciDocumentInfo.php @@ -3,7 +3,7 @@ /** * Legal Entity Management API * - * The version of the OpenAPI document: 3 + * The version of the OpenAPI document: 4 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/LegalEntityManagement/PciSigningRequest.php b/src/Adyen/Model/LegalEntityManagement/PciSigningRequest.php index d1b763970..ee95dc4a2 100644 --- a/src/Adyen/Model/LegalEntityManagement/PciSigningRequest.php +++ b/src/Adyen/Model/LegalEntityManagement/PciSigningRequest.php @@ -3,7 +3,7 @@ /** * Legal Entity Management API * - * The version of the OpenAPI document: 3 + * The version of the OpenAPI document: 4 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/LegalEntityManagement/PciSigningResponse.php b/src/Adyen/Model/LegalEntityManagement/PciSigningResponse.php index 31bc0402b..e202cb944 100644 --- a/src/Adyen/Model/LegalEntityManagement/PciSigningResponse.php +++ b/src/Adyen/Model/LegalEntityManagement/PciSigningResponse.php @@ -3,7 +3,7 @@ /** * Legal Entity Management API * - * The version of the OpenAPI document: 3 + * The version of the OpenAPI document: 4 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/LegalEntityManagement/PhoneNumber.php b/src/Adyen/Model/LegalEntityManagement/PhoneNumber.php index 01c008d4b..d63caf08b 100644 --- a/src/Adyen/Model/LegalEntityManagement/PhoneNumber.php +++ b/src/Adyen/Model/LegalEntityManagement/PhoneNumber.php @@ -3,7 +3,7 @@ /** * Legal Entity Management API * - * The version of the OpenAPI document: 3 + * The version of the OpenAPI document: 4 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/LegalEntityManagement/RemediatingAction.php b/src/Adyen/Model/LegalEntityManagement/RemediatingAction.php index 987368135..a40363509 100644 --- a/src/Adyen/Model/LegalEntityManagement/RemediatingAction.php +++ b/src/Adyen/Model/LegalEntityManagement/RemediatingAction.php @@ -3,7 +3,7 @@ /** * Legal Entity Management API * - * The version of the OpenAPI document: 3 + * The version of the OpenAPI document: 4 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/LegalEntityManagement/SELocalAccountIdentification.php b/src/Adyen/Model/LegalEntityManagement/SELocalAccountIdentification.php index 55195d623..b2980f296 100644 --- a/src/Adyen/Model/LegalEntityManagement/SELocalAccountIdentification.php +++ b/src/Adyen/Model/LegalEntityManagement/SELocalAccountIdentification.php @@ -3,7 +3,7 @@ /** * Legal Entity Management API * - * The version of the OpenAPI document: 3 + * The version of the OpenAPI document: 4 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/LegalEntityManagement/SGLocalAccountIdentification.php b/src/Adyen/Model/LegalEntityManagement/SGLocalAccountIdentification.php index ae5ba16fa..51ee638dc 100644 --- a/src/Adyen/Model/LegalEntityManagement/SGLocalAccountIdentification.php +++ b/src/Adyen/Model/LegalEntityManagement/SGLocalAccountIdentification.php @@ -3,7 +3,7 @@ /** * Legal Entity Management API * - * The version of the OpenAPI document: 3 + * The version of the OpenAPI document: 4 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/LegalEntityManagement/ServiceError.php b/src/Adyen/Model/LegalEntityManagement/ServiceError.php index 4887626bf..bb951c1ac 100644 --- a/src/Adyen/Model/LegalEntityManagement/ServiceError.php +++ b/src/Adyen/Model/LegalEntityManagement/ServiceError.php @@ -3,7 +3,7 @@ /** * Legal Entity Management API * - * The version of the OpenAPI document: 3 + * The version of the OpenAPI document: 4 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/LegalEntityManagement/SetTaxElectronicDeliveryConsentRequest.php b/src/Adyen/Model/LegalEntityManagement/SetTaxElectronicDeliveryConsentRequest.php index 8b9ee6469..5fbc75bc6 100644 --- a/src/Adyen/Model/LegalEntityManagement/SetTaxElectronicDeliveryConsentRequest.php +++ b/src/Adyen/Model/LegalEntityManagement/SetTaxElectronicDeliveryConsentRequest.php @@ -3,7 +3,7 @@ /** * Legal Entity Management API * - * The version of the OpenAPI document: 3 + * The version of the OpenAPI document: 4 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/LegalEntityManagement/SoleProprietorship.php b/src/Adyen/Model/LegalEntityManagement/SoleProprietorship.php index ba3e85b53..af0ba5bb8 100644 --- a/src/Adyen/Model/LegalEntityManagement/SoleProprietorship.php +++ b/src/Adyen/Model/LegalEntityManagement/SoleProprietorship.php @@ -3,7 +3,7 @@ /** * Legal Entity Management API * - * The version of the OpenAPI document: 3 + * The version of the OpenAPI document: 4 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * @@ -44,6 +44,7 @@ class SoleProprietorship implements ModelInterface, ArrayAccess, \JsonSerializab 'countryOfGoverningLaw' => 'string', 'dateOfIncorporation' => 'string', 'doingBusinessAs' => 'string', + 'doingBusinessAsAbsent' => 'bool', 'financialReports' => '\Adyen\Model\LegalEntityManagement\FinancialReport[]', 'name' => 'string', 'principalPlaceOfBusiness' => '\Adyen\Model\LegalEntityManagement\Address', @@ -66,6 +67,7 @@ class SoleProprietorship implements ModelInterface, ArrayAccess, \JsonSerializab 'countryOfGoverningLaw' => null, 'dateOfIncorporation' => null, 'doingBusinessAs' => null, + 'doingBusinessAsAbsent' => null, 'financialReports' => null, 'name' => null, 'principalPlaceOfBusiness' => null, @@ -86,6 +88,7 @@ class SoleProprietorship implements ModelInterface, ArrayAccess, \JsonSerializab 'countryOfGoverningLaw' => false, 'dateOfIncorporation' => false, 'doingBusinessAs' => false, + 'doingBusinessAsAbsent' => true, 'financialReports' => false, 'name' => false, 'principalPlaceOfBusiness' => false, @@ -186,6 +189,7 @@ public function isNullableSetToNull(string $property): bool 'countryOfGoverningLaw' => 'countryOfGoverningLaw', 'dateOfIncorporation' => 'dateOfIncorporation', 'doingBusinessAs' => 'doingBusinessAs', + 'doingBusinessAsAbsent' => 'doingBusinessAsAbsent', 'financialReports' => 'financialReports', 'name' => 'name', 'principalPlaceOfBusiness' => 'principalPlaceOfBusiness', @@ -206,6 +210,7 @@ public function isNullableSetToNull(string $property): bool 'countryOfGoverningLaw' => 'setCountryOfGoverningLaw', 'dateOfIncorporation' => 'setDateOfIncorporation', 'doingBusinessAs' => 'setDoingBusinessAs', + 'doingBusinessAsAbsent' => 'setDoingBusinessAsAbsent', 'financialReports' => 'setFinancialReports', 'name' => 'setName', 'principalPlaceOfBusiness' => 'setPrincipalPlaceOfBusiness', @@ -226,6 +231,7 @@ public function isNullableSetToNull(string $property): bool 'countryOfGoverningLaw' => 'getCountryOfGoverningLaw', 'dateOfIncorporation' => 'getDateOfIncorporation', 'doingBusinessAs' => 'getDoingBusinessAs', + 'doingBusinessAsAbsent' => 'getDoingBusinessAsAbsent', 'financialReports' => 'getFinancialReports', 'name' => 'getName', 'principalPlaceOfBusiness' => 'getPrincipalPlaceOfBusiness', @@ -311,6 +317,7 @@ public function __construct(?array $data = null) $this->setIfExists('countryOfGoverningLaw', $data ?? [], null); $this->setIfExists('dateOfIncorporation', $data ?? [], null); $this->setIfExists('doingBusinessAs', $data ?? [], null); + $this->setIfExists('doingBusinessAsAbsent', $data ?? [], null); $this->setIfExists('financialReports', $data ?? [], null); $this->setIfExists('name', $data ?? [], null); $this->setIfExists('principalPlaceOfBusiness', $data ?? [], null); @@ -454,6 +461,40 @@ public function setDoingBusinessAs($doingBusinessAs) return $this; } + /** + * Gets doingBusinessAsAbsent + * + * @return bool|null + */ + public function getDoingBusinessAsAbsent() + { + return $this->container['doingBusinessAsAbsent']; + } + + /** + * Sets doingBusinessAsAbsent + * + * @param bool|null $doingBusinessAsAbsent Set this to **true** if the legal arrangement does not have a `Doing business as` name. + * + * @return self + */ + public function setDoingBusinessAsAbsent($doingBusinessAsAbsent) + { + if (is_null($doingBusinessAsAbsent)) { + array_push($this->openAPINullablesSetToNull, 'doingBusinessAsAbsent'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('doingBusinessAsAbsent', $nullablesSetToNull); + if ($index !== false) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } + } + $this->container['doingBusinessAsAbsent'] = $doingBusinessAsAbsent; + + return $this; + } + /** * Gets financialReports * diff --git a/src/Adyen/Model/LegalEntityManagement/SourceOfFunds.php b/src/Adyen/Model/LegalEntityManagement/SourceOfFunds.php index 82a3cc09e..3afb1d51e 100644 --- a/src/Adyen/Model/LegalEntityManagement/SourceOfFunds.php +++ b/src/Adyen/Model/LegalEntityManagement/SourceOfFunds.php @@ -3,7 +3,7 @@ /** * Legal Entity Management API * - * The version of the OpenAPI document: 3 + * The version of the OpenAPI document: 4 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * @@ -41,10 +41,19 @@ class SourceOfFunds implements ModelInterface, ArrayAccess, \JsonSerializable * @var string[] */ protected static $openAPITypes = [ - 'acquiringBusinessLineId' => 'string', 'adyenProcessedFunds' => 'bool', + 'amount' => '\Adyen\Model\LegalEntityManagement\Amount', + 'assetMonthsHeld' => 'int', + 'cryptocurrencyExchange' => 'string', + 'dateOfFundsReceived' => '\DateTime', + 'dateOfSourceEvent' => '\DateTime', 'description' => 'string', - 'type' => 'string' + 'financiers' => '\Adyen\Model\LegalEntityManagement\Financier[]', + 'originatorLegalEntityId' => 'string', + 'purpose' => 'string', + 'relationship' => 'string', + 'type' => 'string', + 'website' => 'string' ]; /** @@ -55,10 +64,19 @@ class SourceOfFunds implements ModelInterface, ArrayAccess, \JsonSerializable * @psalm-var array */ protected static $openAPIFormats = [ - 'acquiringBusinessLineId' => null, 'adyenProcessedFunds' => null, + 'amount' => null, + 'assetMonthsHeld' => 'int32', + 'cryptocurrencyExchange' => null, + 'dateOfFundsReceived' => 'date', + 'dateOfSourceEvent' => 'date', 'description' => null, - 'type' => null + 'financiers' => null, + 'originatorLegalEntityId' => null, + 'purpose' => null, + 'relationship' => null, + 'type' => null, + 'website' => null ]; /** @@ -67,10 +85,19 @@ class SourceOfFunds implements ModelInterface, ArrayAccess, \JsonSerializable * @var boolean[] */ protected static $openAPINullables = [ - 'acquiringBusinessLineId' => false, 'adyenProcessedFunds' => false, + 'amount' => false, + 'assetMonthsHeld' => true, + 'cryptocurrencyExchange' => false, + 'dateOfFundsReceived' => false, + 'dateOfSourceEvent' => false, 'description' => false, - 'type' => false + 'financiers' => false, + 'originatorLegalEntityId' => false, + 'purpose' => false, + 'relationship' => false, + 'type' => false, + 'website' => false ]; /** @@ -159,10 +186,19 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $attributeMap = [ - 'acquiringBusinessLineId' => 'acquiringBusinessLineId', 'adyenProcessedFunds' => 'adyenProcessedFunds', + 'amount' => 'amount', + 'assetMonthsHeld' => 'assetMonthsHeld', + 'cryptocurrencyExchange' => 'cryptocurrencyExchange', + 'dateOfFundsReceived' => 'dateOfFundsReceived', + 'dateOfSourceEvent' => 'dateOfSourceEvent', 'description' => 'description', - 'type' => 'type' + 'financiers' => 'financiers', + 'originatorLegalEntityId' => 'originatorLegalEntityId', + 'purpose' => 'purpose', + 'relationship' => 'relationship', + 'type' => 'type', + 'website' => 'website' ]; /** @@ -171,10 +207,19 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $setters = [ - 'acquiringBusinessLineId' => 'setAcquiringBusinessLineId', 'adyenProcessedFunds' => 'setAdyenProcessedFunds', + 'amount' => 'setAmount', + 'assetMonthsHeld' => 'setAssetMonthsHeld', + 'cryptocurrencyExchange' => 'setCryptocurrencyExchange', + 'dateOfFundsReceived' => 'setDateOfFundsReceived', + 'dateOfSourceEvent' => 'setDateOfSourceEvent', 'description' => 'setDescription', - 'type' => 'setType' + 'financiers' => 'setFinanciers', + 'originatorLegalEntityId' => 'setOriginatorLegalEntityId', + 'purpose' => 'setPurpose', + 'relationship' => 'setRelationship', + 'type' => 'setType', + 'website' => 'setWebsite' ]; /** @@ -183,10 +228,19 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $getters = [ - 'acquiringBusinessLineId' => 'getAcquiringBusinessLineId', 'adyenProcessedFunds' => 'getAdyenProcessedFunds', + 'amount' => 'getAmount', + 'assetMonthsHeld' => 'getAssetMonthsHeld', + 'cryptocurrencyExchange' => 'getCryptocurrencyExchange', + 'dateOfFundsReceived' => 'getDateOfFundsReceived', + 'dateOfSourceEvent' => 'getDateOfSourceEvent', 'description' => 'getDescription', - 'type' => 'getType' + 'financiers' => 'getFinanciers', + 'originatorLegalEntityId' => 'getOriginatorLegalEntityId', + 'purpose' => 'getPurpose', + 'relationship' => 'getRelationship', + 'type' => 'getType', + 'website' => 'getWebsite' ]; /** @@ -231,6 +285,20 @@ public function getModelName() } public const TYPE_BUSINESS = 'business'; + public const TYPE_EMPLOYMENT = 'employment'; + public const TYPE_DONATIONS = 'donations'; + public const TYPE_INHERITANCE = 'inheritance'; + public const TYPE_FINANCIAL_AID = 'financialAid'; + public const TYPE_RENTAL_INCOME = 'rentalIncome'; + public const TYPE_DIVIDEND_INCOME = 'dividendIncome'; + public const TYPE_ROYALTY_INCOME = 'royaltyIncome'; + public const TYPE_THIRD_PARTY_FUNDING = 'thirdPartyFunding'; + public const TYPE_PENSION_INCOME = 'pensionIncome'; + public const TYPE_INSURANCE_SETTLEMENT = 'insuranceSettlement'; + public const TYPE_CRYPTOCURRENCY_INCOME = 'cryptocurrencyIncome'; + public const TYPE_ASSET_SALE = 'assetSale'; + public const TYPE_LOANS = 'loans'; + public const TYPE_GAMBLING_WINNINGS = 'gamblingWinnings'; /** * Gets allowable values of the enum @@ -241,6 +309,20 @@ public function getTypeAllowableValues() { return [ self::TYPE_BUSINESS, + self::TYPE_EMPLOYMENT, + self::TYPE_DONATIONS, + self::TYPE_INHERITANCE, + self::TYPE_FINANCIAL_AID, + self::TYPE_RENTAL_INCOME, + self::TYPE_DIVIDEND_INCOME, + self::TYPE_ROYALTY_INCOME, + self::TYPE_THIRD_PARTY_FUNDING, + self::TYPE_PENSION_INCOME, + self::TYPE_INSURANCE_SETTLEMENT, + self::TYPE_CRYPTOCURRENCY_INCOME, + self::TYPE_ASSET_SALE, + self::TYPE_LOANS, + self::TYPE_GAMBLING_WINNINGS, ]; } /** @@ -258,10 +340,19 @@ public function getTypeAllowableValues() */ public function __construct(?array $data = null) { - $this->setIfExists('acquiringBusinessLineId', $data ?? [], null); $this->setIfExists('adyenProcessedFunds', $data ?? [], null); + $this->setIfExists('amount', $data ?? [], null); + $this->setIfExists('assetMonthsHeld', $data ?? [], null); + $this->setIfExists('cryptocurrencyExchange', $data ?? [], null); + $this->setIfExists('dateOfFundsReceived', $data ?? [], null); + $this->setIfExists('dateOfSourceEvent', $data ?? [], null); $this->setIfExists('description', $data ?? [], null); + $this->setIfExists('financiers', $data ?? [], null); + $this->setIfExists('originatorLegalEntityId', $data ?? [], null); + $this->setIfExists('purpose', $data ?? [], null); + $this->setIfExists('relationship', $data ?? [], null); $this->setIfExists('type', $data ?? [], null); + $this->setIfExists('website', $data ?? [], null); } /** @@ -291,6 +382,9 @@ public function listInvalidProperties() { $invalidProperties = []; + if ($this->container['adyenProcessedFunds'] === null) { + $invalidProperties[] = "'adyenProcessedFunds' can't be null"; + } $allowedValues = $this->getTypeAllowableValues(); if (!is_null($this->container['type']) && !in_array($this->container['type'], $allowedValues, true)) { $invalidProperties[] = sprintf( @@ -316,51 +410,145 @@ public function valid() /** - * Gets acquiringBusinessLineId + * Gets adyenProcessedFunds + * + * @return bool + */ + public function getAdyenProcessedFunds() + { + return $this->container['adyenProcessedFunds']; + } + + /** + * Sets adyenProcessedFunds + * + * @param bool $adyenProcessedFunds Indicates whether the funds are coming from transactions processed by Adyen. If **false**, the `type` is required. + * + * @return self + */ + public function setAdyenProcessedFunds($adyenProcessedFunds) + { + $this->container['adyenProcessedFunds'] = $adyenProcessedFunds; + + return $this; + } + + /** + * Gets amount + * + * @return \Adyen\Model\LegalEntityManagement\Amount|null + */ + public function getAmount() + { + return $this->container['amount']; + } + + /** + * Sets amount + * + * @param \Adyen\Model\LegalEntityManagement\Amount|null $amount amount + * + * @return self + */ + public function setAmount($amount) + { + $this->container['amount'] = $amount; + + return $this; + } + + /** + * Gets assetMonthsHeld + * + * @return int|null + */ + public function getAssetMonthsHeld() + { + return $this->container['assetMonthsHeld']; + } + + /** + * Sets assetMonthsHeld + * + * @param int|null $assetMonthsHeld The number of months that the asset has been in possession of the user. For example, if the source of funds is of type **cryptocurrencyIncome** then `assetMonthsHeld` is the number of months the user has owned the cryptocurrency. + * + * @return self + */ + public function setAssetMonthsHeld($assetMonthsHeld) + { + $this->container['assetMonthsHeld'] = $assetMonthsHeld; + + return $this; + } + + /** + * Gets cryptocurrencyExchange * * @return string|null - * @deprecated since Legal Entity Management API v3. "This field will be removed in v4." */ - public function getAcquiringBusinessLineId() + public function getCryptocurrencyExchange() { - return $this->container['acquiringBusinessLineId']; + return $this->container['cryptocurrencyExchange']; } /** - * Sets acquiringBusinessLineId + * Sets cryptocurrencyExchange * - * @param string|null $acquiringBusinessLineId The unique identifier of the business line that is the source of funds.This must be a business line for a **receivePayments** or **receiveFromPlatformPayments** capability. + * @param string|null $cryptocurrencyExchange Required if `type` is **cryptocurrencyIncome**. The cryptocurrency exchange where the funds were acquired. * * @return self - * @deprecated since Legal Entity Management API v3. "This field will be removed in v4." */ - public function setAcquiringBusinessLineId($acquiringBusinessLineId) + public function setCryptocurrencyExchange($cryptocurrencyExchange) { - $this->container['acquiringBusinessLineId'] = $acquiringBusinessLineId; + $this->container['cryptocurrencyExchange'] = $cryptocurrencyExchange; return $this; } /** - * Gets adyenProcessedFunds + * Gets dateOfFundsReceived * - * @return bool|null + * @return \DateTime|null */ - public function getAdyenProcessedFunds() + public function getDateOfFundsReceived() { - return $this->container['adyenProcessedFunds']; + return $this->container['dateOfFundsReceived']; } /** - * Sets adyenProcessedFunds + * Sets dateOfFundsReceived * - * @param bool|null $adyenProcessedFunds Indicates whether the funds are coming from transactions processed by Adyen. If **false**, a `description` is required. + * @param \DateTime|null $dateOfFundsReceived Required if `type` is **donations** or **inheritance**. The date the funds were received, in YYYY-MM-DD format. * * @return self */ - public function setAdyenProcessedFunds($adyenProcessedFunds) + public function setDateOfFundsReceived($dateOfFundsReceived) { - $this->container['adyenProcessedFunds'] = $adyenProcessedFunds; + $this->container['dateOfFundsReceived'] = $dateOfFundsReceived; + + return $this; + } + + /** + * Gets dateOfSourceEvent + * + * @return \DateTime|null + */ + public function getDateOfSourceEvent() + { + return $this->container['dateOfSourceEvent']; + } + + /** + * Sets dateOfSourceEvent + * + * @param \DateTime|null $dateOfSourceEvent Required if `type` is **assetSale** or **gamblingWinnings**. The date the funds were received, in YYYY-MM-DD format. For example, if the source of funds is of type **assetSale**, the dateOfSourceEvent is the date of the sale. If the source of funds is of type **gamblingWinnings**, the dateOfSourceEvent is the date of winnings. + * + * @return self + */ + public function setDateOfSourceEvent($dateOfSourceEvent) + { + $this->container['dateOfSourceEvent'] = $dateOfSourceEvent; return $this; } @@ -378,7 +566,7 @@ public function getDescription() /** * Sets description * - * @param string|null $description Text describing the source of funds. For example, for `type` **business**, provide a description of where the business transactions come from, such as payments through bank transfer. Required when `adyenProcessedFunds` is **false**. + * @param string|null $description Required if `type` is **business** or **assetSale**. A description for the source of funds. For example, for `type` **business**, provide a description of where the business transactions come from, such as payments through bank transfer. For `type` **assetSale**, provide a description of the asset. For example, the address of a residential property if it is a property sale. * * @return self */ @@ -389,6 +577,102 @@ public function setDescription($description) return $this; } + /** + * Gets financiers + * + * @return \Adyen\Model\LegalEntityManagement\Financier[]|null + */ + public function getFinanciers() + { + return $this->container['financiers']; + } + + /** + * Sets financiers + * + * @param \Adyen\Model\LegalEntityManagement\Financier[]|null $financiers Required if `type` is **thirdPartyFunding**. Information about the financiers. + * + * @return self + */ + public function setFinanciers($financiers) + { + $this->container['financiers'] = $financiers; + + return $this; + } + + /** + * Gets originatorLegalEntityId + * + * @return string|null + */ + public function getOriginatorLegalEntityId() + { + return $this->container['originatorLegalEntityId']; + } + + /** + * Sets originatorLegalEntityId + * + * @param string|null $originatorLegalEntityId Required if `type` is **donations** or **inheritance**. The legal entity ID representing the originator of the source of funds. For example, if the source of funds is **inheritance**, then `originatorOfFundsReference` should be the legal entity reference of the benefactor. + * + * @return self + */ + public function setOriginatorLegalEntityId($originatorLegalEntityId) + { + $this->container['originatorLegalEntityId'] = $originatorLegalEntityId; + + return $this; + } + + /** + * Gets purpose + * + * @return string|null + */ + public function getPurpose() + { + return $this->container['purpose']; + } + + /** + * Sets purpose + * + * @param string|null $purpose Required if `type` is **donations**. The reason for receiving the funds. + * + * @return self + */ + public function setPurpose($purpose) + { + $this->container['purpose'] = $purpose; + + return $this; + } + + /** + * Gets relationship + * + * @return string|null + */ + public function getRelationship() + { + return $this->container['relationship']; + } + + /** + * Sets relationship + * + * @param string|null $relationship Required if `type` is **donations** or **inheritance**. The relationship of the originator of the funds to the recipient. + * + * @return self + */ + public function setRelationship($relationship) + { + $this->container['relationship'] = $relationship; + + return $this; + } + /** * Gets type * @@ -402,7 +686,7 @@ public function getType() /** * Sets type * - * @param string|null $type The type of the source of funds. Possible value: **business**. + * @param string|null $type The type of the source of funds. Possible values: * **business** * **employment** * **donations** * **inheritance** * **financialAid** * **rentalIncome** * **dividendIncome** * **royaltyIncome** * **thirdPartyFunding** * **pensionIncome** * **insuranceSettlement** * **cryptocurrencyIncome** * **assetSale** * **loans** * **gamblingWinnings** * * @return self */ @@ -422,6 +706,30 @@ public function setType($type) return $this; } + + /** + * Gets website + * + * @return string|null + */ + public function getWebsite() + { + return $this->container['website']; + } + + /** + * Sets website + * + * @param string|null $website Required if `type` is **gamblingWinnings**. The location of the gambling site for the winnings. For example, if the source of funds is online gambling, provide the website of the gambling company. + * + * @return self + */ + public function setWebsite($website) + { + $this->container['website'] = $website; + + return $this; + } /** * Returns true if offset exists. False otherwise. * diff --git a/src/Adyen/Model/LegalEntityManagement/StockData.php b/src/Adyen/Model/LegalEntityManagement/StockData.php index 77c49ed88..c46f71c22 100644 --- a/src/Adyen/Model/LegalEntityManagement/StockData.php +++ b/src/Adyen/Model/LegalEntityManagement/StockData.php @@ -3,7 +3,7 @@ /** * Legal Entity Management API * - * The version of the OpenAPI document: 3 + * The version of the OpenAPI document: 4 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/LegalEntityManagement/Support.php b/src/Adyen/Model/LegalEntityManagement/Support.php new file mode 100644 index 000000000..bdc149d20 --- /dev/null +++ b/src/Adyen/Model/LegalEntityManagement/Support.php @@ -0,0 +1,435 @@ + + */ +class Support implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'Support'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'email' => 'string', + 'phone' => '\Adyen\Model\LegalEntityManagement\PhoneNumber' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'email' => null, + 'phone' => null + ]; + + /** + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ + protected static $openAPINullables = [ + 'email' => false, + 'phone' => 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 = [ + 'email' => 'email', + 'phone' => 'phone' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'email' => 'setEmail', + 'phone' => 'setPhone' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'email' => 'getEmail', + 'phone' => 'getPhone' + ]; + + /** + * 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('email', $data ?? [], null); + $this->setIfExists('phone', $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 email + * + * @return string|null + */ + public function getEmail() + { + return $this->container['email']; + } + + /** + * Sets email + * + * @param string|null $email The support email address of the legal entity. + * + * @return self + */ + public function setEmail($email) + { + $this->container['email'] = $email; + + return $this; + } + + /** + * Gets phone + * + * @return \Adyen\Model\LegalEntityManagement\PhoneNumber|null + */ + public function getPhone() + { + return $this->container['phone']; + } + + /** + * Sets phone + * + * @param \Adyen\Model\LegalEntityManagement\PhoneNumber|null $phone phone + * + * @return self + */ + public function setPhone($phone) + { + $this->container['phone'] = $phone; + + 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/LegalEntityManagement/SupportingEntityCapability.php b/src/Adyen/Model/LegalEntityManagement/SupportingEntityCapability.php index 117bb0a7b..8d52851d8 100644 --- a/src/Adyen/Model/LegalEntityManagement/SupportingEntityCapability.php +++ b/src/Adyen/Model/LegalEntityManagement/SupportingEntityCapability.php @@ -3,7 +3,7 @@ /** * Legal Entity Management API * - * The version of the OpenAPI document: 3 + * The version of the OpenAPI document: 4 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/LegalEntityManagement/TaxInformation.php b/src/Adyen/Model/LegalEntityManagement/TaxInformation.php index 72e537622..16d8211a2 100644 --- a/src/Adyen/Model/LegalEntityManagement/TaxInformation.php +++ b/src/Adyen/Model/LegalEntityManagement/TaxInformation.php @@ -3,7 +3,7 @@ /** * Legal Entity Management API * - * The version of the OpenAPI document: 3 + * The version of the OpenAPI document: 4 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * @@ -43,6 +43,7 @@ class TaxInformation implements ModelInterface, ArrayAccess, \JsonSerializable protected static $openAPITypes = [ 'country' => 'string', 'number' => 'string', + 'numberAbsent' => 'bool', 'type' => 'string' ]; @@ -56,6 +57,7 @@ class TaxInformation implements ModelInterface, ArrayAccess, \JsonSerializable protected static $openAPIFormats = [ 'country' => null, 'number' => null, + 'numberAbsent' => null, 'type' => null ]; @@ -67,6 +69,7 @@ class TaxInformation implements ModelInterface, ArrayAccess, \JsonSerializable protected static $openAPINullables = [ 'country' => false, 'number' => false, + 'numberAbsent' => false, 'type' => false ]; @@ -158,6 +161,7 @@ public function isNullableSetToNull(string $property): bool protected static $attributeMap = [ 'country' => 'country', 'number' => 'number', + 'numberAbsent' => 'numberAbsent', 'type' => 'type' ]; @@ -169,6 +173,7 @@ public function isNullableSetToNull(string $property): bool protected static $setters = [ 'country' => 'setCountry', 'number' => 'setNumber', + 'numberAbsent' => 'setNumberAbsent', 'type' => 'setType' ]; @@ -180,6 +185,7 @@ public function isNullableSetToNull(string $property): bool protected static $getters = [ 'country' => 'getCountry', 'number' => 'getNumber', + 'numberAbsent' => 'getNumberAbsent', 'type' => 'getType' ]; @@ -242,6 +248,7 @@ public function __construct(?array $data = null) { $this->setIfExists('country', $data ?? [], null); $this->setIfExists('number', $data ?? [], null); + $this->setIfExists('numberAbsent', $data ?? [], null); $this->setIfExists('type', $data ?? [], null); } @@ -335,6 +342,30 @@ public function setNumber($number) return $this; } + /** + * Gets numberAbsent + * + * @return bool|null + */ + public function getNumberAbsent() + { + return $this->container['numberAbsent']; + } + + /** + * Sets numberAbsent + * + * @param bool|null $numberAbsent Set this to **true** if the legal entity or legal arrangement does not have a tax ID number (TIN). Only applicable in Australia. + * + * @return self + */ + public function setNumberAbsent($numberAbsent) + { + $this->container['numberAbsent'] = $numberAbsent; + + return $this; + } + /** * Gets type * diff --git a/src/Adyen/Model/LegalEntityManagement/TaxReportingClassification.php b/src/Adyen/Model/LegalEntityManagement/TaxReportingClassification.php index 539a6e3ba..12f88b764 100644 --- a/src/Adyen/Model/LegalEntityManagement/TaxReportingClassification.php +++ b/src/Adyen/Model/LegalEntityManagement/TaxReportingClassification.php @@ -3,7 +3,7 @@ /** * Legal Entity Management API * - * The version of the OpenAPI document: 3 + * The version of the OpenAPI document: 4 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/LegalEntityManagement/TermsOfServiceAcceptanceInfo.php b/src/Adyen/Model/LegalEntityManagement/TermsOfServiceAcceptanceInfo.php index c1b042ebe..9bfea01d1 100644 --- a/src/Adyen/Model/LegalEntityManagement/TermsOfServiceAcceptanceInfo.php +++ b/src/Adyen/Model/LegalEntityManagement/TermsOfServiceAcceptanceInfo.php @@ -3,7 +3,7 @@ /** * Legal Entity Management API * - * The version of the OpenAPI document: 3 + * The version of the OpenAPI document: 4 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/LegalEntityManagement/TransferInstrument.php b/src/Adyen/Model/LegalEntityManagement/TransferInstrument.php index 1edb636f1..be561827a 100644 --- a/src/Adyen/Model/LegalEntityManagement/TransferInstrument.php +++ b/src/Adyen/Model/LegalEntityManagement/TransferInstrument.php @@ -3,7 +3,7 @@ /** * Legal Entity Management API * - * The version of the OpenAPI document: 3 + * The version of the OpenAPI document: 4 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/LegalEntityManagement/TransferInstrumentInfo.php b/src/Adyen/Model/LegalEntityManagement/TransferInstrumentInfo.php index 827f5b4c1..e8359f812 100644 --- a/src/Adyen/Model/LegalEntityManagement/TransferInstrumentInfo.php +++ b/src/Adyen/Model/LegalEntityManagement/TransferInstrumentInfo.php @@ -3,7 +3,7 @@ /** * Legal Entity Management API * - * The version of the OpenAPI document: 3 + * The version of the OpenAPI document: 4 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/LegalEntityManagement/TransferInstrumentReference.php b/src/Adyen/Model/LegalEntityManagement/TransferInstrumentReference.php index 30be94656..34e04782f 100644 --- a/src/Adyen/Model/LegalEntityManagement/TransferInstrumentReference.php +++ b/src/Adyen/Model/LegalEntityManagement/TransferInstrumentReference.php @@ -3,7 +3,7 @@ /** * Legal Entity Management API * - * The version of the OpenAPI document: 3 + * The version of the OpenAPI document: 4 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/LegalEntityManagement/Trust.php b/src/Adyen/Model/LegalEntityManagement/Trust.php index 8d0a25900..fa3083e79 100644 --- a/src/Adyen/Model/LegalEntityManagement/Trust.php +++ b/src/Adyen/Model/LegalEntityManagement/Trust.php @@ -3,7 +3,7 @@ /** * Legal Entity Management API * - * The version of the OpenAPI document: 3 + * The version of the OpenAPI document: 4 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * @@ -45,6 +45,7 @@ class Trust implements ModelInterface, ArrayAccess, \JsonSerializable 'dateOfIncorporation' => 'string', 'description' => 'string', 'doingBusinessAs' => 'string', + 'doingBusinessAsAbsent' => 'bool', 'name' => 'string', 'principalPlaceOfBusiness' => '\Adyen\Model\LegalEntityManagement\Address', 'registeredAddress' => '\Adyen\Model\LegalEntityManagement\Address', @@ -68,6 +69,7 @@ class Trust implements ModelInterface, ArrayAccess, \JsonSerializable 'dateOfIncorporation' => null, 'description' => null, 'doingBusinessAs' => null, + 'doingBusinessAsAbsent' => null, 'name' => null, 'principalPlaceOfBusiness' => null, 'registeredAddress' => null, @@ -89,6 +91,7 @@ class Trust implements ModelInterface, ArrayAccess, \JsonSerializable 'dateOfIncorporation' => false, 'description' => false, 'doingBusinessAs' => false, + 'doingBusinessAsAbsent' => true, 'name' => false, 'principalPlaceOfBusiness' => false, 'registeredAddress' => false, @@ -190,6 +193,7 @@ public function isNullableSetToNull(string $property): bool 'dateOfIncorporation' => 'dateOfIncorporation', 'description' => 'description', 'doingBusinessAs' => 'doingBusinessAs', + 'doingBusinessAsAbsent' => 'doingBusinessAsAbsent', 'name' => 'name', 'principalPlaceOfBusiness' => 'principalPlaceOfBusiness', 'registeredAddress' => 'registeredAddress', @@ -211,6 +215,7 @@ public function isNullableSetToNull(string $property): bool 'dateOfIncorporation' => 'setDateOfIncorporation', 'description' => 'setDescription', 'doingBusinessAs' => 'setDoingBusinessAs', + 'doingBusinessAsAbsent' => 'setDoingBusinessAsAbsent', 'name' => 'setName', 'principalPlaceOfBusiness' => 'setPrincipalPlaceOfBusiness', 'registeredAddress' => 'setRegisteredAddress', @@ -232,6 +237,7 @@ public function isNullableSetToNull(string $property): bool 'dateOfIncorporation' => 'getDateOfIncorporation', 'description' => 'getDescription', 'doingBusinessAs' => 'getDoingBusinessAs', + 'doingBusinessAsAbsent' => 'getDoingBusinessAsAbsent', 'name' => 'getName', 'principalPlaceOfBusiness' => 'getPrincipalPlaceOfBusiness', 'registeredAddress' => 'getRegisteredAddress', @@ -366,6 +372,7 @@ public function __construct(?array $data = null) $this->setIfExists('dateOfIncorporation', $data ?? [], null); $this->setIfExists('description', $data ?? [], null); $this->setIfExists('doingBusinessAs', $data ?? [], null); + $this->setIfExists('doingBusinessAsAbsent', $data ?? [], null); $this->setIfExists('name', $data ?? [], null); $this->setIfExists('principalPlaceOfBusiness', $data ?? [], null); $this->setIfExists('registeredAddress', $data ?? [], null); @@ -545,6 +552,40 @@ public function setDoingBusinessAs($doingBusinessAs) return $this; } + /** + * Gets doingBusinessAsAbsent + * + * @return bool|null + */ + public function getDoingBusinessAsAbsent() + { + return $this->container['doingBusinessAsAbsent']; + } + + /** + * Sets doingBusinessAsAbsent + * + * @param bool|null $doingBusinessAsAbsent Set this to **true** if the legal arrangement does not have a `Doing business as` name. + * + * @return self + */ + public function setDoingBusinessAsAbsent($doingBusinessAsAbsent) + { + if (is_null($doingBusinessAsAbsent)) { + array_push($this->openAPINullablesSetToNull, 'doingBusinessAsAbsent'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('doingBusinessAsAbsent', $nullablesSetToNull); + if ($index !== false) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } + } + $this->container['doingBusinessAsAbsent'] = $doingBusinessAsAbsent; + + return $this; + } + /** * Gets name * diff --git a/src/Adyen/Model/LegalEntityManagement/UKLocalAccountIdentification.php b/src/Adyen/Model/LegalEntityManagement/UKLocalAccountIdentification.php index f8f7ed506..02295c083 100644 --- a/src/Adyen/Model/LegalEntityManagement/UKLocalAccountIdentification.php +++ b/src/Adyen/Model/LegalEntityManagement/UKLocalAccountIdentification.php @@ -3,7 +3,7 @@ /** * Legal Entity Management API * - * The version of the OpenAPI document: 3 + * The version of the OpenAPI document: 4 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/LegalEntityManagement/USLocalAccountIdentification.php b/src/Adyen/Model/LegalEntityManagement/USLocalAccountIdentification.php index 9ca85dac2..763974c21 100644 --- a/src/Adyen/Model/LegalEntityManagement/USLocalAccountIdentification.php +++ b/src/Adyen/Model/LegalEntityManagement/USLocalAccountIdentification.php @@ -3,7 +3,7 @@ /** * Legal Entity Management API * - * The version of the OpenAPI document: 3 + * The version of the OpenAPI document: 4 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/LegalEntityManagement/UndefinedBeneficiary.php b/src/Adyen/Model/LegalEntityManagement/UndefinedBeneficiary.php index 52671db67..c8c61cc43 100644 --- a/src/Adyen/Model/LegalEntityManagement/UndefinedBeneficiary.php +++ b/src/Adyen/Model/LegalEntityManagement/UndefinedBeneficiary.php @@ -3,7 +3,7 @@ /** * Legal Entity Management API * - * The version of the OpenAPI document: 3 + * The version of the OpenAPI document: 4 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/LegalEntityManagement/UnincorporatedPartnership.php b/src/Adyen/Model/LegalEntityManagement/UnincorporatedPartnership.php index 85116a509..ab86eb4ee 100644 --- a/src/Adyen/Model/LegalEntityManagement/UnincorporatedPartnership.php +++ b/src/Adyen/Model/LegalEntityManagement/UnincorporatedPartnership.php @@ -3,7 +3,7 @@ /** * Legal Entity Management API * - * The version of the OpenAPI document: 3 + * The version of the OpenAPI document: 4 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * @@ -45,6 +45,7 @@ class UnincorporatedPartnership implements ModelInterface, ArrayAccess, \JsonSer 'dateOfIncorporation' => 'string', 'description' => 'string', 'doingBusinessAs' => 'string', + 'doingBusinessAsAbsent' => 'bool', 'name' => 'string', 'principalPlaceOfBusiness' => '\Adyen\Model\LegalEntityManagement\Address', 'registeredAddress' => '\Adyen\Model\LegalEntityManagement\Address', @@ -67,6 +68,7 @@ class UnincorporatedPartnership implements ModelInterface, ArrayAccess, \JsonSer 'dateOfIncorporation' => null, 'description' => null, 'doingBusinessAs' => null, + 'doingBusinessAsAbsent' => null, 'name' => null, 'principalPlaceOfBusiness' => null, 'registeredAddress' => null, @@ -87,6 +89,7 @@ class UnincorporatedPartnership implements ModelInterface, ArrayAccess, \JsonSer 'dateOfIncorporation' => false, 'description' => false, 'doingBusinessAs' => false, + 'doingBusinessAsAbsent' => true, 'name' => false, 'principalPlaceOfBusiness' => false, 'registeredAddress' => false, @@ -187,6 +190,7 @@ public function isNullableSetToNull(string $property): bool 'dateOfIncorporation' => 'dateOfIncorporation', 'description' => 'description', 'doingBusinessAs' => 'doingBusinessAs', + 'doingBusinessAsAbsent' => 'doingBusinessAsAbsent', 'name' => 'name', 'principalPlaceOfBusiness' => 'principalPlaceOfBusiness', 'registeredAddress' => 'registeredAddress', @@ -207,6 +211,7 @@ public function isNullableSetToNull(string $property): bool 'dateOfIncorporation' => 'setDateOfIncorporation', 'description' => 'setDescription', 'doingBusinessAs' => 'setDoingBusinessAs', + 'doingBusinessAsAbsent' => 'setDoingBusinessAsAbsent', 'name' => 'setName', 'principalPlaceOfBusiness' => 'setPrincipalPlaceOfBusiness', 'registeredAddress' => 'setRegisteredAddress', @@ -227,6 +232,7 @@ public function isNullableSetToNull(string $property): bool 'dateOfIncorporation' => 'getDateOfIncorporation', 'description' => 'getDescription', 'doingBusinessAs' => 'getDoingBusinessAs', + 'doingBusinessAsAbsent' => 'getDoingBusinessAsAbsent', 'name' => 'getName', 'principalPlaceOfBusiness' => 'getPrincipalPlaceOfBusiness', 'registeredAddress' => 'getRegisteredAddress', @@ -378,6 +384,7 @@ public function __construct(?array $data = null) $this->setIfExists('dateOfIncorporation', $data ?? [], null); $this->setIfExists('description', $data ?? [], null); $this->setIfExists('doingBusinessAs', $data ?? [], null); + $this->setIfExists('doingBusinessAsAbsent', $data ?? [], null); $this->setIfExists('name', $data ?? [], null); $this->setIfExists('principalPlaceOfBusiness', $data ?? [], null); $this->setIfExists('registeredAddress', $data ?? [], null); @@ -553,6 +560,40 @@ public function setDoingBusinessAs($doingBusinessAs) return $this; } + /** + * Gets doingBusinessAsAbsent + * + * @return bool|null + */ + public function getDoingBusinessAsAbsent() + { + return $this->container['doingBusinessAsAbsent']; + } + + /** + * Sets doingBusinessAsAbsent + * + * @param bool|null $doingBusinessAsAbsent Set this to **true** if the legal arrangement does not have a `Doing business as` name. + * + * @return self + */ + public function setDoingBusinessAsAbsent($doingBusinessAsAbsent) + { + if (is_null($doingBusinessAsAbsent)) { + array_push($this->openAPINullablesSetToNull, 'doingBusinessAsAbsent'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('doingBusinessAsAbsent', $nullablesSetToNull); + if ($index !== false) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } + } + $this->container['doingBusinessAsAbsent'] = $doingBusinessAsAbsent; + + return $this; + } + /** * Gets name * diff --git a/src/Adyen/Model/LegalEntityManagement/VerificationDeadline.php b/src/Adyen/Model/LegalEntityManagement/VerificationDeadline.php index 1b63645f2..dc88fe1ff 100644 --- a/src/Adyen/Model/LegalEntityManagement/VerificationDeadline.php +++ b/src/Adyen/Model/LegalEntityManagement/VerificationDeadline.php @@ -3,7 +3,7 @@ /** * Legal Entity Management API * - * The version of the OpenAPI document: 3 + * The version of the OpenAPI document: 4 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/LegalEntityManagement/VerificationError.php b/src/Adyen/Model/LegalEntityManagement/VerificationError.php index 787c27d27..a499d0f82 100644 --- a/src/Adyen/Model/LegalEntityManagement/VerificationError.php +++ b/src/Adyen/Model/LegalEntityManagement/VerificationError.php @@ -3,7 +3,7 @@ /** * Legal Entity Management API * - * The version of the OpenAPI document: 3 + * The version of the OpenAPI document: 4 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/LegalEntityManagement/VerificationErrorRecursive.php b/src/Adyen/Model/LegalEntityManagement/VerificationErrorRecursive.php index 22a7e5ffa..f121b91b9 100644 --- a/src/Adyen/Model/LegalEntityManagement/VerificationErrorRecursive.php +++ b/src/Adyen/Model/LegalEntityManagement/VerificationErrorRecursive.php @@ -3,7 +3,7 @@ /** * Legal Entity Management API * - * The version of the OpenAPI document: 3 + * The version of the OpenAPI document: 4 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/LegalEntityManagement/VerificationErrors.php b/src/Adyen/Model/LegalEntityManagement/VerificationErrors.php index 4fa32cf12..eb689604c 100644 --- a/src/Adyen/Model/LegalEntityManagement/VerificationErrors.php +++ b/src/Adyen/Model/LegalEntityManagement/VerificationErrors.php @@ -3,7 +3,7 @@ /** * Legal Entity Management API * - * The version of the OpenAPI document: 3 + * The version of the OpenAPI document: 4 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/LegalEntityManagement/WebData.php b/src/Adyen/Model/LegalEntityManagement/WebData.php index 9f24c20ad..aac2734ec 100644 --- a/src/Adyen/Model/LegalEntityManagement/WebData.php +++ b/src/Adyen/Model/LegalEntityManagement/WebData.php @@ -3,7 +3,7 @@ /** * Legal Entity Management API * - * The version of the OpenAPI document: 3 + * The version of the OpenAPI document: 4 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/LegalEntityManagement/WebDataExemption.php b/src/Adyen/Model/LegalEntityManagement/WebDataExemption.php index 67ce1bad1..46adbf708 100644 --- a/src/Adyen/Model/LegalEntityManagement/WebDataExemption.php +++ b/src/Adyen/Model/LegalEntityManagement/WebDataExemption.php @@ -3,7 +3,7 @@ /** * Legal Entity Management API * - * The version of the OpenAPI document: 3 + * The version of the OpenAPI document: 4 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Service/LegalEntityManagement/BusinessLinesApi.php b/src/Adyen/Service/LegalEntityManagement/BusinessLinesApi.php index 4bf8be260..33d080e1c 100644 --- a/src/Adyen/Service/LegalEntityManagement/BusinessLinesApi.php +++ b/src/Adyen/Service/LegalEntityManagement/BusinessLinesApi.php @@ -2,7 +2,7 @@ /** * Legal Entity Management API * - * The version of the OpenAPI document: 3 + * The version of the OpenAPI document: 4 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * @@ -36,7 +36,7 @@ public function __construct(Client $client) parent::__construct($client); // Create the baseUrl based on live/test and optional live-url-prefix - $this->baseURL = $this->createBaseUrl("https://kyc-test.adyen.com/lem/v3"); + $this->baseURL = $this->createBaseUrl("https://kyc-test.adyen.com/lem/v4"); } /** diff --git a/src/Adyen/Service/LegalEntityManagement/DocumentsApi.php b/src/Adyen/Service/LegalEntityManagement/DocumentsApi.php index 5afdb749a..485345850 100644 --- a/src/Adyen/Service/LegalEntityManagement/DocumentsApi.php +++ b/src/Adyen/Service/LegalEntityManagement/DocumentsApi.php @@ -2,7 +2,7 @@ /** * Legal Entity Management API * - * The version of the OpenAPI document: 3 + * The version of the OpenAPI document: 4 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * @@ -36,7 +36,7 @@ public function __construct(Client $client) parent::__construct($client); // Create the baseUrl based on live/test and optional live-url-prefix - $this->baseURL = $this->createBaseUrl("https://kyc-test.adyen.com/lem/v3"); + $this->baseURL = $this->createBaseUrl("https://kyc-test.adyen.com/lem/v4"); } /** diff --git a/src/Adyen/Service/LegalEntityManagement/HostedOnboardingApi.php b/src/Adyen/Service/LegalEntityManagement/HostedOnboardingApi.php index 0b35bd272..81f49702d 100644 --- a/src/Adyen/Service/LegalEntityManagement/HostedOnboardingApi.php +++ b/src/Adyen/Service/LegalEntityManagement/HostedOnboardingApi.php @@ -2,7 +2,7 @@ /** * Legal Entity Management API * - * The version of the OpenAPI document: 3 + * The version of the OpenAPI document: 4 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * @@ -36,7 +36,7 @@ public function __construct(Client $client) parent::__construct($client); // Create the baseUrl based on live/test and optional live-url-prefix - $this->baseURL = $this->createBaseUrl("https://kyc-test.adyen.com/lem/v3"); + $this->baseURL = $this->createBaseUrl("https://kyc-test.adyen.com/lem/v4"); } /** diff --git a/src/Adyen/Service/LegalEntityManagement/LegalEntitiesApi.php b/src/Adyen/Service/LegalEntityManagement/LegalEntitiesApi.php index bc6e2189c..4d16220a9 100644 --- a/src/Adyen/Service/LegalEntityManagement/LegalEntitiesApi.php +++ b/src/Adyen/Service/LegalEntityManagement/LegalEntitiesApi.php @@ -2,7 +2,7 @@ /** * Legal Entity Management API * - * The version of the OpenAPI document: 3 + * The version of the OpenAPI document: 4 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * @@ -36,7 +36,7 @@ public function __construct(Client $client) parent::__construct($client); // Create the baseUrl based on live/test and optional live-url-prefix - $this->baseURL = $this->createBaseUrl("https://kyc-test.adyen.com/lem/v3"); + $this->baseURL = $this->createBaseUrl("https://kyc-test.adyen.com/lem/v4"); } /** diff --git a/src/Adyen/Service/LegalEntityManagement/PCIQuestionnairesApi.php b/src/Adyen/Service/LegalEntityManagement/PCIQuestionnairesApi.php index 031e14f90..4ecdaef01 100644 --- a/src/Adyen/Service/LegalEntityManagement/PCIQuestionnairesApi.php +++ b/src/Adyen/Service/LegalEntityManagement/PCIQuestionnairesApi.php @@ -2,7 +2,7 @@ /** * Legal Entity Management API * - * The version of the OpenAPI document: 3 + * The version of the OpenAPI document: 4 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * @@ -36,7 +36,7 @@ public function __construct(Client $client) parent::__construct($client); // Create the baseUrl based on live/test and optional live-url-prefix - $this->baseURL = $this->createBaseUrl("https://kyc-test.adyen.com/lem/v3"); + $this->baseURL = $this->createBaseUrl("https://kyc-test.adyen.com/lem/v4"); } /** diff --git a/src/Adyen/Service/LegalEntityManagement/TaxEDeliveryConsentApi.php b/src/Adyen/Service/LegalEntityManagement/TaxEDeliveryConsentApi.php index 6cea6b06a..c4bab795a 100644 --- a/src/Adyen/Service/LegalEntityManagement/TaxEDeliveryConsentApi.php +++ b/src/Adyen/Service/LegalEntityManagement/TaxEDeliveryConsentApi.php @@ -2,7 +2,7 @@ /** * Legal Entity Management API * - * The version of the OpenAPI document: 3 + * The version of the OpenAPI document: 4 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * @@ -36,7 +36,7 @@ public function __construct(Client $client) parent::__construct($client); // Create the baseUrl based on live/test and optional live-url-prefix - $this->baseURL = $this->createBaseUrl("https://kyc-test.adyen.com/lem/v3"); + $this->baseURL = $this->createBaseUrl("https://kyc-test.adyen.com/lem/v4"); } /** diff --git a/src/Adyen/Service/LegalEntityManagement/TermsOfServiceApi.php b/src/Adyen/Service/LegalEntityManagement/TermsOfServiceApi.php index 39919896c..8e341166a 100644 --- a/src/Adyen/Service/LegalEntityManagement/TermsOfServiceApi.php +++ b/src/Adyen/Service/LegalEntityManagement/TermsOfServiceApi.php @@ -2,7 +2,7 @@ /** * Legal Entity Management API * - * The version of the OpenAPI document: 3 + * The version of the OpenAPI document: 4 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * @@ -36,7 +36,7 @@ public function __construct(Client $client) parent::__construct($client); // Create the baseUrl based on live/test and optional live-url-prefix - $this->baseURL = $this->createBaseUrl("https://kyc-test.adyen.com/lem/v3"); + $this->baseURL = $this->createBaseUrl("https://kyc-test.adyen.com/lem/v4"); } /** diff --git a/src/Adyen/Service/LegalEntityManagement/TransferInstrumentsApi.php b/src/Adyen/Service/LegalEntityManagement/TransferInstrumentsApi.php index 5a34cccc2..8fe49fa59 100644 --- a/src/Adyen/Service/LegalEntityManagement/TransferInstrumentsApi.php +++ b/src/Adyen/Service/LegalEntityManagement/TransferInstrumentsApi.php @@ -2,7 +2,7 @@ /** * Legal Entity Management API * - * The version of the OpenAPI document: 3 + * The version of the OpenAPI document: 4 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * @@ -36,7 +36,7 @@ public function __construct(Client $client) parent::__construct($client); // Create the baseUrl based on live/test and optional live-url-prefix - $this->baseURL = $this->createBaseUrl("https://kyc-test.adyen.com/lem/v3"); + $this->baseURL = $this->createBaseUrl("https://kyc-test.adyen.com/lem/v4"); } /** From a40526d283210e9218380a4fa62ec8e9eab643ce Mon Sep 17 00:00:00 2001 From: beppe Date: Thu, 16 Oct 2025 10:16:20 +0200 Subject: [PATCH 2/2] Correct tests --- tests/Unit/LegalEntityManagementTest.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/Unit/LegalEntityManagementTest.php b/tests/Unit/LegalEntityManagementTest.php index 71f6158fe..87c555f6c 100644 --- a/tests/Unit/LegalEntityManagementTest.php +++ b/tests/Unit/LegalEntityManagementTest.php @@ -22,7 +22,7 @@ public function testGetAllBusinessLinesUnderLegalEntity() $service = new LegalEntitiesApi($client); $response = $service->getAllBusinessLinesUnderLegalEntity('Id'); self::assertEquals( - 'https://kyc-test.adyen.com/lem/v3/legalEntities/Id/businessLines', + 'https://kyc-test.adyen.com/lem/v4/legalEntities/Id/businessLines', $this->requestUrl ); self::assertEquals('SE322JV223222F5GVGMLNB83F', $response->getBusinessLines()[0]->getId()); @@ -40,7 +40,7 @@ public function testDeleteDocuments() $service = new DocumentsApi($client); $service->deleteDocument('Id'); self::assertEquals( - 'https://kyc-test.adyen.com/lem/v3/documents/Id', + 'https://kyc-test.adyen.com/lem/v4/documents/Id', $this->requestUrl ); } @@ -55,7 +55,7 @@ public function testGetTermsOfServiceDocument() self::assertEquals('JVBERi0xLjQKJcOkw7zDtsOfCjIgMCBv+f/ub0j6JPRX+E3EmC==', $response->getDocument()); self::assertEquals(GetTermsOfServiceDocumentResponse::TYPE_ADYEN_ISSUING, $response->getType()); self::assertEquals( - 'https://kyc-test.adyen.com/lem/v3/legalEntities/id/termsOfService', + 'https://kyc-test.adyen.com/lem/v4/legalEntities/id/termsOfService', $this->requestUrl ); }