Skip to content

Commit c508817

Browse files
OctopusDeploy release: 14.2.13
1 parent c24a416 commit c508817

File tree

15 files changed

+443
-606
lines changed

15 files changed

+443
-606
lines changed

CHANGELOG.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# Changelog
2-
## Latest Version - V14.2.12 (02/27/2025)
2+
3+
## Latest Version - V14.2.13 (03/27/2025)
4+
### Bug Fixes
5+
- [Vaps] - Added a fix to set the original batchNumber into a datacollect transaction through TransactionReference object.
6+
- [Vaps] - Updated DE 12 dateTime function for non-original transaction.
7+
- [Vaps] - Updated the datetime retrieval method from datetime.now() to localdatetime.now() for internal data collect DE 12 tag (10349).
8+
9+
## V14.2.12 (02/27/2025)
310
- [NTS] -Fix issue 10348 : Updated the default value space to 0 for Voyager EMV non-fuel product types.
411

512
## V14.2.11 (02/18/2025)

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<modelVersion>4.0.0</modelVersion>
44
<groupId>com.heartlandpaymentsystems</groupId>
55
<artifactId>globalpayments-sdk</artifactId>
6-
<version>14.2.12</version>
6+
<version>14.2.13</version>
77
<packaging>jar</packaging>
88
<name>Heartland &amp; Global Payments SDK</name>
99
<description>API for processing payments through Global Payments</description>

src/main/java/com/global/api/gateways/VapsConnector.java

Lines changed: 25 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@
2727

2828
import java.math.BigDecimal;
2929
import java.text.SimpleDateFormat;
30+
import java.time.LocalDateTime;
31+
import java.time.format.DateTimeFormatter;
3032
import java.util.ArrayList;
3133
import java.util.LinkedHashMap;
3234
import java.util.LinkedList;
@@ -798,7 +800,7 @@ else if (originalPaymentMethod instanceof GiftCard) {
798800
// DE 12: Date and Time, Transaction - n12 (YYMMDDhhmmss)
799801
String timestamp = builder.getTimestamp();
800802
if(StringUtils.isNullOrEmpty(timestamp)) {
801-
timestamp = DateTime.now(DateTimeZone.UTC).toString("yyMMddhhmmss");
803+
timestamp = DateTime.now().toString("yyMMddhhmmss");
802804
}
803805
request.set(DataElementId.DE_012, timestamp);
804806

@@ -1517,7 +1519,7 @@ private <T extends TransactionBuilder<Transaction>> Transaction sendRequest(Netw
15171519
} else {
15181520
NetworkMessage impliedCapture = decodeRequest(response.getTransactionToken());
15191521
impliedCapture.set(DataElementId.DE_011, StringUtils.padLeft(followOnStan, 6, '0'));
1520-
impliedCapture.set(DataElementId.DE_012, DateTime.now().toString("yyMMddhhmmss"));
1522+
impliedCapture.set(DataElementId.DE_012, LocalDateTime.now().format(DateTimeFormatter.ofPattern("yyMMddhhmmss")));
15211523
impliedCapture.set(DataElementId.DE_025, DE25_MessageReasonCode.PinDebit_EBT_Acknowledgement);
15221524

15231525

@@ -1555,7 +1557,7 @@ else if(transactionType.equals(TransactionType.Capture) && messageReasonCode !=
15551557
return response;
15561558
} else if (messageReasonCode.equals(DE25_MessageReasonCode.AuthCapture.getValue())) {
15571559
request.set(DataElementId.DE_011, StringUtils.padLeft(followOnStan, 6, '0'));
1558-
request.set(DataElementId.DE_012, DateTime.now().toString("yyMMddhhmmss"));
1560+
request.set(DataElementId.DE_012, LocalDateTime.now().format(DateTimeFormatter.ofPattern("yyMMddhhmmss")));
15591561
request.set(DataElementId.DE_025, DE25_MessageReasonCode.PinDebit_EBT_Acknowledgement);
15601562

15611563
Transaction dataCollectResponse = sendRequest(request, builder, orgCorr1, orgCorr2);
@@ -2331,21 +2333,38 @@ private <T extends TransactionBuilder<Transaction>> DE48_MessageControl mapMessa
23312333
// DE48-4 (Sequence Number & Batch Number)
23322334
if(!builder.getTransactionType().equals(TransactionType.Auth) && !isTimeRequest) {
23332335
int sequenceNumber = 0;
2336+
23342337
if(!builder.getTransactionType().equals(TransactionType.BatchClose)) {
23352338
sequenceNumber = builder.getSequenceNumber();
2339+
if (builder.getPaymentMethod() != null) {
2340+
IPaymentMethod paymentMethod = builder.getPaymentMethod();
2341+
if (paymentMethod instanceof TransactionReference) {
2342+
TransactionReference reference = (TransactionReference) builder.getPaymentMethod();
2343+
if(reference.getSequenceNumber()!=null) {
2344+
sequenceNumber = reference.getSequenceNumber();
2345+
}
2346+
}
2347+
}
23362348
if (sequenceNumber == 0 && batchProvider != null) {
23372349
sequenceNumber = batchProvider.getSequenceNumber();
23382350
}
23392351
}
23402352
messageControl.setSequenceNumber(sequenceNumber);
23412353

23422354
int batchNumber = builder.getBatchNumber();
2343-
if (batchNumber == 0 && batchProvider != null) {
2344-
batchNumber = batchProvider.getBatchNumber();
2355+
if (builder.getPaymentMethod() != null) {
2356+
IPaymentMethod paymentMethod = builder.getPaymentMethod();
2357+
if (paymentMethod instanceof TransactionReference) {
2358+
TransactionReference reference = (TransactionReference) builder.getPaymentMethod();
2359+
if(reference.getBatchNumber()!=null)
2360+
batchNumber = reference.getBatchNumber();
2361+
}
23452362
}
2363+
if (batchNumber == 0 && batchProvider != null) {
2364+
batchNumber = batchProvider.getBatchNumber();
2365+
}
23462366
messageControl.setBatchNumber(batchNumber);
23472367
}
2348-
23492368
// DE48-5
23502369
if(builder instanceof AuthorizationBuilder) {
23512370
AuthorizationBuilder authBuilder = (AuthorizationBuilder)builder;

0 commit comments

Comments
 (0)