Skip to content

Commit 01a1b4f

Browse files
authored
Merge pull request #139 from CyberSource/feature/add-MLE
Feature/add mle
2 parents 9d057e3 + 48bfe86 commit 01a1b4f

File tree

112 files changed

+4154
-188
lines changed

Some content is hidden

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

112 files changed

+4154
-188
lines changed

CyberSource/__init__.py

+8
Original file line numberDiff line numberDiff line change
@@ -310,9 +310,14 @@
310310
from .models.kmsegressv2keyssym_client_reference_information import Kmsegressv2keyssymClientReferenceInformation
311311
from .models.kmsegressv2keyssym_key_information import Kmsegressv2keyssymKeyInformation
312312
from .models.merchant_initiated_transaction_object import MerchantInitiatedTransactionObject
313+
from .models.microformv2sessions_transient_token_response_options import Microformv2sessionsTransientTokenResponseOptions
313314
from .models.mit_reversal_request import MitReversalRequest
314315
from .models.mit_void_request import MitVoidRequest
315316
from .models.modify_billing_agreement import ModifyBillingAgreement
317+
from .models.network_token_enrollment import NetworkTokenEnrollment
318+
from .models.network_token_services_enablement import NetworkTokenServicesEnablement
319+
from .models.network_token_services_enablement_mastercard_digital_enablement_service import NetworkTokenServicesEnablementMastercardDigitalEnablementService
320+
from .models.network_token_services_enablement_visa_token_service import NetworkTokenServicesEnablementVisaTokenService
316321
from .models.notificationsubscriptionsv1productsorganization_id_event_types import Notificationsubscriptionsv1productsorganizationIdEventTypes
317322
from .models.notificationsubscriptionsv1webhooks_notification_scope import Notificationsubscriptionsv1webhooksNotificationScope
318323
from .models.notificationsubscriptionsv1webhooks_products import Notificationsubscriptionsv1webhooksProducts
@@ -1148,6 +1153,9 @@
11481153
from .models.tms_bin_lookup_payment_account_information_card_brands import TmsBinLookupPaymentAccountInformationCardBrands
11491154
from .models.tms_bin_lookup_payment_account_information_features import TmsBinLookupPaymentAccountInformationFeatures
11501155
from .models.tms_bin_lookup_payment_account_information_network import TmsBinLookupPaymentAccountInformationNetwork
1156+
from .models.tms_business_information import TmsBusinessInformation
1157+
from .models.tms_business_information_acquirer import TmsBusinessInformationAcquirer
1158+
from .models.tms_business_information_address import TmsBusinessInformationAddress
11511159
from .models.tms_card_art import TmsCardArt
11521160
from .models.tms_card_art_brand_logo_asset import TmsCardArtBrandLogoAsset
11531161
from .models.tms_card_art_brand_logo_asset_links import TmsCardArtBrandLogoAssetLinks

CyberSource/api/batches_api.py

+35
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@
2222
from ..configuration import Configuration
2323
from ..api_client import ApiClient
2424
import CyberSource.logging.log_factory as LogFactory
25+
from authenticationsdk.util.MLEUtility import MLEUtility
26+
from authenticationsdk.util.GlobalLabelParameters import GlobalLabelParameters
27+
from authenticationsdk.util.Utility import process_body
2528

2629
from ..utilities.tracking.sdk_tracker import SdkTracker
2730
class BatchesApi(object):
@@ -133,6 +136,14 @@ def get_batch_report_with_http_info(self, batch_id, **kwargs):
133136
body_params = None
134137
if 'GET' in ('POST'):
135138
body_params = '{}'
139+
140+
if 'GET' == GlobalLabelParameters.POST or 'GET' == GlobalLabelParameters.PUT or 'GET' == GlobalLabelParameters.PATCH:
141+
body_params = process_body(body_params)
142+
143+
is_mle_supported_by_cybs_for_api = False
144+
if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, is_mle_supported_by_cybs_for_api, "get_batch_report,get_batch_report_with_http_info"):
145+
body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params)
146+
136147
# HTTP header `Accept`
137148
header_params['Accept'] = self.api_client.select_header_accept(['application/json;charset=utf-8'])
138149

