Skip to content

Commit d6d2668

Browse files
AdyenAutomationBotAdyenAutomationBot
andauthored
[PaymentsAPIs] Code generation: update services and models (#813)
* [adyen-sdk-automation] automated changes * style(fmt): code formatted --------- Co-authored-by: AdyenAutomationBot <Adyen Automation plugins_dev@adyen.com>
1 parent f444e75 commit d6d2668

28 files changed

+96
-96
lines changed

src/Adyen/Model/BinLookup/CostEstimateRequest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -582,11 +582,11 @@ public function setShopperInteraction($shopperInteraction)
582582
{
583583
$allowedValues = $this->getShopperInteractionAllowableValues();
584584
if (!in_array($shopperInteraction, $allowedValues, true)) {
585-
throw new \InvalidArgumentException(
585+
error_log(
586586
sprintf(
587-
"Invalid value '%s' for 'shopperInteraction', must be one of '%s'",
587+
"shopperInteraction: unexpected enum value '%s' - Supported values are [%s]",
588588
$shopperInteraction,
589-
implode("', '", $allowedValues)
589+
implode(', ', $allowedValues)
590590
)
591591
);
592592
}

src/Adyen/Model/BinLookup/Recurring.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -374,11 +374,11 @@ public function setContract($contract)
374374
{
375375
$allowedValues = $this->getContractAllowableValues();
376376
if (!in_array($contract, $allowedValues, true)) {
377-
throw new \InvalidArgumentException(
377+
error_log(
378378
sprintf(
379-
"Invalid value '%s' for 'contract', must be one of '%s'",
379+
"contract: unexpected enum value '%s' - Supported values are [%s]",
380380
$contract,
381-
implode("', '", $allowedValues)
381+
implode(', ', $allowedValues)
382382
)
383383
);
384384
}
@@ -480,11 +480,11 @@ public function setTokenService($tokenService)
480480
{
481481
$allowedValues = $this->getTokenServiceAllowableValues();
482482
if (!in_array($tokenService, $allowedValues, true)) {
483-
throw new \InvalidArgumentException(
483+
error_log(
484484
sprintf(
485-
"Invalid value '%s' for 'tokenService', must be one of '%s'",
485+
"tokenService: unexpected enum value '%s' - Supported values are [%s]",
486486
$tokenService,
487-
implode("', '", $allowedValues)
487+
implode(', ', $allowedValues)
488488
)
489489
);
490490
}

src/Adyen/Model/Checkout/CreateCheckoutSessionRequest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1430,7 +1430,7 @@ public function getLineItems()
14301430
/**
14311431
* Sets lineItems
14321432
*
1433-
* @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.
1433+
* @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.
14341434
*
14351435
* @return self
14361436
*/

src/Adyen/Model/Checkout/CreateCheckoutSessionResponse.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1481,7 +1481,7 @@ public function getLineItems()
14811481
/**
14821482
* Sets lineItems
14831483
*
1484-
* @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.
1484+
* @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.
14851485
*
14861486
* @return self
14871487
*/

src/Adyen/Model/Checkout/DonationPaymentRequest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1133,7 +1133,7 @@ public function getLineItems()
11331133
/**
11341134
* Sets lineItems
11351135
*
1136-
* @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.
1136+
* @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.
11371137
*
11381138
* @return self
11391139
*/

src/Adyen/Model/Checkout/PaymentLinkRequest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1012,7 +1012,7 @@ public function getLineItems()
10121012
/**
10131013
* Sets lineItems
10141014
*
1015-
* @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.
1015+
* @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.
10161016
*
10171017
* @return self
10181018
*/

src/Adyen/Model/Checkout/PaymentLinkResponse.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1102,7 +1102,7 @@ public function getLineItems()
11021102
/**
11031103
* Sets lineItems
11041104
*
1105-
* @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.
1105+
* @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.
11061106
*
11071107
* @return self
11081108
*/

src/Adyen/Model/Checkout/PaymentRequest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1701,7 +1701,7 @@ public function getLineItems()
17011701
/**
17021702
* Sets lineItems
17031703
*
1704-
* @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.
1704+
* @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.
17051705
*
17061706
* @return self
17071707
*/

src/Adyen/Model/Payout/PayoutRequest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -661,11 +661,11 @@ public function setShopperInteraction($shopperInteraction)
661661
{
662662
$allowedValues = $this->getShopperInteractionAllowableValues();
663663
if (!in_array($shopperInteraction, $allowedValues, true)) {
664-
throw new \InvalidArgumentException(
664+
error_log(
665665
sprintf(
666-
"Invalid value '%s' for 'shopperInteraction', must be one of '%s'",
666+
"shopperInteraction: unexpected enum value '%s' - Supported values are [%s]",
667667
$shopperInteraction,
668-
implode("', '", $allowedValues)
668+
implode(', ', $allowedValues)
669669
)
670670
);
671671
}

src/Adyen/Model/Payout/PayoutResponse.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -651,11 +651,11 @@ public function setResultCode($resultCode)
651651
{
652652
$allowedValues = $this->getResultCodeAllowableValues();
653653
if (!in_array($resultCode, $allowedValues, true)) {
654-
throw new \InvalidArgumentException(
654+
error_log(
655655
sprintf(
656-
"Invalid value '%s' for 'resultCode', must be one of '%s'",
656+
"resultCode: unexpected enum value '%s' - Supported values are [%s]",
657657
$resultCode,
658-
implode("', '", $allowedValues)
658+
implode(', ', $allowedValues)
659659
)
660660
);
661661
}

0 commit comments

Comments
 (0)