Skip to content

Commit ffa9b4d

Browse files
Merge pull request #108 from CyberSource/december-release-2023
December release 2023
2 parents be26239 + cd72211 commit ffa9b4d

818 files changed

Lines changed: 9001 additions & 9696 deletions

File tree

Some content is hidden

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

CyberSource/__init__.py

Lines changed: 92 additions & 92 deletions
Large diffs are not rendered by default.

CyberSource/api/batches_api.py

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -116,14 +116,6 @@ 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`")
127119

128120
collection_formats = {}
129121

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

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`")
248232

249233
collection_formats = {}
250234

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

362-
if 'offset' in params and params['offset'] < 0:
363-
if self.api_client.mconfig.log_config.enable_log:
364-
self.logger.error("InvalidArgumentException : Invalid value for parameter `offset` when calling `get_batches_list`, must be a value greater than or equal to `0`")
365-
raise ValueError("Invalid value for parameter `offset` when calling `get_batches_list`, must be a value greater than or equal to `0`")
366-
if 'limit' in params and params['limit'] > 500:
367-
if self.api_client.mconfig.log_config.enable_log:
368-
self.logger.error("InvalidArgumentException : Invalid value for parameter `limit` when calling `get_batches_list`, must be a value less than or equal to `500`")
369-
raise ValueError("Invalid value for parameter `limit` when calling `get_batches_list`, must be a value less than or equal to `500`")
370-
if 'limit' in params and params['limit'] < 1:
371-
if self.api_client.mconfig.log_config.enable_log:
372-
self.logger.error("InvalidArgumentException : Invalid value for parameter `limit` when calling `get_batches_list`, must be a value greater than or equal to `1`")
373-
raise ValueError("Invalid value for parameter `limit` when calling `get_batches_list`, must be a value greater than or equal to `1`")
374346

375347
collection_formats = {}
376348

CyberSource/api/chargeback_details_api.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -125,14 +125,6 @@ def get_chargeback_details_with_http_info(self, start_time, end_time, **kwargs):
125125
self.logger.error("InvalidArgumentException : Missing the required parameter `end_time` when calling `get_chargeback_details`")
126126
raise ValueError("Missing the required parameter `end_time` when calling `get_chargeback_details`")
127127

128-
if 'organization_id' in params and len(params['organization_id']) > 32:
129-
if self.api_client.mconfig.log_config.enable_log:
130-
self.logger.error("InvalidArgumentException : Invalid value for parameter `organization_id` when calling `get_chargeback_details`, length must be less than or equal to `32`")
131-
raise ValueError("Invalid value for parameter `organization_id` when calling `get_chargeback_details`, length must be less than or equal to `32`")
132-
if 'organization_id' in params and len(params['organization_id']) < 1:
133-
if self.api_client.mconfig.log_config.enable_log:
134-
self.logger.error("InvalidArgumentException : Invalid value for parameter `organization_id` when calling `get_chargeback_details`, length must be greater than or equal to `1`")
135-
raise ValueError("Invalid value for parameter `organization_id` when calling `get_chargeback_details`, length must be greater than or equal to `1`")
136128
if 'organization_id' in params and not re.search('[a-zA-Z0-9-_]+', params['organization_id']):
137129
if self.api_client.mconfig.log_config.enable_log:
138130
self.logger.error("InvalidArgumentException : Invalid value for parameter `organization_id` when calling `get_chargeback_details`, must conform to the pattern `/[a-zA-Z0-9-_]+/`")

CyberSource/api/chargeback_summaries_api.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -125,14 +125,6 @@ def get_chargeback_summaries_with_http_info(self, start_time, end_time, **kwargs
125125
self.logger.error("InvalidArgumentException : Missing the required parameter `end_time` when calling `get_chargeback_summaries`")
126126
raise ValueError("Missing the required parameter `end_time` when calling `get_chargeback_summaries`")
127127

128-
if 'organization_id' in params and len(params['organization_id']) > 32:
129-
if self.api_client.mconfig.log_config.enable_log:
130-
self.logger.error("InvalidArgumentException : Invalid value for parameter `organization_id` when calling `get_chargeback_summaries`, length must be less than or equal to `32`")
131-
raise ValueError("Invalid value for parameter `organization_id` when calling `get_chargeback_summaries`, length must be less than or equal to `32`")
132-
if 'organization_id' in params and len(params['organization_id']) < 1:
133-
if self.api_client.mconfig.log_config.enable_log:
134-
self.logger.error("InvalidArgumentException : Invalid value for parameter `organization_id` when calling `get_chargeback_summaries`, length must be greater than or equal to `1`")
135-
raise ValueError("Invalid value for parameter `organization_id` when calling `get_chargeback_summaries`, length must be greater than or equal to `1`")
136128
if 'organization_id' in params and not re.search('[a-zA-Z0-9-_]+', params['organization_id']):
137129
if self.api_client.mconfig.log_config.enable_log:
138130
self.logger.error("InvalidArgumentException : Invalid value for parameter `organization_id` when calling `get_chargeback_summaries`, must conform to the pattern `/[a-zA-Z0-9-_]+/`")

CyberSource/api/conversion_details_api.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -125,14 +125,6 @@ def get_conversion_detail_with_http_info(self, start_time, end_time, **kwargs):
125125
self.logger.error("InvalidArgumentException : Missing the required parameter `end_time` when calling `get_conversion_detail`")
126126
raise ValueError("Missing the required parameter `end_time` when calling `get_conversion_detail`")
127127

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

0 commit comments

Comments
 (0)