/*
 * 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;

/**
 * CustomerCategoryDto
 */
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-09-13T10:03:17.753Z[GMT]")
public class CustomerCategoryDto {
  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_DESCRIPTION = "description";
  @SerializedName(SERIALIZED_NAME_DESCRIPTION)
  private String description;

  public static final String SERIALIZED_NAME_UPDATED_CODE = "updatedCode";
  @SerializedName(SERIALIZED_NAME_UPDATED_CODE)
  private String updatedCode;

  public static final String SERIALIZED_NAME_EXONERATED_FROM_TAXES = "exoneratedFromTaxes";
  @SerializedName(SERIALIZED_NAME_EXONERATED_FROM_TAXES)
  private Boolean exoneratedFromTaxes;

  public static final String SERIALIZED_NAME_EXONERATION_TAX_EL = "exonerationTaxEl";
  @SerializedName(SERIALIZED_NAME_EXONERATION_TAX_EL)
  private String exonerationTaxEl;

  public static final String SERIALIZED_NAME_EXONERATION_TAX_EL_SPARK = "exonerationTaxElSpark";
  @SerializedName(SERIALIZED_NAME_EXONERATION_TAX_EL_SPARK)
  private String exonerationTaxElSpark;

  public static final String SERIALIZED_NAME_EXONERATION_REASON = "exonerationReason";
  @SerializedName(SERIALIZED_NAME_EXONERATION_REASON)
  private String exonerationReason;

  public static final String SERIALIZED_NAME_ACCOUNTING_CODE = "accountingCode";
  @SerializedName(SERIALIZED_NAME_ACCOUNTING_CODE)
  private String accountingCode;


  public CustomerCategoryDto 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 CustomerCategoryDto 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 CustomerCategoryDto 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 CustomerCategoryDto updatedCode(String updatedCode) {
    
    this.updatedCode = updatedCode;
    return this;
  }

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

  public String getUpdatedCode() {
    return updatedCode;
  }



  public void setUpdatedCode(String updatedCode) {
    this.updatedCode = updatedCode;
  }


  public CustomerCategoryDto exoneratedFromTaxes(Boolean exoneratedFromTaxes) {
    
    this.exoneratedFromTaxes = exoneratedFromTaxes;
    return this;
  }

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

  public Boolean getExoneratedFromTaxes() {
    return exoneratedFromTaxes;
  }



  public void setExoneratedFromTaxes(Boolean exoneratedFromTaxes) {
    this.exoneratedFromTaxes = exoneratedFromTaxes;
  }


  public CustomerCategoryDto exonerationTaxEl(String exonerationTaxEl) {
    
    this.exonerationTaxEl = exonerationTaxEl;
    return this;
  }

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

  public String getExonerationTaxEl() {
    return exonerationTaxEl;
  }



  public void setExonerationTaxEl(String exonerationTaxEl) {
    this.exonerationTaxEl = exonerationTaxEl;
  }


  public CustomerCategoryDto exonerationTaxElSpark(String exonerationTaxElSpark) {
    
    this.exonerationTaxElSpark = exonerationTaxElSpark;
    return this;
  }

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

  public String getExonerationTaxElSpark() {
    return exonerationTaxElSpark;
  }



  public void setExonerationTaxElSpark(String exonerationTaxElSpark) {
    this.exonerationTaxElSpark = exonerationTaxElSpark;
  }


  public CustomerCategoryDto exonerationReason(String exonerationReason) {
    
    this.exonerationReason = exonerationReason;
    return this;
  }

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

  public String getExonerationReason() {
    return exonerationReason;
  }



  public void setExonerationReason(String exonerationReason) {
    this.exonerationReason = exonerationReason;
  }


  public CustomerCategoryDto accountingCode(String accountingCode) {
    
    this.accountingCode = accountingCode;
    return this;
  }

   /**
   * Get accountingCode
   * @return accountingCode
  **/
  @ApiModelProperty(required = true, value = "")

  public String getAccountingCode() {
    return accountingCode;
  }



  public void setAccountingCode(String accountingCode) {
    this.accountingCode = accountingCode;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    CustomerCategoryDto customerCategoryDto = (CustomerCategoryDto) o;
    return Objects.equals(this.id, customerCategoryDto.id) &&
        Objects.equals(this.code, customerCategoryDto.code) &&
        Objects.equals(this.description, customerCategoryDto.description) &&
        Objects.equals(this.updatedCode, customerCategoryDto.updatedCode) &&
        Objects.equals(this.exoneratedFromTaxes, customerCategoryDto.exoneratedFromTaxes) &&
        Objects.equals(this.exonerationTaxEl, customerCategoryDto.exonerationTaxEl) &&
        Objects.equals(this.exonerationTaxElSpark, customerCategoryDto.exonerationTaxElSpark) &&
        Objects.equals(this.exonerationReason, customerCategoryDto.exonerationReason) &&
        Objects.equals(this.accountingCode, customerCategoryDto.accountingCode);
  }

  @Override
  public int hashCode() {
    return Objects.hash(id, code, description, updatedCode, exoneratedFromTaxes, exonerationTaxEl, exonerationTaxElSpark, exonerationReason, accountingCode);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class CustomerCategoryDto {\n");
    sb.append("    id: ").append(toIndentedString(id)).append("\n");
    sb.append("    code: ").append(toIndentedString(code)).append("\n");
    sb.append("    description: ").append(toIndentedString(description)).append("\n");
    sb.append("    updatedCode: ").append(toIndentedString(updatedCode)).append("\n");
    sb.append("    exoneratedFromTaxes: ").append(toIndentedString(exoneratedFromTaxes)).append("\n");
    sb.append("    exonerationTaxEl: ").append(toIndentedString(exonerationTaxEl)).append("\n");
    sb.append("    exonerationTaxElSpark: ").append(toIndentedString(exonerationTaxElSpark)).append("\n");
    sb.append("    exonerationReason: ").append(toIndentedString(exonerationReason)).append("\n");
    sb.append("    accountingCode: ").append(toIndentedString(accountingCode)).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    ");
  }

}

