/*
 * 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.util.ArrayList;
import java.util.List;
import org.openapitools.client.model.CustomFieldsDto;
import org.openapitools.client.model.LanguageDescriptionDto;

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

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

  public static final String SERIALIZED_NAME_LANGUAGE_DESCRIPTIONS = "languageDescriptions";
  @SerializedName(SERIALIZED_NAME_LANGUAGE_DESCRIPTIONS)
  private List<LanguageDescriptionDto> languageDescriptions = null;

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

  public static final String SERIALIZED_NAME_TAX_SCRIPT_SCODE = "taxScriptScode";
  @SerializedName(SERIALIZED_NAME_TAX_SCRIPT_SCODE)
  private String taxScriptScode;

  public static final String SERIALIZED_NAME_OCC_TEMPLATE_CODE = "occTemplateCode";
  @SerializedName(SERIALIZED_NAME_OCC_TEMPLATE_CODE)
  private String occTemplateCode;

  public static final String SERIALIZED_NAME_OCC_TEMPLATE_NEGATIVE_CODE = "occTemplateNegativeCode";
  @SerializedName(SERIALIZED_NAME_OCC_TEMPLATE_NEGATIVE_CODE)
  private String occTemplateNegativeCode;


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

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

  public String getInvoiceCategory() {
    return invoiceCategory;
  }



  public void setInvoiceCategory(String invoiceCategory) {
    this.invoiceCategory = invoiceCategory;
  }


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


  public InvoiceSubCategoryDto languageDescriptions(List<LanguageDescriptionDto> languageDescriptions) {
    
    this.languageDescriptions = languageDescriptions;
    return this;
  }

  public InvoiceSubCategoryDto addLanguageDescriptionsItem(LanguageDescriptionDto languageDescriptionsItem) {
    if (this.languageDescriptions == null) {
      this.languageDescriptions = new ArrayList<LanguageDescriptionDto>();
    }
    this.languageDescriptions.add(languageDescriptionsItem);
    return this;
  }

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

  public List<LanguageDescriptionDto> getLanguageDescriptions() {
    return languageDescriptions;
  }



  public void setLanguageDescriptions(List<LanguageDescriptionDto> languageDescriptions) {
    this.languageDescriptions = languageDescriptions;
  }


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

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

  public String getTaxScriptScode() {
    return taxScriptScode;
  }



  public void setTaxScriptScode(String taxScriptScode) {
    this.taxScriptScode = taxScriptScode;
  }


  public InvoiceSubCategoryDto occTemplateCode(String occTemplateCode) {
    
    this.occTemplateCode = occTemplateCode;
    return this;
  }

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

  public String getOccTemplateCode() {
    return occTemplateCode;
  }



  public void setOccTemplateCode(String occTemplateCode) {
    this.occTemplateCode = occTemplateCode;
  }


  public InvoiceSubCategoryDto occTemplateNegativeCode(String occTemplateNegativeCode) {
    
    this.occTemplateNegativeCode = occTemplateNegativeCode;
    return this;
  }

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

  public String getOccTemplateNegativeCode() {
    return occTemplateNegativeCode;
  }



  public void setOccTemplateNegativeCode(String occTemplateNegativeCode) {
    this.occTemplateNegativeCode = occTemplateNegativeCode;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    InvoiceSubCategoryDto invoiceSubCategoryDto = (InvoiceSubCategoryDto) o;
    return Objects.equals(this.id, invoiceSubCategoryDto.id) &&
        Objects.equals(this.code, invoiceSubCategoryDto.code) &&
        Objects.equals(this.description, invoiceSubCategoryDto.description) &&
        Objects.equals(this.updatedCode, invoiceSubCategoryDto.updatedCode) &&
        Objects.equals(this.invoiceCategory, invoiceSubCategoryDto.invoiceCategory) &&
        Objects.equals(this.accountingCode, invoiceSubCategoryDto.accountingCode) &&
        Objects.equals(this.languageDescriptions, invoiceSubCategoryDto.languageDescriptions) &&
        Objects.equals(this.customFields, invoiceSubCategoryDto.customFields) &&
        Objects.equals(this.taxScriptScode, invoiceSubCategoryDto.taxScriptScode) &&
        Objects.equals(this.occTemplateCode, invoiceSubCategoryDto.occTemplateCode) &&
        Objects.equals(this.occTemplateNegativeCode, invoiceSubCategoryDto.occTemplateNegativeCode);
  }

  @Override
  public int hashCode() {
    return Objects.hash(id, code, description, updatedCode, invoiceCategory, accountingCode, languageDescriptions, customFields, taxScriptScode, occTemplateCode, occTemplateNegativeCode);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class InvoiceSubCategoryDto {\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("    invoiceCategory: ").append(toIndentedString(invoiceCategory)).append("\n");
    sb.append("    accountingCode: ").append(toIndentedString(accountingCode)).append("\n");
    sb.append("    languageDescriptions: ").append(toIndentedString(languageDescriptions)).append("\n");
    sb.append("    customFields: ").append(toIndentedString(customFields)).append("\n");
    sb.append("    taxScriptScode: ").append(toIndentedString(taxScriptScode)).append("\n");
    sb.append("    occTemplateCode: ").append(toIndentedString(occTemplateCode)).append("\n");
    sb.append("    occTemplateNegativeCode: ").append(toIndentedString(occTemplateNegativeCode)).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    ");
  }

}

