Skip to content

Commit 14c9dc0

Browse files
Nitinsljayeshb1313Nitin Lingayat
authored
Upgrade Python SDK v12.40.0 (#38)
* commiting xsd and code changes * commiting code changes * commit byteArray changes * commiting code changes * commiting changelog * committing code changes * Committing code changes * commiting code changes for namespace issue * committing code changes --------- Co-authored-by: e5715887 <jayeshbhosale1313@gmail.com> Co-authored-by: Nitin Lingayat <nlingayat@nufl2rdd00389.vapdev.int>
1 parent 8d64ad2 commit 14c9dc0

27 files changed

+13944
-12270
lines changed

CHANGELOG

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,28 @@
11
= Vantiv eCommerce Python SDK
22

3+
==Version 12.40.0 (v12.40.0)(October 16, 2024)
4+
* Change: [cnpAPI v12.40] In authorization,sale and captureGivenAuth request new elements added-> 'typeOfDigitalCurrency' and 'conversionAffiliateId'.
5+
* Change: [cnpAPI v12.40] In existing simple type transactionAmountType range added between minInclusive value -999999999999 and maxInclusive value 999999999999
6+
* Change: [cnpAPI v12.40] In existing type authenticationProtocolVersionType new values '3','4','5','6','7','8' and '9' are added
7+
8+
==Version 12.39.0 (October 16, 2024)
9+
* Change: [cnpAPI v12.39] In 'subMerchantCredit' 'payFacCredit','reserveCredit', 'payoutOrgCreditRequest' base changed from 'transactionTypeWithReportGroup' to 'transactionTypeWithReportGroupAndRtp'.
10+
* Change: [cnpAPI v12.39] To support new changed extension base for above txns ,New Complextype 'transactionTypeWithReportGroupAndRtp' added.
11+
* Change: [cnpAPI v12.39] New element 'fundingTransactionReferenceNumber' in authorization and sale response.
12+
13+
==Version 12.38.0 (October 16, 2024)
14+
* Change: [cnpAPI v12.38] In existing Enum 'ActionTypeEnum' new value 'FIVD' added
15+
* Change: [cnpAPI v12.38] In existing complex element 'baseRequest' two more choices are added 'encryptionKeyRequest' and 'encryptedPayload'
16+
* Change: [cnpAPI v12.38] In existing complex element 'cnpOnlineResponse' one more choice is added 'encryptionKeyResponse'
17+
* Change: [cnpAPI v12.38] New element 'encryptionKeyRequest' is added of type 'encryptionKeyRequestEnum'
18+
* Change: [cnpAPI v12.38] To support 'encryptionKeyRequest' new Enum 'encryptionKeyRequestEnum' added with values 'CURRENT' and 'PREVIOUS'
19+
* Change: [cnpAPI v12.38] New complex element 'encryptionKeyResponse' is added with simple elements ->'encryptionKeySequence' of type 'encryptionKeySequenceType' and 'encryptionKey' of type 'encryptionKeyType'
20+
* Change: [cnpAPI v12.38] To support 'encryptionKeySequence' new simple type 'encryptionKeySequenceType' added with total Digits 19
21+
* Change: [cnpAPI v12.38] To support 'encryptionKey' new simple type 'encryptionKeyType' of type string with maxLength 15000
22+
* Change: [cnpAPI v12.38] New complex element 'encryptedPayload' is added with simple elements ->'encryptionKeySequence' of type 'encryptionKeySequenceType' and 'payload' of type 'payloadType'
23+
* Change: [cnpAPI v12.38] To support 'payload' new simple type 'payloadType' of type string with maxLength 15000
24+
* Change: [cnpAPI v12.38] In capture Request new complex element 'partialCapture' is added with elements-> 'partialCaptureSequenceNumber' of type 'integer' and 'partialCaptureTotalCount' of type 'partialCaptureCount'
25+
326
==Version 12.37.1 (v12.37.1)(August 28, 2024)
427
* Change: [cnpAPI v12.37.1] Added change to upgrade to a newer version of PyXB-X library which supports Python 3.12
528

SchemaCombined_v12.37.xsd renamed to SchemaCombined_v12.40.xsd

Lines changed: 63 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -277,6 +277,11 @@
277277

278278

279279

280+
281+
282+
283+
284+
280285

281286
<!--cnpRecurring-->
282287

@@ -541,6 +546,15 @@
541546
</xs:complexContent>
542547
</xs:complexType>
543548

549+
<xs:complexType name="transactionTypeWithReportGroupAndRtp">
550+
<xs:complexContent>
551+
<xs:extension base="xp:transactionType">
552+
<xs:attribute name="reportGroup" type="xs:string" use="required"/>
553+
<xs:attribute name="rtp" type="xs:boolean" use="optional" />
554+
</xs:extension>
555+
</xs:complexContent>
556+
</xs:complexType>
557+
544558
<xs:complexType name="merchantDataType">
545559
<xs:all>
546560
<xs:element name="campaign" type="xs:string" minOccurs="0"/>
@@ -681,6 +695,9 @@
681695
<xs:element name="authIndicator" type="xs:string" minOccurs="0"/>
682696
<xs:element ref="xp:accountFundingTransactionData" minOccurs="0"/>
683697
<xs:element name="fraudCheckAction" type="xs:string" minOccurs="0"/>
698+
<!-- US1938960-77433-->
699+
<xs:element name="typeOfDigitalCurrency" type="xs:string" minOccurs="0"/>
700+
<xs:element name="conversionAffiliateId" type="xs:string" minOccurs="0"/>
684701
</xs:sequence>
685702
</xs:choice>
686703
</xs:extension>
@@ -741,6 +758,7 @@
741758
<xs:element name="pin" type="xs:string" minOccurs="0"/>
742759
<xs:element ref="xp:passengerTransportData" minOccurs="0"/>
743760
<xs:element name="foreignRetailerIndicator" type="xs:string" minOccurs="0"/>
761+
<xs:element ref="xp:partialCapture" minOccurs="0"/>
744762
</xs:all>
745763
</xs:extension>
746764
</xs:complexContent>
@@ -839,6 +857,9 @@
839857
<xs:element ref="xp:passengerTransportData" minOccurs="0"/>
840858
<xs:element name="foreignRetailerIndicator" type="xs:string" minOccurs="0"/>
841859
<xs:element ref="xp:accountFundingTransactionData" minOccurs="0"/>
860+
<!-- US1938960-77433-->
861+
<xs:element name="typeOfDigitalCurrency" type="xs:string" minOccurs="0"/>
862+
<xs:element name="conversionAffiliateId" type="xs:string" minOccurs="0"/>
842863
</xs:sequence>
843864
</xs:extension>
844865
</xs:complexContent>
@@ -921,6 +942,9 @@
921942
<xs:element name="foreignRetailerIndicator" type="xs:string" minOccurs="0"/>
922943
<xs:element ref="xp:accountFundingTransactionData" minOccurs="0"/>
923944
<xs:element name="fraudCheckAction" type="xs:string" minOccurs="0"/>
945+
<!-- US1938960-77433-->
946+
<xs:element name="typeOfDigitalCurrency" type="xs:string" minOccurs="0"/>
947+
<xs:element name="conversionAffiliateId" type="xs:string" minOccurs="0"/>
924948
</xs:sequence>
925949
</xs:extension>
926950
</xs:complexContent>
@@ -1339,6 +1363,7 @@
13391363
<xs:element name="checkoutId" type="xs:string" minOccurs="0"/>
13401364
<!--If AuthMax is used -->
13411365
<xs:element ref="xp:authMax" minOccurs="0"/>
1366+
<xs:element name="fundingTransactionReferenceNumber" type="xs:string" minOccurs="0"/>
13421367
</xs:all>
13431368
</xs:extension>
13441369
</xs:complexContent>
@@ -1730,6 +1755,7 @@
17301755
<xs:element name="checkoutId" type="xs:string" minOccurs="0"/>
17311756
<!--If AuthMax is used -->
17321757
<xs:element ref="xp:authMax" minOccurs="0"/>
1758+
<xs:element name="fundingTransactionReferenceNumber" type="xs:string" minOccurs="0"/>
17331759
</xs:all>
17341760
</xs:extension>
17351761
</xs:complexContent>
@@ -2520,7 +2546,7 @@
25202546
<xs:element name="payFacCredit" substitutionGroup="xp:transaction">
25212547
<xs:complexType>
25222548
<xs:complexContent>
2523-
<xs:extension base="xp:transactionTypeWithReportGroup">
2549+
<xs:extension base="xp:transactionTypeWithReportGroupAndRtp">
25242550
<xs:choice>
25252551
<xs:sequence>
25262552
<xs:element name="fundingSubmerchantId" type="xs:string"/>
@@ -2576,7 +2602,7 @@
25762602
<xs:element name="reserveCredit" substitutionGroup="xp:transaction">
25772603
<xs:complexType>
25782604
<xs:complexContent>
2579-
<xs:extension base="xp:transactionTypeWithReportGroup">
2605+
<xs:extension base="xp:transactionTypeWithReportGroupAndRtp">
25802606
<xs:choice>
25812607
<xs:sequence>
25822608
<xs:choice>
@@ -2924,7 +2950,7 @@
29242950
<xs:element name="payoutOrgCredit" substitutionGroup="xp:transaction">
29252951
<xs:complexType>
29262952
<xs:complexContent>
2927-
<xs:extension base="xp:transactionTypeWithReportGroup">
2953+
<xs:extension base="xp:transactionTypeWithReportGroupAndRtp">
29282954
<xs:choice>
29292955
<xs:sequence>
29302956
<xs:element name="fundingCustomerId" type="xs:string"/>
@@ -3289,6 +3315,15 @@
32893315
</xs:all>
32903316
</xs:complexType>
32913317

3318+
<xs:element name="partialCapture">
3319+
<xs:complexType>
3320+
<xs:sequence>
3321+
<xs:element name="partialCaptureSequenceNumber" type="xs:integer" minOccurs="0"/>
3322+
<xs:element name="partialCaptureTotalCount" type="xs:integer" minOccurs="0"/>
3323+
</xs:sequence>
3324+
</xs:complexType>
3325+
</xs:element>
3326+
32923327
<!--cnpBatch-->
32933328

32943329

@@ -3613,7 +3648,7 @@
36133648
<xs:element name="submerchantCredit" substitutionGroup="xp:transaction">
36143649
<xs:complexType>
36153650
<xs:complexContent>
3616-
<xs:extension base="xp:transactionTypeWithReportGroup">
3651+
<xs:extension base="xp:transactionTypeWithReportGroupAndRtp">
36173652
<xs:choice>
36183653
<xs:sequence>
36193654
<xs:element name="fundingSubmerchantId" type="xs:string" />
@@ -3700,6 +3735,8 @@
37003735
<xs:choice>
37013736
<xs:element ref="xp:transaction" />
37023737
<xs:element ref="xp:recurringTransaction" />
3738+
<xs:element ref="xp:encryptionKeyRequest"/>
3739+
<xs:element ref="xp:encryptedPayload" />
37033740
</xs:choice>
37043741
</xs:sequence>
37053742
<xs:attribute name="version" type="xs:string" use="required" />
@@ -3723,6 +3760,7 @@
37233760
<xs:choice>
37243761
<xs:element ref="xp:transactionResponse" minOccurs="0" />
37253762
<xs:element ref="xp:recurringTransactionResponse" minOccurs="0" />
3763+
<xs:element ref="xp:encryptionKeyResponse" minOccurs="0"/>
37263764
</xs:choice>
37273765
<xs:attribute name="response" type="xs:string" use="required" />
37283766
<xs:attribute name="message" type="xs:string" use="required" />
@@ -4039,7 +4077,7 @@
40394077
<xs:element name="submerchantCredit" substitutionGroup="xp:transaction">
40404078
<xs:complexType>
40414079
<xs:complexContent>
4042-
<xs:extension base="xp:transactionTypeWithReportGroup">
4080+
<xs:extension base="xp:transactionTypeWithReportGroupAndRtp">
40434081
<xs:choice>
40444082
<xs:sequence>
40454083
<xs:element name="fundingSubmerchantId" type="xs:string" />
@@ -4329,4 +4367,24 @@
43294367
</xs:complexType>
43304368
</xs:element>
43314369

4370+
<xs:element name="encryptionKeyRequest" type="xs:string" minOccurs="0"/>
4371+
4372+
<xs:element name="encryptionKeyResponse">
4373+
<xs:complexType>
4374+
<xs:sequence>
4375+
<xs:element name="encryptionKeySequence" type="xs:long" minOccurs="0" maxOccurs="1"/>
4376+
<xs:element name="encryptionKey" type="xs:string" minOccurs="0" maxOccurs="1"/>
4377+
</xs:sequence>
4378+
</xs:complexType>
4379+
</xs:element>
4380+
4381+
<xs:element name="encryptedPayload">
4382+
<xs:complexType>
4383+
<xs:sequence>
4384+
<xs:element name="encryptionKeySequence" type="xs:long" minOccurs="0" maxOccurs="1"/>
4385+
<xs:element name="payload" type="xs:string" minOccurs="0" maxOccurs="1"/>
4386+
</xs:sequence>
4387+
</xs:complexType>
4388+
</xs:element>
4389+
43324390
</xs:schema>

docs/source/complextypes.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -441,6 +441,13 @@ mposType
441441
:var track1Status: String or Number
442442
:var track2Status: String or Number
443443

444+
partialCapture
445+
--------------
446+
.. py:class:: vantivsdk.fields.partialCapture
447+
448+
:var partialCaptureSequenceNumber: String or Number
449+
:var partialCaptureTotalCount: String or Number
450+
444451
passengerTransportData
445452
----------------------
446453
.. py:class:: vantivsdk.fields.passengerTransportData

docs/source/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Vantiv eCommerce Python SDK 12.37.1!
1+
Vantiv eCommerce Python SDK 12.40.0!
22
====================================
33
.. toctree::
44
:maxdepth: 2

docs/source/transactions.rst

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ authorization
129129
:var card: instance of :py:class:`vantivsdk.fields.cardType`
130130
:var cardholderAuthentication: instance of :py:class:`vantivsdk.fields.fraudCheckType`
131131
:var cnpTxnId: String or Number
132+
:var conversionAffiliateId: String or Number
132133
:var crypto: String or Number
133134
:var customBilling: instance of :py:class:`vantivsdk.fields.customBilling`
134135
:var customerId: String or Number
@@ -174,6 +175,7 @@ authorization
174175
:var surchargeAmount: String or Number
175176
:var taxType: String or Number
176177
:var token: instance of :py:class:`vantivsdk.fields.cardTokenType`
178+
:var typeOfDigitalCurrency: String or Number
177179
:var wallet: instance of :py:class:`vantivsdk.fields.wallet`
178180

179181
balanceInquiry
@@ -207,6 +209,7 @@ capture
207209
:var lodgingInfo: instance of :py:class:`vantivsdk.fields.lodgingInfo`
208210
:var orderId: String or Number
209211
:var partial: String or Number
212+
:var partialCapture: instance of :py:class:`vantivsdk.fields.partialCapture`
210213
:var passengerTransportData: instance of :py:class:`vantivsdk.fields.passengerTransportData`
211214
:var payPalNotes: String or Number
212215
:var payPalOrderComplete: String or Number
@@ -226,6 +229,7 @@ captureGivenAuth
226229
:var billToAddress: instance of :py:class:`vantivsdk.fields.billToAddress`
227230
:var businessIndicator: String or Number
228231
:var card: instance of :py:class:`vantivsdk.fields.cardType`
232+
:var conversionAffiliateId: String or Number
229233
:var crypto: String or Number
230234
:var customBilling: instance of :py:class:`vantivsdk.fields.customBilling`
231235
:var customerId: String or Number
@@ -253,6 +257,7 @@ captureGivenAuth
253257
:var surchargeAmount: String or Number
254258
:var taxType: String or Number
255259
:var token: instance of :py:class:`vantivsdk.fields.cardTokenType`
260+
:var typeOfDigitalCurrency: String or Number
256261

257262
createPlan
258263
----------
@@ -667,6 +672,7 @@ payFacCredit
667672
:var fundsTransferId: String or Number
668673
:var id: String or Number
669674
:var reportGroup: String or Number
675+
:var rtp: String or Number
670676

671677
payFacDebit
672678
-----------
@@ -689,6 +695,7 @@ payoutOrgCredit
689695
:var fundsTransferId: String or Number
690696
:var id: String or Number
691697
:var reportGroup: String or Number
698+
:var rtp: String or Number
692699

693700
payoutOrgDebit
694701
--------------
@@ -798,6 +805,7 @@ reserveCredit
798805
:var fundsTransferId: String or Number
799806
:var id: String or Number
800807
:var reportGroup: String or Number
808+
:var rtp: String or Number
801809

802810
reserveDebit
803811
------------
@@ -827,6 +835,7 @@ sale
827835
:var cardholderAuthentication: instance of :py:class:`vantivsdk.fields.fraudCheckType`
828836
:var cnpInternalRecurringRequest: instance of :py:class:`vantivsdk.fields.cnpInternalRecurringRequestType`
829837
:var cnpTxnId: String or Number
838+
:var conversionAffiliateId: String or Number
830839
:var crypto: String or Number
831840
:var customBilling: instance of :py:class:`vantivsdk.fields.customBilling`
832841
:var customerId: String or Number
@@ -880,6 +889,7 @@ sale
880889
:var surchargeAmount: String or Number
881890
:var taxType: String or Number
882891
:var token: instance of :py:class:`vantivsdk.fields.cardTokenType`
892+
:var typeOfDigitalCurrency: String or Number
883893
:var wallet: instance of :py:class:`vantivsdk.fields.wallet`
884894

885895
serviceStatusRequest
@@ -904,6 +914,7 @@ submerchantCredit
904914
:var fundsTransferId: String or Number
905915
:var id: String or Number
906916
:var reportGroup: String or Number
917+
:var rtp: String or Number
907918
:var submerchantName: String or Number
908919

909920
submerchantDebit

schema/cnpBatch_v12.37.xsd renamed to schema/cnpBatch_v12.40.xsd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<xs:schema targetNamespace="http://www.vantivcnp.com/schema" xmlns:xs="http://www.w3.org/2001/XMLSchema"
33
xmlns:xp="http://www.vantivcnp.com/schema" elementFormDefault="qualified" attributeFormDefault="unqualified">
44

5-
<xs:include schemaLocation="cnpTransaction_v12.37.xsd" />
5+
<xs:include schemaLocation="cnpTransaction_v12.40.xsd" />
66

77
<xs:element name="cnpRequest">
88
<xs:complexType>
@@ -333,7 +333,7 @@
333333
<xs:element name="submerchantCredit" substitutionGroup="xp:transaction">
334334
<xs:complexType>
335335
<xs:complexContent>
336-
<xs:extension base="xp:transactionTypeWithReportGroup">
336+
<xs:extension base="xp:transactionTypeWithReportGroupAndRtp">
337337
<xs:choice>
338338
<xs:sequence>
339339
<xs:element name="fundingSubmerchantId" type="xp:merchantIdentificationType" />

schema/cnpCommon_v12.37.xsd renamed to schema/cnpCommon_v12.40.xsd

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,7 @@
274274
<xs:enumeration value="X" />
275275
<xs:enumeration value="FIFA" />
276276
<xs:enumeration value="FIVC" />
277+
<xs:enumeration value="FIVD" />
277278
<xs:enumeration value="FISC" />
278279
<xs:enumeration value="FISD" />
279280
<xs:enumeration value="FIPC" />
@@ -361,6 +362,8 @@
361362
<xs:simpleType name="transactionAmountType">
362363
<xs:restriction base="xs:integer">
363364
<xs:totalDigits value="12" />
365+
<xs:minInclusive value="-999999999999"/>
366+
<xs:maxInclusive value="999999999999"/>
364367
</xs:restriction>
365368
</xs:simpleType>
366369

@@ -1390,4 +1393,36 @@
13901393
</xs:restriction>
13911394
</xs:simpleType>
13921395

1396+
<xs:simpleType name="encryptionKeyRequestEnum">
1397+
<xs:restriction base="xs:string">
1398+
<xs:enumeration value="CURRENT"/>
1399+
<xs:enumeration value="PREVIOUS"/>
1400+
</xs:restriction>
1401+
</xs:simpleType>
1402+
1403+
<xs:simpleType name="encryptionKeySequenceType">
1404+
<xs:restriction base="xs:long">
1405+
<xs:totalDigits value="19"/>
1406+
</xs:restriction>
1407+
</xs:simpleType>
1408+
1409+
<xs:simpleType name="encryptionKeyType">
1410+
<xs:restriction base="xs:string">
1411+
<xs:maxLength value="15000"/>
1412+
</xs:restriction>
1413+
</xs:simpleType>
1414+
1415+
<xs:simpleType name="payloadType">
1416+
<xs:restriction base="xs:string">
1417+
<xs:maxLength value="15000" />
1418+
</xs:restriction>
1419+
</xs:simpleType>
1420+
1421+
<xs:simpleType name="partialCaptureCount">
1422+
<xs:restriction base="xs:integer">
1423+
<xs:minInclusive value="1" />
1424+
<xs:maxInclusive value="99" />
1425+
</xs:restriction>
1426+
</xs:simpleType>
1427+
13931428
</xs:schema>

0 commit comments

Comments
 (0)