All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.tinypass.client.publisher.model.PromoCode Maven / Gradle / Ivy

There is a newer version: 16.331.0
Show newest version
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.User;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;

public class PromoCode {

  /* The promo code ID */
  private String promoCodeId = null;
  

  /* The promotion ID */
  private String promotionId = null;
  

  /* The promo code itself */
  private String code = null;
  

  /* The assigned email */
  private String assignedEmail = null;
  

  /* The promo code reserve_date */
  private Integer reserveDate = null;
  

  /* The promo code state */
  private String state = null;
    //public enum stateEnum {  Active,  Used,  Reserved for free trial,  Reserved for delayed payment,  };


  /* The promo code state value */
  private String stateValue = null;
    //public enum stateValueEnum {  active,  used,  reserved_for_free_trial,  reserved_for_delayed_payment,  };


  /* The user who claimed the promo code */
  private User claimedUser = null;
  

  /* The date when the promotion was claimed */
  private Integer claimedDate = null;
  

  /* The creation date */
  private Integer createDate = null;
  

  /* The user who created the object */
  private String createBy = null;
  

  /* The update date */
  private Integer updateDate = null;
  

  /* The last user to update the object */
  private String updateBy = null;
  

  /* Whether the object is deleted */
  private Boolean deleted = null;
  

  /* The promo code last original price */
  private String lastOriginalPrice = null;
  


  public String getPromoCodeId() {
    return promoCodeId;
  }
  public void setPromoCodeId(String promoCodeId) {
    this.promoCodeId = promoCodeId;
  }


  public String getPromotionId() {
    return promotionId;
  }
  public void setPromotionId(String promotionId) {
    this.promotionId = promotionId;
  }


  public String getCode() {
    return code;
  }
  public void setCode(String code) {
    this.code = code;
  }


  public String getAssignedEmail() {
    return assignedEmail;
  }
  public void setAssignedEmail(String assignedEmail) {
    this.assignedEmail = assignedEmail;
  }


  public Integer getReserveDate() {
    return reserveDate;
  }
  public void setReserveDate(Integer reserveDate) {
    this.reserveDate = reserveDate;
  }


  public String getState() {
    return state;
  }
  public void setState(String state) {
    this.state = state;
  }


  public String getStateValue() {
    return stateValue;
  }
  public void setStateValue(String stateValue) {
    this.stateValue = stateValue;
  }


  public User getClaimedUser() {
    return claimedUser;
  }
  public void setClaimedUser(User claimedUser) {
    this.claimedUser = claimedUser;
  }


  public Integer getClaimedDate() {
    return claimedDate;
  }
  public void setClaimedDate(Integer claimedDate) {
    this.claimedDate = claimedDate;
  }


  public Integer getCreateDate() {
    return createDate;
  }
  public void setCreateDate(Integer createDate) {
    this.createDate = createDate;
  }


  public String getCreateBy() {
    return createBy;
  }
  public void setCreateBy(String createBy) {
    this.createBy = createBy;
  }


  public Integer getUpdateDate() {
    return updateDate;
  }
  public void setUpdateDate(Integer 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 String getLastOriginalPrice() {
    return lastOriginalPrice;
  }
  public void setLastOriginalPrice(String lastOriginalPrice) {
    this.lastOriginalPrice = lastOriginalPrice;
  }


  @Override
  public String toString()  {
    StringBuilder sb = new StringBuilder();
    sb.append("class PromoCode {\n");
    sb.append("  promoCodeId: ").append(promoCodeId).append("\n");
    sb.append("  promotionId: ").append(promotionId).append("\n");
    sb.append("  code: ").append(code).append("\n");
    sb.append("  assignedEmail: ").append(assignedEmail).append("\n");
    sb.append("  reserveDate: ").append(reserveDate).append("\n");
    sb.append("  state: ").append(state).append("\n");
    sb.append("  stateValue: ").append(stateValue).append("\n");
    sb.append("  claimedUser: ").append(claimedUser).append("\n");
    sb.append("  claimedDate: ").append(claimedDate).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("  lastOriginalPrice: ").append(lastOriginalPrice).append("\n");
    sb.append("}\n");
    return sb.toString();
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy