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

com.tinypass.client.anon.model.UserSubscription Maven / Gradle / Ivy

There is a newer version: 16.331.0
Show newest version
package com.tinypass.client.anon.model;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import com.tinypass.client.anon.model.Term;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;

public class UserSubscription {

  /* The user subscription ID */
  private String subscriptionId = null;
  

    private Term term = null;
  

  /* Whether auto renewal is enabled for the subscription */
  private Boolean autoRenew = null;
  

  /* The grace period start date */
  private Integer gracePeriodStartDate = null;
  

  /* The next bill date of the subscription */
  private Integer nextBillDate = null;
  

  /* The start date. */
  private Integer startDate = null;
  

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

  /* The subscription status */
  private String status = null;
    //public enum statusEnum {  active,  cancelled,  fail_and_retry,  expired_with_error,  expired,  completed,  deleted,  wait_confirmed,  upgraded,  pending,  not_started,  };


  /* Whether this subscription can be cancelled; cancelling means thatthe access will not be prolonged and the current access will be revoked */
  private Boolean cancelable = null;
  

  /* Whether the subscription can be cancelled with the payment for the last period refunded. Cancelling means that the access will not be prolonged and the current access will be revoked */
  private Boolean cancelableAndRefundadle = null;
  

  /* The description of the term billing plan */
  private String paymentBillingPlanDescription = null;
  

  /* The ID of the external subscription linked with subscription. */
  private String externalSubId = null;
  

  /* Access custom data associated with linked term subscription */
  private String accessCustomData = null;
  


  public String getSubscriptionId() {
    return subscriptionId;
  }
  public void setSubscriptionId(String subscriptionId) {
    this.subscriptionId = subscriptionId;
  }


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


  public Boolean getAutoRenew() {
    return autoRenew;
  }
  public void setAutoRenew(Boolean autoRenew) {
    this.autoRenew = autoRenew;
  }


  public Integer getGracePeriodStartDate() {
    return gracePeriodStartDate;
  }
  public void setGracePeriodStartDate(Integer gracePeriodStartDate) {
    this.gracePeriodStartDate = gracePeriodStartDate;
  }


  public Integer getNextBillDate() {
    return nextBillDate;
  }
  public void setNextBillDate(Integer nextBillDate) {
    this.nextBillDate = nextBillDate;
  }


  public Integer getStartDate() {
    return startDate;
  }
  public void setStartDate(Integer startDate) {
    this.startDate = startDate;
  }


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


  public String getStatus() {
    return status;
  }
  public void setStatus(String status) {
    this.status = status;
  }


  public Boolean getCancelable() {
    return cancelable;
  }
  public void setCancelable(Boolean cancelable) {
    this.cancelable = cancelable;
  }


  public Boolean getCancelableAndRefundadle() {
    return cancelableAndRefundadle;
  }
  public void setCancelableAndRefundadle(Boolean cancelableAndRefundadle) {
    this.cancelableAndRefundadle = cancelableAndRefundadle;
  }


  public String getPaymentBillingPlanDescription() {
    return paymentBillingPlanDescription;
  }
  public void setPaymentBillingPlanDescription(String paymentBillingPlanDescription) {
    this.paymentBillingPlanDescription = paymentBillingPlanDescription;
  }


  public String getExternalSubId() {
    return externalSubId;
  }
  public void setExternalSubId(String externalSubId) {
    this.externalSubId = externalSubId;
  }


  public String getAccessCustomData() {
    return accessCustomData;
  }
  public void setAccessCustomData(String accessCustomData) {
    this.accessCustomData = accessCustomData;
  }


  @Override
  public String toString()  {
    StringBuilder sb = new StringBuilder();
    sb.append("class UserSubscription {\n");
    sb.append("  subscriptionId: ").append(subscriptionId).append("\n");
    sb.append("  term: ").append(term).append("\n");
    sb.append("  autoRenew: ").append(autoRenew).append("\n");
    sb.append("  gracePeriodStartDate: ").append(gracePeriodStartDate).append("\n");
    sb.append("  nextBillDate: ").append(nextBillDate).append("\n");
    sb.append("  startDate: ").append(startDate).append("\n");
    sb.append("  createDate: ").append(createDate).append("\n");
    sb.append("  status: ").append(status).append("\n");
    sb.append("  cancelable: ").append(cancelable).append("\n");
    sb.append("  cancelableAndRefundadle: ").append(cancelableAndRefundadle).append("\n");
    sb.append("  paymentBillingPlanDescription: ").append(paymentBillingPlanDescription).append("\n");
    sb.append("  externalSubId: ").append(externalSubId).append("\n");
    sb.append("  accessCustomData: ").append(accessCustomData).append("\n");
    sb.append("}\n");
    return sb.toString();
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy