Skip to content

Commit b0ce86c

Browse files
[balancecontrol] Automated update from Adyen/adyen-openapi@0a007ce
1 parent aac0147 commit b0ce86c

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

src/Adyen/Model/BalanceControl/BalanceTransferRequest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -492,11 +492,11 @@ public function setType($type)
492492
{
493493
$allowedValues = $this->getTypeAllowableValues();
494494
if (!in_array($type, $allowedValues, true)) {
495-
throw new \InvalidArgumentException(
495+
error_log(
496496
sprintf(
497-
"Invalid value '%s' for 'type', must be one of '%s'",
497+
"type: unexpected enum value '%s' - Supported values are [%s]",
498498
$type,
499-
implode("', '", $allowedValues)
499+
implode(', ', $allowedValues)
500500
)
501501
);
502502
}

src/Adyen/Model/BalanceControl/BalanceTransferResponse.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -573,11 +573,11 @@ public function setStatus($status)
573573
{
574574
$allowedValues = $this->getStatusAllowableValues();
575575
if (!in_array($status, $allowedValues, true)) {
576-
throw new \InvalidArgumentException(
576+
error_log(
577577
sprintf(
578-
"Invalid value '%s' for 'status', must be one of '%s'",
578+
"status: unexpected enum value '%s' - Supported values are [%s]",
579579
$status,
580-
implode("', '", $allowedValues)
580+
implode(', ', $allowedValues)
581581
)
582582
);
583583
}
@@ -631,11 +631,11 @@ public function setType($type)
631631
{
632632
$allowedValues = $this->getTypeAllowableValues();
633633
if (!in_array($type, $allowedValues, true)) {
634-
throw new \InvalidArgumentException(
634+
error_log(
635635
sprintf(
636-
"Invalid value '%s' for 'type', must be one of '%s'",
636+
"type: unexpected enum value '%s' - Supported values are [%s]",
637637
$type,
638-
implode("', '", $allowedValues)
638+
implode(', ', $allowedValues)
639639
)
640640
);
641641
}

0 commit comments

Comments
 (0)