com.blockchyp.client.dto.TermsAndConditionsResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of blockchyp-java Show documentation
Show all versions of blockchyp-java Show documentation
This is the recommended means for Java developers to access the BlockChyp gateway and BlockChyp terminals.
/**
* Copyright 2019 BlockChyp, Inc. All rights reserved. Use of this code is governed by a
* license that can be found in the LICENSE file.
*
* This file was generated automatically. Changes to this file will be lost every time the
* code is regenerated.
*/
package com.blockchyp.client.dto;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* A signature capture response for Terms and Conditions.
*/
public class TermsAndConditionsResponse implements IAbstractAcknowledgement, ICoreResponse, ISignatureResponse {
private boolean success;
private String error;
private String responseDescription;
private String transactionId;
private String batchId;
private String transactionRef;
private String transactionType;
private String timestamp;
private String tickBlock;
private boolean test;
private String sig;
private String sigFile;
/**
* Sets whether or not the request succeeded.
* @param value whether or not the request succeeded.
*/
public void setSuccess(boolean value) {
this.success = value;
}
/**
* Gets whether or not the request succeeded.
* @return whether or not the request succeeded.
*/
@JsonProperty("success")
public boolean isSuccess() {
return this.success;
}
/**
* Sets the error, if an error occurred.
* @param value the error, if an error occurred.
*/
public void setError(String value) {
this.error = value;
}
/**
* Gets the error, if an error occurred.
* @return the error, if an error occurred.
*/
@JsonProperty("error")
public String getError() {
return this.error;
}
/**
* Sets a narrative description of the transaction result.
* @param value a narrative description of the transaction result.
*/
public void setResponseDescription(String value) {
this.responseDescription = value;
}
/**
* Gets a narrative description of the transaction result.
* @return a narrative description of the transaction result.
*/
@JsonProperty("responseDescription")
public String getResponseDescription() {
return this.responseDescription;
}
/**
* Sets the ID assigned to the transaction.
* @param value the ID assigned to the transaction.
*/
public void setTransactionId(String value) {
this.transactionId = value;
}
/**
* Gets the ID assigned to the transaction.
* @return the ID assigned to the transaction.
*/
@JsonProperty("transactionId")
public String getTransactionId() {
return this.transactionId;
}
/**
* Sets the ID assigned to the batch.
* @param value the ID assigned to the batch.
*/
public void setBatchId(String value) {
this.batchId = value;
}
/**
* Gets the ID assigned to the batch.
* @return the ID assigned to the batch.
*/
@JsonProperty("batchId")
public String getBatchId() {
return this.batchId;
}
/**
* Sets the transaction reference string assigned to the transaction request.
* @param value the transaction reference string assigned to the transaction
* request. If no transaction ref was assiged on the request, then the gateway will
* randomly generate one.
*/
public void setTransactionRef(String value) {
this.transactionRef = value;
}
/**
* Gets the transaction reference string assigned to the transaction request.
* @return the transaction reference string assigned to the transaction request. If
* no transaction ref was assiged on the request, then the gateway will randomly
* generate one.
*/
@JsonProperty("transactionRef")
public String getTransactionRef() {
return this.transactionRef;
}
/**
* Sets the type of transaction.
* @param value the type of transaction.
*/
public void setTransactionType(String value) {
this.transactionType = value;
}
/**
* Gets the type of transaction.
* @return the type of transaction.
*/
@JsonProperty("transactionType")
public String getTransactionType() {
return this.transactionType;
}
/**
* Sets the timestamp of the transaction.
* @param value the timestamp of the transaction.
*/
public void setTimestamp(String value) {
this.timestamp = value;
}
/**
* Gets the timestamp of the transaction.
* @return the timestamp of the transaction.
*/
@JsonProperty("timestamp")
public String getTimestamp() {
return this.timestamp;
}
/**
* Sets the hash of the last tick block.
* @param value the hash of the last tick block.
*/
public void setTickBlock(String value) {
this.tickBlock = value;
}
/**
* Gets the hash of the last tick block.
* @return the hash of the last tick block.
*/
@JsonProperty("tickBlock")
public String getTickBlock() {
return this.tickBlock;
}
/**
* Sets that the transaction was processed on the test gateway.
* @param value that the transaction was processed on the test gateway.
*/
public void setTest(boolean value) {
this.test = value;
}
/**
* Gets that the transaction was processed on the test gateway.
* @return that the transaction was processed on the test gateway.
*/
@JsonProperty("test")
public boolean isTest() {
return this.test;
}
/**
* Sets the ECC signature of the response.
* @param value the ECC signature of the response. Can be used to ensure that it was
* signed by the terminal and detect man-in-the middle attacks.
*/
public void setSig(String value) {
this.sig = value;
}
/**
* Gets the ECC signature of the response.
* @return the ECC signature of the response. Can be used to ensure that it was signed by
* the terminal and detect man-in-the middle attacks.
*/
@JsonProperty("sig")
public String getSig() {
return this.sig;
}
/**
* Sets the hex encoded signature data.
* @param value the hex encoded signature data.
*/
public void setSigFile(String value) {
this.sigFile = value;
}
/**
* Gets the hex encoded signature data.
* @return the hex encoded signature data.
*/
@JsonProperty("sigFile")
public String getSigFile() {
return this.sigFile;
}
}