Skip to content

Commit 8c7a17c

Browse files
authored
Merge pull request #87 from CyberSource/july-2022
Changes for next release
2 parents f594fb6 + 5c5eba7 commit 8c7a17c

7 files changed

+97
-8
lines changed

CyberSource/models/mit_void_request.py

+29-3
Original file line numberDiff line numberDiff line change
@@ -32,26 +32,31 @@ class MitVoidRequest(object):
3232
"""
3333
swagger_types = {
3434
'client_reference_information': 'Ptsv2paymentsClientReferenceInformation',
35-
'payment_information': 'Ptsv2paymentsidvoidsPaymentInformation'
35+
'payment_information': 'Ptsv2paymentsidvoidsPaymentInformation',
36+
'order_information': 'Ptsv2paymentsidvoidsOrderInformation'
3637
}
3738

3839
attribute_map = {
3940
'client_reference_information': 'clientReferenceInformation',
40-
'payment_information': 'paymentInformation'
41+
'payment_information': 'paymentInformation',
42+
'order_information': 'orderInformation'
4143
}
4244

43-
def __init__(self, client_reference_information=None, payment_information=None):
45+
def __init__(self, client_reference_information=None, payment_information=None, order_information=None):
4446
"""
4547
MitVoidRequest - a model defined in Swagger
4648
"""
4749

4850
self._client_reference_information = None
4951
self._payment_information = None
52+
self._order_information = None
5053

5154
if client_reference_information is not None:
5255
self.client_reference_information = client_reference_information
5356
if payment_information is not None:
5457
self.payment_information = payment_information
58+
if order_information is not None:
59+
self.order_information = order_information
5560

5661
@property
5762
def client_reference_information(self):
@@ -95,6 +100,27 @@ def payment_information(self, payment_information):
95100

96101
self._payment_information = payment_information
97102

103+
@property
104+
def order_information(self):
105+
"""
106+
Gets the order_information of this MitVoidRequest.
107+
108+
:return: The order_information of this MitVoidRequest.
109+
:rtype: Ptsv2paymentsidvoidsOrderInformation
110+
"""
111+
return self._order_information
112+
113+
@order_information.setter
114+
def order_information(self, order_information):
115+
"""
116+
Sets the order_information of this MitVoidRequest.
117+
118+
:param order_information: The order_information of this MitVoidRequest.
119+
:type: Ptsv2paymentsidvoidsOrderInformation
120+
"""
121+
122+
self._order_information = order_information
123+
98124
def to_dict(self):
99125
"""
100126
Returns the model properties as a dict

CyberSource/models/pts_v2_payments_refund_post201_response_processor_information.py

+31-3
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ class PtsV2PaymentsRefundPost201ResponseProcessorInformation(object):
3636
'forwarded_acquirer_code': 'str',
3737
'merchant_number': 'str',
3838
'response_code': 'str',
39-
'ach_verification': 'PtsV2PaymentsPost201ResponseProcessorInformationAchVerification'
39+
'ach_verification': 'PtsV2PaymentsPost201ResponseProcessorInformationAchVerification',
40+
'network_transaction_id': 'str'
4041
}
4142

4243
attribute_map = {
@@ -45,10 +46,11 @@ class PtsV2PaymentsRefundPost201ResponseProcessorInformation(object):
4546
'forwarded_acquirer_code': 'forwardedAcquirerCode',
4647
'merchant_number': 'merchantNumber',
4748
'response_code': 'responseCode',
48-
'ach_verification': 'achVerification'
49+
'ach_verification': 'achVerification',
50+
'network_transaction_id': 'networkTransactionId'
4951
}
5052

