Skip to content

Commit a5ea801

Browse files
Dot Net SDK v12.40.0 (#72)
* Promoting changes for 12.38 and 12.39 * promoting encryptionKeyRequest Changes. * promoting encryptionKeyRequestChanges * promoting changes for encryptionPayload request * promoting working encryption changes for payload Request. * promoting cnpOnline corrections * promoting changes for unit test . * Removing unwanted code. * promoting changeLog and Version realted changes * Method name correction * Promoting changes --------- Co-authored-by: e5651806 <sushamaghadage38@gmail.com>
1 parent f5539ba commit a5ea801

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+2542
-635
lines changed

CHANGELOG

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,23 @@
11

22
= Worldpay CNP CHANGELOG
3+
==Change Log for 12.40(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+
* Change: [cnpAPI v12.39] In 'subMerchantCredit' 'payFacCredit','reserveCredit', 'payoutOrgCreditRequest' base changed from 'transactionTypeWithReportGroup' to 'transactionTypeWithReportGroupAndRtp'.
8+
* Change: [cnpAPI v12.39] To support new changed extension base for above txns ,New Complextype 'transactionTypeWithReportGroupAndRtp' added.
9+
* Change: [cnpAPI v12.39] New element 'fundingTransactionReferenceNumber' in authorization and sale response.
10+
* Change: [cnpAPI v12.38] In existing Enum 'ActionTypeEnum' new value 'FIVD' added
11+
* Change: [cnpAPI v12.38] In existing complex element 'baseRequest' two more choices are added 'encryptionKeyRequest' and 'encryptedPayload'
12+
* Change: [cnpAPI v12.38] In existing complex element 'cnpOnlineResponse' one more choice is added 'encryptionKeyResponse'
13+
* Change: [cnpAPI v12.38] New element 'encryptionKeyRequest' is added of type 'encryptionKeyRequestEnum'
14+
* Change: [cnpAPI v12.38] To support 'encryptionKeyRequest' new Enum 'encryptionKeyRequestEnum' added with values 'CURRENT' and 'PREVIOUS'
15+
* Change: [cnpAPI v12.38] New complex element 'encryptionKeyResponse' is added with simple elements ->'encryptionKeySequence' of type 'encryptionKeySequenceType' and 'encryptionKey' of type 'encryptionKeyType'
16+
* Change: [cnpAPI v12.38] To support 'encryptionKeySequence' new simple type 'encryptionKeySequenceType' added with total Digits 19
17+
* Change: [cnpAPI v12.38] To support 'encryptionKey' new simple type 'encryptionKeyType' of type string with maxLength 15000
18+
* Change: [cnpAPI v12.38] New complex element 'encryptedPayload' is added with simple elements ->'encryptionKeySequence' of type 'encryptionKeySequenceType' and 'payload' of type 'payloadType'
19+
* Change: [cnpAPI v12.38] To support 'payload' new simple type 'payloadType' of type string with maxLength 15000
20+
* Change: [cnpAPI v12.38] In capture Request new complex element 'partialCapture' is added with elements-> 'partialCaptureSequenceNumber' of type 'integer' and 'partialCaptureTotalCount' of type 'partialCaptureCount'
321

422

523
==Version 12.37.0 (v12.37.0)(June 25, 2024)

CnpSdkForNet/CnpSdkForNet/CnpBatchRequest.cs

Lines changed: 36 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
using System.Collections.Generic;
33
using System.IO;
44
using System.Security;
5+
using static System.Net.WebRequestMethods;
56

67
namespace Cnp.Sdk
78
{
@@ -1673,6 +1674,13 @@ private string saveElement(cnpFile cnpFile, cnpTime cnpTime, string filePath, tr
16731674
}
16741675

16751676
private void fillInReportGroup(transactionTypeWithReportGroup txn)
1677+
{
1678+
if (txn.reportGroup == null)
1679+
{
1680+
txn.reportGroup = config["reportGroup"];
1681+
}
1682+
}
1683+
private void fillInReportGroup(transactionTypeWithReportGroupAndRtp txn)
16761684
{
16771685
if (txn.reportGroup == null)
16781686
{
@@ -2112,7 +2120,7 @@ public override string Serialize()
21122120
}
21132121
}
21142122

2115-
public partial class submerchantCredit : transactionTypeWithReportGroup
2123+
public partial class submerchantCredit : transactionTypeWithReportGroupAndRtp
21162124
{
21172125

21182126
public string fundingSubmerchantId { get; set; }
@@ -2135,7 +2143,12 @@ public override string Serialize()
21352143
xml += "id=\"" + SecurityElement.Escape(id) + "\" ";
21362144
if (customerId != null)
21372145
xml += "customerId=\"" + SecurityElement.Escape(customerId) + "\" ";
2138-
xml += "reportGroup=\"" + SecurityElement.Escape(reportGroup) + "\">";
2146+
xml += "reportGroup=\"" + SecurityElement.Escape(reportGroup) + "\" ";
2147+
if (rtpSet)
2148+
{
2149+
xml += " rtp=\"" + rtp.ToString().ToLower() + "\"";
2150+
}
2151+
xml += ">";
21392152
if (fundingSubmerchantId != null)
21402153
xml += "\r\n<fundingSubmerchantId>" + SecurityElement.Escape(fundingSubmerchantId) + "</fundingSubmerchantId>";
21412154
if (submerchantName != null)
@@ -2159,7 +2172,7 @@ public override string Serialize()
21592172
}
21602173
}
21612174

2162-
public partial class payFacCredit : transactionTypeWithReportGroup
2175+
public partial class payFacCredit : transactionTypeWithReportGroupAndRtp
21632176
{
21642177

21652178
public string fundingSubmerchantId { get; set; }
@@ -2176,7 +2189,12 @@ public override string Serialize()
21762189
xml += "id=\"" + SecurityElement.Escape(id) + "\" ";
21772190
if (customerId != null)
21782191
xml += "customerId=\"" + SecurityElement.Escape(customerId) + "\" ";
2179-
xml += "reportGroup=\"" + SecurityElement.Escape(reportGroup) + "\">";
2192+
xml += "reportGroup=\"" + SecurityElement.Escape(reportGroup) + "\" ";
2193+
if (rtpSet)
2194+
{
2195+
xml += " rtp=\"" + rtp.ToString().ToLower() + "\"";
2196+
}
2197+
xml += ">";
21802198
if (fundingSubmerchantId != null)
21812199
xml += "\r\n<fundingSubmerchantId>" + SecurityElement.Escape(fundingSubmerchantId) + "</fundingSubmerchantId>";
21822200
if (fundsTransferId != null)
@@ -2190,7 +2208,7 @@ public override string Serialize()
21902208
}
21912209
}
21922210

2193-
public partial class reserveCredit : transactionTypeWithReportGroup
2211+
public partial class reserveCredit : transactionTypeWithReportGroupAndRtp
21942212
{
21952213

21962214
public string fundingSubmerchantId { get; set; }
@@ -2209,7 +2227,12 @@ public override string Serialize()
22092227
xml += "id=\"" + SecurityElement.Escape(id) + "\" ";
22102228
if (customerId != null)
22112229
xml += "customerId=\"" + SecurityElement.Escape(customerId) + "\" ";
2212-
xml += "reportGroup=\"" + SecurityElement.Escape(reportGroup) + "\">";
2230+
xml += "reportGroup=\"" + SecurityElement.Escape(reportGroup) + "\" ";
2231+
if (rtpSet)
2232+
{
2233+
xml += " rtp=\"" + rtp.ToString().ToLower() + "\"";
2234+
}
2235+
xml += ">";
22132236
if (fundingSubmerchantId != null)
22142237
xml += "\r\n<fundingSubmerchantId>" + SecurityElement.Escape(fundingSubmerchantId) + "</fundingSubmerchantId>";
22152238
else if (fundingCustomerId != null)
@@ -2321,7 +2344,7 @@ public override string Serialize()
23212344
}
23222345
}
23232346

2324-
public partial class payoutOrgCredit : transactionTypeWithReportGroup
2347+
public partial class payoutOrgCredit : transactionTypeWithReportGroupAndRtp
23252348
{
23262349

23272350
public string fundingCustomerId { get; set; }
@@ -2338,7 +2361,12 @@ public override string Serialize()
23382361
xml += "id=\"" + SecurityElement.Escape(id) + "\" ";
23392362
if (customerId != null)
23402363
xml += "customerId=\"" + SecurityElement.Escape(customerId) + "\" ";
2341-
xml += "reportGroup=\"" + SecurityElement.Escape(reportGroup) + "\">";
2364+
xml += "reportGroup=\"" + SecurityElement.Escape(reportGroup) + "\" ";
2365+
if (rtpSet)
2366+
{
2367+
xml += " rtp=\"" + rtp.ToString().ToLower() + "\"";
2368+
}
2369+
xml += ">";
23422370
if (fundingCustomerId != null)
23432371
xml += "\r\n<fundingCustomerId>" + SecurityElement.Escape(fundingCustomerId) + "</fundingCustomerId>";
23442372
if (fundsTransferId != null)

0 commit comments

Comments
 (0)