Skip to content

Commit 7f16543

Browse files
OctopusDeploy release: 14.2.18
1 parent 861cf7c commit 7f16543

File tree

9 files changed

+310
-134
lines changed

9 files changed

+310
-134
lines changed

CHANGELOG.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Changelog
2-
## Latest Version - V14.2.17 (05/01/2025)
2+
## Latest Version - V14.2.18 (05/15/2025)
3+
### Bug Fixes
4+
-[VAPS] - Added a fix to set the original sequenceNumber into a non Original transaction through TransactionReference object for Debit transaction.
5+
-[VAPS] - Updated VisaFleet2.0 condition to add 8 Non Fuel products.
6+
7+
## V14.2.17 (05/01/2025)
38
### Bug Fixes
49
- [NTS] - Added message code condition for retransmit data collect & credit adjustment (Issue 10359).
510
- [NTS] - Corrected unit of measure for type of purchase 3 in VisaFleet data collect transactions (Issue 10360).

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.17</version>
6+
<version>14.2.18</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/builders/AuthorizationBuilder.java

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,12 @@ public class AuthorizationBuilder extends TransactionBuilder<Transaction> {
3939
private boolean isAvs;
4040
private boolean allowPartialAuth;
4141
private BigDecimal amount;
42-
private boolean amountEstimated;
42+
private Boolean amountEstimated;
4343
private BigDecimal authAmount;
4444
private AutoSubstantiation autoSubstantiation;
4545
private InquiryType balanceInquiryType;
4646
private Address billingAddress;
47-
@Getter
48-
@Setter
49-
private BlockedCardType cardTypesBlocking;
47+
@Getter @Setter private BlockedCardType cardTypesBlocking;
5048
private String cardBrandTransactionId;
5149
private String cardHolderLanguage;
5250
private BigDecimal cashBackAmount;
@@ -80,7 +78,6 @@ public class AuthorizationBuilder extends TransactionBuilder<Transaction> {
8078
@Getter
8179
@Setter
8280
private String clientTxnId;
83-
8481
@Getter
8582
@Setter
8683
private String idempotencyKey;
@@ -284,7 +281,7 @@ public BigDecimal getAmount() {
284281
return amount;
285282
}
286283

287-
public boolean isAmountEstimated() {
284+
public Boolean isAmountEstimated() {
288285
return amountEstimated;
289286
}
290287

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

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
import java.text.SimpleDateFormat;
55
import java.util.ArrayList;
66
import java.util.LinkedHashMap;
7-
import java.util.LinkedList;
87
import java.util.List;
98
import com.global.api.builders.*;
109
import com.global.api.entities.enums.*;
@@ -64,8 +63,8 @@
6463
public class NwsConnector extends GatewayConnectorConfig {
6564
private static final String DATE_FORMAT_SPAN_10 = "MMddhhmmss";
6665
private static final String DATE_FORMAT_SPAN_12 = "yyMMddhhmmss";
67-
private static String cardTypeWexFleet = "WexFleet";
68-
private static String cardTypeVisaReadyLink = "VisaReadyLink";
66+
private static final String cardTypeWexFleet = "WexFleet";
67+
private static final String cardTypeVisaReadyLink = "VisaReadyLink";
6968
private static final String WEX_SEQ_EXCEPTION_MESSAGE_STRING = "The purchase device sequence number cannot be null for WEX transactions.";
7069

7170
public Transaction processAuthorization(AuthorizationBuilder builder) throws ApiException {
@@ -76,7 +75,7 @@ public Transaction processAuthorization(AuthorizationBuilder builder) throws Api
7675
byte[] orgCorr2 = new byte[8];
7776

7877
NetworkMessage request = new NetworkMessage();
79-
IPaymentMethod paymentMethod = null;
78+
IPaymentMethod paymentMethod;
8079
paymentMethod = builder.getPaymentMethod();
8180
PaymentMethodType paymentMethodType = null;
8281
if (paymentMethod != null)
@@ -878,7 +877,7 @@ public Transaction manageTransaction(ManagementBuilder builder) throws ApiExcept
878877
22.2 CARDHOLDER AUTHENTICATION CAPABILITY an1 The methods available for authenticating the cardholder.
879878
22.3 CARD CAPTURE CAPABILITY an1 Indicates whether the POS application can retain the card if required to do so.
880879
22.4 OPERATING ENVIRONMENT an1 Indicates whether the POS application is attended by a clerk and the location of the POS application.
881-
22.5 CARDHOLDER PRESENT an1 Indicates whether or not the cardholder is present and if not present then why.
880+
22.5 CARDHOLDER PRESENT an1 Indicates whether the cardholder is present and if not present then why.
882881
22.6 CARD PRESENT an1 Indicates whether the card is present.
883882
22.7 CARD DATA INPUT MODE an1 The method used for inputting the card data.
884883
22.8 CARDHOLDER AUTHENTICATION METHOD an1 The method used for verifying the cardholder identity.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public Transaction processAuthorization(AuthorizationBuilder builder) throws Api
6666
et.subElement(block1, "AllowPartialAuth", builder.isAllowPartialAuth() ? "Y" : "N");
6767
}
6868

69-
if(paymentType.equals(PaymentMethodType.Credit) && modifier.equals(TransactionModifier.None)) {
69+
if(paymentType.equals(PaymentMethodType.Credit) && modifier.equals(TransactionModifier.None) && builder.isAmountEstimated() != null) {
7070
et.subElement(block1, "AmountIndicator", builder.isAmountEstimated() ? "E" : "F");
7171
}
7272
}

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1700,6 +1700,10 @@ private <T extends TransactionBuilder<Transaction>> Transaction mapResponse(byte
17001700
reference.setBatchNumber(messageControl.getBatchNumber());
17011701
}
17021702

1703+
if (messageControl != null ) {
1704+
reference.setSequenceNumber(messageControl.getSequenceNumber());
1705+
}
1706+
17031707
// card issuer data
17041708
if (cardIssuerData != null) {
17051709
reference.setNtsData(cardIssuerData.get("NTS"));
@@ -2340,7 +2344,7 @@ private <T extends TransactionBuilder<Transaction>> DE48_MessageControl mapMessa
23402344
IPaymentMethod paymentMethod = builder.getPaymentMethod();
23412345
if (paymentMethod instanceof TransactionReference) {
23422346
TransactionReference reference = (TransactionReference) builder.getPaymentMethod();
2343-
if(reference.getSequenceNumber()!=null) {
2347+
if(reference.getSequenceNumber()!=null && reference.getOriginalPaymentMethod() instanceof Debit) {
23442348
sequenceNumber = reference.getSequenceNumber();
23452349
}
23462350
}

src/main/java/com/global/api/network/elements/DE63_ProductData.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ public byte[] toByteArray() {
324324
.concat(StringUtils.toNumeric(entry.getAmount()) + "\\");
325325
}
326326
}
327-
if (getNonFuelProductCount() != 0 && getNonFuelProductCount() < 8) {
327+
if (getNonFuelProductCount() != 0 && getNonFuelProductCount() <= 8) {
328328
for (DE63_ProductDataEntry entry : nonFuelProductDataEntries.values()) {
329329
rvalue = rvalue.concat(entry.getCode() + "\\")
330330
.concat("\\") //Quantity

0 commit comments

Comments
 (0)