/*
 * 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 java.math.BigDecimal;
import org.openapitools.client.model.ChargeInstanceOverridesDto;
import org.openapitools.client.model.CustomFieldsDto;
import org.openapitools.client.model.ServiceTemplate;
import org.threeten.bp.OffsetDateTime;

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

  public static final String SERIALIZED_NAME_OVERRIDE_CODE = "overrideCode";
  @SerializedName(SERIALIZED_NAME_OVERRIDE_CODE)
  private String overrideCode;

  public static final String SERIALIZED_NAME_DESCRIPTION = "description";
  @SerializedName(SERIALIZED_NAME_DESCRIPTION)
  private String description;

  public static final String SERIALIZED_NAME_QUANTITY = "quantity";
  @SerializedName(SERIALIZED_NAME_QUANTITY)
  private BigDecimal quantity;

  public static final String SERIALIZED_NAME_SUBSCRIPTION_DATE = "subscriptionDate";
  @SerializedName(SERIALIZED_NAME_SUBSCRIPTION_DATE)
  private OffsetDateTime subscriptionDate;

  public static final String SERIALIZED_NAME_CHARGE_INSTANCE_OVERRIDES = "chargeInstanceOverrides";
  @SerializedName(SERIALIZED_NAME_CHARGE_INSTANCE_OVERRIDES)
  private ChargeInstanceOverridesDto chargeInstanceOverrides;

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

  public static final String SERIALIZED_NAME_SERVICE_TEMPLATE = "serviceTemplate";
  @SerializedName(SERIALIZED_NAME_SERVICE_TEMPLATE)
  private ServiceTemplate serviceTemplate;

  public static final String SERIALIZED_NAME_RATE_UNTIL_DATE = "rateUntilDate";
  @SerializedName(SERIALIZED_NAME_RATE_UNTIL_DATE)
  private OffsetDateTime rateUntilDate;

  public static final String SERIALIZED_NAME_AMOUNT_P_S = "amountPS";
  @SerializedName(SERIALIZED_NAME_AMOUNT_P_S)
  private BigDecimal amountPS;

  public static final String SERIALIZED_NAME_CALENDAR_P_S_CODE = "calendarPSCode";
  @SerializedName(SERIALIZED_NAME_CALENDAR_P_S_CODE)
  private String calendarPSCode;

  public static final String SERIALIZED_NAME_PAYMENT_DAY_IN_MONTH_P_S = "paymentDayInMonthPS";
  @SerializedName(SERIALIZED_NAME_PAYMENT_DAY_IN_MONTH_P_S)
  private Integer paymentDayInMonthPS;


  public ServiceToActivateDto code(String code) {
    
    this.code = code;
    return this;
  }

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

  public String getCode() {
    return code;
  }



  public void setCode(String code) {
    this.code = code;
  }


  public ServiceToActivateDto overrideCode(String overrideCode) {
    
    this.overrideCode = overrideCode;
    return this;
  }

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

  public String getOverrideCode() {
    return overrideCode;
  }



  public void setOverrideCode(String overrideCode) {
    this.overrideCode = overrideCode;
  }


  public ServiceToActivateDto description(String description) {
    
    this.description = description;
    return this;
  }

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

  public String getDescription() {
    return description;
  }



  public void setDescription(String description) {
    this.description = description;
  }


  public ServiceToActivateDto quantity(BigDecimal quantity) {
    
    this.quantity = quantity;
    return this;
  }

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

  public BigDecimal getQuantity() {
    return quantity;
  }



  public void setQuantity(BigDecimal quantity) {
    this.quantity = quantity;
  }


  public ServiceToActivateDto subscriptionDate(OffsetDateTime subscriptionDate) {
    
    this.subscriptionDate = subscriptionDate;
    return this;
  }

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

  public OffsetDateTime getSubscriptionDate() {
    return subscriptionDate;
  }



  public void setSubscriptionDate(OffsetDateTime subscriptionDate) {
    this.subscriptionDate = subscriptionDate;
  }


  public ServiceToActivateDto chargeInstanceOverrides(ChargeInstanceOverridesDto chargeInstanceOverrides) {
    
    this.chargeInstanceOverrides = chargeInstanceOverrides;
    return this;
  }

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

  public ChargeInstanceOverridesDto getChargeInstanceOverrides() {
    return chargeInstanceOverrides;
  }



  public void setChargeInstanceOverrides(ChargeInstanceOverridesDto chargeInstanceOverrides) {
    this.chargeInstanceOverrides = chargeInstanceOverrides;
  }


  public ServiceToActivateDto 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;
  }


  public ServiceToActivateDto serviceTemplate(ServiceTemplate serviceTemplate) {
    
    this.serviceTemplate = serviceTemplate;
    return this;
  }

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

  public ServiceTemplate getServiceTemplate() {
    return serviceTemplate;
  }



  public void setServiceTemplate(ServiceTemplate serviceTemplate) {
    this.serviceTemplate = serviceTemplate;
  }


  public ServiceToActivateDto rateUntilDate(OffsetDateTime rateUntilDate) {
    
    this.rateUntilDate = rateUntilDate;
    return this;
  }

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

  public OffsetDateTime getRateUntilDate() {
    return rateUntilDate;
  }



  public void setRateUntilDate(OffsetDateTime rateUntilDate) {
    this.rateUntilDate = rateUntilDate;
  }


  public ServiceToActivateDto amountPS(BigDecimal amountPS) {
    
    this.amountPS = amountPS;
    return this;
  }

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

  public BigDecimal getAmountPS() {
    return amountPS;
  }



  public void setAmountPS(BigDecimal amountPS) {
    this.amountPS = amountPS;
  }


  public ServiceToActivateDto calendarPSCode(String calendarPSCode) {
    
    this.calendarPSCode = calendarPSCode;
    return this;
  }

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

  public String getCalendarPSCode() {
    return calendarPSCode;
  }



  public void setCalendarPSCode(String calendarPSCode) {
    this.calendarPSCode = calendarPSCode;
  }


  public ServiceToActivateDto paymentDayInMonthPS(Integer paymentDayInMonthPS) {
    
    this.paymentDayInMonthPS = paymentDayInMonthPS;
    return this;
  }

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

  public Integer getPaymentDayInMonthPS() {
    return paymentDayInMonthPS;
  }



  public void setPaymentDayInMonthPS(Integer paymentDayInMonthPS) {
    this.paymentDayInMonthPS = paymentDayInMonthPS;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    ServiceToActivateDto serviceToActivateDto = (ServiceToActivateDto) o;
    return Objects.equals(this.code, serviceToActivateDto.code) &&
        Objects.equals(this.overrideCode, serviceToActivateDto.overrideCode) &&
        Objects.equals(this.description, serviceToActivateDto.description) &&
        Objects.equals(this.quantity, serviceToActivateDto.quantity) &&
        Objects.equals(this.subscriptionDate, serviceToActivateDto.subscriptionDate) &&
        Objects.equals(this.chargeInstanceOverrides, serviceToActivateDto.chargeInstanceOverrides) &&
        Objects.equals(this.customFields, serviceToActivateDto.customFields) &&
        Objects.equals(this.serviceTemplate, serviceToActivateDto.serviceTemplate) &&
        Objects.equals(this.rateUntilDate, serviceToActivateDto.rateUntilDate) &&
        Objects.equals(this.amountPS, serviceToActivateDto.amountPS) &&
        Objects.equals(this.calendarPSCode, serviceToActivateDto.calendarPSCode) &&
        Objects.equals(this.paymentDayInMonthPS, serviceToActivateDto.paymentDayInMonthPS);
  }

  @Override
  public int hashCode() {
    return Objects.hash(code, overrideCode, description, quantity, subscriptionDate, chargeInstanceOverrides, customFields, serviceTemplate, rateUntilDate, amountPS, calendarPSCode, paymentDayInMonthPS);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class ServiceToActivateDto {\n");
    sb.append("    code: ").append(toIndentedString(code)).append("\n");
    sb.append("    overrideCode: ").append(toIndentedString(overrideCode)).append("\n");
    sb.append("    description: ").append(toIndentedString(description)).append("\n");
    sb.append("    quantity: ").append(toIndentedString(quantity)).append("\n");
    sb.append("    subscriptionDate: ").append(toIndentedString(subscriptionDate)).append("\n");
    sb.append("    chargeInstanceOverrides: ").append(toIndentedString(chargeInstanceOverrides)).append("\n");
    sb.append("    customFields: ").append(toIndentedString(customFields)).append("\n");
    sb.append("    serviceTemplate: ").append(toIndentedString(serviceTemplate)).append("\n");
    sb.append("    rateUntilDate: ").append(toIndentedString(rateUntilDate)).append("\n");
    sb.append("    amountPS: ").append(toIndentedString(amountPS)).append("\n");
    sb.append("    calendarPSCode: ").append(toIndentedString(calendarPSCode)).append("\n");
    sb.append("    paymentDayInMonthPS: ").append(toIndentedString(paymentDayInMonthPS)).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    ");
  }

}

