Skip to content

Commit

Permalink
Merge pull request #15 from Vantiv/US292211-PythonSDKCNPAPIv12.11
Browse files Browse the repository at this point in the history
Us292211 python sdkcnpap iv12.11
  • Loading branch information
VantivSDK committed Jan 30, 2020
2 parents 268a2b6 + 0915393 commit 49658eb
Show file tree
Hide file tree
Showing 21 changed files with 26,763 additions and 25,113 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
= Vantiv eCommerce Python SDK

==Version 12.11.0 (January 16, 2020)
* Feature: Added merchantCatagoryCode support to forceCapture, captureGivenAuth, sale, credit, authorization
* Feature: Added authenticationProtocolVersion support to fraudCheckType


==Version 12.10.1 (November 6,2019)
* BugFix: Fixed long encrypted files failed to decrypt

Expand Down
6,897 changes: 3,455 additions & 3,442 deletions SchemaCombined_v12.10.xsd → SchemaCombined_v12.11.xsd

Large diffs are not rendered by default.

11 changes: 11 additions & 0 deletions docs/source/complextypes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,16 @@ echeckType
----------
.. py:class:: vantivsdk.fields.echeckType
:var accNum: String or Number
:var accType: String or Number
:var ccdPaymentInformation: String or Number
:var checkNum: String or Number
:var routingNum: String or Number

