Skip to content

Commit 3f2f662

Browse files
v12.45 (#41)
* commiting changes for v12.45 to local branch. * commiting changes for v12.45 to local branch. * commiting changes for v12.45 to local branch. * commiting changes for v12.45 to local branch. * commiting changes for commented vendor related changes. --------- Co-authored-by: e5651806 <sushamaghadage38@gmail.com>
1 parent c858c1c commit 3f2f662

18 files changed

+7961
-7814
lines changed

CHANGELOG

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

3+
==Change Log for 12.45 (June 09,2025)
4+
* Change: [cnpAPI v12.45] In existing enum 'foreignRetailerIndicatorEnum' new values 'A','B'.
5+
* Change: [cnpAPI v12.45] In existing authorization request new element 'foreignRetailerIndicator' of type 'foreignRetailerIndicatorEnum' is added in orderId sequence.
6+
* Change: [cnpAPI v12.45] In existing element 'typeOfDigitalCurrency' is modified to support only these value '1','2','3','4','7'.
7+
38
==Change Log for 12.44 (March 18,2025)
49
* Change: [cnpAPI v12.44] In orderSourceType enum, 'ecommerceDataOnly' value is added.
510

SchemaCombined_v12.44.xsd renamed to SchemaCombined_v12.45.xsd

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,8 @@
283283

284284

285285

286+
287+
<!-- US2081172-79564-->
286288

287289
<!--cnpRecurring-->
288290

@@ -726,6 +728,8 @@
726728
<xs:element name="fraudSwitchIndicator" type="xs:string" minOccurs="0"/>
727729
<xs:element ref="xp:passengerTransportData" minOccurs="0"/>
728730
<xs:element name="authIndicator" type="xs:string" minOccurs="0"/>
731+
<!-- US2081172-79564-->
732+
<xs:element name="foreignRetailerIndicator" type="xs:string" minOccurs="0"/>
729733
<xs:element ref="xp:accountFundingTransactionData" minOccurs="0"/>
730734
<xs:element name="fraudCheckAction" type="xs:string" minOccurs="0"/>
731735
<!-- US1938960-77433-->
@@ -4212,8 +4216,8 @@
42124216
</xs:extension>
42134217
</xs:complexContent>
42144218
</xs:complexType>
4215-
</xs:element>
4216-
-->
4219+
</xs:element>-->
4220+
42174221
<xs:element name="BNPLAuthorizationRequest" substitutionGroup="xp:transaction">
42184222
<xs:complexType>
42194223
<xs:complexContent>

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.44.0!
1+
Vantiv eCommerce Python SDK 12.45.0!
22
====================================
33
.. toctree::
44
:maxdepth: 2

docs/source/transactions.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@ authorization
139139
:var decisionPurpose: String or Number
140140
:var enhancedData: instance of :py:class:`vantivsdk.fields.enhancedData`
141141
:var filtering: instance of :py:class:`vantivsdk.fields.filteringType`
142+
:var foreignRetailerIndicator: String or Number
142143
:var fraudCheckAction: String or Number
143144
:var fraudCheckStatus: String or Number
144145
:var fraudFilterOverride: String or Number

schema/cnpBatch_v12.44.xsd renamed to schema/cnpBatch_v12.45.xsd

Lines changed: 1 addition & 1 deletion
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.44.xsd" />
5+
<xs:include schemaLocation="cnpTransaction_v12.45.xsd" />
66

77
<xs:element name="cnpRequest">
88
<xs:complexType>

schema/cnpCommon_v12.44.xsd renamed to schema/cnpCommon_v12.45.xsd

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1396,6 +1396,9 @@
13961396
<xs:simpleType name="foreignRetailerIndicatorEnum">
13971397
<xs:restriction base="xs:string">
13981398
<xs:enumeration value="F" />
1399+
<!-- US2081172-79564-->
1400+
<xs:enumeration value="A" />
1401+
<xs:enumeration value="B" />
13991402
</xs:restriction>
14001403
</xs:simpleType>
14011404

@@ -1431,4 +1434,15 @@
14311434
</xs:restriction>
14321435
</xs:simpleType>
14331436

1437+
<!-- US2081172-79564-->
1438+
<xs:simpleType name="typeOfDigitalCurrencyEnum">
1439+
<xs:restriction base="xs:string">
1440+
<xs:enumeration value="1" />
1441+
<xs:enumeration value="2" />
1442+
<xs:enumeration value="3" />
1443+
<xs:enumeration value="4" />
1444+
<xs:enumeration value="7" />
1445+
</xs:restriction>
1446+
</xs:simpleType>
1447+
14341448
</xs:schema>

schema/cnpOnline_v12.44.xsd renamed to schema/cnpOnline_v12.45.xsd

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

6-
<xs:include schemaLocation="cnpTransaction_v12.44.xsd" />
6+
<xs:include schemaLocation="cnpTransaction_v12.45.xsd" />
77

88
<xs:complexType name="baseRequest">
99
<xs:sequence>
@@ -430,8 +430,8 @@
430430
</xs:extension>
431431
</xs:complexContent>
432432
</xs:complexType>
433-
</xs:element>
434-
-->
433+
</xs:element>-->
434+
435435
<xs:element name="BNPLAuthorizationRequest" substitutionGroup="xp:transaction">
436436
<xs:complexType>
437437
<xs:complexContent>

schema/cnpRecurring_v12.44.xsd renamed to schema/cnpRecurring_v12.45.xsd

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

4-
<xs:include schemaLocation="cnpCommon_v12.44.xsd" />
4+
<xs:include schemaLocation="cnpCommon_v12.45.xsd" />
55

66
<xs:element name="recurringTransaction" type="xp:recurringTransactionType" abstract="true" />
77
<xs:element name="recurringTransactionResponse" type="xp:recurringTransactionResponseType" abstract="true" />

schema/cnpTransaction_v12.44.xsd renamed to schema/cnpTransaction_v12.45.xsd

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

5-
<xs:include schemaLocation="cnpCommon_v12.44.xsd"/>
6-
<xs:include schemaLocation="cnpRecurring_v12.44.xsd"/>
5+
<xs:include schemaLocation="cnpCommon_v12.45.xsd"/>
6+
<xs:include schemaLocation="cnpRecurring_v12.45.xsd"/>
77

88
<xs:element name="transaction" type="xp:transactionType" abstract="true"/>
99

@@ -236,10 +236,12 @@
236236
<xs:element name="fraudSwitchIndicator" type="xp:fraudSwitchIndicatorEnum" minOccurs="0"/>
237237
<xs:element ref="xp:passengerTransportData" minOccurs="0"/>
238238
<xs:element name="authIndicator" type="xp:authIndicatorEnum" minOccurs="0"/>
239+
<!-- US2081172-79564-->
240+
<xs:element name="foreignRetailerIndicator" type="xp:foreignRetailerIndicatorEnum" minOccurs="0"/>
239241
<xs:element ref="xp:accountFundingTransactionData" minOccurs="0"/>
240242
<xs:element name="fraudCheckAction" type="xp:fraudCheckActionEnum" minOccurs="0"/>
241243
<!-- US1938960-77433-->
242-
<xs:element name="typeOfDigitalCurrency" type="xp:string5Type" minOccurs="0"/>
244+
<xs:element name="typeOfDigitalCurrency" type="xp:typeOfDigitalCurrencyEnum" minOccurs="0"/>
243245
<xs:element name="conversionAffiliateId" type="xp:string15Type" minOccurs="0"/>
244246
<xs:element ref="xp:identityBundle" minOccurs="0"/>
245247
<xs:element name="originalRetrievalReferenceNumber" type="xp:string12Type" minOccurs="0"/>
@@ -406,7 +408,7 @@
406408
<xs:element name="foreignRetailerIndicator" type="xp:foreignRetailerIndicatorEnum" minOccurs="0"/>
407409
<xs:element ref="xp:accountFundingTransactionData" minOccurs="0"/>
408410
<!-- US1938960-77433-->
409-
<xs:element name="typeOfDigitalCurrency" type="xp:string5Type" minOccurs="0"/>
411+
<xs:element name="typeOfDigitalCurrency" type="xp:typeOfDigitalCurrencyEnum" minOccurs="0"/>
410412
<xs:element name="conversionAffiliateId" type="xp:string15Type" minOccurs="0"/>
411413
</xs:sequence>
412414
</xs:extension>
@@ -491,7 +493,7 @@
491493
<xs:element ref="xp:accountFundingTransactionData" minOccurs="0"/>
492494
<xs:element name="fraudCheckAction" type="xp:fraudCheckActionEnum" minOccurs="0"/>
493495
<!-- US1938960-77433-->
494-
<xs:element name="typeOfDigitalCurrency" type="xp:string5Type" minOccurs="0"/>
496+
<xs:element name="typeOfDigitalCurrency" type="xp:typeOfDigitalCurrencyEnum" minOccurs="0"/>
495497
<xs:element name="conversionAffiliateId" type="xp:string15Type" minOccurs="0"/>
496498
<xs:element ref="xp:identityBundle" minOccurs="0"/>
497499
</xs:sequence>

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
setup(
1313
name='vantivecommercesdk',
14-
version='12.44.0',
14+
version='12.45.0',
1515
description='Vantiv eCommerce Python SDK',
1616
author='Vantiv eCommerce',
1717
author_email='SDKSupport@worldpay.com',

tests/functional/test_auth.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -616,6 +616,7 @@ def test_simple_auth_with_guaranteed_payment(self):
616616
authorization.productEnrolled = 'GUARPAY2'
617617
authorization.decisionPurpose = 'INFORMATION_ONLY'
618618
authorization.fraudSwitchIndicator = "PRE"
619+
authorization.foreignRetailerIndicator = "A"
619620
authorization.fraudCheckAction = 'APPROVED_SKIP_FRAUD_CHECK'
620621

621622
card = fields.cardType()
@@ -680,6 +681,7 @@ def test_simple_auth_with_passenger_Transport_Data_triplegData(self):
680681
card.expDate = '1210'
681682
card.type = 'VI'
682683
authorization.card = card
684+
authorization.foreignRetailerIndicator = "F"
683685

684686
response = online.request(authorization, conf)
685687
self.assertEquals('000', response['authorizationResponse']['response'])
@@ -869,7 +871,7 @@ def test_simple_auth_with_Subscription_Shipment_Id_StringIpAdd(self):
869871
cardholder_authentication.authenticationProtocolVersion = 9 # (v12.40 new values added for authenticationProtocolVersionType enum - 3,4,5,6,7,8,9)
870872
authorization.card = card
871873
authorization.cardholderAuthentication = cardholder_authentication
872-
authorization.typeOfDigitalCurrency = 'Bcoin' # (v12.40 new element typeOfDigitalCurrency added in auth request)
874+
authorization.typeOfDigitalCurrency = '7' # (v12.40 new element typeOfDigitalCurrency added in auth request)
873875
authorization.conversionAffiliateId = 'DC12345' # (v12.40 new element conversionAffiliateId added in auth request)
874876

875877
response = online.request(authorization, conf)
@@ -910,7 +912,7 @@ def test_simple_auth_with_identity_bundle(self):
910912
cardholder_authentication.authenticationProtocolVersion = 9 # (v12.40 new values added for authenticationProtocolVersionType enum - 3,4,5,6,7,8,9)
911913
authorization.card = card
912914
authorization.cardholderAuthentication = cardholder_authentication
913-
authorization.typeOfDigitalCurrency = 'Bcoin' # (v12.40 new element typeOfDigitalCurrency added in auth request)
915+
authorization.typeOfDigitalCurrency = '7' # (v12.40 new element typeOfDigitalCurrency added in auth request)
914916
authorization.conversionAffiliateId = 'DC12345' # (v12.40 new element conversionAffiliateId added in auth request)
915917
identity_bundle = fields.identityBundle()
916918
identity_bundle.merchantId = "merchantId"

tests/functional/test_capture_given_auth.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ def test_simple_capture_given_auth_with_card(self):
9393
transaction.additionalCOFData = additionalCOFData
9494

9595
transaction.crypto = False
96-
transaction.typeOfDigitalCurrency = 'Dcoin' # (v12.40 new element typeOfDigitalCurrency added in CaptureGivenAuth request)
96+
transaction.typeOfDigitalCurrency = '7' # (v12.40 new element typeOfDigitalCurrency added in CaptureGivenAuth request)
9797
transaction.conversionAffiliateId = 'DC12385' # (v12.40 new element conversionAffiliateId added in CaptureGivenAuth request)
9898

9999
response = online.request(transaction, conf)

tests/functional/test_sale.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def test_simple_sale_with_card(self):
6262

6363
transaction.accountFundingTransactionData = accountfundingtransactiondata
6464

65-
transaction.typeOfDigitalCurrency = 'Rcoin' # (v12.40 new element typeOfDigitalCurrency added in auth request)
65+
transaction.typeOfDigitalCurrency = '7' # (v12.40 new element typeOfDigitalCurrency added in auth request)
6666
transaction.conversionAffiliateId = 'DC12745' # (v12.40 new element conversionAffiliateId added in auth request)
6767

6868
response = online.request(transaction, conf)
@@ -875,7 +875,7 @@ def test_sale_with_foreign_Retailer_Indicator(self):
875875
transport_data.exchangeFeeAmount = '201010'
876876
transaction.transport_data = transport_data
877877

878-
transaction.foreignRetailerIndicator = 'F'
878+
transaction.foreignRetailerIndicator = 'A'
879879
response = online.request(transaction, conf)
880880
self.assertEquals('000', response['saleResponse']['response'])
881881
self.assertEquals('sandbox', response['saleResponse']['location'])

tests/unit/test_batch.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,7 @@ def test_request_for_authIndicatorEnumIncremental(self, mock__get_file_str_from_
232232
authorization.cnpTxnId = '34659348401'
233233
authorization.amount = '106'
234234
authorization.authIndicator = 'Incremental'
235+
authorization.foreignRetailerIndicator = 'F'
235236

236237
mock__get_file_str_from_sftp.return_value = """
237238
<cnpResponse xmlns="http://www.vantivcnp.com/schema" version="12.30" response="0" message="Valid Format">
@@ -302,6 +303,7 @@ def test_request_for_orderChannelEnumMIT_sellerInfo_authIndicatorEstimated(self,
302303

303304
authorization.orderChannel = 'MIT'
304305
authorization.authIndicator = 'Estimated'
306+
authorization.foreignRetailerIndicator = 'A'
305307

306308
mock__get_file_str_from_sftp.return_value = """
307309
<cnpResponse xmlns="http://www.vantivcnp.com/schema" version="12.30" response="0" message="Valid Format">

tests/unit/test_online.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,7 @@ def test_request_relturn_format(self, mock__http_post):
157157
additionalCOFData.sequenceIndicator = '2'
158158

159159
transaction.additionalCOFData = additionalCOFData
160+
transaction.foreignRetailerIndicator = 'A'
160161

161162
transaction.crypto = False
162163

vantivsdk/dictmap.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@
115115
'decisionPurpose': '',
116116
'enhancedData': 'enhancedData',
117117
'filtering': 'filteringType',
118+
'foreignRetailerIndicator': '',
118119
'fraudCheckAction': '',
119120
'fraudCheckStatus': '',
120121
'fraudFilterOverride': '',

0 commit comments

Comments
 (0)