Skip to content

Commit f5539ba

Browse files
Branchfor12 37 (#70)
* Comminting changes for v12.34 * comminiting remaining code changes and test cases for changes for 12.34 * promoting phone number feild in 12.34 * Promoting changes for version12.35. * Promoting changes for 12.36 * Promoting coding and testing changes for 12.37 * Promoting changes for Btch testing . * Unit test case for 12.37 * Commiting existing test case fixes. * Promoting changes for csproj file * commiting changes fir changelog * Promoting changes --------- Co-authored-by: e5651806 <sushamaghadage38@gmail.com>
1 parent 2b20690 commit f5539ba

28 files changed

+2721
-75
lines changed

CHANGELOG

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,44 @@
11

22
= Worldpay CNP CHANGELOG
33

4+
5+
==Version 12.37.0 (v12.37.0)(June 25, 2024)
6+
* Change: [cnpAPI v12.37] New existing 'postCheckoutRedirectUrl' with min length '1' and maxlength '200'
7+
* Change: [cnpAPI v12.37] New enum 'provider' is added with value 'AFFIRM'
8+
* Change: [cnpAPI v12.37] New complex type 'inquiryResultType' is added with simple element 'response' of 'responseType' and 'message' of 'messageType'.
9+
* Change: [cnpAPI v12.37] New complex element 'BNPLAuthorizationRequest' is added with added with few simple elements and few complex elements- simple elements 'amount','orderId' ,'provider' of type 'provider' and complex elements 'customerInfo','billToAddress','shipToAddress','enhancedData','postCheckoutRedirectUrl'
10+
* Change: [cnpAPI v12.37] New complex element 'BNPLAuthResponse' is added with few simple elements ,existing simple elements 'cnpTxnId','response','responseTime','message','location' and 'checkoutUrl'
11+
* Change: [cnpAPI v12.37] New complex element 'BNPLCaptureRequest' is added with existing simple element 'amount','orderId','cnpTxnId'
12+
* Change: [cnpAPI v12.37] New complex element 'BNPLCaptureResponse' is added with existing simple element 'cnpTxnId','response','responseTime','message','location'
13+
* Change: [cnpAPI v12.37] New complex element 'BNPLRefundRequest' is added with existing simple element 'amount','orderId','cnpTxnId'
14+
* Change: [cnpAPI v12.37] New complex element 'BNPLRefundResponse' is added with existing simple element 'cnpTxnId','response','responseTime','message','location'
15+
* Change: [cnpAPI v12.37] New complex element 'BNPLCancelRequest' is added with existing simple element 'amount','orderId','cnpTxnId'
16+
* Change: [cnpAPI v12.37] New complex element 'BNPLCancelResponse' is added with existing simple element 'cnpTxnId','response','responseTime','message','location'
17+
* Change: [cnpAPI v12.37] New complex element 'BNPLInquiryRequest' is added with existing simple element 'orderId','cnpTxnId'
18+
* Change: [cnpAPI v12.37] New complex element 'BNPLInquiryResponse' is added with existing simple element 'cnpTxnId','response','responseTime','message','location' and complex element 'inquiryResult' of 'inquiryResultType'
19+
* Change: [cnpAPI v12.36] new Enum is added 'accountFundingTransactionTypeEnum' with new values 'accountToAccount','agentCashOut','bankInitiated','businessDisbursement','businessToBusinessTransfer','debitPrepaidAccount','fundsDisbursement','fundTransfer','governmentNonProfitDisbursement','paymentOfOwnCreditCardBill','payrollDisbursement','personToPerson','personToPersonCardAccount','rapidMerchantSettlement','topUp','walletTransfer'
20+
* Change: [cnpAPI v12.36] new Enum is added 'accountFundingTransactionAccountNumberTypeEnum' with new values 'other','RTNAndBAN','IBAN','cardAccount','email','phoneNumber','BANAndBIC','walletID','socialNetworkID'
21+
* Change: [cnpAPI v12.36] New complex 'finicityAccountRequest' element is added with simple element 'echeckCustomerId' of type 'string25Type'
22+
* Change: [cnpAPI v12.36] New complex 'finicityAccountResponse' element is added with simple elements 'cnpTxnId','response','responseTime','message','location' and new complex element 'finicityAccount' of type 'finicityAccountInfoType'
23+
* Change: [cnpAPI v12.36] To support 'finicityAccount' new complex type 'finicityAccountInfoType' is added with simple element accountId' of 'string','accType' of type 'echeckAccountTypeEnum','realAccNum' of 'echeckAccountNumberType','routingNum' of 'routingNumberType'
24+
* Change: [cnpAPI v12.36] new element 'fraudCheckAction' of 'fraudCheckActionEnum' is added in Authorization, sale request.
25+
* Change: [cnpAPI v12.36] New values added 'APPROVED_SKIP_FRAUD_CHECK','DECLINED_NEED_FRAUD_CHECK' to existing 'fraudCheckActionEnum'
26+
* Change: [cnpAPI v12.36] New simple element 'accountId' of type 'string' is added in 'echeckType' existing complex type.
27+
* Change: [cnpAPI v12.36] new simple elements are added in existing complex element accountFundingTransactionData,'receiverAccountNumberType' of 'accountFundingTransactionAccountNumberTypeEnum' and 'accountFundingTransactionType' of 'accountFundingTransactionTypeEnum'
28+
* Change: [cnpAPI v12.35] In existing Enum businessIndicatorEnum new values 'personToPersonCardAccount','debitPrepaidAccount','paymentOfOwnCreditCardBill','businessDisbursement','businessToBusinessTransfer','governmentNonProfitDisbursement','rapidMerchantSettlement','agentCashOut' are added.
29+
* Change: [cnpAPI v12.35] New Enum 'stateTypeEnum' is added with values 'AL','AK','AZ','AR','CA','CO','CT','DE','DC','FL','GA','HI','ID','IL','IN','IA','KS','KY','LA','ME','MD','MA','MI','MN','MS','MO','MT','NE','NV','NH','NJ','NM','NY','NC','ND','OH','OK','OR','PA','RI','SC','SD','TN','TX','UT','VT','VA','WA','WV','WI','WY','AB','BC','MB','NB','NL','NT','NS','ON','PE','QC','SK','YT','NU'
30+
* Change: [cnpAPI v12.35] In existing Enum fulfilmentMethodTypeEnum new values 'STANDARD_SHIPPING' and 'EXPEDITED_SHIPPING'
31+
* Change: [cnpAPI v12.35] In existing Enum orderChannelEnum new values 'SCAN_AND_GO' and 'SMART_TV'
32+
* Change: [cnpAPI v12.35] New complex element 'accountFundingTransactionData' added with below simple elements receiverFirstName of 'string35Type' ,'receiverLastName' of 'string35Type','receiverState' of 'stateTypeEnum',''receiverCountry' of 'countryTypeEnum' and 'receiverAccountNumber' of 'string50Type'
33+
* Change: [cnpAPI v12.35] 'accountFundingTransactionData' is added in Authorization,sale,credit,capturegiventAuth and FORCECapture request.
34+
* Change: [cnpAPI v12.34] For existing simple element 'amount' simple type is changed from 'transactionAmountType' to 'achTransactionAmountType' in transactions- vendorCredit,vendorDebit,submerchantCredit,submerchantDebit,payFacDebit,payFacCredit,reserveCredit,reserveDebit
35+
* Change: [cnpAPI v12.34] Added new simple type 'achTransactionAmountType' to support 'amount'.
36+
* Change: [cnpAPI v12.34] Added 'accountToAccount','bankInitiated','fundsDisbursement','payrollDisbursement','personToPerson','topUp' in existing enum businessIndicatorEnum.
37+
* Change: [cnpAPI v12.34] For existing element 'origId' from 'queryTransaction' simpletype changed from 'string25Type' to 'stringMin1Max36CollapseWhiteSpaceType'.
38+
* Change: [cnpAPI v12.34] New request element 'finicityUrlRequest' is added with subfeilds-'firstName','lastName','phoneNumber','email'.
39+
* Change: [cnpAPI v12.34] New response element 'finicityUrlResponse' is added with subfeilds-'cnpTxnId','response','responseTime','message','location','echeckCustomerId','url'.
40+
* Change: [cnpAPI v12.34] New simple element 'echeckCustomerId' is added existing complex type 'echeckType'.
41+
442
==Version: 12.33.0 (Jan 09, 2024)
543
Note: It contains changes from cnpAPI v12.32 and v12.33. In case you need any feature supported by cnpAPI v12.32 and v12.33.please use SDK version 12.33.0.
644

CnpSdkForNet/CnpSdkForNet/CnpOnline.cs

Lines changed: 158 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -343,14 +343,42 @@ private cnpOnlineRequest CreateRequest(transactionRequest transaction)
343343
{
344344
request.vendorDebit = (vendorDebit)transaction;
345345
}
346-
else if (transaction is customerDebit)
346+
else if (transaction is customerDebit)
347347
{
348348
request.customerDebit = (customerDebit)transaction;
349349
}
350350
else if (transaction is customerCredit)
351351
{
352352
request.customerCredit = (customerCredit)transaction;
353353
}
354+
else if (transaction is finicityUrlRequest)
355+
{
356+
request.finicityUrlRequest = (finicityUrlRequest)transaction;
357+
}
358+
else if (transaction is finicityAccountRequest)
359+
{
360+
request.finicityAccountRequest = (finicityAccountRequest)transaction;
361+
}
362+
else if (transaction is BNPLAuthorizationRequest)
363+
{
364+
request.BNPLAuthorizationRequest = (BNPLAuthorizationRequest)transaction;
365+
}
366+
else if (transaction is BNPLCaptureRequest)
367+
{
368+
request.BNPLCaptureRequest = (BNPLCaptureRequest)transaction;
369+
}
370+
else if (transaction is BNPLRefundRequest)
371+
{
372+
request.BNPLRefundRequest = (BNPLRefundRequest)transaction;
373+
}
374+
else if (transaction is BNPLCancelRequest)
375+
{
376+
request.BNPLCancelRequest = (BNPLCancelRequest)transaction;
377+
}
378+
else if (transaction is BNPLInquiryRequest)
379+
{
380+
request.BNPLInquiryRequest = (BNPLInquiryRequest)transaction;
381+
}
354382
else
355383
{
356384
throw new NotImplementedException("Support for type: " + transaction.GetType().Name +
@@ -1070,6 +1098,121 @@ public Task<customerDebitResponse> CustomerDebitAsync(customerDebit customerDebi
10701098
}, customerDebit, cancellationToken);
10711099
}
10721100

1101+
public finicityUrlResponse FinicityUrl(finicityUrlRequest finicityUrlRequest)
1102+
{
1103+
1104+
var cnpResponse = SendRequest(response => response, finicityUrlRequest);
1105+
var finicityUrlResponse = cnpResponse.finicityUrlResponse;
1106+
return finicityUrlResponse;
1107+
}
1108+
1109+
public Task<finicityUrlResponse> finicityUrlAsync(finicityUrlRequest finicityUrl, CancellationToken cancellationToken)
1110+
{
1111+
return SendRequestAsync(response =>
1112+
{
1113+
var finicityUrlResponse = response.finicityUrlResponse;
1114+
return finicityUrlResponse;
1115+
}, finicityUrl, cancellationToken);
1116+
}
1117+
1118+
public finicityAccountResponse FinicityAccount(finicityAccountRequest finicityAccountRequest)
1119+
{
1120+
1121+
var cnpResponse = SendRequest(response => response, finicityAccountRequest);
1122+
var finicityAccountResponse = cnpResponse.finicityAccountResponse;
1123+
return finicityAccountResponse;
1124+
}
1125+
1126+
public Task<finicityAccountResponse> finicityAccountAsync(finicityAccountRequest finicityAccount, CancellationToken cancellationToken)
1127+
{
1128+
return SendRequestAsync(response =>
1129+
{
1130+
var finicityAccountResponse = response.finicityAccountResponse;
1131+
return finicityAccountResponse;
1132+
}, finicityAccount, cancellationToken);
1133+
}
1134+
1135+
public BNPLAuthResponse BNPLAuthorization(BNPLAuthorizationRequest bnplAuth)
1136+
{
1137+
1138+
var cnpResponse = SendRequest(response => response, bnplAuth);
1139+
var BNPLAuthResponse = cnpResponse.BNPLAuthResponse;
1140+
return BNPLAuthResponse;
1141+
}
1142+
1143+
public Task<BNPLAuthResponse> BNPLAuthorizationAsync(BNPLAuthorizationRequest bnplAuth, CancellationToken cancellationToken)
1144+
{
1145+
return SendRequestAsync(response =>
1146+
{
1147+
var BNPLAuthResponse = response.BNPLAuthResponse;
1148+
return BNPLAuthResponse;
1149+
}, bnplAuth, cancellationToken);
1150+
}
1151+
public BNPLCaptureResponse BNPLCapture(BNPLCaptureRequest bnplCapture)
1152+
{
1153+
1154+
var cnpResponse = SendRequest(response => response, bnplCapture);
1155+
var BNPLCaptureResponse = cnpResponse.BNPLCaptureResponse;
1156+
return BNPLCaptureResponse;
1157+
}
1158+
1159+
public Task<BNPLCaptureResponse> BNPLCaptureAsync(BNPLCaptureRequest bnplCapture, CancellationToken cancellationToken)
1160+
{
1161+
return SendRequestAsync(response =>
1162+
{
1163+
var BNPLCaptureResponse = response.BNPLCaptureResponse;
1164+
return BNPLCaptureResponse;
1165+
}, bnplCapture, cancellationToken);
1166+
}
1167+
public BNPLRefundResponse BNPLRefund(BNPLRefundRequest bnplRefund)
1168+
{
1169+
1170+
var cnpResponse = SendRequest(response => response, bnplRefund);
1171+
var BNPLRefundResponse = cnpResponse.BNPLRefundResponse;
1172+
return BNPLRefundResponse;
1173+
}
1174+
1175+
public Task<BNPLRefundResponse> BNPLRefundAsync(BNPLRefundRequest bnplRefund, CancellationToken cancellationToken)
1176+
{
1177+
return SendRequestAsync(response =>
1178+
{
1179+
var BNPLRefundResponse = response.BNPLRefundResponse;
1180+
return BNPLRefundResponse;
1181+
}, bnplRefund, cancellationToken);
1182+
}
1183+
1184+
public BNPLCancelResponse BNPLCancle(BNPLCancelRequest bnplCancle)
1185+
{
1186+
1187+
var cnpResponse = SendRequest(response => response, bnplCancle);
1188+
var BNPLCancelResponse = cnpResponse.BNPLCancelResponse;
1189+
return BNPLCancelResponse;
1190+
}
1191+
public Task<BNPLCancelResponse> BNPLCancleAsync(BNPLCancelRequest bnplCancle, CancellationToken cancellationToken)
1192+
{
1193+
return SendRequestAsync(response =>
1194+
{
1195+
var BNPLCancelResponse = response.BNPLCancelResponse;
1196+
return BNPLCancelResponse;
1197+
}, bnplCancle, cancellationToken);
1198+
}
1199+
1200+
public BNPLInquiryResponse BNPLInquiry(BNPLInquiryRequest bnplInquiry)
1201+
{
1202+
1203+
var cnpResponse = SendRequest(response => response, bnplInquiry);
1204+
var BNPLInquiryResponse = cnpResponse.BNPLInquiryResponse;
1205+
return BNPLInquiryResponse;
1206+
}
1207+
1208+
public Task<BNPLInquiryResponse> BNPLInquiryAsync(BNPLInquiryRequest bnplInquiry, CancellationToken cancellationToken)
1209+
{
1210+
return SendRequestAsync(response =>
1211+
{
1212+
var BNPLInquiryResponse = response.BNPLInquiryResponse;
1213+
return BNPLInquiryResponse;
1214+
}, bnplInquiry, cancellationToken);
1215+
}
10731216

10741217
private cnpOnlineRequest CreateCnpOnlineRequest()
10751218
{
@@ -1276,8 +1419,20 @@ public interface ICnpOnline
12761419

12771420
translateToLowValueTokenResponse TranslateToLowValueTokenRequest(translateToLowValueTokenRequest translateToLowValueTokenRequest);
12781421
Task<translateToLowValueTokenResponse> TranslateToLowValueTokenRequestAsync(translateToLowValueTokenRequest translateToLowValueTokenRequest, CancellationToken cancellationToken);
1279-
1280-
1422+
finicityUrlResponse FinicityUrl(finicityUrlRequest finicityUrl);
1423+
Task<finicityUrlResponse> finicityUrlAsync(finicityUrlRequest finicityUrl, CancellationToken cancellationToken);
1424+
finicityAccountResponse FinicityAccount(finicityAccountRequest finicityAccount);
1425+
Task<finicityAccountResponse> finicityAccountAsync(finicityAccountRequest finicityAccount, CancellationToken cancellationToken);
1426+
BNPLAuthResponse BNPLAuthorization(BNPLAuthorizationRequest bnplAuth);
1427+
Task<BNPLAuthResponse> BNPLAuthorizationAsync(BNPLAuthorizationRequest bnplAuth, CancellationToken cancellationToken);
1428+
BNPLCaptureResponse BNPLCapture(BNPLCaptureRequest bnplCapture);
1429+
Task<BNPLCaptureResponse> BNPLCaptureAsync(BNPLCaptureRequest bnplCapture, CancellationToken cancellationToken);
1430+
BNPLRefundResponse BNPLRefund(BNPLRefundRequest bnplRefund);
1431+
Task<BNPLRefundResponse> BNPLRefundAsync(BNPLRefundRequest bnplRefund, CancellationToken cancellationToken);
1432+
BNPLCancelResponse BNPLCancle(BNPLCancelRequest bnplCancle);
1433+
Task<BNPLCancelResponse> BNPLCancleAsync(BNPLCancelRequest bnplCancle, CancellationToken cancellationToken);
1434+
BNPLInquiryResponse BNPLInquiry(BNPLInquiryRequest bnplInquiry);
1435+
Task<BNPLInquiryResponse> BNPLInquiryAsync(BNPLInquiryRequest bnplInquiry, CancellationToken cancellationToken);
12811436
event EventHandler HttpAction;
12821437
}
12831438
}

CnpSdkForNet/CnpSdkForNet/CnpSdkForNet.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<TargetFramework>netstandard2.0</TargetFramework>
44
<SignAssembly>true</SignAssembly>
55
<AssemblyOriginatorKeyFile>dotNetSDKKey.snk</AssemblyOriginatorKeyFile>
6-
<PackageVersion>12.33.0</PackageVersion>
6+
<PackageVersion>12.37.0</PackageVersion>
77
<Title>Vantiv.CnpSdkForNet</Title>
88
<Authors>FIS</Authors>
99
<Copyright>Copyright © FIS 2020</Copyright>

CnpSdkForNet/CnpSdkForNet/CnpVersion.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ namespace Cnp.Sdk
88
*/
99
public class CnpVersion
1010
{
11-
public const String CurrentCNPXMLVersion = "12.33";
12-
public const String CurrentCNPSDKVersion = "12.33.0";
11+
public const String CurrentCNPXMLVersion = "12.37";
12+
public const String CurrentCNPSDKVersion = "12.37.0";
1313
}
1414
}

0 commit comments

Comments
 (0)