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

com.tinypass.client.publisher.model.TermToUpgradeOption 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.TermChangeBillingOptions;
import com.tinypass.client.publisher.model.TermChangeParams;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

public class TermToUpgradeOption {

  /* The name */
  private String name = null;
  

  /* The type */
  private String type = null;
  

  /* Whether the property is enabled */
  private String enabled = 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 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;
  

  /* Whether to collect an address for this term */
  private Boolean collectAddress = null;
  

  /* The count of allowed shared-subscription accounts */
  private Integer sharedAccountCount = null;
  

    private List availableBillingTimings = new ArrayList();
  

  /* The ID of the term change option */
  private String termChangeOptionId = null;
  

    private TermChangeParams termChangeOption = null;
  

  /* Whether the prorate is restricted to first-time customers */
  private Boolean prorateRestricted = null;
  

  /* Full amount of term upgrade */
  private BigDecimal toTermAmount = null;
  

  /* 3DS authorisation amount for term upgrade */
  private BigDecimal authorisationAmount = null;
  

  /* Full price of term upgrade */
  private String toTermAmountDisplay = null;
  

  /* The currency of the upgraded term */
  private String toTermCurrency = null;
  

  /* The actual upgrade cost excluding taxes: the unused money of the FROM term deducted from the TO term price */
  private BigDecimal prorateAmount = null;
  

  /* Term change prorate amount text */
  private String prorateAmountDisplay = null;
  

  /* The refund amount in case of term downgrade */
  private BigDecimal prorateRefundAmount = null;
  


  public String getName() {
    return name;
  }
  public void setName(String name) {
    this.name = name;
  }


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


  public String getEnabled() {
    return enabled;
  }
  public void setEnabled(String enabled) {
    this.enabled = enabled;
  }


  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 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 Boolean getCollectAddress() {
    return collectAddress;
  }
  public void setCollectAddress(Boolean collectAddress) {
    this.collectAddress = collectAddress;
  }


  public Integer getSharedAccountCount() {
    return sharedAccountCount;
  }
  public void setSharedAccountCount(Integer sharedAccountCount) {
    this.sharedAccountCount = sharedAccountCount;
  }


  public List getAvailableBillingTimings() {
    return availableBillingTimings;
  }
  public void setAvailableBillingTimings(List availableBillingTimings) {
    this.availableBillingTimings = availableBillingTimings;
  }


  public String getTermChangeOptionId() {
    return termChangeOptionId;
  }
  public void setTermChangeOptionId(String termChangeOptionId) {
    this.termChangeOptionId = termChangeOptionId;
  }


  public TermChangeParams getTermChangeOption() {
    return termChangeOption;
  }
  public void setTermChangeOption(TermChangeParams termChangeOption) {
    this.termChangeOption = termChangeOption;
  }


  public Boolean getProrateRestricted() {
    return prorateRestricted;
  }
  public void setProrateRestricted(Boolean prorateRestricted) {
    this.prorateRestricted = prorateRestricted;
  }


  public BigDecimal getToTermAmount() {
    return toTermAmount;
  }
  public void setToTermAmount(BigDecimal toTermAmount) {
    this.toTermAmount = toTermAmount;
  }


  public BigDecimal getAuthorisationAmount() {
    return authorisationAmount;
  }
  public void setAuthorisationAmount(BigDecimal authorisationAmount) {
    this.authorisationAmount = authorisationAmount;
  }


  public String getToTermAmountDisplay() {
    return toTermAmountDisplay;
  }
  public void setToTermAmountDisplay(String toTermAmountDisplay) {
    this.toTermAmountDisplay = toTermAmountDisplay;
  }


  public String getToTermCurrency() {
    return toTermCurrency;
  }
  public void setToTermCurrency(String toTermCurrency) {
    this.toTermCurrency = toTermCurrency;
  }


  public BigDecimal getProrateAmount() {
    return prorateAmount;
  }
  public void setProrateAmount(BigDecimal prorateAmount) {
    this.prorateAmount = prorateAmount;
  }


  public String getProrateAmountDisplay() {
    return prorateAmountDisplay;
  }
  public void setProrateAmountDisplay(String prorateAmountDisplay) {
    this.prorateAmountDisplay = prorateAmountDisplay;
  }


  public BigDecimal getProrateRefundAmount() {
    return prorateRefundAmount;
  }
  public void setProrateRefundAmount(BigDecimal prorateRefundAmount) {
    this.prorateRefundAmount = prorateRefundAmount;
  }


  @Override
  public String toString()  {
    StringBuilder sb = new StringBuilder();
    sb.append("class TermToUpgradeOption {\n");
    sb.append("  name: ").append(name).append("\n");
    sb.append("  type: ").append(type).append("\n");
    sb.append("  enabled: ").append(enabled).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("  toResourceId: ").append(toResourceId).append("\n");
    sb.append("  toResourceName: ").append(toResourceName).append("\n");
    sb.append("  toBillingPlan: ").append(toBillingPlan).append("\n");
    sb.append("  collectAddress: ").append(collectAddress).append("\n");
    sb.append("  sharedAccountCount: ").append(sharedAccountCount).append("\n");
    sb.append("  availableBillingTimings: ").append(availableBillingTimings).append("\n");
    sb.append("  termChangeOptionId: ").append(termChangeOptionId).append("\n");
    sb.append("  termChangeOption: ").append(termChangeOption).append("\n");
    sb.append("  prorateRestricted: ").append(prorateRestricted).append("\n");
    sb.append("  toTermAmount: ").append(toTermAmount).append("\n");
    sb.append("  authorisationAmount: ").append(authorisationAmount).append("\n");
    sb.append("  toTermAmountDisplay: ").append(toTermAmountDisplay).append("\n");
    sb.append("  toTermCurrency: ").append(toTermCurrency).append("\n");
    sb.append("  prorateAmount: ").append(prorateAmount).append("\n");
    sb.append("  prorateAmountDisplay: ").append(prorateAmountDisplay).append("\n");
    sb.append("  prorateRefundAmount: ").append(prorateRefundAmount).append("\n");
    sb.append("}\n");
    return sb.toString();
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy