com.tinypass.client.publisher.model.OfferModel 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 com.tinypass.client.publisher.model.Term;
import com.tinypass.client.publisher.model.User;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
public class OfferModel {
/* The application ID */
private String aid = null;
/* The offer name */
private String name = null;
/* The offer ID */
private String offerId = null;
/* The offer status */
private String status = null;
//public enum statusEnum { active, archived, };
/* Whether the object is deleted */
private Boolean deleted = null;
/* The creation date */
private Integer createDate = null;
private User createBy = null;
/* The update date */
private Integer updateDate = null;
private User updateBy = null;
private List terms = new ArrayList();
public String getAid() {
return aid;
}
public void setAid(String aid) {
this.aid = aid;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getOfferId() {
return offerId;
}
public void setOfferId(String offerId) {
this.offerId = offerId;
}
public String getStatus() {
return status;
}
public void setStatus(String status) {
this.status = status;
}
public Boolean getDeleted() {
return deleted;
}
public void setDeleted(Boolean deleted) {
this.deleted = deleted;
}
public Integer getCreateDate() {
return createDate;
}
public void setCreateDate(Integer createDate) {
this.createDate = createDate;
}
public User getCreateBy() {
return createBy;
}
public void setCreateBy(User createBy) {
this.createBy = createBy;
}
public Integer getUpdateDate() {
return updateDate;
}
public void setUpdateDate(Integer updateDate) {
this.updateDate = updateDate;
}
public User getUpdateBy() {
return updateBy;
}
public void setUpdateBy(User updateBy) {
this.updateBy = updateBy;
}
public List getTerms() {
return terms;
}
public void setTerms(List terms) {
this.terms = terms;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class OfferModel {\n");
sb.append(" aid: ").append(aid).append("\n");
sb.append(" name: ").append(name).append("\n");
sb.append(" offerId: ").append(offerId).append("\n");
sb.append(" status: ").append(status).append("\n");
sb.append(" deleted: ").append(deleted).append("\n");
sb.append(" createDate: ").append(createDate).append("\n");
sb.append(" createBy: ").append(createBy).append("\n");
sb.append(" updateDate: ").append(updateDate).append("\n");
sb.append(" updateBy: ").append(updateBy).append("\n");
sb.append(" terms: ").append(terms).append("\n");
sb.append("}\n");
return sb.toString();
}
}