diff --git a/CyberSource/__init__.py b/CyberSource/__init__.py index 105ae71a..c6c3d622 100644 --- a/CyberSource/__init__.py +++ b/CyberSource/__init__.py @@ -268,6 +268,11 @@ from .models.pts_v2_payments_post201_response_consumer_authentication_information_ivr import PtsV2PaymentsPost201ResponseConsumerAuthenticationInformationIvr from .models.pts_v2_payments_post201_response_consumer_authentication_information_strong_authentication import PtsV2PaymentsPost201ResponseConsumerAuthenticationInformationStrongAuthentication from .models.pts_v2_payments_post201_response_consumer_authentication_information_strong_authentication_issuer_information import PtsV2PaymentsPost201ResponseConsumerAuthenticationInformationStrongAuthenticationIssuerInformation +from .models.pts_v2_payments_post201_response_embedded_actions import PtsV2PaymentsPost201ResponseEmbeddedActions +from .models.pts_v2_payments_post201_response_embedded_actions_capture import PtsV2PaymentsPost201ResponseEmbeddedActionsCAPTURE +from .models.pts_v2_payments_post201_response_embedded_actions_consumer_authentication import PtsV2PaymentsPost201ResponseEmbeddedActionsCONSUMERAUTHENTICATION +from .models.pts_v2_payments_post201_response_embedded_actions_decision import PtsV2PaymentsPost201ResponseEmbeddedActionsDECISION +from .models.pts_v2_payments_post201_response_embedded_actions_watchlist_screening import PtsV2PaymentsPost201ResponseEmbeddedActionsWATCHLISTSCREENING from .models.pts_v2_payments_post201_response_error_information import PtsV2PaymentsPost201ResponseErrorInformation from .models.pts_v2_payments_post201_response_error_information_details import PtsV2PaymentsPost201ResponseErrorInformationDetails from .models.pts_v2_payments_post201_response_installment_information import PtsV2PaymentsPost201ResponseInstallmentInformation @@ -880,6 +885,7 @@ from .models.tss_v2_transactions_post201_response__embedded_client_reference_information import TssV2TransactionsPost201ResponseEmbeddedClientReferenceInformation from .models.tss_v2_transactions_post201_response__embedded_client_reference_information_partner import TssV2TransactionsPost201ResponseEmbeddedClientReferenceInformationPartner from .models.tss_v2_transactions_post201_response__embedded_consumer_authentication_information import TssV2TransactionsPost201ResponseEmbeddedConsumerAuthenticationInformation +from .models.tss_v2_transactions_post201_response__embedded_error_information import TssV2TransactionsPost201ResponseEmbeddedErrorInformation from .models.tss_v2_transactions_post201_response__embedded__links import TssV2TransactionsPost201ResponseEmbeddedLinks from .models.tss_v2_transactions_post201_response__embedded_merchant_information import TssV2TransactionsPost201ResponseEmbeddedMerchantInformation from .models.tss_v2_transactions_post201_response__embedded_order_information import TssV2TransactionsPost201ResponseEmbeddedOrderInformation diff --git a/CyberSource/api/plans_api.py b/CyberSource/api/plans_api.py index 37fbba60..04a1f1b1 100644 --- a/CyberSource/api/plans_api.py +++ b/CyberSource/api/plans_api.py @@ -60,7 +60,6 @@ def activate_plan(self, id, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param str id: Plan Id (required) - :param object activate_plan_request: :return: InlineResponse2004 If the method is called asynchronously, returns the request thread. @@ -91,13 +90,12 @@ def activate_plan_with_http_info(self, id, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param str id: Plan Id (required) - :param object activate_plan_request: :return: InlineResponse2004 If the method is called asynchronously, returns the request thread. """ - all_params = ['id', 'activate_plan_request'] + all_params = ['id'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -133,10 +131,10 @@ def activate_plan_with_http_info(self, id, **kwargs): local_var_files = {} body_params = None - if 'activate_plan_request' in params: - body_params = params['activate_plan_request'] + if 'POST' in ('POST'): + body_params = '{}' # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept(['application/hal+json;charset=utf-8']) + header_params['Accept'] = self.api_client.select_header_accept(['application/json;charset=utf-8']) # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.select_header_content_type(['application/json;charset=utf-8']) @@ -246,7 +244,7 @@ def create_plan_with_http_info(self, create_plan_request, **kwargs): if 'create_plan_request' in params: body_params = params['create_plan_request'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept(['application/hal+json;charset=utf-8']) + header_params['Accept'] = self.api_client.select_header_accept(['application/json;charset=utf-8']) # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.select_header_content_type(['application/json;charset=utf-8']) @@ -284,7 +282,6 @@ def deactivate_plan(self, id, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param str id: Plan Id (required) - :param object deactivate_plan_request: :return: InlineResponse2004 If the method is called asynchronously, returns the request thread. @@ -315,13 +312,12 @@ def deactivate_plan_with_http_info(self, id, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param str id: Plan Id (required) - :param object deactivate_plan_request: :return: InlineResponse2004 If the method is called asynchronously, returns the request thread. """ - all_params = ['id', 'deactivate_plan_request'] + all_params = ['id'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -357,10 +353,10 @@ def deactivate_plan_with_http_info(self, id, **kwargs): local_var_files = {} body_params = None - if 'deactivate_plan_request' in params: - body_params = params['deactivate_plan_request'] + if 'POST' in ('POST'): + body_params = '{}' # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept(['application/hal+json;charset=utf-8']) + header_params['Accept'] = self.api_client.select_header_accept(['application/json;charset=utf-8']) # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.select_header_content_type(['application/json;charset=utf-8']) @@ -472,7 +468,7 @@ def delete_plan_with_http_info(self, id, **kwargs): if 'DELETE' in ('POST'): body_params = '{}' # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept(['application/hal+json;charset=utf-8']) + header_params['Accept'] = self.api_client.select_header_accept(['application/json;charset=utf-8']) # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.select_header_content_type(['application/json;charset=utf-8']) @@ -584,7 +580,7 @@ def get_plan_with_http_info(self, id, **kwargs): if 'GET' in ('POST'): body_params = '{}' # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept(['application/hal+json;charset=utf-8']) + header_params['Accept'] = self.api_client.select_header_accept(['application/json;charset=utf-8']) # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.select_header_content_type(['application/json;charset=utf-8']) @@ -686,7 +682,7 @@ def get_plan_code_with_http_info(self, **kwargs): if 'GET' in ('POST'): body_params = '{}' # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept(['application/hal+json;charset=utf-8']) + header_params['Accept'] = self.api_client.select_header_accept(['application/json;charset=utf-8']) # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.select_header_content_type(['application/json;charset=utf-8']) @@ -809,7 +805,7 @@ def get_plans_with_http_info(self, **kwargs): if 'GET' in ('POST'): body_params = '{}' # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept(['application/hal+json;charset=utf-8']) + header_params['Accept'] = self.api_client.select_header_accept(['application/json;charset=utf-8']) # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.select_header_content_type(['application/json;charset=utf-8']) @@ -928,7 +924,7 @@ def update_plan_with_http_info(self, id, update_plan_request, **kwargs): if 'update_plan_request' in params: body_params = params['update_plan_request'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept(['application/hal+json;charset=utf-8']) + header_params['Accept'] = self.api_client.select_header_accept(['application/json;charset=utf-8']) # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.select_header_content_type(['application/json;charset=utf-8']) diff --git a/CyberSource/api/subscriptions_api.py b/CyberSource/api/subscriptions_api.py index 45953bdc..a8fbb875 100644 --- a/CyberSource/api/subscriptions_api.py +++ b/CyberSource/api/subscriptions_api.py @@ -60,7 +60,6 @@ def activate_subscription(self, id, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param str id: Subscription Id (required) - :param object activate_subscription_request: :return: InlineResponse2009 If the method is called asynchronously, returns the request thread. @@ -91,13 +90,12 @@ def activate_subscription_with_http_info(self, id, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param str id: Subscription Id (required) - :param object activate_subscription_request: :return: InlineResponse2009 If the method is called asynchronously, returns the request thread. """ - all_params = ['id', 'activate_subscription_request'] + all_params = ['id'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -133,10 +131,10 @@ def activate_subscription_with_http_info(self, id, **kwargs): local_var_files = {} body_params = None - if 'activate_subscription_request' in params: - body_params = params['activate_subscription_request'] + if 'POST' in ('POST'): + body_params = '{}' # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept(['application/hal+json;charset=utf-8']) + header_params['Accept'] = self.api_client.select_header_accept(['application/json;charset=utf-8']) # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.select_header_content_type(['application/json;charset=utf-8']) @@ -174,7 +172,6 @@ def cancel_subscription(self, id, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param str id: Subscription Id (required) - :param object cancel_subscription_request: :return: InlineResponse202 If the method is called asynchronously, returns the request thread. @@ -205,13 +202,12 @@ def cancel_subscription_with_http_info(self, id, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param str id: Subscription Id (required) - :param object cancel_subscription_request: :return: InlineResponse202 If the method is called asynchronously, returns the request thread. """ - all_params = ['id', 'cancel_subscription_request'] + all_params = ['id'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -247,10 +243,10 @@ def cancel_subscription_with_http_info(self, id, **kwargs): local_var_files = {} body_params = None - if 'cancel_subscription_request' in params: - body_params = params['cancel_subscription_request'] + if 'POST' in ('POST'): + body_params = '{}' # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept(['application/hal+json;charset=utf-8']) + header_params['Accept'] = self.api_client.select_header_accept(['application/json;charset=utf-8']) # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.select_header_content_type(['application/json;charset=utf-8']) @@ -360,7 +356,7 @@ def create_subscription_with_http_info(self, create_subscription_request, **kwar if 'create_subscription_request' in params: body_params = params['create_subscription_request'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept(['application/hal+json;charset=utf-8']) + header_params['Accept'] = self.api_client.select_header_accept(['application/json;charset=utf-8']) # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.select_header_content_type(['application/json;charset=utf-8']) @@ -479,7 +475,7 @@ def get_all_subscriptions_with_http_info(self, **kwargs): if 'GET' in ('POST'): body_params = '{}' # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept(['application/hal+json;charset=utf-8']) + header_params['Accept'] = self.api_client.select_header_accept(['application/json;charset=utf-8']) # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.select_header_content_type(['application/json;charset=utf-8']) @@ -591,7 +587,7 @@ def get_subscription_with_http_info(self, id, **kwargs): if 'GET' in ('POST'): body_params = '{}' # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept(['application/hal+json;charset=utf-8']) + header_params['Accept'] = self.api_client.select_header_accept(['application/json;charset=utf-8']) # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.select_header_content_type(['application/json;charset=utf-8']) @@ -693,7 +689,7 @@ def get_subscription_code_with_http_info(self, **kwargs): if 'GET' in ('POST'): body_params = '{}' # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept(['application/hal+json;charset=utf-8']) + header_params['Accept'] = self.api_client.select_header_accept(['application/json;charset=utf-8']) # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.select_header_content_type(['application/json;charset=utf-8']) @@ -731,7 +727,6 @@ def suspend_subscription(self, id, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param str id: Subscription Id (required) - :param object suspend_subscription_request: :return: InlineResponse2021 If the method is called asynchronously, returns the request thread. @@ -762,13 +757,12 @@ def suspend_subscription_with_http_info(self, id, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param str id: Subscription Id (required) - :param object suspend_subscription_request: :return: InlineResponse2021 If the method is called asynchronously, returns the request thread. """ - all_params = ['id', 'suspend_subscription_request'] + all_params = ['id'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -804,10 +798,10 @@ def suspend_subscription_with_http_info(self, id, **kwargs): local_var_files = {} body_params = None - if 'suspend_subscription_request' in params: - body_params = params['suspend_subscription_request'] + if 'POST' in ('POST'): + body_params = '{}' # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept(['application/hal+json;charset=utf-8']) + header_params['Accept'] = self.api_client.select_header_accept(['application/json;charset=utf-8']) # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.select_header_content_type(['application/json;charset=utf-8']) @@ -926,7 +920,7 @@ def update_subscription_with_http_info(self, id, update_subscription, **kwargs): if 'update_subscription' in params: body_params = params['update_subscription'] # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept(['application/hal+json;charset=utf-8']) + header_params['Accept'] = self.api_client.select_header_accept(['application/json;charset=utf-8']) # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.select_header_content_type(['application/json;charset=utf-8']) diff --git a/CyberSource/models/__init__.py b/CyberSource/models/__init__.py index 3c50ecef..1415d6b6 100644 --- a/CyberSource/models/__init__.py +++ b/CyberSource/models/__init__.py @@ -268,6 +268,11 @@ from .pts_v2_payments_post201_response_consumer_authentication_information_ivr import PtsV2PaymentsPost201ResponseConsumerAuthenticationInformationIvr from .pts_v2_payments_post201_response_consumer_authentication_information_strong_authentication import PtsV2PaymentsPost201ResponseConsumerAuthenticationInformationStrongAuthentication from .pts_v2_payments_post201_response_consumer_authentication_information_strong_authentication_issuer_information import PtsV2PaymentsPost201ResponseConsumerAuthenticationInformationStrongAuthenticationIssuerInformation +from .pts_v2_payments_post201_response_embedded_actions import PtsV2PaymentsPost201ResponseEmbeddedActions +from .pts_v2_payments_post201_response_embedded_actions_capture import PtsV2PaymentsPost201ResponseEmbeddedActionsCAPTURE +from .pts_v2_payments_post201_response_embedded_actions_consumer_authentication import PtsV2PaymentsPost201ResponseEmbeddedActionsCONSUMERAUTHENTICATION +from .pts_v2_payments_post201_response_embedded_actions_decision import PtsV2PaymentsPost201ResponseEmbeddedActionsDECISION +from .pts_v2_payments_post201_response_embedded_actions_watchlist_screening import PtsV2PaymentsPost201ResponseEmbeddedActionsWATCHLISTSCREENING from .pts_v2_payments_post201_response_error_information import PtsV2PaymentsPost201ResponseErrorInformation from .pts_v2_payments_post201_response_error_information_details import PtsV2PaymentsPost201ResponseErrorInformationDetails from .pts_v2_payments_post201_response_installment_information import PtsV2PaymentsPost201ResponseInstallmentInformation @@ -880,6 +885,7 @@ from .tss_v2_transactions_post201_response__embedded_client_reference_information import TssV2TransactionsPost201ResponseEmbeddedClientReferenceInformation from .tss_v2_transactions_post201_response__embedded_client_reference_information_partner import TssV2TransactionsPost201ResponseEmbeddedClientReferenceInformationPartner from .tss_v2_transactions_post201_response__embedded_consumer_authentication_information import TssV2TransactionsPost201ResponseEmbeddedConsumerAuthenticationInformation +from .tss_v2_transactions_post201_response__embedded_error_information import TssV2TransactionsPost201ResponseEmbeddedErrorInformation from .tss_v2_transactions_post201_response__embedded__links import TssV2TransactionsPost201ResponseEmbeddedLinks from .tss_v2_transactions_post201_response__embedded_merchant_information import TssV2TransactionsPost201ResponseEmbeddedMerchantInformation from .tss_v2_transactions_post201_response__embedded_order_information import TssV2TransactionsPost201ResponseEmbeddedOrderInformation diff --git a/CyberSource/models/pts_v2_payments_post201_response.py b/CyberSource/models/pts_v2_payments_post201_response.py index c1f8346f..bb5978d2 100644 --- a/CyberSource/models/pts_v2_payments_post201_response.py +++ b/CyberSource/models/pts_v2_payments_post201_response.py @@ -51,6 +51,7 @@ class PtsV2PaymentsPost201Response(object): 'buyer_information': 'PtsV2PaymentsPost201ResponseBuyerInformation', 'risk_information': 'PtsV2PaymentsPost201ResponseRiskInformation', 'consumer_authentication_information': 'PtsV2PaymentsPost201ResponseConsumerAuthenticationInformation', + 'embedded_actions': 'PtsV2PaymentsPost201ResponseEmbeddedActions', 'watchlist_screening_information': 'PtsV2PaymentsPost201ResponseWatchlistScreeningInformation' } @@ -75,10 +76,11 @@ class PtsV2PaymentsPost201Response(object): 'buyer_information': 'buyerInformation', 'risk_information': 'riskInformation', 'consumer_authentication_information': 'consumerAuthenticationInformation', + 'embedded_actions': 'embeddedActions', 'watchlist_screening_information': 'watchlistScreeningInformation' } - def __init__(self, links=None, id=None, submit_time_utc=None, status=None, reconciliation_id=None, error_information=None, client_reference_information=None, processing_information=None, processor_information=None, issuer_information=None, payment_account_information=None, payment_information=None, payment_insights_information=None, order_information=None, point_of_sale_information=None, installment_information=None, token_information=None, buyer_information=None, risk_information=None, consumer_authentication_information=None, watchlist_screening_information=None): + def __init__(self, links=None, id=None, submit_time_utc=None, status=None, reconciliation_id=None, error_information=None, client_reference_information=None, processing_information=None, processor_information=None, issuer_information=None, payment_account_information=None, payment_information=None, payment_insights_information=None, order_information=None, point_of_sale_information=None, installment_information=None, token_information=None, buyer_information=None, risk_information=None, consumer_authentication_information=None, embedded_actions=None, watchlist_screening_information=None): """ PtsV2PaymentsPost201Response - a model defined in Swagger """ @@ -103,6 +105,7 @@ def __init__(self, links=None, id=None, submit_time_utc=None, status=None, recon self._buyer_information = None self._risk_information = None self._consumer_authentication_information = None + self._embedded_actions = None self._watchlist_screening_information = None if links is not None: @@ -145,6 +148,8 @@ def __init__(self, links=None, id=None, submit_time_utc=None, status=None, recon self.risk_information = risk_information if consumer_authentication_information is not None: self.consumer_authentication_information = consumer_authentication_information + if embedded_actions is not None: + self.embedded_actions = embedded_actions if watchlist_screening_information is not None: self.watchlist_screening_information = watchlist_screening_information @@ -576,6 +581,27 @@ def consumer_authentication_information(self, consumer_authentication_informatio self._consumer_authentication_information = consumer_authentication_information + @property + def embedded_actions(self): + """ + Gets the embedded_actions of this PtsV2PaymentsPost201Response. + + :return: The embedded_actions of this PtsV2PaymentsPost201Response. + :rtype: PtsV2PaymentsPost201ResponseEmbeddedActions + """ + return self._embedded_actions + + @embedded_actions.setter + def embedded_actions(self, embedded_actions): + """ + Sets the embedded_actions of this PtsV2PaymentsPost201Response. + + :param embedded_actions: The embedded_actions of this PtsV2PaymentsPost201Response. + :type: PtsV2PaymentsPost201ResponseEmbeddedActions + """ + + self._embedded_actions = embedded_actions + @property def watchlist_screening_information(self): """ diff --git a/CyberSource/models/pts_v2_payments_post201_response_embedded_actions.py b/CyberSource/models/pts_v2_payments_post201_response_embedded_actions.py new file mode 100644 index 00000000..23963482 --- /dev/null +++ b/CyberSource/models/pts_v2_payments_post201_response_embedded_actions.py @@ -0,0 +1,227 @@ +# coding: utf-8 + +""" + CyberSource Merged Spec + + All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class PtsV2PaymentsPost201ResponseEmbeddedActions(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'capture': 'PtsV2PaymentsPost201ResponseEmbeddedActionsCAPTURE', + 'decision': 'PtsV2PaymentsPost201ResponseEmbeddedActionsDECISION', + 'consumer_authentication': 'PtsV2PaymentsPost201ResponseEmbeddedActionsCONSUMERAUTHENTICATION', + 'validate_consumer_authentication': 'PtsV2PaymentsPost201ResponseEmbeddedActionsCONSUMERAUTHENTICATION', + 'watchlist_screening': 'PtsV2PaymentsPost201ResponseEmbeddedActionsWATCHLISTSCREENING' + } + + attribute_map = { + 'capture': 'CAPTURE', + 'decision': 'DECISION', + 'consumer_authentication': 'CONSUMER_AUTHENTICATION', + 'validate_consumer_authentication': 'VALIDATE_CONSUMER_AUTHENTICATION', + 'watchlist_screening': 'WATCHLIST_SCREENING' + } + + def __init__(self, capture=None, decision=None, consumer_authentication=None, validate_consumer_authentication=None, watchlist_screening=None): + """ + PtsV2PaymentsPost201ResponseEmbeddedActions - a model defined in Swagger + """ + + self._capture = None + self._decision = None + self._consumer_authentication = None + self._validate_consumer_authentication = None + self._watchlist_screening = None + + if capture is not None: + self.capture = capture + if decision is not None: + self.decision = decision + if consumer_authentication is not None: + self.consumer_authentication = consumer_authentication + if validate_consumer_authentication is not None: + self.validate_consumer_authentication = validate_consumer_authentication + if watchlist_screening is not None: + self.watchlist_screening = watchlist_screening + + @property + def capture(self): + """ + Gets the capture of this PtsV2PaymentsPost201ResponseEmbeddedActions. + + :return: The capture of this PtsV2PaymentsPost201ResponseEmbeddedActions. + :rtype: PtsV2PaymentsPost201ResponseEmbeddedActionsCAPTURE + """ + return self._capture + + @capture.setter + def capture(self, capture): + """ + Sets the capture of this PtsV2PaymentsPost201ResponseEmbeddedActions. + + :param capture: The capture of this PtsV2PaymentsPost201ResponseEmbeddedActions. + :type: PtsV2PaymentsPost201ResponseEmbeddedActionsCAPTURE + """ + + self._capture = capture + + @property + def decision(self): + """ + Gets the decision of this PtsV2PaymentsPost201ResponseEmbeddedActions. + + :return: The decision of this PtsV2PaymentsPost201ResponseEmbeddedActions. + :rtype: PtsV2PaymentsPost201ResponseEmbeddedActionsDECISION + """ + return self._decision + + @decision.setter + def decision(self, decision): + """ + Sets the decision of this PtsV2PaymentsPost201ResponseEmbeddedActions. + + :param decision: The decision of this PtsV2PaymentsPost201ResponseEmbeddedActions. + :type: PtsV2PaymentsPost201ResponseEmbeddedActionsDECISION + """ + + self._decision = decision + + @property + def consumer_authentication(self): + """ + Gets the consumer_authentication of this PtsV2PaymentsPost201ResponseEmbeddedActions. + + :return: The consumer_authentication of this PtsV2PaymentsPost201ResponseEmbeddedActions. + :rtype: PtsV2PaymentsPost201ResponseEmbeddedActionsCONSUMERAUTHENTICATION + """ + return self._consumer_authentication + + @consumer_authentication.setter + def consumer_authentication(self, consumer_authentication): + """ + Sets the consumer_authentication of this PtsV2PaymentsPost201ResponseEmbeddedActions. + + :param consumer_authentication: The consumer_authentication of this PtsV2PaymentsPost201ResponseEmbeddedActions. + :type: PtsV2PaymentsPost201ResponseEmbeddedActionsCONSUMERAUTHENTICATION + """ + + self._consumer_authentication = consumer_authentication + + @property + def validate_consumer_authentication(self): + """ + Gets the validate_consumer_authentication of this PtsV2PaymentsPost201ResponseEmbeddedActions. + + :return: The validate_consumer_authentication of this PtsV2PaymentsPost201ResponseEmbeddedActions. + :rtype: PtsV2PaymentsPost201ResponseEmbeddedActionsCONSUMERAUTHENTICATION + """ + return self._validate_consumer_authentication + + @validate_consumer_authentication.setter + def validate_consumer_authentication(self, validate_consumer_authentication): + """ + Sets the validate_consumer_authentication of this PtsV2PaymentsPost201ResponseEmbeddedActions. + + :param validate_consumer_authentication: The validate_consumer_authentication of this PtsV2PaymentsPost201ResponseEmbeddedActions. + :type: PtsV2PaymentsPost201ResponseEmbeddedActionsCONSUMERAUTHENTICATION + """ + + self._validate_consumer_authentication = validate_consumer_authentication + + @property + def watchlist_screening(self): + """ + Gets the watchlist_screening of this PtsV2PaymentsPost201ResponseEmbeddedActions. + + :return: The watchlist_screening of this PtsV2PaymentsPost201ResponseEmbeddedActions. + :rtype: PtsV2PaymentsPost201ResponseEmbeddedActionsWATCHLISTSCREENING + """ + return self._watchlist_screening + + @watchlist_screening.setter + def watchlist_screening(self, watchlist_screening): + """ + Sets the watchlist_screening of this PtsV2PaymentsPost201ResponseEmbeddedActions. + + :param watchlist_screening: The watchlist_screening of this PtsV2PaymentsPost201ResponseEmbeddedActions. + :type: PtsV2PaymentsPost201ResponseEmbeddedActionsWATCHLISTSCREENING + """ + + self._watchlist_screening = watchlist_screening + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, PtsV2PaymentsPost201ResponseEmbeddedActions): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/pts_v2_payments_post201_response_embedded_actions_capture.py b/CyberSource/models/pts_v2_payments_post201_response_embedded_actions_capture.py new file mode 100644 index 00000000..bf000f1b --- /dev/null +++ b/CyberSource/models/pts_v2_payments_post201_response_embedded_actions_capture.py @@ -0,0 +1,181 @@ +# coding: utf-8 + +""" + CyberSource Merged Spec + + All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class PtsV2PaymentsPost201ResponseEmbeddedActionsCAPTURE(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'status': 'str', + 'reason': 'str', + 'message': 'str' + } + + attribute_map = { + 'status': 'status', + 'reason': 'reason', + 'message': 'message' + } + + def __init__(self, status=None, reason=None, message=None): + """ + PtsV2PaymentsPost201ResponseEmbeddedActionsCAPTURE - a model defined in Swagger + """ + + self._status = None + self._reason = None + self._message = None + + if status is not None: + self.status = status + if reason is not None: + self.reason = reason + if message is not None: + self.message = message + + @property + def status(self): + """ + Gets the status of this PtsV2PaymentsPost201ResponseEmbeddedActionsCAPTURE. + The status of the submitted transaction. Possible values: - PENDING + + :return: The status of this PtsV2PaymentsPost201ResponseEmbeddedActionsCAPTURE. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this PtsV2PaymentsPost201ResponseEmbeddedActionsCAPTURE. + The status of the submitted transaction. Possible values: - PENDING + + :param status: The status of this PtsV2PaymentsPost201ResponseEmbeddedActionsCAPTURE. + :type: str + """ + + self._status = status + + @property + def reason(self): + """ + Gets the reason of this PtsV2PaymentsPost201ResponseEmbeddedActionsCAPTURE. + The reason of the status. Possible values: - MISSING_FIELD - INVALID_DATA - DUPLICATE_REQUEST - INVALID_MERCHANT_CONFIGURATION - EXCEEDS_AUTH_AMOUNT - AUTH_ALREADY_REVERSED - TRANSACTION_ALREADY_SETTLED - INVALID_AMOUNT - MISSING_AUTH - TRANSACTION_ALREADY_REVERSED_OR_SETTLED - NOT_SUPPORTED + + :return: The reason of this PtsV2PaymentsPost201ResponseEmbeddedActionsCAPTURE. + :rtype: str + """ + return self._reason + + @reason.setter + def reason(self, reason): + """ + Sets the reason of this PtsV2PaymentsPost201ResponseEmbeddedActionsCAPTURE. + The reason of the status. Possible values: - MISSING_FIELD - INVALID_DATA - DUPLICATE_REQUEST - INVALID_MERCHANT_CONFIGURATION - EXCEEDS_AUTH_AMOUNT - AUTH_ALREADY_REVERSED - TRANSACTION_ALREADY_SETTLED - INVALID_AMOUNT - MISSING_AUTH - TRANSACTION_ALREADY_REVERSED_OR_SETTLED - NOT_SUPPORTED + + :param reason: The reason of this PtsV2PaymentsPost201ResponseEmbeddedActionsCAPTURE. + :type: str + """ + + self._reason = reason + + @property + def message(self): + """ + Gets the message of this PtsV2PaymentsPost201ResponseEmbeddedActionsCAPTURE. + The detail message related to the status and reason listed above. + + :return: The message of this PtsV2PaymentsPost201ResponseEmbeddedActionsCAPTURE. + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """ + Sets the message of this PtsV2PaymentsPost201ResponseEmbeddedActionsCAPTURE. + The detail message related to the status and reason listed above. + + :param message: The message of this PtsV2PaymentsPost201ResponseEmbeddedActionsCAPTURE. + :type: str + """ + + self._message = message + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, PtsV2PaymentsPost201ResponseEmbeddedActionsCAPTURE): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/pts_v2_payments_post201_response_embedded_actions_consumer_authentication.py b/CyberSource/models/pts_v2_payments_post201_response_embedded_actions_consumer_authentication.py new file mode 100644 index 00000000..e108c525 --- /dev/null +++ b/CyberSource/models/pts_v2_payments_post201_response_embedded_actions_consumer_authentication.py @@ -0,0 +1,181 @@ +# coding: utf-8 + +""" + CyberSource Merged Spec + + All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class PtsV2PaymentsPost201ResponseEmbeddedActionsCONSUMERAUTHENTICATION(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'status': 'str', + 'reason': 'str', + 'message': 'str' + } + + attribute_map = { + 'status': 'status', + 'reason': 'reason', + 'message': 'message' + } + + def __init__(self, status=None, reason=None, message=None): + """ + PtsV2PaymentsPost201ResponseEmbeddedActionsCONSUMERAUTHENTICATION - a model defined in Swagger + """ + + self._status = None + self._reason = None + self._message = None + + if status is not None: + self.status = status + if reason is not None: + self.reason = reason + if message is not None: + self.message = message + + @property + def status(self): + """ + Gets the status of this PtsV2PaymentsPost201ResponseEmbeddedActionsCONSUMERAUTHENTICATION. + The status for payerAuthentication 201 enroll and validate calls. Possible values are: - `AUTHENTICATION_SUCCESSFUL` - `PENDING_AUTHENTICATION` - `INVALID_REQUEST` - `AUTHENTICATION_FAILED` + + :return: The status of this PtsV2PaymentsPost201ResponseEmbeddedActionsCONSUMERAUTHENTICATION. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this PtsV2PaymentsPost201ResponseEmbeddedActionsCONSUMERAUTHENTICATION. + The status for payerAuthentication 201 enroll and validate calls. Possible values are: - `AUTHENTICATION_SUCCESSFUL` - `PENDING_AUTHENTICATION` - `INVALID_REQUEST` - `AUTHENTICATION_FAILED` + + :param status: The status of this PtsV2PaymentsPost201ResponseEmbeddedActionsCONSUMERAUTHENTICATION. + :type: str + """ + + self._status = status + + @property + def reason(self): + """ + Gets the reason of this PtsV2PaymentsPost201ResponseEmbeddedActionsCONSUMERAUTHENTICATION. + The reason of the status. Possible values are: - `INVALID_MERCHANT_CONFIGURATION` - `CONSUMER_AUTHENTICATION_REQUIRED` - `CONSUMER_AUTHENTICATION_FAILED` - `AUTHENTICATION_FAILED` + + :return: The reason of this PtsV2PaymentsPost201ResponseEmbeddedActionsCONSUMERAUTHENTICATION. + :rtype: str + """ + return self._reason + + @reason.setter + def reason(self, reason): + """ + Sets the reason of this PtsV2PaymentsPost201ResponseEmbeddedActionsCONSUMERAUTHENTICATION. + The reason of the status. Possible values are: - `INVALID_MERCHANT_CONFIGURATION` - `CONSUMER_AUTHENTICATION_REQUIRED` - `CONSUMER_AUTHENTICATION_FAILED` - `AUTHENTICATION_FAILED` + + :param reason: The reason of this PtsV2PaymentsPost201ResponseEmbeddedActionsCONSUMERAUTHENTICATION. + :type: str + """ + + self._reason = reason + + @property + def message(self): + """ + Gets the message of this PtsV2PaymentsPost201ResponseEmbeddedActionsCONSUMERAUTHENTICATION. + The message describing the reason of the status. Value is: - Encountered a Payer Authentication problem. Payer could not be authenticated. + + :return: The message of this PtsV2PaymentsPost201ResponseEmbeddedActionsCONSUMERAUTHENTICATION. + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """ + Sets the message of this PtsV2PaymentsPost201ResponseEmbeddedActionsCONSUMERAUTHENTICATION. + The message describing the reason of the status. Value is: - Encountered a Payer Authentication problem. Payer could not be authenticated. + + :param message: The message of this PtsV2PaymentsPost201ResponseEmbeddedActionsCONSUMERAUTHENTICATION. + :type: str + """ + + self._message = message + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, PtsV2PaymentsPost201ResponseEmbeddedActionsCONSUMERAUTHENTICATION): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/pts_v2_payments_post201_response_embedded_actions_decision.py b/CyberSource/models/pts_v2_payments_post201_response_embedded_actions_decision.py new file mode 100644 index 00000000..104edf7d --- /dev/null +++ b/CyberSource/models/pts_v2_payments_post201_response_embedded_actions_decision.py @@ -0,0 +1,181 @@ +# coding: utf-8 + +""" + CyberSource Merged Spec + + All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class PtsV2PaymentsPost201ResponseEmbeddedActionsDECISION(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'status': 'str', + 'reason': 'str', + 'message': 'str' + } + + attribute_map = { + 'status': 'status', + 'reason': 'reason', + 'message': 'message' + } + + def __init__(self, status=None, reason=None, message=None): + """ + PtsV2PaymentsPost201ResponseEmbeddedActionsDECISION - a model defined in Swagger + """ + + self._status = None + self._reason = None + self._message = None + + if status is not None: + self.status = status + if reason is not None: + self.reason = reason + if message is not None: + self.message = message + + @property + def status(self): + """ + Gets the status of this PtsV2PaymentsPost201ResponseEmbeddedActionsDECISION. + The status of the submitted transaction. Possible values: - `ACCEPTED` - `REJECTED` - `PENDING_REVIEW` - `DECLINED` - `PENDING_AUTHENTICATION` - `INVALID_REQUEST` - `AUTHENTICATION_FAILED` - `CHALLENGE` + + :return: The status of this PtsV2PaymentsPost201ResponseEmbeddedActionsDECISION. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this PtsV2PaymentsPost201ResponseEmbeddedActionsDECISION. + The status of the submitted transaction. Possible values: - `ACCEPTED` - `REJECTED` - `PENDING_REVIEW` - `DECLINED` - `PENDING_AUTHENTICATION` - `INVALID_REQUEST` - `AUTHENTICATION_FAILED` - `CHALLENGE` + + :param status: The status of this PtsV2PaymentsPost201ResponseEmbeddedActionsDECISION. + :type: str + """ + + self._status = status + + @property + def reason(self): + """ + Gets the reason of this PtsV2PaymentsPost201ResponseEmbeddedActionsDECISION. + The reason of the status. Possible values: - `EXPIRED_CARD` - `SCORE_EXCEEDS_THRESHOLD` - `DECISION_PROFILE_REVIEW` - `DECISION_PROFILE_REJECT` - `CONSUMER_AUTHENTICATION_REQUIRED` - `INVALID_MERCHANT_CONFIGURATION` - `CONSUMER_AUTHENTICATION_FAILED` - `DECISION_PROFILE_CHALLENGE` - `CUSTOMER_WATCHLIST_MATCH` - `ADDRESS_COUNTRY_WATCHLIST_MATCH` - `EMAIL_COUNTRY_WATCHLIST_MATCH` - `IP_COUNTRY_WATCHLIST_MATCH` + + :return: The reason of this PtsV2PaymentsPost201ResponseEmbeddedActionsDECISION. + :rtype: str + """ + return self._reason + + @reason.setter + def reason(self, reason): + """ + Sets the reason of this PtsV2PaymentsPost201ResponseEmbeddedActionsDECISION. + The reason of the status. Possible values: - `EXPIRED_CARD` - `SCORE_EXCEEDS_THRESHOLD` - `DECISION_PROFILE_REVIEW` - `DECISION_PROFILE_REJECT` - `CONSUMER_AUTHENTICATION_REQUIRED` - `INVALID_MERCHANT_CONFIGURATION` - `CONSUMER_AUTHENTICATION_FAILED` - `DECISION_PROFILE_CHALLENGE` - `CUSTOMER_WATCHLIST_MATCH` - `ADDRESS_COUNTRY_WATCHLIST_MATCH` - `EMAIL_COUNTRY_WATCHLIST_MATCH` - `IP_COUNTRY_WATCHLIST_MATCH` + + :param reason: The reason of this PtsV2PaymentsPost201ResponseEmbeddedActionsDECISION. + :type: str + """ + + self._reason = reason + + @property + def message(self): + """ + Gets the message of this PtsV2PaymentsPost201ResponseEmbeddedActionsDECISION. + The detail message related to the status and reason listed above. + + :return: The message of this PtsV2PaymentsPost201ResponseEmbeddedActionsDECISION. + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """ + Sets the message of this PtsV2PaymentsPost201ResponseEmbeddedActionsDECISION. + The detail message related to the status and reason listed above. + + :param message: The message of this PtsV2PaymentsPost201ResponseEmbeddedActionsDECISION. + :type: str + """ + + self._message = message + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, PtsV2PaymentsPost201ResponseEmbeddedActionsDECISION): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/pts_v2_payments_post201_response_embedded_actions_watchlist_screening.py b/CyberSource/models/pts_v2_payments_post201_response_embedded_actions_watchlist_screening.py new file mode 100644 index 00000000..7e8744b9 --- /dev/null +++ b/CyberSource/models/pts_v2_payments_post201_response_embedded_actions_watchlist_screening.py @@ -0,0 +1,181 @@ +# coding: utf-8 + +""" + CyberSource Merged Spec + + All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class PtsV2PaymentsPost201ResponseEmbeddedActionsWATCHLISTSCREENING(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'status': 'str', + 'reason': 'str', + 'message': 'str' + } + + attribute_map = { + 'status': 'status', + 'reason': 'reason', + 'message': 'message' + } + + def __init__(self, status=None, reason=None, message=None): + """ + PtsV2PaymentsPost201ResponseEmbeddedActionsWATCHLISTSCREENING - a model defined in Swagger + """ + + self._status = None + self._reason = None + self._message = None + + if status is not None: + self.status = status + if reason is not None: + self.reason = reason + if message is not None: + self.message = message + + @property + def status(self): + """ + Gets the status of this PtsV2PaymentsPost201ResponseEmbeddedActionsWATCHLISTSCREENING. + The status for the call can be: - COMPLETED - INVALID_REQUEST - DECLINED + + :return: The status of this PtsV2PaymentsPost201ResponseEmbeddedActionsWATCHLISTSCREENING. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this PtsV2PaymentsPost201ResponseEmbeddedActionsWATCHLISTSCREENING. + The status for the call can be: - COMPLETED - INVALID_REQUEST - DECLINED + + :param status: The status of this PtsV2PaymentsPost201ResponseEmbeddedActionsWATCHLISTSCREENING. + :type: str + """ + + self._status = status + + @property + def reason(self): + """ + Gets the reason of this PtsV2PaymentsPost201ResponseEmbeddedActionsWATCHLISTSCREENING. + The reason of the status. Value can be - `CUSTOMER_WATCHLIST_MATCH` - `ADDRESS_COUNTRY_WATCHLIST_MATCH` - `EMAIL_COUNTRY_WATCHLIST_MATCH` - `IP_COUNTRY_WATCHLIST_MATCH` - `INVALID_MERCHANT_CONFIGURATION` + + :return: The reason of this PtsV2PaymentsPost201ResponseEmbeddedActionsWATCHLISTSCREENING. + :rtype: str + """ + return self._reason + + @reason.setter + def reason(self, reason): + """ + Sets the reason of this PtsV2PaymentsPost201ResponseEmbeddedActionsWATCHLISTSCREENING. + The reason of the status. Value can be - `CUSTOMER_WATCHLIST_MATCH` - `ADDRESS_COUNTRY_WATCHLIST_MATCH` - `EMAIL_COUNTRY_WATCHLIST_MATCH` - `IP_COUNTRY_WATCHLIST_MATCH` - `INVALID_MERCHANT_CONFIGURATION` + + :param reason: The reason of this PtsV2PaymentsPost201ResponseEmbeddedActionsWATCHLISTSCREENING. + :type: str + """ + + self._reason = reason + + @property + def message(self): + """ + Gets the message of this PtsV2PaymentsPost201ResponseEmbeddedActionsWATCHLISTSCREENING. + The message describing the reason of the status. Value can be - The customer matched the Denied Parties List - The Export bill_country/ship_country match - Export email_country match - Export hostname_country/ip_country match + + :return: The message of this PtsV2PaymentsPost201ResponseEmbeddedActionsWATCHLISTSCREENING. + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """ + Sets the message of this PtsV2PaymentsPost201ResponseEmbeddedActionsWATCHLISTSCREENING. + The message describing the reason of the status. Value can be - The customer matched the Denied Parties List - The Export bill_country/ship_country match - Export email_country match - Export hostname_country/ip_country match + + :param message: The message of this PtsV2PaymentsPost201ResponseEmbeddedActionsWATCHLISTSCREENING. + :type: str + """ + + self._message = message + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, PtsV2PaymentsPost201ResponseEmbeddedActionsWATCHLISTSCREENING): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/ptsv2payments_processing_information.py b/CyberSource/models/ptsv2payments_processing_information.py index 3d77db98..7a52710b 100644 --- a/CyberSource/models/ptsv2payments_processing_information.py +++ b/CyberSource/models/ptsv2payments_processing_information.py @@ -207,7 +207,7 @@ def __init__(self, action_list=None, enable_escrow_option=None, action_token_typ def action_list(self): """ Gets the action_list of this Ptsv2paymentsProcessingInformation. - Array of actions (one or more) to be included in the payment to invoke bundled services along with payment. Possible values are one or more of follows: - `DECISION_SKIP`: Use this when you want to skip Decision Manager service(s). - `TOKEN_CREATE`: Use this when you want to create a token from the card/bank data in your payment request. - `CONSUMER_AUTHENTICATION`: Use this when you want to check if a card is enrolled in Payer Authentioncation along with your payment request. - `VALIDATE_CONSUMER_AUTHENTICATION`: Use this after you acquire a Payer Authentioncation result that needs to be included for your payment request. - `AP_INITIATE`: Use this when Alternative Payment Initiate service is requested. - `WATCHLIST_SCREENING` : Use this when you want to call Watchlist Screening service. + Array of actions (one or more) to be included in the payment to invoke bundled services along with payment. Possible values are one or more of follows: - `DECISION_SKIP`: Use this when you want to skip Decision Manager service(s). - `TOKEN_CREATE`: Use this when you want to create a token from the card/bank data in your payment request. - `CONSUMER_AUTHENTICATION`: Use this when you want to check if a card is enrolled in Payer Authentication along with your payment request. - `VALIDATE_CONSUMER_AUTHENTICATION`: Use this after you acquire a Payer Authentication result that needs to be included for your payment request. - `AP_INITIATE`: Use this when Alternative Payment Initiate service is requested. - `WATCHLIST_SCREENING` : Use this when you want to call Watchlist Screening service. :return: The action_list of this Ptsv2paymentsProcessingInformation. :rtype: list[str] @@ -218,7 +218,7 @@ def action_list(self): def action_list(self, action_list): """ Sets the action_list of this Ptsv2paymentsProcessingInformation. - Array of actions (one or more) to be included in the payment to invoke bundled services along with payment. Possible values are one or more of follows: - `DECISION_SKIP`: Use this when you want to skip Decision Manager service(s). - `TOKEN_CREATE`: Use this when you want to create a token from the card/bank data in your payment request. - `CONSUMER_AUTHENTICATION`: Use this when you want to check if a card is enrolled in Payer Authentioncation along with your payment request. - `VALIDATE_CONSUMER_AUTHENTICATION`: Use this after you acquire a Payer Authentioncation result that needs to be included for your payment request. - `AP_INITIATE`: Use this when Alternative Payment Initiate service is requested. - `WATCHLIST_SCREENING` : Use this when you want to call Watchlist Screening service. + Array of actions (one or more) to be included in the payment to invoke bundled services along with payment. Possible values are one or more of follows: - `DECISION_SKIP`: Use this when you want to skip Decision Manager service(s). - `TOKEN_CREATE`: Use this when you want to create a token from the card/bank data in your payment request. - `CONSUMER_AUTHENTICATION`: Use this when you want to check if a card is enrolled in Payer Authentication along with your payment request. - `VALIDATE_CONSUMER_AUTHENTICATION`: Use this after you acquire a Payer Authentication result that needs to be included for your payment request. - `AP_INITIATE`: Use this when Alternative Payment Initiate service is requested. - `WATCHLIST_SCREENING` : Use this when you want to call Watchlist Screening service. :param action_list: The action_list of this Ptsv2paymentsProcessingInformation. :type: list[str] diff --git a/CyberSource/models/ptsv2payments_recipient_information.py b/CyberSource/models/ptsv2payments_recipient_information.py index 7d17ecbc..a2ef73d6 100644 --- a/CyberSource/models/ptsv2payments_recipient_information.py +++ b/CyberSource/models/ptsv2payments_recipient_information.py @@ -34,17 +34,19 @@ class Ptsv2paymentsRecipientInformation(object): 'account_id': 'str', 'last_name': 'str', 'middle_name': 'str', - 'postal_code': 'str' + 'postal_code': 'str', + 'date_of_birth': 'str' } attribute_map = { 'account_id': 'accountId', 'last_name': 'lastName', 'middle_name': 'middleName', - 'postal_code': 'postalCode' + 'postal_code': 'postalCode', + 'date_of_birth': 'dateOfBirth' } - def __init__(self, account_id=None, last_name=None, middle_name=None, postal_code=None): + def __init__(self, account_id=None, last_name=None, middle_name=None, postal_code=None, date_of_birth=None): """ Ptsv2paymentsRecipientInformation - a model defined in Swagger """ @@ -53,6 +55,7 @@ def __init__(self, account_id=None, last_name=None, middle_name=None, postal_cod self._last_name = None self._middle_name = None self._postal_code = None + self._date_of_birth = None if account_id is not None: self.account_id = account_id @@ -62,6 +65,8 @@ def __init__(self, account_id=None, last_name=None, middle_name=None, postal_cod self.middle_name = middle_name if postal_code is not None: self.postal_code = postal_code + if date_of_birth is not None: + self.date_of_birth = date_of_birth @property def account_id(self): @@ -155,6 +160,29 @@ def postal_code(self, postal_code): self._postal_code = postal_code + @property + def date_of_birth(self): + """ + Gets the date_of_birth of this Ptsv2paymentsRecipientInformation. + Recipient’s date of birth. **Format**: `YYYYMMDD`. This field is a `pass-through`, which means that CyberSource ensures that the value is eight numeric characters but otherwise does not verify the value or modify it in any way before sending it to the processor. If the field is not required for the transaction, CyberSource does not forward it to the processor. For more details, see `recipient_date_of_birth` field description in the [Credit Card Services Using the SCMP API Guide.](https://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/) + + :return: The date_of_birth of this Ptsv2paymentsRecipientInformation. + :rtype: str + """ + return self._date_of_birth + + @date_of_birth.setter + def date_of_birth(self, date_of_birth): + """ + Sets the date_of_birth of this Ptsv2paymentsRecipientInformation. + Recipient’s date of birth. **Format**: `YYYYMMDD`. This field is a `pass-through`, which means that CyberSource ensures that the value is eight numeric characters but otherwise does not verify the value or modify it in any way before sending it to the processor. If the field is not required for the transaction, CyberSource does not forward it to the processor. For more details, see `recipient_date_of_birth` field description in the [Credit Card Services Using the SCMP API Guide.](https://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/) + + :param date_of_birth: The date_of_birth of this Ptsv2paymentsRecipientInformation. + :type: str + """ + + self._date_of_birth = date_of_birth + def to_dict(self): """ Returns the model properties as a dict diff --git a/CyberSource/models/tss_v2_transactions_get200_response.py b/CyberSource/models/tss_v2_transactions_get200_response.py index e56ceb85..b00e54b2 100644 --- a/CyberSource/models/tss_v2_transactions_get200_response.py +++ b/CyberSource/models/tss_v2_transactions_get200_response.py @@ -36,6 +36,7 @@ class TssV2TransactionsGet200Response(object): 'reconciliation_id': 'str', 'merchant_id': 'str', 'submit_time_utc': 'str', + 'status': 'str', 'application_information': 'TssV2TransactionsGet200ResponseApplicationInformation', 'buyer_information': 'TssV2TransactionsGet200ResponseBuyerInformation', 'client_reference_information': 'TssV2TransactionsGet200ResponseClientReferenceInformation', @@ -66,6 +67,7 @@ class TssV2TransactionsGet200Response(object): 'reconciliation_id': 'reconciliationId', 'merchant_id': 'merchantId', 'submit_time_utc': 'submitTimeUTC', + 'status': 'status', 'application_information': 'applicationInformation', 'buyer_information': 'buyerInformation', 'client_reference_information': 'clientReferenceInformation', @@ -90,7 +92,7 @@ class TssV2TransactionsGet200Response(object): 'links': '_links' } - def __init__(self, id=None, root_id=None, reconciliation_id=None, merchant_id=None, submit_time_utc=None, application_information=None, buyer_information=None, client_reference_information=None, consumer_authentication_information=None, device_information=None, error_information=None, installment_information=None, fraud_marking_information=None, health_care_information=None, merchant_defined_information=None, merchant_information=None, order_information=None, payment_information=None, payment_insights_information=None, payout_options=None, processing_information=None, processor_information=None, point_of_sale_information=None, risk_information=None, sender_information=None, token_information=None, links=None): + def __init__(self, id=None, root_id=None, reconciliation_id=None, merchant_id=None, submit_time_utc=None, status=None, application_information=None, buyer_information=None, client_reference_information=None, consumer_authentication_information=None, device_information=None, error_information=None, installment_information=None, fraud_marking_information=None, health_care_information=None, merchant_defined_information=None, merchant_information=None, order_information=None, payment_information=None, payment_insights_information=None, payout_options=None, processing_information=None, processor_information=None, point_of_sale_information=None, risk_information=None, sender_information=None, token_information=None, links=None): """ TssV2TransactionsGet200Response - a model defined in Swagger """ @@ -100,6 +102,7 @@ def __init__(self, id=None, root_id=None, reconciliation_id=None, merchant_id=No self._reconciliation_id = None self._merchant_id = None self._submit_time_utc = None + self._status = None self._application_information = None self._buyer_information = None self._client_reference_information = None @@ -133,6 +136,8 @@ def __init__(self, id=None, root_id=None, reconciliation_id=None, merchant_id=No self.merchant_id = merchant_id if submit_time_utc is not None: self.submit_time_utc = submit_time_utc + if status is not None: + self.status = status if application_information is not None: self.application_information = application_information if buyer_information is not None: @@ -293,6 +298,29 @@ def submit_time_utc(self, submit_time_utc): self._submit_time_utc = submit_time_utc + @property + def status(self): + """ + Gets the status of this TssV2TransactionsGet200Response. + The status of the submitted transaction. + + :return: The status of this TssV2TransactionsGet200Response. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this TssV2TransactionsGet200Response. + The status of the submitted transaction. + + :param status: The status of this TssV2TransactionsGet200Response. + :type: str + """ + + self._status = status + @property def application_information(self): """ diff --git a/CyberSource/models/tss_v2_transactions_post201_response.py b/CyberSource/models/tss_v2_transactions_post201_response.py index e076c18c..e7ce3bff 100644 --- a/CyberSource/models/tss_v2_transactions_post201_response.py +++ b/CyberSource/models/tss_v2_transactions_post201_response.py @@ -41,7 +41,6 @@ class TssV2TransactionsPost201Response(object): 'sort': 'str', 'count': 'int', 'total_count': 'int', - 'status': 'str', 'submit_time_utc': 'str', 'embedded': 'TssV2TransactionsPost201ResponseEmbedded', 'links': 'PtsV2IncrementalAuthorizationPatch201ResponseLinks' @@ -58,13 +57,12 @@ class TssV2TransactionsPost201Response(object): 'sort': 'sort', 'count': 'count', 'total_count': 'totalCount', - 'status': 'status', 'submit_time_utc': 'submitTimeUtc', 'embedded': '_embedded', 'links': '_links' } - def __init__(self, search_id=None, save=None, name=None, timezone=None, query=None, offset=None, limit=None, sort=None, count=None, total_count=None, status=None, submit_time_utc=None, embedded=None, links=None): + def __init__(self, search_id=None, save=None, name=None, timezone=None, query=None, offset=None, limit=None, sort=None, count=None, total_count=None, submit_time_utc=None, embedded=None, links=None): """ TssV2TransactionsPost201Response - a model defined in Swagger """ @@ -79,7 +77,6 @@ def __init__(self, search_id=None, save=None, name=None, timezone=None, query=No self._sort = None self._count = None self._total_count = None - self._status = None self._submit_time_utc = None self._embedded = None self._links = None @@ -104,8 +101,6 @@ def __init__(self, search_id=None, save=None, name=None, timezone=None, query=No self.count = count if total_count is not None: self.total_count = total_count - if status is not None: - self.status = status if submit_time_utc is not None: self.submit_time_utc = submit_time_utc if embedded is not None: @@ -343,29 +338,6 @@ def total_count(self, total_count): self._total_count = total_count - @property - def status(self): - """ - Gets the status of this TssV2TransactionsPost201Response. - The status of the submitted transaction. - - :return: The status of this TssV2TransactionsPost201Response. - :rtype: str - """ - return self._status - - @status.setter - def status(self, status): - """ - Sets the status of this TssV2TransactionsPost201Response. - The status of the submitted transaction. - - :param status: The status of this TssV2TransactionsPost201Response. - :type: str - """ - - self._status = status - @property def submit_time_utc(self): """ diff --git a/CyberSource/models/tss_v2_transactions_post201_response__embedded_application_information_applications.py b/CyberSource/models/tss_v2_transactions_post201_response__embedded_application_information_applications.py index 53fc949e..c316ef78 100644 --- a/CyberSource/models/tss_v2_transactions_post201_response__embedded_application_information_applications.py +++ b/CyberSource/models/tss_v2_transactions_post201_response__embedded_application_information_applications.py @@ -33,6 +33,8 @@ class TssV2TransactionsPost201ResponseEmbeddedApplicationInformationApplications swagger_types = { 'name': 'str', 'reason_code': 'str', + 'status': 'str', + 'reason': 'str', 'r_code': 'str', 'r_flag': 'str', 'reconciliation_id': 'str', @@ -43,6 +45,8 @@ class TssV2TransactionsPost201ResponseEmbeddedApplicationInformationApplications attribute_map = { 'name': 'name', 'reason_code': 'reasonCode', + 'status': 'status', + 'reason': 'reason', 'r_code': 'rCode', 'r_flag': 'rFlag', 'reconciliation_id': 'reconciliationId', @@ -50,13 +54,15 @@ class TssV2TransactionsPost201ResponseEmbeddedApplicationInformationApplications 'return_code': 'returnCode' } - def __init__(self, name=None, reason_code=None, r_code=None, r_flag=None, reconciliation_id=None, r_message=None, return_code=None): + def __init__(self, name=None, reason_code=None, status=None, reason=None, r_code=None, r_flag=None, reconciliation_id=None, r_message=None, return_code=None): """ TssV2TransactionsPost201ResponseEmbeddedApplicationInformationApplications - a model defined in Swagger """ self._name = None self._reason_code = None + self._status = None + self._reason = None self._r_code = None self._r_flag = None self._reconciliation_id = None @@ -67,6 +73,10 @@ def __init__(self, name=None, reason_code=None, r_code=None, r_flag=None, reconc self.name = name if reason_code is not None: self.reason_code = reason_code + if status is not None: + self.status = status + if reason is not None: + self.reason = reason if r_code is not None: self.r_code = r_code if r_flag is not None: @@ -124,6 +134,52 @@ def reason_code(self, reason_code): self._reason_code = reason_code + @property + def status(self): + """ + Gets the status of this TssV2TransactionsPost201ResponseEmbeddedApplicationInformationApplications. + The status of the submitted transaction. Note: This field may not be returned for all transactions. + + :return: The status of this TssV2TransactionsPost201ResponseEmbeddedApplicationInformationApplications. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this TssV2TransactionsPost201ResponseEmbeddedApplicationInformationApplications. + The status of the submitted transaction. Note: This field may not be returned for all transactions. + + :param status: The status of this TssV2TransactionsPost201ResponseEmbeddedApplicationInformationApplications. + :type: str + """ + + self._status = status + + @property + def reason(self): + """ + Gets the reason of this TssV2TransactionsPost201ResponseEmbeddedApplicationInformationApplications. + Description of why a request failed. Note: This field may not be returned for all transactions. + + :return: The reason of this TssV2TransactionsPost201ResponseEmbeddedApplicationInformationApplications. + :rtype: str + """ + return self._reason + + @reason.setter + def reason(self, reason): + """ + Sets the reason of this TssV2TransactionsPost201ResponseEmbeddedApplicationInformationApplications. + Description of why a request failed. Note: This field may not be returned for all transactions. + + :param reason: The reason of this TssV2TransactionsPost201ResponseEmbeddedApplicationInformationApplications. + :type: str + """ + + self._reason = reason + @property def r_code(self): """ diff --git a/CyberSource/models/tss_v2_transactions_post201_response__embedded_error_information.py b/CyberSource/models/tss_v2_transactions_post201_response__embedded_error_information.py new file mode 100644 index 00000000..d54c3b5e --- /dev/null +++ b/CyberSource/models/tss_v2_transactions_post201_response__embedded_error_information.py @@ -0,0 +1,125 @@ +# coding: utf-8 + +""" + CyberSource Merged Spec + + All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class TssV2TransactionsPost201ResponseEmbeddedErrorInformation(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'reason': 'str' + } + + attribute_map = { + 'reason': 'reason' + } + + def __init__(self, reason=None): + """ + TssV2TransactionsPost201ResponseEmbeddedErrorInformation - a model defined in Swagger + """ + + self._reason = None + + if reason is not None: + self.reason = reason + + @property + def reason(self): + """ + Gets the reason of this TssV2TransactionsPost201ResponseEmbeddedErrorInformation. + Description of why a request failed. Note: This field may not be returned for all transactions. + + :return: The reason of this TssV2TransactionsPost201ResponseEmbeddedErrorInformation. + :rtype: str + """ + return self._reason + + @reason.setter + def reason(self, reason): + """ + Sets the reason of this TssV2TransactionsPost201ResponseEmbeddedErrorInformation. + Description of why a request failed. Note: This field may not be returned for all transactions. + + :param reason: The reason of this TssV2TransactionsPost201ResponseEmbeddedErrorInformation. + :type: str + """ + + self._reason = reason + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, TssV2TransactionsPost201ResponseEmbeddedErrorInformation): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/CyberSource/models/tss_v2_transactions_post201_response__embedded_transaction_summaries.py b/CyberSource/models/tss_v2_transactions_post201_response__embedded_transaction_summaries.py index 0da203b6..2022a13c 100644 --- a/CyberSource/models/tss_v2_transactions_post201_response__embedded_transaction_summaries.py +++ b/CyberSource/models/tss_v2_transactions_post201_response__embedded_transaction_summaries.py @@ -34,11 +34,13 @@ class TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries(object): 'id': 'str', 'submit_time_utc': 'str', 'merchant_id': 'str', + 'status': 'str', 'application_information': 'TssV2TransactionsPost201ResponseEmbeddedApplicationInformation', 'buyer_information': 'TssV2TransactionsPost201ResponseEmbeddedBuyerInformation', 'client_reference_information': 'TssV2TransactionsPost201ResponseEmbeddedClientReferenceInformation', 'consumer_authentication_information': 'TssV2TransactionsPost201ResponseEmbeddedConsumerAuthenticationInformation', 'device_information': 'Riskv1authenticationresultsDeviceInformation', + 'error_information': 'TssV2TransactionsPost201ResponseEmbeddedErrorInformation', 'fraud_marking_information': 'TssV2TransactionsGet200ResponseFraudMarkingInformation', 'merchant_defined_information': 'list[Ptsv2paymentsMerchantDefinedInformation]', 'merchant_information': 'TssV2TransactionsPost201ResponseEmbeddedMerchantInformation', @@ -55,11 +57,13 @@ class TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries(object): 'id': 'id', 'submit_time_utc': 'submitTimeUtc', 'merchant_id': 'merchantId', + 'status': 'status', 'application_information': 'applicationInformation', 'buyer_information': 'buyerInformation', 'client_reference_information': 'clientReferenceInformation', 'consumer_authentication_information': 'consumerAuthenticationInformation', 'device_information': 'deviceInformation', + 'error_information': 'errorInformation', 'fraud_marking_information': 'fraudMarkingInformation', 'merchant_defined_information': 'merchantDefinedInformation', 'merchant_information': 'merchantInformation', @@ -72,7 +76,7 @@ class TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries(object): 'links': '_links' } - def __init__(self, id=None, submit_time_utc=None, merchant_id=None, application_information=None, buyer_information=None, client_reference_information=None, consumer_authentication_information=None, device_information=None, fraud_marking_information=None, merchant_defined_information=None, merchant_information=None, order_information=None, payment_information=None, processing_information=None, processor_information=None, point_of_sale_information=None, risk_information=None, links=None): + def __init__(self, id=None, submit_time_utc=None, merchant_id=None, status=None, application_information=None, buyer_information=None, client_reference_information=None, consumer_authentication_information=None, device_information=None, error_information=None, fraud_marking_information=None, merchant_defined_information=None, merchant_information=None, order_information=None, payment_information=None, processing_information=None, processor_information=None, point_of_sale_information=None, risk_information=None, links=None): """ TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries - a model defined in Swagger """ @@ -80,11 +84,13 @@ def __init__(self, id=None, submit_time_utc=None, merchant_id=None, application_ self._id = None self._submit_time_utc = None self._merchant_id = None + self._status = None self._application_information = None self._buyer_information = None self._client_reference_information = None self._consumer_authentication_information = None self._device_information = None + self._error_information = None self._fraud_marking_information = None self._merchant_defined_information = None self._merchant_information = None @@ -102,6 +108,8 @@ def __init__(self, id=None, submit_time_utc=None, merchant_id=None, application_ self.submit_time_utc = submit_time_utc if merchant_id is not None: self.merchant_id = merchant_id + if status is not None: + self.status = status if application_information is not None: self.application_information = application_information if buyer_information is not None: @@ -112,6 +120,8 @@ def __init__(self, id=None, submit_time_utc=None, merchant_id=None, application_ self.consumer_authentication_information = consumer_authentication_information if device_information is not None: self.device_information = device_information + if error_information is not None: + self.error_information = error_information if fraud_marking_information is not None: self.fraud_marking_information = fraud_marking_information if merchant_defined_information is not None: @@ -202,6 +212,29 @@ def merchant_id(self, merchant_id): self._merchant_id = merchant_id + @property + def status(self): + """ + Gets the status of this TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries. + The status of the submitted transaction. Note: This field may not be returned for all transactions. + + :return: The status of this TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries. + The status of the submitted transaction. Note: This field may not be returned for all transactions. + + :param status: The status of this TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries. + :type: str + """ + + self._status = status + @property def application_information(self): """ @@ -307,6 +340,27 @@ def device_information(self, device_information): self._device_information = device_information + @property + def error_information(self): + """ + Gets the error_information of this TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries. + + :return: The error_information of this TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries. + :rtype: TssV2TransactionsPost201ResponseEmbeddedErrorInformation + """ + return self._error_information + + @error_information.setter + def error_information(self, error_information): + """ + Sets the error_information of this TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries. + + :param error_information: The error_information of this TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries. + :type: TssV2TransactionsPost201ResponseEmbeddedErrorInformation + """ + + self._error_information = error_information + @property def fraud_marking_information(self): """ diff --git a/docs/PlansApi.md b/docs/PlansApi.md index 106f7f2d..06f78e1a 100644 --- a/docs/PlansApi.md +++ b/docs/PlansApi.md @@ -15,7 +15,7 @@ Method | HTTP request | Description # **activate_plan** -> InlineResponse2004 activate_plan(id, activate_plan_request=activate_plan_request) +> InlineResponse2004 activate_plan(id) Activate a Plan @@ -32,11 +32,10 @@ from pprint import pprint # create an instance of the API class api_instance = CyberSource.PlansApi() id = 'id_example' # str | Plan Id -activate_plan_request = NULL # object | (optional) try: # Activate a Plan - api_response = api_instance.activate_plan(id, activate_plan_request=activate_plan_request) + api_response = api_instance.activate_plan(id) pprint(api_response) except ApiException as e: print("Exception when calling PlansApi->activate_plan: %s\n" % e) @@ -47,7 +46,6 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **id** | **str**| Plan Id | - **activate_plan_request** | **object**| | [optional] ### Return type @@ -60,7 +58,7 @@ No authorization required ### HTTP request headers - **Content-Type**: application/json;charset=utf-8 - - **Accept**: application/hal+json;charset=utf-8 + - **Accept**: application/json;charset=utf-8 [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -108,12 +106,12 @@ No authorization required ### HTTP request headers - **Content-Type**: application/json;charset=utf-8 - - **Accept**: application/hal+json;charset=utf-8 + - **Accept**: application/json;charset=utf-8 [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **deactivate_plan** -> InlineResponse2004 deactivate_plan(id, deactivate_plan_request=deactivate_plan_request) +> InlineResponse2004 deactivate_plan(id) Deactivate a Plan @@ -130,11 +128,10 @@ from pprint import pprint # create an instance of the API class api_instance = CyberSource.PlansApi() id = 'id_example' # str | Plan Id -deactivate_plan_request = NULL # object | (optional) try: # Deactivate a Plan - api_response = api_instance.deactivate_plan(id, deactivate_plan_request=deactivate_plan_request) + api_response = api_instance.deactivate_plan(id) pprint(api_response) except ApiException as e: print("Exception when calling PlansApi->deactivate_plan: %s\n" % e) @@ -145,7 +142,6 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **id** | **str**| Plan Id | - **deactivate_plan_request** | **object**| | [optional] ### Return type @@ -158,7 +154,7 @@ No authorization required ### HTTP request headers - **Content-Type**: application/json;charset=utf-8 - - **Accept**: application/hal+json;charset=utf-8 + - **Accept**: application/json;charset=utf-8 [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -206,7 +202,7 @@ No authorization required ### HTTP request headers - **Content-Type**: application/json;charset=utf-8 - - **Accept**: application/hal+json;charset=utf-8 + - **Accept**: application/json;charset=utf-8 [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -254,7 +250,7 @@ No authorization required ### HTTP request headers - **Content-Type**: application/json;charset=utf-8 - - **Accept**: application/hal+json;charset=utf-8 + - **Accept**: application/json;charset=utf-8 [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -298,7 +294,7 @@ No authorization required ### HTTP request headers - **Content-Type**: application/json;charset=utf-8 - - **Accept**: application/hal+json;charset=utf-8 + - **Accept**: application/json;charset=utf-8 [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -354,7 +350,7 @@ No authorization required ### HTTP request headers - **Content-Type**: application/json;charset=utf-8 - - **Accept**: application/hal+json;charset=utf-8 + - **Accept**: application/json;charset=utf-8 [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -404,7 +400,7 @@ No authorization required ### HTTP request headers - **Content-Type**: application/json;charset=utf-8 - - **Accept**: application/hal+json;charset=utf-8 + - **Accept**: application/json;charset=utf-8 [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/docs/PtsV2PaymentsPost201Response.md b/docs/PtsV2PaymentsPost201Response.md index 9165c884..45578341 100644 --- a/docs/PtsV2PaymentsPost201Response.md +++ b/docs/PtsV2PaymentsPost201Response.md @@ -23,6 +23,7 @@ Name | Type | Description | Notes **buyer_information** | [**PtsV2PaymentsPost201ResponseBuyerInformation**](PtsV2PaymentsPost201ResponseBuyerInformation.md) | | [optional] **risk_information** | [**PtsV2PaymentsPost201ResponseRiskInformation**](PtsV2PaymentsPost201ResponseRiskInformation.md) | | [optional] **consumer_authentication_information** | [**PtsV2PaymentsPost201ResponseConsumerAuthenticationInformation**](PtsV2PaymentsPost201ResponseConsumerAuthenticationInformation.md) | | [optional] +**embedded_actions** | [**PtsV2PaymentsPost201ResponseEmbeddedActions**](PtsV2PaymentsPost201ResponseEmbeddedActions.md) | | [optional] **watchlist_screening_information** | [**PtsV2PaymentsPost201ResponseWatchlistScreeningInformation**](PtsV2PaymentsPost201ResponseWatchlistScreeningInformation.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/PtsV2PaymentsPost201ResponseEmbeddedActions.md b/docs/PtsV2PaymentsPost201ResponseEmbeddedActions.md new file mode 100644 index 00000000..525371b9 --- /dev/null +++ b/docs/PtsV2PaymentsPost201ResponseEmbeddedActions.md @@ -0,0 +1,14 @@ +# PtsV2PaymentsPost201ResponseEmbeddedActions + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**capture** | [**PtsV2PaymentsPost201ResponseEmbeddedActionsCAPTURE**](PtsV2PaymentsPost201ResponseEmbeddedActionsCAPTURE.md) | | [optional] +**decision** | [**PtsV2PaymentsPost201ResponseEmbeddedActionsDECISION**](PtsV2PaymentsPost201ResponseEmbeddedActionsDECISION.md) | | [optional] +**consumer_authentication** | [**PtsV2PaymentsPost201ResponseEmbeddedActionsCONSUMERAUTHENTICATION**](PtsV2PaymentsPost201ResponseEmbeddedActionsCONSUMERAUTHENTICATION.md) | | [optional] +**validate_consumer_authentication** | [**PtsV2PaymentsPost201ResponseEmbeddedActionsCONSUMERAUTHENTICATION**](PtsV2PaymentsPost201ResponseEmbeddedActionsCONSUMERAUTHENTICATION.md) | | [optional] +**watchlist_screening** | [**PtsV2PaymentsPost201ResponseEmbeddedActionsWATCHLISTSCREENING**](PtsV2PaymentsPost201ResponseEmbeddedActionsWATCHLISTSCREENING.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PtsV2PaymentsPost201ResponseEmbeddedActionsCAPTURE.md b/docs/PtsV2PaymentsPost201ResponseEmbeddedActionsCAPTURE.md new file mode 100644 index 00000000..6f1f5299 --- /dev/null +++ b/docs/PtsV2PaymentsPost201ResponseEmbeddedActionsCAPTURE.md @@ -0,0 +1,12 @@ +# PtsV2PaymentsPost201ResponseEmbeddedActionsCAPTURE + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**status** | **str** | The status of the submitted transaction. Possible values: - PENDING | [optional] +**reason** | **str** | The reason of the status. Possible values: - MISSING_FIELD - INVALID_DATA - DUPLICATE_REQUEST - INVALID_MERCHANT_CONFIGURATION - EXCEEDS_AUTH_AMOUNT - AUTH_ALREADY_REVERSED - TRANSACTION_ALREADY_SETTLED - INVALID_AMOUNT - MISSING_AUTH - TRANSACTION_ALREADY_REVERSED_OR_SETTLED - NOT_SUPPORTED | [optional] +**message** | **str** | The detail message related to the status and reason listed above. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PtsV2PaymentsPost201ResponseEmbeddedActionsCONSUMERAUTHENTICATION.md b/docs/PtsV2PaymentsPost201ResponseEmbeddedActionsCONSUMERAUTHENTICATION.md new file mode 100644 index 00000000..fd73743b --- /dev/null +++ b/docs/PtsV2PaymentsPost201ResponseEmbeddedActionsCONSUMERAUTHENTICATION.md @@ -0,0 +1,12 @@ +# PtsV2PaymentsPost201ResponseEmbeddedActionsCONSUMERAUTHENTICATION + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**status** | **str** | The status for payerAuthentication 201 enroll and validate calls. Possible values are: - `AUTHENTICATION_SUCCESSFUL` - `PENDING_AUTHENTICATION` - `INVALID_REQUEST` - `AUTHENTICATION_FAILED` | [optional] +**reason** | **str** | The reason of the status. Possible values are: - `INVALID_MERCHANT_CONFIGURATION` - `CONSUMER_AUTHENTICATION_REQUIRED` - `CONSUMER_AUTHENTICATION_FAILED` - `AUTHENTICATION_FAILED` | [optional] +**message** | **str** | The message describing the reason of the status. Value is: - Encountered a Payer Authentication problem. Payer could not be authenticated. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PtsV2PaymentsPost201ResponseEmbeddedActionsDECISION.md b/docs/PtsV2PaymentsPost201ResponseEmbeddedActionsDECISION.md new file mode 100644 index 00000000..079a8d33 --- /dev/null +++ b/docs/PtsV2PaymentsPost201ResponseEmbeddedActionsDECISION.md @@ -0,0 +1,12 @@ +# PtsV2PaymentsPost201ResponseEmbeddedActionsDECISION + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**status** | **str** | The status of the submitted transaction. Possible values: - `ACCEPTED` - `REJECTED` - `PENDING_REVIEW` - `DECLINED` - `PENDING_AUTHENTICATION` - `INVALID_REQUEST` - `AUTHENTICATION_FAILED` - `CHALLENGE` | [optional] +**reason** | **str** | The reason of the status. Possible values: - `EXPIRED_CARD` - `SCORE_EXCEEDS_THRESHOLD` - `DECISION_PROFILE_REVIEW` - `DECISION_PROFILE_REJECT` - `CONSUMER_AUTHENTICATION_REQUIRED` - `INVALID_MERCHANT_CONFIGURATION` - `CONSUMER_AUTHENTICATION_FAILED` - `DECISION_PROFILE_CHALLENGE` - `CUSTOMER_WATCHLIST_MATCH` - `ADDRESS_COUNTRY_WATCHLIST_MATCH` - `EMAIL_COUNTRY_WATCHLIST_MATCH` - `IP_COUNTRY_WATCHLIST_MATCH` | [optional] +**message** | **str** | The detail message related to the status and reason listed above. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PtsV2PaymentsPost201ResponseEmbeddedActionsWATCHLISTSCREENING.md b/docs/PtsV2PaymentsPost201ResponseEmbeddedActionsWATCHLISTSCREENING.md new file mode 100644 index 00000000..700ec0a9 --- /dev/null +++ b/docs/PtsV2PaymentsPost201ResponseEmbeddedActionsWATCHLISTSCREENING.md @@ -0,0 +1,12 @@ +# PtsV2PaymentsPost201ResponseEmbeddedActionsWATCHLISTSCREENING + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**status** | **str** | The status for the call can be: - COMPLETED - INVALID_REQUEST - DECLINED | [optional] +**reason** | **str** | The reason of the status. Value can be - `CUSTOMER_WATCHLIST_MATCH` - `ADDRESS_COUNTRY_WATCHLIST_MATCH` - `EMAIL_COUNTRY_WATCHLIST_MATCH` - `IP_COUNTRY_WATCHLIST_MATCH` - `INVALID_MERCHANT_CONFIGURATION` | [optional] +**message** | **str** | The message describing the reason of the status. Value can be - The customer matched the Denied Parties List - The Export bill_country/ship_country match - Export email_country match - Export hostname_country/ip_country match | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Ptsv2paymentsProcessingInformation.md b/docs/Ptsv2paymentsProcessingInformation.md index 1a742266..3655e988 100644 --- a/docs/Ptsv2paymentsProcessingInformation.md +++ b/docs/Ptsv2paymentsProcessingInformation.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**action_list** | **list[str]** | Array of actions (one or more) to be included in the payment to invoke bundled services along with payment. Possible values are one or more of follows: - `DECISION_SKIP`: Use this when you want to skip Decision Manager service(s). - `TOKEN_CREATE`: Use this when you want to create a token from the card/bank data in your payment request. - `CONSUMER_AUTHENTICATION`: Use this when you want to check if a card is enrolled in Payer Authentioncation along with your payment request. - `VALIDATE_CONSUMER_AUTHENTICATION`: Use this after you acquire a Payer Authentioncation result that needs to be included for your payment request. - `AP_INITIATE`: Use this when Alternative Payment Initiate service is requested. - `WATCHLIST_SCREENING` : Use this when you want to call Watchlist Screening service. | [optional] +**action_list** | **list[str]** | Array of actions (one or more) to be included in the payment to invoke bundled services along with payment. Possible values are one or more of follows: - `DECISION_SKIP`: Use this when you want to skip Decision Manager service(s). - `TOKEN_CREATE`: Use this when you want to create a token from the card/bank data in your payment request. - `CONSUMER_AUTHENTICATION`: Use this when you want to check if a card is enrolled in Payer Authentication along with your payment request. - `VALIDATE_CONSUMER_AUTHENTICATION`: Use this after you acquire a Payer Authentication result that needs to be included for your payment request. - `AP_INITIATE`: Use this when Alternative Payment Initiate service is requested. - `WATCHLIST_SCREENING` : Use this when you want to call Watchlist Screening service. | [optional] **enable_escrow_option** | **bool** | Indicates whether to use the customer’s escrow agreement. Possible values: - `true`: yes, use the customer’s escrow agreement. - `false`: no, do not use the customer’s escrow agreement. | [optional] **action_token_types** | **list[str]** | CyberSource tokens types you are performing a create on. If not supplied the default token type for the merchants token vault will be used. Valid values: - customer - paymentInstrument - instrumentIdentifier - shippingAddress | [optional] **bin_source** | **str** | Bin Source File Identifier. Possible values: - itmx - rupay | [optional] diff --git a/docs/Ptsv2paymentsRecipientInformation.md b/docs/Ptsv2paymentsRecipientInformation.md index 9a6481bb..20bbd736 100644 --- a/docs/Ptsv2paymentsRecipientInformation.md +++ b/docs/Ptsv2paymentsRecipientInformation.md @@ -7,6 +7,7 @@ Name | Type | Description | Notes **last_name** | **str** | Recipient’s last name. This field is a _passthrough_, which means that CyberSource does not verify the value or modify it in any way before sending it to the processor. If the field is not required for the transaction, CyberSource does not forward it to the processor. For details, see the `recipient_lastname` field description in the [Credit Card Services Using the SCMP API Guide.](https://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/) | [optional] **middle_name** | **str** | Recipient’s middle name. This field is a _passthrough_, which means that CyberSource does not verify the value or modify it in any way before sending it to the processor. If the field is not required for the transaction, CyberSource does not forward it to the processor. For details, see the `recipient_middlename` field description in the [Credit Card Services Using the SCMP API Guide.](https://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/) | [optional] **postal_code** | **str** | Partial postal code for the recipient’s address. For example, if the postal code is **NN5 7SG**, the value for this field should be the first part of the postal code: **NN5**. This field is a _pass-through_, which means that CyberSource does not verify the value or modify it in any way before sending it to the processor. If the field is not required for the transaction, CyberSource does not forward it to the processor. For details, see the `recipient_postal_code` field description in [Credit Card Services Using the SCMP API.](https://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/) | [optional] +**date_of_birth** | **str** | Recipient’s date of birth. **Format**: `YYYYMMDD`. This field is a `pass-through`, which means that CyberSource ensures that the value is eight numeric characters but otherwise does not verify the value or modify it in any way before sending it to the processor. If the field is not required for the transaction, CyberSource does not forward it to the processor. For more details, see `recipient_date_of_birth` field description in the [Credit Card Services Using the SCMP API Guide.](https://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/) | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/SubscriptionsApi.md b/docs/SubscriptionsApi.md index 6d35cbfd..5cf11b1e 100644 --- a/docs/SubscriptionsApi.md +++ b/docs/SubscriptionsApi.md @@ -15,7 +15,7 @@ Method | HTTP request | Description # **activate_subscription** -> InlineResponse2009 activate_subscription(id, activate_subscription_request=activate_subscription_request) +> InlineResponse2009 activate_subscription(id) Activate a Subscription @@ -32,11 +32,10 @@ from pprint import pprint # create an instance of the API class api_instance = CyberSource.SubscriptionsApi() id = 'id_example' # str | Subscription Id -activate_subscription_request = NULL # object | (optional) try: # Activate a Subscription - api_response = api_instance.activate_subscription(id, activate_subscription_request=activate_subscription_request) + api_response = api_instance.activate_subscription(id) pprint(api_response) except ApiException as e: print("Exception when calling SubscriptionsApi->activate_subscription: %s\n" % e) @@ -47,7 +46,6 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **id** | **str**| Subscription Id | - **activate_subscription_request** | **object**| | [optional] ### Return type @@ -60,12 +58,12 @@ No authorization required ### HTTP request headers - **Content-Type**: application/json;charset=utf-8 - - **Accept**: application/hal+json;charset=utf-8 + - **Accept**: application/json;charset=utf-8 [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **cancel_subscription** -> InlineResponse202 cancel_subscription(id, cancel_subscription_request=cancel_subscription_request) +> InlineResponse202 cancel_subscription(id) Cancel a Subscription @@ -82,11 +80,10 @@ from pprint import pprint # create an instance of the API class api_instance = CyberSource.SubscriptionsApi() id = 'id_example' # str | Subscription Id -cancel_subscription_request = NULL # object | (optional) try: # Cancel a Subscription - api_response = api_instance.cancel_subscription(id, cancel_subscription_request=cancel_subscription_request) + api_response = api_instance.cancel_subscription(id) pprint(api_response) except ApiException as e: print("Exception when calling SubscriptionsApi->cancel_subscription: %s\n" % e) @@ -97,7 +94,6 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **id** | **str**| Subscription Id | - **cancel_subscription_request** | **object**| | [optional] ### Return type @@ -110,7 +106,7 @@ No authorization required ### HTTP request headers - **Content-Type**: application/json;charset=utf-8 - - **Accept**: application/hal+json;charset=utf-8 + - **Accept**: application/json;charset=utf-8 [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -158,7 +154,7 @@ No authorization required ### HTTP request headers - **Content-Type**: application/json;charset=utf-8 - - **Accept**: application/hal+json;charset=utf-8 + - **Accept**: application/json;charset=utf-8 [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -212,7 +208,7 @@ No authorization required ### HTTP request headers - **Content-Type**: application/json;charset=utf-8 - - **Accept**: application/hal+json;charset=utf-8 + - **Accept**: application/json;charset=utf-8 [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -260,7 +256,7 @@ No authorization required ### HTTP request headers - **Content-Type**: application/json;charset=utf-8 - - **Accept**: application/hal+json;charset=utf-8 + - **Accept**: application/json;charset=utf-8 [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -304,12 +300,12 @@ No authorization required ### HTTP request headers - **Content-Type**: application/json;charset=utf-8 - - **Accept**: application/hal+json;charset=utf-8 + - **Accept**: application/json;charset=utf-8 [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **suspend_subscription** -> InlineResponse2021 suspend_subscription(id, suspend_subscription_request=suspend_subscription_request) +> InlineResponse2021 suspend_subscription(id) Suspend a Subscription @@ -326,11 +322,10 @@ from pprint import pprint # create an instance of the API class api_instance = CyberSource.SubscriptionsApi() id = 'id_example' # str | Subscription Id -suspend_subscription_request = NULL # object | (optional) try: # Suspend a Subscription - api_response = api_instance.suspend_subscription(id, suspend_subscription_request=suspend_subscription_request) + api_response = api_instance.suspend_subscription(id) pprint(api_response) except ApiException as e: print("Exception when calling SubscriptionsApi->suspend_subscription: %s\n" % e) @@ -341,7 +336,6 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **id** | **str**| Subscription Id | - **suspend_subscription_request** | **object**| | [optional] ### Return type @@ -354,7 +348,7 @@ No authorization required ### HTTP request headers - **Content-Type**: application/json;charset=utf-8 - - **Accept**: application/hal+json;charset=utf-8 + - **Accept**: application/json;charset=utf-8 [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -404,7 +398,7 @@ No authorization required ### HTTP request headers - **Content-Type**: application/json;charset=utf-8 - - **Accept**: application/hal+json;charset=utf-8 + - **Accept**: application/json;charset=utf-8 [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/docs/TssV2TransactionsGet200Response.md b/docs/TssV2TransactionsGet200Response.md index 636e4e85..8466a46a 100644 --- a/docs/TssV2TransactionsGet200Response.md +++ b/docs/TssV2TransactionsGet200Response.md @@ -8,6 +8,7 @@ Name | Type | Description | Notes **reconciliation_id** | **str** | Reference number for the transaction. Depending on how your Cybersource account is configured, this value could either be provided in the API request or generated by CyberSource. The actual value used in the request to the processor is provided back to you by Cybersource in the response. | [optional] **merchant_id** | **str** | Your CyberSource merchant ID. | [optional] **submit_time_utc** | **str** | Time of request in UTC. Format: `YYYY-MM-DDThh:mm:ssZ` **Example** `2016-08-11T22:47:57Z` equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The `T` separates the date and the time. The `Z` indicates UTC. Returned by Cybersource for all services. | [optional] +**status** | **str** | The status of the submitted transaction. | [optional] **application_information** | [**TssV2TransactionsGet200ResponseApplicationInformation**](TssV2TransactionsGet200ResponseApplicationInformation.md) | | [optional] **buyer_information** | [**TssV2TransactionsGet200ResponseBuyerInformation**](TssV2TransactionsGet200ResponseBuyerInformation.md) | | [optional] **client_reference_information** | [**TssV2TransactionsGet200ResponseClientReferenceInformation**](TssV2TransactionsGet200ResponseClientReferenceInformation.md) | | [optional] diff --git a/docs/TssV2TransactionsPost201Response.md b/docs/TssV2TransactionsPost201Response.md index 2e5e92fa..b5647484 100644 --- a/docs/TssV2TransactionsPost201Response.md +++ b/docs/TssV2TransactionsPost201Response.md @@ -13,7 +13,6 @@ Name | Type | Description | Notes **sort** | **str** | A comma separated list of the following form: `submitTimeUtc:desc` | [optional] **count** | **int** | Results for this page, this could be below the limit. | [optional] **total_count** | **int** | Total number of results. | [optional] -**status** | **str** | The status of the submitted transaction. | [optional] **submit_time_utc** | **str** | Time of request in UTC. Format: `YYYY-MM-DDThh:mm:ssZ` **Example** `2016-08-11T22:47:57Z` equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The `T` separates the date and the time. The `Z` indicates UTC. Returned by Cybersource for all services. | [optional] **embedded** | [**TssV2TransactionsPost201ResponseEmbedded**](TssV2TransactionsPost201ResponseEmbedded.md) | | [optional] **links** | [**PtsV2IncrementalAuthorizationPatch201ResponseLinks**](PtsV2IncrementalAuthorizationPatch201ResponseLinks.md) | | [optional] diff --git a/docs/TssV2TransactionsPost201ResponseEmbeddedApplicationInformationApplications.md b/docs/TssV2TransactionsPost201ResponseEmbeddedApplicationInformationApplications.md index 7a0b1248..d3bb28fd 100644 --- a/docs/TssV2TransactionsPost201ResponseEmbeddedApplicationInformationApplications.md +++ b/docs/TssV2TransactionsPost201ResponseEmbeddedApplicationInformationApplications.md @@ -5,6 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **str** | The name of the CyberSource transaction type (such as CC settlement or CC authorization) that the merchant wants to process in a transaction request. More than one transaction type can included in a transaction request. Each transaction type separately returns their own status, reasonCode, rCode, and rFlag messages. | [optional] **reason_code** | **str** | 3-digit reason code that indicates why the customer profile payment succeeded or failed. | [optional] +**status** | **str** | The status of the submitted transaction. Note: This field may not be returned for all transactions. | [optional] +**reason** | **str** | Description of why a request failed. Note: This field may not be returned for all transactions. | [optional] **r_code** | **str** | Indicates whether the service request was successful. Possible values: - `-1`: An error occurred. - `0`: The request was declined. - `1`: The request was successful. | [optional] **r_flag** | **str** | One-word description of the result of the application. | [optional] **reconciliation_id** | **str** | Reference number that you use to reconcile your CyberSource reports with your processor reports. | [optional] diff --git a/docs/TssV2TransactionsPost201ResponseEmbeddedErrorInformation.md b/docs/TssV2TransactionsPost201ResponseEmbeddedErrorInformation.md new file mode 100644 index 00000000..985519f9 --- /dev/null +++ b/docs/TssV2TransactionsPost201ResponseEmbeddedErrorInformation.md @@ -0,0 +1,10 @@ +# TssV2TransactionsPost201ResponseEmbeddedErrorInformation + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**reason** | **str** | Description of why a request failed. Note: This field may not be returned for all transactions. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries.md b/docs/TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries.md index e22052b0..8184058a 100644 --- a/docs/TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries.md +++ b/docs/TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries.md @@ -6,11 +6,13 @@ Name | Type | Description | Notes **id** | **str** | An unique identification number generated by Cybersource to identify the submitted request. Returned by all services. It is also appended to the endpoint of the resource. On incremental authorizations, this value with be the same as the identification number returned in the original authorization response. | [optional] **submit_time_utc** | **str** | Time of request in UTC. Format: `YYYY-MM-DDThh:mm:ssZ` **Example** `2016-08-11T22:47:57Z` equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The `T` separates the date and the time. The `Z` indicates UTC. Returned by Cybersource for all services. | [optional] **merchant_id** | **str** | Your CyberSource merchant ID. | [optional] +**status** | **str** | The status of the submitted transaction. Note: This field may not be returned for all transactions. | [optional] **application_information** | [**TssV2TransactionsPost201ResponseEmbeddedApplicationInformation**](TssV2TransactionsPost201ResponseEmbeddedApplicationInformation.md) | | [optional] **buyer_information** | [**TssV2TransactionsPost201ResponseEmbeddedBuyerInformation**](TssV2TransactionsPost201ResponseEmbeddedBuyerInformation.md) | | [optional] **client_reference_information** | [**TssV2TransactionsPost201ResponseEmbeddedClientReferenceInformation**](TssV2TransactionsPost201ResponseEmbeddedClientReferenceInformation.md) | | [optional] **consumer_authentication_information** | [**TssV2TransactionsPost201ResponseEmbeddedConsumerAuthenticationInformation**](TssV2TransactionsPost201ResponseEmbeddedConsumerAuthenticationInformation.md) | | [optional] **device_information** | [**Riskv1authenticationresultsDeviceInformation**](Riskv1authenticationresultsDeviceInformation.md) | | [optional] +**error_information** | [**TssV2TransactionsPost201ResponseEmbeddedErrorInformation**](TssV2TransactionsPost201ResponseEmbeddedErrorInformation.md) | | [optional] **fraud_marking_information** | [**TssV2TransactionsGet200ResponseFraudMarkingInformation**](TssV2TransactionsGet200ResponseFraudMarkingInformation.md) | | [optional] **merchant_defined_information** | [**list[Ptsv2paymentsMerchantDefinedInformation]**](Ptsv2paymentsMerchantDefinedInformation.md) | The object containing the custom data that the merchant defines. | [optional] **merchant_information** | [**TssV2TransactionsPost201ResponseEmbeddedMerchantInformation**](TssV2TransactionsPost201ResponseEmbeddedMerchantInformation.md) | | [optional] diff --git a/generator/cybersource-rest-spec.json b/generator/cybersource-rest-spec.json index 2e3a2adb..77ceeb70 100644 --- a/generator/cybersource-rest-spec.json +++ b/generator/cybersource-rest-spec.json @@ -445,7 +445,7 @@ "properties": { "actionList": { "type": "array", - "description": "Array of actions (one or more) to be included in the payment to invoke bundled services along with payment.\n\nPossible values are one or more of follows:\n\n - `DECISION_SKIP`: Use this when you want to skip Decision Manager service(s).\n\n - `TOKEN_CREATE`: Use this when you want to create a token from the card/bank data in your payment request.\n\n - `CONSUMER_AUTHENTICATION`: Use this when you want to check if a card is enrolled in Payer Authentioncation along with your payment request.\n\n - `VALIDATE_CONSUMER_AUTHENTICATION`: Use this after you acquire a Payer Authentioncation result that needs to be included for your payment request.\n \n - `AP_INITIATE`: Use this when Alternative Payment Initiate service is requested.\n\n - `WATCHLIST_SCREENING` : Use this when you want to call Watchlist Screening service.\n", + "description": "Array of actions (one or more) to be included in the payment to invoke bundled services along with payment.\n\nPossible values are one or more of follows:\n\n - `DECISION_SKIP`: Use this when you want to skip Decision Manager service(s).\n\n - `TOKEN_CREATE`: Use this when you want to create a token from the card/bank data in your payment request.\n\n - `CONSUMER_AUTHENTICATION`: Use this when you want to check if a card is enrolled in Payer Authentication along with your payment request.\n\n - `VALIDATE_CONSUMER_AUTHENTICATION`: Use this after you acquire a Payer Authentication result that needs to be included for your payment request.\n \n - `AP_INITIATE`: Use this when Alternative Payment Initiate service is requested.\n\n - `WATCHLIST_SCREENING` : Use this when you want to call Watchlist Screening service.\n", "items": { "type": "string" } @@ -1078,7 +1078,7 @@ }, "value": { "type": "string", - "maxLength": 3072, + "maxLength": 4000, "description": "Represents the encrypted payment data BLOB. The entry for this field is dependent on the payment solution used by the merchant.\nUsed by Authorization and Standalone Credits. Required for authorizations and standalone credits that use a Cybersource suppored Point-to-Point encryption method.\nCard Present processing\nThis field represents the encrypted payment data generated by the payment terminal/device.\n" }, "encoding": { @@ -2175,7 +2175,7 @@ }, "lastName": { "type": "string", - "maxLength": 6, + "maxLength": 35, "description": "Recipient\u2019s last name. This field is a _passthrough_, which means that CyberSource does not verify the value or\nmodify it in any way before sending it to the processor. If the field is not required for the transaction,\nCyberSource does not forward it to the processor.\n\nFor details, see the `recipient_lastname` field description in the [Credit Card Services Using the SCMP API Guide.](https://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/)\n" }, "middleName": { @@ -2185,8 +2185,13 @@ }, "postalCode": { "type": "string", - "maxLength": 6, + "maxLength": 10, "description": "Partial postal code for the recipient\u2019s address. For example, if the postal code is **NN5 7SG**, the value for\nthis field should be the first part of the postal code: **NN5**. This field is a _pass-through_, which means that\nCyberSource does not verify the value or modify it in any way before sending it to the processor. If the field\nis not required for the transaction, CyberSource does not forward it to the processor.\n\nFor details, see the `recipient_postal_code` field description in [Credit Card Services Using the SCMP API.](https://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/)\n" + }, + "dateOfBirth": { + "type": "string", + "maxLength": 8, + "description": "Recipient\u2019s date of birth. **Format**: `YYYYMMDD`.\n\nThis field is a `pass-through`, which means that CyberSource ensures that the value is eight numeric characters\nbut otherwise does not verify the value or modify it in any way before sending it to the processor. If the field\nis not required for the transaction, CyberSource does not forward it to the processor.\n\nFor more details, see `recipient_date_of_birth` field description in the [Credit Card Services Using the SCMP API Guide.](https://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/)\n" } } }, @@ -6353,6 +6358,97 @@ } } }, + "embeddedActions": { + "type": "object", + "description": "Contains embedded actions, that includes status and response for every actions in the list.", + "properties": { + "CAPTURE": { + "type": "object", + "properties": { + "status": { + "type": "string", + "description": "The status of the submitted transaction.\n\nPossible values:\n - PENDING\n" + }, + "reason": { + "type": "string", + "description": "The reason of the status.\n\nPossible values:\n - MISSING_FIELD\n - INVALID_DATA\n - DUPLICATE_REQUEST\n - INVALID_MERCHANT_CONFIGURATION\n - EXCEEDS_AUTH_AMOUNT\n - AUTH_ALREADY_REVERSED\n - TRANSACTION_ALREADY_SETTLED\n - INVALID_AMOUNT\n - MISSING_AUTH\n - TRANSACTION_ALREADY_REVERSED_OR_SETTLED\n - NOT_SUPPORTED\n" + }, + "message": { + "type": "string", + "description": "The detail message related to the status and reason listed above." + } + } + }, + "DECISION": { + "type": "object", + "properties": { + "status": { + "type": "string", + "description": "The status of the submitted transaction.\n\nPossible values:\n - `ACCEPTED`\n - `REJECTED`\n - `PENDING_REVIEW`\n - `DECLINED`\n - `PENDING_AUTHENTICATION`\n - `INVALID_REQUEST`\n - `AUTHENTICATION_FAILED`\n - `CHALLENGE`\n" + }, + "reason": { + "type": "string", + "description": "The reason of the status.\n\nPossible values:\n - `EXPIRED_CARD`\n - `SCORE_EXCEEDS_THRESHOLD`\n - `DECISION_PROFILE_REVIEW`\n - `DECISION_PROFILE_REJECT`\n - `CONSUMER_AUTHENTICATION_REQUIRED`\n - `INVALID_MERCHANT_CONFIGURATION`\n - `CONSUMER_AUTHENTICATION_FAILED`\n - `DECISION_PROFILE_CHALLENGE`\n - `CUSTOMER_WATCHLIST_MATCH`\n - `ADDRESS_COUNTRY_WATCHLIST_MATCH`\n - `EMAIL_COUNTRY_WATCHLIST_MATCH`\n - `IP_COUNTRY_WATCHLIST_MATCH`\n" + }, + "message": { + "type": "string", + "description": "The detail message related to the status and reason listed above." + } + } + }, + "CONSUMER_AUTHENTICATION": { + "type": "object", + "properties": { + "status": { + "type": "string", + "description": "The status for payerAuthentication 201 enroll and validate calls. Possible values are:\n- `AUTHENTICATION_SUCCESSFUL`\n- `PENDING_AUTHENTICATION`\n- `INVALID_REQUEST`\n- `AUTHENTICATION_FAILED`\n" + }, + "reason": { + "type": "string", + "description": "The reason of the status. Possible values are:\n- `INVALID_MERCHANT_CONFIGURATION`\n- `CONSUMER_AUTHENTICATION_REQUIRED`\n- `CONSUMER_AUTHENTICATION_FAILED`\n- `AUTHENTICATION_FAILED`\n" + }, + "message": { + "type": "string", + "description": "The message describing the reason of the status. Value is:\n- Encountered a Payer Authentication problem. Payer could not be authenticated.\n" + } + } + }, + "VALIDATE_CONSUMER_AUTHENTICATION": { + "type": "object", + "properties": { + "status": { + "type": "string", + "description": "The status for payerAuthentication 201 enroll and validate calls. Possible values are:\n- `AUTHENTICATION_SUCCESSFUL`\n- `PENDING_AUTHENTICATION`\n- `INVALID_REQUEST`\n- `AUTHENTICATION_FAILED`\n" + }, + "reason": { + "type": "string", + "description": "The reason of the status. Possible values are:\n- `INVALID_MERCHANT_CONFIGURATION`\n- `CONSUMER_AUTHENTICATION_REQUIRED`\n- `CONSUMER_AUTHENTICATION_FAILED`\n- `AUTHENTICATION_FAILED`\n" + }, + "message": { + "type": "string", + "description": "The message describing the reason of the status. Value is:\n- Encountered a Payer Authentication problem. Payer could not be authenticated.\n" + } + } + }, + "WATCHLIST_SCREENING": { + "type": "object", + "properties": { + "status": { + "type": "string", + "description": "The status for the call can be:\n- COMPLETED\n- INVALID_REQUEST\n- DECLINED\n" + }, + "reason": { + "type": "string", + "description": "The reason of the status. Value can be\n - `CUSTOMER_WATCHLIST_MATCH`\n - `ADDRESS_COUNTRY_WATCHLIST_MATCH`\n - `EMAIL_COUNTRY_WATCHLIST_MATCH`\n - `IP_COUNTRY_WATCHLIST_MATCH`\n - `INVALID_MERCHANT_CONFIGURATION`\n" + }, + "message": { + "type": "string", + "description": "The message describing the reason of the status. Value can be\n - The customer matched the Denied Parties List\n - The Export bill_country/ship_country match\n - Export email_country match\n - Export hostname_country/ip_country match\n" + } + } + } + } + }, "watchlistScreeningInformation": { "type": "object", "properties": { @@ -8653,11 +8749,15 @@ "sample-name": "Pin Debit Purchase Using Swiped Track Data with Visa Platform Connect", "value": { "clientReferenceInformation": { - "code": "2.2 Purchase" + "code": "Pin Debit Purchase Using Swiped Track Data" }, "pointOfSaleInformation": { "trackData": "%B4111111111111111^JONES/JONES ^3112101976110000868000000?;4111111111111111=16121019761186800000?", - "entryMode": "swiped" + "entryMode": "swiped", + "terminalCapability": 4, + "pinBlockEncodingFormat": 1, + "encryptedPin": "52F20658C04DB351", + "encryptedKeySerialNumber": "FFFF1B1D140000000005" }, "processingInformation": { "commerceIndicator": "retail" @@ -8682,7 +8782,7 @@ "sample-name": "Pin Debit Purchase Using EMV Technology with Contactless Read with Visa Platform Connect", "value": { "clientReferenceInformation": { - "code": "2.2 Purchase" + "code": "Pin Debit Purchase Using EMV Contactless" }, "pointOfSaleInformation": { "trackData": "%B4111111111111111^JONES/JONES ^3112101976110000868000000?;4111111111111111=16121019761186800000?", @@ -8710,6 +8810,174 @@ } }, "parentTag": "Card Present with Visa Platform Connect" + }, + "example56": { + "summary": "Pin Debit Purchase with Cashback Request with Visa Platform Connect", + "sample-name": "Pin Debit Purchase with Cashback Request with Visa Platform Connect", + "value": { + "clientReferenceInformation": { + "code": "Pin Debit Purchase With Cashback" + }, + "pointOfSaleInformation": { + "trackData": "%B4111111111111111^JONES/JONES ^3112101976110000868000000?;4111111111111111=16121019761186800000?", + "entryMode": "contactless", + "terminalCapability": 4, + "emv": { + "tags": "9F3303204000950500000000009F3704518823719F100706011103A000009F26081E1756ED0E2134E29F36020015820200009C01009F1A0208409A030006219F02060000000020005F2A0208409F0306000000000000", + "cardSequenceNumber": 1 + } + }, + "processingInformation": { + "commerceIndicator": "retail" + }, + "orderInformation": { + "amountDetails": { + "totalAmount": "204.00", + "currency": "USD", + "cashbackAmount": "45.00" + } + }, + "paymentInformation": { + "paymentType": { + "name": "CARD", + "subTypeName": "DEBIT" + } + } + }, + "parentTag": "Card Present with Visa Platform Connect" + }, + "example57": { + "summary": "EBT - Purchase from SNAP Account with Visa Platform Connect", + "sample-name": "EBT - Purchase from SNAP Account with Visa Platform Connect", + "value": { + "clientReferenceInformation": { + "code": "EBT - Purchase From SNAP Account" + }, + "pointOfSaleInformation": { + "trackData": "%B4111111111111111^JONES/JONES ^3112101976110000868000000?;4111111111111111=16121019761186800000?", + "entryMode": "swiped", + "terminalCapability": 4, + "pinBlockEncodingFormat": 1, + "encryptedPin": "52F20658C04DB351", + "encryptedKeySerialNumber": "FFFF1B1D140000000005" + }, + "processingInformation": { + "commerceIndicator": "retail", + "purchaseOptions": { + "isElectronicBenefitsTransfer": true + }, + "electronicBenefitsTransfer": { + "category": "FOOD" + } + }, + "orderInformation": { + "amountDetails": { + "totalAmount": "101.00", + "currency": "USD" + }, + "merchantInformation": { + "categoryCode": "5499" + } + }, + "paymentInformation": { + "paymentType": { + "name": "CARD", + "subTypeName": "DEBIT" + } + } + }, + "parentTag": "Card Present with Visa Platform Connect" + }, + "example58": { + "summary": "EBT - Electronic Voucher Purchase from SNAP Account with Visa Platform Connect", + "sample-name": "EBT - Electronic Voucher Purchase from SNAP Account with Visa Platform Connect", + "value": { + "clientReferenceInformation": { + "code": "EBT - Voucher Purchase From SNAP Account" + }, + "pointOfSaleInformation": { + "trackData": "%B4111111111111111^JONES/JONES ^3112101976110000868000000?;4111111111111111=16121019761186800000?", + "entryMode": "keyed", + "terminalCapability": 4 + }, + "processingInformation": { + "commerceIndicator": "retail", + "purchaseOptions": { + "isElectronicBenefitsTransfer": true + }, + "electronicBenefitsTransfer": { + "voucherSerialNumber": "123451234512345", + "category": "FOOD" + } + }, + "orderInformation": { + "amountDetails": { + "totalAmount": "103.00", + "currency": "USD" + }, + "merchantInformation": { + "categoryCode": "5999" + } + }, + "paymentInformation": { + "card": { + "number": "4012002000013007", + "expirationMonth": "12", + "expirationYear": "25" + }, + "paymentType": { + "name": "CARD", + "subTypeName": "DEBIT" + } + } + }, + "parentTag": "Card Present with Visa Platform Connect" + }, + "example59": { + "summary": "EBT - Purchase from Cash Benefits Account with Cashback", + "sample-name": "EBT - Purchase from Cash Benefits Account with Cashback", + "value": { + "clientReferenceInformation": { + "code": "EBT - Purchase from Cash Benefits Account with CB" + }, + "pointOfSaleInformation": { + "trackData": "%B4111111111111111^JONES/JONES ^3112101976110000868000000?;4111111111111111=16121019761186800000?", + "entryMode": "swiped", + "terminalCapability": 4, + "pinBlockEncodingFormat": 1, + "encryptedPin": "52F20658C04DB351", + "encryptedKeySerialNumber": "FFFF1B1D140000000005" + }, + "processingInformation": { + "commerceIndicator": "retail", + "purchaseOptions": { + "isElectronicBenefitsTransfer": true + }, + "electronicBenefitsTransfer": { + "category": "CASH" + } + }, + "orderInformation": { + "amountDetails": { + "totalAmount": "702.00", + "currency": "USD", + "cashbackAmount": "45.00" + }, + "merchantInformation": { + "categoryCode": "5411" + } + }, + "paymentInformation": { + "card": { + "type": "001" + }, + "paymentType": { + "name": "CARD", + "subTypeName": "DEBIT" + } + } + }, + "parentTag": "Card Present with Visa Platform Connect" } } } @@ -13232,7 +13500,7 @@ }, "value": { "type": "string", - "maxLength": 3072, + "maxLength": 4000, "description": "Represents the encrypted payment data BLOB. The entry for this field is dependent on the payment solution used by the merchant.\nUsed by Authorization and Standalone Credits. Required for authorizations and standalone credits that use a Cybersource suppored Point-to-Point encryption method.\nCard Present processing\nThis field represents the encrypted payment data generated by the payment terminal/device.\n" }, "encoding": { @@ -15743,7 +16011,7 @@ }, "value": { "type": "string", - "maxLength": 3072, + "maxLength": 4000, "description": "Represents the encrypted payment data BLOB. The entry for this field is dependent on the payment solution used by the merchant.\nUsed by Authorization and Standalone Credits. Required for authorizations and standalone credits that use a Cybersource suppored Point-to-Point encryption method.\nCard Present processing\nThis field represents the encrypted payment data generated by the payment terminal/device.\n" }, "encoding": { @@ -18322,7 +18590,7 @@ }, "value": { "type": "string", - "maxLength": 3072, + "maxLength": 4000, "description": "Represents the encrypted payment data BLOB. The entry for this field is dependent on the payment solution used by the merchant.\nUsed by Authorization and Standalone Credits. Required for authorizations and standalone credits that use a Cybersource suppored Point-to-Point encryption method.\nCard Present processing\nThis field represents the encrypted payment data generated by the payment terminal/device.\n" }, "encoding": { @@ -20990,7 +21258,7 @@ "sample-name": "Pin Debit Credit Using Swiped Track Data with Visa Platform Connect", "value": { "clientReferenceInformation": { - "code": "2.2 Credit" + "code": "Pin Debit Credit Swiped Track Data" }, "processingInformation": { "commerceIndicator": "retail" @@ -21012,7 +21280,8 @@ }, "pointOfSaleInformation": { "trackData": "%B4111111111111111^JONES/JONES ^3112101976110000868000000?;4111111111111111=16121019761186800000?", - "entryMode": "swiped" + "entryMode": "swiped", + "terminalCapability": 4 } }, "parentTag": "Card Present with Visa Platform Connect" @@ -21022,7 +21291,7 @@ "sample-name": "Pin Debit Credit Using EMV Technology with Contactless Read with Visa Platform Connect", "value": { "clientReferenceInformation": { - "code": "2.2 Credit" + "code": "Pin Debit Credit Using EMV Contactless" }, "processingInformation": { "commerceIndicator": "retail" @@ -21053,6 +21322,52 @@ } }, "parentTag": "Card Present with Visa Platform Connect" + }, + "example10": { + "summary": "EBT - Merchandise Return / Credit Voucher from SNAP", + "sample-name": "EBT - Merchandise Return / Credit Voucher from SNAP", + "value": { + "clientReferenceInformation": { + "code": "Merchandise Return / Credit Voucher from SNAP" + }, + "processingInformation": { + "commerceIndicator": "retail", + "purchaseOptions": { + "isElectronicBenefitsTransfer": true + }, + "electronicBenefitsTransfer": { + "voucherSerialNumber": "123451234512345", + "category": "FOOD" + } + }, + "merchantInformation": { + "categoryCode": "5411" + }, + "orderInformation": { + "amountDetails": { + "totalAmount": "204.00", + "currency": "USD" + } + }, + "paymentInformation": { + "card": { + "type": "001" + }, + "paymentType": { + "name": "CARD", + "subTypeName": "DEBIT" + } + }, + "pointOfSaleInformation": { + "trackData": "%B4111111111111111^JONES/JONES ^3112101976110000868000000?;4111111111111111=16121019761186800000?", + "entryMode": "swiped", + "terminalCapability": 4, + "pinBlockEncodingFormat": 1, + "encryptedPin": "52F20658C04DB351", + "encryptedKeySerialNumber": "FFFF1B1D140000000005" + } + }, + "parentTag": "Card Present with Visa Platform Connect" } } } @@ -21425,6 +21740,43 @@ } ] } + }, + "example2": { + "summary": "EBT - Reversal of Purchase from SNAP Account", + "value": { + "clientReferenceInformation": { + "code": "Reversal of Purchase from SNAP Account" + }, + "orderInformation": { + "amountDetails": { + "totalAmount": "101.00", + "currency": "USD" + } + }, + "paymentInformation": { + "card": { + "type": "001" + }, + "paymentType": { + "name": "CARD", + "subTypeName": "DEBIT" + } + } + }, + "depends": { + "example": { + "path": "/pts/v2/payments", + "verb": "post", + "exampleId": "example2" + }, + "fieldMapping": [ + { + "sourceField": "id", + "destinationField": "id", + "fieldTypeInDestination": "path" + } + ] + } } } } @@ -51380,7 +51732,7 @@ "properties": { "value": { "type": "string", - "maxLength": 3072, + "maxLength": 4000, "description": "Represents the encrypted payment data BLOB. The entry for this field is dependent on the payment solution used by the merchant.\nUsed by Authorization and Standalone Credits. Required for authorizations and standalone credits that use a Cybersource suppored Point-to-Point encryption method.\nCard Present processing\nThis field represents the encrypted payment data generated by the payment terminal/device.\n" }, "keySerialNumber": { @@ -52225,7 +52577,7 @@ "properties": { "value": { "type": "string", - "maxLength": 3072, + "maxLength": 4000, "description": "Represents the encrypted payment data BLOB. The entry for this field is dependent on the payment solution used by the merchant.\nUsed by Authorization and Standalone Credits. Required for authorizations and standalone credits that use a Cybersource suppored Point-to-Point encryption method.\nCard Present processing\nThis field represents the encrypted payment data generated by the payment terminal/device.\n" }, "keySerialNumber": { @@ -53818,7 +54170,7 @@ "properties": { "value": { "type": "string", - "maxLength": 3072, + "maxLength": 4000, "description": "Represents the encrypted payment data BLOB. The entry for this field is dependent on the payment solution used by the merchant.\nUsed by Authorization and Standalone Credits. Required for authorizations and standalone credits that use a Cybersource suppored Point-to-Point encryption method.\nCard Present processing\nThis field represents the encrypted payment data generated by the payment terminal/device.\n" }, "keySerialNumber": { @@ -59260,6 +59612,9 @@ "developerGuides": "https://developer.cybersource.com/docs/cybs/en-us/recurring-billing/developer/all/rest/recurring-billing/recur-bill-dev-intro.html", "disableProcessorDropDown": true }, + "produces": [ + "application/json;charset=utf-8" + ], "parameters": [ { "name": "createPlanRequest", @@ -59389,10 +59744,8 @@ }, "example": { "planInformation": { - "code": "PLN1", "name": "Gold Plan", "description": "New Gold Plan", - "status": "DRAFT", "billingPeriod": { "length": "1", "unit": "M" @@ -59405,7 +59758,7 @@ "amountDetails": { "currency": "USD", "billingAmount": "10", - "setupFee": "15" + "setupFee": "2" } } } @@ -59552,10 +59905,8 @@ "sample-name": "Create Plan", "value": { "planInformation": { - "code": "PLN1", "name": "Gold Plan", "description": "New Gold Plan", - "status": "DRAFT", "billingPeriod": { "length": "1", "unit": "M" @@ -59568,7 +59919,7 @@ "amountDetails": { "currency": "USD", "billingAmount": "10", - "setupFee": "15" + "setupFee": "2" } } } @@ -59587,6 +59938,9 @@ "developerGuides": "https://developer.cybersource.com/docs/cybs/en-us/recurring-billing/developer/all/rest/recurring-billing/recur-bill-dev-intro.html", "disableProcessorDropDown": true }, + "produces": [ + "application/json;charset=utf-8" + ], "parameters": [ { "name": "offset", @@ -59869,6 +60223,9 @@ "developerGuides": "https://developer.cybersource.com/docs/cybs/en-us/recurring-billing/developer/all/rest/recurring-billing/recur-bill-dev-intro.html", "disableProcessorDropDown": true }, + "produces": [ + "application/json;charset=utf-8" + ], "parameters": [ { "name": "id", @@ -60080,6 +60437,9 @@ "developerGuides": "https://developer.cybersource.com/docs/cybs/en-us/recurring-billing/developer/all/rest/recurring-billing/recur-bill-dev-intro.html", "disableProcessorDropDown": true }, + "produces": [ + "application/json;charset=utf-8" + ], "parameters": [ { "name": "id", @@ -60185,10 +60545,8 @@ }, "example": { "planInformation": { - "code": "PLAN1", "name": "Gold Plan NA", "description": "Updated Gold Plan", - "status": "ACTIVE", "billingPeriod": { "length": "2", "unit": "W" @@ -60206,7 +60564,7 @@ "amountDetails": { "currency": "USD", "billingAmount": "11", - "setupFee": "25" + "setupFee": "2" } } } @@ -60353,10 +60711,8 @@ "sample-name": "Update Plan", "value": { "planInformation": { - "code": "PLAN1", "name": "Gold Plan NA", "description": "Updated Gold Plan", - "status": "ACTIVE", "billingPeriod": { "length": "2", "unit": "W" @@ -60374,7 +60730,7 @@ "amountDetails": { "currency": "USD", "billingAmount": "11", - "setupFee": "25" + "setupFee": "2" } } } @@ -60393,6 +60749,9 @@ "developerGuides": "https://developer.cybersource.com/docs/cybs/en-us/recurring-billing/developer/all/rest/recurring-billing/recur-bill-dev-intro.html", "disableProcessorDropDown": true }, + "produces": [ + "application/json;charset=utf-8" + ], "parameters": [ { "name": "id", @@ -60515,6 +60874,9 @@ "developerGuides": "https://developer.cybersource.com/docs/cybs/en-us/recurring-billing/developer/all/rest/recurring-billing/recur-bill-dev-intro.html", "disableProcessorDropDown": true }, + "produces": [ + "application/json;charset=utf-8" + ], "parameters": [ { "name": "id", @@ -60522,14 +60884,6 @@ "required": true, "type": "string", "description": "Plan Id" - }, - { - "name": "activatePlanRequest", - "in": "body", - "required": false, - "schema": { - "type": "object" - } } ], "responses": { @@ -60682,6 +61036,9 @@ "developerGuides": "https://developer.cybersource.com/docs/cybs/en-us/recurring-billing/developer/all/rest/recurring-billing/recur-bill-dev-intro.html", "disableProcessorDropDown": true }, + "produces": [ + "application/json;charset=utf-8" + ], "parameters": [ { "name": "id", @@ -60689,14 +61046,6 @@ "required": true, "type": "string", "description": "Plan Id" - }, - { - "name": "deactivatePlanRequest", - "in": "body", - "required": false, - "schema": { - "type": "object" - } } ], "responses": { @@ -60844,6 +61193,9 @@ "Plans" ], "operationId": "getPlanCode", + "produces": [ + "application/json;charset=utf-8" + ], "x-devcenter-metaData": { "categoryTag": "Recurring_Billing_Subscriptions", "developerGuides": "https://developer.cybersource.com/docs/cybs/en-us/recurring-billing/developer/all/rest/recurring-billing/recur-bill-dev-intro.html", @@ -60947,6 +61299,9 @@ "disableProcessorDropDown": true }, "operationId": "createSubscription", + "produces": [ + "application/json;charset=utf-8" + ], "parameters": [ { "name": "createSubscriptionRequest", @@ -61142,10 +61497,9 @@ } }, "subscriptionInformation": { - "code": "SUB1", - "planId": "4963015972176007901546", + "planId": "6868912495476705603955", "name": "Subscription with PlanId", - "startDate": "2023-12-11" + "startDate": "2024-06-11" }, "paymentInformation": { "customer": { @@ -61381,10 +61735,9 @@ } }, "subscriptionInformation": { - "code": "SUB1", - "planId": "4963015972176007901546", + "planId": "6868912495476705603955", "name": "Subscription with PlanId", - "startDate": "2023-12-11" + "startDate": "2024-06-11" }, "paymentInformation": { "customer": { @@ -61407,6 +61760,9 @@ "disableProcessorDropDown": true }, "operationId": "getAllSubscriptions", + "produces": [ + "application/json;charset=utf-8" + ], "parameters": [ { "name": "offset", @@ -61775,6 +62131,9 @@ "disableProcessorDropDown": true }, "operationId": "getSubscription", + "produces": [ + "application/json;charset=utf-8" + ], "parameters": [ { "name": "id", @@ -62079,6 +62438,9 @@ "disableProcessorDropDown": true }, "operationId": "updateSubscription", + "produces": [ + "application/json;charset=utf-8" + ], "parameters": [ { "name": "id", @@ -62418,15 +62780,14 @@ } }, "subscriptionInformation": { - "code": 1, "planId": 424242442, "name": "Gold subs", - "startDate": "2022-11-11" + "startDate": "2024-06-15" }, "orderInformation": { "amountDetails": { "billingAmount": 10, - "setupFee": 25 + "setupFee": 5 } } } @@ -62447,6 +62808,9 @@ "disableProcessorDropDown": true }, "operationId": "cancelSubscription", + "produces": [ + "application/json;charset=utf-8" + ], "parameters": [ { "name": "id", @@ -62454,14 +62818,6 @@ "type": "string", "required": true, "description": "Subscription Id" - }, - { - "name": "cancelSubscriptionRequest", - "in": "body", - "required": false, - "schema": { - "type": "object" - } } ], "responses": { @@ -62614,6 +62970,9 @@ "disableProcessorDropDown": true }, "operationId": "suspendSubscription", + "produces": [ + "application/json;charset=utf-8" + ], "parameters": [ { "name": "id", @@ -62621,14 +62980,6 @@ "type": "string", "required": true, "description": "Subscription Id" - }, - { - "name": "suspendSubscriptionRequest", - "in": "body", - "required": false, - "schema": { - "type": "object" - } } ], "responses": { @@ -62781,6 +63132,9 @@ "disableProcessorDropDown": true }, "operationId": "activateSubscription", + "produces": [ + "application/json;charset=utf-8" + ], "parameters": [ { "name": "id", @@ -62788,14 +63142,6 @@ "type": "string", "required": true, "description": "Subscription Id" - }, - { - "name": "activateSubscriptionRequest", - "in": "body", - "required": false, - "schema": { - "type": "object" - } } ], "responses": { @@ -62943,6 +63289,9 @@ "Subscriptions" ], "operationId": "getSubscriptionCode", + "produces": [ + "application/json;charset=utf-8" + ], "x-devcenter-metaData": { "categoryTag": "Recurring_Billing_Subscriptions", "developerGuides": "https://developer.cybersource.com/docs/cybs/en-us/recurring-billing/developer/all/rest/recurring-billing/recur-bill-dev-intro.html", @@ -63101,6 +63450,10 @@ "type": "string", "description": "Time of request in UTC. Format: `YYYY-MM-DDThh:mm:ssZ`\n**Example** `2016-08-11T22:47:57Z` equals August 11, 2016, at 22:47:57 (10:47:57 p.m.).\nThe `T` separates the date and the time. The `Z` indicates UTC.\n\nReturned by Cybersource for all services.\n" }, + "status": { + "type": "string", + "description": "The status of the submitted transaction." + }, "applicationInformation": { "type": "object", "properties": { @@ -64557,6 +64910,7 @@ "reconciliationId": "53703847LK9LPPXY", "merchantId": "pa_rbsworldpay", "submitTimeUtc": "2018-07-31T17:26:14Z", + "status": "PENDING", "applicationInformation": { "status": "PENDING", "reasonCode": "100", @@ -64609,12 +64963,12 @@ "cookiesAccepted": "no" }, "errorInformation": { - "reason": "1", + "reason": "MISSING_FIELD", "message": "abc", "details": [ { "field": "xyz", - "reason": "1" + "reason": "MISSING_FIELD" } ] }, @@ -65296,10 +65650,6 @@ "type": "integer", "description": "Total number of results." }, - "status": { - "type": "string", - "description": "The status of the submitted transaction." - }, "submitTimeUtc": { "type": "string", "description": "Time of request in UTC. Format: `YYYY-MM-DDThh:mm:ssZ`\n**Example** `2016-08-11T22:47:57Z` equals August 11, 2016, at 22:47:57 (10:47:57 p.m.).\nThe `T` separates the date and the time. The `Z` indicates UTC.\n\nReturned by Cybersource for all services.\n" @@ -65326,6 +65676,10 @@ "type": "string", "description": "Your CyberSource merchant ID." }, + "status": { + "type": "string", + "description": "The status of the submitted transaction.\nNote: This field may not be returned for all transactions.\n" + }, "applicationInformation": { "type": "object", "properties": { @@ -65354,6 +65708,14 @@ "type": "string", "description": "3-digit reason code that indicates why the customer profile payment succeeded or failed." }, + "status": { + "type": "string", + "description": "The status of the submitted transaction.\nNote: This field may not be returned for all transactions.\n" + }, + "reason": { + "type": "string", + "description": "Description of why a request failed.\nNote: This field may not be returned for all transactions.\n" + }, "rCode": { "type": "string", "description": "Indicates whether the service request was successful.\nPossible values:\n\n- `-1`: An error occurred.\n- `0`: The request was declined.\n- `1`: The request was successful.\n" @@ -65450,6 +65812,15 @@ } } }, + "errorInformation": { + "type": "object", + "properties": { + "reason": { + "type": "string", + "description": "Description of why a request failed.\nNote: This field may not be returned for all transactions.\n" + } + } + }, "fraudMarkingInformation": { "type": "object", "properties": { @@ -65802,7 +66173,6 @@ "sort": "id:asc, submitTimeUtc:asc", "count": 22, "totalCount": 22, - "status": "status", "submitTimeUtc": "2018-09-18T16:59:28Z", "_embedded": { "transactionSummaries": [ @@ -65810,8 +66180,8 @@ "id": "5217848115816817001541", "submitTimeUtc": "2018-03-23T06:00:11Z", "merchantId": "sandeep_wf", + "status": "TRANSMITTED", "applicationInformation": { - "status": "TRANSMITTED", "reasonCode": "123", "rCode": "1", "rFlag": "SOK", @@ -65820,6 +66190,7 @@ { "name": "ics_service_fee_calculate", "status": "TRANSMITTED", + "reason": "MISSING_FIELD", "reasonCode": "123", "rCode": "1", "rFlag": "SOK", @@ -65848,6 +66219,9 @@ "deviceInformation": { "ipAddress": "1.10.10.10" }, + "errorInformation": { + "reason": "MISSING_FIELD" + }, "fraudMarkingInformation": { "reason": "fraud txn" }, @@ -66117,10 +66491,6 @@ "type": "integer", "description": "Total number of results." }, - "status": { - "type": "string", - "description": "The status of the submitted transaction." - }, "submitTimeUtc": { "type": "string", "description": "Time of request in UTC. Format: `YYYY-MM-DDThh:mm:ssZ`\n**Example** `2016-08-11T22:47:57Z` equals August 11, 2016, at 22:47:57 (10:47:57 p.m.).\nThe `T` separates the date and the time. The `Z` indicates UTC.\n\nReturned by Cybersource for all services.\n" @@ -66147,6 +66517,10 @@ "type": "string", "description": "Your CyberSource merchant ID." }, + "status": { + "type": "string", + "description": "The status of the submitted transaction.\nNote: This field may not be returned for all transactions.\n" + }, "applicationInformation": { "type": "object", "properties": { @@ -66175,6 +66549,14 @@ "type": "string", "description": "3-digit reason code that indicates why the customer profile payment succeeded or failed." }, + "status": { + "type": "string", + "description": "The status of the submitted transaction.\nNote: This field may not be returned for all transactions.\n" + }, + "reason": { + "type": "string", + "description": "Description of why a request failed.\nNote: This field may not be returned for all transactions.\n" + }, "rCode": { "type": "string", "description": "Indicates whether the service request was successful.\nPossible values:\n\n- `-1`: An error occurred.\n- `0`: The request was declined.\n- `1`: The request was successful.\n" @@ -66271,6 +66653,15 @@ } } }, + "errorInformation": { + "type": "object", + "properties": { + "reason": { + "type": "string", + "description": "Description of why a request failed.\nNote: This field may not be returned for all transactions.\n" + } + } + }, "fraudMarkingInformation": { "type": "object", "properties": { @@ -66623,7 +67014,6 @@ "sort": "id:asc, submitTimeUtc:asc", "count": 22, "totalCount": 22, - "status": "status", "submitTimeUtc": "2018-09-18T16:59:28Z", "_embedded": { "transactionSummaries": [ @@ -66631,8 +67021,8 @@ "id": "5217848115816817001541", "submitTimeUtc": "2018-03-23T06:00:11Z", "merchantId": "sandeep_wf", + "status": "TRANSMITTED", "applicationInformation": { - "status": "TRANSMITTED", "reasonCode": "123", "rCode": "1", "rFlag": "SOK", @@ -66641,6 +67031,7 @@ { "name": "ics_service_fee_calculate", "status": "TRANSMITTED", + "reason": "MISSING_FIELD", "reasonCode": "123", "rCode": "1", "rFlag": "SOK", @@ -66669,6 +67060,9 @@ "deviceInformation": { "ipAddress": "1.10.10.10" }, + "errorInformation": { + "reason": "MISSING_FIELD" + }, "fraudMarkingInformation": { "reason": "fraud txn" }, diff --git a/setup.py b/setup.py index a1798423..aa550b55 100644 --- a/setup.py +++ b/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages NAME = "cybersource-rest-client-python" -VERSION = "0.0.45" +VERSION = "0.0.46" # To install the library, run the following # # python setup.py install diff --git a/test/test_pts_v2_payments_post201_response_embedded_actions.py b/test/test_pts_v2_payments_post201_response_embedded_actions.py new file mode 100644 index 00000000..e9170307 --- /dev/null +++ b/test/test_pts_v2_payments_post201_response_embedded_actions.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Merged Spec + + All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.pts_v2_payments_post201_response_embedded_actions import PtsV2PaymentsPost201ResponseEmbeddedActions + + +class TestPtsV2PaymentsPost201ResponseEmbeddedActions(unittest.TestCase): + """ PtsV2PaymentsPost201ResponseEmbeddedActions unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPtsV2PaymentsPost201ResponseEmbeddedActions(self): + """ + Test PtsV2PaymentsPost201ResponseEmbeddedActions + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.pts_v2_payments_post201_response_embedded_actions.PtsV2PaymentsPost201ResponseEmbeddedActions() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_pts_v2_payments_post201_response_embedded_actions_capture.py b/test/test_pts_v2_payments_post201_response_embedded_actions_capture.py new file mode 100644 index 00000000..ab602504 --- /dev/null +++ b/test/test_pts_v2_payments_post201_response_embedded_actions_capture.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Merged Spec + + All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.pts_v2_payments_post201_response_embedded_actions_capture import PtsV2PaymentsPost201ResponseEmbeddedActionsCAPTURE + + +class TestPtsV2PaymentsPost201ResponseEmbeddedActionsCAPTURE(unittest.TestCase): + """ PtsV2PaymentsPost201ResponseEmbeddedActionsCAPTURE unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPtsV2PaymentsPost201ResponseEmbeddedActionsCAPTURE(self): + """ + Test PtsV2PaymentsPost201ResponseEmbeddedActionsCAPTURE + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.pts_v2_payments_post201_response_embedded_actions_capture.PtsV2PaymentsPost201ResponseEmbeddedActionsCAPTURE() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_pts_v2_payments_post201_response_embedded_actions_consumer_authentication.py b/test/test_pts_v2_payments_post201_response_embedded_actions_consumer_authentication.py new file mode 100644 index 00000000..2b5717ae --- /dev/null +++ b/test/test_pts_v2_payments_post201_response_embedded_actions_consumer_authentication.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Merged Spec + + All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.pts_v2_payments_post201_response_embedded_actions_consumer_authentication import PtsV2PaymentsPost201ResponseEmbeddedActionsCONSUMERAUTHENTICATION + + +class TestPtsV2PaymentsPost201ResponseEmbeddedActionsCONSUMERAUTHENTICATION(unittest.TestCase): + """ PtsV2PaymentsPost201ResponseEmbeddedActionsCONSUMERAUTHENTICATION unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPtsV2PaymentsPost201ResponseEmbeddedActionsCONSUMERAUTHENTICATION(self): + """ + Test PtsV2PaymentsPost201ResponseEmbeddedActionsCONSUMERAUTHENTICATION + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.pts_v2_payments_post201_response_embedded_actions_consumer_authentication.PtsV2PaymentsPost201ResponseEmbeddedActionsCONSUMERAUTHENTICATION() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_pts_v2_payments_post201_response_embedded_actions_decision.py b/test/test_pts_v2_payments_post201_response_embedded_actions_decision.py new file mode 100644 index 00000000..9d4ed47c --- /dev/null +++ b/test/test_pts_v2_payments_post201_response_embedded_actions_decision.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Merged Spec + + All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.pts_v2_payments_post201_response_embedded_actions_decision import PtsV2PaymentsPost201ResponseEmbeddedActionsDECISION + + +class TestPtsV2PaymentsPost201ResponseEmbeddedActionsDECISION(unittest.TestCase): + """ PtsV2PaymentsPost201ResponseEmbeddedActionsDECISION unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPtsV2PaymentsPost201ResponseEmbeddedActionsDECISION(self): + """ + Test PtsV2PaymentsPost201ResponseEmbeddedActionsDECISION + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.pts_v2_payments_post201_response_embedded_actions_decision.PtsV2PaymentsPost201ResponseEmbeddedActionsDECISION() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_pts_v2_payments_post201_response_embedded_actions_watchlist_screening.py b/test/test_pts_v2_payments_post201_response_embedded_actions_watchlist_screening.py new file mode 100644 index 00000000..c2b9e8fc --- /dev/null +++ b/test/test_pts_v2_payments_post201_response_embedded_actions_watchlist_screening.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Merged Spec + + All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.pts_v2_payments_post201_response_embedded_actions_watchlist_screening import PtsV2PaymentsPost201ResponseEmbeddedActionsWATCHLISTSCREENING + + +class TestPtsV2PaymentsPost201ResponseEmbeddedActionsWATCHLISTSCREENING(unittest.TestCase): + """ PtsV2PaymentsPost201ResponseEmbeddedActionsWATCHLISTSCREENING unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPtsV2PaymentsPost201ResponseEmbeddedActionsWATCHLISTSCREENING(self): + """ + Test PtsV2PaymentsPost201ResponseEmbeddedActionsWATCHLISTSCREENING + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.pts_v2_payments_post201_response_embedded_actions_watchlist_screening.PtsV2PaymentsPost201ResponseEmbeddedActionsWATCHLISTSCREENING() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_tss_v2_transactions_post201_response__embedded_error_information.py b/test/test_tss_v2_transactions_post201_response__embedded_error_information.py new file mode 100644 index 00000000..29d0d7b1 --- /dev/null +++ b/test/test_tss_v2_transactions_post201_response__embedded_error_information.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + CyberSource Merged Spec + + All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html + + OpenAPI spec version: 0.0.1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import CyberSource +from CyberSource.rest import ApiException +from CyberSource.models.tss_v2_transactions_post201_response__embedded_error_information import TssV2TransactionsPost201ResponseEmbeddedErrorInformation + + +class TestTssV2TransactionsPost201ResponseEmbeddedErrorInformation(unittest.TestCase): + """ TssV2TransactionsPost201ResponseEmbeddedErrorInformation unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTssV2TransactionsPost201ResponseEmbeddedErrorInformation(self): + """ + Test TssV2TransactionsPost201ResponseEmbeddedErrorInformation + """ + # FIXME: construct object with mandatory attributes with example values + #model = CyberSource.models.tss_v2_transactions_post201_response__embedded_error_information.TssV2TransactionsPost201ResponseEmbeddedErrorInformation() + pass + + +if __name__ == '__main__': + unittest.main()