Skip to content

Commit

Permalink
Merge pull request #95 from CyberSource/april-changes
Browse files Browse the repository at this point in the history
april changes
  • Loading branch information
gaubansa authored May 3, 2023
2 parents 1d94b9a + ab98503 commit e9f6426
Show file tree
Hide file tree
Showing 78 changed files with 2,193 additions and 382 deletions.
11 changes: 7 additions & 4 deletions CyberSource/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,7 @@
from .models.pts_v2_payments_post201_response__links_self import PtsV2PaymentsPost201ResponseLinksSelf
from .models.pts_v2_payments_post201_response_order_information import PtsV2PaymentsPost201ResponseOrderInformation
from .models.pts_v2_payments_post201_response_order_information_amount_details import PtsV2PaymentsPost201ResponseOrderInformationAmountDetails
from .models.pts_v2_payments_post201_response_order_information_bill_to import PtsV2PaymentsPost201ResponseOrderInformationBillTo
from .models.pts_v2_payments_post201_response_order_information_invoice_details import PtsV2PaymentsPost201ResponseOrderInformationInvoiceDetails
from .models.pts_v2_payments_post201_response_order_information_reward_points_details import PtsV2PaymentsPost201ResponseOrderInformationRewardPointsDetails
from .models.pts_v2_payments_post201_response_payment_account_information import PtsV2PaymentsPost201ResponsePaymentAccountInformation
Expand Down Expand Up @@ -319,6 +320,9 @@
from .models.pts_v2_payments_post201_response_token_information_instrument_identifier import PtsV2PaymentsPost201ResponseTokenInformationInstrumentIdentifier
from .models.pts_v2_payments_post201_response_token_information_payment_instrument import PtsV2PaymentsPost201ResponseTokenInformationPaymentInstrument
from .models.pts_v2_payments_post201_response_token_information_shipping_address import PtsV2PaymentsPost201ResponseTokenInformationShippingAddress
from .models.pts_v2_payments_post201_response_watchlist_screening_information import PtsV2PaymentsPost201ResponseWatchlistScreeningInformation
from .models.pts_v2_payments_post201_response_watchlist_screening_information_watch_list import PtsV2PaymentsPost201ResponseWatchlistScreeningInformationWatchList
from .models.pts_v2_payments_post201_response_watchlist_screening_information_watch_list_matches import PtsV2PaymentsPost201ResponseWatchlistScreeningInformationWatchListMatches
from .models.pts_v2_payments_post400_response import PtsV2PaymentsPost400Response
from .models.pts_v2_payments_post502_response import PtsV2PaymentsPost502Response
from .models.pts_v2_payments_refund_post201_response import PtsV2PaymentsRefundPost201Response
Expand Down Expand Up @@ -403,6 +407,7 @@
from .models.ptsv2payments_merchant_information import Ptsv2paymentsMerchantInformation
from .models.ptsv2payments_merchant_information_merchant_descriptor import Ptsv2paymentsMerchantInformationMerchantDescriptor
from .models.ptsv2payments_merchant_information_service_fee_descriptor import Ptsv2paymentsMerchantInformationServiceFeeDescriptor
from .models.ptsv2payments_merchant_information_service_location import Ptsv2paymentsMerchantInformationServiceLocation
from .models.ptsv2payments_order_information import Ptsv2paymentsOrderInformation
from .models.ptsv2payments_order_information_amount_details import Ptsv2paymentsOrderInformationAmountDetails
from .models.ptsv2payments_order_information_amount_details_amex_additional_amounts import Ptsv2paymentsOrderInformationAmountDetailsAmexAdditionalAmounts
Expand Down Expand Up @@ -472,6 +477,8 @@
from .models.ptsv2payments_travel_information_transit_airline_ancillary_information_service import Ptsv2paymentsTravelInformationTransitAirlineAncillaryInformationService
from .models.ptsv2payments_travel_information_transit_airline_legs import Ptsv2paymentsTravelInformationTransitAirlineLegs
from .models.ptsv2payments_travel_information_transit_airline_ticket_issuer import Ptsv2paymentsTravelInformationTransitAirlineTicketIssuer
from .models.ptsv2payments_watchlist_screening_information import Ptsv2paymentsWatchlistScreeningInformation
from .models.ptsv2payments_watchlist_screening_information_weights import Ptsv2paymentsWatchlistScreeningInformationWeights
from .models.ptsv2paymentsid_client_reference_information import Ptsv2paymentsidClientReferenceInformation
from .models.ptsv2paymentsid_client_reference_information_partner import Ptsv2paymentsidClientReferenceInformationPartner
from .models.ptsv2paymentsid_merchant_information import Ptsv2paymentsidMerchantInformation
Expand Down Expand Up @@ -663,9 +670,6 @@
from .models.risk_v1_decisions_post400_response_1 import RiskV1DecisionsPost400Response1
from .models.risk_v1_export_compliance_inquiries_post201_response import RiskV1ExportComplianceInquiriesPost201Response
from .models.risk_v1_export_compliance_inquiries_post201_response_error_information import RiskV1ExportComplianceInquiriesPost201ResponseErrorInformation
from .models.risk_v1_export_compliance_inquiries_post201_response_export_compliance_information import RiskV1ExportComplianceInquiriesPost201ResponseExportComplianceInformation
from .models.risk_v1_export_compliance_inquiries_post201_response_export_compliance_information_watch_list import RiskV1ExportComplianceInquiriesPost201ResponseExportComplianceInformationWatchList
from .models.risk_v1_export_compliance_inquiries_post201_response_export_compliance_information_watch_list_matches import RiskV1ExportComplianceInquiriesPost201ResponseExportComplianceInformationWatchListMatches
from .models.risk_v1_update_post201_response import RiskV1UpdatePost201Response
from .models.riskv1addressverifications_buyer_information import Riskv1addressverificationsBuyerInformation
from .models.riskv1addressverifications_order_information import Riskv1addressverificationsOrderInformation
Expand Down Expand Up @@ -729,7 +733,6 @@
from .models.riskv1decisionsidmarking_risk_information_marking_details import Riskv1decisionsidmarkingRiskInformationMarkingDetails
from .models.riskv1exportcomplianceinquiries_device_information import Riskv1exportcomplianceinquiriesDeviceInformation
from .models.riskv1exportcomplianceinquiries_export_compliance_information import Riskv1exportcomplianceinquiriesExportComplianceInformation
from .models.riskv1exportcomplianceinquiries_export_compliance_information_weights import Riskv1exportcomplianceinquiriesExportComplianceInformationWeights
from .models.riskv1exportcomplianceinquiries_order_information import Riskv1exportcomplianceinquiriesOrderInformation
from .models.riskv1exportcomplianceinquiries_order_information_bill_to import Riskv1exportcomplianceinquiriesOrderInformationBillTo
from .models.riskv1exportcomplianceinquiries_order_information_bill_to_company import Riskv1exportcomplianceinquiriesOrderInformationBillToCompany
Expand Down
4 changes: 2 additions & 2 deletions CyberSource/apis/payments_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def __init__(self, merchant_config, api_client=None):
def create_payment(self, create_payment_request, **kwargs):
"""
Process a Payment
A payment authorizes the amount for the transaction. There are a number of supported payment feature, such as E-commerce and Card Present - Credit Card/Debit Card, Echeck, e-Wallets, Level II/III Data, etc.. A payment response includes the status of the request. It also includes processor-specific information when the request is successful and errors if unsuccessful. See the [Payments Developer Guides Page](https://developer.cybersource.com/api/developer-guides/dita-payments/GettingStarted.html). Authorization can be requested with Capture, Decision Manager, Payer Authentication(3ds), and Token Creation.
A payment authorizes the amount for the transaction. There are a number of supported payment feature, such as E-commerce and Card Present - Credit Card/Debit Card, Echeck, e-Wallets, Level II/III Data, etc.. A payment response includes the status of the request. It also includes processor-specific information when the request is successful and errors if unsuccessful. See the [Payments Developer Guides Page](https://developer.cybersource.com/docs/cybs/en-us/payments/developer/ctv/rest/payments/payments-intro.html). Authorization can be requested with Capture, Decision Manager, Payer Authentication(3ds), and Token Creation.
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please define a `callback` function
to be invoked when receiving the response.
Expand Down Expand Up @@ -78,7 +78,7 @@ def create_payment(self, create_payment_request, **kwargs):
def create_payment_with_http_info(self, create_payment_request, **kwargs):
"""
Process a Payment
A payment authorizes the amount for the transaction. There are a number of supported payment feature, such as E-commerce and Card Present - Credit Card/Debit Card, Echeck, e-Wallets, Level II/III Data, etc.. A payment response includes the status of the request. It also includes processor-specific information when the request is successful and errors if unsuccessful. See the [Payments Developer Guides Page](https://developer.cybersource.com/api/developer-guides/dita-payments/GettingStarted.html). Authorization can be requested with Capture, Decision Manager, Payer Authentication(3ds), and Token Creation.
A payment authorizes the amount for the transaction. There are a number of supported payment feature, such as E-commerce and Card Present - Credit Card/Debit Card, Echeck, e-Wallets, Level II/III Data, etc.. A payment response includes the status of the request. It also includes processor-specific information when the request is successful and errors if unsuccessful. See the [Payments Developer Guides Page](https://developer.cybersource.com/docs/cybs/en-us/payments/developer/ctv/rest/payments/payments-intro.html). Authorization can be requested with Capture, Decision Manager, Payer Authentication(3ds), and Token Creation.
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please define a `callback` function
to be invoked when receiving the response.
Expand Down
11 changes: 7 additions & 4 deletions CyberSource/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,7 @@
from .pts_v2_payments_post201_response__links_self import PtsV2PaymentsPost201ResponseLinksSelf
from .pts_v2_payments_post201_response_order_information import PtsV2PaymentsPost201ResponseOrderInformation
from .pts_v2_payments_post201_response_order_information_amount_details import PtsV2PaymentsPost201ResponseOrderInformationAmountDetails
from .pts_v2_payments_post201_response_order_information_bill_to import PtsV2PaymentsPost201ResponseOrderInformationBillTo
from .pts_v2_payments_post201_response_order_information_invoice_details import PtsV2PaymentsPost201ResponseOrderInformationInvoiceDetails
from .pts_v2_payments_post201_response_order_information_reward_points_details import PtsV2PaymentsPost201ResponseOrderInformationRewardPointsDetails
from .pts_v2_payments_post201_response_payment_account_information import PtsV2PaymentsPost201ResponsePaymentAccountInformation
Expand Down Expand Up @@ -319,6 +320,9 @@
from .pts_v2_payments_post201_response_token_information_instrument_identifier import PtsV2PaymentsPost201ResponseTokenInformationInstrumentIdentifier
from .pts_v2_payments_post201_response_token_information_payment_instrument import PtsV2PaymentsPost201ResponseTokenInformationPaymentInstrument
from .pts_v2_payments_post201_response_token_information_shipping_address import PtsV2PaymentsPost201ResponseTokenInformationShippingAddress
from .pts_v2_payments_post201_response_watchlist_screening_information import PtsV2PaymentsPost201ResponseWatchlistScreeningInformation
from .pts_v2_payments_post201_response_watchlist_screening_information_watch_list import PtsV2PaymentsPost201ResponseWatchlistScreeningInformationWatchList
from .pts_v2_payments_post201_response_watchlist_screening_information_watch_list_matches import PtsV2PaymentsPost201ResponseWatchlistScreeningInformationWatchListMatches
from .pts_v2_payments_post400_response import PtsV2PaymentsPost400Response
from .pts_v2_payments_post502_response import PtsV2PaymentsPost502Response
from .pts_v2_payments_refund_post201_response import PtsV2PaymentsRefundPost201Response
Expand Down Expand Up @@ -403,6 +407,7 @@
from .ptsv2payments_merchant_information import Ptsv2paymentsMerchantInformation
from .ptsv2payments_merchant_information_merchant_descriptor import Ptsv2paymentsMerchantInformationMerchantDescriptor
from .ptsv2payments_merchant_information_service_fee_descriptor import Ptsv2paymentsMerchantInformationServiceFeeDescriptor
from .ptsv2payments_merchant_information_service_location import Ptsv2paymentsMerchantInformationServiceLocation
from .ptsv2payments_order_information import Ptsv2paymentsOrderInformation
from .ptsv2payments_order_information_amount_details import Ptsv2paymentsOrderInformationAmountDetails
from .ptsv2payments_order_information_amount_details_amex_additional_amounts import Ptsv2paymentsOrderInformationAmountDetailsAmexAdditionalAmounts
Expand Down Expand Up @@ -472,6 +477,8 @@
from .ptsv2payments_travel_information_transit_airline_ancillary_information_service import Ptsv2paymentsTravelInformationTransitAirlineAncillaryInformationService
from .ptsv2payments_travel_information_transit_airline_legs import Ptsv2paymentsTravelInformationTransitAirlineLegs
from .ptsv2payments_travel_information_transit_airline_ticket_issuer import Ptsv2paymentsTravelInformationTransitAirlineTicketIssuer
from .ptsv2payments_watchlist_screening_information import Ptsv2paymentsWatchlistScreeningInformation
from .ptsv2payments_watchlist_screening_information_weights import Ptsv2paymentsWatchlistScreeningInformationWeights
from .ptsv2paymentsid_client_reference_information import Ptsv2paymentsidClientReferenceInformation
from .ptsv2paymentsid_client_reference_information_partner import Ptsv2paymentsidClientReferenceInformationPartner
from .ptsv2paymentsid_merchant_information import Ptsv2paymentsidMerchantInformation
Expand Down Expand Up @@ -663,9 +670,6 @@
from .risk_v1_decisions_post400_response_1 import RiskV1DecisionsPost400Response1
from .risk_v1_export_compliance_inquiries_post201_response import RiskV1ExportComplianceInquiriesPost201Response
from .risk_v1_export_compliance_inquiries_post201_response_error_information import RiskV1ExportComplianceInquiriesPost201ResponseErrorInformation
from .risk_v1_export_compliance_inquiries_post201_response_export_compliance_information import RiskV1ExportComplianceInquiriesPost201ResponseExportComplianceInformation
from .risk_v1_export_compliance_inquiries_post201_response_export_compliance_information_watch_list import RiskV1ExportComplianceInquiriesPost201ResponseExportComplianceInformationWatchList
from .risk_v1_export_compliance_inquiries_post201_response_export_compliance_information_watch_list_matches import RiskV1ExportComplianceInquiriesPost201ResponseExportComplianceInformationWatchListMatches
from .risk_v1_update_post201_response import RiskV1UpdatePost201Response
from .riskv1addressverifications_buyer_information import Riskv1addressverificationsBuyerInformation
from .riskv1addressverifications_order_information import Riskv1addressverificationsOrderInformation
Expand Down Expand Up @@ -729,7 +733,6 @@
from .riskv1decisionsidmarking_risk_information_marking_details import Riskv1decisionsidmarkingRiskInformationMarkingDetails
from .riskv1exportcomplianceinquiries_device_information import Riskv1exportcomplianceinquiriesDeviceInformation
from .riskv1exportcomplianceinquiries_export_compliance_information import Riskv1exportcomplianceinquiriesExportComplianceInformation
from .riskv1exportcomplianceinquiries_export_compliance_information_weights import Riskv1exportcomplianceinquiriesExportComplianceInformationWeights
from .riskv1exportcomplianceinquiries_order_information import Riskv1exportcomplianceinquiriesOrderInformation
from .riskv1exportcomplianceinquiries_order_information_bill_to import Riskv1exportcomplianceinquiriesOrderInformationBillTo
from .riskv1exportcomplianceinquiries_order_information_bill_to_company import Riskv1exportcomplianceinquiriesOrderInformationBillToCompany
Expand Down
32 changes: 29 additions & 3 deletions CyberSource/models/create_bundled_decision_manager_case_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ class CreateBundledDecisionManagerCaseRequest(object):
'merchant_information': 'Riskv1decisionsMerchantInformation',
'acquirer_information': 'Ptsv2paymentsAcquirerInformation',
'recurring_payment_information': 'Ptsv2paymentsRecurringPaymentInformation',
'consumer_authentication_information': 'Riskv1decisionsConsumerAuthenticationInformation'
'consumer_authentication_information': 'Riskv1decisionsConsumerAuthenticationInformation',
'watchlist_screening_information': 'Ptsv2paymentsWatchlistScreeningInformation'
}

attribute_map = {
Expand All @@ -61,10 +62,11 @@ class CreateBundledDecisionManagerCaseRequest(object):
'merchant_information': 'merchantInformation',
'acquirer_information': 'acquirerInformation',
'recurring_payment_information': 'recurringPaymentInformation',
'consumer_authentication_information': 'consumerAuthenticationInformation'
'consumer_authentication_information': 'consumerAuthenticationInformation',
'watchlist_screening_information': 'watchlistScreeningInformation'
}

def __init__(self, client_reference_information=None, processor_information=None, processing_information=None, payment_information=None, order_information=None, buyer_information=None, device_information=None, risk_information=None, travel_information=None, merchant_defined_information=None, merchant_information=None, acquirer_information=None, recurring_payment_information=None, consumer_authentication_information=None):
def __init__(self, client_reference_information=None, processor_information=None, processing_information=None, payment_information=None, order_information=None, buyer_information=None, device_information=None, risk_information=None, travel_information=None, merchant_defined_information=None, merchant_information=None, acquirer_information=None, recurring_payment_information=None, consumer_authentication_information=None, watchlist_screening_information=None):
"""
CreateBundledDecisionManagerCaseRequest - a model defined in Swagger
"""
Expand All @@ -83,6 +85,7 @@ def __init__(self, client_reference_information=None, processor_information=None
self._acquirer_information = None
self._recurring_payment_information = None
self._consumer_authentication_information = None
self._watchlist_screening_information = None

if client_reference_information is not None:
self.client_reference_information = client_reference_information
Expand Down Expand Up @@ -112,6 +115,8 @@ def __init__(self, client_reference_information=None, processor_information=None
self.recurring_payment_information = recurring_payment_information
if consumer_authentication_information is not None:
self.consumer_authentication_information = consumer_authentication_information
if watchlist_screening_information is not None:
self.watchlist_screening_information = watchlist_screening_information

@property
def client_reference_information(self):
Expand Down Expand Up @@ -407,6 +412,27 @@ def consumer_authentication_information(self, consumer_authentication_informatio

self._consumer_authentication_information = consumer_authentication_information

@property
def watchlist_screening_information(self):
"""
Gets the watchlist_screening_information of this CreateBundledDecisionManagerCaseRequest.
:return: The watchlist_screening_information of this CreateBundledDecisionManagerCaseRequest.
:rtype: Ptsv2paymentsWatchlistScreeningInformation
"""
return self._watchlist_screening_information

@watchlist_screening_information.setter
def watchlist_screening_information(self, watchlist_screening_information):
"""
Sets the watchlist_screening_information of this CreateBundledDecisionManagerCaseRequest.
:param watchlist_screening_information: The watchlist_screening_information of this CreateBundledDecisionManagerCaseRequest.
:type: Ptsv2paymentsWatchlistScreeningInformation
"""

self._watchlist_screening_information = watchlist_screening_information

def to_dict(self):
"""
Returns the model properties as a dict
Expand Down
Loading

0 comments on commit e9f6426

Please sign in to comment.