51-
def __init__(self, approval_code=None, transaction_id=None, forwarded_acquirer_code=None, merchant_number=None, response_code=None, ach_verification=None):
53+
def __init__(self, approval_code=None, transaction_id=None, forwarded_acquirer_code=None, merchant_number=None, response_code=None, ach_verification=None, network_transaction_id=None):
5254
"""
5355
PtsV2PaymentsRefundPost201ResponseProcessorInformation - a model defined in Swagger
5456
"""
@@ -59,6 +61,7 @@ def __init__(self, approval_code=None, transaction_id=None, forwarded_acquirer_c
5961
self._merchant_number = None
6062
self._response_code = None
6163
self._ach_verification = None
64+
self._network_transaction_id = None
6265

6366
if approval_code is not None:
6467
self.approval_code = approval_code
@@ -72,6 +75,8 @@ def __init__(self, approval_code=None, transaction_id=None, forwarded_acquirer_c
7275
self.response_code = response_code
7376
if ach_verification is not None:
7477
self.ach_verification = ach_verification
78+
if network_transaction_id is not None:
79+
self.network_transaction_id = network_transaction_id
7580

7681
@property
7782
def approval_code(self):
@@ -209,6 +214,29 @@ def ach_verification(self, ach_verification):
209214

210215
self._ach_verification = ach_verification
211216

217+
@property
218+
def network_transaction_id(self):
219+
"""
220+
Gets the network_transaction_id of this PtsV2PaymentsRefundPost201ResponseProcessorInformation.
221+
Same value as `processorInformation.transactionId`
222+
223+
:return: The network_transaction_id of this PtsV2PaymentsRefundPost201ResponseProcessorInformation.
224+
:rtype: str
225+
"""
226+
return self._network_transaction_id
227+
228+
@network_transaction_id.setter
229+
def network_transaction_id(self, network_transaction_id):
230+
"""
231+
Sets the network_transaction_id of this PtsV2PaymentsRefundPost201ResponseProcessorInformation.
232+
Same value as `processorInformation.transactionId`
233+
234+
:param network_transaction_id: The network_transaction_id of this PtsV2PaymentsRefundPost201ResponseProcessorInformation.
235+
:type: str
236+
"""
237+
238+
self._network_transaction_id = network_transaction_id
239+
212240
def to_dict(self):
213241
"""
214242
Returns the model properties as a dict

docs/MitVoidRequest.md

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ Name | Type | Description | Notes
55
------------ | ------------- | ------------- | -------------
66
**client_reference_information** | [**Ptsv2paymentsClientReferenceInformation**](Ptsv2paymentsClientReferenceInformation.md) | | [optional]
77
**payment_information** | [**Ptsv2paymentsidvoidsPaymentInformation**](Ptsv2paymentsidvoidsPaymentInformation.md) | | [optional]
8+
**order_information** | [**Ptsv2paymentsidvoidsOrderInformation**](Ptsv2paymentsidvoidsOrderInformation.md) | | [optional]
89

910
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
1011

docs/PtsV2PaymentsRefundPost201ResponseProcessorInformation.md

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ Name | Type | Description | Notes
99
**merchant_number** | **str** | Identifier that was assigned to you by your acquirer. This value must be printed on the receipt. #### Returned by Authorizations and Credits. This reply field is only supported by merchants who have installed client software on their POS terminals and use these processors: - American Express Direct - Credit Mutuel-CIC - FDC Nashville Global - OmniPay Direct - SIX | [optional]
1010
**response_code** | **str** | For most processors, this is the error message sent directly from the bank. Returned only when the processor returns this value. **Important** Do not use this field to evaluate the result of the authorization. #### PIN debit Response value that is returned by the processor or bank. **Important** Do not use this field to evaluate the results of the transaction request. Returned by PIN debit credit, PIN debit purchase, and PIN debit reversal. #### AIBMS If this value is `08`, you can accept the transaction if the customer provides you with identification. #### Atos This value is the response code sent from Atos and it might also include the response code from the bank. Format: `aa,bb` with the two values separated by a comma and where: - `aa` is the two-digit error message from Atos. - `bb` is the optional two-digit error message from the bank. #### Comercio Latino This value is the status code and the error or response code received from the processor separated by a colon. Format: [status code]:E[error code] or [status code]:R[response code] Example `2:R06` #### JCN Gateway Processor-defined detail error code. The associated response category code is in the `processorInformation.responseCategoryCode` field. String (3) | [optional]
1111
**ach_verification** | [**PtsV2PaymentsPost201ResponseProcessorInformationAchVerification**](PtsV2PaymentsPost201ResponseProcessorInformationAchVerification.md) | | [optional]
12+
**network_transaction_id** | **str** | Same value as `processorInformation.transactionId` | [optional]
1213

1314
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
1415

generator/cybersource-rest-spec.json

+32
Original file line numberDiff line numberDiff line change
@@ -14468,6 +14468,10 @@
1446814468
"description": "Raw results from the ACH verification service.\nFor details about this service and the possible values for the raw results, see \"ACH Verification\" and \"Verification Codes\" in the [Electronic Check Services Using the SCMP API](https://apps.cybersource.com/library/documentation/dev_guides/EChecks_SCMP_API/html/).\n"
1446914469
}
1447014470
}
14471+
},
14472+
"networkTransactionId": {
14473+
"type": "string",
14474+
"description": "Same value as `processorInformation.transactionId`"
1447114475
}
1447214476
}
1447314477
},
@@ -16865,6 +16869,10 @@
1686516869
"description": "Raw results from the ACH verification service.\nFor details about this service and the possible values for the raw results, see \"ACH Verification\" and \"Verification Codes\" in the [Electronic Check Services Using the SCMP API](https://apps.cybersource.com/library/documentation/dev_guides/EChecks_SCMP_API/html/).\n"
1686616870
}
1686716871
}
16872+
},
16873+
"networkTransactionId": {
16874+
"type": "string",
16875+
"description": "Same value as `processorInformation.transactionId`"
1686816876
}
1686916877
}
1687016878
},
@@ -19551,6 +19559,10 @@
1955119559
"description": "Raw results from the ACH verification service.\nFor details about this service and the possible values for the raw results, see \"ACH Verification\" and \"Verification Codes\" in the [Electronic Check Services Using the SCMP API](https://apps.cybersource.com/library/documentation/dev_guides/EChecks_SCMP_API/html/).\n"
1955219560
}
1955319561
}
19562+
},
19563+
"networkTransactionId": {
19564+
"type": "string",
19565+
"description": "Same value as `processorInformation.transactionId`"
1955419566
}
1955519567
}
1955619568
},
@@ -21521,6 +21533,26 @@
2152121533
}
2152221534
}
2152321535
}
21536+
},
21537+
"orderInformation": {
21538+
"type": "object",
21539+
"properties": {
21540+
"amountDetails": {
21541+
"type": "object",
21542+
"properties": {
21543+
"totalAmount": {
21544+
"type": "string",
21545+
"maxLength": 19,
21546+
"description": "Grand total for the order. This value cannot be negative. You can include a decimal point (.), but no other special characters.\nCyberSource truncates the amount to the correct number of decimal places.\n\n**Note** For CTV, FDCCompass, Paymentech processors, the maximum length for this field is 12.\n\n**Important** Some processors have specific requirements and limitations, such as maximum amounts and maximum field lengths. For details, see:\n- \"Authorization Information for Specific Processors\" in the [Credit Card Services Using the SCMP API Guide](https://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/).\n- \"Capture Information for Specific Processors\" in the [Credit Card Services Using the SCMP API Guide](https://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/).\n- \"Credit Information for Specific Processors\" in the [Credit Card Services Using the SCMP API Guide](https://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/).\n\nIf your processor supports zero amount authorizations, you can set this field to 0 for the authorization to check if the card is lost or stolen. For details, see \"Zero Amount Authorizations,\" \"Credit Information for Specific Processors\" in [Credit Card Services Using the SCMP API.](https://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/)\n\n#### Card Present\nRequired to include either this field or `orderInformation.lineItems[].unitPrice` for the order.\n\n#### Invoicing\nRequired for creating a new invoice.\n\n#### PIN Debit\nAmount you requested for the PIN debit purchase. This value is returned for partial authorizations. The issuing bank can approve a partial amount if the balance on the debit card is less than the requested transaction amount.\n\nRequired field for PIN Debit purchase and PIN Debit credit requests.\nOptional field for PIN Debit reversal requests.\n\n#### GPX\nThis field is optional for reversing an authorization or credit; however, for all other processors, these fields are required.\n\n#### DCC with a Third-Party Provider\nSet this field to the converted amount that was returned by the DCC provider. You must include either this field or the 1st line item in the order and the specific line-order amount in your request. For details, see `grand_total_amount` field description in [Dynamic Currency Conversion For First Data Using the SCMP API](http://apps.cybersource.com/library/documentation/dev_guides/DCC_FirstData_SCMP/DCC_FirstData_SCMP_API.pdf).\n\n#### FDMS South\nIf you accept IDR or CLP currencies, see the entry for FDMS South in \"Authorization Information for Specific Processors\" of the [Credit Card Services Using the SCMP API.](https://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/)\n\n#### DCC for First Data\nNot used.\n"
21547+
},
21548+
"currency": {
21549+
"type": "string",
21550+
"maxLength": 3,
21551+
"description": "Currency used for the order. Use the three-character [ISO Standard Currency Codes.](http://apps.cybersource.com/library/documentation/sbc/quickref/currencies.pdf)\n\n#### Used by\n**Authorization**\nRequired field.\n\n**Authorization Reversal**\nFor an authorization reversal (`reversalInformation`) or a capture (`processingOptions.capture` is set to `true`), you must use the same currency that you used in your payment authorization request.\n\n#### PIN Debit\nCurrency for the amount you requested for the PIN debit purchase. This value is returned for partial authorizations. The issuing bank can approve a partial amount if the balance on the debit card is less than the requested transaction amount. For the possible values, see the [ISO Standard Currency Codes](https://developer.cybersource.com/library/documentation/sbc/quickref/currencies.pdf).\nReturned by PIN debit purchase.\n\nFor PIN debit reversal requests, you must use the same currency that was used for the PIN debit purchase or PIN debit credit that you are reversing.\nFor the possible values, see the [ISO Standard Currency Codes](https://developer.cybersource.com/library/documentation/sbc/quickref/currencies.pdf).\n\nRequired field for PIN Debit purchase and PIN Debit credit requests.\nOptional field for PIN Debit reversal requests.\n\n#### GPX\nThis field is optional for reversing an authorization or credit.\n\n#### DCC for First Data\nYour local currency. For details, see the `currency` field description in [Dynamic Currency Conversion For First Data Using the SCMP API](http://apps.cybersource.com/library/documentation/dev_guides/DCC_FirstData_SCMP/DCC_FirstData_SCMP_API.pdf).\n\n#### Tax Calculation\nRequired for international tax and value added tax only.\nOptional for U.S. and Canadian taxes.\nYour local currency.\n"
21552+
}
21553+
}
21554+
}
21555+
}
2152421556
}
2152521557
},
2152621558
"example": {

generator/cybersource_python_sdk_gen.bat

+2-1
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,9 @@ powershell -Command "(Get-Content ..\CyberSource\apis\asymmetric_key_management_
5050

5151
powershell -Command "(Get-Content ..\CyberSource\apis\instrument_identifier_api.py) | ForEach-Object { $_ -replace '''/tms/v1/instrumentidentifiers/{instrumentIdentifierTokenId}/enrollment''', '''/tms/v1/instrumentidentifiers/{instrument_identifier_token_id}/enrollment'''} | Set-Content ..\CyberSource\apis\instrument_identifier_api.py"
5252

53-
powershell -Command "(Get-Content ..\CyberSource\apis\secure_file_share_api.py) | ForEach-Object { $_ -replace 'select_header_content_type\(\[''application/json', 'select_header_content_type([''*/*'} | Set-Content ..\CyberSource\apis\secure_file_share_api.py"
53+
powershell -Command "(Get-Content ..\CyberSource\apis\secure_file_share_api.py) | ForEach-Object { $_ -replace 'select_header_content_type\(\[''\*_\/_\*;charset=utf-8', 'select_header_content_type([''*/*;charset=utf-8'} | Set-Content ..\CyberSource\apis\secure_file_share_api.py"
5454

55+
powershell -Command "(Get-Content ..\docs\SecureFileShareApi.md) | ForEach-Object { $_ -replace '\*\*Content-Type\*\*: \*_\/_\*;charset=utf-8', '**Content-Type**: */*;charset=utf-8'} | Set-Content ..\docs\SecureFileShareApi.md"
5556

5657
REM powershell -Command "(Get-Content ..\CyberSource\apis\__init__.py) | ForEach-Object { $_ -replace 'from .download_dtd_api import DownloadDTDApi', ''} | ForEach-Object { $_ -replace 'from .download_xsd_api import DownloadXSDApi', ''} | Set-Content ..\CyberSource\apis\__init__.py"
5758

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from setuptools import setup, find_packages
55

66
NAME = "cybersource-rest-client-python"
7-
VERSION = "0.0.36"
7+
VERSION = "0.0.38"
88
# To install the library, run the following
99
#
1010
# python setup.py install

0 commit comments

Comments
 (0)