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

com.tinypass.client.publisher.model.DynamicSubscriptionDetails 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.AccessPeriod;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;

public class DynamicSubscriptionDetails {

  /* Dynamic subscription renewal type */
  private String renewalType = null;
  

    private List termPeriods = new ArrayList();
  

  /* Next scheduled access period */
  private String scheduledPeriodId = null;
  

  /* Dynamic subscription has ongoing periods as result of manual renewal */
  private Boolean hasOngoingPeriods = null;
  

  /* Dynamic subscription can be manually renewed */
  private Boolean canRenewNow = null;
  

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

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


  public String getRenewalType() {
    return renewalType;
  }
  public void setRenewalType(String renewalType) {
    this.renewalType = renewalType;
  }


  public List getTermPeriods() {
    return termPeriods;
  }
  public void setTermPeriods(List termPeriods) {
    this.termPeriods = termPeriods;
  }


  public String getScheduledPeriodId() {
    return scheduledPeriodId;
  }
  public void setScheduledPeriodId(String scheduledPeriodId) {
    this.scheduledPeriodId = scheduledPeriodId;
  }


  public Boolean getHasOngoingPeriods() {
    return hasOngoingPeriods;
  }
  public void setHasOngoingPeriods(Boolean hasOngoingPeriods) {
    this.hasOngoingPeriods = hasOngoingPeriods;
  }


  public Boolean getCanRenewNow() {
    return canRenewNow;
  }
  public void setCanRenewNow(Boolean canRenewNow) {
    this.canRenewNow = canRenewNow;
  }


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


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


  @Override
  public String toString()  {
    StringBuilder sb = new StringBuilder();
    sb.append("class DynamicSubscriptionDetails {\n");
    sb.append("  renewalType: ").append(renewalType).append("\n");
    sb.append("  termPeriods: ").append(termPeriods).append("\n");
    sb.append("  scheduledPeriodId: ").append(scheduledPeriodId).append("\n");
    sb.append("  hasOngoingPeriods: ").append(hasOngoingPeriods).append("\n");
    sb.append("  canRenewNow: ").append(canRenewNow).append("\n");
    sb.append("  canBeResumed: ").append(canBeResumed).append("\n");
    sb.append("  deferredCancelable: ").append(deferredCancelable).append("\n");
    sb.append("}\n");
    return sb.toString();
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy