Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
*
Expand Down Expand Up @@ -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
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
*
Expand Down
2 changes: 1 addition & 1 deletion src/Adyen/Model/LegalEntityManagement/Address.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*
Expand Down
2 changes: 1 addition & 1 deletion src/Adyen/Model/LegalEntityManagement/Amount.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*
Expand Down
4 changes: 2 additions & 2 deletions src/Adyen/Model/LegalEntityManagement/Attachment.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*
Expand Down Expand Up @@ -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
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
*
Expand Down
2 changes: 1 addition & 1 deletion src/Adyen/Model/LegalEntityManagement/BirthData.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*
Expand Down
74 changes: 4 additions & 70 deletions src/Adyen/Model/LegalEntityManagement/BusinessLine.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*
Expand Down Expand Up @@ -41,7 +41,6 @@ class BusinessLine implements ModelInterface, ArrayAccess, \JsonSerializable
* @var string[]
*/
protected static $openAPITypes = [
'capability' => 'string',
'id' => 'string',
'industryCode' => 'string',
'legalEntityId' => 'string',
Expand All @@ -61,7 +60,6 @@ class BusinessLine implements ModelInterface, ArrayAccess, \JsonSerializable
* @psalm-var array<string, string|null>
*/
protected static $openAPIFormats = [
'capability' => null,
'id' => null,
'industryCode' => null,
'legalEntityId' => null,
Expand All @@ -79,7 +77,6 @@ class BusinessLine implements ModelInterface, ArrayAccess, \JsonSerializable
* @var boolean[]
*/
protected static $openAPINullables = [
'capability' => false,
'id' => false,
'industryCode' => false,
'legalEntityId' => false,
Expand Down Expand Up @@ -177,7 +174,6 @@ public function isNullableSetToNull(string $property): bool
* @var string[]
*/
protected static $attributeMap = [
'capability' => 'capability',
'id' => 'id',
'industryCode' => 'industryCode',
'legalEntityId' => 'legalEntityId',
Expand All @@ -195,7 +191,6 @@ public function isNullableSetToNull(string $property): bool
* @var string[]
*/
protected static $setters = [
'capability' => 'setCapability',
'id' => 'setId',
'industryCode' => 'setIndustryCode',
'legalEntityId' => 'setLegalEntityId',
Expand All @@ -213,7 +208,6 @@ public function isNullableSetToNull(string $property): bool
* @var string[]
*/
protected static $getters = [
'capability' => 'getCapability',
'id' => 'getId',
'industryCode' => 'getIndustryCode',
'legalEntityId' => 'getLegalEntityId',
Expand Down Expand Up @@ -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
*
Expand All @@ -294,6 +273,7 @@ public function getServiceAllowableValues()
{
return [
self::SERVICE_PAYMENT_PROCESSING,
self::SERVICE_ISSUING,
self::SERVICE_BANKING,
];
}
Expand All @@ -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);
Expand Down Expand Up @@ -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";
}
Expand Down Expand Up @@ -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
*
Expand Down Expand Up @@ -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
*/
Expand Down
Loading