com.global.api.terminals.pax.responses.InitializeResponse 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.terminals.pax.responses;
import com.global.api.entities.enums.ControlCodes;
import com.global.api.entities.enums.PaxMsgId;
import com.global.api.entities.exceptions.MessageException;
import com.global.api.terminals.abstractions.IInitializeResponse;
import com.global.api.utils.MessageReader;
public class InitializeResponse extends PaxDeviceResponse implements IInitializeResponse {
private String serialNumber;
public String getSerialNumber() {
return serialNumber;
}
private void setSerialNumber(String serialNumber) {
this.serialNumber = serialNumber;
}
public InitializeResponse(byte[] buffer) throws MessageException {
super(buffer, PaxMsgId.A01_RSP_INITIALIZE);
}
@Override
protected void parseResponse(MessageReader mr) throws MessageException {
super.parseResponse(mr);
setSerialNumber(mr.readToCode(ControlCodes.ETX));
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy