Skip to content

Commit

Permalink
Merge pull request #108 from CyberSource/december-release-2023
Browse files Browse the repository at this point in the history
December release 2023
  • Loading branch information
monu-kumar-visa authored Dec 18, 2023
2 parents be26239 + cd72211 commit ffa9b4d
Show file tree
Hide file tree
Showing 818 changed files with 9,001 additions and 9,696 deletions.
184 changes: 92 additions & 92 deletions CyberSource/__init__.py

Large diffs are not rendered by default.

28 changes: 0 additions & 28 deletions CyberSource/api/batches_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,14 +116,6 @@ def get_batch_report_with_http_info(self, batch_id, **kwargs):
self.logger.error("InvalidArgumentException : Missing the required parameter `batch_id` when calling `get_batch_report`")
raise ValueError("Missing the required parameter `batch_id` when calling `get_batch_report`")

# if 'batch_id' in params and params['batch_id'] > 32:
# if self.api_client.mconfig.log_config.enable_log:
# 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`")
# raise ValueError("Invalid value for parameter `batch_id` when calling `get_batch_report`, must be a value less than or equal to `32`")
# if 'batch_id' in params and params['batch_id'] < 16:
# if self.api_client.mconfig.log_config.enable_log:
# 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`")
# raise ValueError("Invalid value for parameter `batch_id` when calling `get_batch_report`, must be a value greater than or equal to `16`")

collection_formats = {}

Expand Down Expand Up @@ -237,14 +229,6 @@ def get_batch_status_with_http_info(self, batch_id, **kwargs):
self.logger.error("InvalidArgumentException : Missing the required parameter `batch_id` when calling `get_batch_status`")
raise ValueError("Missing the required parameter `batch_id` when calling `get_batch_status`")

# if 'batch_id' in params and params['batch_id'] > 32:
# if self.api_client.mconfig.log_config.enable_log:
# 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`")
# raise ValueError("Invalid value for parameter `batch_id` when calling `get_batch_status`, must be a value less than or equal to `32`")
# if 'batch_id' in params and params['batch_id'] < 16:
# if self.api_client.mconfig.log_config.enable_log:
# 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`")
# raise ValueError("Invalid value for parameter `batch_id` when calling `get_batch_status`, must be a value greater than or equal to `16`")

collection_formats = {}

Expand Down Expand Up @@ -359,18 +343,6 @@ def get_batches_list_with_http_info(self, **kwargs):
params[key] = val
del params['kwargs']

if 'offset' in params and params['offset'] < 0:
if self.api_client.mconfig.log_config.enable_log:
self.logger.error("InvalidArgumentException : Invalid value for parameter `offset` when calling `get_batches_list`, must be a value greater than or equal to `0`")
raise ValueError("Invalid value for parameter `offset` when calling `get_batches_list`, must be a value greater than or equal to `0`")
if 'limit' in params and params['limit'] > 500:
if self.api_client.mconfig.log_config.enable_log:
self.logger.error("InvalidArgumentException : Invalid value for parameter `limit` when calling `get_batches_list`, must be a value less than or equal to `500`")
raise ValueError("Invalid value for parameter `limit` when calling `get_batches_list`, must be a value less than or equal to `500`")
if 'limit' in params and params['limit'] < 1:
if self.api_client.mconfig.log_config.enable_log:
self.logger.error("InvalidArgumentException : Invalid value for parameter `limit` when calling `get_batches_list`, must be a value greater than or equal to `1`")
raise ValueError("Invalid value for parameter `limit` when calling `get_batches_list`, must be a value greater than or equal to `1`")

collection_formats = {}

Expand Down
8 changes: 0 additions & 8 deletions CyberSource/api/chargeback_details_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,14 +125,6 @@ def get_chargeback_details_with_http_info(self, start_time, end_time, **kwargs):
self.logger.error("InvalidArgumentException : Missing the required parameter `end_time` when calling `get_chargeback_details`")
raise ValueError("Missing the required parameter `end_time` when calling `get_chargeback_details`")

if 'organization_id' in params and len(params['organization_id']) > 32:
if self.api_client.mconfig.log_config.enable_log:
self.logger.error("InvalidArgumentException : Invalid value for parameter `organization_id` when calling `get_chargeback_details`, length must be less than or equal to `32`")
raise ValueError("Invalid value for parameter `organization_id` when calling `get_chargeback_details`, length must be less than or equal to `32`")
if 'organization_id' in params and len(params['organization_id']) < 1:
if self.api_client.mconfig.log_config.enable_log:
self.logger.error("InvalidArgumentException : Invalid value for parameter `organization_id` when calling `get_chargeback_details`, length must be greater than or equal to `1`")
raise ValueError("Invalid value for parameter `organization_id` when calling `get_chargeback_details`, length must be greater than or equal to `1`")
if 'organization_id' in params and not re.search('[a-zA-Z0-9-_]+', params['organization_id']):
if self.api_client.mconfig.log_config.enable_log:
self.logger.error("InvalidArgumentException : Invalid value for parameter `organization_id` when calling `get_chargeback_details`, must conform to the pattern `/[a-zA-Z0-9-_]+/`")
Expand Down
8 changes: 0 additions & 8 deletions CyberSource/api/chargeback_summaries_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,14 +125,6 @@ def get_chargeback_summaries_with_http_info(self, start_time, end_time, **kwargs
self.logger.error("InvalidArgumentException : Missing the required parameter `end_time` when calling `get_chargeback_summaries`")
raise ValueError("Missing the required parameter `end_time` when calling `get_chargeback_summaries`")

if 'organization_id' in params and len(params['organization_id']) > 32:
if self.api_client.mconfig.log_config.enable_log:
self.logger.error("InvalidArgumentException : Invalid value for parameter `organization_id` when calling `get_chargeback_summaries`, length must be less than or equal to `32`")
raise ValueError("Invalid value for parameter `organization_id` when calling `get_chargeback_summaries`, length must be less than or equal to `32`")
if 'organization_id' in params and len(params['organization_id']) < 1:
if self.api_client.mconfig.log_config.enable_log:
self.logger.error("InvalidArgumentException : Invalid value for parameter `organization_id` when calling `get_chargeback_summaries`, length must be greater than or equal to `1`")
raise ValueError("Invalid value for parameter `organization_id` when calling `get_chargeback_summaries`, length must be greater than or equal to `1`")
if 'organization_id' in params and not re.search('[a-zA-Z0-9-_]+', params['organization_id']):
if self.api_client.mconfig.log_config.enable_log:
self.logger.error("InvalidArgumentException : Invalid value for parameter `organization_id` when calling `get_chargeback_summaries`, must conform to the pattern `/[a-zA-Z0-9-_]+/`")
Expand Down
8 changes: 0 additions & 8 deletions CyberSource/api/conversion_details_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,14 +125,6 @@ def get_conversion_detail_with_http_info(self, start_time, end_time, **kwargs):
self.logger.error("InvalidArgumentException : Missing the required parameter `end_time` when calling `get_conversion_detail`")
raise ValueError("Missing the required parameter `end_time` when calling `get_conversion_detail`")

if 'organization_id' in params and len(params['organization_id']) > 32:
if self.api_client.mconfig.log_config.enable_log:
self.logger.error("InvalidArgumentException : Invalid value for parameter `organization_id` when calling `get_conversion_detail`, length must be less than or equal to `32`")
raise ValueError("Invalid value for parameter `organization_id` when calling `get_conversion_detail`, length must be less than or equal to `32`")
if 'organization_id' in params and len(params['organization_id']) < 1:
if self.api_client.mconfig.log_config.enable_log:
self.logger.error("InvalidArgumentException : Invalid value for parameter `organization_id` when calling `get_conversion_detail`, length must be greater than or equal to `1`")
raise ValueError("Invalid value for parameter `organization_id` when calling `get_conversion_detail`, length must be greater than or equal to `1`")
if 'organization_id' in params and not re.search('[a-zA-Z0-9-_]+', params['organization_id']):
if self.api_client.mconfig.log_config.enable_log:
self.logger.error("InvalidArgumentException : Invalid value for parameter `organization_id` when calling `get_conversion_detail`, must conform to the pattern `/[a-zA-Z0-9-_]+/`")
Expand Down
Loading

0 comments on commit ffa9b4d

Please sign in to comment.