/*
 * 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.threeten.bp.OffsetDateTime;

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

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

  public static final String SERIALIZED_NAME_AMOUNT_WITHOUT_TAX = "amountWithoutTax";
  @SerializedName(SERIALIZED_NAME_AMOUNT_WITHOUT_TAX)
  private BigDecimal amountWithoutTax;

  public static final String SERIALIZED_NAME_AMOUNT_WITH_TAX = "amountWithTax";
  @SerializedName(SERIALIZED_NAME_AMOUNT_WITH_TAX)
  private BigDecimal amountWithTax;

  public static final String SERIALIZED_NAME_CRITERIA1 = "criteria1";
  @SerializedName(SERIALIZED_NAME_CRITERIA1)
  private String criteria1;

  public static final String SERIALIZED_NAME_CRITERIA2 = "criteria2";
  @SerializedName(SERIALIZED_NAME_CRITERIA2)
  private String criteria2;

  public static final String SERIALIZED_NAME_CRITERIA3 = "criteria3";
  @SerializedName(SERIALIZED_NAME_CRITERIA3)
  private String criteria3;

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


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

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

  public OffsetDateTime getChargeDate() {
    return chargeDate;
  }



  public void setChargeDate(OffsetDateTime chargeDate) {
    this.chargeDate = chargeDate;
  }


  public ProductDto 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 ProductDto amountWithoutTax(BigDecimal amountWithoutTax) {
    
    this.amountWithoutTax = amountWithoutTax;
    return this;
  }

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

  public BigDecimal getAmountWithoutTax() {
    return amountWithoutTax;
  }



  public void setAmountWithoutTax(BigDecimal amountWithoutTax) {
    this.amountWithoutTax = amountWithoutTax;
  }


  public ProductDto amountWithTax(BigDecimal amountWithTax) {
    
    this.amountWithTax = amountWithTax;
    return this;
  }

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

  public BigDecimal getAmountWithTax() {
    return amountWithTax;
  }



  public void setAmountWithTax(BigDecimal amountWithTax) {
    this.amountWithTax = amountWithTax;
  }


  public ProductDto criteria1(String criteria1) {
    
    this.criteria1 = criteria1;
    return this;
  }

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

  public String getCriteria1() {
    return criteria1;
  }



  public void setCriteria1(String criteria1) {
    this.criteria1 = criteria1;
  }


  public ProductDto criteria2(String criteria2) {
    
    this.criteria2 = criteria2;
    return this;
  }

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

  public String getCriteria2() {
    return criteria2;
  }



  public void setCriteria2(String criteria2) {
    this.criteria2 = criteria2;
  }


  public ProductDto criteria3(String criteria3) {
    
    this.criteria3 = criteria3;
    return this;
  }

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

  public String getCriteria3() {
    return criteria3;
  }



  public void setCriteria3(String criteria3) {
    this.criteria3 = criteria3;
  }


  public ProductDto 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;
    }
    ProductDto productDto = (ProductDto) o;
    return Objects.equals(this.code, productDto.code) &&
        Objects.equals(this.description, productDto.description) &&
        Objects.equals(this.chargeDate, productDto.chargeDate) &&
        Objects.equals(this.quantity, productDto.quantity) &&
        Objects.equals(this.amountWithoutTax, productDto.amountWithoutTax) &&
        Objects.equals(this.amountWithTax, productDto.amountWithTax) &&
        Objects.equals(this.criteria1, productDto.criteria1) &&
        Objects.equals(this.criteria2, productDto.criteria2) &&
        Objects.equals(this.criteria3, productDto.criteria3) &&
        Objects.equals(this.customFields, productDto.customFields);
  }

  @Override
  public int hashCode() {
    return Objects.hash(code, description, chargeDate, quantity, amountWithoutTax, amountWithTax, criteria1, criteria2, criteria3, customFields);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class ProductDto {\n");
    sb.append("    code: ").append(toIndentedString(code)).append("\n");
    sb.append("    description: ").append(toIndentedString(description)).append("\n");
    sb.append("    chargeDate: ").append(toIndentedString(chargeDate)).append("\n");
    sb.append("    quantity: ").append(toIndentedString(quantity)).append("\n");
    sb.append("    amountWithoutTax: ").append(toIndentedString(amountWithoutTax)).append("\n");
    sb.append("    amountWithTax: ").append(toIndentedString(amountWithTax)).append("\n");
    sb.append("    criteria1: ").append(toIndentedString(criteria1)).append("\n");
    sb.append("    criteria2: ").append(toIndentedString(criteria2)).append("\n");
    sb.append("    criteria3: ").append(toIndentedString(criteria3)).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    ");
  }

}

