com.tinypass.client.publisher.model.Consent Maven / Gradle / Ivy
package com.tinypass.client.publisher.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
public class Consent {
/* The consent ID */
private String consentId = null;
/* The name of the consent box field */
private String fieldName = null;
/* The ID of the consent box field */
private String fieldId = null;
/* The displayed text of the consent box */
private String displayText = null;
/* The consent box error message */
private String errorMessage = null;
/* The consent box type (\"registration\" or \"checkout\") */
private String type = null;
//public enum typeEnum { registration, checkout, };
/* Whether the consent box is pre-checked */
private Boolean preChecked = null;
/* Whether the consent box is required */
private Boolean required = null;
/* Whether the consent box is enabled */
private Boolean enabled = null;
/* Whether the field ID can be edited */
private Boolean fieldIdEnabled = null;
public String getConsentId() {
return consentId;
}
public void setConsentId(String consentId) {
this.consentId = consentId;
}
public String getFieldName() {
return fieldName;
}
public void setFieldName(String fieldName) {
this.fieldName = fieldName;
}
public String getFieldId() {
return fieldId;
}
public void setFieldId(String fieldId) {
this.fieldId = fieldId;
}
public String getDisplayText() {
return displayText;
}
public void setDisplayText(String displayText) {
this.displayText = displayText;
}
public String getErrorMessage() {
return errorMessage;
}
public void setErrorMessage(String errorMessage) {
this.errorMessage = errorMessage;
}
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
public Boolean getPreChecked() {
return preChecked;
}
public void setPreChecked(Boolean preChecked) {
this.preChecked = preChecked;
}
public Boolean getRequired() {
return required;
}
public void setRequired(Boolean required) {
this.required = required;
}
public Boolean getEnabled() {
return enabled;
}
public void setEnabled(Boolean enabled) {
this.enabled = enabled;
}
public Boolean getFieldIdEnabled() {
return fieldIdEnabled;
}
public void setFieldIdEnabled(Boolean fieldIdEnabled) {
this.fieldIdEnabled = fieldIdEnabled;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class Consent {\n");
sb.append(" consentId: ").append(consentId).append("\n");
sb.append(" fieldName: ").append(fieldName).append("\n");
sb.append(" fieldId: ").append(fieldId).append("\n");
sb.append(" displayText: ").append(displayText).append("\n");
sb.append(" errorMessage: ").append(errorMessage).append("\n");
sb.append(" type: ").append(type).append("\n");
sb.append(" preChecked: ").append(preChecked).append("\n");
sb.append(" required: ").append(required).append("\n");
sb.append(" enabled: ").append(enabled).append("\n");
sb.append(" fieldIdEnabled: ").append(fieldIdEnabled).append("\n");
sb.append("}\n");
return sb.toString();
}
}