@@ -246,6 +257,14 @@ def get_batch_status_with_http_info(self, batch_id, **kwargs):
246257
body_params = None
247258
if 'GET' in ('POST'):
248259
body_params = '{}'
260+
261+
if 'GET' == GlobalLabelParameters.POST or 'GET' == GlobalLabelParameters.PUT or 'GET' == GlobalLabelParameters.PATCH:
262+
body_params = process_body(body_params)
263+
264+
is_mle_supported_by_cybs_for_api = False
265+
if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, is_mle_supported_by_cybs_for_api, "get_batch_status,get_batch_status_with_http_info"):
266+
body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params)
267+
249268
# HTTP header `Accept`
250269
header_params['Accept'] = self.api_client.select_header_accept(['application/json;charset=utf-8'])
251270

@@ -365,6 +384,14 @@ def get_batches_list_with_http_info(self, **kwargs):
365384
body_params = None
366385
if 'GET' in ('POST'):
367386
body_params = '{}'
387+
388+
if 'GET' == GlobalLabelParameters.POST or 'GET' == GlobalLabelParameters.PUT or 'GET' == GlobalLabelParameters.PATCH:
389+
body_params = process_body(body_params)
390+
391+
is_mle_supported_by_cybs_for_api = False
392+
if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, is_mle_supported_by_cybs_for_api, "get_batches_list,get_batches_list_with_http_info"):
393+
body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params)
394+
368395
# HTTP header `Accept`
369396
header_params['Accept'] = self.api_client.select_header_accept(['application/json;charset=utf-8'])
370397

@@ -478,6 +505,14 @@ def post_batch_with_http_info(self, body, **kwargs):
478505

479506
sdkTracker = SdkTracker()
480507
body_params = sdkTracker.insert_developer_id_tracker(body_params, 'body', self.api_client.mconfig.run_environment, self.api_client.mconfig.defaultDeveloperId)
508+
509+
if 'POST' == GlobalLabelParameters.POST or 'POST' == GlobalLabelParameters.PUT or 'POST' == GlobalLabelParameters.PATCH:
510+
body_params = process_body(body_params)
511+
512+
is_mle_supported_by_cybs_for_api = False
513+
if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, is_mle_supported_by_cybs_for_api, "post_batch,post_batch_with_http_info"):
514+
body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params)
515+
481516
# HTTP header `Accept`
482517
header_params['Accept'] = self.api_client.select_header_accept(['application/json;charset=utf-8'])
483518

CyberSource/api/billing_agreements_api.py

+27
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@
2222
from ..configuration import Configuration
2323
from ..api_client import ApiClient
2424
import CyberSource.logging.log_factory as LogFactory
25+
from authenticationsdk.util.MLEUtility import MLEUtility
26+
from authenticationsdk.util.GlobalLabelParameters import GlobalLabelParameters
27+
from authenticationsdk.util.Utility import process_body
2528

2629
from ..utilities.tracking.sdk_tracker import SdkTracker
2730
class BillingAgreementsApi(object):
@@ -143,6 +146,14 @@ def billing_agreements_de_registration_with_http_info(self, modify_billing_agree
143146

144147
sdkTracker = SdkTracker()
145148
body_params = sdkTracker.insert_developer_id_tracker(body_params, 'modify_billing_agreement', self.api_client.mconfig.run_environment, self.api_client.mconfig.defaultDeveloperId)
149+
150+
if 'PATCH' == GlobalLabelParameters.POST or 'PATCH' == GlobalLabelParameters.PUT or 'PATCH' == GlobalLabelParameters.PATCH:
151+
body_params = process_body(body_params)
152+
153+
is_mle_supported_by_cybs_for_api = True
154+
if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, is_mle_supported_by_cybs_for_api, "billing_agreements_de_registration,billing_agreements_de_registration_with_http_info"):
155+
body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params)
156+
146157
# HTTP header `Accept`
147158
header_params['Accept'] = self.api_client.select_header_accept(['application/hal+json;charset=utf-8'])
148159

