com.tinypass.client.publisher.model.Promotion 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.PromotionFixedDiscount;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
public class Promotion {
/* The promotion ID */
private String promotionId = null;
/* The application ID */
private String aid = null;
/* The promotion name */
private String name = null;
/* The promotion status */
private String status = null;
//public enum statusEnum { active, expired, new, };
/* The fixed value for all the promotion codes */
private String fixedPromotionCode = null;
/* Whether to allow unlimited uses */
private Boolean unlimitedUses = null;
/* The prefix for all the codes */
private String promotionCodePrefix = null;
/* Whether the promotion allows new customers only */
private Boolean newCustomersOnly = null;
/* The promotion discount */
private BigDecimal discountAmount = null;
/* The promotion discount currency */
private String discountCurrency = null;
/* The promotion discount, formatted */
private String discount = null;
/* The promotion discount, percentage */
private BigDecimal percentageDiscount = null;
/* The promotion discount type */
private String discountType = null;
//public enum discountTypeEnum { fixed, percentage, };
/* The number of uses allowed by the promotion */
private Integer usesAllowed = null;
/* How many times the promotion has been used */
private Integer uses = null;
/* Never allow the value of checkout to be zero */
private Boolean neverAllowZero = null;
/* The type of dependency to terms */
private String termDependencyType = null;
//public enum termDependencyTypeEnum { all, include, unlocked, };
/* The start date. */
private Date startDate = null;
/* The end date */
private Date endDate = null;
/* The creation date */
private Date createDate = null;
/* The user who created the object */
private String createBy = null;
/* The update date */
private Date updateDate = null;
/* The last user to update the object */
private String updateBy = null;
/* Whether the object is deleted */
private Boolean deleted = null;
private List fixedDiscountList = new ArrayList();
/* Whether to apply the promotion discount to all billing periods (\"TRUE\")or the first billing period only (\"FALSE\") */
private Boolean applyToAllBillingPeriods = null;
/* Whether the promotion can be applied on renewal */
private Boolean canBeAppliedOnRenewal = null;
/* Promotion discount applies to number of billing periods */
private Integer billingPeriodLimit = null;
public String getPromotionId() {
return promotionId;
}
public void setPromotionId(String promotionId) {
this.promotionId = promotionId;
}
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 getStatus() {
return status;
}
public void setStatus(String status) {
this.status = status;
}
public String getFixedPromotionCode() {
return fixedPromotionCode;
}
public void setFixedPromotionCode(String fixedPromotionCode) {
this.fixedPromotionCode = fixedPromotionCode;
}
public Boolean getUnlimitedUses() {
return unlimitedUses;
}
public void setUnlimitedUses(Boolean unlimitedUses) {
this.unlimitedUses = unlimitedUses;
}
public String getPromotionCodePrefix() {
return promotionCodePrefix;
}
public void setPromotionCodePrefix(String promotionCodePrefix) {
this.promotionCodePrefix = promotionCodePrefix;
}
public Boolean getNewCustomersOnly() {
return newCustomersOnly;
}
public void setNewCustomersOnly(Boolean newCustomersOnly) {
this.newCustomersOnly = newCustomersOnly;
}
public BigDecimal getDiscountAmount() {
return discountAmount;
}
public void setDiscountAmount(BigDecimal discountAmount) {
this.discountAmount = discountAmount;
}
public String getDiscountCurrency() {
return discountCurrency;
}
public void setDiscountCurrency(String discountCurrency) {
this.discountCurrency = discountCurrency;
}
public String getDiscount() {
return discount;
}
public void setDiscount(String discount) {
this.discount = discount;
}
public BigDecimal getPercentageDiscount() {
return percentageDiscount;
}
public void setPercentageDiscount(BigDecimal percentageDiscount) {
this.percentageDiscount = percentageDiscount;
}
public String getDiscountType() {
return discountType;
}
public void setDiscountType(String discountType) {
this.discountType = discountType;
}
public Integer getUsesAllowed() {
return usesAllowed;
}
public void setUsesAllowed(Integer usesAllowed) {
this.usesAllowed = usesAllowed;
}
public Integer getUses() {
return uses;
}
public void setUses(Integer uses) {
this.uses = uses;
}
public Boolean getNeverAllowZero() {
return neverAllowZero;
}
public void setNeverAllowZero(Boolean neverAllowZero) {
this.neverAllowZero = neverAllowZero;
}
public String getTermDependencyType() {
return termDependencyType;
}
public void setTermDependencyType(String termDependencyType) {
this.termDependencyType = termDependencyType;
}
public Date getStartDate() {
return startDate;
}
public void setStartDate(Date startDate) {
this.startDate = startDate;
}
public Date getEndDate() {
return endDate;
}
public void setEndDate(Date endDate) {
this.endDate = endDate;
}
public Date getCreateDate() {
return createDate;
}
public void setCreateDate(Date createDate) {
this.createDate = createDate;
}
public String getCreateBy() {
return createBy;
}
public void setCreateBy(String createBy) {
this.createBy = createBy;
}
public Date getUpdateDate() {
return updateDate;
}
public void setUpdateDate(Date updateDate) {
this.updateDate = updateDate;
}
public String getUpdateBy() {
return updateBy;
}
public void setUpdateBy(String updateBy) {
this.updateBy = updateBy;
}
public Boolean getDeleted() {
return deleted;
}
public void setDeleted(Boolean deleted) {
this.deleted = deleted;
}
public List getFixedDiscountList() {
return fixedDiscountList;
}
public void setFixedDiscountList(List fixedDiscountList) {
this.fixedDiscountList = fixedDiscountList;
}
public Boolean getApplyToAllBillingPeriods() {
return applyToAllBillingPeriods;
}
public void setApplyToAllBillingPeriods(Boolean applyToAllBillingPeriods) {
this.applyToAllBillingPeriods = applyToAllBillingPeriods;
}
public Boolean getCanBeAppliedOnRenewal() {
return canBeAppliedOnRenewal;
}
public void setCanBeAppliedOnRenewal(Boolean canBeAppliedOnRenewal) {
this.canBeAppliedOnRenewal = canBeAppliedOnRenewal;
}
public Integer getBillingPeriodLimit() {
return billingPeriodLimit;
}
public void setBillingPeriodLimit(Integer billingPeriodLimit) {
this.billingPeriodLimit = billingPeriodLimit;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class Promotion {\n");
sb.append(" promotionId: ").append(promotionId).append("\n");
sb.append(" aid: ").append(aid).append("\n");
sb.append(" name: ").append(name).append("\n");
sb.append(" status: ").append(status).append("\n");
sb.append(" fixedPromotionCode: ").append(fixedPromotionCode).append("\n");
sb.append(" unlimitedUses: ").append(unlimitedUses).append("\n");
sb.append(" promotionCodePrefix: ").append(promotionCodePrefix).append("\n");
sb.append(" newCustomersOnly: ").append(newCustomersOnly).append("\n");
sb.append(" discountAmount: ").append(discountAmount).append("\n");
sb.append(" discountCurrency: ").append(discountCurrency).append("\n");
sb.append(" discount: ").append(discount).append("\n");
sb.append(" percentageDiscount: ").append(percentageDiscount).append("\n");
sb.append(" discountType: ").append(discountType).append("\n");
sb.append(" usesAllowed: ").append(usesAllowed).append("\n");
sb.append(" uses: ").append(uses).append("\n");
sb.append(" neverAllowZero: ").append(neverAllowZero).append("\n");
sb.append(" termDependencyType: ").append(termDependencyType).append("\n");
sb.append(" startDate: ").append(startDate).append("\n");
sb.append(" endDate: ").append(endDate).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(" deleted: ").append(deleted).append("\n");
sb.append(" fixedDiscountList: ").append(fixedDiscountList).append("\n");
sb.append(" applyToAllBillingPeriods: ").append(applyToAllBillingPeriods).append("\n");
sb.append(" canBeAppliedOnRenewal: ").append(canBeAppliedOnRenewal).append("\n");
sb.append(" billingPeriodLimit: ").append(billingPeriodLimit).append("\n");
sb.append("}\n");
return sb.toString();
}
}