Skip to content

Commit 93c5a4c

Browse files
authored
Merge pull request #80 from CyberSource/march-2022
Updates for March 2022 Release
2 parents f555c40 + 31f6610 commit 93c5a4c

33 files changed

Lines changed: 1082 additions & 126 deletions

File tree

CyberSource/__init__.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -626,6 +626,7 @@
626626
from .models.tss_v2_transactions_get200_response_application_information_applications import TssV2TransactionsGet200ResponseApplicationInformationApplications
627627
from .models.tss_v2_transactions_get200_response_buyer_information import TssV2TransactionsGet200ResponseBuyerInformation
628628
from .models.tss_v2_transactions_get200_response_client_reference_information import TssV2TransactionsGet200ResponseClientReferenceInformation
629+
from .models.tss_v2_transactions_get200_response_client_reference_information_partner import TssV2TransactionsGet200ResponseClientReferenceInformationPartner
629630
from .models.tss_v2_transactions_get200_response_consumer_authentication_information import TssV2TransactionsGet200ResponseConsumerAuthenticationInformation
630631
from .models.tss_v2_transactions_get200_response_consumer_authentication_information_strong_authentication import TssV2TransactionsGet200ResponseConsumerAuthenticationInformationStrongAuthentication
631632
from .models.tss_v2_transactions_get200_response_device_information import TssV2TransactionsGet200ResponseDeviceInformation
@@ -648,6 +649,8 @@
648649
from .models.tss_v2_transactions_get200_response_payment_information_bank_account import TssV2TransactionsGet200ResponsePaymentInformationBankAccount
649650
from .models.tss_v2_transactions_get200_response_payment_information_bank_mandate import TssV2TransactionsGet200ResponsePaymentInformationBankMandate
650651
from .models.tss_v2_transactions_get200_response_payment_information_card import TssV2TransactionsGet200ResponsePaymentInformationCard
652+
from .models.tss_v2_transactions_get200_response_payment_information_customer import TssV2TransactionsGet200ResponsePaymentInformationCustomer
653+
from .models.tss_v2_transactions_get200_response_payment_information_instrument_identifier import TssV2TransactionsGet200ResponsePaymentInformationInstrumentIdentifier
651654
from .models.tss_v2_transactions_get200_response_payment_information_invoice import TssV2TransactionsGet200ResponsePaymentInformationInvoice
652655
from .models.tss_v2_transactions_get200_response_payment_information_payment_type import TssV2TransactionsGet200ResponsePaymentInformationPaymentType
653656
from .models.tss_v2_transactions_get200_response_point_of_sale_information import TssV2TransactionsGet200ResponsePointOfSaleInformation
@@ -664,13 +667,13 @@
664667
from .models.tss_v2_transactions_get200_response_risk_information_rules import TssV2TransactionsGet200ResponseRiskInformationRules
665668
from .models.tss_v2_transactions_get200_response_risk_information_score import TssV2TransactionsGet200ResponseRiskInformationScore
666669
from .models.tss_v2_transactions_get200_response_sender_information import TssV2TransactionsGet200ResponseSenderInformation
670+
from .models.tss_v2_transactions_get200_response_token_information import TssV2TransactionsGet200ResponseTokenInformation
667671
from .models.tss_v2_transactions_post201_response import TssV2TransactionsPost201Response
668672
from .models.tss_v2_transactions_post201_response__embedded import TssV2TransactionsPost201ResponseEmbedded
669673
from .models.tss_v2_transactions_post201_response__embedded_application_information import TssV2TransactionsPost201ResponseEmbeddedApplicationInformation
670674
from .models.tss_v2_transactions_post201_response__embedded_application_information_applications import TssV2TransactionsPost201ResponseEmbeddedApplicationInformationApplications
671675
from .models.tss_v2_transactions_post201_response__embedded_buyer_information import TssV2TransactionsPost201ResponseEmbeddedBuyerInformation
672676
from .models.tss_v2_transactions_post201_response__embedded_client_reference_information import TssV2TransactionsPost201ResponseEmbeddedClientReferenceInformation
673-
from .models.tss_v2_transactions_post201_response__embedded_client_reference_information_partner import TssV2TransactionsPost201ResponseEmbeddedClientReferenceInformationPartner
674677
from .models.tss_v2_transactions_post201_response__embedded_consumer_authentication_information import TssV2TransactionsPost201ResponseEmbeddedConsumerAuthenticationInformation
675678
from .models.tss_v2_transactions_post201_response__embedded_device_information import TssV2TransactionsPost201ResponseEmbeddedDeviceInformation
676679
from .models.tss_v2_transactions_post201_response__embedded__links import TssV2TransactionsPost201ResponseEmbeddedLinks

