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

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

  public static final String SERIALIZED_NAME_DUTY_FREE_AMOUNT = "dutyFreeAmount";
  @SerializedName(SERIALIZED_NAME_DUTY_FREE_AMOUNT)
  private String dutyFreeAmount;

  public static final String SERIALIZED_NAME_TAX_RATE = "taxRate";
  @SerializedName(SERIALIZED_NAME_TAX_RATE)
  private String taxRate;

  public static final String SERIALIZED_NAME_CURRENCY_CODE = "currencyCode";
  @SerializedName(SERIALIZED_NAME_CURRENCY_CODE)
  private String currencyCode;

  public static final String SERIALIZED_NAME_PERCENTAGE = "percentage";
  @SerializedName(SERIALIZED_NAME_PERCENTAGE)
  private BigDecimal percentage;


  public Price taxIncludedAmount(String taxIncludedAmount) {
    
    this.taxIncludedAmount = taxIncludedAmount;
    return this;
  }

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

  public String getTaxIncludedAmount() {
    return taxIncludedAmount;
  }



  public void setTaxIncludedAmount(String taxIncludedAmount) {
    this.taxIncludedAmount = taxIncludedAmount;
  }


  public Price dutyFreeAmount(String dutyFreeAmount) {
    
    this.dutyFreeAmount = dutyFreeAmount;
    return this;
  }

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

  public String getDutyFreeAmount() {
    return dutyFreeAmount;
  }



  public void setDutyFreeAmount(String dutyFreeAmount) {
    this.dutyFreeAmount = dutyFreeAmount;
  }


  public Price taxRate(String taxRate) {
    
    this.taxRate = taxRate;
    return this;
  }

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

  public String getTaxRate() {
    return taxRate;
  }



  public void setTaxRate(String taxRate) {
    this.taxRate = taxRate;
  }


  public Price currencyCode(String currencyCode) {
    
    this.currencyCode = currencyCode;
    return this;
  }

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

  public String getCurrencyCode() {
    return currencyCode;
  }



  public void setCurrencyCode(String currencyCode) {
    this.currencyCode = currencyCode;
  }


  public Price percentage(BigDecimal percentage) {
    
    this.percentage = percentage;
    return this;
  }

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

  public BigDecimal getPercentage() {
    return percentage;
  }



  public void setPercentage(BigDecimal percentage) {
    this.percentage = percentage;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    Price price = (Price) o;
    return Objects.equals(this.taxIncludedAmount, price.taxIncludedAmount) &&
        Objects.equals(this.dutyFreeAmount, price.dutyFreeAmount) &&
        Objects.equals(this.taxRate, price.taxRate) &&
        Objects.equals(this.currencyCode, price.currencyCode) &&
        Objects.equals(this.percentage, price.percentage);
  }

  @Override
  public int hashCode() {
    return Objects.hash(taxIncludedAmount, dutyFreeAmount, taxRate, currencyCode, percentage);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class Price {\n");
    sb.append("    taxIncludedAmount: ").append(toIndentedString(taxIncludedAmount)).append("\n");
    sb.append("    dutyFreeAmount: ").append(toIndentedString(dutyFreeAmount)).append("\n");
    sb.append("    taxRate: ").append(toIndentedString(taxRate)).append("\n");
    sb.append("    currencyCode: ").append(toIndentedString(currencyCode)).append("\n");
    sb.append("    percentage: ").append(toIndentedString(percentage)).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    ");
  }

}

