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

com.tinypass.client.publisher.model.TermConversionDTO 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.Access;
import com.tinypass.client.publisher.model.Period;
import com.tinypass.client.publisher.model.PromoCode;
import com.tinypass.client.publisher.model.Schedule;
import com.tinypass.client.publisher.model.Term;
import com.tinypass.client.publisher.model.TermConversionSubscription;
import com.tinypass.client.publisher.model.UserPaymentDTO;
import com.tinypass.client.publisher.model.UserPaymentInfo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;

public class TermConversionDTO {

  /* The term conversion ID */
  private String termConversionId = null;
  

  /* The term that was converted */
  private Term term = null;
  

  /* The term conversion type */
  private String type = null;
    //public enum typeEnum {  Unknown,  Payment,  Subscription,  Renewal,  Grant access,  Gift received,  Gift purchased,  Registration,  Adview,  Custom,  External,  Free promo redemption,  External renewal,  Provisional,  Free renewal,  Bill,  Upgrade term,  Term conversion to wait Instant Payment Notification,  Licensee contract redemption,  Licensee contract renewal,  Shared subscription child grand access,  Shared subscription child renew,  Upgrade term with grace period,  Dynamic term purchase,  Dynamic subscription internal renewal,  Dynamic subscription external renewal,  Link,  Upgrade to dynamic term,  Upgrade to dynamic term with grace period,  Payment subscription renewal with grace period,  Dynamic subscription internal renewal with grace period,  Dynamic subscription external renewal with grace period,  The dynamic subscription has been created as the result of the import,  Subscription deferred start,  Dynamic term deferred purchase,  Deferred payment subscription activation,  Deferred dynamic subscription activation,  };


  /* The application ID */
  private String aid = null;
  

  /* The access created as a result of the term conversion */
  private Access userAccess = null;
  

  /* The payment created during the term conversion */
  private UserPaymentDTO userPayment = null;
  

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

  /* The unique browser ID */
  private String browserId = null;
  

  /* The subscription */
  private TermConversionSubscription subscription = null;
  

  /* The promo code, if applicable */
  private PromoCode promoCode = null;
  

  /* The payment info used during the term conversion */
  private UserPaymentInfo userPaymentInfo = null;
  

  /* The schedule of the term conversion */
  private Schedule schedule = null;
  

  /* The schedule period of the term conversion */
  private Period period = null;
  


  public String getTermConversionId() {
    return termConversionId;
  }
  public void setTermConversionId(String termConversionId) {
    this.termConversionId = termConversionId;
  }


  public Term getTerm() {
    return term;
  }
  public void setTerm(Term term) {
    this.term = term;
  }


  public String getType() {
    return type;
  }
  public void setType(String type) {
    this.type = type;
  }


  public String getAid() {
    return aid;
  }
  public void setAid(String aid) {
    this.aid = aid;
  }


  public Access getUserAccess() {
    return userAccess;
  }
  public void setUserAccess(Access userAccess) {
    this.userAccess = userAccess;
  }


  public UserPaymentDTO getUserPayment() {
    return userPayment;
  }
  public void setUserPayment(UserPaymentDTO userPayment) {
    this.userPayment = userPayment;
  }


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


  public String getBrowserId() {
    return browserId;
  }
  public void setBrowserId(String browserId) {
    this.browserId = browserId;
  }


  public TermConversionSubscription getSubscription() {
    return subscription;
  }
  public void setSubscription(TermConversionSubscription subscription) {
    this.subscription = subscription;
  }


  public PromoCode getPromoCode() {
    return promoCode;
  }
  public void setPromoCode(PromoCode promoCode) {
    this.promoCode = promoCode;
  }


  public UserPaymentInfo getUserPaymentInfo() {
    return userPaymentInfo;
  }
  public void setUserPaymentInfo(UserPaymentInfo userPaymentInfo) {
    this.userPaymentInfo = userPaymentInfo;
  }


  public Schedule getSchedule() {
    return schedule;
  }
  public void setSchedule(Schedule schedule) {
    this.schedule = schedule;
  }


  public Period getPeriod() {
    return period;
  }
  public void setPeriod(Period period) {
    this.period = period;
  }


  @Override
  public String toString()  {
    StringBuilder sb = new StringBuilder();
    sb.append("class TermConversionDTO {\n");
    sb.append("  termConversionId: ").append(termConversionId).append("\n");
    sb.append("  term: ").append(term).append("\n");
    sb.append("  type: ").append(type).append("\n");
    sb.append("  aid: ").append(aid).append("\n");
    sb.append("  userAccess: ").append(userAccess).append("\n");
    sb.append("  userPayment: ").append(userPayment).append("\n");
    sb.append("  createDate: ").append(createDate).append("\n");
    sb.append("  browserId: ").append(browserId).append("\n");
    sb.append("  subscription: ").append(subscription).append("\n");
    sb.append("  promoCode: ").append(promoCode).append("\n");
    sb.append("  userPaymentInfo: ").append(userPaymentInfo).append("\n");
    sb.append("  schedule: ").append(schedule).append("\n");
    sb.append("  period: ").append(period).append("\n");
    sb.append("}\n");
    return sb.toString();
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy