com.tinypass.client.publisher.model.ContractDetails 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;
import java.util.Date;
public class ContractDetails {
/* The public ID of the contract */
private String contractId = null;
/* The name */
private String name = 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, };
/* Whether the contract is active */
private Boolean contractIsActive = null;
/* Whether the contract has schedule */
private Boolean contractHasSchedule = 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 count of contract users in the \"REDEEMED\" or \"PENDING\" status */
private Integer contractAllocatedUsersCount = null;
/* The count of contract users in the \"REDEEMED\" status */
private Integer contractRedeemedUsersCount = null;
/* The creation date */
private Date createDate = null;
/* The end date */
private Date endDate = null;
public String getContractId() {
return contractId;
}
public void setContractId(String contractId) {
this.contractId = contractId;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getContractType() {
return contractType;
}
public void setContractType(String contractType) {
this.contractType = contractType;
}
public Boolean getContractIsActive() {
return contractIsActive;
}
public void setContractIsActive(Boolean contractIsActive) {
this.contractIsActive = contractIsActive;
}
public Boolean getContractHasSchedule() {
return contractHasSchedule;
}
public void setContractHasSchedule(Boolean contractHasSchedule) {
this.contractHasSchedule = contractHasSchedule;
}
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 Integer getContractAllocatedUsersCount() {
return contractAllocatedUsersCount;
}
public void setContractAllocatedUsersCount(Integer contractAllocatedUsersCount) {
this.contractAllocatedUsersCount = contractAllocatedUsersCount;
}
public Integer getContractRedeemedUsersCount() {
return contractRedeemedUsersCount;
}
public void setContractRedeemedUsersCount(Integer contractRedeemedUsersCount) {
this.contractRedeemedUsersCount = contractRedeemedUsersCount;
}
public Date getCreateDate() {
return createDate;
}
public void setCreateDate(Date createDate) {
this.createDate = createDate;
}
public Date getEndDate() {
return endDate;
}
public void setEndDate(Date endDate) {
this.endDate = endDate;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ContractDetails {\n");
sb.append(" contractId: ").append(contractId).append("\n");
sb.append(" name: ").append(name).append("\n");
sb.append(" contractType: ").append(contractType).append("\n");
sb.append(" contractIsActive: ").append(contractIsActive).append("\n");
sb.append(" contractHasSchedule: ").append(contractHasSchedule).append("\n");
sb.append(" seatsNumber: ").append(seatsNumber).append("\n");
sb.append(" isHardSeatsLimitType: ").append(isHardSeatsLimitType).append("\n");
sb.append(" contractAllocatedUsersCount: ").append(contractAllocatedUsersCount).append("\n");
sb.append(" contractRedeemedUsersCount: ").append(contractRedeemedUsersCount).append("\n");
sb.append(" createDate: ").append(createDate).append("\n");
sb.append(" endDate: ").append(endDate).append("\n");
sb.append("}\n");
return sb.toString();
}
}