diff --git a/CyberSource/api/batches_api.py b/CyberSource/api/batches_api.py index 3b5f2fd0..4aece210 100644 --- a/CyberSource/api/batches_api.py +++ b/CyberSource/api/batches_api.py @@ -153,6 +153,8 @@ def get_batch_report_with_http_info(self, batch_id, **kwargs): if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, inbound_mle_status, "get_batch_report,get_batch_report_with_http_info"): body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params) + isResponseMLEforApi = MLEUtility.check_is_response_mle_for_api(self.api_client.mconfig, "get_batch_report,get_batch_report_with_http_info") + # Authentication setting auth_settings = [] @@ -169,7 +171,8 @@ def get_batch_report_with_http_info(self, batch_id, **kwargs): _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) + collection_formats=collection_formats, + isResponseMLEforApi=isResponseMLEforApi) def get_batch_status(self, batch_id, **kwargs): """ @@ -276,6 +279,8 @@ def get_batch_status_with_http_info(self, batch_id, **kwargs): if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, inbound_mle_status, "get_batch_status,get_batch_status_with_http_info"): body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params) + isResponseMLEforApi = MLEUtility.check_is_response_mle_for_api(self.api_client.mconfig, "get_batch_status,get_batch_status_with_http_info") + # Authentication setting auth_settings = [] @@ -292,7 +297,8 @@ def get_batch_status_with_http_info(self, batch_id, **kwargs): _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) + collection_formats=collection_formats, + isResponseMLEforApi=isResponseMLEforApi) def get_batches_list(self, **kwargs): """ @@ -405,6 +411,8 @@ def get_batches_list_with_http_info(self, **kwargs): if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, inbound_mle_status, "get_batches_list,get_batches_list_with_http_info"): body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params) + isResponseMLEforApi = MLEUtility.check_is_response_mle_for_api(self.api_client.mconfig, "get_batches_list,get_batches_list_with_http_info") + # Authentication setting auth_settings = [] @@ -421,7 +429,8 @@ def get_batches_list_with_http_info(self, **kwargs): _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) + collection_formats=collection_formats, + isResponseMLEforApi=isResponseMLEforApi) def post_batch(self, body, **kwargs): """ @@ -524,6 +533,8 @@ def post_batch_with_http_info(self, body, **kwargs): if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, inbound_mle_status, "post_batch,post_batch_with_http_info"): body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params) + isResponseMLEforApi = MLEUtility.check_is_response_mle_for_api(self.api_client.mconfig, "post_batch,post_batch_with_http_info") + # Authentication setting auth_settings = [] @@ -540,4 +551,5 @@ def post_batch_with_http_info(self, body, **kwargs): _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) + collection_formats=collection_formats, + isResponseMLEforApi=isResponseMLEforApi) diff --git a/CyberSource/api/billing_agreements_api.py b/CyberSource/api/billing_agreements_api.py index a96f8052..445360b6 100644 --- a/CyberSource/api/billing_agreements_api.py +++ b/CyberSource/api/billing_agreements_api.py @@ -159,6 +159,8 @@ def billing_agreements_de_registration_with_http_info(self, modify_billing_agree if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, inbound_mle_status, "billing_agreements_de_registration,billing_agreements_de_registration_with_http_info"): body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params) + isResponseMLEforApi = MLEUtility.check_is_response_mle_for_api(self.api_client.mconfig, "billing_agreements_de_registration,billing_agreements_de_registration_with_http_info") + # Authentication setting auth_settings = [] @@ -175,7 +177,8 @@ def billing_agreements_de_registration_with_http_info(self, modify_billing_agree _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) + collection_formats=collection_formats, + isResponseMLEforApi=isResponseMLEforApi) def billing_agreements_intimation(self, intimate_billing_agreement, id, **kwargs): """ @@ -288,6 +291,8 @@ def billing_agreements_intimation_with_http_info(self, intimate_billing_agreemen if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, inbound_mle_status, "billing_agreements_intimation,billing_agreements_intimation_with_http_info"): body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params) + isResponseMLEforApi = MLEUtility.check_is_response_mle_for_api(self.api_client.mconfig, "billing_agreements_intimation,billing_agreements_intimation_with_http_info") + # Authentication setting auth_settings = [] @@ -304,7 +309,8 @@ def billing_agreements_intimation_with_http_info(self, intimate_billing_agreemen _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) + collection_formats=collection_formats, + isResponseMLEforApi=isResponseMLEforApi) def billing_agreements_registration(self, create_billing_agreement, **kwargs): """ @@ -407,6 +413,8 @@ def billing_agreements_registration_with_http_info(self, create_billing_agreemen if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, inbound_mle_status, "billing_agreements_registration,billing_agreements_registration_with_http_info"): body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params) + isResponseMLEforApi = MLEUtility.check_is_response_mle_for_api(self.api_client.mconfig, "billing_agreements_registration,billing_agreements_registration_with_http_info") + # Authentication setting auth_settings = [] @@ -423,4 +431,5 @@ def billing_agreements_registration_with_http_info(self, create_billing_agreemen _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) + collection_formats=collection_formats, + isResponseMLEforApi=isResponseMLEforApi) diff --git a/CyberSource/api/bin_lookup_api.py b/CyberSource/api/bin_lookup_api.py index 34bfbfef..7e234360 100644 --- a/CyberSource/api/bin_lookup_api.py +++ b/CyberSource/api/bin_lookup_api.py @@ -152,6 +152,8 @@ def get_account_info_with_http_info(self, create_bin_lookup_request, **kwargs): if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, inbound_mle_status, "get_account_info,get_account_info_with_http_info"): body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params) + isResponseMLEforApi = MLEUtility.check_is_response_mle_for_api(self.api_client.mconfig, "get_account_info,get_account_info_with_http_info") + # Authentication setting auth_settings = [] @@ -168,4 +170,5 @@ def get_account_info_with_http_info(self, create_bin_lookup_request, **kwargs): _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) + collection_formats=collection_formats, + isResponseMLEforApi=isResponseMLEforApi) diff --git a/CyberSource/api/capture_api.py b/CyberSource/api/capture_api.py index 760c963f..e05328fe 100644 --- a/CyberSource/api/capture_api.py +++ b/CyberSource/api/capture_api.py @@ -159,6 +159,8 @@ def capture_payment_with_http_info(self, capture_payment_request, id, **kwargs): if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, inbound_mle_status, "capture_payment,capture_payment_with_http_info"): body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params) + isResponseMLEforApi = MLEUtility.check_is_response_mle_for_api(self.api_client.mconfig, "capture_payment,capture_payment_with_http_info") + # Authentication setting auth_settings = [] @@ -175,4 +177,5 @@ def capture_payment_with_http_info(self, capture_payment_request, id, **kwargs): _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) + collection_formats=collection_formats, + isResponseMLEforApi=isResponseMLEforApi) diff --git a/CyberSource/api/chargeback_details_api.py b/CyberSource/api/chargeback_details_api.py index 24a50c3d..8f2f4661 100644 --- a/CyberSource/api/chargeback_details_api.py +++ b/CyberSource/api/chargeback_details_api.py @@ -165,6 +165,8 @@ def get_chargeback_details_with_http_info(self, start_time, end_time, **kwargs): if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, inbound_mle_status, "get_chargeback_details,get_chargeback_details_with_http_info"): body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params) + isResponseMLEforApi = MLEUtility.check_is_response_mle_for_api(self.api_client.mconfig, "get_chargeback_details,get_chargeback_details_with_http_info") + # Authentication setting auth_settings = [] @@ -181,4 +183,5 @@ def get_chargeback_details_with_http_info(self, start_time, end_time, **kwargs): _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) + collection_formats=collection_formats, + isResponseMLEforApi=isResponseMLEforApi) diff --git a/CyberSource/api/chargeback_summaries_api.py b/CyberSource/api/chargeback_summaries_api.py index 6c309804..107cee16 100644 --- a/CyberSource/api/chargeback_summaries_api.py +++ b/CyberSource/api/chargeback_summaries_api.py @@ -165,6 +165,8 @@ def get_chargeback_summaries_with_http_info(self, start_time, end_time, **kwargs if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, inbound_mle_status, "get_chargeback_summaries,get_chargeback_summaries_with_http_info"): body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params) + isResponseMLEforApi = MLEUtility.check_is_response_mle_for_api(self.api_client.mconfig, "get_chargeback_summaries,get_chargeback_summaries_with_http_info") + # Authentication setting auth_settings = [] @@ -181,4 +183,5 @@ def get_chargeback_summaries_with_http_info(self, start_time, end_time, **kwargs _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) + collection_formats=collection_formats, + isResponseMLEforApi=isResponseMLEforApi) diff --git a/CyberSource/api/conversion_details_api.py b/CyberSource/api/conversion_details_api.py index 61332df4..edad9850 100644 --- a/CyberSource/api/conversion_details_api.py +++ b/CyberSource/api/conversion_details_api.py @@ -165,6 +165,8 @@ def get_conversion_detail_with_http_info(self, start_time, end_time, **kwargs): if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, inbound_mle_status, "get_conversion_detail,get_conversion_detail_with_http_info"): body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params) + isResponseMLEforApi = MLEUtility.check_is_response_mle_for_api(self.api_client.mconfig, "get_conversion_detail,get_conversion_detail_with_http_info") + # Authentication setting auth_settings = [] @@ -181,4 +183,5 @@ def get_conversion_detail_with_http_info(self, start_time, end_time, **kwargs): _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) + collection_formats=collection_formats, + isResponseMLEforApi=isResponseMLEforApi) diff --git a/CyberSource/api/create_new_webhooks_api.py b/CyberSource/api/create_new_webhooks_api.py index 9ceedce6..ad2b98a0 100644 --- a/CyberSource/api/create_new_webhooks_api.py +++ b/CyberSource/api/create_new_webhooks_api.py @@ -153,6 +153,8 @@ def find_products_to_subscribe_with_http_info(self, organization_id, **kwargs): if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, inbound_mle_status, "find_products_to_subscribe,find_products_to_subscribe_with_http_info"): body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params) + isResponseMLEforApi = MLEUtility.check_is_response_mle_for_api(self.api_client.mconfig, "find_products_to_subscribe,find_products_to_subscribe_with_http_info") + # Authentication setting auth_settings = [] @@ -169,7 +171,8 @@ def find_products_to_subscribe_with_http_info(self, organization_id, **kwargs): _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) + collection_formats=collection_formats, + isResponseMLEforApi=isResponseMLEforApi) def notification_subscriptions_v2_webhooks_post(self, **kwargs): """ @@ -267,6 +270,8 @@ def notification_subscriptions_v2_webhooks_post_with_http_info(self, **kwargs): if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, inbound_mle_status, "notification_subscriptions_v2_webhooks_post,notification_subscriptions_v2_webhooks_post_with_http_info"): body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params) + isResponseMLEforApi = MLEUtility.check_is_response_mle_for_api(self.api_client.mconfig, "notification_subscriptions_v2_webhooks_post,notification_subscriptions_v2_webhooks_post_with_http_info") + # Authentication setting auth_settings = [] @@ -283,7 +288,8 @@ def notification_subscriptions_v2_webhooks_post_with_http_info(self, **kwargs): _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) + collection_formats=collection_formats, + isResponseMLEforApi=isResponseMLEforApi) def save_sym_egress_key(self, v_c_sender_organization_id, v_c_permissions, **kwargs): """ @@ -403,6 +409,8 @@ def save_sym_egress_key_with_http_info(self, v_c_sender_organization_id, v_c_per if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, inbound_mle_status, "save_sym_egress_key,save_sym_egress_key_with_http_info"): body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params) + isResponseMLEforApi = MLEUtility.check_is_response_mle_for_api(self.api_client.mconfig, "save_sym_egress_key,save_sym_egress_key_with_http_info") + # Authentication setting auth_settings = [] @@ -419,4 +427,5 @@ def save_sym_egress_key_with_http_info(self, v_c_sender_organization_id, v_c_per _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) + collection_formats=collection_formats, + isResponseMLEforApi=isResponseMLEforApi) diff --git a/CyberSource/api/credit_api.py b/CyberSource/api/credit_api.py index 4a0f74ce..ff5d8c8f 100644 --- a/CyberSource/api/credit_api.py +++ b/CyberSource/api/credit_api.py @@ -149,6 +149,8 @@ def create_credit_with_http_info(self, create_credit_request, **kwargs): if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, inbound_mle_status, "create_credit,create_credit_with_http_info"): body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params) + isResponseMLEforApi = MLEUtility.check_is_response_mle_for_api(self.api_client.mconfig, "create_credit,create_credit_with_http_info") + # Authentication setting auth_settings = [] @@ -165,4 +167,5 @@ def create_credit_with_http_info(self, create_credit_request, **kwargs): _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) + collection_formats=collection_formats, + isResponseMLEforApi=isResponseMLEforApi) diff --git a/CyberSource/api/customer_api.py b/CyberSource/api/customer_api.py index 9d4791d2..cf9629cb 100644 --- a/CyberSource/api/customer_api.py +++ b/CyberSource/api/customer_api.py @@ -157,6 +157,8 @@ def delete_customer_with_http_info(self, customer_id, **kwargs): if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, inbound_mle_status, "delete_customer,delete_customer_with_http_info"): body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params) + isResponseMLEforApi = MLEUtility.check_is_response_mle_for_api(self.api_client.mconfig, "delete_customer,delete_customer_with_http_info") + # Authentication setting auth_settings = [] @@ -173,7 +175,8 @@ def delete_customer_with_http_info(self, customer_id, **kwargs): _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) + collection_formats=collection_formats, + isResponseMLEforApi=isResponseMLEforApi) def get_customer(self, customer_id, **kwargs): """ @@ -284,6 +287,8 @@ def get_customer_with_http_info(self, customer_id, **kwargs): if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, inbound_mle_status, "get_customer,get_customer_with_http_info"): body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params) + isResponseMLEforApi = MLEUtility.check_is_response_mle_for_api(self.api_client.mconfig, "get_customer,get_customer_with_http_info") + # Authentication setting auth_settings = [] @@ -300,7 +305,8 @@ def get_customer_with_http_info(self, customer_id, **kwargs): _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) + collection_formats=collection_formats, + isResponseMLEforApi=isResponseMLEforApi) def patch_customer(self, customer_id, patch_customer_request, **kwargs): """ @@ -421,6 +427,8 @@ def patch_customer_with_http_info(self, customer_id, patch_customer_request, **k if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, inbound_mle_status, "patch_customer,patch_customer_with_http_info"): body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params) + isResponseMLEforApi = MLEUtility.check_is_response_mle_for_api(self.api_client.mconfig, "patch_customer,patch_customer_with_http_info") + # Authentication setting auth_settings = [] @@ -437,7 +445,8 @@ def patch_customer_with_http_info(self, customer_id, patch_customer_request, **k _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) + collection_formats=collection_formats, + isResponseMLEforApi=isResponseMLEforApi) def post_customer(self, post_customer_request, **kwargs): """ @@ -544,6 +553,8 @@ def post_customer_with_http_info(self, post_customer_request, **kwargs): if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, inbound_mle_status, "post_customer,post_customer_with_http_info"): body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params) + isResponseMLEforApi = MLEUtility.check_is_response_mle_for_api(self.api_client.mconfig, "post_customer,post_customer_with_http_info") + # Authentication setting auth_settings = [] @@ -560,4 +571,5 @@ def post_customer_with_http_info(self, post_customer_request, **kwargs): _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) + collection_formats=collection_formats, + isResponseMLEforApi=isResponseMLEforApi) diff --git a/CyberSource/api/customer_payment_instrument_api.py b/CyberSource/api/customer_payment_instrument_api.py index e871d5bd..ae03483b 100644 --- a/CyberSource/api/customer_payment_instrument_api.py +++ b/CyberSource/api/customer_payment_instrument_api.py @@ -167,6 +167,8 @@ def delete_customer_payment_instrument_with_http_info(self, customer_id, payment if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, inbound_mle_status, "delete_customer_payment_instrument,delete_customer_payment_instrument_with_http_info"): body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params) + isResponseMLEforApi = MLEUtility.check_is_response_mle_for_api(self.api_client.mconfig, "delete_customer_payment_instrument,delete_customer_payment_instrument_with_http_info") + # Authentication setting auth_settings = [] @@ -183,7 +185,8 @@ def delete_customer_payment_instrument_with_http_info(self, customer_id, payment _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) + collection_formats=collection_formats, + isResponseMLEforApi=isResponseMLEforApi) def get_customer_payment_instrument(self, customer_id, payment_instrument_id, **kwargs): """ @@ -304,6 +307,8 @@ def get_customer_payment_instrument_with_http_info(self, customer_id, payment_in if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, inbound_mle_status, "get_customer_payment_instrument,get_customer_payment_instrument_with_http_info"): body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params) + isResponseMLEforApi = MLEUtility.check_is_response_mle_for_api(self.api_client.mconfig, "get_customer_payment_instrument,get_customer_payment_instrument_with_http_info") + # Authentication setting auth_settings = [] @@ -320,7 +325,8 @@ def get_customer_payment_instrument_with_http_info(self, customer_id, payment_in _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) + collection_formats=collection_formats, + isResponseMLEforApi=isResponseMLEforApi) def get_customer_payment_instruments_list(self, customer_id, **kwargs): """ @@ -439,6 +445,8 @@ def get_customer_payment_instruments_list_with_http_info(self, customer_id, **kw if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, inbound_mle_status, "get_customer_payment_instruments_list,get_customer_payment_instruments_list_with_http_info"): body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params) + isResponseMLEforApi = MLEUtility.check_is_response_mle_for_api(self.api_client.mconfig, "get_customer_payment_instruments_list,get_customer_payment_instruments_list_with_http_info") + # Authentication setting auth_settings = [] @@ -455,7 +463,8 @@ def get_customer_payment_instruments_list_with_http_info(self, customer_id, **kw _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) + collection_formats=collection_formats, + isResponseMLEforApi=isResponseMLEforApi) def patch_customers_payment_instrument(self, customer_id, payment_instrument_id, patch_customer_payment_instrument_request, **kwargs): """ @@ -586,6 +595,8 @@ def patch_customers_payment_instrument_with_http_info(self, customer_id, payment if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, inbound_mle_status, "patch_customers_payment_instrument,patch_customers_payment_instrument_with_http_info"): body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params) + isResponseMLEforApi = MLEUtility.check_is_response_mle_for_api(self.api_client.mconfig, "patch_customers_payment_instrument,patch_customers_payment_instrument_with_http_info") + # Authentication setting auth_settings = [] @@ -602,7 +613,8 @@ def patch_customers_payment_instrument_with_http_info(self, customer_id, payment _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) + collection_formats=collection_formats, + isResponseMLEforApi=isResponseMLEforApi) def post_customer_payment_instrument(self, customer_id, post_customer_payment_instrument_request, **kwargs): """ @@ -719,6 +731,8 @@ def post_customer_payment_instrument_with_http_info(self, customer_id, post_cust if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, inbound_mle_status, "post_customer_payment_instrument,post_customer_payment_instrument_with_http_info"): body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params) + isResponseMLEforApi = MLEUtility.check_is_response_mle_for_api(self.api_client.mconfig, "post_customer_payment_instrument,post_customer_payment_instrument_with_http_info") + # Authentication setting auth_settings = [] @@ -735,4 +749,5 @@ def post_customer_payment_instrument_with_http_info(self, customer_id, post_cust _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) + collection_formats=collection_formats, + isResponseMLEforApi=isResponseMLEforApi) diff --git a/CyberSource/api/customer_shipping_address_api.py b/CyberSource/api/customer_shipping_address_api.py index cce46b26..c24d881c 100644 --- a/CyberSource/api/customer_shipping_address_api.py +++ b/CyberSource/api/customer_shipping_address_api.py @@ -167,6 +167,8 @@ def delete_customer_shipping_address_with_http_info(self, customer_id, shipping_ if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, inbound_mle_status, "delete_customer_shipping_address,delete_customer_shipping_address_with_http_info"): body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params) + isResponseMLEforApi = MLEUtility.check_is_response_mle_for_api(self.api_client.mconfig, "delete_customer_shipping_address,delete_customer_shipping_address_with_http_info") + # Authentication setting auth_settings = [] @@ -183,7 +185,8 @@ def delete_customer_shipping_address_with_http_info(self, customer_id, shipping_ _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) + collection_formats=collection_formats, + isResponseMLEforApi=isResponseMLEforApi) def get_customer_shipping_address(self, customer_id, shipping_address_id, **kwargs): """ @@ -304,6 +307,8 @@ def get_customer_shipping_address_with_http_info(self, customer_id, shipping_add if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, inbound_mle_status, "get_customer_shipping_address,get_customer_shipping_address_with_http_info"): body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params) + isResponseMLEforApi = MLEUtility.check_is_response_mle_for_api(self.api_client.mconfig, "get_customer_shipping_address,get_customer_shipping_address_with_http_info") + # Authentication setting auth_settings = [] @@ -320,7 +325,8 @@ def get_customer_shipping_address_with_http_info(self, customer_id, shipping_add _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) + collection_formats=collection_formats, + isResponseMLEforApi=isResponseMLEforApi) def get_customer_shipping_addresses_list(self, customer_id, **kwargs): """ @@ -439,6 +445,8 @@ def get_customer_shipping_addresses_list_with_http_info(self, customer_id, **kwa if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, inbound_mle_status, "get_customer_shipping_addresses_list,get_customer_shipping_addresses_list_with_http_info"): body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params) + isResponseMLEforApi = MLEUtility.check_is_response_mle_for_api(self.api_client.mconfig, "get_customer_shipping_addresses_list,get_customer_shipping_addresses_list_with_http_info") + # Authentication setting auth_settings = [] @@ -455,7 +463,8 @@ def get_customer_shipping_addresses_list_with_http_info(self, customer_id, **kwa _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) + collection_formats=collection_formats, + isResponseMLEforApi=isResponseMLEforApi) def patch_customers_shipping_address(self, customer_id, shipping_address_id, patch_customer_shipping_address_request, **kwargs): """ @@ -586,6 +595,8 @@ def patch_customers_shipping_address_with_http_info(self, customer_id, shipping_ if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, inbound_mle_status, "patch_customers_shipping_address,patch_customers_shipping_address_with_http_info"): body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params) + isResponseMLEforApi = MLEUtility.check_is_response_mle_for_api(self.api_client.mconfig, "patch_customers_shipping_address,patch_customers_shipping_address_with_http_info") + # Authentication setting auth_settings = [] @@ -602,7 +613,8 @@ def patch_customers_shipping_address_with_http_info(self, customer_id, shipping_ _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) + collection_formats=collection_formats, + isResponseMLEforApi=isResponseMLEforApi) def post_customer_shipping_address(self, customer_id, post_customer_shipping_address_request, **kwargs): """ @@ -719,6 +731,8 @@ def post_customer_shipping_address_with_http_info(self, customer_id, post_custom if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, inbound_mle_status, "post_customer_shipping_address,post_customer_shipping_address_with_http_info"): body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params) + isResponseMLEforApi = MLEUtility.check_is_response_mle_for_api(self.api_client.mconfig, "post_customer_shipping_address,post_customer_shipping_address_with_http_info") + # Authentication setting auth_settings = [] @@ -735,4 +749,5 @@ def post_customer_shipping_address_with_http_info(self, customer_id, post_custom _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) + collection_formats=collection_formats, + isResponseMLEforApi=isResponseMLEforApi) diff --git a/CyberSource/api/decision_manager_api.py b/CyberSource/api/decision_manager_api.py index 96d2cfbe..625db34f 100644 --- a/CyberSource/api/decision_manager_api.py +++ b/CyberSource/api/decision_manager_api.py @@ -159,6 +159,8 @@ def action_decision_manager_case_with_http_info(self, id, case_management_action if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, inbound_mle_status, "action_decision_manager_case,action_decision_manager_case_with_http_info"): body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params) + isResponseMLEforApi = MLEUtility.check_is_response_mle_for_api(self.api_client.mconfig, "action_decision_manager_case,action_decision_manager_case_with_http_info") + # Authentication setting auth_settings = [] @@ -175,7 +177,8 @@ def action_decision_manager_case_with_http_info(self, id, case_management_action _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) + collection_formats=collection_formats, + isResponseMLEforApi=isResponseMLEforApi) def add_negative(self, type, add_negative_list_request, **kwargs): """ @@ -288,6 +291,8 @@ def add_negative_with_http_info(self, type, add_negative_list_request, **kwargs) if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, inbound_mle_status, "add_negative,add_negative_with_http_info"): body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params) + isResponseMLEforApi = MLEUtility.check_is_response_mle_for_api(self.api_client.mconfig, "add_negative,add_negative_with_http_info") + # Authentication setting auth_settings = [] @@ -304,7 +309,8 @@ def add_negative_with_http_info(self, type, add_negative_list_request, **kwargs) _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) + collection_formats=collection_formats, + isResponseMLEforApi=isResponseMLEforApi) def comment_decision_manager_case(self, id, case_management_comments_request, **kwargs): """ @@ -417,6 +423,8 @@ def comment_decision_manager_case_with_http_info(self, id, case_management_comme if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, inbound_mle_status, "comment_decision_manager_case,comment_decision_manager_case_with_http_info"): body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params) + isResponseMLEforApi = MLEUtility.check_is_response_mle_for_api(self.api_client.mconfig, "comment_decision_manager_case,comment_decision_manager_case_with_http_info") + # Authentication setting auth_settings = [] @@ -433,7 +441,8 @@ def comment_decision_manager_case_with_http_info(self, id, case_management_comme _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) + collection_formats=collection_formats, + isResponseMLEforApi=isResponseMLEforApi) def create_bundled_decision_manager_case(self, create_bundled_decision_manager_case_request, **kwargs): """ @@ -536,6 +545,8 @@ def create_bundled_decision_manager_case_with_http_info(self, create_bundled_dec if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, inbound_mle_status, "create_bundled_decision_manager_case,create_bundled_decision_manager_case_with_http_info"): body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params) + isResponseMLEforApi = MLEUtility.check_is_response_mle_for_api(self.api_client.mconfig, "create_bundled_decision_manager_case,create_bundled_decision_manager_case_with_http_info") + # Authentication setting auth_settings = [] @@ -552,7 +563,8 @@ def create_bundled_decision_manager_case_with_http_info(self, create_bundled_dec _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) + collection_formats=collection_formats, + isResponseMLEforApi=isResponseMLEforApi) def fraud_update(self, id, fraud_marking_action_request, **kwargs): """ @@ -665,6 +677,8 @@ def fraud_update_with_http_info(self, id, fraud_marking_action_request, **kwargs if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, inbound_mle_status, "fraud_update,fraud_update_with_http_info"): body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params) + isResponseMLEforApi = MLEUtility.check_is_response_mle_for_api(self.api_client.mconfig, "fraud_update,fraud_update_with_http_info") + # Authentication setting auth_settings = [] @@ -681,4 +695,5 @@ def fraud_update_with_http_info(self, id, fraud_marking_action_request, **kwargs _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) + collection_formats=collection_formats, + isResponseMLEforApi=isResponseMLEforApi) diff --git a/CyberSource/api/device_de_association_api.py b/CyberSource/api/device_de_association_api.py index e7d0fbb1..f8f4edb1 100644 --- a/CyberSource/api/device_de_association_api.py +++ b/CyberSource/api/device_de_association_api.py @@ -149,6 +149,8 @@ def delete_terminal_association_with_http_info(self, de_association_request_body if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, inbound_mle_status, "delete_terminal_association,delete_terminal_association_with_http_info"): body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params) + isResponseMLEforApi = MLEUtility.check_is_response_mle_for_api(self.api_client.mconfig, "delete_terminal_association,delete_terminal_association_with_http_info") + # Authentication setting auth_settings = [] @@ -165,7 +167,8 @@ def delete_terminal_association_with_http_info(self, de_association_request_body _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) + collection_formats=collection_formats, + isResponseMLEforApi=isResponseMLEforApi) def post_de_associate_v3_terminal(self, device_de_associate_v3_request, **kwargs): """ @@ -268,6 +271,8 @@ def post_de_associate_v3_terminal_with_http_info(self, device_de_associate_v3_re if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, inbound_mle_status, "post_de_associate_v3_terminal,post_de_associate_v3_terminal_with_http_info"): body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params) + isResponseMLEforApi = MLEUtility.check_is_response_mle_for_api(self.api_client.mconfig, "post_de_associate_v3_terminal,post_de_associate_v3_terminal_with_http_info") + # Authentication setting auth_settings = [] @@ -284,4 +289,5 @@ def post_de_associate_v3_terminal_with_http_info(self, device_de_associate_v3_re _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) + collection_formats=collection_formats, + isResponseMLEforApi=isResponseMLEforApi) diff --git a/CyberSource/api/device_search_api.py b/CyberSource/api/device_search_api.py index 5ade53d7..7578eaa3 100644 --- a/CyberSource/api/device_search_api.py +++ b/CyberSource/api/device_search_api.py @@ -149,6 +149,8 @@ def post_search_query_with_http_info(self, post_device_search_request, **kwargs) if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, inbound_mle_status, "post_search_query,post_search_query_with_http_info"): body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params) + isResponseMLEforApi = MLEUtility.check_is_response_mle_for_api(self.api_client.mconfig, "post_search_query,post_search_query_with_http_info") + # Authentication setting auth_settings = [] @@ -165,7 +167,8 @@ def post_search_query_with_http_info(self, post_device_search_request, **kwargs) _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) + collection_formats=collection_formats, + isResponseMLEforApi=isResponseMLEforApi) def post_search_query_v3(self, post_device_search_request_v3, **kwargs): """ @@ -268,6 +271,8 @@ def post_search_query_v3_with_http_info(self, post_device_search_request_v3, **k if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, inbound_mle_status, "post_search_query_v3,post_search_query_v3_with_http_info"): body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params) + isResponseMLEforApi = MLEUtility.check_is_response_mle_for_api(self.api_client.mconfig, "post_search_query_v3,post_search_query_v3_with_http_info") + # Authentication setting auth_settings = [] @@ -284,4 +289,5 @@ def post_search_query_v3_with_http_info(self, post_device_search_request_v3, **k _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) + collection_formats=collection_formats, + isResponseMLEforApi=isResponseMLEforApi) diff --git a/CyberSource/api/download_dtd_api.py b/CyberSource/api/download_dtd_api.py index 03af1078..a6b36927 100644 --- a/CyberSource/api/download_dtd_api.py +++ b/CyberSource/api/download_dtd_api.py @@ -153,6 +153,8 @@ def get_dtdv2_with_http_info(self, report_definition_name_version, **kwargs): if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, inbound_mle_status, "get_dtdv2,get_dtdv2_with_http_info"): body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params) + isResponseMLEforApi = MLEUtility.check_is_response_mle_for_api(self.api_client.mconfig, "get_dtdv2,get_dtdv2_with_http_info") + # Authentication setting auth_settings = [] @@ -169,4 +171,5 @@ def get_dtdv2_with_http_info(self, report_definition_name_version, **kwargs): _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) + collection_formats=collection_formats, + isResponseMLEforApi=isResponseMLEforApi) diff --git a/CyberSource/api/download_xsd_api.py b/CyberSource/api/download_xsd_api.py index 6f573d32..636a36e7 100644 --- a/CyberSource/api/download_xsd_api.py +++ b/CyberSource/api/download_xsd_api.py @@ -153,6 +153,8 @@ def get_xsdv2_with_http_info(self, report_definition_name_version, **kwargs): if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, inbound_mle_status, "get_xsdv2,get_xsdv2_with_http_info"): body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params) + isResponseMLEforApi = MLEUtility.check_is_response_mle_for_api(self.api_client.mconfig, "get_xsdv2,get_xsdv2_with_http_info") + # Authentication setting auth_settings = [] @@ -169,4 +171,5 @@ def get_xsdv2_with_http_info(self, report_definition_name_version, **kwargs): _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) + collection_formats=collection_formats, + isResponseMLEforApi=isResponseMLEforApi) diff --git a/CyberSource/api/emv_tag_details_api.py b/CyberSource/api/emv_tag_details_api.py index 382124b1..f220609d 100644 --- a/CyberSource/api/emv_tag_details_api.py +++ b/CyberSource/api/emv_tag_details_api.py @@ -142,6 +142,8 @@ def get_emv_tags_with_http_info(self, **kwargs): if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, inbound_mle_status, "get_emv_tags,get_emv_tags_with_http_info"): body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params) + isResponseMLEforApi = MLEUtility.check_is_response_mle_for_api(self.api_client.mconfig, "get_emv_tags,get_emv_tags_with_http_info") + # Authentication setting auth_settings = [] @@ -158,7 +160,8 @@ def get_emv_tags_with_http_info(self, **kwargs): _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) + collection_formats=collection_formats, + isResponseMLEforApi=isResponseMLEforApi) def parse_emv_tags(self, body, **kwargs): """ @@ -261,6 +264,8 @@ def parse_emv_tags_with_http_info(self, body, **kwargs): if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, inbound_mle_status, "parse_emv_tags,parse_emv_tags_with_http_info"): body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params) + isResponseMLEforApi = MLEUtility.check_is_response_mle_for_api(self.api_client.mconfig, "parse_emv_tags,parse_emv_tags_with_http_info") + # Authentication setting auth_settings = [] @@ -277,4 +282,5 @@ def parse_emv_tags_with_http_info(self, body, **kwargs): _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) + collection_formats=collection_formats, + isResponseMLEforApi=isResponseMLEforApi) diff --git a/CyberSource/api/flex_api_api.py b/CyberSource/api/flex_api_api.py index a5e74408..2fffffaa 100644 --- a/CyberSource/api/flex_api_api.py +++ b/CyberSource/api/flex_api_api.py @@ -149,6 +149,8 @@ def generate_flex_api_capture_context_with_http_info(self, generate_flex_api_cap if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, inbound_mle_status, "generate_flex_api_capture_context,generate_flex_api_capture_context_with_http_info"): body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params) + isResponseMLEforApi = MLEUtility.check_is_response_mle_for_api(self.api_client.mconfig, "generate_flex_api_capture_context,generate_flex_api_capture_context_with_http_info") + # Authentication setting auth_settings = [] @@ -165,4 +167,5 @@ def generate_flex_api_capture_context_with_http_info(self, generate_flex_api_cap _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) + collection_formats=collection_formats, + isResponseMLEforApi=isResponseMLEforApi) diff --git a/CyberSource/api/instrument_identifier_api.py b/CyberSource/api/instrument_identifier_api.py index 9bae3f9b..d27adfc7 100644 --- a/CyberSource/api/instrument_identifier_api.py +++ b/CyberSource/api/instrument_identifier_api.py @@ -157,6 +157,8 @@ def delete_instrument_identifier_with_http_info(self, instrument_identifier_id, if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, inbound_mle_status, "delete_instrument_identifier,delete_instrument_identifier_with_http_info"): body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params) + isResponseMLEforApi = MLEUtility.check_is_response_mle_for_api(self.api_client.mconfig, "delete_instrument_identifier,delete_instrument_identifier_with_http_info") + # Authentication setting auth_settings = [] @@ -173,7 +175,8 @@ def delete_instrument_identifier_with_http_info(self, instrument_identifier_id, _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) + collection_formats=collection_formats, + isResponseMLEforApi=isResponseMLEforApi) def get_instrument_identifier(self, instrument_identifier_id, **kwargs): """ @@ -288,6 +291,8 @@ def get_instrument_identifier_with_http_info(self, instrument_identifier_id, **k if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, inbound_mle_status, "get_instrument_identifier,get_instrument_identifier_with_http_info"): body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params) + isResponseMLEforApi = MLEUtility.check_is_response_mle_for_api(self.api_client.mconfig, "get_instrument_identifier,get_instrument_identifier_with_http_info") + # Authentication setting auth_settings = [] @@ -304,7 +309,8 @@ def get_instrument_identifier_with_http_info(self, instrument_identifier_id, **k _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) + collection_formats=collection_formats, + isResponseMLEforApi=isResponseMLEforApi) def get_instrument_identifier_payment_instruments_list(self, instrument_identifier_id, **kwargs): """ @@ -427,6 +433,8 @@ def get_instrument_identifier_payment_instruments_list_with_http_info(self, inst if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, inbound_mle_status, "get_instrument_identifier_payment_instruments_list,get_instrument_identifier_payment_instruments_list_with_http_info"): body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params) + isResponseMLEforApi = MLEUtility.check_is_response_mle_for_api(self.api_client.mconfig, "get_instrument_identifier_payment_instruments_list,get_instrument_identifier_payment_instruments_list_with_http_info") + # Authentication setting auth_settings = [] @@ -443,7 +451,8 @@ def get_instrument_identifier_payment_instruments_list_with_http_info(self, inst _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) + collection_formats=collection_formats, + isResponseMLEforApi=isResponseMLEforApi) def patch_instrument_identifier(self, instrument_identifier_id, patch_instrument_identifier_request, **kwargs): """ @@ -568,6 +577,8 @@ def patch_instrument_identifier_with_http_info(self, instrument_identifier_id, p if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, inbound_mle_status, "patch_instrument_identifier,patch_instrument_identifier_with_http_info"): body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params) + isResponseMLEforApi = MLEUtility.check_is_response_mle_for_api(self.api_client.mconfig, "patch_instrument_identifier,patch_instrument_identifier_with_http_info") + # Authentication setting auth_settings = [] @@ -584,7 +595,8 @@ def patch_instrument_identifier_with_http_info(self, instrument_identifier_id, p _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) + collection_formats=collection_formats, + isResponseMLEforApi=isResponseMLEforApi) def post_instrument_identifier(self, post_instrument_identifier_request, **kwargs): """ @@ -695,6 +707,8 @@ def post_instrument_identifier_with_http_info(self, post_instrument_identifier_r if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, inbound_mle_status, "post_instrument_identifier,post_instrument_identifier_with_http_info"): body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params) + isResponseMLEforApi = MLEUtility.check_is_response_mle_for_api(self.api_client.mconfig, "post_instrument_identifier,post_instrument_identifier_with_http_info") + # Authentication setting auth_settings = [] @@ -711,7 +725,8 @@ def post_instrument_identifier_with_http_info(self, post_instrument_identifier_r _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) + collection_formats=collection_formats, + isResponseMLEforApi=isResponseMLEforApi) def post_instrument_identifier_enrollment(self, instrument_identifier_id, post_instrument_identifier_enrollment_request, **kwargs): """ @@ -828,6 +843,8 @@ def post_instrument_identifier_enrollment_with_http_info(self, instrument_identi if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, inbound_mle_status, "post_instrument_identifier_enrollment,post_instrument_identifier_enrollment_with_http_info"): body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params) + isResponseMLEforApi = MLEUtility.check_is_response_mle_for_api(self.api_client.mconfig, "post_instrument_identifier_enrollment,post_instrument_identifier_enrollment_with_http_info") + # Authentication setting auth_settings = [] @@ -844,4 +861,5 @@ def post_instrument_identifier_enrollment_with_http_info(self, instrument_identi _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) + collection_formats=collection_formats, + isResponseMLEforApi=isResponseMLEforApi) diff --git a/CyberSource/api/interchange_clearing_level_details_api.py b/CyberSource/api/interchange_clearing_level_details_api.py index e7423619..bd2d658a 100644 --- a/CyberSource/api/interchange_clearing_level_details_api.py +++ b/CyberSource/api/interchange_clearing_level_details_api.py @@ -165,6 +165,8 @@ def get_interchange_clearing_level_details_with_http_info(self, start_time, end_ if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, inbound_mle_status, "get_interchange_clearing_level_details,get_interchange_clearing_level_details_with_http_info"): body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params) + isResponseMLEforApi = MLEUtility.check_is_response_mle_for_api(self.api_client.mconfig, "get_interchange_clearing_level_details,get_interchange_clearing_level_details_with_http_info") + # Authentication setting auth_settings = [] @@ -181,4 +183,5 @@ def get_interchange_clearing_level_details_with_http_info(self, start_time, end_ _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) + collection_formats=collection_formats, + isResponseMLEforApi=isResponseMLEforApi) diff --git a/CyberSource/api/invoice_settings_api.py b/CyberSource/api/invoice_settings_api.py index 54bb5ad9..31b9f4ff 100644 --- a/CyberSource/api/invoice_settings_api.py +++ b/CyberSource/api/invoice_settings_api.py @@ -142,6 +142,8 @@ def get_invoice_settings_with_http_info(self, **kwargs): if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, inbound_mle_status, "get_invoice_settings,get_invoice_settings_with_http_info"): body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params) + isResponseMLEforApi = MLEUtility.check_is_response_mle_for_api(self.api_client.mconfig, "get_invoice_settings,get_invoice_settings_with_http_info") + # Authentication setting auth_settings = [] @@ -158,7 +160,8 @@ def get_invoice_settings_with_http_info(self, **kwargs): _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) + collection_formats=collection_formats, + isResponseMLEforApi=isResponseMLEforApi) def update_invoice_settings(self, invoice_settings_request, **kwargs): """ @@ -261,6 +264,8 @@ def update_invoice_settings_with_http_info(self, invoice_settings_request, **kwa if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, inbound_mle_status, "update_invoice_settings,update_invoice_settings_with_http_info"): body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params) + isResponseMLEforApi = MLEUtility.check_is_response_mle_for_api(self.api_client.mconfig, "update_invoice_settings,update_invoice_settings_with_http_info") + # Authentication setting auth_settings = [] @@ -277,4 +282,5 @@ def update_invoice_settings_with_http_info(self, invoice_settings_request, **kwa _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) + collection_formats=collection_formats, + isResponseMLEforApi=isResponseMLEforApi) diff --git a/CyberSource/api/invoices_api.py b/CyberSource/api/invoices_api.py index af384f48..199988a3 100644 --- a/CyberSource/api/invoices_api.py +++ b/CyberSource/api/invoices_api.py @@ -149,6 +149,8 @@ def create_invoice_with_http_info(self, create_invoice_request, **kwargs): if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, inbound_mle_status, "create_invoice,create_invoice_with_http_info"): body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params) + isResponseMLEforApi = MLEUtility.check_is_response_mle_for_api(self.api_client.mconfig, "create_invoice,create_invoice_with_http_info") + # Authentication setting auth_settings = [] @@ -165,7 +167,8 @@ def create_invoice_with_http_info(self, create_invoice_request, **kwargs): _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) + collection_formats=collection_formats, + isResponseMLEforApi=isResponseMLEforApi) def get_all_invoices(self, offset, limit, **kwargs): """ @@ -284,6 +287,8 @@ def get_all_invoices_with_http_info(self, offset, limit, **kwargs): if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, inbound_mle_status, "get_all_invoices,get_all_invoices_with_http_info"): body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params) + isResponseMLEforApi = MLEUtility.check_is_response_mle_for_api(self.api_client.mconfig, "get_all_invoices,get_all_invoices_with_http_info") + # Authentication setting auth_settings = [] @@ -300,7 +305,8 @@ def get_all_invoices_with_http_info(self, offset, limit, **kwargs): _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) + collection_formats=collection_formats, + isResponseMLEforApi=isResponseMLEforApi) def get_invoice(self, id, **kwargs): """ @@ -407,6 +413,8 @@ def get_invoice_with_http_info(self, id, **kwargs): if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, inbound_mle_status, "get_invoice,get_invoice_with_http_info"): body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params) + isResponseMLEforApi = MLEUtility.check_is_response_mle_for_api(self.api_client.mconfig, "get_invoice,get_invoice_with_http_info") + # Authentication setting auth_settings = [] @@ -423,7 +431,8 @@ def get_invoice_with_http_info(self, id, **kwargs): _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) + collection_formats=collection_formats, + isResponseMLEforApi=isResponseMLEforApi) def perform_cancel_action(self, id, **kwargs): """ @@ -530,6 +539,8 @@ def perform_cancel_action_with_http_info(self, id, **kwargs): if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, inbound_mle_status, "perform_cancel_action,perform_cancel_action_with_http_info"): body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params) + isResponseMLEforApi = MLEUtility.check_is_response_mle_for_api(self.api_client.mconfig, "perform_cancel_action,perform_cancel_action_with_http_info") + # Authentication setting auth_settings = [] @@ -546,7 +557,8 @@ def perform_cancel_action_with_http_info(self, id, **kwargs): _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) + collection_formats=collection_formats, + isResponseMLEforApi=isResponseMLEforApi) def perform_publish_action(self, id, **kwargs): """ @@ -653,6 +665,8 @@ def perform_publish_action_with_http_info(self, id, **kwargs): if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, inbound_mle_status, "perform_publish_action,perform_publish_action_with_http_info"): body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params) + isResponseMLEforApi = MLEUtility.check_is_response_mle_for_api(self.api_client.mconfig, "perform_publish_action,perform_publish_action_with_http_info") + # Authentication setting auth_settings = [] @@ -669,7 +683,8 @@ def perform_publish_action_with_http_info(self, id, **kwargs): _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) + collection_formats=collection_formats, + isResponseMLEforApi=isResponseMLEforApi) def perform_send_action(self, id, **kwargs): """ @@ -776,6 +791,8 @@ def perform_send_action_with_http_info(self, id, **kwargs): if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, inbound_mle_status, "perform_send_action,perform_send_action_with_http_info"): body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params) + isResponseMLEforApi = MLEUtility.check_is_response_mle_for_api(self.api_client.mconfig, "perform_send_action,perform_send_action_with_http_info") + # Authentication setting auth_settings = [] @@ -792,7 +809,8 @@ def perform_send_action_with_http_info(self, id, **kwargs): _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) + collection_formats=collection_formats, + isResponseMLEforApi=isResponseMLEforApi) def update_invoice(self, id, update_invoice_request, **kwargs): """ @@ -905,6 +923,8 @@ def update_invoice_with_http_info(self, id, update_invoice_request, **kwargs): if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, inbound_mle_status, "update_invoice,update_invoice_with_http_info"): body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params) + isResponseMLEforApi = MLEUtility.check_is_response_mle_for_api(self.api_client.mconfig, "update_invoice,update_invoice_with_http_info") + # Authentication setting auth_settings = [] @@ -921,4 +941,5 @@ def update_invoice_with_http_info(self, id, update_invoice_request, **kwargs): _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) + collection_formats=collection_formats, + isResponseMLEforApi=isResponseMLEforApi) diff --git a/CyberSource/api/manage_webhooks_api.py b/CyberSource/api/manage_webhooks_api.py index a5eecb33..4d6050ec 100644 --- a/CyberSource/api/manage_webhooks_api.py +++ b/CyberSource/api/manage_webhooks_api.py @@ -153,6 +153,8 @@ def delete_webhook_subscription_with_http_info(self, webhook_id, **kwargs): if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, inbound_mle_status, "delete_webhook_subscription,delete_webhook_subscription_with_http_info"): body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params) + isResponseMLEforApi = MLEUtility.check_is_response_mle_for_api(self.api_client.mconfig, "delete_webhook_subscription,delete_webhook_subscription_with_http_info") + # Authentication setting auth_settings = [] @@ -169,7 +171,8 @@ def delete_webhook_subscription_with_http_info(self, webhook_id, **kwargs): _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) + collection_formats=collection_formats, + isResponseMLEforApi=isResponseMLEforApi) def get_webhook_subscription_by_id(self, webhook_id, **kwargs): """ @@ -276,6 +279,8 @@ def get_webhook_subscription_by_id_with_http_info(self, webhook_id, **kwargs): if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, inbound_mle_status, "get_webhook_subscription_by_id,get_webhook_subscription_by_id_with_http_info"): body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params) + isResponseMLEforApi = MLEUtility.check_is_response_mle_for_api(self.api_client.mconfig, "get_webhook_subscription_by_id,get_webhook_subscription_by_id_with_http_info") + # Authentication setting auth_settings = [] @@ -292,7 +297,8 @@ def get_webhook_subscription_by_id_with_http_info(self, webhook_id, **kwargs): _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) + collection_formats=collection_formats, + isResponseMLEforApi=isResponseMLEforApi) def get_webhook_subscriptions_by_org(self, organization_id, **kwargs): """ @@ -406,6 +412,8 @@ def get_webhook_subscriptions_by_org_with_http_info(self, organization_id, **kwa if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, inbound_mle_status, "get_webhook_subscriptions_by_org,get_webhook_subscriptions_by_org_with_http_info"): body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params) + isResponseMLEforApi = MLEUtility.check_is_response_mle_for_api(self.api_client.mconfig, "get_webhook_subscriptions_by_org,get_webhook_subscriptions_by_org_with_http_info") + # Authentication setting auth_settings = [] @@ -422,7 +430,8 @@ def get_webhook_subscriptions_by_org_with_http_info(self, organization_id, **kwa _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) + collection_formats=collection_formats, + isResponseMLEforApi=isResponseMLEforApi) def notification_subscriptions_v1_webhooks_webhook_id_post(self, webhook_id, **kwargs): """ @@ -529,6 +538,8 @@ def notification_subscriptions_v1_webhooks_webhook_id_post_with_http_info(self, if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, inbound_mle_status, "notification_subscriptions_v1_webhooks_webhook_id_post,notification_subscriptions_v1_webhooks_webhook_id_post_with_http_info"): body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params) + isResponseMLEforApi = MLEUtility.check_is_response_mle_for_api(self.api_client.mconfig, "notification_subscriptions_v1_webhooks_webhook_id_post,notification_subscriptions_v1_webhooks_webhook_id_post_with_http_info") + # Authentication setting auth_settings = [] @@ -545,7 +556,8 @@ def notification_subscriptions_v1_webhooks_webhook_id_post_with_http_info(self, _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) + collection_formats=collection_formats, + isResponseMLEforApi=isResponseMLEforApi) def notification_subscriptions_v2_webhooks_webhook_id_patch(self, webhook_id, **kwargs): """ @@ -653,6 +665,8 @@ def notification_subscriptions_v2_webhooks_webhook_id_patch_with_http_info(self, if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, inbound_mle_status, "notification_subscriptions_v2_webhooks_webhook_id_patch,notification_subscriptions_v2_webhooks_webhook_id_patch_with_http_info"): body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params) + isResponseMLEforApi = MLEUtility.check_is_response_mle_for_api(self.api_client.mconfig, "notification_subscriptions_v2_webhooks_webhook_id_patch,notification_subscriptions_v2_webhooks_webhook_id_patch_with_http_info") + # Authentication setting auth_settings = [] @@ -669,7 +683,8 @@ def notification_subscriptions_v2_webhooks_webhook_id_patch_with_http_info(self, _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) + collection_formats=collection_formats, + isResponseMLEforApi=isResponseMLEforApi) def notification_subscriptions_v2_webhooks_webhook_id_status_put(self, webhook_id, **kwargs): """ @@ -777,6 +792,8 @@ def notification_subscriptions_v2_webhooks_webhook_id_status_put_with_http_info( if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, inbound_mle_status, "notification_subscriptions_v2_webhooks_webhook_id_status_put,notification_subscriptions_v2_webhooks_webhook_id_status_put_with_http_info"): body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params) + isResponseMLEforApi = MLEUtility.check_is_response_mle_for_api(self.api_client.mconfig, "notification_subscriptions_v2_webhooks_webhook_id_status_put,notification_subscriptions_v2_webhooks_webhook_id_status_put_with_http_info") + # Authentication setting auth_settings = [] @@ -793,7 +810,8 @@ def notification_subscriptions_v2_webhooks_webhook_id_status_put_with_http_info( _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) + collection_formats=collection_formats, + isResponseMLEforApi=isResponseMLEforApi) def save_asym_egress_key(self, v_c_sender_organization_id, v_c_permissions, save_asym_egress_key, **kwargs): """ @@ -918,6 +936,8 @@ def save_asym_egress_key_with_http_info(self, v_c_sender_organization_id, v_c_pe if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, inbound_mle_status, "save_asym_egress_key,save_asym_egress_key_with_http_info"): body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params) + isResponseMLEforApi = MLEUtility.check_is_response_mle_for_api(self.api_client.mconfig, "save_asym_egress_key,save_asym_egress_key_with_http_info") + # Authentication setting auth_settings = [] @@ -934,4 +954,5 @@ def save_asym_egress_key_with_http_info(self, v_c_sender_organization_id, v_c_pe _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) + collection_formats=collection_formats, + isResponseMLEforApi=isResponseMLEforApi) diff --git a/CyberSource/api/merchant_boarding_api.py b/CyberSource/api/merchant_boarding_api.py index 84c51df7..2aa1a346 100644 --- a/CyberSource/api/merchant_boarding_api.py +++ b/CyberSource/api/merchant_boarding_api.py @@ -153,6 +153,8 @@ def get_registration_with_http_info(self, registration_id, **kwargs): if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, inbound_mle_status, "get_registration,get_registration_with_http_info"): body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params) + isResponseMLEforApi = MLEUtility.check_is_response_mle_for_api(self.api_client.mconfig, "get_registration,get_registration_with_http_info") + # Authentication setting auth_settings = [] @@ -169,7 +171,8 @@ def get_registration_with_http_info(self, registration_id, **kwargs): _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) + collection_formats=collection_formats, + isResponseMLEforApi=isResponseMLEforApi) def post_registration(self, post_registration_body, **kwargs): """ @@ -276,6 +279,8 @@ def post_registration_with_http_info(self, post_registration_body, **kwargs): if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, inbound_mle_status, "post_registration,post_registration_with_http_info"): body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params) + isResponseMLEforApi = MLEUtility.check_is_response_mle_for_api(self.api_client.mconfig, "post_registration,post_registration_with_http_info") + # Authentication setting auth_settings = [] @@ -292,4 +297,5 @@ def post_registration_with_http_info(self, post_registration_body, **kwargs): _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) + collection_formats=collection_formats, + isResponseMLEforApi=isResponseMLEforApi) diff --git a/CyberSource/api/microform_integration_api.py b/CyberSource/api/microform_integration_api.py index 5b9fc775..10208486 100644 --- a/CyberSource/api/microform_integration_api.py +++ b/CyberSource/api/microform_integration_api.py @@ -149,6 +149,8 @@ def generate_capture_context_with_http_info(self, generate_capture_context_reque if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, inbound_mle_status, "generate_capture_context,generate_capture_context_with_http_info"): body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params) + isResponseMLEforApi = MLEUtility.check_is_response_mle_for_api(self.api_client.mconfig, "generate_capture_context,generate_capture_context_with_http_info") + # Authentication setting auth_settings = [] @@ -165,4 +167,5 @@ def generate_capture_context_with_http_info(self, generate_capture_context_reque _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) + collection_formats=collection_formats, + isResponseMLEforApi=isResponseMLEforApi) diff --git a/CyberSource/api/net_fundings_api.py b/CyberSource/api/net_fundings_api.py index 110b32ee..1e7fb4df 100644 --- a/CyberSource/api/net_fundings_api.py +++ b/CyberSource/api/net_fundings_api.py @@ -169,6 +169,8 @@ def get_net_funding_details_with_http_info(self, start_time, end_time, **kwargs) if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, inbound_mle_status, "get_net_funding_details,get_net_funding_details_with_http_info"): body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params) + isResponseMLEforApi = MLEUtility.check_is_response_mle_for_api(self.api_client.mconfig, "get_net_funding_details,get_net_funding_details_with_http_info") + # Authentication setting auth_settings = [] @@ -185,4 +187,5 @@ def get_net_funding_details_with_http_info(self, start_time, end_time, **kwargs) _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) + collection_formats=collection_formats, + isResponseMLEforApi=isResponseMLEforApi) diff --git a/CyberSource/api/notification_of_changes_api.py b/CyberSource/api/notification_of_changes_api.py index 206fd2d8..0b9069d8 100644 --- a/CyberSource/api/notification_of_changes_api.py +++ b/CyberSource/api/notification_of_changes_api.py @@ -161,6 +161,8 @@ def get_notification_of_change_report_with_http_info(self, start_time, end_time, if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, inbound_mle_status, "get_notification_of_change_report,get_notification_of_change_report_with_http_info"): body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params) + isResponseMLEforApi = MLEUtility.check_is_response_mle_for_api(self.api_client.mconfig, "get_notification_of_change_report,get_notification_of_change_report_with_http_info") + # Authentication setting auth_settings = [] @@ -177,4 +179,5 @@ def get_notification_of_change_report_with_http_info(self, start_time, end_time, _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) + collection_formats=collection_formats, + isResponseMLEforApi=isResponseMLEforApi) diff --git a/CyberSource/api/orders_api.py b/CyberSource/api/orders_api.py index 59758ea1..a76e774c 100644 --- a/CyberSource/api/orders_api.py +++ b/CyberSource/api/orders_api.py @@ -149,6 +149,8 @@ def create_order_with_http_info(self, create_order_request, **kwargs): if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, inbound_mle_status, "create_order,create_order_with_http_info"): body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params) + isResponseMLEforApi = MLEUtility.check_is_response_mle_for_api(self.api_client.mconfig, "create_order,create_order_with_http_info") + # Authentication setting auth_settings = [] @@ -165,7 +167,8 @@ def create_order_with_http_info(self, create_order_request, **kwargs): _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) + collection_formats=collection_formats, + isResponseMLEforApi=isResponseMLEforApi) def update_order(self, id, update_order_request, **kwargs): """ @@ -278,6 +281,8 @@ def update_order_with_http_info(self, id, update_order_request, **kwargs): if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, inbound_mle_status, "update_order,update_order_with_http_info"): body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params) + isResponseMLEforApi = MLEUtility.check_is_response_mle_for_api(self.api_client.mconfig, "update_order,update_order_with_http_info") + # Authentication setting auth_settings = [] @@ -294,4 +299,5 @@ def update_order_with_http_info(self, id, update_order_request, **kwargs): _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) + collection_formats=collection_formats, + isResponseMLEforApi=isResponseMLEforApi) diff --git a/CyberSource/api/payer_authentication_api.py b/CyberSource/api/payer_authentication_api.py index ca530907..8fb7574b 100644 --- a/CyberSource/api/payer_authentication_api.py +++ b/CyberSource/api/payer_authentication_api.py @@ -149,6 +149,8 @@ def check_payer_auth_enrollment_with_http_info(self, check_payer_auth_enrollment if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, inbound_mle_status, "check_payer_auth_enrollment,check_payer_auth_enrollment_with_http_info"): body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params) + isResponseMLEforApi = MLEUtility.check_is_response_mle_for_api(self.api_client.mconfig, "check_payer_auth_enrollment,check_payer_auth_enrollment_with_http_info") + # Authentication setting auth_settings = [] @@ -165,7 +167,8 @@ def check_payer_auth_enrollment_with_http_info(self, check_payer_auth_enrollment _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) + collection_formats=collection_formats, + isResponseMLEforApi=isResponseMLEforApi) def payer_auth_setup(self, payer_auth_setup_request, **kwargs): """ @@ -268,6 +271,8 @@ def payer_auth_setup_with_http_info(self, payer_auth_setup_request, **kwargs): if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, inbound_mle_status, "payer_auth_setup,payer_auth_setup_with_http_info"): body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params) + isResponseMLEforApi = MLEUtility.check_is_response_mle_for_api(self.api_client.mconfig, "payer_auth_setup,payer_auth_setup_with_http_info") + # Authentication setting auth_settings = [] @@ -284,7 +289,8 @@ def payer_auth_setup_with_http_info(self, payer_auth_setup_request, **kwargs): _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) + collection_formats=collection_formats, + isResponseMLEforApi=isResponseMLEforApi) def validate_authentication_results(self, validate_request, **kwargs): """ @@ -387,6 +393,8 @@ def validate_authentication_results_with_http_info(self, validate_request, **kwa if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, inbound_mle_status, "validate_authentication_results,validate_authentication_results_with_http_info"): body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params) + isResponseMLEforApi = MLEUtility.check_is_response_mle_for_api(self.api_client.mconfig, "validate_authentication_results,validate_authentication_results_with_http_info") + # Authentication setting auth_settings = [] @@ -403,4 +411,5 @@ def validate_authentication_results_with_http_info(self, validate_request, **kwa _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) + collection_formats=collection_formats, + isResponseMLEforApi=isResponseMLEforApi) diff --git a/CyberSource/api/payment_batch_summaries_api.py b/CyberSource/api/payment_batch_summaries_api.py index 595e85d1..8eaa948d 100644 --- a/CyberSource/api/payment_batch_summaries_api.py +++ b/CyberSource/api/payment_batch_summaries_api.py @@ -177,6 +177,8 @@ def get_payment_batch_summary_with_http_info(self, start_time, end_time, **kwarg if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, inbound_mle_status, "get_payment_batch_summary,get_payment_batch_summary_with_http_info"): body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params) + isResponseMLEforApi = MLEUtility.check_is_response_mle_for_api(self.api_client.mconfig, "get_payment_batch_summary,get_payment_batch_summary_with_http_info") + # Authentication setting auth_settings = [] @@ -193,4 +195,5 @@ def get_payment_batch_summary_with_http_info(self, start_time, end_time, **kwarg _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) + collection_formats=collection_formats, + isResponseMLEforApi=isResponseMLEforApi) diff --git a/CyberSource/api/payment_instrument_api.py b/CyberSource/api/payment_instrument_api.py index 07542064..073920f1 100644 --- a/CyberSource/api/payment_instrument_api.py +++ b/CyberSource/api/payment_instrument_api.py @@ -157,6 +157,8 @@ def delete_payment_instrument_with_http_info(self, payment_instrument_id, **kwar if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, inbound_mle_status, "delete_payment_instrument,delete_payment_instrument_with_http_info"): body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params) + isResponseMLEforApi = MLEUtility.check_is_response_mle_for_api(self.api_client.mconfig, "delete_payment_instrument,delete_payment_instrument_with_http_info") + # Authentication setting auth_settings = [] @@ -173,7 +175,8 @@ def delete_payment_instrument_with_http_info(self, payment_instrument_id, **kwar _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) + collection_formats=collection_formats, + isResponseMLEforApi=isResponseMLEforApi) def get_payment_instrument(self, payment_instrument_id, **kwargs): """ @@ -288,6 +291,8 @@ def get_payment_instrument_with_http_info(self, payment_instrument_id, **kwargs) if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, inbound_mle_status, "get_payment_instrument,get_payment_instrument_with_http_info"): body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params) + isResponseMLEforApi = MLEUtility.check_is_response_mle_for_api(self.api_client.mconfig, "get_payment_instrument,get_payment_instrument_with_http_info") + # Authentication setting auth_settings = [] @@ -304,7 +309,8 @@ def get_payment_instrument_with_http_info(self, payment_instrument_id, **kwargs) _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) + collection_formats=collection_formats, + isResponseMLEforApi=isResponseMLEforApi) def patch_payment_instrument(self, payment_instrument_id, patch_payment_instrument_request, **kwargs): """ @@ -429,6 +435,8 @@ def patch_payment_instrument_with_http_info(self, payment_instrument_id, patch_p if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, inbound_mle_status, "patch_payment_instrument,patch_payment_instrument_with_http_info"): body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params) + isResponseMLEforApi = MLEUtility.check_is_response_mle_for_api(self.api_client.mconfig, "patch_payment_instrument,patch_payment_instrument_with_http_info") + # Authentication setting auth_settings = [] @@ -445,7 +453,8 @@ def patch_payment_instrument_with_http_info(self, payment_instrument_id, patch_p _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) + collection_formats=collection_formats, + isResponseMLEforApi=isResponseMLEforApi) def post_payment_instrument(self, post_payment_instrument_request, **kwargs): """ @@ -556,6 +565,8 @@ def post_payment_instrument_with_http_info(self, post_payment_instrument_request if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, inbound_mle_status, "post_payment_instrument,post_payment_instrument_with_http_info"): body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params) + isResponseMLEforApi = MLEUtility.check_is_response_mle_for_api(self.api_client.mconfig, "post_payment_instrument,post_payment_instrument_with_http_info") + # Authentication setting auth_settings = [] @@ -572,4 +583,5 @@ def post_payment_instrument_with_http_info(self, post_payment_instrument_request _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) + collection_formats=collection_formats, + isResponseMLEforApi=isResponseMLEforApi) diff --git a/CyberSource/api/payment_links_api.py b/CyberSource/api/payment_links_api.py index 6b6a3a80..c3e4f863 100644 --- a/CyberSource/api/payment_links_api.py +++ b/CyberSource/api/payment_links_api.py @@ -149,6 +149,8 @@ def create_payment_link_with_http_info(self, create_payment_link_request, **kwar if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, inbound_mle_status, "create_payment_link,create_payment_link_with_http_info"): body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params) + isResponseMLEforApi = MLEUtility.check_is_response_mle_for_api(self.api_client.mconfig, "create_payment_link,create_payment_link_with_http_info") + # Authentication setting auth_settings = [] @@ -165,7 +167,8 @@ def create_payment_link_with_http_info(self, create_payment_link_request, **kwar _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) + collection_formats=collection_formats, + isResponseMLEforApi=isResponseMLEforApi) def get_all_payment_links(self, offset, limit, **kwargs): """ @@ -284,6 +287,8 @@ def get_all_payment_links_with_http_info(self, offset, limit, **kwargs): if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, inbound_mle_status, "get_all_payment_links,get_all_payment_links_with_http_info"): body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params) + isResponseMLEforApi = MLEUtility.check_is_response_mle_for_api(self.api_client.mconfig, "get_all_payment_links,get_all_payment_links_with_http_info") + # Authentication setting auth_settings = [] @@ -300,7 +305,8 @@ def get_all_payment_links_with_http_info(self, offset, limit, **kwargs): _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) + collection_formats=collection_formats, + isResponseMLEforApi=isResponseMLEforApi) def get_payment_link(self, id, **kwargs): """ @@ -407,6 +413,8 @@ def get_payment_link_with_http_info(self, id, **kwargs): if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, inbound_mle_status, "get_payment_link,get_payment_link_with_http_info"): body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params) + isResponseMLEforApi = MLEUtility.check_is_response_mle_for_api(self.api_client.mconfig, "get_payment_link,get_payment_link_with_http_info") + # Authentication setting auth_settings = [] @@ -423,7 +431,8 @@ def get_payment_link_with_http_info(self, id, **kwargs): _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) + collection_formats=collection_formats, + isResponseMLEforApi=isResponseMLEforApi) def update_payment_link(self, id, update_payment_link_request, **kwargs): """ @@ -536,6 +545,8 @@ def update_payment_link_with_http_info(self, id, update_payment_link_request, ** if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, inbound_mle_status, "update_payment_link,update_payment_link_with_http_info"): body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params) + isResponseMLEforApi = MLEUtility.check_is_response_mle_for_api(self.api_client.mconfig, "update_payment_link,update_payment_link_with_http_info") + # Authentication setting auth_settings = [] @@ -552,4 +563,5 @@ def update_payment_link_with_http_info(self, id, update_payment_link_request, ** _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) + collection_formats=collection_formats, + isResponseMLEforApi=isResponseMLEforApi) diff --git a/CyberSource/api/payment_tokens_api.py b/CyberSource/api/payment_tokens_api.py index 461b8ac2..2695904b 100644 --- a/CyberSource/api/payment_tokens_api.py +++ b/CyberSource/api/payment_tokens_api.py @@ -149,6 +149,8 @@ def retrieve_or_delete_payment_token_with_http_info(self, request, **kwargs): if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, inbound_mle_status, "retrieve_or_delete_payment_token,retrieve_or_delete_payment_token_with_http_info"): body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params) + isResponseMLEforApi = MLEUtility.check_is_response_mle_for_api(self.api_client.mconfig, "retrieve_or_delete_payment_token,retrieve_or_delete_payment_token_with_http_info") + # Authentication setting auth_settings = [] @@ -165,4 +167,5 @@ def retrieve_or_delete_payment_token_with_http_info(self, request, **kwargs): _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) + collection_formats=collection_formats, + isResponseMLEforApi=isResponseMLEforApi) diff --git a/CyberSource/api/payments_api.py b/CyberSource/api/payments_api.py index 40cd5fc7..f1669ebd 100644 --- a/CyberSource/api/payments_api.py +++ b/CyberSource/api/payments_api.py @@ -159,6 +159,8 @@ def create_order_request_with_http_info(self, order_payment_request, id, **kwarg if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, inbound_mle_status, "create_order_request,create_order_request_with_http_info"): body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params) + isResponseMLEforApi = MLEUtility.check_is_response_mle_for_api(self.api_client.mconfig, "create_order_request,create_order_request_with_http_info") + # Authentication setting auth_settings = [] @@ -175,7 +177,8 @@ def create_order_request_with_http_info(self, order_payment_request, id, **kwarg _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) + collection_formats=collection_formats, + isResponseMLEforApi=isResponseMLEforApi) def create_payment(self, create_payment_request, **kwargs): """ @@ -278,6 +281,8 @@ def create_payment_with_http_info(self, create_payment_request, **kwargs): if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, inbound_mle_status, "create_payment,create_payment_with_http_info"): body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params) + isResponseMLEforApi = MLEUtility.check_is_response_mle_for_api(self.api_client.mconfig, "create_payment,create_payment_with_http_info") + # Authentication setting auth_settings = [] @@ -294,7 +299,8 @@ def create_payment_with_http_info(self, create_payment_request, **kwargs): _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) + collection_formats=collection_formats, + isResponseMLEforApi=isResponseMLEforApi) def create_session_request(self, create_session_req, **kwargs): """ @@ -397,6 +403,8 @@ def create_session_request_with_http_info(self, create_session_req, **kwargs): if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, inbound_mle_status, "create_session_request,create_session_request_with_http_info"): body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params) + isResponseMLEforApi = MLEUtility.check_is_response_mle_for_api(self.api_client.mconfig, "create_session_request,create_session_request_with_http_info") + # Authentication setting auth_settings = [] @@ -413,7 +421,8 @@ def create_session_request_with_http_info(self, create_session_req, **kwargs): _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) + collection_formats=collection_formats, + isResponseMLEforApi=isResponseMLEforApi) def increment_auth(self, id, increment_auth_request, **kwargs): """ @@ -526,6 +535,8 @@ def increment_auth_with_http_info(self, id, increment_auth_request, **kwargs): if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, inbound_mle_status, "increment_auth,increment_auth_with_http_info"): body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params) + isResponseMLEforApi = MLEUtility.check_is_response_mle_for_api(self.api_client.mconfig, "increment_auth,increment_auth_with_http_info") + # Authentication setting auth_settings = [] @@ -542,7 +553,8 @@ def increment_auth_with_http_info(self, id, increment_auth_request, **kwargs): _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) + collection_formats=collection_formats, + isResponseMLEforApi=isResponseMLEforApi) def refresh_payment_status(self, id, refresh_payment_status_request, **kwargs): """ @@ -655,6 +667,8 @@ def refresh_payment_status_with_http_info(self, id, refresh_payment_status_reque if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, inbound_mle_status, "refresh_payment_status,refresh_payment_status_with_http_info"): body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params) + isResponseMLEforApi = MLEUtility.check_is_response_mle_for_api(self.api_client.mconfig, "refresh_payment_status,refresh_payment_status_with_http_info") + # Authentication setting auth_settings = [] @@ -671,7 +685,8 @@ def refresh_payment_status_with_http_info(self, id, refresh_payment_status_reque _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) + collection_formats=collection_formats, + isResponseMLEforApi=isResponseMLEforApi) def update_session_req(self, create_session_request, id, **kwargs): """ @@ -784,6 +799,8 @@ def update_session_req_with_http_info(self, create_session_request, id, **kwargs if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, inbound_mle_status, "update_session_req,update_session_req_with_http_info"): body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params) + isResponseMLEforApi = MLEUtility.check_is_response_mle_for_api(self.api_client.mconfig, "update_session_req,update_session_req_with_http_info") + # Authentication setting auth_settings = [] @@ -800,4 +817,5 @@ def update_session_req_with_http_info(self, create_session_request, id, **kwargs _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) + collection_formats=collection_formats, + isResponseMLEforApi=isResponseMLEforApi) diff --git a/CyberSource/api/payouts_api.py b/CyberSource/api/payouts_api.py index e8ac22b4..e1a26554 100644 --- a/CyberSource/api/payouts_api.py +++ b/CyberSource/api/payouts_api.py @@ -149,6 +149,8 @@ def oct_create_payment_with_http_info(self, oct_create_payment_request, **kwargs if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, inbound_mle_status, "oct_create_payment,oct_create_payment_with_http_info"): body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params) + isResponseMLEforApi = MLEUtility.check_is_response_mle_for_api(self.api_client.mconfig, "oct_create_payment,oct_create_payment_with_http_info") + # Authentication setting auth_settings = [] @@ -165,4 +167,5 @@ def oct_create_payment_with_http_info(self, oct_create_payment_request, **kwargs _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) + collection_formats=collection_formats, + isResponseMLEforApi=isResponseMLEforApi) diff --git a/CyberSource/api/plans_api.py b/CyberSource/api/plans_api.py index 1aa0dadf..c13ae22e 100644 --- a/CyberSource/api/plans_api.py +++ b/CyberSource/api/plans_api.py @@ -153,6 +153,8 @@ def activate_plan_with_http_info(self, id, **kwargs): if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, inbound_mle_status, "activate_plan,activate_plan_with_http_info"): body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params) + isResponseMLEforApi = MLEUtility.check_is_response_mle_for_api(self.api_client.mconfig, "activate_plan,activate_plan_with_http_info") + # Authentication setting auth_settings = [] @@ -169,7 +171,8 @@ def activate_plan_with_http_info(self, id, **kwargs): _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) + collection_formats=collection_formats, + isResponseMLEforApi=isResponseMLEforApi) def create_plan(self, create_plan_request, **kwargs): """ @@ -272,6 +275,8 @@ def create_plan_with_http_info(self, create_plan_request, **kwargs): if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, inbound_mle_status, "create_plan,create_plan_with_http_info"): body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params) + isResponseMLEforApi = MLEUtility.check_is_response_mle_for_api(self.api_client.mconfig, "create_plan,create_plan_with_http_info") + # Authentication setting auth_settings = [] @@ -288,7 +293,8 @@ def create_plan_with_http_info(self, create_plan_request, **kwargs): _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) + collection_formats=collection_formats, + isResponseMLEforApi=isResponseMLEforApi) def deactivate_plan(self, id, **kwargs): """ @@ -395,6 +401,8 @@ def deactivate_plan_with_http_info(self, id, **kwargs): if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, inbound_mle_status, "deactivate_plan,deactivate_plan_with_http_info"): body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params) + isResponseMLEforApi = MLEUtility.check_is_response_mle_for_api(self.api_client.mconfig, "deactivate_plan,deactivate_plan_with_http_info") + # Authentication setting auth_settings = [] @@ -411,7 +419,8 @@ def deactivate_plan_with_http_info(self, id, **kwargs): _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) + collection_formats=collection_formats, + isResponseMLEforApi=isResponseMLEforApi) def delete_plan(self, id, **kwargs): """ @@ -518,6 +527,8 @@ def delete_plan_with_http_info(self, id, **kwargs): if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, inbound_mle_status, "delete_plan,delete_plan_with_http_info"): body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params) + isResponseMLEforApi = MLEUtility.check_is_response_mle_for_api(self.api_client.mconfig, "delete_plan,delete_plan_with_http_info") + # Authentication setting auth_settings = [] @@ -534,7 +545,8 @@ def delete_plan_with_http_info(self, id, **kwargs): _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) + collection_formats=collection_formats, + isResponseMLEforApi=isResponseMLEforApi) def get_plan(self, id, **kwargs): """ @@ -641,6 +653,8 @@ def get_plan_with_http_info(self, id, **kwargs): if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, inbound_mle_status, "get_plan,get_plan_with_http_info"): body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params) + isResponseMLEforApi = MLEUtility.check_is_response_mle_for_api(self.api_client.mconfig, "get_plan,get_plan_with_http_info") + # Authentication setting auth_settings = [] @@ -657,7 +671,8 @@ def get_plan_with_http_info(self, id, **kwargs): _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) + collection_formats=collection_formats, + isResponseMLEforApi=isResponseMLEforApi) def get_plan_code(self, **kwargs): """ @@ -753,6 +768,8 @@ def get_plan_code_with_http_info(self, **kwargs): if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, inbound_mle_status, "get_plan_code,get_plan_code_with_http_info"): body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params) + isResponseMLEforApi = MLEUtility.check_is_response_mle_for_api(self.api_client.mconfig, "get_plan_code,get_plan_code_with_http_info") + # Authentication setting auth_settings = [] @@ -769,7 +786,8 @@ def get_plan_code_with_http_info(self, **kwargs): _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) + collection_formats=collection_formats, + isResponseMLEforApi=isResponseMLEforApi) def get_plans(self, **kwargs): """ @@ -886,6 +904,8 @@ def get_plans_with_http_info(self, **kwargs): if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, inbound_mle_status, "get_plans,get_plans_with_http_info"): body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params) + isResponseMLEforApi = MLEUtility.check_is_response_mle_for_api(self.api_client.mconfig, "get_plans,get_plans_with_http_info") + # Authentication setting auth_settings = [] @@ -902,7 +922,8 @@ def get_plans_with_http_info(self, **kwargs): _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) + collection_formats=collection_formats, + isResponseMLEforApi=isResponseMLEforApi) def update_plan(self, id, update_plan_request, **kwargs): """ @@ -1015,6 +1036,8 @@ def update_plan_with_http_info(self, id, update_plan_request, **kwargs): if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, inbound_mle_status, "update_plan,update_plan_with_http_info"): body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params) + isResponseMLEforApi = MLEUtility.check_is_response_mle_for_api(self.api_client.mconfig, "update_plan,update_plan_with_http_info") + # Authentication setting auth_settings = [] @@ -1031,4 +1054,5 @@ def update_plan_with_http_info(self, id, update_plan_request, **kwargs): _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) + collection_formats=collection_formats, + isResponseMLEforApi=isResponseMLEforApi) diff --git a/CyberSource/api/purchase_and_refund_details_api.py b/CyberSource/api/purchase_and_refund_details_api.py index e1f7615a..14b5ef03 100644 --- a/CyberSource/api/purchase_and_refund_details_api.py +++ b/CyberSource/api/purchase_and_refund_details_api.py @@ -185,6 +185,8 @@ def get_purchase_and_refund_details_with_http_info(self, start_time, end_time, * if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, inbound_mle_status, "get_purchase_and_refund_details,get_purchase_and_refund_details_with_http_info"): body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params) + isResponseMLEforApi = MLEUtility.check_is_response_mle_for_api(self.api_client.mconfig, "get_purchase_and_refund_details,get_purchase_and_refund_details_with_http_info") + # Authentication setting auth_settings = [] @@ -201,4 +203,5 @@ def get_purchase_and_refund_details_with_http_info(self, start_time, end_time, * _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) + collection_formats=collection_formats, + isResponseMLEforApi=isResponseMLEforApi) diff --git a/CyberSource/api/push_funds_api.py b/CyberSource/api/push_funds_api.py index 745945a1..061ebed1 100644 --- a/CyberSource/api/push_funds_api.py +++ b/CyberSource/api/push_funds_api.py @@ -203,6 +203,8 @@ def create_push_funds_transfer_with_http_info(self, push_funds_request, content_ if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, inbound_mle_status, "create_push_funds_transfer,create_push_funds_transfer_with_http_info"): body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params) + isResponseMLEforApi = MLEUtility.check_is_response_mle_for_api(self.api_client.mconfig, "create_push_funds_transfer,create_push_funds_transfer_with_http_info") + # Authentication setting auth_settings = [] @@ -219,4 +221,5 @@ def create_push_funds_transfer_with_http_info(self, push_funds_request, content_ _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) + collection_formats=collection_formats, + isResponseMLEforApi=isResponseMLEforApi) diff --git a/CyberSource/api/refund_api.py b/CyberSource/api/refund_api.py index b1c14f9d..96f4f803 100644 --- a/CyberSource/api/refund_api.py +++ b/CyberSource/api/refund_api.py @@ -159,6 +159,8 @@ def refund_capture_with_http_info(self, refund_capture_request, id, **kwargs): if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, inbound_mle_status, "refund_capture,refund_capture_with_http_info"): body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params) + isResponseMLEforApi = MLEUtility.check_is_response_mle_for_api(self.api_client.mconfig, "refund_capture,refund_capture_with_http_info") + # Authentication setting auth_settings = [] @@ -175,7 +177,8 @@ def refund_capture_with_http_info(self, refund_capture_request, id, **kwargs): _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) + collection_formats=collection_formats, + isResponseMLEforApi=isResponseMLEforApi) def refund_payment(self, refund_payment_request, id, **kwargs): """ @@ -288,6 +291,8 @@ def refund_payment_with_http_info(self, refund_payment_request, id, **kwargs): if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, inbound_mle_status, "refund_payment,refund_payment_with_http_info"): body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params) + isResponseMLEforApi = MLEUtility.check_is_response_mle_for_api(self.api_client.mconfig, "refund_payment,refund_payment_with_http_info") + # Authentication setting auth_settings = [] @@ -304,4 +309,5 @@ def refund_payment_with_http_info(self, refund_payment_request, id, **kwargs): _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) + collection_formats=collection_formats, + isResponseMLEforApi=isResponseMLEforApi) diff --git a/CyberSource/api/report_definitions_api.py b/CyberSource/api/report_definitions_api.py index bc28bf5c..f5799e66 100644 --- a/CyberSource/api/report_definitions_api.py +++ b/CyberSource/api/report_definitions_api.py @@ -165,6 +165,8 @@ def get_resource_info_by_report_definition_with_http_info(self, report_definitio if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, inbound_mle_status, "get_resource_info_by_report_definition,get_resource_info_by_report_definition_with_http_info"): body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params) + isResponseMLEforApi = MLEUtility.check_is_response_mle_for_api(self.api_client.mconfig, "get_resource_info_by_report_definition,get_resource_info_by_report_definition_with_http_info") + # Authentication setting auth_settings = [] @@ -181,7 +183,8 @@ def get_resource_info_by_report_definition_with_http_info(self, report_definitio _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) + collection_formats=collection_formats, + isResponseMLEforApi=isResponseMLEforApi) def get_resource_v2_info(self, **kwargs): """ @@ -286,6 +289,8 @@ def get_resource_v2_info_with_http_info(self, **kwargs): if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, inbound_mle_status, "get_resource_v2_info,get_resource_v2_info_with_http_info"): body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params) + isResponseMLEforApi = MLEUtility.check_is_response_mle_for_api(self.api_client.mconfig, "get_resource_v2_info,get_resource_v2_info_with_http_info") + # Authentication setting auth_settings = [] @@ -302,4 +307,5 @@ def get_resource_v2_info_with_http_info(self, **kwargs): _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) + collection_formats=collection_formats, + isResponseMLEforApi=isResponseMLEforApi) diff --git a/CyberSource/api/report_downloads_api.py b/CyberSource/api/report_downloads_api.py index da3e216d..e04548cd 100644 --- a/CyberSource/api/report_downloads_api.py +++ b/CyberSource/api/report_downloads_api.py @@ -165,6 +165,8 @@ def download_report_with_http_info(self, report_date, report_name, **kwargs): if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, inbound_mle_status, "download_report,download_report_with_http_info"): body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params) + isResponseMLEforApi = MLEUtility.check_is_response_mle_for_api(self.api_client.mconfig, "download_report,download_report_with_http_info") + # Authentication setting auth_settings = [] @@ -181,4 +183,5 @@ def download_report_with_http_info(self, report_date, report_name, **kwargs): _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) + collection_formats=collection_formats, + isResponseMLEforApi=isResponseMLEforApi) diff --git a/CyberSource/api/report_subscriptions_api.py b/CyberSource/api/report_subscriptions_api.py index 9ab27e48..819e4126 100644 --- a/CyberSource/api/report_subscriptions_api.py +++ b/CyberSource/api/report_subscriptions_api.py @@ -153,6 +153,8 @@ def create_standard_or_classic_subscription_with_http_info(self, predefined_subs if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, inbound_mle_status, "create_standard_or_classic_subscription,create_standard_or_classic_subscription_with_http_info"): body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params) + isResponseMLEforApi = MLEUtility.check_is_response_mle_for_api(self.api_client.mconfig, "create_standard_or_classic_subscription,create_standard_or_classic_subscription_with_http_info") + # Authentication setting auth_settings = [] @@ -169,7 +171,8 @@ def create_standard_or_classic_subscription_with_http_info(self, predefined_subs _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) + collection_formats=collection_formats, + isResponseMLEforApi=isResponseMLEforApi) def create_subscription(self, create_report_subscription_request, **kwargs): """ @@ -276,6 +279,8 @@ def create_subscription_with_http_info(self, create_report_subscription_request, if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, inbound_mle_status, "create_subscription,create_subscription_with_http_info"): body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params) + isResponseMLEforApi = MLEUtility.check_is_response_mle_for_api(self.api_client.mconfig, "create_subscription,create_subscription_with_http_info") + # Authentication setting auth_settings = [] @@ -292,7 +297,8 @@ def create_subscription_with_http_info(self, create_report_subscription_request, _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) + collection_formats=collection_formats, + isResponseMLEforApi=isResponseMLEforApi) def delete_subscription(self, report_name, **kwargs): """ @@ -403,6 +409,8 @@ def delete_subscription_with_http_info(self, report_name, **kwargs): if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, inbound_mle_status, "delete_subscription,delete_subscription_with_http_info"): body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params) + isResponseMLEforApi = MLEUtility.check_is_response_mle_for_api(self.api_client.mconfig, "delete_subscription,delete_subscription_with_http_info") + # Authentication setting auth_settings = [] @@ -419,7 +427,8 @@ def delete_subscription_with_http_info(self, report_name, **kwargs): _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) + collection_formats=collection_formats, + isResponseMLEforApi=isResponseMLEforApi) def get_all_subscriptions(self, **kwargs): """ @@ -520,6 +529,8 @@ def get_all_subscriptions_with_http_info(self, **kwargs): if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, inbound_mle_status, "get_all_subscriptions,get_all_subscriptions_with_http_info"): body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params) + isResponseMLEforApi = MLEUtility.check_is_response_mle_for_api(self.api_client.mconfig, "get_all_subscriptions,get_all_subscriptions_with_http_info") + # Authentication setting auth_settings = [] @@ -536,7 +547,8 @@ def get_all_subscriptions_with_http_info(self, **kwargs): _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) + collection_formats=collection_formats, + isResponseMLEforApi=isResponseMLEforApi) def get_subscription(self, report_name, **kwargs): """ @@ -647,6 +659,8 @@ def get_subscription_with_http_info(self, report_name, **kwargs): if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, inbound_mle_status, "get_subscription,get_subscription_with_http_info"): body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params) + isResponseMLEforApi = MLEUtility.check_is_response_mle_for_api(self.api_client.mconfig, "get_subscription,get_subscription_with_http_info") + # Authentication setting auth_settings = [] @@ -663,4 +677,5 @@ def get_subscription_with_http_info(self, report_name, **kwargs): _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) + collection_formats=collection_formats, + isResponseMLEforApi=isResponseMLEforApi) diff --git a/CyberSource/api/reports_api.py b/CyberSource/api/reports_api.py index 5b3de1ef..a0d6fe19 100644 --- a/CyberSource/api/reports_api.py +++ b/CyberSource/api/reports_api.py @@ -153,6 +153,8 @@ def create_report_with_http_info(self, create_adhoc_report_request, **kwargs): if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, inbound_mle_status, "create_report,create_report_with_http_info"): body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params) + isResponseMLEforApi = MLEUtility.check_is_response_mle_for_api(self.api_client.mconfig, "create_report,create_report_with_http_info") + # Authentication setting auth_settings = [] @@ -169,7 +171,8 @@ def create_report_with_http_info(self, create_adhoc_report_request, **kwargs): _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) + collection_formats=collection_formats, + isResponseMLEforApi=isResponseMLEforApi) def get_report_by_report_id(self, report_id, **kwargs): """ @@ -280,6 +283,8 @@ def get_report_by_report_id_with_http_info(self, report_id, **kwargs): if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, inbound_mle_status, "get_report_by_report_id,get_report_by_report_id_with_http_info"): body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params) + isResponseMLEforApi = MLEUtility.check_is_response_mle_for_api(self.api_client.mconfig, "get_report_by_report_id,get_report_by_report_id_with_http_info") + # Authentication setting auth_settings = [] @@ -296,7 +301,8 @@ def get_report_by_report_id_with_http_info(self, report_id, **kwargs): _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) + collection_formats=collection_formats, + isResponseMLEforApi=isResponseMLEforApi) def search_reports(self, start_time, end_time, time_query_type, **kwargs): """ @@ -444,6 +450,8 @@ def search_reports_with_http_info(self, start_time, end_time, time_query_type, * if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, inbound_mle_status, "search_reports,search_reports_with_http_info"): body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params) + isResponseMLEforApi = MLEUtility.check_is_response_mle_for_api(self.api_client.mconfig, "search_reports,search_reports_with_http_info") + # Authentication setting auth_settings = [] @@ -460,4 +468,5 @@ def search_reports_with_http_info(self, start_time, end_time, time_query_type, * _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) + collection_formats=collection_formats, + isResponseMLEforApi=isResponseMLEforApi) diff --git a/CyberSource/api/retrieval_details_api.py b/CyberSource/api/retrieval_details_api.py index 45a88a3b..30908bec 100644 --- a/CyberSource/api/retrieval_details_api.py +++ b/CyberSource/api/retrieval_details_api.py @@ -165,6 +165,8 @@ def get_retrieval_details_with_http_info(self, start_time, end_time, **kwargs): if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, inbound_mle_status, "get_retrieval_details,get_retrieval_details_with_http_info"): body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params) + isResponseMLEforApi = MLEUtility.check_is_response_mle_for_api(self.api_client.mconfig, "get_retrieval_details,get_retrieval_details_with_http_info") + # Authentication setting auth_settings = [] @@ -181,4 +183,5 @@ def get_retrieval_details_with_http_info(self, start_time, end_time, **kwargs): _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) + collection_formats=collection_formats, + isResponseMLEforApi=isResponseMLEforApi) diff --git a/CyberSource/api/retrieval_summaries_api.py b/CyberSource/api/retrieval_summaries_api.py index d74c864f..4b657034 100644 --- a/CyberSource/api/retrieval_summaries_api.py +++ b/CyberSource/api/retrieval_summaries_api.py @@ -165,6 +165,8 @@ def get_retrieval_summary_with_http_info(self, start_time, end_time, **kwargs): if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, inbound_mle_status, "get_retrieval_summary,get_retrieval_summary_with_http_info"): body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params) + isResponseMLEforApi = MLEUtility.check_is_response_mle_for_api(self.api_client.mconfig, "get_retrieval_summary,get_retrieval_summary_with_http_info") + # Authentication setting auth_settings = [] @@ -181,4 +183,5 @@ def get_retrieval_summary_with_http_info(self, start_time, end_time, **kwargs): _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) + collection_formats=collection_formats, + isResponseMLEforApi=isResponseMLEforApi) diff --git a/CyberSource/api/reversal_api.py b/CyberSource/api/reversal_api.py index 33340bba..11475d6d 100644 --- a/CyberSource/api/reversal_api.py +++ b/CyberSource/api/reversal_api.py @@ -159,6 +159,8 @@ def auth_reversal_with_http_info(self, id, auth_reversal_request, **kwargs): if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, inbound_mle_status, "auth_reversal,auth_reversal_with_http_info"): body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params) + isResponseMLEforApi = MLEUtility.check_is_response_mle_for_api(self.api_client.mconfig, "auth_reversal,auth_reversal_with_http_info") + # Authentication setting auth_settings = [] @@ -175,7 +177,8 @@ def auth_reversal_with_http_info(self, id, auth_reversal_request, **kwargs): _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) + collection_formats=collection_formats, + isResponseMLEforApi=isResponseMLEforApi) def mit_reversal(self, mit_reversal_request, **kwargs): """ @@ -278,6 +281,8 @@ def mit_reversal_with_http_info(self, mit_reversal_request, **kwargs): if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, inbound_mle_status, "mit_reversal,mit_reversal_with_http_info"): body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params) + isResponseMLEforApi = MLEUtility.check_is_response_mle_for_api(self.api_client.mconfig, "mit_reversal,mit_reversal_with_http_info") + # Authentication setting auth_settings = [] @@ -294,4 +299,5 @@ def mit_reversal_with_http_info(self, mit_reversal_request, **kwargs): _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) + collection_formats=collection_formats, + isResponseMLEforApi=isResponseMLEforApi) diff --git a/CyberSource/api/search_transactions_api.py b/CyberSource/api/search_transactions_api.py index 86245ea6..d0bd6a9a 100644 --- a/CyberSource/api/search_transactions_api.py +++ b/CyberSource/api/search_transactions_api.py @@ -149,6 +149,8 @@ def create_search_with_http_info(self, create_search_request, **kwargs): if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, inbound_mle_status, "create_search,create_search_with_http_info"): body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params) + isResponseMLEforApi = MLEUtility.check_is_response_mle_for_api(self.api_client.mconfig, "create_search,create_search_with_http_info") + # Authentication setting auth_settings = [] @@ -165,7 +167,8 @@ def create_search_with_http_info(self, create_search_request, **kwargs): _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) + collection_formats=collection_formats, + isResponseMLEforApi=isResponseMLEforApi) def get_search(self, search_id, **kwargs): """ @@ -272,6 +275,8 @@ def get_search_with_http_info(self, search_id, **kwargs): if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, inbound_mle_status, "get_search,get_search_with_http_info"): body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params) + isResponseMLEforApi = MLEUtility.check_is_response_mle_for_api(self.api_client.mconfig, "get_search,get_search_with_http_info") + # Authentication setting auth_settings = [] @@ -288,4 +293,5 @@ def get_search_with_http_info(self, search_id, **kwargs): _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) + collection_formats=collection_formats, + isResponseMLEforApi=isResponseMLEforApi) diff --git a/CyberSource/api/secure_file_share_api.py b/CyberSource/api/secure_file_share_api.py index b52f319d..5f3a8dad 100644 --- a/CyberSource/api/secure_file_share_api.py +++ b/CyberSource/api/secure_file_share_api.py @@ -157,6 +157,8 @@ def get_file_with_http_info(self, file_id, **kwargs): if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, inbound_mle_status, "get_file,get_file_with_http_info"): body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params) + isResponseMLEforApi = MLEUtility.check_is_response_mle_for_api(self.api_client.mconfig, "get_file,get_file_with_http_info") + # Authentication setting auth_settings = [] @@ -173,7 +175,8 @@ def get_file_with_http_info(self, file_id, **kwargs): _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) + collection_formats=collection_formats, + isResponseMLEforApi=isResponseMLEforApi) def get_file_detail(self, start_date, end_date, **kwargs): """ @@ -296,6 +299,8 @@ def get_file_detail_with_http_info(self, start_date, end_date, **kwargs): if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, inbound_mle_status, "get_file_detail,get_file_detail_with_http_info"): body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params) + isResponseMLEforApi = MLEUtility.check_is_response_mle_for_api(self.api_client.mconfig, "get_file_detail,get_file_detail_with_http_info") + # Authentication setting auth_settings = [] @@ -312,4 +317,5 @@ def get_file_detail_with_http_info(self, start_date, end_date, **kwargs): _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) + collection_formats=collection_formats, + isResponseMLEforApi=isResponseMLEforApi) diff --git a/CyberSource/api/subscriptions_api.py b/CyberSource/api/subscriptions_api.py index 3968915e..2a4ea5d1 100644 --- a/CyberSource/api/subscriptions_api.py +++ b/CyberSource/api/subscriptions_api.py @@ -157,6 +157,8 @@ def activate_subscription_with_http_info(self, id, **kwargs): if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, inbound_mle_status, "activate_subscription,activate_subscription_with_http_info"): body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params) + isResponseMLEforApi = MLEUtility.check_is_response_mle_for_api(self.api_client.mconfig, "activate_subscription,activate_subscription_with_http_info") + # Authentication setting auth_settings = [] @@ -173,7 +175,8 @@ def activate_subscription_with_http_info(self, id, **kwargs): _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) + collection_formats=collection_formats, + isResponseMLEforApi=isResponseMLEforApi) def cancel_subscription(self, id, **kwargs): """ @@ -280,6 +283,8 @@ def cancel_subscription_with_http_info(self, id, **kwargs): if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, inbound_mle_status, "cancel_subscription,cancel_subscription_with_http_info"): body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params) + isResponseMLEforApi = MLEUtility.check_is_response_mle_for_api(self.api_client.mconfig, "cancel_subscription,cancel_subscription_with_http_info") + # Authentication setting auth_settings = [] @@ -296,7 +301,8 @@ def cancel_subscription_with_http_info(self, id, **kwargs): _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) + collection_formats=collection_formats, + isResponseMLEforApi=isResponseMLEforApi) def create_subscription(self, create_subscription_request, **kwargs): """ @@ -399,6 +405,8 @@ def create_subscription_with_http_info(self, create_subscription_request, **kwar if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, inbound_mle_status, "create_subscription,create_subscription_with_http_info"): body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params) + isResponseMLEforApi = MLEUtility.check_is_response_mle_for_api(self.api_client.mconfig, "create_subscription,create_subscription_with_http_info") + # Authentication setting auth_settings = [] @@ -415,7 +423,8 @@ def create_subscription_with_http_info(self, create_subscription_request, **kwar _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) + collection_formats=collection_formats, + isResponseMLEforApi=isResponseMLEforApi) def get_all_subscriptions(self, **kwargs): """ @@ -528,6 +537,8 @@ def get_all_subscriptions_with_http_info(self, **kwargs): if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, inbound_mle_status, "get_all_subscriptions,get_all_subscriptions_with_http_info"): body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params) + isResponseMLEforApi = MLEUtility.check_is_response_mle_for_api(self.api_client.mconfig, "get_all_subscriptions,get_all_subscriptions_with_http_info") + # Authentication setting auth_settings = [] @@ -544,7 +555,8 @@ def get_all_subscriptions_with_http_info(self, **kwargs): _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) + collection_formats=collection_formats, + isResponseMLEforApi=isResponseMLEforApi) def get_subscription(self, id, **kwargs): """ @@ -651,6 +663,8 @@ def get_subscription_with_http_info(self, id, **kwargs): if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, inbound_mle_status, "get_subscription,get_subscription_with_http_info"): body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params) + isResponseMLEforApi = MLEUtility.check_is_response_mle_for_api(self.api_client.mconfig, "get_subscription,get_subscription_with_http_info") + # Authentication setting auth_settings = [] @@ -667,7 +681,8 @@ def get_subscription_with_http_info(self, id, **kwargs): _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) + collection_formats=collection_formats, + isResponseMLEforApi=isResponseMLEforApi) def get_subscription_code(self, **kwargs): """ @@ -763,6 +778,8 @@ def get_subscription_code_with_http_info(self, **kwargs): if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, inbound_mle_status, "get_subscription_code,get_subscription_code_with_http_info"): body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params) + isResponseMLEforApi = MLEUtility.check_is_response_mle_for_api(self.api_client.mconfig, "get_subscription_code,get_subscription_code_with_http_info") + # Authentication setting auth_settings = [] @@ -779,7 +796,8 @@ def get_subscription_code_with_http_info(self, **kwargs): _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) + collection_formats=collection_formats, + isResponseMLEforApi=isResponseMLEforApi) def suspend_subscription(self, id, **kwargs): """ @@ -886,6 +904,8 @@ def suspend_subscription_with_http_info(self, id, **kwargs): if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, inbound_mle_status, "suspend_subscription,suspend_subscription_with_http_info"): body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params) + isResponseMLEforApi = MLEUtility.check_is_response_mle_for_api(self.api_client.mconfig, "suspend_subscription,suspend_subscription_with_http_info") + # Authentication setting auth_settings = [] @@ -902,7 +922,8 @@ def suspend_subscription_with_http_info(self, id, **kwargs): _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) + collection_formats=collection_formats, + isResponseMLEforApi=isResponseMLEforApi) def update_subscription(self, id, update_subscription, **kwargs): """ @@ -1015,6 +1036,8 @@ def update_subscription_with_http_info(self, id, update_subscription, **kwargs): if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, inbound_mle_status, "update_subscription,update_subscription_with_http_info"): body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params) + isResponseMLEforApi = MLEUtility.check_is_response_mle_for_api(self.api_client.mconfig, "update_subscription,update_subscription_with_http_info") + # Authentication setting auth_settings = [] @@ -1031,4 +1054,5 @@ def update_subscription_with_http_info(self, id, update_subscription, **kwargs): _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) + collection_formats=collection_formats, + isResponseMLEforApi=isResponseMLEforApi) diff --git a/CyberSource/api/subscriptions_follow_ons_api.py b/CyberSource/api/subscriptions_follow_ons_api.py index 0a44ec24..4e094066 100644 --- a/CyberSource/api/subscriptions_follow_ons_api.py +++ b/CyberSource/api/subscriptions_follow_ons_api.py @@ -159,6 +159,8 @@ def create_follow_on_subscription_with_http_info(self, request_id, create_subscr if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, inbound_mle_status, "create_follow_on_subscription,create_follow_on_subscription_with_http_info"): body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params) + isResponseMLEforApi = MLEUtility.check_is_response_mle_for_api(self.api_client.mconfig, "create_follow_on_subscription,create_follow_on_subscription_with_http_info") + # Authentication setting auth_settings = [] @@ -175,7 +177,8 @@ def create_follow_on_subscription_with_http_info(self, request_id, create_subscr _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) + collection_formats=collection_formats, + isResponseMLEforApi=isResponseMLEforApi) def get_follow_on_subscription(self, request_id, **kwargs): """ @@ -282,6 +285,8 @@ def get_follow_on_subscription_with_http_info(self, request_id, **kwargs): if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, inbound_mle_status, "get_follow_on_subscription,get_follow_on_subscription_with_http_info"): body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params) + isResponseMLEforApi = MLEUtility.check_is_response_mle_for_api(self.api_client.mconfig, "get_follow_on_subscription,get_follow_on_subscription_with_http_info") + # Authentication setting auth_settings = [] @@ -298,4 +303,5 @@ def get_follow_on_subscription_with_http_info(self, request_id, **kwargs): _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) + collection_formats=collection_formats, + isResponseMLEforApi=isResponseMLEforApi) diff --git a/CyberSource/api/taxes_api.py b/CyberSource/api/taxes_api.py index 439e649f..d153ea3a 100644 --- a/CyberSource/api/taxes_api.py +++ b/CyberSource/api/taxes_api.py @@ -149,6 +149,8 @@ def calculate_tax_with_http_info(self, tax_request, **kwargs): if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, inbound_mle_status, "calculate_tax,calculate_tax_with_http_info"): body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params) + isResponseMLEforApi = MLEUtility.check_is_response_mle_for_api(self.api_client.mconfig, "calculate_tax,calculate_tax_with_http_info") + # Authentication setting auth_settings = [] @@ -165,7 +167,8 @@ def calculate_tax_with_http_info(self, tax_request, **kwargs): _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) + collection_formats=collection_formats, + isResponseMLEforApi=isResponseMLEforApi) def void_tax(self, void_tax_request, id, **kwargs): """ @@ -278,6 +281,8 @@ def void_tax_with_http_info(self, void_tax_request, id, **kwargs): if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, inbound_mle_status, "void_tax,void_tax_with_http_info"): body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params) + isResponseMLEforApi = MLEUtility.check_is_response_mle_for_api(self.api_client.mconfig, "void_tax,void_tax_with_http_info") + # Authentication setting auth_settings = [] @@ -294,4 +299,5 @@ def void_tax_with_http_info(self, void_tax_request, id, **kwargs): _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) + collection_formats=collection_formats, + isResponseMLEforApi=isResponseMLEforApi) diff --git a/CyberSource/api/token_api.py b/CyberSource/api/token_api.py index 6c488afb..22203dd7 100644 --- a/CyberSource/api/token_api.py +++ b/CyberSource/api/token_api.py @@ -173,6 +173,8 @@ def get_card_art_asset_with_http_info(self, instrument_identifier_id, token_prov if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, inbound_mle_status, "get_card_art_asset,get_card_art_asset_with_http_info"): body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params) + isResponseMLEforApi = MLEUtility.check_is_response_mle_for_api(self.api_client.mconfig, "get_card_art_asset,get_card_art_asset_with_http_info") + # Authentication setting auth_settings = [] @@ -189,7 +191,8 @@ def get_card_art_asset_with_http_info(self, instrument_identifier_id, token_prov _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) + collection_formats=collection_formats, + isResponseMLEforApi=isResponseMLEforApi) def post_token_payment_credentials(self, token_id, post_payment_credentials_request, **kwargs): """ @@ -306,6 +309,8 @@ def post_token_payment_credentials_with_http_info(self, token_id, post_payment_c if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, inbound_mle_status, "post_token_payment_credentials,post_token_payment_credentials_with_http_info"): body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params) + isResponseMLEforApi = MLEUtility.check_is_response_mle_for_api(self.api_client.mconfig, "post_token_payment_credentials,post_token_payment_credentials_with_http_info") + # Authentication setting auth_settings = [] @@ -322,4 +327,5 @@ def post_token_payment_credentials_with_http_info(self, token_id, post_payment_c _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) + collection_formats=collection_formats, + isResponseMLEforApi=isResponseMLEforApi) diff --git a/CyberSource/api/tokenized_card_api.py b/CyberSource/api/tokenized_card_api.py index c6c0ffa1..89d09ea8 100644 --- a/CyberSource/api/tokenized_card_api.py +++ b/CyberSource/api/tokenized_card_api.py @@ -157,6 +157,8 @@ def delete_tokenized_card_with_http_info(self, tokenized_card_id, **kwargs): if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, inbound_mle_status, "delete_tokenized_card,delete_tokenized_card_with_http_info"): body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params) + isResponseMLEforApi = MLEUtility.check_is_response_mle_for_api(self.api_client.mconfig, "delete_tokenized_card,delete_tokenized_card_with_http_info") + # Authentication setting auth_settings = [] @@ -173,7 +175,8 @@ def delete_tokenized_card_with_http_info(self, tokenized_card_id, **kwargs): _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) + collection_formats=collection_formats, + isResponseMLEforApi=isResponseMLEforApi) def get_tokenized_card(self, tokenized_card_id, **kwargs): """ @@ -284,6 +287,8 @@ def get_tokenized_card_with_http_info(self, tokenized_card_id, **kwargs): if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, inbound_mle_status, "get_tokenized_card,get_tokenized_card_with_http_info"): body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params) + isResponseMLEforApi = MLEUtility.check_is_response_mle_for_api(self.api_client.mconfig, "get_tokenized_card,get_tokenized_card_with_http_info") + # Authentication setting auth_settings = [] @@ -300,7 +305,8 @@ def get_tokenized_card_with_http_info(self, tokenized_card_id, **kwargs): _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) + collection_formats=collection_formats, + isResponseMLEforApi=isResponseMLEforApi) def post_tokenized_card(self, tokenizedcard_request, **kwargs): """ @@ -407,6 +413,8 @@ def post_tokenized_card_with_http_info(self, tokenizedcard_request, **kwargs): if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, inbound_mle_status, "post_tokenized_card,post_tokenized_card_with_http_info"): body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params) + isResponseMLEforApi = MLEUtility.check_is_response_mle_for_api(self.api_client.mconfig, "post_tokenized_card,post_tokenized_card_with_http_info") + # Authentication setting auth_settings = [] @@ -423,4 +431,5 @@ def post_tokenized_card_with_http_info(self, tokenizedcard_request, **kwargs): _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) + collection_formats=collection_formats, + isResponseMLEforApi=isResponseMLEforApi) diff --git a/CyberSource/api/transaction_batches_api.py b/CyberSource/api/transaction_batches_api.py index 90939d2e..51533aeb 100644 --- a/CyberSource/api/transaction_batches_api.py +++ b/CyberSource/api/transaction_batches_api.py @@ -161,6 +161,8 @@ def get_transaction_batch_details_with_http_info(self, id, **kwargs): if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, inbound_mle_status, "get_transaction_batch_details,get_transaction_batch_details_with_http_info"): body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params) + isResponseMLEforApi = MLEUtility.check_is_response_mle_for_api(self.api_client.mconfig, "get_transaction_batch_details,get_transaction_batch_details_with_http_info") + # Authentication setting auth_settings = [] @@ -177,7 +179,8 @@ def get_transaction_batch_details_with_http_info(self, id, **kwargs): _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) + collection_formats=collection_formats, + isResponseMLEforApi=isResponseMLEforApi) def get_transaction_batch_id(self, id, **kwargs): """ @@ -284,6 +287,8 @@ def get_transaction_batch_id_with_http_info(self, id, **kwargs): if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, inbound_mle_status, "get_transaction_batch_id,get_transaction_batch_id_with_http_info"): body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params) + isResponseMLEforApi = MLEUtility.check_is_response_mle_for_api(self.api_client.mconfig, "get_transaction_batch_id,get_transaction_batch_id_with_http_info") + # Authentication setting auth_settings = [] @@ -300,7 +305,8 @@ def get_transaction_batch_id_with_http_info(self, id, **kwargs): _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) + collection_formats=collection_formats, + isResponseMLEforApi=isResponseMLEforApi) def get_transaction_batches(self, start_time, end_time, **kwargs): """ @@ -415,6 +421,8 @@ def get_transaction_batches_with_http_info(self, start_time, end_time, **kwargs) if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, inbound_mle_status, "get_transaction_batches,get_transaction_batches_with_http_info"): body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params) + isResponseMLEforApi = MLEUtility.check_is_response_mle_for_api(self.api_client.mconfig, "get_transaction_batches,get_transaction_batches_with_http_info") + # Authentication setting auth_settings = [] @@ -431,7 +439,8 @@ def get_transaction_batches_with_http_info(self, start_time, end_time, **kwargs) _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) + collection_formats=collection_formats, + isResponseMLEforApi=isResponseMLEforApi) def upload_transaction_batch(self, file, **kwargs): """ @@ -537,6 +546,8 @@ def upload_transaction_batch_with_http_info(self, file, **kwargs): if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, inbound_mle_status, "upload_transaction_batch,upload_transaction_batch_with_http_info"): body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params) + isResponseMLEforApi = MLEUtility.check_is_response_mle_for_api(self.api_client.mconfig, "upload_transaction_batch,upload_transaction_batch_with_http_info") + # Authentication setting auth_settings = [] @@ -553,4 +564,5 @@ def upload_transaction_batch_with_http_info(self, file, **kwargs): _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) + collection_formats=collection_formats, + isResponseMLEforApi=isResponseMLEforApi) diff --git a/CyberSource/api/transaction_details_api.py b/CyberSource/api/transaction_details_api.py index 0d23742b..ad2e1bf7 100644 --- a/CyberSource/api/transaction_details_api.py +++ b/CyberSource/api/transaction_details_api.py @@ -153,6 +153,8 @@ def get_transaction_with_http_info(self, id, **kwargs): if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, inbound_mle_status, "get_transaction,get_transaction_with_http_info"): body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params) + isResponseMLEforApi = MLEUtility.check_is_response_mle_for_api(self.api_client.mconfig, "get_transaction,get_transaction_with_http_info") + # Authentication setting auth_settings = [] @@ -169,4 +171,5 @@ def get_transaction_with_http_info(self, id, **kwargs): _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) + collection_formats=collection_formats, + isResponseMLEforApi=isResponseMLEforApi) diff --git a/CyberSource/api/transient_token_data_api.py b/CyberSource/api/transient_token_data_api.py index a612defa..31f40316 100644 --- a/CyberSource/api/transient_token_data_api.py +++ b/CyberSource/api/transient_token_data_api.py @@ -153,6 +153,8 @@ def get_payment_credentials_for_transient_token_with_http_info(self, payment_cre if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, inbound_mle_status, "get_payment_credentials_for_transient_token,get_payment_credentials_for_transient_token_with_http_info"): body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params) + isResponseMLEforApi = MLEUtility.check_is_response_mle_for_api(self.api_client.mconfig, "get_payment_credentials_for_transient_token,get_payment_credentials_for_transient_token_with_http_info") + # Authentication setting auth_settings = [] @@ -169,7 +171,8 @@ def get_payment_credentials_for_transient_token_with_http_info(self, payment_cre _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) + collection_formats=collection_formats, + isResponseMLEforApi=isResponseMLEforApi) def get_transaction_for_transient_token(self, transient_token, **kwargs): """ @@ -276,6 +279,8 @@ def get_transaction_for_transient_token_with_http_info(self, transient_token, ** if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, inbound_mle_status, "get_transaction_for_transient_token,get_transaction_for_transient_token_with_http_info"): body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params) + isResponseMLEforApi = MLEUtility.check_is_response_mle_for_api(self.api_client.mconfig, "get_transaction_for_transient_token,get_transaction_for_transient_token_with_http_info") + # Authentication setting auth_settings = [] @@ -292,4 +297,5 @@ def get_transaction_for_transient_token_with_http_info(self, transient_token, ** _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) + collection_formats=collection_formats, + isResponseMLEforApi=isResponseMLEforApi) diff --git a/CyberSource/api/unified_checkout_capture_context_api.py b/CyberSource/api/unified_checkout_capture_context_api.py index 6d9c733c..8c4bd361 100644 --- a/CyberSource/api/unified_checkout_capture_context_api.py +++ b/CyberSource/api/unified_checkout_capture_context_api.py @@ -149,6 +149,8 @@ def generate_unified_checkout_capture_context_with_http_info(self, generate_unif if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, inbound_mle_status, "generate_unified_checkout_capture_context,generate_unified_checkout_capture_context_with_http_info"): body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params) + isResponseMLEforApi = MLEUtility.check_is_response_mle_for_api(self.api_client.mconfig, "generate_unified_checkout_capture_context,generate_unified_checkout_capture_context_with_http_info") + # Authentication setting auth_settings = [] @@ -165,4 +167,5 @@ def generate_unified_checkout_capture_context_with_http_info(self, generate_unif _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) + collection_formats=collection_formats, + isResponseMLEforApi=isResponseMLEforApi) diff --git a/CyberSource/api/user_management_api.py b/CyberSource/api/user_management_api.py index 481b4d82..e7639eb2 100644 --- a/CyberSource/api/user_management_api.py +++ b/CyberSource/api/user_management_api.py @@ -159,6 +159,8 @@ def get_users_with_http_info(self, **kwargs): if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, inbound_mle_status, "get_users,get_users_with_http_info"): body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params) + isResponseMLEforApi = MLEUtility.check_is_response_mle_for_api(self.api_client.mconfig, "get_users,get_users_with_http_info") + # Authentication setting auth_settings = [] @@ -175,4 +177,5 @@ def get_users_with_http_info(self, **kwargs): _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) + collection_formats=collection_formats, + isResponseMLEforApi=isResponseMLEforApi) diff --git a/CyberSource/api/user_management_search_api.py b/CyberSource/api/user_management_search_api.py index 1f5ca7f2..989df409 100644 --- a/CyberSource/api/user_management_search_api.py +++ b/CyberSource/api/user_management_search_api.py @@ -149,6 +149,8 @@ def search_users_with_http_info(self, search_request, **kwargs): if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, inbound_mle_status, "search_users,search_users_with_http_info"): body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params) + isResponseMLEforApi = MLEUtility.check_is_response_mle_for_api(self.api_client.mconfig, "search_users,search_users_with_http_info") + # Authentication setting auth_settings = [] @@ -165,4 +167,5 @@ def search_users_with_http_info(self, search_request, **kwargs): _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) + collection_formats=collection_formats, + isResponseMLEforApi=isResponseMLEforApi) diff --git a/CyberSource/api/verification_api.py b/CyberSource/api/verification_api.py index 78dbf70c..27dd21f3 100644 --- a/CyberSource/api/verification_api.py +++ b/CyberSource/api/verification_api.py @@ -149,6 +149,8 @@ def validate_export_compliance_with_http_info(self, validate_export_compliance_r if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, inbound_mle_status, "validate_export_compliance,validate_export_compliance_with_http_info"): body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params) + isResponseMLEforApi = MLEUtility.check_is_response_mle_for_api(self.api_client.mconfig, "validate_export_compliance,validate_export_compliance_with_http_info") + # Authentication setting auth_settings = [] @@ -165,7 +167,8 @@ def validate_export_compliance_with_http_info(self, validate_export_compliance_r _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) + collection_formats=collection_formats, + isResponseMLEforApi=isResponseMLEforApi) def verify_customer_address(self, verify_customer_address_request, **kwargs): """ @@ -268,6 +271,8 @@ def verify_customer_address_with_http_info(self, verify_customer_address_request if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, inbound_mle_status, "verify_customer_address,verify_customer_address_with_http_info"): body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params) + isResponseMLEforApi = MLEUtility.check_is_response_mle_for_api(self.api_client.mconfig, "verify_customer_address,verify_customer_address_with_http_info") + # Authentication setting auth_settings = [] @@ -284,4 +289,5 @@ def verify_customer_address_with_http_info(self, verify_customer_address_request _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) + collection_formats=collection_formats, + isResponseMLEforApi=isResponseMLEforApi) diff --git a/CyberSource/api/void_api.py b/CyberSource/api/void_api.py index 10b16bd3..d160e51f 100644 --- a/CyberSource/api/void_api.py +++ b/CyberSource/api/void_api.py @@ -149,6 +149,8 @@ def mit_void_with_http_info(self, mit_void_request, **kwargs): if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, inbound_mle_status, "mit_void,mit_void_with_http_info"): body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params) + isResponseMLEforApi = MLEUtility.check_is_response_mle_for_api(self.api_client.mconfig, "mit_void,mit_void_with_http_info") + # Authentication setting auth_settings = [] @@ -165,7 +167,8 @@ def mit_void_with_http_info(self, mit_void_request, **kwargs): _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) + collection_formats=collection_formats, + isResponseMLEforApi=isResponseMLEforApi) def void_capture(self, void_capture_request, id, **kwargs): """ @@ -278,6 +281,8 @@ def void_capture_with_http_info(self, void_capture_request, id, **kwargs): if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, inbound_mle_status, "void_capture,void_capture_with_http_info"): body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params) + isResponseMLEforApi = MLEUtility.check_is_response_mle_for_api(self.api_client.mconfig, "void_capture,void_capture_with_http_info") + # Authentication setting auth_settings = [] @@ -294,7 +299,8 @@ def void_capture_with_http_info(self, void_capture_request, id, **kwargs): _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) + collection_formats=collection_formats, + isResponseMLEforApi=isResponseMLEforApi) def void_credit(self, void_credit_request, id, **kwargs): """ @@ -407,6 +413,8 @@ def void_credit_with_http_info(self, void_credit_request, id, **kwargs): if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, inbound_mle_status, "void_credit,void_credit_with_http_info"): body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params) + isResponseMLEforApi = MLEUtility.check_is_response_mle_for_api(self.api_client.mconfig, "void_credit,void_credit_with_http_info") + # Authentication setting auth_settings = [] @@ -423,7 +431,8 @@ def void_credit_with_http_info(self, void_credit_request, id, **kwargs): _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) + collection_formats=collection_formats, + isResponseMLEforApi=isResponseMLEforApi) def void_payment(self, void_payment_request, id, **kwargs): """ @@ -536,6 +545,8 @@ def void_payment_with_http_info(self, void_payment_request, id, **kwargs): if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, inbound_mle_status, "void_payment,void_payment_with_http_info"): body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params) + isResponseMLEforApi = MLEUtility.check_is_response_mle_for_api(self.api_client.mconfig, "void_payment,void_payment_with_http_info") + # Authentication setting auth_settings = [] @@ -552,7 +563,8 @@ def void_payment_with_http_info(self, void_payment_request, id, **kwargs): _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) + collection_formats=collection_formats, + isResponseMLEforApi=isResponseMLEforApi) def void_refund(self, void_refund_request, id, **kwargs): """ @@ -665,6 +677,8 @@ def void_refund_with_http_info(self, void_refund_request, id, **kwargs): if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, inbound_mle_status, "void_refund,void_refund_with_http_info"): body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params) + isResponseMLEforApi = MLEUtility.check_is_response_mle_for_api(self.api_client.mconfig, "void_refund,void_refund_with_http_info") + # Authentication setting auth_settings = [] @@ -681,4 +695,5 @@ def void_refund_with_http_info(self, void_refund_request, id, **kwargs): _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) + collection_formats=collection_formats, + isResponseMLEforApi=isResponseMLEforApi) diff --git a/CyberSource/api_client.py b/CyberSource/api_client.py index c6ffa3d6..a326f74f 100644 --- a/CyberSource/api_client.py +++ b/CyberSource/api_client.py @@ -31,7 +31,10 @@ from authenticationsdk.core.MerchantConfiguration import * from authenticationsdk.util.PropertiesUtil import * from authenticationsdk.util.GlobalLabelParameters import * +from authenticationsdk.util.MLEUtility import MLEUtility from six.moves.urllib.parse import urlencode +import logging +import CyberSource.logging.log_factory as LogFactory class ApiClient(object): @@ -153,6 +156,11 @@ def set_configuration(self,config): # To reinitialize with logging config self.rest_client = RESTClientObject(log_config=self.mconfig.log_config) + try: + self.logger = LogFactory.setup_logger(self.__class__.__name__, self.mconfig.log_config) + except Exception: + self.logger = logging.getLogger(self.__class__.__name__) + set_client_cert = rconfig.set_merchantclientcert(config) set_proxy = rconfig.set_merchantproxyconfig(config) @@ -169,7 +177,7 @@ def set_configuration(self,config): self.host = self.mconfig.request_host # Calling the authentication header - def call_authentication_header(self, method, header_params, body, request_target=None): + def call_authentication_header(self, method, header_params, body, request_target=None, isResponseMLEforApi=False): time = self.mconfig.get_time() @@ -179,7 +187,7 @@ def call_authentication_header(self, method, header_params, body, request_target # header_params['v-c-solution-id'] = self.mconfig.solution_id auth = Authorization() - token = auth.get_token(self.mconfig, time, method, request_target, body) + token = auth.get_token(self.mconfig, time, method, request_target, body, isResponseMLEforApi=isResponseMLEforApi) if self.mconfig.authentication_type.upper() == GlobalLabelParameters.HTTP.upper(): header_params['Accept-Encoding'] = '*' header_params['v-c-merchant-id'] = self.mconfig.merchant_id @@ -226,7 +234,7 @@ def __call_api(self, resource_path, method, body=None, post_params=None, files=None, response_type=None, auth_settings=None, callback=None, _return_http_data_only=None, collection_formats=None, _preload_content=True, - _request_timeout=None): + _request_timeout=None, isResponseMLEforApi=False): config = Configuration() @@ -310,6 +318,18 @@ def __call_api(self, resource_path, method, _preload_content=_preload_content, _request_timeout=_request_timeout) + if hasattr(self, 'mconfig'): + try: + if MLEUtility.check_is_mle_encrypted_response(response_data.data): + decrypted_data = MLEUtility.decrypt_mle_response_payload(self.mconfig, response_data.data) + response_data.data = decrypted_data + except Exception as e: + if (hasattr(self, "logger") and + hasattr(self.mconfig, "log_config") and + self.mconfig.log_config.enable_log): + self.logger.error("[MLE] Failed to decrypt response") + raise ApiException(status=500, reason=f"MLE response decryption failed: {e}") + if self.download_file_path is None: self.last_response = response_data @@ -453,16 +473,15 @@ def call_api(self, resource_path, method, body=None, post_params=None, files=None, response_type=None, auth_settings=None, callback=None, _return_http_data_only=None, collection_formats=None, _preload_content=True, - _request_timeout=None): + _request_timeout=None, isResponseMLEforApi=False): if header_params['Content-Type'] == 'application/x-www-form-urlencoded': post_params = body query_param_path = self.set_query_params(resource_path, query_params) request_target = query_param_path if query_param_path else resource_path - if self.mconfig.authentication_type.upper() != GlobalLabelParameters.MUTUAL_AUTH.upper(): - self.call_authentication_header(method, header_params, body, request_target) + self.call_authentication_header(method, header_params, body, request_target, isResponseMLEforApi=isResponseMLEforApi) """ Makes the HTTP request (synchronous) and return the deserialized data. @@ -503,7 +522,8 @@ def call_api(self, resource_path, method, path_params, query_params, header_params, body, post_params, files, response_type, auth_settings, callback, - _return_http_data_only, collection_formats, _preload_content, _request_timeout) + _return_http_data_only, collection_formats, _preload_content, _request_timeout, + isResponseMLEforApi=isResponseMLEforApi) else: thread = threading.Thread(target=self.__call_api, args=(resource_path, method, @@ -512,7 +532,7 @@ def call_api(self, resource_path, method, post_params, files, response_type, auth_settings, callback, _return_http_data_only, - collection_formats, _preload_content, _request_timeout)) + collection_formats, _preload_content, _request_timeout, isResponseMLEforApi)) thread.start() return thread diff --git a/authenticationsdk/core/Authorization.py b/authenticationsdk/core/Authorization.py index 937d293e..ba3e3e69 100644 --- a/authenticationsdk/core/Authorization.py +++ b/authenticationsdk/core/Authorization.py @@ -13,7 +13,7 @@ def __init__(self): self.logger = None # This method generates and return a encrypted signature based on the Authentication type - def get_token(self, mconfig, date_time, request_type_method, request_target=None, request_json_path_data=None, logger=None): + def get_token(self, mconfig, date_time, request_type_method, request_target=None, request_json_path_data=None, logger=None, isResponseMLEforApi=False): authentication_type = mconfig.authentication_type self.validate_request_type_method(request_type_method) # Initializing the logger object @@ -46,7 +46,7 @@ def get_token(self, mconfig, date_time, request_type_method, request_target=None # JWT-Call elif authentication_type.upper() == GlobalLabelParameters.JWT.upper(): jwt_sig_token = JwtSignatureToken() - jwt_sig_token.jwt_signature_token(mconfig, date_time, request_type_method, request_json_path_data) + jwt_sig_token.jwt_signature_token(mconfig, date_time, request_type_method, request_json_path_data, isResponseMLEforApi) sig_token_jwt = jwt_sig_token.get_token() # Logging the parameters Content-Type,Merchant id,Date ,Host to the log file diff --git a/authenticationsdk/core/MerchantConfiguration.py b/authenticationsdk/core/MerchantConfiguration.py index 58eabe26..669a3bb2 100644 --- a/authenticationsdk/core/MerchantConfiguration.py +++ b/authenticationsdk/core/MerchantConfiguration.py @@ -283,10 +283,6 @@ def set_requestMleKeyAlias(self, value): def get_requestMleKeyAlias(self): return self.requestMleKeyAlias - def set_mleForRequestPublicCertPath(self, value): - if not (value.get('mleForRequestPublicCertPath') is None): - self.mleForRequestPublicCertPath = value['mleForRequestPublicCertPath'] - def set_internalMapToControlMLEonAPI(self): if self.mapToControlMLEonAPI is not None: # Initialize internal maps @@ -534,8 +530,21 @@ def validate_merchant_details(self, details, mconfig = None): self.p12KeyFilePath = os.path.join(self.key_file_path, self.key_file_name) + GlobalLabelParameters.P12_PREFIX log_items = GlobalLabelParameters.HIDE_MERCHANT_CONFIG_PROPS + # To prevent pickling error from deep copying + _no_deepcopy_keys = { + "responseMlePrivateKeyFilePath", + "responseMlePrivateKeyFilePassword", + "responseMlePrivateKey" + } + _temp_details = {} + for _k, _v in details.items(): + if _k in _no_deepcopy_keys: + # Do not deepcopy; mask instead + _temp_details[_k] = "***" + else: + _temp_details[_k] = _v # This displays the logic for logging all cybs.json values - details_copy = copy.deepcopy(details) + details_copy = copy.deepcopy(_temp_details) if self.log_config.enable_log is True: for key, value in list(details_copy.items()): if key in log_items: @@ -583,18 +592,8 @@ def validate_MLE_configuration(self): try: CertificateUtility.validate_path_and_file(self.mleForRequestPublicCertPath, "mleForRequestPublicCertPath", self.log_config) except Exception as err: - self.logger.error(err) + self.logger.error(str(err)) raise err - - # use_mle = False - # if self.enableRequestMLEForOptionalApisGlobally is True or self.useMLEGlobally is True: - # use_mle = True - - # # Check JWT auth for request MLE - # if use_mle and self.authentication_type.lower() != GlobalLabelParameters.JWT.lower(): - # authenticationsdk.util.ExceptionAuth.validate_merchant_details_log(self.logger, - # GlobalLabelParameters.MLE_AUTH_ERROR, - # self.log_config) # Validate Response MLE configuration response_mle_configured = self.enableResponseMleGlobally @@ -652,12 +651,44 @@ def is_valid_boolean_string(self, value): return value.strip().lower() in ("true", "false") return False + # Expected value (in config / cybs.json): + # "mapToControlMLEonAPI": { + # "apiFunctionName1": "true::true", # request MLE = true, response MLE = true + # "apiFunctionName2": "false::false", # request MLE = false, response MLE = false + # "apiFunctionName3": "true::false", # request MLE = true, response MLE = false + # "apiFunctionName4": "false::true", # request MLE = false, response MLE = true + # "apiFunctionName5": "true", # request MLE = true, response uses global flag + # "apiFunctionName6": "false", # request MLE = false, response uses global flag + # "apiFunctionName7": "::true", # response MLE = true, request uses global flag + # "apiFunctionName8": "true::", # request MLE = true, response uses global flag + # } + # IMPORTANT: + # Use STRING values when you need to control both request & response (use '::' separator). + # A bare boolean True/False (or "true"/"false") only applies to request MLE. def validate_map_to_control_mle_on_api_values(self, map_to_control_mle_on_api): """ Validates the map values for MLE control API configuration. - Allowed formats: "true::true", "false::false", "::true", "true::", "::false", "false::", "true", "false" - + Allowed formats (case‑insensitive): + "true::true" - request MLE true, response MLE true + "false::false" - request MLE false, response MLE false + "true::false" - request MLE true, response MLE false + "false::true" - request MLE false, response MLE true + "true" - request MLE true, response uses global flag + "false" - request MLE false, response uses global flag + "::true" - response MLE true, request uses global flag + "true::" - request MLE true, response uses global flag + + Invalid: + "::" (both empty) + "true::true::false" (multiple separators) + "" (empty string) + "invalid::true" / "true::invalid" + + Notes: + - A Python boolean (True / False) is treated the same as "true"/"false" (request only). + - Missing side around '::' -> that side falls back to global enable/disable flags. + Args: map_to_control_mle_on_api (dict): The map to validate @@ -714,6 +745,9 @@ def set_mapToControlMLEonAPI(self, value): raise ValueError("mapToControlMLEonAPI must be a dictionary") # Check map value types - must be string or boolean + for key, val in map_to_control_mle_on_api.items(): + if not isinstance(val, (str, bool)): + raise ValueError(f"mapToControlMLEonAPI values must be string or boolean.") # Validate the map values self.validate_map_to_control_mle_on_api_values(map_to_control_mle_on_api) @@ -721,5 +755,5 @@ def set_mapToControlMLEonAPI(self, value): # Set the map self.mapToControlMLEonAPI = map_to_control_mle_on_api except Exception as e: - self.logger.error(f"Unable to initialize MLE control Map from config: {str(e)}") + self.logger.error(f"Unable to initialize MLE control Map from config") raise ValueError(f"Unable to initialize MLE control Map from config: {str(e)}") diff --git a/authenticationsdk/jwt/Token.py b/authenticationsdk/jwt/Token.py index f1d05dae..eccda2b1 100644 --- a/authenticationsdk/jwt/Token.py +++ b/authenticationsdk/jwt/Token.py @@ -11,12 +11,14 @@ def __init__(self): self.jwt_method = None self.date = None self.request_json_path_data = None + self.isResponseMLEforApi =False - def jwt_signature_token(self, mconfig, date_time, request_type_method, request_json_path_data=None): + def jwt_signature_token(self, mconfig, date_time, request_type_method, request_json_path_data=None, isResponseMLEforApi=False): self.merchant_config = mconfig self.jwt_method = request_type_method self.date = date_time self.request_json_path_data = request_json_path_data + self.isResponseMLEforApi = isResponseMLEforApi def get_token(self): return self.set_token() @@ -36,6 +38,11 @@ def set_token(self): def token_for_get_and_delete(self): # Setting the jwt body for JWT-get jwt_body = {GlobalLabelParameters.JWT_TIME: self.date} + + if self.isResponseMLEforApi: + if self.merchant_config.responseMleKID: + jwt_body['v-c-response-mle-kid'] = self.merchant_config.responseMleKID #check access properly + # reading the p12 file from cache memory cache_obj = FileCache() cache_memory = cache_obj.fetch_cached_p12_certificate(self.merchant_config, self.merchant_config.p12KeyFilePath, self.merchant_config.key_password) @@ -61,6 +68,11 @@ def token_for_post_and_put_and_patch(self): # Setting the jwt body for JWT-post jwt_body = {GlobalLabelParameters.JWT_DIGEST: digest.decode("utf-8"), GlobalLabelParameters.JWT_ALGORITHM: "SHA-256", GlobalLabelParameters.JWT_TIME: self.date} + + if self.isResponseMLEforApi: + if self.merchant_config.responseMleKID: + jwt_body['v-c-response-mle-kid'] = self.merchant_config.responseMleKID + # reading the p12 file from cache memory cache_obj = FileCache() cache_memory = cache_obj.fetch_cached_p12_certificate(self.merchant_config, self.merchant_config.p12KeyFilePath, self.merchant_config.key_password) diff --git a/authenticationsdk/util/Cache.py b/authenticationsdk/util/Cache.py index 3e4472f8..6e228e59 100644 --- a/authenticationsdk/util/Cache.py +++ b/authenticationsdk/util/Cache.py @@ -7,14 +7,14 @@ from cryptography import x509 from cryptography.hazmat.primitives import serialization from cryptography.hazmat.backends import default_backend -from cryptography.hazmat.primitives.serialization import pkcs12 +from cryptography.hazmat.primitives.serialization import pkcs12, load_pem_private_key from typing_extensions import deprecated from authenticationsdk.util.CertificateUtility import CertificateUtility from authenticationsdk.util.GlobalLabelParameters import * import CyberSource.logging.log_factory as LogFactory -import threading +import os class CertInfo: def __init__(self, certificate, timestamp, private_key): @@ -101,11 +101,13 @@ def get_request_mle_cert_from_cache(self, merchant_config): certificate_file_path = None # Priority #1: Get cert from merchantConfig.mle_for_request_public_cert_path if certPath is provided - if merchant_config.mleForRequestPublicCertPath and merchant_config.mleForRequestPublicCertPath.strip(): + if (merchant_config.mleForRequestPublicCertPath and + merchant_config.mleForRequestPublicCertPath.strip()): certificate_identifier = GlobalLabelParameters.MLE_CACHE_IDENTIFIER_FOR_CONFIG_CERT certificate_file_path = merchant_config.mleForRequestPublicCertPath # Priority #2: If mle_for_request_public_cert_path not provided, get mlecert from p12 if provided and jwt auth type - elif (GlobalLabelParameters.JWT.lower() == merchant_config.authentication_type.lower() and merchant_config.p12KeyFilePath): + elif (GlobalLabelParameters.JWT.lower() == merchant_config.authentication_type.lower() and + merchant_config.p12KeyFilePath): certificate_identifier = GlobalLabelParameters.MLE_CACHE_IDENTIFIER_FOR_P12_CERT certificate_file_path = merchant_config.p12KeyFilePath # Priority #3: Get mlecert from default cert in SDK as per CAS or PROD env. @@ -130,7 +132,7 @@ def get_mle_cert_based_on_cache_key(self, merchant_config, cache_key, certificat return cert_info.certificate if cert_info else None - def setup_mle_cache(self, merchant_config, cache_key, certificate_file_path): + def setup_mle_cache(self, merchant_config, cache_key, file_path): if FileCache.logger is None: FileCache.logger = LogFactory.setup_logger(__name__, merchant_config.log_config) logger = FileCache.logger @@ -138,14 +140,45 @@ def setup_mle_cache(self, merchant_config, cache_key, certificate_file_path): mle_certificate = None private_key = None + # Handle Response MLE Private Key + if cache_key.endswith(GlobalLabelParameters.MLE_CACHE_KEY_IDENTIFIER_FOR_RESPONSE_PRIVATE_KEY): + try: + file_extension = os.path.splitext(file_path)[1].lower() + password = merchant_config.responseMlePrivateKeyFilePassword + + if file_extension in ('.p12', '.pfx'): + private_key, _certs = CertificateUtility.fetch_certificate_collection_from_p12_file( + file_path, + password + ) + elif file_extension in ('.pem', '.key', '.p8'): + private_key = CertificateUtility.load_private_key_from_pem( + file_path, + password + ) + else: + raise ValueError(f"Unsupported file format: {file_extension}") + + cert_info = CertInfo( + None, # No certificate for standalone private key + os.path.getmtime(file_path), + private_key + ) + with self._mle_cache_lock: + self.mlecache[cache_key] = cert_info + return + except Exception as e: + logger.error("Error loading Response MLE private key") + raise ValueError(f"Error loading Response MLE private key: {e}") + # Handle PEM certificate case if cache_key.endswith(GlobalLabelParameters.MLE_CACHE_IDENTIFIER_FOR_CONFIG_CERT): - certificates = CertificateUtility.load_certificates_from_pem_file(certificate_file_path) + certificates = CertificateUtility.load_certificates_from_pem_file(file_path) try: mle_certificate = CertificateUtility.get_cert_based_on_key_alias(certificates, merchant_config.requestMleKeyAlias) except Exception: if mle_certificate is None: - file_name = os.path.basename(certificate_file_path) + file_name = os.path.basename(file_path) logger.warning(f"No certificate found for the specified mle_key_alias '{merchant_config.requestMleKeyAlias}'. Using the first certificate from file {file_name} as the MLE request certificate.") mle_certificate = certificates[0] # Take first certificate @@ -162,8 +195,40 @@ def setup_mle_cache(self, merchant_config, cache_key, certificate_file_path): # Save to cache (thread-safe) cert_info = CertInfo( mle_certificate, - os.path.getmtime(certificate_file_path), + os.path.getmtime(file_path), private_key ) with self._mle_cache_lock: - self.mlecache[cache_key] = cert_info \ No newline at end of file + self.mlecache[cache_key] = cert_info + + def get_mle_response_private_key(self, merchant_config): + """ + Gets the private key for Response MLE decryption. + + :param merchant_config: Merchant configuration object + :return: Private key object for decryption + :raises ValueError: If the private key cannot be obtained + """ + merchant_id = merchant_config.merchant_id + identifier = GlobalLabelParameters.MLE_CACHE_KEY_IDENTIFIER_FOR_RESPONSE_PRIVATE_KEY + cache_key = f"{merchant_id}_{identifier}" + file_path = merchant_config.responseMlePrivateKeyFilePath + + if not file_path: + raise ValueError("Response MLE private key file path not provided") + + # Check if key exists in cache + cert_info = self.mlecache.get(cache_key) + try: + file_timestamp = os.path.getmtime(file_path) + # If not in cache or file was modified, load it + if cert_info is None or cert_info.timestamp != file_timestamp: + self.setup_mle_cache(merchant_config, cache_key, file_path) + cert_info = self.mlecache.get(cache_key) + + return cert_info.private_key if cert_info else None + except Exception as e: + if FileCache.logger: + FileCache.logger.error(f"Error getting Response MLE private key") + raise ValueError(f"Error getting Response MLE private key: {str(e)}") + diff --git a/authenticationsdk/util/CertificateUtility.py b/authenticationsdk/util/CertificateUtility.py index c2dbb5ca..174f08ce 100644 --- a/authenticationsdk/util/CertificateUtility.py +++ b/authenticationsdk/util/CertificateUtility.py @@ -7,7 +7,7 @@ from authenticationsdk.util.GlobalLabelParameters import GlobalLabelParameters import CyberSource.logging.log_factory as LogFactory from CyberSource.logging.log_configuration import LogConfiguration -from cryptography.hazmat.primitives.serialization import pkcs12 +from cryptography.hazmat.primitives.serialization import pkcs12, load_pem_private_key, load_der_private_key class CertificateUtility: logger = None @@ -129,3 +129,23 @@ def fetch_certificate_collection_from_p12_file(p12_file_path, key_password): if additional_certs is not None: certs.extend(additional_certs) return private_key, certs + + @staticmethod + def load_private_key_from_pem(pem_file_path, password=None): + """ + Load a private key from a PEM/PKCS#8 file (.pem/.key/.p8). + """ + if not os.path.exists(pem_file_path): + raise ValueError(f"PEM private key file not found: {pem_file_path}") + with open(pem_file_path, "rb") as f: + data = f.read() + pwd_bytes = password.encode("utf-8") if password else None + try: + return load_pem_private_key(data, password=pwd_bytes, backend=default_backend()) + except ValueError as ve: + msg = str(ve).lower() + if 'bad decrypt' in msg or 'incorrect password' in msg: + raise ValueError("Incorrect password for encrypted private key") + raise + except Exception: + raise ValueError(f"Failed to load private key from {pem_file_path}") diff --git a/authenticationsdk/util/GlobalLabelParameters.py b/authenticationsdk/util/GlobalLabelParameters.py index fd80faac..4bc22f67 100644 --- a/authenticationsdk/util/GlobalLabelParameters.py +++ b/authenticationsdk/util/GlobalLabelParameters.py @@ -43,8 +43,8 @@ class GlobalLabelParameters: KEY_ID = "keyid=\"" LOG_FILE_NAME_DEFAULT = "cybs" OLD_RUN_ENVIRONMENT_CONSTANTS = ["CYBERSOURCE.ENVIRONMENT.SANDBOX", "CYBERSOURCE.ENVIRONMENT.PRODUCTION", "CYBERSOURCE.IN.ENVIRONMENT.SANDBOX", "CYBERSOURCE.IN.ENVIRONMENT.PRODUCTION"] - HIDE_MERCHANT_CONFIG_PROPS = "merchantid,merchant_secretkey,merchant_keyid,key_alias,key_password" PROXY_PREFIX = "https" + HIDE_MERCHANT_CONFIG_PROPS = "merchantid,merchant_secretkey,merchant_keyid,key_alias,key_password,responseMlePrivateKeyFilePath,responseMlePrivateKeyFilePassword,responseMlePrivateKey" FILE_NOT_FOUND = "File not found. Check path/filename entered. Entered path/filename : " SYSTEM_ERROR = "System error encountered while accessing file : " AUTH_ERROR = "Check Authentication Type (HTTP_Signature/JWT) in cybs.json." @@ -99,3 +99,4 @@ class GlobalLabelParameters: MESSAGE_AFTER_MLE_REQUEST = "Request after MLE: " MLE_CACHE_IDENTIFIER_FOR_CONFIG_CERT = "mleCertFromMerchantConfig" MLE_CACHE_IDENTIFIER_FOR_P12_CERT = "mleCertFromP12" + MLE_CACHE_KEY_IDENTIFIER_FOR_RESPONSE_PRIVATE_KEY = "response_mle_private_key" diff --git a/authenticationsdk/util/MLEUtility.py b/authenticationsdk/util/MLEUtility.py index a8222450..6c72af75 100644 --- a/authenticationsdk/util/MLEUtility.py +++ b/authenticationsdk/util/MLEUtility.py @@ -1,16 +1,29 @@ import json import time +import os from cryptography.hazmat.primitives import serialization from cryptography.x509.oid import NameOID from jwcrypto import jwe, jwk +import json from authenticationsdk.util.Cache import FileCache from authenticationsdk.util.GlobalLabelParameters import GlobalLabelParameters import CyberSource.logging.log_factory as LogFactory +from CyberSource.utilities.JWEResponse.JWEUtility import JWEUtility +from authenticationsdk.util.Utility import to_jwk_private_key class MLEUtility: logger = None + _cache = None # Static cache instance + + @classmethod + def get_cache(cls): + """Get or create the shared cache instance""" + if cls._cache is None: + from authenticationsdk.util.Cache import FileCache + cls._cache = FileCache() + return cls._cache class MLEException(Exception): def __init__(self, message, errors=None): @@ -108,10 +121,123 @@ def encrypt_request_payload(merchant_config, request_body): logger.debug(GlobalLabelParameters.MESSAGE_AFTER_MLE_REQUEST + ' ' + str(mle_request)) return mle_request + + @staticmethod + def check_is_mle_encrypted_response(response_body): + """ + Checks if the response is MLE encrypted. + + :param response_body: Response body as string + :return: True if the response is MLE encrypted, False otherwise + """ + if response_body is None or not response_body.strip(): + return False + + try: + response_json = json.loads(response_body) + # Check if the JSON has exactly one key named "encryptedResponse" + if len(response_json) != 1: + return False + + if "encryptedResponse" in response_json: + value = response_json["encryptedResponse"] + return isinstance(value, str) + + return False + except Exception: + # If JSON parsing fails, it's not a valid JSON thus not an MLE response + return False + + @staticmethod + def decrypt_mle_response_payload(merchant_config, mle_response_body): + """ + Decrypts MLE encrypted response payload. + + :param merchant_config: Merchant configuration object + :param mle_response_body: Encrypted response body + :return: Decrypted response as string + :raises MLEException: If decryption fails + """ + + if not MLEUtility.check_is_mle_encrypted_response(mle_response_body): + raise MLEUtility.MLEException("Response body is not MLE encrypted.") + + try: + # Get private key for decryption + private_key = MLEUtility._get_mle_response_private_key(merchant_config) + private_key_jwk = to_jwk_private_key(private_key) + # Extract the JWE token + jwe_response_token = MLEUtility._get_response_mle_token(mle_response_body) + + if not jwe_response_token: + # If token extraction fails, return the original response + return mle_response_body + + # Use the existing JWEUtility for decryption + if MLEUtility.logger: + MLEUtility.logger.debug(f"LOG_NETWORK_RESPONSE_BEFORE_MLE_DECRYPTION: {mle_response_body}") + + decrypted_response = JWEUtility.decrypt_jwe_response_using_private_key( + private_key_jwk, jwe_response_token + ) + + if MLEUtility.logger: + MLEUtility.logger.debug(f"LOG_NETWORK_RESPONSE_AFTER_MLE_DECRYPTION: {decrypted_response}") + + return decrypted_response + + except Exception as e: + raise MLEUtility.MLEException(f"MLE Response decryption error: {str(e)}") + + @staticmethod + def _get_response_mle_token(mle_response_body): + """ + Extracts the JWE token from the MLE encrypted response. + + :param mle_response_body: MLE encrypted response body + :return: JWE token string or None if extraction fails + """ + try: + import json + response_json = json.loads(mle_response_body) + return response_json.get("encryptedResponse") + except Exception as e: + if MLEUtility.logger: + MLEUtility.logger.error("Failed to extract response MLE token from response body.") + return None + + @staticmethod + def _get_mle_response_private_key(merchant_config): + """ + Gets the private key for Response MLE decryption. + + :param merchant_config: Merchant configuration object + :return: Private key object for decryption + :raises MLEException: If the private key cannot be obtained + """ + # First priority - if privateKey is given in merchant config return that + if hasattr(merchant_config, 'responseMlePrivateKey') and merchant_config.responseMlePrivateKey: + return merchant_config.responseMlePrivateKey + + # Second priority - get the privateKey from the file path + try: + # Get from cache - directly use the cache instance + cache_obj = MLEUtility.get_cache() + + try: + private_key = cache_obj.get_mle_response_private_key(merchant_config) + if private_key is None: + raise MLEUtility.MLEException("Failed to get Response MLE private key from cache") + return private_key + except Exception as e: + raise MLEUtility.MLEException(f"Error getting Response MLE private key: {str(e)}") + + except Exception as e: + raise MLEUtility.MLEException(f"Error loading Response MLE private key: {str(e)}") @staticmethod def get_mle_certificate(merchant_config): - cache_obj = FileCache() + cache_obj = MLEUtility.get_cache() mle_certificate = cache_obj.get_request_mle_cert_from_cache(merchant_config) return mle_certificate @@ -133,7 +259,7 @@ def get_serial_number_from_certificate(certificate, merchant_config): break if not serial_number: - logger.warning(f"Serial number not found in MLE certificate for alias {merchant_config.requestMleKeyAlias} in {merchant_config.p12KeyFilePath}.p12") + logger.warning(f"Serial number not found in MLE certificate for alias {merchant_config.requestMleKeyAlias} in {merchant_config.p12KeyFilePath}") # Use the hex serial number from the certificate as fallback return format(certificate.serial_number, 'x') diff --git a/authenticationsdk/util/Utility.py b/authenticationsdk/util/Utility.py index 878d8ba4..89d921ed 100644 --- a/authenticationsdk/util/Utility.py +++ b/authenticationsdk/util/Utility.py @@ -1,5 +1,7 @@ import json import re +from cryptography.hazmat.primitives import serialization +from jwcrypto import jwk def get_response_code_message(response): switcher = { @@ -46,3 +48,21 @@ def process_body(body): body = body.replace("productSku", "productSKU") body = body.replace("secCode", "SECCode") return body + +def to_jwk_private_key(private_key): + """ + Ensure the provided private_key is a jwcrypto.jwk.JWK instance. + Accepts a jwk.JWK or a cryptography private key object. + """ + if private_key is None: + raise ValueError("Private key is None") + if isinstance(private_key, jwk.JWK): + return private_key + if hasattr(private_key, "private_bytes"): + pem = private_key.private_bytes( + serialization.Encoding.PEM, + serialization.PrivateFormat.PKCS8, + serialization.NoEncryption() + ) + return jwk.JWK.from_pem(pem) + raise ValueError("Unsupported private key type for JWK conversion") diff --git a/generator/cybersource-python-template/api.mustache b/generator/cybersource-python-template/api.mustache index 07ca200d..b9e463b2 100644 --- a/generator/cybersource-python-template/api.mustache +++ b/generator/cybersource-python-template/api.mustache @@ -214,6 +214,8 @@ class {{classname}}(object): if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, inbound_mle_status, "{{operationId}},{{operationId}}_with_http_info"): body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params) + isResponseMLEforApi = MLEUtility.check_is_response_mle_for_api(self.api_client.mconfig, "{{operationId}},{{operationId}}_with_http_info") + # Authentication setting auth_settings = [{{#authMethods}}'{{name}}'{{#hasMore}}, {{/hasMore}}{{/authMethods}}] @@ -230,6 +232,7 @@ class {{classname}}(object): _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) + collection_formats=collection_formats, + isResponseMLEforApi=isResponseMLEforApi) {{/operation}} {{/operations}} diff --git a/generator/cybersource-python-template/api_client.mustache b/generator/cybersource-python-template/api_client.mustache index 0dab8c36..add7245b 100644 --- a/generator/cybersource-python-template/api_client.mustache +++ b/generator/cybersource-python-template/api_client.mustache @@ -23,7 +23,10 @@ from authenticationsdk.core.Authorization import * from authenticationsdk.core.MerchantConfiguration import * from authenticationsdk.util.PropertiesUtil import * from authenticationsdk.util.GlobalLabelParameters import * +from authenticationsdk.util.MLEUtility import MLEUtility from six.moves.urllib.parse import urlencode +import logging +import CyberSource.logging.log_factory as LogFactory class ApiClient(object): @@ -145,6 +148,11 @@ class ApiClient(object): # To reinitialize with logging config self.rest_client = RESTClientObject(log_config=self.mconfig.log_config) + try: + self.logger = LogFactory.setup_logger(self.__class__.__name__, self.mconfig.log_config) + except Exception: + self.logger = logging.getLogger(self.__class__.__name__) + set_client_cert = rconfig.set_merchantclientcert(config) set_proxy = rconfig.set_merchantproxyconfig(config) @@ -161,7 +169,7 @@ class ApiClient(object): self.host = self.mconfig.request_host # Calling the authentication header - def call_authentication_header(self, method, header_params, body, request_target=None): + def call_authentication_header(self, method, header_params, body, request_target=None, isResponseMLEforApi=False): time = self.mconfig.get_time() @@ -171,7 +179,7 @@ class ApiClient(object): # header_params['v-c-solution-id'] = self.mconfig.solution_id auth = Authorization() - token = auth.get_token(self.mconfig, time, method, request_target, body) + token = auth.get_token(self.mconfig, time, method, request_target, body, isResponseMLEforApi=isResponseMLEforApi) if self.mconfig.authentication_type.upper() == GlobalLabelParameters.HTTP.upper(): header_params['Accept-Encoding'] = '*' header_params['v-c-merchant-id'] = self.mconfig.merchant_id @@ -218,7 +226,7 @@ class ApiClient(object): body=None, post_params=None, files=None, response_type=None, auth_settings=None, callback=None, _return_http_data_only=None, collection_formats=None, _preload_content=True, - _request_timeout=None): + _request_timeout=None, isResponseMLEforApi=False): config = Configuration() @@ -302,6 +310,18 @@ class ApiClient(object): _preload_content=_preload_content, _request_timeout=_request_timeout) + if hasattr(self, 'mconfig'): + try: + if MLEUtility.check_is_mle_encrypted_response(response_data.data): + decrypted_data = MLEUtility.decrypt_mle_response_payload(self.mconfig, response_data.data) + response_data.data = decrypted_data + except Exception as e: + if (hasattr(self, "logger") and + hasattr(self.mconfig, "log_config") and + self.mconfig.log_config.enable_log): + self.logger.error("[MLE] Failed to decrypt response") + raise ApiException(status=500, reason=f"MLE response decryption failed: {e}") + if self.download_file_path is None: self.last_response = response_data @@ -445,16 +465,15 @@ class ApiClient(object): body=None, post_params=None, files=None, response_type=None, auth_settings=None, callback=None, _return_http_data_only=None, collection_formats=None, _preload_content=True, - _request_timeout=None): + _request_timeout=None, isResponseMLEforApi=False): if header_params['Content-Type'] == 'application/x-www-form-urlencoded': post_params = body query_param_path = self.set_query_params(resource_path, query_params) - request_target = query_param_path if query_param_path else resource_pat - + request_target = query_param_path if query_param_path else resource_path if self.mconfig.authentication_type.upper() != GlobalLabelParameters.MUTUAL_AUTH.upper(): - self.call_authentication_header(method, header_params, body, request_target) + self.call_authentication_header(method, header_params, body, request_target, isResponseMLEforApi=isResponseMLEforApi) """ Makes the HTTP request (synchronous) and return the deserialized data. @@ -495,7 +514,8 @@ class ApiClient(object): path_params, query_params, header_params, body, post_params, files, response_type, auth_settings, callback, - _return_http_data_only, collection_formats, _preload_content, _request_timeout) + _return_http_data_only, collection_formats, _preload_content, _request_timeout, + isResponseMLEforApi=isResponseMLEforApi) else: thread = threading.Thread(target=self.__call_api, args=(resource_path, method, @@ -504,7 +524,7 @@ class ApiClient(object): post_params, files, response_type, auth_settings, callback, _return_http_data_only, - collection_formats, _preload_content, _request_timeout)) + collection_formats, _preload_content, _request_timeout, isResponseMLEforApi)) thread.start() return thread diff --git a/setup.py b/setup.py index f3a26347..14b2bffb 100644 --- a/setup.py +++ b/setup.py @@ -22,7 +22,7 @@ install_requires=[ "certifi", "pycryptodome", - "PyJWT", + "PyJWT<2.10.0", "DateTime", "setuptools", "six",