Skip to content

Commit 587edee

Browse files
[adyen-sdk-automation] automated changes
1 parent e87766a commit 587edee

Some content is hidden

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

50 files changed

+811
-583
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/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
}

src/Adyen/Model/Management/CreateMerchantWebhookRequest.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -590,11 +590,11 @@ public function setCommunicationFormat($communicationFormat)
590590
{
591591
$allowedValues = $this->getCommunicationFormatAllowableValues();
592592
if (!in_array($communicationFormat, $allowedValues, true)) {
593-
throw new \InvalidArgumentException(
593+
error_log(
594594
sprintf(
595-
"Invalid value '%s' for 'communicationFormat', must be one of '%s'",
595+
"communicationFormat: unexpected enum value '%s' - Supported values are [%s]",
596596
$communicationFormat,
597-
implode("', '", $allowedValues)
597+
implode(', ', $allowedValues)
598598
)
599599
);
600600
}
@@ -648,11 +648,11 @@ public function setEncryptionProtocol($encryptionProtocol)
648648
{
649649
$allowedValues = $this->getEncryptionProtocolAllowableValues();
650650
if (!in_array($encryptionProtocol, $allowedValues, true)) {
651-
throw new \InvalidArgumentException(
651+
error_log(
652652
sprintf(
653-
"Invalid value '%s' for 'encryptionProtocol', must be one of '%s'",
653+
"encryptionProtocol: unexpected enum value '%s' - Supported values are [%s]",
654654
$encryptionProtocol,
655-
implode("', '", $allowedValues)
655+
implode(', ', $allowedValues)
656656
)
657657
);
658658
}
@@ -682,11 +682,11 @@ public function setNetworkType($networkType)
682682
{
683683
$allowedValues = $this->getNetworkTypeAllowableValues();
684684
if (!in_array($networkType, $allowedValues, true)) {
685-
throw new \InvalidArgumentException(
685+
error_log(
686686
sprintf(
687-
"Invalid value '%s' for 'networkType', must be one of '%s'",
687+
"networkType: unexpected enum value '%s' - Supported values are [%s]",
688688
$networkType,
689-
implode("', '", $allowedValues)
689+
implode(', ', $allowedValues)
690690
)
691691
);
692692
}

src/Adyen/Model/Management/DinersInfo.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -389,11 +389,11 @@ public function setServiceLevel($serviceLevel)
389389
{
390390
$allowedValues = $this->getServiceLevelAllowableValues();
391391
if (!in_array($serviceLevel, $allowedValues, true)) {
392-
throw new \InvalidArgumentException(
392+
error_log(
393393
sprintf(
394-
"Invalid value '%s' for 'serviceLevel', must be one of '%s'",
394+
"serviceLevel: unexpected enum value '%s' - Supported values are [%s]",
395395
$serviceLevel,
396-
implode("', '", $allowedValues)
396+
implode(', ', $allowedValues)
397397
)
398398
);
399399
}

0 commit comments

Comments
 (0)