/*
 * 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.Auditable;
import org.openapitools.client.model.AuditableFieldHistory;
import org.openapitools.client.model.InvoiceSubCategory;
import org.openapitools.client.model.Tax;
import org.openapitools.client.model.TradingCountry;
import org.threeten.bp.OffsetDateTime;

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

  public static final String SERIALIZED_NAME_VERSION = "version";
  @SerializedName(SERIALIZED_NAME_VERSION)
  private Integer version;

  public static final String SERIALIZED_NAME_AUDITABLE = "auditable";
  @SerializedName(SERIALIZED_NAME_AUDITABLE)
  private Auditable auditable;

  public static final String SERIALIZED_NAME_HISTORIZED = "historized";
  @SerializedName(SERIALIZED_NAME_HISTORIZED)
  private Boolean historized;

  public static final String SERIALIZED_NAME_NOTIFIED = "notified";
  @SerializedName(SERIALIZED_NAME_NOTIFIED)
  private Boolean notified;

  public static final String SERIALIZED_NAME_AUDITABLE_FIELDS = "auditableFields";
  @SerializedName(SERIALIZED_NAME_AUDITABLE_FIELDS)
  private List<AuditableFieldHistory> auditableFields = null;

  public static final String SERIALIZED_NAME_INVOICE_SUB_CATEGORY = "invoiceSubCategory";
  @SerializedName(SERIALIZED_NAME_INVOICE_SUB_CATEGORY)
  private InvoiceSubCategory invoiceSubCategory;

  public static final String SERIALIZED_NAME_SELLING_COUNTRY = "sellingCountry";
  @SerializedName(SERIALIZED_NAME_SELLING_COUNTRY)
  private TradingCountry sellingCountry;

  public static final String SERIALIZED_NAME_TRADING_COUNTRY = "tradingCountry";
  @SerializedName(SERIALIZED_NAME_TRADING_COUNTRY)
  private TradingCountry tradingCountry;

  public static final String SERIALIZED_NAME_TAX = "tax";
  @SerializedName(SERIALIZED_NAME_TAX)
  private Tax tax;

  public static final String SERIALIZED_NAME_FILTER_E_L = "filterEL";
  @SerializedName(SERIALIZED_NAME_FILTER_E_L)
  private String filterEL;

  public static final String SERIALIZED_NAME_TAX_CODE_E_L = "taxCodeEL";
  @SerializedName(SERIALIZED_NAME_TAX_CODE_E_L)
  private String taxCodeEL;

  public static final String SERIALIZED_NAME_TAX_CODE_E_L_SPARK = "taxCodeELSpark";
  @SerializedName(SERIALIZED_NAME_TAX_CODE_E_L_SPARK)
  private String taxCodeELSpark;

  public static final String SERIALIZED_NAME_START_VALIDITY_DATE = "startValidityDate";
  @SerializedName(SERIALIZED_NAME_START_VALIDITY_DATE)
  private OffsetDateTime startValidityDate;

  public static final String SERIALIZED_NAME_END_VALIDITY_DATE = "endValidityDate";
  @SerializedName(SERIALIZED_NAME_END_VALIDITY_DATE)
  private OffsetDateTime endValidityDate;

  public static final String SERIALIZED_NAME_PRIORITY = "priority";
  @SerializedName(SERIALIZED_NAME_PRIORITY)
  private Integer priority;

  public static final String SERIALIZED_NAME_STRICT_MATCH = "strictMatch";
  @SerializedName(SERIALIZED_NAME_STRICT_MATCH)
  private Boolean strictMatch;

  public static final String SERIALIZED_NAME_START_VALIDITY_DATE_MATCH = "startValidityDateMatch";
  @SerializedName(SERIALIZED_NAME_START_VALIDITY_DATE_MATCH)
  private OffsetDateTime startValidityDateMatch;

  public static final String SERIALIZED_NAME_END_VALIDITY_DATE_MATCH = "endValidityDateMatch";
  @SerializedName(SERIALIZED_NAME_END_VALIDITY_DATE_MATCH)
  private OffsetDateTime endValidityDateMatch;

  public static final String SERIALIZED_NAME_TRANSIENT = "transient";
  @SerializedName(SERIALIZED_NAME_TRANSIENT)
  private Boolean _transient;


  public InvoiceSubcategoryCountry 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 InvoiceSubcategoryCountry version(Integer version) {
    
    this.version = version;
    return this;
  }

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

  public Integer getVersion() {
    return version;
  }



  public void setVersion(Integer version) {
    this.version = version;
  }


  public InvoiceSubcategoryCountry auditable(Auditable auditable) {
    
    this.auditable = auditable;
    return this;
  }

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

  public Auditable getAuditable() {
    return auditable;
  }



  public void setAuditable(Auditable auditable) {
    this.auditable = auditable;
  }


  public InvoiceSubcategoryCountry historized(Boolean historized) {
    
    this.historized = historized;
    return this;
  }

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

  public Boolean getHistorized() {
    return historized;
  }



  public void setHistorized(Boolean historized) {
    this.historized = historized;
  }


  public InvoiceSubcategoryCountry notified(Boolean notified) {
    
    this.notified = notified;
    return this;
  }

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

  public Boolean getNotified() {
    return notified;
  }



  public void setNotified(Boolean notified) {
    this.notified = notified;
  }


  public InvoiceSubcategoryCountry auditableFields(List<AuditableFieldHistory> auditableFields) {
    
    this.auditableFields = auditableFields;
    return this;
  }

  public InvoiceSubcategoryCountry addAuditableFieldsItem(AuditableFieldHistory auditableFieldsItem) {
    if (this.auditableFields == null) {
      this.auditableFields = new ArrayList<AuditableFieldHistory>();
    }
    this.auditableFields.add(auditableFieldsItem);
    return this;
  }

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

  public List<AuditableFieldHistory> getAuditableFields() {
    return auditableFields;
  }



  public void setAuditableFields(List<AuditableFieldHistory> auditableFields) {
    this.auditableFields = auditableFields;
  }


  public InvoiceSubcategoryCountry invoiceSubCategory(InvoiceSubCategory invoiceSubCategory) {
    
    this.invoiceSubCategory = invoiceSubCategory;
    return this;
  }

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

  public InvoiceSubCategory getInvoiceSubCategory() {
    return invoiceSubCategory;
  }



  public void setInvoiceSubCategory(InvoiceSubCategory invoiceSubCategory) {
    this.invoiceSubCategory = invoiceSubCategory;
  }


  public InvoiceSubcategoryCountry sellingCountry(TradingCountry sellingCountry) {
    
    this.sellingCountry = sellingCountry;
    return this;
  }

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

  public TradingCountry getSellingCountry() {
    return sellingCountry;
  }



  public void setSellingCountry(TradingCountry sellingCountry) {
    this.sellingCountry = sellingCountry;
  }


  public InvoiceSubcategoryCountry tradingCountry(TradingCountry tradingCountry) {
    
    this.tradingCountry = tradingCountry;
    return this;
  }

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

  public TradingCountry getTradingCountry() {
    return tradingCountry;
  }



  public void setTradingCountry(TradingCountry tradingCountry) {
    this.tradingCountry = tradingCountry;
  }


  public InvoiceSubcategoryCountry tax(Tax tax) {
    
    this.tax = tax;
    return this;
  }

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

  public Tax getTax() {
    return tax;
  }



  public void setTax(Tax tax) {
    this.tax = tax;
  }


  public InvoiceSubcategoryCountry filterEL(String filterEL) {
    
    this.filterEL = filterEL;
    return this;
  }

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

  public String getFilterEL() {
    return filterEL;
  }



  public void setFilterEL(String filterEL) {
    this.filterEL = filterEL;
  }


  public InvoiceSubcategoryCountry taxCodeEL(String taxCodeEL) {
    
    this.taxCodeEL = taxCodeEL;
    return this;
  }

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

  public String getTaxCodeEL() {
    return taxCodeEL;
  }



  public void setTaxCodeEL(String taxCodeEL) {
    this.taxCodeEL = taxCodeEL;
  }


  public InvoiceSubcategoryCountry taxCodeELSpark(String taxCodeELSpark) {
    
    this.taxCodeELSpark = taxCodeELSpark;
    return this;
  }

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

  public String getTaxCodeELSpark() {
    return taxCodeELSpark;
  }



  public void setTaxCodeELSpark(String taxCodeELSpark) {
    this.taxCodeELSpark = taxCodeELSpark;
  }


  public InvoiceSubcategoryCountry startValidityDate(OffsetDateTime startValidityDate) {
    
    this.startValidityDate = startValidityDate;
    return this;
  }

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

  public OffsetDateTime getStartValidityDate() {
    return startValidityDate;
  }



  public void setStartValidityDate(OffsetDateTime startValidityDate) {
    this.startValidityDate = startValidityDate;
  }


  public InvoiceSubcategoryCountry endValidityDate(OffsetDateTime endValidityDate) {
    
    this.endValidityDate = endValidityDate;
    return this;
  }

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

  public OffsetDateTime getEndValidityDate() {
    return endValidityDate;
  }



  public void setEndValidityDate(OffsetDateTime endValidityDate) {
    this.endValidityDate = endValidityDate;
  }


  public InvoiceSubcategoryCountry priority(Integer priority) {
    
    this.priority = priority;
    return this;
  }

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

  public Integer getPriority() {
    return priority;
  }



  public void setPriority(Integer priority) {
    this.priority = priority;
  }


  public InvoiceSubcategoryCountry strictMatch(Boolean strictMatch) {
    
    this.strictMatch = strictMatch;
    return this;
  }

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

  public Boolean getStrictMatch() {
    return strictMatch;
  }



  public void setStrictMatch(Boolean strictMatch) {
    this.strictMatch = strictMatch;
  }


  public InvoiceSubcategoryCountry startValidityDateMatch(OffsetDateTime startValidityDateMatch) {
    
    this.startValidityDateMatch = startValidityDateMatch;
    return this;
  }

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

  public OffsetDateTime getStartValidityDateMatch() {
    return startValidityDateMatch;
  }



  public void setStartValidityDateMatch(OffsetDateTime startValidityDateMatch) {
    this.startValidityDateMatch = startValidityDateMatch;
  }


  public InvoiceSubcategoryCountry endValidityDateMatch(OffsetDateTime endValidityDateMatch) {
    
    this.endValidityDateMatch = endValidityDateMatch;
    return this;
  }

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

  public OffsetDateTime getEndValidityDateMatch() {
    return endValidityDateMatch;
  }



  public void setEndValidityDateMatch(OffsetDateTime endValidityDateMatch) {
    this.endValidityDateMatch = endValidityDateMatch;
  }


  public InvoiceSubcategoryCountry _transient(Boolean _transient) {
    
    this._transient = _transient;
    return this;
  }

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

  public Boolean getTransient() {
    return _transient;
  }



  public void setTransient(Boolean _transient) {
    this._transient = _transient;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    InvoiceSubcategoryCountry invoiceSubcategoryCountry = (InvoiceSubcategoryCountry) o;
    return Objects.equals(this.id, invoiceSubcategoryCountry.id) &&
        Objects.equals(this.version, invoiceSubcategoryCountry.version) &&
        Objects.equals(this.auditable, invoiceSubcategoryCountry.auditable) &&
        Objects.equals(this.historized, invoiceSubcategoryCountry.historized) &&
        Objects.equals(this.notified, invoiceSubcategoryCountry.notified) &&
        Objects.equals(this.auditableFields, invoiceSubcategoryCountry.auditableFields) &&
        Objects.equals(this.invoiceSubCategory, invoiceSubcategoryCountry.invoiceSubCategory) &&
        Objects.equals(this.sellingCountry, invoiceSubcategoryCountry.sellingCountry) &&
        Objects.equals(this.tradingCountry, invoiceSubcategoryCountry.tradingCountry) &&
        Objects.equals(this.tax, invoiceSubcategoryCountry.tax) &&
        Objects.equals(this.filterEL, invoiceSubcategoryCountry.filterEL) &&
        Objects.equals(this.taxCodeEL, invoiceSubcategoryCountry.taxCodeEL) &&
        Objects.equals(this.taxCodeELSpark, invoiceSubcategoryCountry.taxCodeELSpark) &&
        Objects.equals(this.startValidityDate, invoiceSubcategoryCountry.startValidityDate) &&
        Objects.equals(this.endValidityDate, invoiceSubcategoryCountry.endValidityDate) &&
        Objects.equals(this.priority, invoiceSubcategoryCountry.priority) &&
        Objects.equals(this.strictMatch, invoiceSubcategoryCountry.strictMatch) &&
        Objects.equals(this.startValidityDateMatch, invoiceSubcategoryCountry.startValidityDateMatch) &&
        Objects.equals(this.endValidityDateMatch, invoiceSubcategoryCountry.endValidityDateMatch) &&
        Objects.equals(this._transient, invoiceSubcategoryCountry._transient);
  }

  @Override
  public int hashCode() {
    return Objects.hash(id, version, auditable, historized, notified, auditableFields, invoiceSubCategory, sellingCountry, tradingCountry, tax, filterEL, taxCodeEL, taxCodeELSpark, startValidityDate, endValidityDate, priority, strictMatch, startValidityDateMatch, endValidityDateMatch, _transient);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class InvoiceSubcategoryCountry {\n");
    sb.append("    id: ").append(toIndentedString(id)).append("\n");
    sb.append("    version: ").append(toIndentedString(version)).append("\n");
    sb.append("    auditable: ").append(toIndentedString(auditable)).append("\n");
    sb.append("    historized: ").append(toIndentedString(historized)).append("\n");
    sb.append("    notified: ").append(toIndentedString(notified)).append("\n");
    sb.append("    auditableFields: ").append(toIndentedString(auditableFields)).append("\n");
    sb.append("    invoiceSubCategory: ").append(toIndentedString(invoiceSubCategory)).append("\n");
    sb.append("    sellingCountry: ").append(toIndentedString(sellingCountry)).append("\n");
    sb.append("    tradingCountry: ").append(toIndentedString(tradingCountry)).append("\n");
    sb.append("    tax: ").append(toIndentedString(tax)).append("\n");
    sb.append("    filterEL: ").append(toIndentedString(filterEL)).append("\n");
    sb.append("    taxCodeEL: ").append(toIndentedString(taxCodeEL)).append("\n");
    sb.append("    taxCodeELSpark: ").append(toIndentedString(taxCodeELSpark)).append("\n");
    sb.append("    startValidityDate: ").append(toIndentedString(startValidityDate)).append("\n");
    sb.append("    endValidityDate: ").append(toIndentedString(endValidityDate)).append("\n");
    sb.append("    priority: ").append(toIndentedString(priority)).append("\n");
    sb.append("    strictMatch: ").append(toIndentedString(strictMatch)).append("\n");
    sb.append("    startValidityDateMatch: ").append(toIndentedString(startValidityDateMatch)).append("\n");
    sb.append("    endValidityDateMatch: ").append(toIndentedString(endValidityDateMatch)).append("\n");
    sb.append("    _transient: ").append(toIndentedString(_transient)).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    ");
  }

}

