Skip to content

Commit e1e6491

Browse files
removed incorrect check on batch ID parameter
1 parent 47b2a24 commit e1e6491

1 file changed

Lines changed: 16 additions & 16 deletions

File tree

CyberSource/api/batches_api.py

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -116,14 +116,14 @@ def get_batch_report_with_http_info(self, batch_id, **kwargs):
116116
self.logger.error("InvalidArgumentException : Missing the required parameter `batch_id` when calling `get_batch_report`")
117117
raise ValueError("Missing the required parameter `batch_id` when calling `get_batch_report`")
118118

119-
if 'batch_id' in params and params['batch_id'] > 32:
120-
if self.api_client.mconfig.log_config.enable_log:
121-
self.logger.error("InvalidArgumentException : Invalid value for parameter `batch_id` when calling `get_batch_report`, must be a value less than or equal to `32`")
122-
raise ValueError("Invalid value for parameter `batch_id` when calling `get_batch_report`, must be a value less than or equal to `32`")
123-
if 'batch_id' in params and params['batch_id'] < 16:
124-
if self.api_client.mconfig.log_config.enable_log:
125-
self.logger.error("InvalidArgumentException : Invalid value for parameter `batch_id` when calling `get_batch_report`, must be a value greater than or equal to `16`")
126-
raise ValueError("Invalid value for parameter `batch_id` when calling `get_batch_report`, must be a value greater than or equal to `16`")
119+
# if 'batch_id' in params and params['batch_id'] > 32:
120+
# if self.api_client.mconfig.log_config.enable_log:
121+
# self.logger.error("InvalidArgumentException : Invalid value for parameter `batch_id` when calling `get_batch_report`, must be a value less than or equal to `32`")
122+
# raise ValueError("Invalid value for parameter `batch_id` when calling `get_batch_report`, must be a value less than or equal to `32`")
123+
# if 'batch_id' in params and params['batch_id'] < 16:
124+
# if self.api_client.mconfig.log_config.enable_log:
125+
# self.logger.error("InvalidArgumentException : Invalid value for parameter `batch_id` when calling `get_batch_report`, must be a value greater than or equal to `16`")
126+
# raise ValueError("Invalid value for parameter `batch_id` when calling `get_batch_report`, must be a value greater than or equal to `16`")
127127

128128
collection_formats = {}
129129

@@ -237,14 +237,14 @@ def get_batch_status_with_http_info(self, batch_id, **kwargs):
237237
self.logger.error("InvalidArgumentException : Missing the required parameter `batch_id` when calling `get_batch_status`")
238238
raise ValueError("Missing the required parameter `batch_id` when calling `get_batch_status`")
239239

240-
if 'batch_id' in params and params['batch_id'] > 32:
241-
if self.api_client.mconfig.log_config.enable_log:
242-
self.logger.error("InvalidArgumentException : Invalid value for parameter `batch_id` when calling `get_batch_status`, must be a value less than or equal to `32`")
243-
raise ValueError("Invalid value for parameter `batch_id` when calling `get_batch_status`, must be a value less than or equal to `32`")
244-
if 'batch_id' in params and params['batch_id'] < 16:
245-
if self.api_client.mconfig.log_config.enable_log:
246-
self.logger.error("InvalidArgumentException : Invalid value for parameter `batch_id` when calling `get_batch_status`, must be a value greater than or equal to `16`")
247-
raise ValueError("Invalid value for parameter `batch_id` when calling `get_batch_status`, must be a value greater than or equal to `16`")
240+
# if 'batch_id' in params and params['batch_id'] > 32:
241+
# if self.api_client.mconfig.log_config.enable_log:
242+
# self.logger.error("InvalidArgumentException : Invalid value for parameter `batch_id` when calling `get_batch_status`, must be a value less than or equal to `32`")
243+
# raise ValueError("Invalid value for parameter `batch_id` when calling `get_batch_status`, must be a value less than or equal to `32`")
244+
# if 'batch_id' in params and params['batch_id'] < 16:
245+
# if self.api_client.mconfig.log_config.enable_log:
246+
# self.logger.error("InvalidArgumentException : Invalid value for parameter `batch_id` when calling `get_batch_status`, must be a value greater than or equal to `16`")
247+
# raise ValueError("Invalid value for parameter `batch_id` when calling `get_batch_status`, must be a value greater than or equal to `16`")
248248

249249
collection_formats = {}
250250

0 commit comments

Comments
 (0)