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

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

  public static final String SERIALIZED_NAME_DESCRIPTION = "description";
  @SerializedName(SERIALIZED_NAME_DESCRIPTION)
  private String description;

  public static final String SERIALIZED_NAME_UNIT_PRICE_WITHOUT_TAX = "unitPriceWithoutTax";
  @SerializedName(SERIALIZED_NAME_UNIT_PRICE_WITHOUT_TAX)
  private Double unitPriceWithoutTax;

  public static final String SERIALIZED_NAME_TAX_PERCENT = "taxPercent";
  @SerializedName(SERIALIZED_NAME_TAX_PERCENT)
  private Double taxPercent;

  public static final String SERIALIZED_NAME_TAX_CODE = "taxCode";
  @SerializedName(SERIALIZED_NAME_TAX_CODE)
  private String taxCode;

  public static final String SERIALIZED_NAME_TAX_DESCRIPTION = "taxDescription";
  @SerializedName(SERIALIZED_NAME_TAX_DESCRIPTION)
  private String taxDescription;


  public OneShotChargeTemplateWithPriceDto chargeCode(String chargeCode) {
    
    this.chargeCode = chargeCode;
    return this;
  }

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

  public String getChargeCode() {
    return chargeCode;
  }



  public void setChargeCode(String chargeCode) {
    this.chargeCode = chargeCode;
  }


  public OneShotChargeTemplateWithPriceDto 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 OneShotChargeTemplateWithPriceDto unitPriceWithoutTax(Double unitPriceWithoutTax) {
    
    this.unitPriceWithoutTax = unitPriceWithoutTax;
    return this;
  }

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

  public Double getUnitPriceWithoutTax() {
    return unitPriceWithoutTax;
  }



  public void setUnitPriceWithoutTax(Double unitPriceWithoutTax) {
    this.unitPriceWithoutTax = unitPriceWithoutTax;
  }


  public OneShotChargeTemplateWithPriceDto taxPercent(Double taxPercent) {
    
    this.taxPercent = taxPercent;
    return this;
  }

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

  public Double getTaxPercent() {
    return taxPercent;
  }



  public void setTaxPercent(Double taxPercent) {
    this.taxPercent = taxPercent;
  }


  public OneShotChargeTemplateWithPriceDto taxCode(String taxCode) {
    
    this.taxCode = taxCode;
    return this;
  }

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

  public String getTaxCode() {
    return taxCode;
  }



  public void setTaxCode(String taxCode) {
    this.taxCode = taxCode;
  }


  public OneShotChargeTemplateWithPriceDto taxDescription(String taxDescription) {
    
    this.taxDescription = taxDescription;
    return this;
  }

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

  public String getTaxDescription() {
    return taxDescription;
  }



  public void setTaxDescription(String taxDescription) {
    this.taxDescription = taxDescription;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    OneShotChargeTemplateWithPriceDto oneShotChargeTemplateWithPriceDto = (OneShotChargeTemplateWithPriceDto) o;
    return Objects.equals(this.chargeCode, oneShotChargeTemplateWithPriceDto.chargeCode) &&
        Objects.equals(this.description, oneShotChargeTemplateWithPriceDto.description) &&
        Objects.equals(this.unitPriceWithoutTax, oneShotChargeTemplateWithPriceDto.unitPriceWithoutTax) &&
        Objects.equals(this.taxPercent, oneShotChargeTemplateWithPriceDto.taxPercent) &&
        Objects.equals(this.taxCode, oneShotChargeTemplateWithPriceDto.taxCode) &&
        Objects.equals(this.taxDescription, oneShotChargeTemplateWithPriceDto.taxDescription);
  }

  @Override
  public int hashCode() {
    return Objects.hash(chargeCode, description, unitPriceWithoutTax, taxPercent, taxCode, taxDescription);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class OneShotChargeTemplateWithPriceDto {\n");
    sb.append("    chargeCode: ").append(toIndentedString(chargeCode)).append("\n");
    sb.append("    description: ").append(toIndentedString(description)).append("\n");
    sb.append("    unitPriceWithoutTax: ").append(toIndentedString(unitPriceWithoutTax)).append("\n");
    sb.append("    taxPercent: ").append(toIndentedString(taxPercent)).append("\n");
    sb.append("    taxCode: ").append(toIndentedString(taxCode)).append("\n");
    sb.append("    taxDescription: ").append(toIndentedString(taxDescription)).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    ");
  }

}