@@ -266,6 +277,14 @@ def billing_agreements_intimation_with_http_info(self, intimate_billing_agreemen
266277

267278
sdkTracker = SdkTracker()
268279
body_params = sdkTracker.insert_developer_id_tracker(body_params, 'intimate_billing_agreement', self.api_client.mconfig.run_environment, self.api_client.mconfig.defaultDeveloperId)
280+
281+
if 'POST' == GlobalLabelParameters.POST or 'POST' == GlobalLabelParameters.PUT or 'POST' == GlobalLabelParameters.PATCH:
282+
body_params = process_body(body_params)
283+
284+
is_mle_supported_by_cybs_for_api = True
285+
if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, is_mle_supported_by_cybs_for_api, "billing_agreements_intimation,billing_agreements_intimation_with_http_info"):
286+
body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params)
287+
269288
# HTTP header `Accept`
270289
header_params['Accept'] = self.api_client.select_header_accept(['application/hal+json;charset=utf-8'])
271290

@@ -379,6 +398,14 @@ def billing_agreements_registration_with_http_info(self, create_billing_agreemen
379398

380399
sdkTracker = SdkTracker()
381400
body_params = sdkTracker.insert_developer_id_tracker(body_params, 'create_billing_agreement', self.api_client.mconfig.run_environment, self.api_client.mconfig.defaultDeveloperId)
401+
402+
if 'POST' == GlobalLabelParameters.POST or 'POST' == GlobalLabelParameters.PUT or 'POST' == GlobalLabelParameters.PATCH:
403+
body_params = process_body(body_params)
404+
405+
is_mle_supported_by_cybs_for_api = True
406+
if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, is_mle_supported_by_cybs_for_api, "billing_agreements_registration,billing_agreements_registration_with_http_info"):
407+
body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params)
408+
382409
# HTTP header `Accept`
383410
header_params['Accept'] = self.api_client.select_header_accept(['application/hal+json;charset=utf-8'])
384411

CyberSource/api/bin_lookup_api.py

+11
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@
2222
from ..configuration import Configuration
2323
from ..api_client import ApiClient
2424
import CyberSource.logging.log_factory as LogFactory
25+
from authenticationsdk.util.MLEUtility import MLEUtility
26+
from authenticationsdk.util.GlobalLabelParameters import GlobalLabelParameters
27+
from authenticationsdk.util.Utility import process_body
2528

2629
from ..utilities.tracking.sdk_tracker import SdkTracker
2730
class BinLookupApi(object):
@@ -136,6 +139,14 @@ def get_account_info_with_http_info(self, create_bin_lookup_request, **kwargs):
136139

137140
sdkTracker = SdkTracker()
138141
body_params = sdkTracker.insert_developer_id_tracker(body_params, 'create_bin_lookup_request', self.api_client.mconfig.run_environment, self.api_client.mconfig.defaultDeveloperId)
142+
143+
if 'POST' == GlobalLabelParameters.POST or 'POST' == GlobalLabelParameters.PUT or 'POST' == GlobalLabelParameters.PATCH:
144+
body_params = process_body(body_params)
145+
146+
is_mle_supported_by_cybs_for_api = False
147+
if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, is_mle_supported_by_cybs_for_api, "get_account_info,get_account_info_with_http_info"):
148+
body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params)
149+
139150
# HTTP header `Accept`
140151
header_params['Accept'] = self.api_client.select_header_accept(['application/json;charset=utf-8'])
141152

CyberSource/api/capture_api.py

+11
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@
2222
from ..configuration import Configuration
2323
from ..api_client import ApiClient
2424
import CyberSource.logging.log_factory as LogFactory
25+
from authenticationsdk.util.MLEUtility import MLEUtility
26+
from authenticationsdk.util.GlobalLabelParameters import GlobalLabelParameters
27+
from authenticationsdk.util.Utility import process_body
2528

2629
from ..utilities.tracking.sdk_tracker import SdkTracker
2730
class CaptureApi(object):
@@ -143,6 +146,14 @@ def capture_payment_with_http_info(self, capture_payment_request, id, **kwargs):
143146