CyberSource/apis/payments_api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def __init__(self, merchant_config, api_client=None):
4848
def create_payment(self, create_payment_request, **kwargs):
4949
"""
5050
Process a Payment
51-
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. Find more on [Authorization with Add-On Features page.](https://developer.cybersource.com/api/authorization-add-ons.html)
51+
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.
5252
This method makes a synchronous HTTP request by default. To make an
5353
asynchronous HTTP request, please define a `callback` function
5454
to be invoked when receiving the response.
@@ -78,7 +78,7 @@ def create_payment(self, create_payment_request, **kwargs):
7878
def create_payment_with_http_info(self, create_payment_request, **kwargs):
7979
"""
8080
Process a Payment
81-
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. Find more on [Authorization with Add-On Features page.](https://developer.cybersource.com/api/authorization-add-ons.html)
81+
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.
8282
This method makes a synchronous HTTP request by default. To make an
8383
asynchronous HTTP request, please define a `callback` function
8484
to be invoked when receiving the response.

CyberSource/models/__init__.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -626,6 +626,7 @@
626626
from .tss_v2_transactions_get200_response_application_information_applications import TssV2TransactionsGet200ResponseApplicationInformationApplications
627627
from .tss_v2_transactions_get200_response_buyer_information import TssV2TransactionsGet200ResponseBuyerInformation
628628
from .tss_v2_transactions_get200_response_client_reference_information import TssV2TransactionsGet200ResponseClientReferenceInformation
629+
from .tss_v2_transactions_get200_response_client_reference_information_partner import TssV2TransactionsGet200ResponseClientReferenceInformationPartner
629630
from .tss_v2_transactions_get200_response_consumer_authentication_information import TssV2TransactionsGet200ResponseConsumerAuthenticationInformation
630631
from .tss_v2_transactions_get200_response_consumer_authentication_information_strong_authentication import TssV2TransactionsGet200ResponseConsumerAuthenticationInformationStrongAuthentication
631632
from .tss_v2_transactions_get200_response_device_information import TssV2TransactionsGet200ResponseDeviceInformation
@@ -648,6 +649,8 @@
648649
from .tss_v2_transactions_get200_response_payment_information_bank_account import TssV2TransactionsGet200ResponsePaymentInformationBankAccount
649650
from .tss_v2_transactions_get200_response_payment_information_bank_mandate import TssV2TransactionsGet200ResponsePaymentInformationBankMandate
650651
from .tss_v2_transactions_get200_response_payment_information_card import TssV2TransactionsGet200ResponsePaymentInformationCard
652+
from .tss_v2_transactions_get200_response_payment_information_customer import TssV2TransactionsGet200ResponsePaymentInformationCustomer
653+
from .tss_v2_transactions_get200_response_payment_information_instrument_identifier import TssV2TransactionsGet200ResponsePaymentInformationInstrumentIdentifier
651654
from .tss_v2_transactions_get200_response_payment_information_invoice import TssV2TransactionsGet200ResponsePaymentInformationInvoice
652655
from .tss_v2_transactions_get200_response_payment_information_payment_type import TssV2TransactionsGet200ResponsePaymentInformationPaymentType
653656
from .tss_v2_transactions_get200_response_point_of_sale_information import TssV2TransactionsGet200ResponsePointOfSaleInformation
@@ -664,13 +667,13 @@
664667
from .tss_v2_transactions_get200_response_risk_information_rules import TssV2TransactionsGet200ResponseRiskInformationRules
665668
from .tss_v2_transactions_get200_response_risk_information_score import TssV2TransactionsGet200ResponseRiskInformationScore
666669
from .tss_v2_transactions_get200_response_sender_information import TssV2TransactionsGet200ResponseSenderInformation
670+
from .tss_v2_transactions_get200_response_token_information import TssV2TransactionsGet200ResponseTokenInformation
667671
from .tss_v2_transactions_post201_response import TssV2TransactionsPost201Response
668672
from .tss_v2_transactions_post201_response__embedded import TssV2TransactionsPost201ResponseEmbedded
669673
from .tss_v2_transactions_post201_response__embedded_application_information import TssV2TransactionsPost201ResponseEmbeddedApplicationInformation
670674
from .tss_v2_transactions_post201_response__embedded_application_information_applications import TssV2TransactionsPost201ResponseEmbeddedApplicationInformationApplications
671675
from .tss_v2_transactions_post201_response__embedded_buyer_information import TssV2TransactionsPost201ResponseEmbeddedBuyerInformation
672676
from .tss_v2_transactions_post201_response__embedded_client_reference_information import TssV2TransactionsPost201ResponseEmbeddedClientReferenceInformation
673-
from .tss_v2_transactions_post201_response__embedded_client_reference_information_partner import TssV2TransactionsPost201ResponseEmbeddedClientReferenceInformationPartner
674677
from .tss_v2_transactions_post201_response__embedded_consumer_authentication_information import TssV2TransactionsPost201ResponseEmbeddedConsumerAuthenticationInformation
675678
from .tss_v2_transactions_post201_response__embedded_device_information import TssV2TransactionsPost201ResponseEmbeddedDeviceInformation
676679
from .tss_v2_transactions_post201_response__embedded__links import TssV2TransactionsPost201ResponseEmbeddedLinks

CyberSource/models/pts_v2_payments_refund_post201_response_processor_information.py

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ class PtsV2PaymentsRefundPost201ResponseProcessorInformation(object):
3131
and the value is json key in definition.
3232
"""
3333
swagger_types = {
34+
'approval_code': 'str',
3435
'transaction_id': 'str',
3536
'forwarded_acquirer_code': 'str',
3637
'merchant_number': 'str',
@@ -39,24 +40,28 @@ class PtsV2PaymentsRefundPost201ResponseProcessorInformation(object):
3940
}
4041

4142
attribute_map = {
43+
'approval_code': 'approvalCode',
4244
'transaction_id': 'transactionId',
4345
'forwarded_acquirer_code': 'forwardedAcquirerCode',
4446
'merchant_number': 'merchantNumber',
4547
'response_code': 'responseCode',
4648
'ach_verification': 'achVerification'
4749
}
4850

49-
def __init__(self, transaction_id=None, forwarded_acquirer_code=None, merchant_number=None, response_code=None, ach_verification=None):
51+
def __init__(self, approval_code=None, transaction_id=None, forwarded_acquirer_code=None, merchant_number=None, response_code=None, ach_verification=None):
5052
"""
5153
PtsV2PaymentsRefundPost201ResponseProcessorInformation - a model defined in Swagger
5254
"""
5355

56+
self._approval_code = None
5457
self._transaction_id = None
5558
self._forwarded_acquirer_code = None
5659
self._merchant_number = None
5760
self._response_code = None
5861
self._ach_verification = None
5962

63+
if approval_code is not None:
64+
self.approval_code = approval_code
6065
if transaction_id is not None:
6166
self.transaction_id = transaction_id
6267
if forwarded_acquirer_code is not None:
@@ -68,6 +73,29 @@ def __init__(self, transaction_id=None, forwarded_acquirer_code=None, merchant_n
6873
if ach_verification is not None:
6974
self.ach_verification = ach_verification
7075

76+
@property
77+
def approval_code(self):
78+
"""
79+
Gets the approval_code of this PtsV2PaymentsRefundPost201ResponseProcessorInformation.
80+
Authorization code. Returned only when the processor returns this value. The length of this value depends on your processor. Returned by authorization service. #### PIN debit Authorization code that is returned by the processor. Returned by PIN debit credit. #### Elavon Encrypted Account Number Program The returned value is OFFLINE. #### TSYS Acquiring Solutions The returned value for a successful zero amount authorization is 000000.
81+
82+
:return: The approval_code of this PtsV2PaymentsRefundPost201ResponseProcessorInformation.
83+
:rtype: str
84+
"""
85+
return self._approval_code
86+
87+
@approval_code.setter
88+
def approval_code(self, approval_code):
89+
"""
90+
Sets the approval_code of this PtsV2PaymentsRefundPost201ResponseProcessorInformation.
91+
Authorization code. Returned only when the processor returns this value. The length of this value depends on your processor. Returned by authorization service. #### PIN debit Authorization code that is returned by the processor. Returned by PIN debit credit. #### Elavon Encrypted Account Number Program The returned value is OFFLINE. #### TSYS Acquiring Solutions The returned value for a successful zero amount authorization is 000000.
92+
93+
:param approval_code: The approval_code of this PtsV2PaymentsRefundPost201ResponseProcessorInformation.
94+
:type: str
95+
"""
96+
97+
self._approval_code = approval_code
98+
7199
@property
72100
def transaction_id(self):
73101
"""

CyberSource/models/ptsv2payments_merchant_information_merchant_descriptor.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ def administrative_area(self, administrative_area):
281281
def phone(self):
282282
"""
283283
Gets the phone of this Ptsv2paymentsMerchantInformationMerchantDescriptor.
284-
Merchnat phone as contact information for CNP transactions
284+
Merchant phone as contact information for CNP transactions
285285
286286
:return: The phone of this Ptsv2paymentsMerchantInformationMerchantDescriptor.
287287
:rtype: str
@@ -292,7 +292,7 @@ def phone(self):
292292
def phone(self, phone):
293293
"""
294294
Sets the phone of this Ptsv2paymentsMerchantInformationMerchantDescriptor.
295-
Merchnat phone as contact information for CNP transactions
295+
Merchant phone as contact information for CNP transactions
296296
297297
:param phone: The phone of this Ptsv2paymentsMerchantInformationMerchantDescriptor.
298298
:type: str

0 commit comments

Comments
 (0)