com.global.api.paymentMethods.EwicTrackData Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of globalpayments-sdk Show documentation
Show all versions of globalpayments-sdk Show documentation
API for processing payments through Global Payments
package com.global.api.paymentMethods;
import com.global.api.entities.enums.EntryMethod;
import com.global.api.entities.enums.TrackNumber;
import com.global.api.utils.CardUtils;
import lombok.Getter;
import lombok.Setter;
public class EwicTrackData extends Ewic implements ITrackData {
@Getter @Setter
private String discretionaryData;
@Getter@Setter
private EntryMethod entryMethod = EntryMethod.Swipe;
@Getter@Setter
private String encryptedPan;
@Getter@Setter
private String expiry;
@Getter@Setter
private String pan;
@Getter@Setter
private String pinBlock;
@Getter
private String purchaseDeviceSequenceNumber;
@Getter@Setter
private TrackNumber trackNumber = TrackNumber.Unknown;
private String trackData;
private String value;
@Getter
@Setter
private String tokenizationData;
public String getTrackData() {
return trackData;
}
public void setTrackData(String value) {
if(this.value == null) {
setValue(value);
}
else {
trackData = value;
}
}
public String getValue() {
return value;
}
public void setValue(String value) {
this.value = value;
CardUtils.parseTrackData(this);
}
@Override
public String getTokenizationData() {
return null;
}
@Override
public void setTokenizationData(String s) {
}
@Override
public String getTruncatedTrackData() {
return null;
}
}