com.tinypass.client.publisher.model.Contract 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.SchedulePeriod;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
public class Contract {
/* The public ID of the contract */
private String contractId = null;
/* The application ID */
private String aid = null;
/* The name */
private String name = null;
/* The description */
private String description = null;
/* The creation date */
private Date createDate = null;
/* The relative URL of the contract. It will be appended to the licensing base URL to get the complete landing page URL */
private String landingPageUrl = null;
/* The public ID of the licensee */
private String licenseeId = null;
/* The number of users who can access this contract */
private Integer seatsNumber = null;
/* The seats limit type (\"FALSE\": a notification is sent if the number of seats is exceeded, \"TRUE\": no user can access if the number of seats is exceeded) */
private Boolean isHardSeatsLimitType = null;
/* The resource ID */
private String rid = null;
/* The schedule ID */
private String scheduleId = null;
/* Whether the contract is active */
private Boolean contractIsActive = null;
/* The contract type (\"SPECIFIC_EMAIL_ADDRESSES_CONTRACT\" or \"EMAIL_DOMAIN_CONTRACT\" or \"IP_RANGE_CONTRACT\") */
private String contractType = null;
//public enum contractTypeEnum { SPECIFIC_EMAIL_ADDRESSES_CONTRACT, EMAIL_DOMAIN_CONTRACT, IP_RANGE_CONTRACT, };
/* The count of conversions for the contract */
private Integer contractConversionsCount = null;
private List contractPeriods = new ArrayList();
public String getContractId() {
return contractId;
}
public void setContractId(String contractId) {
this.contractId = contractId;
}
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 getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public Date getCreateDate() {
return createDate;
}
public void setCreateDate(Date createDate) {
this.createDate = createDate;
}
public String getLandingPageUrl() {
return landingPageUrl;
}
public void setLandingPageUrl(String landingPageUrl) {
this.landingPageUrl = landingPageUrl;
}
public String getLicenseeId() {
return licenseeId;
}
public void setLicenseeId(String licenseeId) {
this.licenseeId = licenseeId;
}
public Integer getSeatsNumber() {
return seatsNumber;
}
public void setSeatsNumber(Integer seatsNumber) {
this.seatsNumber = seatsNumber;
}
public Boolean getIsHardSeatsLimitType() {
return isHardSeatsLimitType;
}
public void setIsHardSeatsLimitType(Boolean isHardSeatsLimitType) {
this.isHardSeatsLimitType = isHardSeatsLimitType;
}
public String getRid() {
return rid;
}
public void setRid(String rid) {
this.rid = rid;
}
public String getScheduleId() {
return scheduleId;
}
public void setScheduleId(String scheduleId) {
this.scheduleId = scheduleId;
}
public Boolean getContractIsActive() {
return contractIsActive;
}
public void setContractIsActive(Boolean contractIsActive) {
this.contractIsActive = contractIsActive;
}
public String getContractType() {
return contractType;
}
public void setContractType(String contractType) {
this.contractType = contractType;
}
public Integer getContractConversionsCount() {
return contractConversionsCount;
}
public void setContractConversionsCount(Integer contractConversionsCount) {
this.contractConversionsCount = contractConversionsCount;
}
public List getContractPeriods() {
return contractPeriods;
}
public void setContractPeriods(List contractPeriods) {
this.contractPeriods = contractPeriods;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class Contract {\n");
sb.append(" contractId: ").append(contractId).append("\n");
sb.append(" aid: ").append(aid).append("\n");
sb.append(" name: ").append(name).append("\n");
sb.append(" description: ").append(description).append("\n");
sb.append(" createDate: ").append(createDate).append("\n");
sb.append(" landingPageUrl: ").append(landingPageUrl).append("\n");
sb.append(" licenseeId: ").append(licenseeId).append("\n");
sb.append(" seatsNumber: ").append(seatsNumber).append("\n");
sb.append(" isHardSeatsLimitType: ").append(isHardSeatsLimitType).append("\n");
sb.append(" rid: ").append(rid).append("\n");
sb.append(" scheduleId: ").append(scheduleId).append("\n");
sb.append(" contractIsActive: ").append(contractIsActive).append("\n");
sb.append(" contractType: ").append(contractType).append("\n");
sb.append(" contractConversionsCount: ").append(contractConversionsCount).append("\n");
sb.append(" contractPeriods: ").append(contractPeriods).append("\n");
sb.append("}\n");
return sb.toString();
}
}