/*
 * Swagger of Opencellsoft Api
 * @#Introduction
 *
 * The version of the OpenAPI document: 7.3.1-SNAPSHOT
 * Contact: contact@opencellsoft.fr
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */


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.CustomFieldsDto;
import org.threeten.bp.OffsetDateTime;

/**
 * DiscountPlanInstanceDto
 */
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-09-13T10:03:17.753Z[GMT]")
public class DiscountPlanInstanceDto {
  public static final String SERIALIZED_NAME_DISCOUNT_PLAN = "discountPlan";
  @SerializedName(SERIALIZED_NAME_DISCOUNT_PLAN)
  private String discountPlan;

  public static final String SERIALIZED_NAME_BILLING_ACCOUNT = "billingAccount";
  @SerializedName(SERIALIZED_NAME_BILLING_ACCOUNT)
  private String billingAccount;

  public static final String SERIALIZED_NAME_SUBSCRIPTION = "subscription";
  @SerializedName(SERIALIZED_NAME_SUBSCRIPTION)
  private String subscription;

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

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

  public static final String SERIALIZED_NAME_CUSTOM_FIELDS = "customFields";
  @SerializedName(SERIALIZED_NAME_CUSTOM_FIELDS)
  private CustomFieldsDto customFields;


  public DiscountPlanInstanceDto discountPlan(String discountPlan) {
    
    this.discountPlan = discountPlan;
    return this;
  }

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

  public String getDiscountPlan() {
    return discountPlan;
  }



  public void setDiscountPlan(String discountPlan) {
    this.discountPlan = discountPlan;
  }


  public DiscountPlanInstanceDto billingAccount(String billingAccount) {
    
    this.billingAccount = billingAccount;
    return this;
  }

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

  public String getBillingAccount() {
    return billingAccount;
  }



  public void setBillingAccount(String billingAccount) {
    this.billingAccount = billingAccount;
  }


  public DiscountPlanInstanceDto subscription(String subscription) {
    
    this.subscription = subscription;
    return this;
  }

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

  public String getSubscription() {
    return subscription;
  }



  public void setSubscription(String subscription) {
    this.subscription = subscription;
  }


  public DiscountPlanInstanceDto startDate(OffsetDateTime startDate) {
    
    this.startDate = startDate;
    return this;
  }

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

  public OffsetDateTime getStartDate() {
    return startDate;
  }



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


  public DiscountPlanInstanceDto endDate(OffsetDateTime endDate) {
    
    this.endDate = endDate;
    return this;
  }

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

  public OffsetDateTime getEndDate() {
    return endDate;
  }



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


  public DiscountPlanInstanceDto customFields(CustomFieldsDto customFields) {
    
    this.customFields = customFields;
    return this;
  }

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

  public CustomFieldsDto getCustomFields() {
    return customFields;
  }



  public void setCustomFields(CustomFieldsDto customFields) {
    this.customFields = customFields;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    DiscountPlanInstanceDto discountPlanInstanceDto = (DiscountPlanInstanceDto) o;
    return Objects.equals(this.discountPlan, discountPlanInstanceDto.discountPlan) &&
        Objects.equals(this.billingAccount, discountPlanInstanceDto.billingAccount) &&
        Objects.equals(this.subscription, discountPlanInstanceDto.subscription) &&
        Objects.equals(this.startDate, discountPlanInstanceDto.startDate) &&
        Objects.equals(this.endDate, discountPlanInstanceDto.endDate) &&
        Objects.equals(this.customFields, discountPlanInstanceDto.customFields);
  }

  @Override
  public int hashCode() {
    return Objects.hash(discountPlan, billingAccount, subscription, startDate, endDate, customFields);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class DiscountPlanInstanceDto {\n");
    sb.append("    discountPlan: ").append(toIndentedString(discountPlan)).append("\n");
    sb.append("    billingAccount: ").append(toIndentedString(billingAccount)).append("\n");
    sb.append("    subscription: ").append(toIndentedString(subscription)).append("\n");
    sb.append("    startDate: ").append(toIndentedString(startDate)).append("\n");
    sb.append("    endDate: ").append(toIndentedString(endDate)).append("\n");
    sb.append("    customFields: ").append(toIndentedString(customFields)).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(java.lang.Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }

}

