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

org.openapitools.client.model.SubscriptionItemPreviewResponse Maven / Gradle / Ivy

There is a newer version: 3.2.1
Show newest version
/*
* Quickstart API Reference
* Zuora Quickstart API is the API that helps you achieve fundamental use cases.
* It provides a much simplified object model and improved performance, enabling developers to easily learn and use.
*/

package org.openapitools.client.model;

import java.util.Objects;
import java.util.Arrays;
import com.google.gson.TypeAdapter;
import com.google.gson.annotations.JsonAdapter;
import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;
import org.openapitools.client.model.LineItemsPreviewResponseMrr;
import org.threeten.bp.LocalDate;

import org.openapitools.client.JSON.CustomFieldAdapter;
import org.openapitools.client.JSON.NullableFieldAdapter;
/**
 * SubscriptionItemPreviewResponse
 */
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class SubscriptionItemPreviewResponse {
  public static final String SERIALIZED_NAME_SUBSCRIPTION_ITEM_ID = "subscription_item_id";
  @SerializedName(SERIALIZED_NAME_SUBSCRIPTION_ITEM_ID)
  private String subscriptionItemId;

  public static final String SERIALIZED_NAME_PRICE_ID = "price_id";
  @SerializedName(SERIALIZED_NAME_PRICE_ID)
  private String priceId;

  public static final String SERIALIZED_NAME_START_DATE = "start_date";
  @SerializedName(SERIALIZED_NAME_START_DATE)
  private LocalDate startDate;

  public static final String SERIALIZED_NAME_END_DATE = "end_date";
  @SerializedName(SERIALIZED_NAME_END_DATE)
  private LocalDate endDate;

  public static final String SERIALIZED_NAME_MRR = "mrr";
  @SerializedName(SERIALIZED_NAME_MRR)
  private LineItemsPreviewResponseMrr mrr;

  public static final String SERIALIZED_NAME_TCB = "tcb";
  @SerializedName(SERIALIZED_NAME_TCB)
  private LineItemsPreviewResponseMrr tcb;

  public static final String SERIALIZED_NAME_TCV = "tcv";
  @SerializedName(SERIALIZED_NAME_TCV)
  private LineItemsPreviewResponseMrr tcv;

  public SubscriptionItemPreviewResponse() { 
  }

  public SubscriptionItemPreviewResponse subscriptionItemId(String subscriptionItemId) {
    
    this.subscriptionItemId = subscriptionItemId;
    return this;
  }

   /**
   * Identifier of the subscription item.
   * @return subscriptionItemId
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "Identifier of the subscription item.")

  public String getSubscriptionItemId() {
    return subscriptionItemId;
  }


  public void setSubscriptionItemId(String subscriptionItemId) {
    this.subscriptionItemId = subscriptionItemId;
  }


  public SubscriptionItemPreviewResponse priceId(String priceId) {
    
    this.priceId = priceId;
    return this;
  }

   /**
   * Identifier of the price.
   * @return priceId
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "Identifier of the price.")

  public String getPriceId() {
    return priceId;
  }


  public void setPriceId(String priceId) {
    this.priceId = priceId;
  }


  public SubscriptionItemPreviewResponse startDate(LocalDate startDate) {
    
    this.startDate = startDate;
    return this;
  }

   /**
   * Date on which the subscription item starts to become effective.
   * @return startDate
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "Date on which the subscription item starts to become effective.")

  public LocalDate getStartDate() {
    return startDate;
  }


  public void setStartDate(LocalDate startDate) {
    this.startDate = startDate;
  }


  public SubscriptionItemPreviewResponse endDate(LocalDate endDate) {
    
    this.endDate = endDate;
    return this;
  }

   /**
   * Date on which the subscription item expires.
   * @return endDate
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "Date on which the subscription item expires.")

  public LocalDate getEndDate() {
    return endDate;
  }


  public void setEndDate(LocalDate endDate) {
    this.endDate = endDate;
  }


  public SubscriptionItemPreviewResponse mrr(LineItemsPreviewResponseMrr mrr) {
    
    this.mrr = mrr;
    return this;
  }

   /**
   * Get mrr
   * @return mrr
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "")

  public LineItemsPreviewResponseMrr getMrr() {
    return mrr;
  }


  public void setMrr(LineItemsPreviewResponseMrr mrr) {
    this.mrr = mrr;
  }


  public SubscriptionItemPreviewResponse tcb(LineItemsPreviewResponseMrr tcb) {
    
    this.tcb = tcb;
    return this;
  }

   /**
   * Get tcb
   * @return tcb
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "")

  public LineItemsPreviewResponseMrr getTcb() {
    return tcb;
  }


  public void setTcb(LineItemsPreviewResponseMrr tcb) {
    this.tcb = tcb;
  }


  public SubscriptionItemPreviewResponse tcv(LineItemsPreviewResponseMrr tcv) {
    
    this.tcv = tcv;
    return this;
  }

   /**
   * Get tcv
   * @return tcv
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "")

  public LineItemsPreviewResponseMrr getTcv() {
    return tcv;
  }


  public void setTcv(LineItemsPreviewResponseMrr tcv) {
    this.tcv = tcv;
  }


  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    SubscriptionItemPreviewResponse subscriptionItemPreviewResponse = (SubscriptionItemPreviewResponse) o;
    return Objects.equals(this.subscriptionItemId, subscriptionItemPreviewResponse.subscriptionItemId) &&
        Objects.equals(this.priceId, subscriptionItemPreviewResponse.priceId) &&
        Objects.equals(this.startDate, subscriptionItemPreviewResponse.startDate) &&
        Objects.equals(this.endDate, subscriptionItemPreviewResponse.endDate) &&
        Objects.equals(this.mrr, subscriptionItemPreviewResponse.mrr) &&
        Objects.equals(this.tcb, subscriptionItemPreviewResponse.tcb) &&
        Objects.equals(this.tcv, subscriptionItemPreviewResponse.tcv);
  }

  @Override
  public int hashCode() {
    return Objects.hash(subscriptionItemId, priceId, startDate, endDate, mrr, tcb, tcv);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class SubscriptionItemPreviewResponse {\n");
    sb.append("    subscriptionItemId: ").append(toIndentedString(subscriptionItemId)).append("\n");
    sb.append("    priceId: ").append(toIndentedString(priceId)).append("\n");
    sb.append("    startDate: ").append(toIndentedString(startDate)).append("\n");
    sb.append("    endDate: ").append(toIndentedString(endDate)).append("\n");
    sb.append("    mrr: ").append(toIndentedString(mrr)).append("\n");
    sb.append("    tcb: ").append(toIndentedString(tcb)).append("\n");
    sb.append("    tcv: ").append(toIndentedString(tcv)).append("\n");
    sb.append("}");
    return sb.toString();
  }

  /**
   * Convert the given object to string with each line indented by 4 spaces
   * (except the first line).
   */
  private String toIndentedString(Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }

}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy