All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.global.api.paymentMethods.EwicTrackData Maven / Gradle / Ivy

There is a newer version: 14.2.3
Show newest version
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;
    }


}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy