Skip to content

Commit 0f2eb01

Browse files
[adyen-sdk-automation] automated changes
1 parent 849460c commit 0f2eb01

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+896
-594
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
}

src/Adyen/Model/BalanceControl/ObjectSerializer.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public static function sanitizeForSerialization($data, $type = null, $format = n
8282
}
8383
}
8484
} else {
85-
foreach ($data as $property => $value) {
85+
foreach($data as $property => $value) {
8686
$values[$property] = self::sanitizeForSerialization($value);
8787
}
8888
}
@@ -118,9 +118,7 @@ public static function sanitizeFilename($filename)
118118
*/
119119
public static function sanitizeTimestamp($timestamp)
120120
{
121-
if (!is_string($timestamp)) {
122-
return $timestamp;
123-
}
121+
if (!is_string($timestamp)) return $timestamp;
124122

125123
return preg_replace('/(:\d{2}.\d{6})\d*/', '$1', $timestamp);
126124
}

src/Adyen/Model/Management/AccelInfo.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -329,11 +329,11 @@ public function setProcessingType($processingType)
329329
{
330330
$allowedValues = $this->getProcessingTypeAllowableValues();
331331
if (!in_array($processingType, $allowedValues, true)) {
332-
throw new \InvalidArgumentException(
332+
error_log(
333333
sprintf(
334-
"Invalid value '%s' for 'processingType', must be one of '%s'",
334+
"processingType: unexpected enum value '%s' - Supported values are [%s]",
335335
$processingType,
336-
implode("', '", $allowedValues)
336+
implode(', ', $allowedValues)
337337
)
338338
);
339339
}

src/Adyen/Model/Management/AdditionalSettings.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ public function getProperties()
317317
/**
318318
* Sets properties
319319
*
320-
* @param array<string,bool>|null $properties Object containing boolean key-value pairs. The key can be any [standard webhook additional setting](https://docs.adyen.com/development-resources/webhooks/additional-settings), and the value indicates if the setting is enabled. For example, `captureDelayHours`: **true** means the standard notifications you get will contain the number of hours remaining until the payment will be captured.
320+
* @param array<string,bool>|null $properties Object containing boolean key-value pairs. The key can be any [standard webhook additional setting](https://docs.adyen.com/development-resources/webhooks/additional-settings), and the value indicates if the setting is enabled. For example, `includeCaptureDelayHours`: **true** means the standard notifications you get will contain the number of hours remaining until the payment will be captured.
321321
*
322322
* @return self
323323
*/

src/Adyen/Model/Management/AdditionalSettingsResponse.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ public function getProperties()
348348
/**
349349
* Sets properties
350350
*
351-
* @param array<string,bool>|null $properties Object containing boolean key-value pairs. The key can be any [standard webhook additional setting](https://docs.adyen.com/development-resources/webhooks/additional-settings), and the value indicates if the setting is enabled. For example, `captureDelayHours`: **true** means the standard notifications you get will contain the number of hours remaining until the payment will be captured.
351+
* @param array<string,bool>|null $properties Object containing boolean key-value pairs. The key can be any [standard webhook additional setting](https://docs.adyen.com/development-resources/webhooks/additional-settings), and the value indicates if the setting is enabled. For example, `includeCaptureDelayHours`: **true** means the standard notifications you get will contain the number of hours remaining until the payment will be captured.
352352
*
353353
* @return self
354354
*/

src/Adyen/Model/Management/AmexInfo.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -384,11 +384,11 @@ public function setServiceLevel($serviceLevel)
384384
{
385385
$allowedValues = $this->getServiceLevelAllowableValues();
386386
if (!in_array($serviceLevel, $allowedValues, true)) {
387-
throw new \InvalidArgumentException(
387+
error_log(
388388
sprintf(
389-
"Invalid value '%s' for 'serviceLevel', must be one of '%s'",
389+
"serviceLevel: unexpected enum value '%s' - Supported values are [%s]",
390390
$serviceLevel,
391-
implode("', '", $allowedValues)
391+
implode(', ', $allowedValues)
392392
)
393393
);
394394
}

src/Adyen/Model/Management/AndroidApp.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -531,11 +531,11 @@ public function setStatus($status)
531531
{
532532
$allowedValues = $this->getStatusAllowableValues();
533533
if (!in_array($status, $allowedValues, true)) {
534-
throw new \InvalidArgumentException(
534+
error_log(
535535
sprintf(
536-
"Invalid value '%s' for 'status', must be one of '%s'",
536+
"status: unexpected enum value '%s' - Supported values are [%s]",
537537
$status,
538-
implode("', '", $allowedValues)
538+
implode(', ', $allowedValues)
539539
)
540540
);
541541
}

src/Adyen/Model/Management/Connectivity.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -324,11 +324,11 @@ public function setSimcardStatus($simcardStatus)
324324
{
325325
$allowedValues = $this->getSimcardStatusAllowableValues();
326326
if (!in_array($simcardStatus, $allowedValues, true)) {
327-
throw new \InvalidArgumentException(
327+
error_log(
328328
sprintf(
329-
"Invalid value '%s' for 'simcardStatus', must be one of '%s'",
329+
"simcardStatus: unexpected enum value '%s' - Supported values are [%s]",
330330
$simcardStatus,
331-
implode("', '", $allowedValues)
331+
implode(', ', $allowedValues)
332332
)
333333
);
334334
}

src/Adyen/Model/Management/CreateCompanyWebhookRequest.php

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -635,11 +635,11 @@ public function setCommunicationFormat($communicationFormat)
635635
{
636636
$allowedValues = $this->getCommunicationFormatAllowableValues();
637637
if (!in_array($communicationFormat, $allowedValues, true)) {
638-
throw new \InvalidArgumentException(
638+
error_log(
639639
sprintf(
640-
"Invalid value '%s' for 'communicationFormat', must be one of '%s'",
640+
"communicationFormat: unexpected enum value '%s' - Supported values are [%s]",
641641
$communicationFormat,
642-
implode("', '", $allowedValues)
642+
implode(', ', $allowedValues)
643643
)
644644
);
645645
}
@@ -693,11 +693,11 @@ public function setEncryptionProtocol($encryptionProtocol)
693693
{
694694
$allowedValues = $this->getEncryptionProtocolAllowableValues();
695695
if (!in_array($encryptionProtocol, $allowedValues, true)) {
696-
throw new \InvalidArgumentException(
696+
error_log(
697697
sprintf(
698-
"Invalid value '%s' for 'encryptionProtocol', must be one of '%s'",
698+
"encryptionProtocol: unexpected enum value '%s' - Supported values are [%s]",
699699
$encryptionProtocol,
700-
implode("', '", $allowedValues)
700+
implode(', ', $allowedValues)
701701
)
702702
);
703703
}
@@ -727,11 +727,11 @@ public function setFilterMerchantAccountType($filterMerchantAccountType)
727727
{
728728
$allowedValues = $this->getFilterMerchantAccountTypeAllowableValues();
729729
if (!in_array($filterMerchantAccountType, $allowedValues, true)) {
730-
throw new \InvalidArgumentException(
730+
error_log(
731731
sprintf(
732-
"Invalid value '%s' for 'filterMerchantAccountType', must be one of '%s'",
732+
"filterMerchantAccountType: unexpected enum value '%s' - Supported values are [%s]",
733733
$filterMerchantAccountType,
734-
implode("', '", $allowedValues)
734+
implode(', ', $allowedValues)
735735
)
736736
);
737737
}
@@ -785,11 +785,11 @@ public function setNetworkType($networkType)
785785
{
786786
$allowedValues = $this->getNetworkTypeAllowableValues();
787787
if (!in_array($networkType, $allowedValues, true)) {
788-
throw new \InvalidArgumentException(
788+
error_log(
789789
sprintf(
790-
"Invalid value '%s' for 'networkType', must be one of '%s'",
790+
"networkType: unexpected enum value '%s' - Supported values are [%s]",
791791
$networkType,
792-
implode("', '", $allowedValues)
792+
implode(', ', $allowedValues)
793793
)
794794
);
795795
}

0 commit comments

Comments
 (0)