|
22 | 22 | from ..configuration import Configuration
|
23 | 23 | from ..api_client import ApiClient
|
24 | 24 | import CyberSource.logging.log_factory as LogFactory
|
| 25 | +from authenticationsdk.util.MLEUtility import MLEUtility |
| 26 | +from authenticationsdk.util.GlobalLabelParameters import GlobalLabelParameters |
| 27 | +from authenticationsdk.util.Utility import process_body |
25 | 28 |
|
26 | 29 | from ..utilities.tracking.sdk_tracker import SdkTracker
|
27 | 30 | class BatchesApi(object):
|
@@ -133,6 +136,14 @@ def get_batch_report_with_http_info(self, batch_id, **kwargs):
|
133 | 136 | body_params = None
|
134 | 137 | if 'GET' in ('POST'):
|
135 | 138 | body_params = '{}'
|
| 139 | + |
| 140 | + if 'GET' == GlobalLabelParameters.POST or 'GET' == GlobalLabelParameters.PUT or 'GET' == GlobalLabelParameters.PATCH: |
| 141 | + body_params = process_body(body_params) |
| 142 | + |
| 143 | + is_mle_supported_by_cybs_for_api = False |
| 144 | + if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, is_mle_supported_by_cybs_for_api, "get_batch_report,get_batch_report_with_http_info"): |
| 145 | + body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params) |
| 146 | + |
136 | 147 | # HTTP header `Accept`
|
137 | 148 | header_params['Accept'] = self.api_client.select_header_accept(['application/json;charset=utf-8'])
|
138 | 149 |
|
@@ -246,6 +257,14 @@ def get_batch_status_with_http_info(self, batch_id, **kwargs):
|
246 | 257 | body_params = None
|
247 | 258 | if 'GET' in ('POST'):
|
248 | 259 | body_params = '{}'
|
| 260 | + |
| 261 | + if 'GET' == GlobalLabelParameters.POST or 'GET' == GlobalLabelParameters.PUT or 'GET' == GlobalLabelParameters.PATCH: |
| 262 | + body_params = process_body(body_params) |
| 263 | + |
| 264 | + is_mle_supported_by_cybs_for_api = False |
| 265 | + if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, is_mle_supported_by_cybs_for_api, "get_batch_status,get_batch_status_with_http_info"): |
| 266 | + body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params) |
| 267 | + |
249 | 268 | # HTTP header `Accept`
|
250 | 269 | header_params['Accept'] = self.api_client.select_header_accept(['application/json;charset=utf-8'])
|
251 | 270 |
|
@@ -365,6 +384,14 @@ def get_batches_list_with_http_info(self, **kwargs):
|
365 | 384 | body_params = None
|
366 | 385 | if 'GET' in ('POST'):
|
367 | 386 | body_params = '{}'
|
| 387 | + |
| 388 | + if 'GET' == GlobalLabelParameters.POST or 'GET' == GlobalLabelParameters.PUT or 'GET' == GlobalLabelParameters.PATCH: |
| 389 | + body_params = process_body(body_params) |
| 390 | + |
| 391 | + is_mle_supported_by_cybs_for_api = False |
| 392 | + if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, is_mle_supported_by_cybs_for_api, "get_batches_list,get_batches_list_with_http_info"): |
| 393 | + body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params) |
| 394 | + |
368 | 395 | # HTTP header `Accept`
|
369 | 396 | header_params['Accept'] = self.api_client.select_header_accept(['application/json;charset=utf-8'])
|
370 | 397 |
|
@@ -478,6 +505,14 @@ def post_batch_with_http_info(self, body, **kwargs):
|
478 | 505 |
|
479 | 506 | sdkTracker = SdkTracker()
|
480 | 507 | body_params = sdkTracker.insert_developer_id_tracker(body_params, 'body', self.api_client.mconfig.run_environment, self.api_client.mconfig.defaultDeveloperId)
|
| 508 | + |
| 509 | + if 'POST' == GlobalLabelParameters.POST or 'POST' == GlobalLabelParameters.PUT or 'POST' == GlobalLabelParameters.PATCH: |
| 510 | + body_params = process_body(body_params) |
| 511 | + |
| 512 | + is_mle_supported_by_cybs_for_api = False |
| 513 | + if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, is_mle_supported_by_cybs_for_api, "post_batch,post_batch_with_http_info"): |
| 514 | + body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params) |
| 515 | + |
481 | 516 | # HTTP header `Accept`
|
482 | 517 | header_params['Accept'] = self.api_client.select_header_accept(['application/json;charset=utf-8'])
|
483 | 518 |
|
|
0 commit comments