Skip to content

Commit 86c1d94

Browse files
committed
pattern check removed for path param
1 parent 16b74f2 commit 86c1d94

60 files changed

Lines changed: 317 additions & 132 deletions

Some content is hidden

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

CyberSource/api/asymmetric_key_management_api.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ def create_p12_keys_with_http_info(self, create_p12_keys_request, **kwargs):
116116
raise ValueError("Missing the required parameter `create_p12_keys_request` when calling `create_p12_keys`")
117117

118118

119+
119120
collection_formats = {}
120121

121122
path_params = {}
@@ -229,6 +230,7 @@ def delete_bulk_p12_keys_with_http_info(self, delete_bulk_p12_keys_request, **kw
229230
raise ValueError("Missing the required parameter `delete_bulk_p12_keys_request` when calling `delete_bulk_p12_keys`")
230231

231232

233+
232234
collection_formats = {}
233235

234236
path_params = {}
@@ -342,6 +344,7 @@ def get_p12_key_details_with_http_info(self, key_id, **kwargs):
342344
raise ValueError("Missing the required parameter `key_id` when calling `get_p12_key_details`")
343345

344346

347+
345348
collection_formats = {}
346349

347350
path_params = {}
@@ -462,6 +465,8 @@ def update_asym_key_with_http_info(self, key_id, update_asym_keys_request, **kwa
462465
raise ValueError("Missing the required parameter `update_asym_keys_request` when calling `update_asym_key`")
463466

464467

468+
469+
465470
collection_formats = {}
466471

467472
path_params = {}

CyberSource/api/batches_api.py

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

118-
if 'batch_id' in params and not re.search('^[0-9]*$', params['batch_id']):
119-
if self.api_client.mconfig.log_config.enable_log:
120-
self.logger.error("InvalidArgumentException : Invalid value for parameter `batch_id` when calling `get_batch_report`, must conform to the pattern `/^[0-9]*$/`")
121-
raise ValueError("Invalid value for parameter `batch_id` when calling `get_batch_report`, must conform to the pattern `/^[0-9]*$/`")
118+
122119

123120
collection_formats = {}
124121

@@ -232,10 +229,7 @@ def get_batch_status_with_http_info(self, batch_id, **kwargs):
232229
self.logger.error("InvalidArgumentException : Missing the required parameter `batch_id` when calling `get_batch_status`")
233230
raise ValueError("Missing the required parameter `batch_id` when calling `get_batch_status`")
234231

235-
if 'batch_id' in params and not re.search('^[0-9]*$', params['batch_id']):
236-
if self.api_client.mconfig.log_config.enable_log:
237-
self.logger.error("InvalidArgumentException : Invalid value for parameter `batch_id` when calling `get_batch_status`, must conform to the pattern `/^[0-9]*$/`")
238-
raise ValueError("Invalid value for parameter `batch_id` when calling `get_batch_status`, must conform to the pattern `/^[0-9]*$/`")
232+
239233

240234
collection_formats = {}
241235

@@ -351,6 +345,10 @@ def get_batches_list_with_http_info(self, **kwargs):
351345
del params['kwargs']
352346

353347

348+
349+
350+
351+
354352
collection_formats = {}
355353

356354
path_params = {}
@@ -469,6 +467,7 @@ def post_batch_with_http_info(self, body, **kwargs):
469467
raise ValueError("Missing the required parameter `body` when calling `post_batch`")
470468

471469

470+
472471
collection_formats = {}
473472

474473
path_params = {}

CyberSource/api/billing_agreements_api.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,8 @@ def billing_agreements_de_registration_with_http_info(self, modify_billing_agree
123123
raise ValueError("Missing the required parameter `id` when calling `billing_agreements_de_registration`")
124124

125125

126+
127+
126128
collection_formats = {}
127129

128130
path_params = {}
@@ -246,6 +248,8 @@ def billing_agreements_intimation_with_http_info(self, intimate_billing_agreemen
246248
raise ValueError("Missing the required parameter `id` when calling `billing_agreements_intimation`")
247249

248250

251+
252+
249253
collection_formats = {}
250254

251255
path_params = {}
@@ -362,6 +366,7 @@ def billing_agreements_registration_with_http_info(self, create_billing_agreemen
362366
raise ValueError("Missing the required parameter `create_billing_agreement` when calling `billing_agreements_registration`")
363367

364368

369+
365370
collection_formats = {}
366371

367372
path_params = {}

CyberSource/api/capture_api.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,8 @@ def capture_payment_with_http_info(self, capture_payment_request, id, **kwargs):
123123
raise ValueError("Missing the required parameter `id` when calling `capture_payment`")
124124

125125

126+
127+
126128
collection_formats = {}
127129

128130
path_params = {}

CyberSource/api/chargeback_details_api.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -124,10 +124,9 @@ def get_chargeback_details_with_http_info(self, start_time, end_time, **kwargs):
124124
self.logger.error("InvalidArgumentException : Missing the required parameter `end_time` when calling `get_chargeback_details`")
125125
raise ValueError("Missing the required parameter `end_time` when calling `get_chargeback_details`")
126126

127-
if 'organization_id' in params and not re.search('[a-zA-Z0-9-_]+', params['organization_id']):
128-
if self.api_client.mconfig.log_config.enable_log:
129-
self.logger.error("InvalidArgumentException : Invalid value for parameter `organization_id` when calling `get_chargeback_details`, must conform to the pattern `/[a-zA-Z0-9-_]+/`")
130-
raise ValueError("Invalid value for parameter `organization_id` when calling `get_chargeback_details`, must conform to the pattern `/[a-zA-Z0-9-_]+/`")
127+
128+
129+
131130

132131
collection_formats = {}
133132

CyberSource/api/chargeback_summaries_api.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -124,10 +124,9 @@ def get_chargeback_summaries_with_http_info(self, start_time, end_time, **kwargs
124124
self.logger.error("InvalidArgumentException : Missing the required parameter `end_time` when calling `get_chargeback_summaries`")
125125
raise ValueError("Missing the required parameter `end_time` when calling `get_chargeback_summaries`")
126126

127-
if 'organization_id' in params and not re.search('[a-zA-Z0-9-_]+', params['organization_id']):
128-
if self.api_client.mconfig.log_config.enable_log:
129-
self.logger.error("InvalidArgumentException : Invalid value for parameter `organization_id` when calling `get_chargeback_summaries`, must conform to the pattern `/[a-zA-Z0-9-_]+/`")
130-
raise ValueError("Invalid value for parameter `organization_id` when calling `get_chargeback_summaries`, must conform to the pattern `/[a-zA-Z0-9-_]+/`")
127+
128+
129+
131130

132131
collection_formats = {}
133132

CyberSource/api/conversion_details_api.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -124,10 +124,9 @@ def get_conversion_detail_with_http_info(self, start_time, end_time, **kwargs):
124124
self.logger.error("InvalidArgumentException : Missing the required parameter `end_time` when calling `get_conversion_detail`")
125125
raise ValueError("Missing the required parameter `end_time` when calling `get_conversion_detail`")
126126

127-
if 'organization_id' in params and not re.search('[a-zA-Z0-9-_]+', params['organization_id']):
128-
if self.api_client.mconfig.log_config.enable_log:
129-
self.logger.error("InvalidArgumentException : Invalid value for parameter `organization_id` when calling `get_conversion_detail`, must conform to the pattern `/[a-zA-Z0-9-_]+/`")
130-
raise ValueError("Invalid value for parameter `organization_id` when calling `get_conversion_detail`, must conform to the pattern `/[a-zA-Z0-9-_]+/`")
127+
128+
129+
131130

132131
collection_formats = {}
133132

CyberSource/api/create_new_webhooks_api.py

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ def create_webhook_subscription_with_http_info(self, **kwargs):
114114
del params['kwargs']
115115

116116

117+
117118
collection_formats = {}
118119

119120
path_params = {}
@@ -230,6 +231,7 @@ def find_products_to_subscribe_with_http_info(self, organization_id, **kwargs):
230231
raise ValueError("Missing the required parameter `organization_id` when calling `find_products_to_subscribe`")
231232

232233

234+
233235
collection_formats = {}
234236

235237
path_params = {}
@@ -356,14 +358,10 @@ def save_sym_egress_key_with_http_info(self, v_c_sender_organization_id, v_c_per
356358
self.logger.error("InvalidArgumentException : Missing the required parameter `v_c_permissions` when calling `save_sym_egress_key`")
357359
raise ValueError("Missing the required parameter `v_c_permissions` when calling `save_sym_egress_key`")
358360

359-
if 'v_c_sender_organization_id' in params and not re.search('^[A-Za-z0-9\\-_]+$', params['v_c_sender_organization_id']):
360-
if self.api_client.mconfig.log_config.enable_log:
361-
self.logger.error("InvalidArgumentException : Invalid value for parameter `v_c_sender_organization_id` when calling `save_sym_egress_key`, must conform to the pattern `/^[A-Za-z0-9\\-_]+$/`")
362-
raise ValueError("Invalid value for parameter `v_c_sender_organization_id` when calling `save_sym_egress_key`, must conform to the pattern `/^[A-Za-z0-9\\-_]+$/`")
363-
if 'v_c_correlation_id' in params and not re.search('^[A-Za-z0-9\\.\\-_:]+$', params['v_c_correlation_id']):
364-
if self.api_client.mconfig.log_config.enable_log:
365-
self.logger.error("InvalidArgumentException : Invalid value for parameter `v_c_correlation_id` when calling `save_sym_egress_key`, must conform to the pattern `/^[A-Za-z0-9\\.\\-_:]+$/`")
366-
raise ValueError("Invalid value for parameter `v_c_correlation_id` when calling `save_sym_egress_key`, must conform to the pattern `/^[A-Za-z0-9\\.\\-_:]+$/`")
361+
362+
363+
364+
367365

368366
collection_formats = {}
369367

CyberSource/api/credit_api.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ def create_credit_with_http_info(self, create_credit_request, **kwargs):
116116
raise ValueError("Missing the required parameter `create_credit_request` when calling `create_credit`")
117117

118118

119+
119120
collection_formats = {}
120121

121122
path_params = {}

CyberSource/api/customer_api.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,8 @@ def delete_customer_with_http_info(self, customer_id, **kwargs):
118118
raise ValueError("Missing the required parameter `customer_id` when calling `delete_customer`")
119119

120120

121+
122+
121123
collection_formats = {}
122124

123125
path_params = {}
@@ -235,6 +237,8 @@ def get_customer_with_http_info(self, customer_id, **kwargs):
235237
raise ValueError("Missing the required parameter `customer_id` when calling `get_customer`")
236238

237239

240+
241+
238242
collection_formats = {}
239243

240244
path_params = {}
@@ -361,6 +365,10 @@ def patch_customer_with_http_info(self, customer_id, patch_customer_request, **k
361365
raise ValueError("Missing the required parameter `patch_customer_request` when calling `patch_customer`")
362366

363367

368+
369+
370+
371+
364372
collection_formats = {}
365373

366374
path_params = {}
@@ -483,6 +491,8 @@ def post_customer_with_http_info(self, post_customer_request, **kwargs):
483491
raise ValueError("Missing the required parameter `post_customer_request` when calling `post_customer`")
484492

485493

494+
495+
486496
collection_formats = {}
487497

488498
path_params = {}

0 commit comments

Comments
 (0)