[매입] mg_recv_svc → 전문수신 @Service #8
1 changed files with 49 additions and 0 deletions
|
|
@ -0,0 +1,49 @@
|
|||
package com.klaro.acquirecore.acquiring.dto;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* TX processing result.
|
||||
*/
|
||||
public class TxResult implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
private String txId;
|
||||
private String code;
|
||||
private String message;
|
||||
private boolean success;
|
||||
private TxMessage response;
|
||||
|
||||
public TxResult() {}
|
||||
|
||||
public TxResult(String txId, boolean success, String code, String message) {
|
||||
this.txId = txId;
|
||||
this.success = success;
|
||||
this.code = code;
|
||||
this.message = message;
|
||||
}
|
||||
|
||||
public static TxResult ok(String txId, String message) {
|
||||
return new TxResult(txId, true, "0000", message);
|
||||
}
|
||||
|
||||
public static TxResult error(String txId, String code, String message) {
|
||||
return new TxResult(txId, false, code, message);
|
||||
}
|
||||
|
||||
public String getTxId() { return txId; }
|
||||
public void setTxId(String txId) { this.txId = txId; }
|
||||
|
||||
public String getCode() { return code; }
|
||||
public void setCode(String code) { this.code = code; }
|
||||
|
||||
public String getMessage() { return message; }
|
||||
public void setMessage(String message) { this.message = message; }
|
||||
|
||||
public boolean isSuccess() { return success; }
|
||||
public void setSuccess(boolean success) { this.success = success; }
|
||||
|
||||
public TxMessage getResponse() { return response; }
|
||||
public void setResponse(TxMessage response) { this.response = response; }
|
||||
}
|
||||
Reference in a new issue