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
6 changes: 3 additions & 3 deletions src/Adyen/Model/BinLookup/CostEstimateRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
)
);
}
Expand Down
12 changes: 6 additions & 6 deletions src/Adyen/Model/BinLookup/Recurring.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
)
);
}
Expand Down Expand Up @@ -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)
)
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Adyen/Model/Checkout/DonationPaymentRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Adyen/Model/Checkout/PaymentLinkRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Adyen/Model/Checkout/PaymentLinkResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Adyen/Model/Checkout/PaymentRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down
6 changes: 3 additions & 3 deletions src/Adyen/Model/Payout/PayoutRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
)
);
}
Expand Down
6 changes: 3 additions & 3 deletions src/Adyen/Model/Payout/PayoutResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
)
);
}
Expand Down
12 changes: 6 additions & 6 deletions src/Adyen/Model/Payout/Recurring.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
)
);
}
Expand Down Expand Up @@ -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)
)
);
}
Expand Down
6 changes: 3 additions & 3 deletions src/Adyen/Model/Payout/ResponseAdditionalDataCard.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
)
);
}
Expand Down
24 changes: 12 additions & 12 deletions src/Adyen/Model/Payout/ResponseAdditionalDataCommon.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
)
);
}
Expand Down Expand Up @@ -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)
)
);
}
Expand Down Expand Up @@ -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)
)
);
}
Expand Down Expand Up @@ -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)
)
);
}
Expand Down
6 changes: 3 additions & 3 deletions src/Adyen/Model/Payout/StoreDetailAndSubmitRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
)
);
}
Expand Down
6 changes: 3 additions & 3 deletions src/Adyen/Model/Payout/StoreDetailRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
)
);
}
Expand Down
6 changes: 3 additions & 3 deletions src/Adyen/Model/Payout/SubmitRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
)
);
}
Expand Down
12 changes: 6 additions & 6 deletions src/Adyen/Model/Recurring/Recurring.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
)
);
}
Expand Down Expand Up @@ -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)
)
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
)
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
)
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
)
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
)
);
}
Expand Down
6 changes: 3 additions & 3 deletions src/Adyen/Model/StoredValue/StoredValueIssueRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
)
);
}
Expand Down
6 changes: 3 additions & 3 deletions src/Adyen/Model/StoredValue/StoredValueIssueResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
)
);
}
Expand Down
Loading
Loading