echeckTypeCtx
-------------
.. py:class:: vantivsdk.fields.echeckTypeCtx
:var accNum: String or Number
:var accType: String or Number
:var ccdPaymentInformation: String or Number
Expand Down Expand Up @@ -251,6 +261,7 @@ fraudCheckType
.. py:class:: vantivsdk.fields.fraudCheckType
:var authenticatedByMerchant: String or Number
:var authenticationProtocolVersion: String or Number
:var authenticationTransactionId: String or Number
:var authenticationValue: String or Number
:var customerIpAddress: String or Number
Expand Down
2 changes: 1 addition & 1 deletion docs/source/index.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Vantiv eCommerce Python SDK 12.10.0!
Vantiv eCommerce Python SDK 12.11.0!
====================================
.. toctree::
:maxdepth: 2
Expand Down
17 changes: 11 additions & 6 deletions docs/source/transactions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ authorization
:var healthcareIIAS: instance of :py:class:`vantivsdk.fields.healthcareIIAS`
:var id: String or Number
:var lodgingInfo: instance of :py:class:`vantivsdk.fields.lodgingInfo`
:var merchantCategoryCode: String or Number
:var merchantData: instance of :py:class:`vantivsdk.fields.merchantDataType`
:var mpos: instance of :py:class:`vantivsdk.fields.mposType`
:var orderId: String or Number
Expand Down Expand Up @@ -148,6 +149,7 @@ captureGivenAuth
:var enhancedData: instance of :py:class:`vantivsdk.fields.enhancedData`
:var id: String or Number
:var lodgingInfo: instance of :py:class:`vantivsdk.fields.lodgingInfo`
:var merchantCategoryCode: String or Number
:var merchantData: instance of :py:class:`vantivsdk.fields.merchantDataType`
:var mpos: instance of :py:class:`vantivsdk.fields.mposType`
:var orderId: String or Number
Expand Down Expand Up @@ -193,6 +195,7 @@ credit
:var enhancedData: instance of :py:class:`vantivsdk.fields.enhancedData`
:var id: String or Number
:var lodgingInfo: instance of :py:class:`vantivsdk.fields.lodgingInfo`
:var merchantCategoryCode: String or Number
:var merchantData: instance of :py:class:`vantivsdk.fields.merchantDataType`
:var mpos: instance of :py:class:`vantivsdk.fields.mposType`
:var orderId: String or Number
Expand All @@ -213,7 +216,7 @@ customerCredit
--------------
.. py:class:: vantivsdk.fields.customerCredit
:var accountInfo: instance of :py:class:`vantivsdk.fields.echeckType`
:var accountInfo: instance of :py:class:`vantivsdk.fields.echeckTypeCtx`
:var amount: String or Number
:var customIdentifier: String or Number
:var customerId: String or Number
Expand All @@ -227,7 +230,7 @@ customerDebit
-------------
.. py:class:: vantivsdk.fields.customerDebit
:var accountInfo: instance of :py:class:`vantivsdk.fields.echeckType`
:var accountInfo: instance of :py:class:`vantivsdk.fields.echeckTypeCtx`
:var amount: String or Number
:var customIdentifier: String or Number
:var customerId: String or Number
Expand Down Expand Up @@ -411,6 +414,7 @@ forceCapture
:var enhancedData: instance of :py:class:`vantivsdk.fields.enhancedData`
:var id: String or Number
:var lodgingInfo: instance of :py:class:`vantivsdk.fields.lodgingInfo`
:var merchantCategoryCode: String or Number
:var merchantData: instance of :py:class:`vantivsdk.fields.merchantDataType`
:var mpos: instance of :py:class:`vantivsdk.fields.mposType`
:var orderId: String or Number
Expand Down Expand Up @@ -682,6 +686,7 @@ sale
:var id: String or Number
:var ideal: instance of :py:class:`vantivsdk.fields.idealType`
:var lodgingInfo: instance of :py:class:`vantivsdk.fields.lodgingInfo`
:var merchantCategoryCode: String or Number
:var merchantData: instance of :py:class:`vantivsdk.fields.merchantDataType`
:var mpos: instance of :py:class:`vantivsdk.fields.mposType`
:var orderId: String or Number
Expand Down Expand Up @@ -723,7 +728,7 @@ submerchantCredit
-----------------
.. py:class:: vantivsdk.fields.submerchantCredit
:var accountInfo: instance of :py:class:`vantivsdk.fields.echeckType`
:var accountInfo: instance of :py:class:`vantivsdk.fields.echeckTypeCtx`
:var amount: String or Number
:var customIdentifier: String or Number
:var customerId: String or Number
Expand All @@ -737,7 +742,7 @@ submerchantDebit
----------------
.. py:class:: vantivsdk.fields.submerchantDebit
:var accountInfo: instance of :py:class:`vantivsdk.fields.echeckType`
:var accountInfo: instance of :py:class:`vantivsdk.fields.echeckTypeCtx`
:var amount: String or Number
:var customIdentifier: String or Number
:var customerId: String or Number
Expand Down Expand Up @@ -824,7 +829,7 @@ vendorCredit
------------
.. py:class:: vantivsdk.fields.vendorCredit
:var accountInfo: instance of :py:class:`vantivsdk.fields.echeckType`
:var accountInfo: instance of :py:class:`vantivsdk.fields.echeckTypeCtx`
:var amount: String or Number
:var customerId: String or Number
:var fundingCustomerId: String or Number
Expand All @@ -838,7 +843,7 @@ vendorDebit
-----------
.. py:class:: vantivsdk.fields.vendorDebit
:var accountInfo: instance of :py:class:`vantivsdk.fields.echeckType`
:var accountInfo: instance of :py:class:`vantivsdk.fields.echeckTypeCtx`
:var amount: String or Number
:var customerId: String or Number
:var fundingCustomerId: String or Number
Expand Down
3 changes: 2 additions & 1 deletion samples/capture/force_capture.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
transaction.orderId = '12344'
transaction.orderSource = 'ecommerce'
transaction.id = 'ThisIsRequiredby11'
transaction.merchantCategoryCode= '1111'

# Create cardType object
card = fields.cardType()
Expand All @@ -73,7 +74,7 @@
response = online.request(transaction, conf)

# Print results
print('Message: %s' % response['forceCaptureResponse']['message'])

print('CNPTransaction ID: %s' % response['forceCaptureResponse']['cnpTxnId'])

# Send request to server and get response as XML
Expand Down

0 comments on commit 49658eb

Please sign in to comment.