144147
sdkTracker = SdkTracker()
145148
body_params = sdkTracker.insert_developer_id_tracker(body_params, 'capture_payment_request', self.api_client.mconfig.run_environment, self.api_client.mconfig.defaultDeveloperId)
149+
150+
if 'POST' == GlobalLabelParameters.POST or 'POST' == GlobalLabelParameters.PUT or 'POST' == GlobalLabelParameters.PATCH:
151+
body_params = process_body(body_params)
152+
153+
is_mle_supported_by_cybs_for_api = True
154+
if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, is_mle_supported_by_cybs_for_api, "capture_payment,capture_payment_with_http_info"):
155+
body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params)
156+
146157
# HTTP header `Accept`
147158
header_params['Accept'] = self.api_client.select_header_accept(['application/hal+json;charset=utf-8'])
148159

CyberSource/api/chargeback_details_api.py

+11
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@
2222
from ..configuration import Configuration
2323
from ..api_client import ApiClient
2424
import CyberSource.logging.log_factory as LogFactory
25+
from authenticationsdk.util.MLEUtility import MLEUtility
26+
from authenticationsdk.util.GlobalLabelParameters import GlobalLabelParameters
27+
from authenticationsdk.util.Utility import process_body
2528

2629
from ..utilities.tracking.sdk_tracker import SdkTracker
2730
class ChargebackDetailsApi(object):
@@ -145,6 +148,14 @@ def get_chargeback_details_with_http_info(self, start_time, end_time, **kwargs):
145148
body_params = None
146149
if 'GET' in ('POST'):
147150
body_params = '{}'
151+
152+
if 'GET' == GlobalLabelParameters.POST or 'GET' == GlobalLabelParameters.PUT or 'GET' == GlobalLabelParameters.PATCH:
153+
body_params = process_body(body_params)
154+
155+
is_mle_supported_by_cybs_for_api = False
156+
if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, is_mle_supported_by_cybs_for_api, "get_chargeback_details,get_chargeback_details_with_http_info"):
157+
body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params)
158+
148159
# HTTP header `Accept`
149160
header_params['Accept'] = self.api_client.select_header_accept(['application/hal+json', 'application/xml'])
150161

CyberSource/api/chargeback_summaries_api.py

+11
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@
2222
from ..configuration import Configuration
2323
from ..api_client import ApiClient
2424
import CyberSource.logging.log_factory as LogFactory
25+
from authenticationsdk.util.MLEUtility import MLEUtility
26+
from authenticationsdk.util.GlobalLabelParameters import GlobalLabelParameters
27+
from authenticationsdk.util.Utility import process_body
2528

2629
from ..utilities.tracking.sdk_tracker import SdkTracker
2730
class ChargebackSummariesApi(object):
@@ -145,6 +148,14 @@ def get_chargeback_summaries_with_http_info(self, start_time, end_time, **kwargs
145148
body_params = None
146149
if 'GET' in ('POST'):
147150
body_params = '{}'
151+
152+
if 'GET' == GlobalLabelParameters.POST or 'GET' == GlobalLabelParameters.PUT or 'GET' == GlobalLabelParameters.PATCH:
153+
body_params = process_body(body_params)
154+
155+
is_mle_supported_by_cybs_for_api = False
156+
if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, is_mle_supported_by_cybs_for_api, "get_chargeback_summaries,get_chargeback_summaries_with_http_info"):
157+
body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params)
158+
148159
# HTTP header `Accept`
149160
header_params['Accept'] = self.api_client.select_header_accept(['application/hal+json', 'application/xml'])
150161

CyberSource/api/conversion_details_api.py

+11
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@
2222
from ..configuration import Configuration
2323
from ..api_client import ApiClient
2424
import CyberSource.logging.log_factory as LogFactory
25+
from authenticationsdk.util.MLEUtility import MLEUtility
26+
from authenticationsdk.util.GlobalLabelParameters import GlobalLabelParameters
27+
from authenticationsdk.util.Utility import process_body
2528

2629
from ..utilities.tracking.sdk_tracker import SdkTracker
2730
class ConversionDetailsApi(object):
@@ -145,6 +148,14 @@ def get_conversion_detail_with_http_info(self, start_time, end_time, **kwargs):
145148
body_params = None
146149
if 'GET' in ('POST'):
147150
body_params = '{}'
151+
152+
if 'GET' == GlobalLabelParameters.POST or 'GET' == GlobalLabelParameters.PUT or 'GET' == GlobalLabelParameters.PATCH:
153+
body_params = process_body(body_params)
154+
155+
is_mle_supported_by_cybs_for_api = False
156+
if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, is_mle_supported_by_cybs_for_api, "get_conversion_detail,get_conversion_detail_with_http_info"):
157+
body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params)
158+
148159
# HTTP header `Accept`
149160
header_params['Accept'] = self.api_client.select_header_accept(['application/hal+json', 'application/xml'])
150161

CyberSource/api/create_new_webhooks_api.py

+27
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@
2222
from ..configuration import Configuration
2323
from ..api_client import ApiClient
2424
import CyberSource.logging.log_factory as LogFactory
25+
from authenticationsdk.util.MLEUtility import MLEUtility
26+
from authenticationsdk.util.GlobalLabelParameters import GlobalLabelParameters
27+
from authenticationsdk.util.Utility import process_body
2528

2629
from ..utilities.tracking.sdk_tracker import SdkTracker
2730
class CreateNewWebhooksApi(object):
@@ -131,6 +134,14 @@ def create_webhook_subscription_with_http_info(self, **kwargs):
131134

132135
sdkTracker = SdkTracker()
133136
body_params = sdkTracker.insert_developer_id_tracker(body_params, 'create_webhook_request', self.api_client.mconfig.run_environment, self.api_client.mconfig.defaultDeveloperId)
137+
138+
if 'POST' == GlobalLabelParameters.POST or 'POST' == GlobalLabelParameters.PUT or 'POST' == GlobalLabelParameters.PATCH:
139+
body_params = process_body(body_params)
140+
141+
is_mle_supported_by_cybs_for_api = False
142+
if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, is_mle_supported_by_cybs_for_api, "create_webhook_subscription,create_webhook_subscription_with_http_info"):
143+
body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params)
144+
134145
# HTTP header `Accept`
135146
header_params['Accept'] = self.api_client.select_header_accept(['application/json;charset=utf-8'])
136147

@@ -247,6 +258,14 @@ def find_products_to_subscribe_with_http_info(self, organization_id, **kwargs):
247258
body_params = None
248259
if 'GET' in ('POST'):
249260
body_params = '{}'
261+
262+
if 'GET' == GlobalLabelParameters.POST or 'GET' == GlobalLabelParameters.PUT or 'GET' == GlobalLabelParameters.PATCH:
263+
body_params = process_body(body_params)
264+
265+
is_mle_supported_by_cybs_for_api = False
266+
if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, is_mle_supported_by_cybs_for_api, "find_products_to_subscribe,find_products_to_subscribe_with_http_info"):
267+
body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params)
268+
250269
# HTTP header `Accept`
251270
header_params['Accept'] = self.api_client.select_header_accept(['application/json;charset=utf-8'])
252271

@@ -380,6 +399,14 @@ def save_sym_egress_key_with_http_info(self, v_c_sender_organization_id, v_c_per
380399

381400
sdkTracker = SdkTracker()
382401
body_params = sdkTracker.insert_developer_id_tracker(body_params, 'save_sym_egress_key', self.api_client.mconfig.run_environment, self.api_client.mconfig.defaultDeveloperId)
402+
403+
if 'POST' == GlobalLabelParameters.POST or 'POST' == GlobalLabelParameters.PUT or 'POST' == GlobalLabelParameters.PATCH:
404+
body_params = process_body(body_params)
405+
406+
is_mle_supported_by_cybs_for_api = False
407+
if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, is_mle_supported_by_cybs_for_api, "save_sym_egress_key,save_sym_egress_key_with_http_info"):
408+
body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params)
409+
383410
# HTTP header `Accept`
384411
header_params['Accept'] = self.api_client.select_header_accept(['application/json;charset=utf-8'])
385412

0 commit comments

Comments
 (0)