/*
 * 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.CustomFieldsDto;
import org.openapitools.client.model.SubscriptionRenewalDto;
import org.threeten.bp.OffsetDateTime;

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

  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_ACTION_DATE = "actionDate";
  @SerializedName(SERIALIZED_NAME_ACTION_DATE)
  private OffsetDateTime actionDate;

  public static final String SERIALIZED_NAME_END_AGREEMENT_DATE = "endAgreementDate";
  @SerializedName(SERIALIZED_NAME_END_AGREEMENT_DATE)
  private OffsetDateTime endAgreementDate;

  public static final String SERIALIZED_NAME_TERMINATION_DATE = "terminationDate";
  @SerializedName(SERIALIZED_NAME_TERMINATION_DATE)
  private OffsetDateTime terminationDate;

  public static final String SERIALIZED_NAME_TERMINATION_REASON = "terminationReason";
  @SerializedName(SERIALIZED_NAME_TERMINATION_REASON)
  private String terminationReason;

  public static final String SERIALIZED_NAME_SERVICE_RENEWAL = "serviceRenewal";
  @SerializedName(SERIALIZED_NAME_SERVICE_RENEWAL)
  private SubscriptionRenewalDto serviceRenewal;

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


  public ServiceToUpdateDto id(Long id) {
    
    this.id = id;
    return this;
  }

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

  public Long getId() {
    return id;
  }



  public void setId(Long id) {
    this.id = id;
  }


  public ServiceToUpdateDto 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 ServiceToUpdateDto 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 ServiceToUpdateDto 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 ServiceToUpdateDto 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 ServiceToUpdateDto actionDate(OffsetDateTime actionDate) {
    
    this.actionDate = actionDate;
    return this;
  }

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

  public OffsetDateTime getActionDate() {
    return actionDate;
  }



  public void setActionDate(OffsetDateTime actionDate) {
    this.actionDate = actionDate;
  }


  public ServiceToUpdateDto endAgreementDate(OffsetDateTime endAgreementDate) {
    
    this.endAgreementDate = endAgreementDate;
    return this;
  }

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

  public OffsetDateTime getEndAgreementDate() {
    return endAgreementDate;
  }



  public void setEndAgreementDate(OffsetDateTime endAgreementDate) {
    this.endAgreementDate = endAgreementDate;
  }


  public ServiceToUpdateDto terminationDate(OffsetDateTime terminationDate) {
    
    this.terminationDate = terminationDate;
    return this;
  }

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

  public OffsetDateTime getTerminationDate() {
    return terminationDate;
  }



  public void setTerminationDate(OffsetDateTime terminationDate) {
    this.terminationDate = terminationDate;
  }


  public ServiceToUpdateDto terminationReason(String terminationReason) {
    
    this.terminationReason = terminationReason;
    return this;
  }

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

  public String getTerminationReason() {
    return terminationReason;
  }



  public void setTerminationReason(String terminationReason) {
    this.terminationReason = terminationReason;
  }


  public ServiceToUpdateDto serviceRenewal(SubscriptionRenewalDto serviceRenewal) {
    
    this.serviceRenewal = serviceRenewal;
    return this;
  }

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

  public SubscriptionRenewalDto getServiceRenewal() {
    return serviceRenewal;
  }



  public void setServiceRenewal(SubscriptionRenewalDto serviceRenewal) {
    this.serviceRenewal = serviceRenewal;
  }


  public ServiceToUpdateDto 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;
    }
    ServiceToUpdateDto serviceToUpdateDto = (ServiceToUpdateDto) o;
    return Objects.equals(this.id, serviceToUpdateDto.id) &&
        Objects.equals(this.code, serviceToUpdateDto.code) &&
        Objects.equals(this.overrideCode, serviceToUpdateDto.overrideCode) &&
        Objects.equals(this.description, serviceToUpdateDto.description) &&
        Objects.equals(this.quantity, serviceToUpdateDto.quantity) &&
        Objects.equals(this.actionDate, serviceToUpdateDto.actionDate) &&
        Objects.equals(this.endAgreementDate, serviceToUpdateDto.endAgreementDate) &&
        Objects.equals(this.terminationDate, serviceToUpdateDto.terminationDate) &&
        Objects.equals(this.terminationReason, serviceToUpdateDto.terminationReason) &&
        Objects.equals(this.serviceRenewal, serviceToUpdateDto.serviceRenewal) &&
        Objects.equals(this.customFields, serviceToUpdateDto.customFields);
  }

  @Override
  public int hashCode() {
    return Objects.hash(id, code, overrideCode, description, quantity, actionDate, endAgreementDate, terminationDate, terminationReason, serviceRenewal, customFields);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class ServiceToUpdateDto {\n");
    sb.append("    id: ").append(toIndentedString(id)).append("\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("    actionDate: ").append(toIndentedString(actionDate)).append("\n");
    sb.append("    endAgreementDate: ").append(toIndentedString(endAgreementDate)).append("\n");
    sb.append("    terminationDate: ").append(toIndentedString(terminationDate)).append("\n");
    sb.append("    terminationReason: ").append(toIndentedString(terminationReason)).append("\n");
    sb.append("    serviceRenewal: ").append(toIndentedString(serviceRenewal)).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    ");
  }

}

