@@ -635,11 +635,11 @@ public function setCommunicationFormat($communicationFormat)
635
635
{
636
636
$ allowedValues = $ this ->getCommunicationFormatAllowableValues ();
637
637
if (!in_array ($ communicationFormat , $ allowedValues , true )) {
638
- throw new \ InvalidArgumentException (
638
+ error_log (
639
639
sprintf (
640
- "Invalid value '%s' for 'communicationFormat', must be one of '%s' " ,
640
+ "communicationFormat: unexpected enum value '%s' - Supported values are [%s] " ,
641
641
$ communicationFormat ,
642
- implode (" ', ' " , $ allowedValues )
642
+ implode (', ' , $ allowedValues )
643
643
)
644
644
);
645
645
}
@@ -693,11 +693,11 @@ public function setEncryptionProtocol($encryptionProtocol)
693
693
{
694
694
$ allowedValues = $ this ->getEncryptionProtocolAllowableValues ();
695
695
if (!in_array ($ encryptionProtocol , $ allowedValues , true )) {
696
- throw new \ InvalidArgumentException (
696
+ error_log (
697
697
sprintf (
698
- "Invalid value '%s' for 'encryptionProtocol', must be one of '%s' " ,
698
+ "encryptionProtocol: unexpected enum value '%s' - Supported values are [%s] " ,
699
699
$ encryptionProtocol ,
700
- implode (" ', ' " , $ allowedValues )
700
+ implode (', ' , $ allowedValues )
701
701
)
702
702
);
703
703
}
@@ -727,11 +727,11 @@ public function setFilterMerchantAccountType($filterMerchantAccountType)
727
727
{
728
728
$ allowedValues = $ this ->getFilterMerchantAccountTypeAllowableValues ();
729
729
if (!in_array ($ filterMerchantAccountType , $ allowedValues , true )) {
730
- throw new \ InvalidArgumentException (
730
+ error_log (
731
731
sprintf (
732
- "Invalid value '%s' for 'filterMerchantAccountType', must be one of '%s' " ,
732
+ "filterMerchantAccountType: unexpected enum value '%s' - Supported values are [%s] " ,
733
733
$ filterMerchantAccountType ,
734
- implode (" ', ' " , $ allowedValues )
734
+ implode (', ' , $ allowedValues )
735
735
)
736
736
);
737
737
}
@@ -785,11 +785,11 @@ public function setNetworkType($networkType)
785
785
{
786
786
$ allowedValues = $ this ->getNetworkTypeAllowableValues ();
787
787
if (!in_array ($ networkType , $ allowedValues , true )) {
788
- throw new \ InvalidArgumentException (
788
+ error_log (
789
789
sprintf (
790
- "Invalid value '%s' for 'networkType', must be one of '%s' " ,
790
+ "networkType: unexpected enum value '%s' - Supported values are [%s] " ,
791
791
$ networkType ,
792
- implode (" ', ' " , $ allowedValues )
792
+ implode (', ' , $ allowedValues )
793
793
)
794
794
);
795
795
}
0 commit comments