com.tinypass.client.publisher.model.TermChangeOption 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.AdvancedOptions;
import com.tinypass.client.publisher.model.LightOffer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
public class TermChangeOption {
/* The ID of the term change option */
private String termChangeOptionId = null;
/* The ID of the \"From\" term */
private String fromTermId = null;
/* The name of the \"From\" term */
private String fromTermName = null;
/* The ID of the \"From\" term period */
private String fromPeriodId = null;
/* The name of the \"From\" term period */
private String fromPeriodName = null;
/* The ID of the \"From\" resource */
private String fromResourceId = null;
/* The name of the \"From\" resource */
private String fromResourceName = null;
/* The \"From\" billing plan */
private String fromBillingPlan = null;
/* The ID of the \"To\" term */
private String toTermId = null;
/* The name of the \"To\" term */
private String toTermName = null;
/* The ID of the \"To\" term period */
private String toPeriodId = null;
/* The period name of the \"To\" term */
private String toPeriodName = null;
/* The ID of the \"To\" resource */
private String toResourceId = null;
/* The name of the \"To\" resource */
private String toResourceName = null;
/* The \"To\" billing plan */
private String toBillingPlan = null;
/* The billing timing(0: immediate term change;1: term change at the end of the current cycle;2: term change on the next sell date;3: term change at the end of the current period) */
private String billingTiming = null;
//public enum billingTimingEnum { 0, 1, 2, 3, };
/* Whether the access begins immediately */
private Boolean immediateAccess = null;
/* Whether the Prorate billing amount function is enabled */
private Boolean prorateAccess = null;
/* A description of the term change option; provided by the client */
private String description = null;
/* Whether trial is enabled (not in use, always \"FALSE\") */
private Boolean includeTrial = null;
/* Whether the subscription is upgraded to a scheduled term */
private Boolean toScheduled = null;
/* Whether the subscription is upgraded from a scheduled term */
private Boolean fromScheduled = null;
/* The count of allowed shared-subscription accounts */
private Integer sharedAccountCount = null;
/* Whether to collect an address for this term */
private Boolean collectAddress = null;
private List upgradeOffers = new ArrayList();
private AdvancedOptions advancedOptions = null;
public String getTermChangeOptionId() {
return termChangeOptionId;
}
public void setTermChangeOptionId(String termChangeOptionId) {
this.termChangeOptionId = termChangeOptionId;
}
public String getFromTermId() {
return fromTermId;
}
public void setFromTermId(String fromTermId) {
this.fromTermId = fromTermId;
}
public String getFromTermName() {
return fromTermName;
}
public void setFromTermName(String fromTermName) {
this.fromTermName = fromTermName;
}
public String getFromPeriodId() {
return fromPeriodId;
}
public void setFromPeriodId(String fromPeriodId) {
this.fromPeriodId = fromPeriodId;
}
public String getFromPeriodName() {
return fromPeriodName;
}
public void setFromPeriodName(String fromPeriodName) {
this.fromPeriodName = fromPeriodName;
}
public String getFromResourceId() {
return fromResourceId;
}
public void setFromResourceId(String fromResourceId) {
this.fromResourceId = fromResourceId;
}
public String getFromResourceName() {
return fromResourceName;
}
public void setFromResourceName(String fromResourceName) {
this.fromResourceName = fromResourceName;
}
public String getFromBillingPlan() {
return fromBillingPlan;
}
public void setFromBillingPlan(String fromBillingPlan) {
this.fromBillingPlan = fromBillingPlan;
}
public String getToTermId() {
return toTermId;
}
public void setToTermId(String toTermId) {
this.toTermId = toTermId;
}
public String getToTermName() {
return toTermName;
}
public void setToTermName(String toTermName) {
this.toTermName = toTermName;
}
public String getToPeriodId() {
return toPeriodId;
}
public void setToPeriodId(String toPeriodId) {
this.toPeriodId = toPeriodId;
}
public String getToPeriodName() {
return toPeriodName;
}
public void setToPeriodName(String toPeriodName) {
this.toPeriodName = toPeriodName;
}
public String getToResourceId() {
return toResourceId;
}
public void setToResourceId(String toResourceId) {
this.toResourceId = toResourceId;
}
public String getToResourceName() {
return toResourceName;
}
public void setToResourceName(String toResourceName) {
this.toResourceName = toResourceName;
}
public String getToBillingPlan() {
return toBillingPlan;
}
public void setToBillingPlan(String toBillingPlan) {
this.toBillingPlan = toBillingPlan;
}
public String getBillingTiming() {
return billingTiming;
}
public void setBillingTiming(String billingTiming) {
this.billingTiming = billingTiming;
}
public Boolean getImmediateAccess() {
return immediateAccess;
}
public void setImmediateAccess(Boolean immediateAccess) {
this.immediateAccess = immediateAccess;
}
public Boolean getProrateAccess() {
return prorateAccess;
}
public void setProrateAccess(Boolean prorateAccess) {
this.prorateAccess = prorateAccess;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public Boolean getIncludeTrial() {
return includeTrial;
}
public void setIncludeTrial(Boolean includeTrial) {
this.includeTrial = includeTrial;
}
public Boolean getToScheduled() {
return toScheduled;
}
public void setToScheduled(Boolean toScheduled) {
this.toScheduled = toScheduled;
}
public Boolean getFromScheduled() {
return fromScheduled;
}
public void setFromScheduled(Boolean fromScheduled) {
this.fromScheduled = fromScheduled;
}
public Integer getSharedAccountCount() {
return sharedAccountCount;
}
public void setSharedAccountCount(Integer sharedAccountCount) {
this.sharedAccountCount = sharedAccountCount;
}
public Boolean getCollectAddress() {
return collectAddress;
}
public void setCollectAddress(Boolean collectAddress) {
this.collectAddress = collectAddress;
}
public List getUpgradeOffers() {
return upgradeOffers;
}
public void setUpgradeOffers(List upgradeOffers) {
this.upgradeOffers = upgradeOffers;
}
public AdvancedOptions getAdvancedOptions() {
return advancedOptions;
}
public void setAdvancedOptions(AdvancedOptions advancedOptions) {
this.advancedOptions = advancedOptions;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class TermChangeOption {\n");
sb.append(" termChangeOptionId: ").append(termChangeOptionId).append("\n");
sb.append(" fromTermId: ").append(fromTermId).append("\n");
sb.append(" fromTermName: ").append(fromTermName).append("\n");
sb.append(" fromPeriodId: ").append(fromPeriodId).append("\n");
sb.append(" fromPeriodName: ").append(fromPeriodName).append("\n");
sb.append(" fromResourceId: ").append(fromResourceId).append("\n");
sb.append(" fromResourceName: ").append(fromResourceName).append("\n");
sb.append(" fromBillingPlan: ").append(fromBillingPlan).append("\n");
sb.append(" toTermId: ").append(toTermId).append("\n");
sb.append(" toTermName: ").append(toTermName).append("\n");
sb.append(" toPeriodId: ").append(toPeriodId).append("\n");
sb.append(" toPeriodName: ").append(toPeriodName).append("\n");
sb.append(" toResourceId: ").append(toResourceId).append("\n");
sb.append(" toResourceName: ").append(toResourceName).append("\n");
sb.append(" toBillingPlan: ").append(toBillingPlan).append("\n");
sb.append(" billingTiming: ").append(billingTiming).append("\n");
sb.append(" immediateAccess: ").append(immediateAccess).append("\n");
sb.append(" prorateAccess: ").append(prorateAccess).append("\n");
sb.append(" description: ").append(description).append("\n");
sb.append(" includeTrial: ").append(includeTrial).append("\n");
sb.append(" toScheduled: ").append(toScheduled).append("\n");
sb.append(" fromScheduled: ").append(fromScheduled).append("\n");
sb.append(" sharedAccountCount: ").append(sharedAccountCount).append("\n");
sb.append(" collectAddress: ").append(collectAddress).append("\n");
sb.append(" upgradeOffers: ").append(upgradeOffers).append("\n");
sb.append(" advancedOptions: ").append(advancedOptions).append("\n");
sb.append("}\n");
return sb.toString();
}
}