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

com.tinypass.client.publisher.model.UserSubscription 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.Resource;
import com.tinypass.client.publisher.model.Term;
import com.tinypass.client.publisher.model.User;
import com.tinypass.client.publisher.model.UserAddress;
import com.tinypass.client.publisher.model.UserSubscriptionAccount;
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 UserSubscription {

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

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

  /* User subscription will be automatically renewed */
  private Boolean willAutoRenew = null;
  

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

  /* The next renewal date of the subscription */
  private Date nextRenewalDate = null;
  

  /* True if the access period will be changed on next renewal process */
  private Boolean willAccessPeriodBeChanged = null;
  

  /* The next verfication date of the subscription */
  private Date nextVerificaitionDate = null;
  

  /* The payment method of the subscription */
  private String paymentMethod = null;
  

  /* The billing plan of the subscription */
  private String billingPlan = null;
  

  /* The user payment info ID */
  private String userPaymentInfoId = 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,  };


  /* The name of the subscription status */
  private String statusName = null;
  

  /* The subscription status name in reports */
  private String statusNameInReports = null;
  

    private Term term = null;
  

  /* The resource */
  private Resource resource = null;
  

  /* The user */
  private User user = null;
  

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

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

  /* 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 user address entity */
  private UserAddress userAddress = null;
  

  /* The PSC subscriber number */
  private String pscSubscriberNumber = null;
  

  /* The name of the external API configuration */
  private String externalApiName = null;
    //public enum externalApiNameEnum {  CDS,  VESTDB,  APPLE_ITUNES,  PSC_PROVIDER,  GOOGLE_PLAY,  ABRIL,  ABRIL_ADDRESS,  SWG,  NEWSCYCLE,  PAYPAL_SUBSCRIPTION,  };


  /* The conversion result */
  private String conversionResult = null;
    //public enum conversionResultEnum {  NOT_CHECKED,  ACCEPTED,  REJECTED,  CANCELLED,  EXPIRED,  FAILED,  };


  /* Whether the subscription is currently in trial period */
  private Boolean isInTrial = null;
  

  /* The date when the trial period ends */
  private Date trialPeriodEndDate = null;
  

  /* The price of the trial period */
  private BigDecimal trialAmount = null;
  

  /* The currency of the trial period */
  private String trialCurrency = null;
  

  /* The subscription end date */
  private Date endDate = null;
  

  /* The user subscription charge count */
  private Integer chargeCount = null;
  

  /* The external customer ID of the payment method (user payment info) */
  private String upiExtCustomerId = null;
  

  /* The label of the external customer ID for the payment method (user payment info) */
  private String upiExtCustomerIdLabel = null;
  

  /* The shared account limit */
  private Integer sharedAccountLimit = null;
  

  /* Whether the shared subscription can be managed */
  private Boolean canManageSharedSubscription = null;
  

    private List sharedAccounts = new ArrayList();
  

  /* The displayed text of the subscription status */
  private String statusDisplay = null;
  

  /* Subscription is in active state */
  private Boolean isActive = null;
  

  /* Whether this subscription could be cancelled at the end of the billing period */
  private Boolean deferredCancelable = null;
  

  /* Whether this subscription could be resumed */
  private Boolean canBeResumed = null;
  

  /* The auto_renew changing is available for user subscription */
  private Boolean autoRenewChangeEnabled = null;
  

  /* The subscription in grace period */
  private Boolean inGracePeriod = 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 Boolean getAutoRenew() {
    return autoRenew;
  }
  public void setAutoRenew(Boolean autoRenew) {
    this.autoRenew = autoRenew;
  }


  public Boolean getWillAutoRenew() {
    return willAutoRenew;
  }
  public void setWillAutoRenew(Boolean willAutoRenew) {
    this.willAutoRenew = willAutoRenew;
  }


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


  public Date getNextRenewalDate() {
    return nextRenewalDate;
  }
  public void setNextRenewalDate(Date nextRenewalDate) {
    this.nextRenewalDate = nextRenewalDate;
  }


  public Boolean getWillAccessPeriodBeChanged() {
    return willAccessPeriodBeChanged;
  }
  public void setWillAccessPeriodBeChanged(Boolean willAccessPeriodBeChanged) {
    this.willAccessPeriodBeChanged = willAccessPeriodBeChanged;
  }


  public Date getNextVerificaitionDate() {
    return nextVerificaitionDate;
  }
  public void setNextVerificaitionDate(Date nextVerificaitionDate) {
    this.nextVerificaitionDate = nextVerificaitionDate;
  }


  public String getPaymentMethod() {
    return paymentMethod;
  }
  public void setPaymentMethod(String paymentMethod) {
    this.paymentMethod = paymentMethod;
  }


  public String getBillingPlan() {
    return billingPlan;
  }
  public void setBillingPlan(String billingPlan) {
    this.billingPlan = billingPlan;
  }


  public String getUserPaymentInfoId() {
    return userPaymentInfoId;
  }
  public void setUserPaymentInfoId(String userPaymentInfoId) {
    this.userPaymentInfoId = userPaymentInfoId;
  }


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


  public String getStatusName() {
    return statusName;
  }
  public void setStatusName(String statusName) {
    this.statusName = statusName;
  }


  public String getStatusNameInReports() {
    return statusNameInReports;
  }
  public void setStatusNameInReports(String statusNameInReports) {
    this.statusNameInReports = statusNameInReports;
  }


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


  public Resource getResource() {
    return resource;
  }
  public void setResource(Resource resource) {
    this.resource = resource;
  }


  public User getUser() {
    return user;
  }
  public void setUser(User user) {
    this.user = user;
  }


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


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


  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 UserAddress getUserAddress() {
    return userAddress;
  }
  public void setUserAddress(UserAddress userAddress) {
    this.userAddress = userAddress;
  }


  public String getPscSubscriberNumber() {
    return pscSubscriberNumber;
  }
  public void setPscSubscriberNumber(String pscSubscriberNumber) {
    this.pscSubscriberNumber = pscSubscriberNumber;
  }


  public String getExternalApiName() {
    return externalApiName;
  }
  public void setExternalApiName(String externalApiName) {
    this.externalApiName = externalApiName;
  }


  public String getConversionResult() {
    return conversionResult;
  }
  public void setConversionResult(String conversionResult) {
    this.conversionResult = conversionResult;
  }


  public Boolean getIsInTrial() {
    return isInTrial;
  }
  public void setIsInTrial(Boolean isInTrial) {
    this.isInTrial = isInTrial;
  }


  public Date getTrialPeriodEndDate() {
    return trialPeriodEndDate;
  }
  public void setTrialPeriodEndDate(Date trialPeriodEndDate) {
    this.trialPeriodEndDate = trialPeriodEndDate;
  }


  public BigDecimal getTrialAmount() {
    return trialAmount;
  }
  public void setTrialAmount(BigDecimal trialAmount) {
    this.trialAmount = trialAmount;
  }


  public String getTrialCurrency() {
    return trialCurrency;
  }
  public void setTrialCurrency(String trialCurrency) {
    this.trialCurrency = trialCurrency;
  }


  public Date getEndDate() {
    return endDate;
  }
  public void setEndDate(Date endDate) {
    this.endDate = endDate;
  }


  public Integer getChargeCount() {
    return chargeCount;
  }
  public void setChargeCount(Integer chargeCount) {
    this.chargeCount = chargeCount;
  }


  public String getUpiExtCustomerId() {
    return upiExtCustomerId;
  }
  public void setUpiExtCustomerId(String upiExtCustomerId) {
    this.upiExtCustomerId = upiExtCustomerId;
  }


  public String getUpiExtCustomerIdLabel() {
    return upiExtCustomerIdLabel;
  }
  public void setUpiExtCustomerIdLabel(String upiExtCustomerIdLabel) {
    this.upiExtCustomerIdLabel = upiExtCustomerIdLabel;
  }


  public Integer getSharedAccountLimit() {
    return sharedAccountLimit;
  }
  public void setSharedAccountLimit(Integer sharedAccountLimit) {
    this.sharedAccountLimit = sharedAccountLimit;
  }


  public Boolean getCanManageSharedSubscription() {
    return canManageSharedSubscription;
  }
  public void setCanManageSharedSubscription(Boolean canManageSharedSubscription) {
    this.canManageSharedSubscription = canManageSharedSubscription;
  }


  public List getSharedAccounts() {
    return sharedAccounts;
  }
  public void setSharedAccounts(List sharedAccounts) {
    this.sharedAccounts = sharedAccounts;
  }


  public String getStatusDisplay() {
    return statusDisplay;
  }
  public void setStatusDisplay(String statusDisplay) {
    this.statusDisplay = statusDisplay;
  }


  public Boolean getIsActive() {
    return isActive;
  }
  public void setIsActive(Boolean isActive) {
    this.isActive = isActive;
  }


  public Boolean getDeferredCancelable() {
    return deferredCancelable;
  }
  public void setDeferredCancelable(Boolean deferredCancelable) {
    this.deferredCancelable = deferredCancelable;
  }


  public Boolean getCanBeResumed() {
    return canBeResumed;
  }
  public void setCanBeResumed(Boolean canBeResumed) {
    this.canBeResumed = canBeResumed;
  }


  public Boolean getAutoRenewChangeEnabled() {
    return autoRenewChangeEnabled;
  }
  public void setAutoRenewChangeEnabled(Boolean autoRenewChangeEnabled) {
    this.autoRenewChangeEnabled = autoRenewChangeEnabled;
  }


  public Boolean getInGracePeriod() {
    return inGracePeriod;
  }
  public void setInGracePeriod(Boolean inGracePeriod) {
    this.inGracePeriod = inGracePeriod;
  }


  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("  autoRenew: ").append(autoRenew).append("\n");
    sb.append("  willAutoRenew: ").append(willAutoRenew).append("\n");
    sb.append("  nextBillDate: ").append(nextBillDate).append("\n");
    sb.append("  nextRenewalDate: ").append(nextRenewalDate).append("\n");
    sb.append("  willAccessPeriodBeChanged: ").append(willAccessPeriodBeChanged).append("\n");
    sb.append("  nextVerificaitionDate: ").append(nextVerificaitionDate).append("\n");
    sb.append("  paymentMethod: ").append(paymentMethod).append("\n");
    sb.append("  billingPlan: ").append(billingPlan).append("\n");
    sb.append("  userPaymentInfoId: ").append(userPaymentInfoId).append("\n");
    sb.append("  status: ").append(status).append("\n");
    sb.append("  statusName: ").append(statusName).append("\n");
    sb.append("  statusNameInReports: ").append(statusNameInReports).append("\n");
    sb.append("  term: ").append(term).append("\n");
    sb.append("  resource: ").append(resource).append("\n");
    sb.append("  user: ").append(user).append("\n");
    sb.append("  startDate: ").append(startDate).append("\n");
    sb.append("  createDate: ").append(createDate).append("\n");
    sb.append("  cancelable: ").append(cancelable).append("\n");
    sb.append("  cancelableAndRefundadle: ").append(cancelableAndRefundadle).append("\n");
    sb.append("  userAddress: ").append(userAddress).append("\n");
    sb.append("  pscSubscriberNumber: ").append(pscSubscriberNumber).append("\n");
    sb.append("  externalApiName: ").append(externalApiName).append("\n");
    sb.append("  conversionResult: ").append(conversionResult).append("\n");
    sb.append("  isInTrial: ").append(isInTrial).append("\n");
    sb.append("  trialPeriodEndDate: ").append(trialPeriodEndDate).append("\n");
    sb.append("  trialAmount: ").append(trialAmount).append("\n");
    sb.append("  trialCurrency: ").append(trialCurrency).append("\n");
    sb.append("  endDate: ").append(endDate).append("\n");
    sb.append("  chargeCount: ").append(chargeCount).append("\n");
    sb.append("  upiExtCustomerId: ").append(upiExtCustomerId).append("\n");
    sb.append("  upiExtCustomerIdLabel: ").append(upiExtCustomerIdLabel).append("\n");
    sb.append("  sharedAccountLimit: ").append(sharedAccountLimit).append("\n");
    sb.append("  canManageSharedSubscription: ").append(canManageSharedSubscription).append("\n");
    sb.append("  sharedAccounts: ").append(sharedAccounts).append("\n");
    sb.append("  statusDisplay: ").append(statusDisplay).append("\n");
    sb.append("  isActive: ").append(isActive).append("\n");
    sb.append("  deferredCancelable: ").append(deferredCancelable).append("\n");
    sb.append("  canBeResumed: ").append(canBeResumed).append("\n");
    sb.append("  autoRenewChangeEnabled: ").append(autoRenewChangeEnabled).append("\n");
    sb.append("  inGracePeriod: ").append(inGracePeriod).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