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 @@ -386,11 +386,11 @@ public function setType($type)
{
$allowedValues = $this->getTypeAllowableValues();
if (!in_array($type, $allowedValues, true)) {
throw new \InvalidArgumentException(
error_log(
sprintf(
"Invalid value '%s' for 'type', must be one of '%s'",
"type: unexpected enum value '%s' - Supported values are [%s]",
$type,
implode("', '", $allowedValues)
implode(', ', $allowedValues)
)
);
}
Expand Down
6 changes: 3 additions & 3 deletions src/Adyen/Model/BalancePlatform/AccountHolder.php
Original file line number Diff line number Diff line change
Expand Up @@ -651,11 +651,11 @@ public function setStatus($status)
{
$allowedValues = $this->getStatusAllowableValues();
if (!in_array($status, $allowedValues, true)) {
throw new \InvalidArgumentException(
error_log(
sprintf(
"Invalid value '%s' for 'status', must be one of '%s'",
"status: unexpected enum value '%s' - Supported values are [%s]",
$status,
implode("', '", $allowedValues)
implode(', ', $allowedValues)
)
);
}
Expand Down
18 changes: 9 additions & 9 deletions src/Adyen/Model/BalancePlatform/AccountHolderCapability.php
Original file line number Diff line number Diff line change
Expand Up @@ -462,11 +462,11 @@ public function setAllowedLevel($allowedLevel)
{
$allowedValues = $this->getAllowedLevelAllowableValues();
if (!in_array($allowedLevel, $allowedValues, true)) {
throw new \InvalidArgumentException(
error_log(
sprintf(
"Invalid value '%s' for 'allowedLevel', must be one of '%s'",
"allowedLevel: unexpected enum value '%s' - Supported values are [%s]",
$allowedLevel,
implode("', '", $allowedValues)
implode(', ', $allowedValues)
)
);
}
Expand Down Expand Up @@ -592,11 +592,11 @@ public function setRequestedLevel($requestedLevel)
{
$allowedValues = $this->getRequestedLevelAllowableValues();
if (!in_array($requestedLevel, $allowedValues, true)) {
throw new \InvalidArgumentException(
error_log(
sprintf(
"Invalid value '%s' for 'requestedLevel', must be one of '%s'",
"requestedLevel: unexpected enum value '%s' - Supported values are [%s]",
$requestedLevel,
implode("', '", $allowedValues)
implode(', ', $allowedValues)
)
);
}
Expand Down Expand Up @@ -674,11 +674,11 @@ public function setVerificationStatus($verificationStatus)
{
$allowedValues = $this->getVerificationStatusAllowableValues();
if (!in_array($verificationStatus, $allowedValues, true)) {
throw new \InvalidArgumentException(
error_log(
sprintf(
"Invalid value '%s' for 'verificationStatus', must be one of '%s'",
"verificationStatus: unexpected enum value '%s' - Supported values are [%s]",
$verificationStatus,
implode("', '", $allowedValues)
implode(', ', $allowedValues)
)
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -583,11 +583,11 @@ public function setStatus($status)
{
$allowedValues = $this->getStatusAllowableValues();
if (!in_array($status, $allowedValues, true)) {
throw new \InvalidArgumentException(
error_log(
sprintf(
"Invalid value '%s' for 'status', must be one of '%s'",
"status: unexpected enum value '%s' - Supported values are [%s]",
$status,
implode("', '", $allowedValues)
implode(', ', $allowedValues)
)
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -441,11 +441,11 @@ public function setAllowedLevel($allowedLevel)
{
$allowedValues = $this->getAllowedLevelAllowableValues();
if (!in_array($allowedLevel, $allowedValues, true)) {
throw new \InvalidArgumentException(
error_log(
sprintf(
"Invalid value '%s' for 'allowedLevel', must be one of '%s'",
"allowedLevel: unexpected enum value '%s' - Supported values are [%s]",
$allowedLevel,
implode("', '", $allowedValues)
implode(', ', $allowedValues)
)
);
}
Expand Down Expand Up @@ -547,11 +547,11 @@ public function setRequestedLevel($requestedLevel)
{
$allowedValues = $this->getRequestedLevelAllowableValues();
if (!in_array($requestedLevel, $allowedValues, true)) {
throw new \InvalidArgumentException(
error_log(
sprintf(
"Invalid value '%s' for 'requestedLevel', must be one of '%s'",
"requestedLevel: unexpected enum value '%s' - Supported values are [%s]",
$requestedLevel,
implode("', '", $allowedValues)
implode(', ', $allowedValues)
)
);
}
Expand Down Expand Up @@ -581,11 +581,11 @@ public function setVerificationStatus($verificationStatus)
{
$allowedValues = $this->getVerificationStatusAllowableValues();
if (!in_array($verificationStatus, $allowedValues, true)) {
throw new \InvalidArgumentException(
error_log(
sprintf(
"Invalid value '%s' for 'verificationStatus', must be one of '%s'",
"verificationStatus: unexpected enum value '%s' - Supported values are [%s]",
$verificationStatus,
implode("', '", $allowedValues)
implode(', ', $allowedValues)
)
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -352,11 +352,11 @@ public function setType($type)
{
$allowedValues = $this->getTypeAllowableValues();
if (!in_array($type, $allowedValues, true)) {
throw new \InvalidArgumentException(
error_log(
sprintf(
"Invalid value '%s' for 'type', must be one of '%s'",
"type: unexpected enum value '%s' - Supported values are [%s]",
$type,
implode("', '", $allowedValues)
implode(', ', $allowedValues)
)
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -359,11 +359,11 @@ public function setAdditionalBankIdentificationType($additionalBankIdentificatio
{
$allowedValues = $this->getAdditionalBankIdentificationTypeAllowableValues();
if (!in_array($additionalBankIdentificationType, $allowedValues, true)) {
throw new \InvalidArgumentException(
error_log(
sprintf(
"Invalid value '%s' for 'additionalBankIdentificationType', must be one of '%s'",
"additionalBankIdentificationType: unexpected enum value '%s' - Supported values are [%s]",
$additionalBankIdentificationType,
implode("', '", $allowedValues)
implode(', ', $allowedValues)
)
);
}
Expand Down Expand Up @@ -417,11 +417,11 @@ public function setType($type)
{
$allowedValues = $this->getTypeAllowableValues();
if (!in_array($type, $allowedValues, true)) {
throw new \InvalidArgumentException(
error_log(
sprintf(
"Invalid value '%s' for 'type', must be one of '%s'",
"type: unexpected enum value '%s' - Supported values are [%s]",
$type,
implode("', '", $allowedValues)
implode(', ', $allowedValues)
)
);
}
Expand Down
6 changes: 3 additions & 3 deletions src/Adyen/Model/BalancePlatform/AddressRequirement.php
Original file line number Diff line number Diff line change
Expand Up @@ -409,11 +409,11 @@ public function setType($type)
{
$allowedValues = $this->getTypeAllowableValues();
if (!in_array($type, $allowedValues, true)) {
throw new \InvalidArgumentException(
error_log(
sprintf(
"Invalid value '%s' for 'type', must be one of '%s'",
"type: unexpected enum value '%s' - Supported values are [%s]",
$type,
implode("', '", $allowedValues)
implode(', ', $allowedValues)
)
);
}
Expand Down
6 changes: 3 additions & 3 deletions src/Adyen/Model/BalancePlatform/AmountMinMaxRequirement.php
Original file line number Diff line number Diff line change
Expand Up @@ -411,11 +411,11 @@ public function setType($type)
{
$allowedValues = $this->getTypeAllowableValues();
if (!in_array($type, $allowedValues, true)) {
throw new \InvalidArgumentException(
error_log(
sprintf(
"Invalid value '%s' for 'type', must be one of '%s'",
"type: unexpected enum value '%s' - Supported values are [%s]",
$type,
implode("', '", $allowedValues)
implode(', ', $allowedValues)
)
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -349,11 +349,11 @@ public function setType($type)
{
$allowedValues = $this->getTypeAllowableValues();
if (!in_array($type, $allowedValues, true)) {
throw new \InvalidArgumentException(
error_log(
sprintf(
"Invalid value '%s' for 'type', must be one of '%s'",
"type: unexpected enum value '%s' - Supported values are [%s]",
$type,
implode("', '", $allowedValues)
implode(', ', $allowedValues)
)
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -386,11 +386,11 @@ public function setType($type)
{
$allowedValues = $this->getTypeAllowableValues();
if (!in_array($type, $allowedValues, true)) {
throw new \InvalidArgumentException(
error_log(
sprintf(
"Invalid value '%s' for 'type', must be one of '%s'",
"type: unexpected enum value '%s' - Supported values are [%s]",
$type,
implode("', '", $allowedValues)
implode(', ', $allowedValues)
)
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -380,11 +380,11 @@ public function setType($type)
{
$allowedValues = $this->getTypeAllowableValues();
if (!in_array($type, $allowedValues, true)) {
throw new \InvalidArgumentException(
error_log(
sprintf(
"Invalid value '%s' for 'type', must be one of '%s'",
"type: unexpected enum value '%s' - Supported values are [%s]",
$type,
implode("', '", $allowedValues)
implode(', ', $allowedValues)
)
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -352,11 +352,11 @@ public function setType($type)
{
$allowedValues = $this->getTypeAllowableValues();
if (!in_array($type, $allowedValues, true)) {
throw new \InvalidArgumentException(
error_log(
sprintf(
"Invalid value '%s' for 'type', must be one of '%s'",
"type: unexpected enum value '%s' - Supported values are [%s]",
$type,
implode("', '", $allowedValues)
implode(', ', $allowedValues)
)
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -451,11 +451,11 @@ public function setType($type)
{
$allowedValues = $this->getTypeAllowableValues();
if (!in_array($type, $allowedValues, true)) {
throw new \InvalidArgumentException(
error_log(
sprintf(
"Invalid value '%s' for 'type', must be one of '%s'",
"type: unexpected enum value '%s' - Supported values are [%s]",
$type,
implode("', '", $allowedValues)
implode(', ', $allowedValues)
)
);
}
Expand Down
6 changes: 3 additions & 3 deletions src/Adyen/Model/BalancePlatform/BalanceAccount.php
Original file line number Diff line number Diff line change
Expand Up @@ -613,11 +613,11 @@ public function setStatus($status)
{
$allowedValues = $this->getStatusAllowableValues();
if (!in_array($status, $allowedValues, true)) {
throw new \InvalidArgumentException(
error_log(
sprintf(
"Invalid value '%s' for 'status', must be one of '%s'",
"status: unexpected enum value '%s' - Supported values are [%s]",
$status,
implode("', '", $allowedValues)
implode(', ', $allowedValues)
)
);
}
Expand Down
6 changes: 3 additions & 3 deletions src/Adyen/Model/BalancePlatform/BalanceAccountBase.php
Original file line number Diff line number Diff line change
Expand Up @@ -582,11 +582,11 @@ public function setStatus($status)
{
$allowedValues = $this->getStatusAllowableValues();
if (!in_array($status, $allowedValues, true)) {
throw new \InvalidArgumentException(
error_log(
sprintf(
"Invalid value '%s' for 'status', must be one of '%s'",
"status: unexpected enum value '%s' - Supported values are [%s]",
$status,
implode("', '", $allowedValues)
implode(', ', $allowedValues)
)
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -483,11 +483,11 @@ public function setStatus($status)
{
$allowedValues = $this->getStatusAllowableValues();
if (!in_array($status, $allowedValues, true)) {
throw new \InvalidArgumentException(
error_log(
sprintf(
"Invalid value '%s' for 'status', must be one of '%s'",
"status: unexpected enum value '%s' - Supported values are [%s]",
$status,
implode("', '", $allowedValues)
implode(', ', $allowedValues)
)
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -433,11 +433,11 @@ public function setType($type)
{
$allowedValues = $this->getTypeAllowableValues();
if (!in_array($type, $allowedValues, true)) {
throw new \InvalidArgumentException(
error_log(
sprintf(
"Invalid value '%s' for 'type', must be one of '%s'",
"type: unexpected enum value '%s' - Supported values are [%s]",
$type,
implode("', '", $allowedValues)
implode(', ', $allowedValues)
)
);
}
Expand Down
6 changes: 3 additions & 3 deletions src/Adyen/Model/BalancePlatform/BankAccountModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -329,11 +329,11 @@ public function setFormFactor($formFactor)
}
$allowedValues = $this->getFormFactorAllowableValues();
if (!is_null($formFactor) && !in_array($formFactor, $allowedValues, true)) {
throw new \InvalidArgumentException(
error_log(
sprintf(
"Invalid value '%s' for 'formFactor', must be one of '%s'",
"formFactor: unexpected enum value '%s' - Supported values are [%s]",
$formFactor,
implode("', '", $allowedValues)
implode(', ', $allowedValues)
)
);
}
Expand Down
6 changes: 3 additions & 3 deletions src/Adyen/Model/BalancePlatform/BankIdentification.php
Original file line number Diff line number Diff line change
Expand Up @@ -383,11 +383,11 @@ public function setIdentificationType($identificationType)
{
$allowedValues = $this->getIdentificationTypeAllowableValues();
if (!in_array($identificationType, $allowedValues, true)) {
throw new \InvalidArgumentException(
error_log(
sprintf(
"Invalid value '%s' for 'identificationType', must be one of '%s'",
"identificationType: unexpected enum value '%s' - Supported values are [%s]",
$identificationType,
implode("', '", $allowedValues)
implode(', ', $allowedValues)
)
);
}
Expand Down
Loading
Loading