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

com.tinypass.client.publisher.model.CreateAccessPeriodParams 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.Duration;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.math.BigDecimal;
import java.util.Date;

public class CreateAccessPeriodParams {

  /* Access period name */
  private String name = null;
  

  /* Access period type */
  private String type = null;
    //public enum typeEnum {  recurring,  endsOnDate,  unlimited,  };


  /* Date on which access will end. Should be set if 'type' parameter is 'endsOnDate' */
  private Integer accessEndDate = null;
  

  /* Total iterations. Should be set if 'type' parameter is 'recurring' */
  private Integer totalIterations = null;
  

  /* Access period length. Should be set if 'type' parameter is 'recurring' */
  private Duration duration = null;
  

  /* Billing amount */
  private BigDecimal amount = null;
  

  /* Billing type */
  private String billingType = null;
    //public enum billingTypeEnum {  relative,  dayOfWeek,  dayOfMonth,  dayOfYear,  singlePayment,  free,  };


  /* Billing period duration. Should be set if 'billing_type' parameter is 'relative' */
  private Duration billingDuration = null;
  

  /* Billing day number. Should be set to week day number if 'billing_type' parameter is 'dayOfWeek' or month day number if 'dayOfMonth' or 'dayOfYear' */
  private Integer billingDay = null;
  

  /* Billing month number. Should be set if 'billing_type' parameter is 'dayOfYear' */
  private Integer billingMonth = null;
  

  /* Allow users to cancel their subscriptions before the end of the access period */
  private Boolean subscriptionCancellationAllowed = 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 Integer getAccessEndDate() {
    return accessEndDate;
  }
  public void setAccessEndDate(Integer accessEndDate) {
    this.accessEndDate = accessEndDate;
  }


  public Integer getTotalIterations() {
    return totalIterations;
  }
  public void setTotalIterations(Integer totalIterations) {
    this.totalIterations = totalIterations;
  }


  public Duration getDuration() {
    return duration;
  }
  public void setDuration(Duration duration) {
    this.duration = duration;
  }


  public BigDecimal getAmount() {
    return amount;
  }
  public void setAmount(BigDecimal amount) {
    this.amount = amount;
  }


  public String getBillingType() {
    return billingType;
  }
  public void setBillingType(String billingType) {
    this.billingType = billingType;
  }


  public Duration getBillingDuration() {
    return billingDuration;
  }
  public void setBillingDuration(Duration billingDuration) {
    this.billingDuration = billingDuration;
  }


  public Integer getBillingDay() {
    return billingDay;
  }
  public void setBillingDay(Integer billingDay) {
    this.billingDay = billingDay;
  }


  public Integer getBillingMonth() {
    return billingMonth;
  }
  public void setBillingMonth(Integer billingMonth) {
    this.billingMonth = billingMonth;
  }


  public Boolean getSubscriptionCancellationAllowed() {
    return subscriptionCancellationAllowed;
  }
  public void setSubscriptionCancellationAllowed(Boolean subscriptionCancellationAllowed) {
    this.subscriptionCancellationAllowed = subscriptionCancellationAllowed;
  }


  @Override
  public String toString()  {
    StringBuilder sb = new StringBuilder();
    sb.append("class CreateAccessPeriodParams {\n");
    sb.append("  name: ").append(name).append("\n");
    sb.append("  type: ").append(type).append("\n");
    sb.append("  accessEndDate: ").append(accessEndDate).append("\n");
    sb.append("  totalIterations: ").append(totalIterations).append("\n");
    sb.append("  duration: ").append(duration).append("\n");
    sb.append("  amount: ").append(amount).append("\n");
    sb.append("  billingType: ").append(billingType).append("\n");
    sb.append("  billingDuration: ").append(billingDuration).append("\n");
    sb.append("  billingDay: ").append(billingDay).append("\n");
    sb.append("  billingMonth: ").append(billingMonth).append("\n");
    sb.append("  subscriptionCancellationAllowed: ").append(subscriptionCancellationAllowed).append("\n");
    sb.append("}\n");
    return sb.toString();
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy