diff --git a/src/Adyen/Model/BinLookup/CostEstimateRequest.php b/src/Adyen/Model/BinLookup/CostEstimateRequest.php index f32110264..a7f042e58 100644 --- a/src/Adyen/Model/BinLookup/CostEstimateRequest.php +++ b/src/Adyen/Model/BinLookup/CostEstimateRequest.php @@ -582,11 +582,11 @@ public function setShopperInteraction($shopperInteraction) { $allowedValues = $this->getShopperInteractionAllowableValues(); if (!in_array($shopperInteraction, $allowedValues, true)) { - throw new \InvalidArgumentException( + error_log( sprintf( - "Invalid value '%s' for 'shopperInteraction', must be one of '%s'", + "shopperInteraction: unexpected enum value '%s' - Supported values are [%s]", $shopperInteraction, - implode("', '", $allowedValues) + implode(', ', $allowedValues) ) ); } diff --git a/src/Adyen/Model/BinLookup/Recurring.php b/src/Adyen/Model/BinLookup/Recurring.php index 43643cbb4..2aef2714c 100644 --- a/src/Adyen/Model/BinLookup/Recurring.php +++ b/src/Adyen/Model/BinLookup/Recurring.php @@ -374,11 +374,11 @@ public function setContract($contract) { $allowedValues = $this->getContractAllowableValues(); if (!in_array($contract, $allowedValues, true)) { - throw new \InvalidArgumentException( + error_log( sprintf( - "Invalid value '%s' for 'contract', must be one of '%s'", + "contract: unexpected enum value '%s' - Supported values are [%s]", $contract, - implode("', '", $allowedValues) + implode(', ', $allowedValues) ) ); } @@ -480,11 +480,11 @@ public function setTokenService($tokenService) { $allowedValues = $this->getTokenServiceAllowableValues(); if (!in_array($tokenService, $allowedValues, true)) { - throw new \InvalidArgumentException( + error_log( sprintf( - "Invalid value '%s' for 'tokenService', must be one of '%s'", + "tokenService: unexpected enum value '%s' - Supported values are [%s]", $tokenService, - implode("', '", $allowedValues) + implode(', ', $allowedValues) ) ); } diff --git a/src/Adyen/Model/Checkout/CreateCheckoutSessionRequest.php b/src/Adyen/Model/Checkout/CreateCheckoutSessionRequest.php index a2ff0449c..d0d7adb67 100644 --- a/src/Adyen/Model/Checkout/CreateCheckoutSessionRequest.php +++ b/src/Adyen/Model/Checkout/CreateCheckoutSessionRequest.php @@ -1430,7 +1430,7 @@ public function getLineItems() /** * Sets lineItems * - * @param \Adyen\Model\Checkout\LineItem[]|null $lineItems Price and product information about the purchased items, to be included on the invoice sent to the shopper. > This field is required for 3x 4x Oney, Affirm, Afterpay, Clearpay, Klarna, Ratepay, Riverty, and Zip. + * @param \Adyen\Model\Checkout\LineItem[]|null $lineItems Price and product information about the purchased items, to be included on the invoice sent to the shopper. > This field is required for 3x 4x Oney, Affirm, Afterpay, Clearpay, Klarna, Ratepay, and Riverty. * * @return self */ diff --git a/src/Adyen/Model/Checkout/CreateCheckoutSessionResponse.php b/src/Adyen/Model/Checkout/CreateCheckoutSessionResponse.php index f66e8254b..93194c0d9 100644 --- a/src/Adyen/Model/Checkout/CreateCheckoutSessionResponse.php +++ b/src/Adyen/Model/Checkout/CreateCheckoutSessionResponse.php @@ -1481,7 +1481,7 @@ public function getLineItems() /** * Sets lineItems * - * @param \Adyen\Model\Checkout\LineItem[]|null $lineItems Price and product information about the purchased items, to be included on the invoice sent to the shopper. > This field is required for 3x 4x Oney, Affirm, Afterpay, Clearpay, Klarna, Ratepay, Riverty, and Zip. + * @param \Adyen\Model\Checkout\LineItem[]|null $lineItems Price and product information about the purchased items, to be included on the invoice sent to the shopper. > This field is required for 3x 4x Oney, Affirm, Afterpay, Clearpay, Klarna, Ratepay, and Riverty. * * @return self */ diff --git a/src/Adyen/Model/Checkout/DonationPaymentRequest.php b/src/Adyen/Model/Checkout/DonationPaymentRequest.php index 96af82506..ecc0c164f 100644 --- a/src/Adyen/Model/Checkout/DonationPaymentRequest.php +++ b/src/Adyen/Model/Checkout/DonationPaymentRequest.php @@ -1133,7 +1133,7 @@ public function getLineItems() /** * Sets lineItems * - * @param \Adyen\Model\Checkout\LineItem[]|null $lineItems Price and product information about the purchased items, to be included on the invoice sent to the shopper. > This field is required for 3x 4x Oney, Affirm, Afterpay, Clearpay, Klarna, Ratepay, Riverty, and Zip. + * @param \Adyen\Model\Checkout\LineItem[]|null $lineItems Price and product information about the purchased items, to be included on the invoice sent to the shopper. > This field is required for 3x 4x Oney, Affirm, Afterpay, Clearpay, Klarna, Ratepay, and Riverty. * * @return self */ diff --git a/src/Adyen/Model/Checkout/PaymentLinkRequest.php b/src/Adyen/Model/Checkout/PaymentLinkRequest.php index 5d404df20..cb550e3a4 100644 --- a/src/Adyen/Model/Checkout/PaymentLinkRequest.php +++ b/src/Adyen/Model/Checkout/PaymentLinkRequest.php @@ -1012,7 +1012,7 @@ public function getLineItems() /** * Sets lineItems * - * @param \Adyen\Model\Checkout\LineItem[]|null $lineItems Price and product information about the purchased items, to be included on the invoice sent to the shopper. This parameter is required for open invoice (_buy now, pay later_) payment methods such Afterpay, Clearpay, Klarna, RatePay, Riverty, and Zip. + * @param \Adyen\Model\Checkout\LineItem[]|null $lineItems Price and product information about the purchased items, to be included on the invoice sent to the shopper. > This field is required for 3x 4x Oney, Affirm, Afterpay, Clearpay, Klarna, Ratepay, and Riverty. * * @return self */ diff --git a/src/Adyen/Model/Checkout/PaymentLinkResponse.php b/src/Adyen/Model/Checkout/PaymentLinkResponse.php index 86dc46a44..fb7403ce2 100644 --- a/src/Adyen/Model/Checkout/PaymentLinkResponse.php +++ b/src/Adyen/Model/Checkout/PaymentLinkResponse.php @@ -1102,7 +1102,7 @@ public function getLineItems() /** * Sets lineItems * - * @param \Adyen\Model\Checkout\LineItem[]|null $lineItems Price and product information about the purchased items, to be included on the invoice sent to the shopper. This parameter is required for open invoice (_buy now, pay later_) payment methods such Afterpay, Clearpay, Klarna, RatePay, Riverty, and Zip. + * @param \Adyen\Model\Checkout\LineItem[]|null $lineItems Price and product information about the purchased items, to be included on the invoice sent to the shopper. > This field is required for 3x 4x Oney, Affirm, Afterpay, Clearpay, Klarna, Ratepay, and Riverty. * * @return self */ diff --git a/src/Adyen/Model/Checkout/PaymentRequest.php b/src/Adyen/Model/Checkout/PaymentRequest.php index 6f12ead19..605242e19 100644 --- a/src/Adyen/Model/Checkout/PaymentRequest.php +++ b/src/Adyen/Model/Checkout/PaymentRequest.php @@ -1701,7 +1701,7 @@ public function getLineItems() /** * Sets lineItems * - * @param \Adyen\Model\Checkout\LineItem[]|null $lineItems Price and product information about the purchased items, to be included on the invoice sent to the shopper. > This field is required for 3x 4x Oney, Affirm, Afterpay, Clearpay, Klarna, Ratepay, Riverty, and Zip. + * @param \Adyen\Model\Checkout\LineItem[]|null $lineItems Price and product information about the purchased items, to be included on the invoice sent to the shopper. > This field is required for 3x 4x Oney, Affirm, Afterpay, Clearpay, Klarna, Ratepay, and Riverty. * * @return self */ diff --git a/src/Adyen/Model/Payout/PayoutRequest.php b/src/Adyen/Model/Payout/PayoutRequest.php index 76b0c7d55..0b05f6698 100644 --- a/src/Adyen/Model/Payout/PayoutRequest.php +++ b/src/Adyen/Model/Payout/PayoutRequest.php @@ -661,11 +661,11 @@ public function setShopperInteraction($shopperInteraction) { $allowedValues = $this->getShopperInteractionAllowableValues(); if (!in_array($shopperInteraction, $allowedValues, true)) { - throw new \InvalidArgumentException( + error_log( sprintf( - "Invalid value '%s' for 'shopperInteraction', must be one of '%s'", + "shopperInteraction: unexpected enum value '%s' - Supported values are [%s]", $shopperInteraction, - implode("', '", $allowedValues) + implode(', ', $allowedValues) ) ); } diff --git a/src/Adyen/Model/Payout/PayoutResponse.php b/src/Adyen/Model/Payout/PayoutResponse.php index 2acadc1a9..ca851d31e 100644 --- a/src/Adyen/Model/Payout/PayoutResponse.php +++ b/src/Adyen/Model/Payout/PayoutResponse.php @@ -651,11 +651,11 @@ public function setResultCode($resultCode) { $allowedValues = $this->getResultCodeAllowableValues(); if (!in_array($resultCode, $allowedValues, true)) { - throw new \InvalidArgumentException( + error_log( sprintf( - "Invalid value '%s' for 'resultCode', must be one of '%s'", + "resultCode: unexpected enum value '%s' - Supported values are [%s]", $resultCode, - implode("', '", $allowedValues) + implode(', ', $allowedValues) ) ); } diff --git a/src/Adyen/Model/Payout/Recurring.php b/src/Adyen/Model/Payout/Recurring.php index ac41a8398..27af5f886 100644 --- a/src/Adyen/Model/Payout/Recurring.php +++ b/src/Adyen/Model/Payout/Recurring.php @@ -374,11 +374,11 @@ public function setContract($contract) { $allowedValues = $this->getContractAllowableValues(); if (!in_array($contract, $allowedValues, true)) { - throw new \InvalidArgumentException( + error_log( sprintf( - "Invalid value '%s' for 'contract', must be one of '%s'", + "contract: unexpected enum value '%s' - Supported values are [%s]", $contract, - implode("', '", $allowedValues) + implode(', ', $allowedValues) ) ); } @@ -480,11 +480,11 @@ public function setTokenService($tokenService) { $allowedValues = $this->getTokenServiceAllowableValues(); if (!in_array($tokenService, $allowedValues, true)) { - throw new \InvalidArgumentException( + error_log( sprintf( - "Invalid value '%s' for 'tokenService', must be one of '%s'", + "tokenService: unexpected enum value '%s' - Supported values are [%s]", $tokenService, - implode("', '", $allowedValues) + implode(', ', $allowedValues) ) ); } diff --git a/src/Adyen/Model/Payout/ResponseAdditionalDataCard.php b/src/Adyen/Model/Payout/ResponseAdditionalDataCard.php index 77f2b94a5..4504158d4 100644 --- a/src/Adyen/Model/Payout/ResponseAdditionalDataCard.php +++ b/src/Adyen/Model/Payout/ResponseAdditionalDataCard.php @@ -535,11 +535,11 @@ public function setCardProductId($cardProductId) { $allowedValues = $this->getCardProductIdAllowableValues(); if (!in_array($cardProductId, $allowedValues, true)) { - throw new \InvalidArgumentException( + error_log( sprintf( - "Invalid value '%s' for 'cardProductId', must be one of '%s'", + "cardProductId: unexpected enum value '%s' - Supported values are [%s]", $cardProductId, - implode("', '", $allowedValues) + implode(', ', $allowedValues) ) ); } diff --git a/src/Adyen/Model/Payout/ResponseAdditionalDataCommon.php b/src/Adyen/Model/Payout/ResponseAdditionalDataCommon.php index a4b815286..7c3eecd1e 100644 --- a/src/Adyen/Model/Payout/ResponseAdditionalDataCommon.php +++ b/src/Adyen/Model/Payout/ResponseAdditionalDataCommon.php @@ -1358,11 +1358,11 @@ public function setFraudResultType($fraudResultType) { $allowedValues = $this->getFraudResultTypeAllowableValues(); if (!in_array($fraudResultType, $allowedValues, true)) { - throw new \InvalidArgumentException( + error_log( sprintf( - "Invalid value '%s' for 'fraudResultType', must be one of '%s'", + "fraudResultType: unexpected enum value '%s' - Supported values are [%s]", $fraudResultType, - implode("', '", $allowedValues) + implode(', ', $allowedValues) ) ); } @@ -1392,11 +1392,11 @@ public function setFraudRiskLevel($fraudRiskLevel) { $allowedValues = $this->getFraudRiskLevelAllowableValues(); if (!in_array($fraudRiskLevel, $allowedValues, true)) { - throw new \InvalidArgumentException( + error_log( sprintf( - "Invalid value '%s' for 'fraudRiskLevel', must be one of '%s'", + "fraudRiskLevel: unexpected enum value '%s' - Supported values are [%s]", $fraudRiskLevel, - implode("', '", $allowedValues) + implode(', ', $allowedValues) ) ); } @@ -1934,11 +1934,11 @@ public function setRecurringProcessingModel($recurringProcessingModel) { $allowedValues = $this->getRecurringProcessingModelAllowableValues(); if (!in_array($recurringProcessingModel, $allowedValues, true)) { - throw new \InvalidArgumentException( + error_log( sprintf( - "Invalid value '%s' for 'recurringProcessingModel', must be one of '%s'", + "recurringProcessingModel: unexpected enum value '%s' - Supported values are [%s]", $recurringProcessingModel, - implode("', '", $allowedValues) + implode(', ', $allowedValues) ) ); } @@ -2280,11 +2280,11 @@ public function setTokenizationStoreOperationType($tokenizationStoreOperationTyp { $allowedValues = $this->getTokenizationStoreOperationTypeAllowableValues(); if (!in_array($tokenizationStoreOperationType, $allowedValues, true)) { - throw new \InvalidArgumentException( + error_log( sprintf( - "Invalid value '%s' for 'tokenizationStoreOperationType', must be one of '%s'", + "tokenizationStoreOperationType: unexpected enum value '%s' - Supported values are [%s]", $tokenizationStoreOperationType, - implode("', '", $allowedValues) + implode(', ', $allowedValues) ) ); } diff --git a/src/Adyen/Model/Payout/StoreDetailAndSubmitRequest.php b/src/Adyen/Model/Payout/StoreDetailAndSubmitRequest.php index 6e180186f..6e494c8c4 100644 --- a/src/Adyen/Model/Payout/StoreDetailAndSubmitRequest.php +++ b/src/Adyen/Model/Payout/StoreDetailAndSubmitRequest.php @@ -614,11 +614,11 @@ public function setEntityType($entityType) { $allowedValues = $this->getEntityTypeAllowableValues(); if (!in_array($entityType, $allowedValues, true)) { - throw new \InvalidArgumentException( + error_log( sprintf( - "Invalid value '%s' for 'entityType', must be one of '%s'", + "entityType: unexpected enum value '%s' - Supported values are [%s]", $entityType, - implode("', '", $allowedValues) + implode(', ', $allowedValues) ) ); } diff --git a/src/Adyen/Model/Payout/StoreDetailRequest.php b/src/Adyen/Model/Payout/StoreDetailRequest.php index b2223ba83..08537ada2 100644 --- a/src/Adyen/Model/Payout/StoreDetailRequest.php +++ b/src/Adyen/Model/Payout/StoreDetailRequest.php @@ -563,11 +563,11 @@ public function setEntityType($entityType) { $allowedValues = $this->getEntityTypeAllowableValues(); if (!in_array($entityType, $allowedValues, true)) { - throw new \InvalidArgumentException( + error_log( sprintf( - "Invalid value '%s' for 'entityType', must be one of '%s'", + "entityType: unexpected enum value '%s' - Supported values are [%s]", $entityType, - implode("', '", $allowedValues) + implode(', ', $allowedValues) ) ); } diff --git a/src/Adyen/Model/Payout/SubmitRequest.php b/src/Adyen/Model/Payout/SubmitRequest.php index 90ea4b92b..225631477 100644 --- a/src/Adyen/Model/Payout/SubmitRequest.php +++ b/src/Adyen/Model/Payout/SubmitRequest.php @@ -508,11 +508,11 @@ public function setEntityType($entityType) { $allowedValues = $this->getEntityTypeAllowableValues(); if (!in_array($entityType, $allowedValues, true)) { - throw new \InvalidArgumentException( + error_log( sprintf( - "Invalid value '%s' for 'entityType', must be one of '%s'", + "entityType: unexpected enum value '%s' - Supported values are [%s]", $entityType, - implode("', '", $allowedValues) + implode(', ', $allowedValues) ) ); } diff --git a/src/Adyen/Model/Recurring/Recurring.php b/src/Adyen/Model/Recurring/Recurring.php index c2c333317..47aa00f8b 100644 --- a/src/Adyen/Model/Recurring/Recurring.php +++ b/src/Adyen/Model/Recurring/Recurring.php @@ -374,11 +374,11 @@ public function setContract($contract) { $allowedValues = $this->getContractAllowableValues(); if (!in_array($contract, $allowedValues, true)) { - throw new \InvalidArgumentException( + error_log( sprintf( - "Invalid value '%s' for 'contract', must be one of '%s'", + "contract: unexpected enum value '%s' - Supported values are [%s]", $contract, - implode("', '", $allowedValues) + implode(', ', $allowedValues) ) ); } @@ -480,11 +480,11 @@ public function setTokenService($tokenService) { $allowedValues = $this->getTokenServiceAllowableValues(); if (!in_array($tokenService, $allowedValues, true)) { - throw new \InvalidArgumentException( + error_log( sprintf( - "Invalid value '%s' for 'tokenService', must be one of '%s'", + "tokenService: unexpected enum value '%s' - Supported values are [%s]", $tokenService, - implode("', '", $allowedValues) + implode(', ', $allowedValues) ) ); } diff --git a/src/Adyen/Model/StoredValue/StoredValueBalanceCheckRequest.php b/src/Adyen/Model/StoredValue/StoredValueBalanceCheckRequest.php index b6a9ec584..0ffb77c09 100644 --- a/src/Adyen/Model/StoredValue/StoredValueBalanceCheckRequest.php +++ b/src/Adyen/Model/StoredValue/StoredValueBalanceCheckRequest.php @@ -499,11 +499,11 @@ public function setShopperInteraction($shopperInteraction) { $allowedValues = $this->getShopperInteractionAllowableValues(); if (!in_array($shopperInteraction, $allowedValues, true)) { - throw new \InvalidArgumentException( + error_log( sprintf( - "Invalid value '%s' for 'shopperInteraction', must be one of '%s'", + "shopperInteraction: unexpected enum value '%s' - Supported values are [%s]", $shopperInteraction, - implode("', '", $allowedValues) + implode(', ', $allowedValues) ) ); } diff --git a/src/Adyen/Model/StoredValue/StoredValueBalanceCheckResponse.php b/src/Adyen/Model/StoredValue/StoredValueBalanceCheckResponse.php index 63ad0a4ff..3ca3f3133 100644 --- a/src/Adyen/Model/StoredValue/StoredValueBalanceCheckResponse.php +++ b/src/Adyen/Model/StoredValue/StoredValueBalanceCheckResponse.php @@ -421,11 +421,11 @@ public function setResultCode($resultCode) { $allowedValues = $this->getResultCodeAllowableValues(); if (!in_array($resultCode, $allowedValues, true)) { - throw new \InvalidArgumentException( + error_log( sprintf( - "Invalid value '%s' for 'resultCode', must be one of '%s'", + "resultCode: unexpected enum value '%s' - Supported values are [%s]", $resultCode, - implode("', '", $allowedValues) + implode(', ', $allowedValues) ) ); } diff --git a/src/Adyen/Model/StoredValue/StoredValueBalanceMergeRequest.php b/src/Adyen/Model/StoredValue/StoredValueBalanceMergeRequest.php index f7c48be4a..bf7257a4f 100644 --- a/src/Adyen/Model/StoredValue/StoredValueBalanceMergeRequest.php +++ b/src/Adyen/Model/StoredValue/StoredValueBalanceMergeRequest.php @@ -509,11 +509,11 @@ public function setShopperInteraction($shopperInteraction) { $allowedValues = $this->getShopperInteractionAllowableValues(); if (!in_array($shopperInteraction, $allowedValues, true)) { - throw new \InvalidArgumentException( + error_log( sprintf( - "Invalid value '%s' for 'shopperInteraction', must be one of '%s'", + "shopperInteraction: unexpected enum value '%s' - Supported values are [%s]", $shopperInteraction, - implode("', '", $allowedValues) + implode(', ', $allowedValues) ) ); } diff --git a/src/Adyen/Model/StoredValue/StoredValueBalanceMergeResponse.php b/src/Adyen/Model/StoredValue/StoredValueBalanceMergeResponse.php index 1095f0c48..899cfb56a 100644 --- a/src/Adyen/Model/StoredValue/StoredValueBalanceMergeResponse.php +++ b/src/Adyen/Model/StoredValue/StoredValueBalanceMergeResponse.php @@ -452,11 +452,11 @@ public function setResultCode($resultCode) { $allowedValues = $this->getResultCodeAllowableValues(); if (!in_array($resultCode, $allowedValues, true)) { - throw new \InvalidArgumentException( + error_log( sprintf( - "Invalid value '%s' for 'resultCode', must be one of '%s'", + "resultCode: unexpected enum value '%s' - Supported values are [%s]", $resultCode, - implode("', '", $allowedValues) + implode(', ', $allowedValues) ) ); } diff --git a/src/Adyen/Model/StoredValue/StoredValueIssueRequest.php b/src/Adyen/Model/StoredValue/StoredValueIssueRequest.php index 005b0fd34..309a7bccc 100644 --- a/src/Adyen/Model/StoredValue/StoredValueIssueRequest.php +++ b/src/Adyen/Model/StoredValue/StoredValueIssueRequest.php @@ -499,11 +499,11 @@ public function setShopperInteraction($shopperInteraction) { $allowedValues = $this->getShopperInteractionAllowableValues(); if (!in_array($shopperInteraction, $allowedValues, true)) { - throw new \InvalidArgumentException( + error_log( sprintf( - "Invalid value '%s' for 'shopperInteraction', must be one of '%s'", + "shopperInteraction: unexpected enum value '%s' - Supported values are [%s]", $shopperInteraction, - implode("', '", $allowedValues) + implode(', ', $allowedValues) ) ); } diff --git a/src/Adyen/Model/StoredValue/StoredValueIssueResponse.php b/src/Adyen/Model/StoredValue/StoredValueIssueResponse.php index 57aa3d88c..20c77c995 100644 --- a/src/Adyen/Model/StoredValue/StoredValueIssueResponse.php +++ b/src/Adyen/Model/StoredValue/StoredValueIssueResponse.php @@ -483,11 +483,11 @@ public function setResultCode($resultCode) { $allowedValues = $this->getResultCodeAllowableValues(); if (!in_array($resultCode, $allowedValues, true)) { - throw new \InvalidArgumentException( + error_log( sprintf( - "Invalid value '%s' for 'resultCode', must be one of '%s'", + "resultCode: unexpected enum value '%s' - Supported values are [%s]", $resultCode, - implode("', '", $allowedValues) + implode(', ', $allowedValues) ) ); } diff --git a/src/Adyen/Model/StoredValue/StoredValueLoadRequest.php b/src/Adyen/Model/StoredValue/StoredValueLoadRequest.php index a2ce5aca9..a5b3c170a 100644 --- a/src/Adyen/Model/StoredValue/StoredValueLoadRequest.php +++ b/src/Adyen/Model/StoredValue/StoredValueLoadRequest.php @@ -436,11 +436,11 @@ public function setLoadType($loadType) { $allowedValues = $this->getLoadTypeAllowableValues(); if (!in_array($loadType, $allowedValues, true)) { - throw new \InvalidArgumentException( + error_log( sprintf( - "Invalid value '%s' for 'loadType', must be one of '%s'", + "loadType: unexpected enum value '%s' - Supported values are [%s]", $loadType, - implode("', '", $allowedValues) + implode(', ', $allowedValues) ) ); } @@ -566,11 +566,11 @@ public function setShopperInteraction($shopperInteraction) { $allowedValues = $this->getShopperInteractionAllowableValues(); if (!in_array($shopperInteraction, $allowedValues, true)) { - throw new \InvalidArgumentException( + error_log( sprintf( - "Invalid value '%s' for 'shopperInteraction', must be one of '%s'", + "shopperInteraction: unexpected enum value '%s' - Supported values are [%s]", $shopperInteraction, - implode("', '", $allowedValues) + implode(', ', $allowedValues) ) ); } diff --git a/src/Adyen/Model/StoredValue/StoredValueLoadResponse.php b/src/Adyen/Model/StoredValue/StoredValueLoadResponse.php index 695755b9e..0f371b60f 100644 --- a/src/Adyen/Model/StoredValue/StoredValueLoadResponse.php +++ b/src/Adyen/Model/StoredValue/StoredValueLoadResponse.php @@ -452,11 +452,11 @@ public function setResultCode($resultCode) { $allowedValues = $this->getResultCodeAllowableValues(); if (!in_array($resultCode, $allowedValues, true)) { - throw new \InvalidArgumentException( + error_log( sprintf( - "Invalid value '%s' for 'resultCode', must be one of '%s'", + "resultCode: unexpected enum value '%s' - Supported values are [%s]", $resultCode, - implode("', '", $allowedValues) + implode(', ', $allowedValues) ) ); } diff --git a/src/Adyen/Model/StoredValue/StoredValueStatusChangeRequest.php b/src/Adyen/Model/StoredValue/StoredValueStatusChangeRequest.php index 80438d28d..192961490 100644 --- a/src/Adyen/Model/StoredValue/StoredValueStatusChangeRequest.php +++ b/src/Adyen/Model/StoredValue/StoredValueStatusChangeRequest.php @@ -532,11 +532,11 @@ public function setShopperInteraction($shopperInteraction) { $allowedValues = $this->getShopperInteractionAllowableValues(); if (!in_array($shopperInteraction, $allowedValues, true)) { - throw new \InvalidArgumentException( + error_log( sprintf( - "Invalid value '%s' for 'shopperInteraction', must be one of '%s'", + "shopperInteraction: unexpected enum value '%s' - Supported values are [%s]", $shopperInteraction, - implode("', '", $allowedValues) + implode(', ', $allowedValues) ) ); } @@ -590,11 +590,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) ) ); } diff --git a/src/Adyen/Model/StoredValue/StoredValueStatusChangeResponse.php b/src/Adyen/Model/StoredValue/StoredValueStatusChangeResponse.php index 592164f7d..ccbcd572a 100644 --- a/src/Adyen/Model/StoredValue/StoredValueStatusChangeResponse.php +++ b/src/Adyen/Model/StoredValue/StoredValueStatusChangeResponse.php @@ -452,11 +452,11 @@ public function setResultCode($resultCode) { $allowedValues = $this->getResultCodeAllowableValues(); if (!in_array($resultCode, $allowedValues, true)) { - throw new \InvalidArgumentException( + error_log( sprintf( - "Invalid value '%s' for 'resultCode', must be one of '%s'", + "resultCode: unexpected enum value '%s' - Supported values are [%s]", $resultCode, - implode("', '", $allowedValues) + implode(', ', $allowedValues) ) ); } diff --git a/src/Adyen/Model/StoredValue/StoredValueVoidResponse.php b/src/Adyen/Model/StoredValue/StoredValueVoidResponse.php index 302ee6bf5..2f3203a8d 100644 --- a/src/Adyen/Model/StoredValue/StoredValueVoidResponse.php +++ b/src/Adyen/Model/StoredValue/StoredValueVoidResponse.php @@ -421,11 +421,11 @@ public function setResultCode($resultCode) { $allowedValues = $this->getResultCodeAllowableValues(); if (!in_array($resultCode, $allowedValues, true)) { - throw new \InvalidArgumentException( + error_log( sprintf( - "Invalid value '%s' for 'resultCode', must be one of '%s'", + "resultCode: unexpected enum value '%s' - Supported values are [%s]", $resultCode, - implode("', '", $allowedValues) + implode(', ', $allowedValues) ) ); }