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

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

  public static final String SERIALIZED_NAME_UNIT_AMOUNT_WITHOUT_TAX = "unitAmountWithoutTax";
  @SerializedName(SERIALIZED_NAME_UNIT_AMOUNT_WITHOUT_TAX)
  private BigDecimal unitAmountWithoutTax;

  public static final String SERIALIZED_NAME_UNIT_AMOUNT_WITH_TAX = "unitAmountWithTax";
  @SerializedName(SERIALIZED_NAME_UNIT_AMOUNT_WITH_TAX)
  private BigDecimal unitAmountWithTax;

  public static final String SERIALIZED_NAME_UNIT_AMOUNT_TAX = "unitAmountTax";
  @SerializedName(SERIALIZED_NAME_UNIT_AMOUNT_TAX)
  private BigDecimal unitAmountTax;

  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_AMOUNT_TAX = "amountTax";
  @SerializedName(SERIALIZED_NAME_AMOUNT_TAX)
  private BigDecimal amountTax;

  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_UNITY_DESCRIPTION = "unityDescription";
  @SerializedName(SERIALIZED_NAME_UNITY_DESCRIPTION)
  private String unityDescription;

  public static final String SERIALIZED_NAME_PRICEPLAN_CODE = "priceplanCode";
  @SerializedName(SERIALIZED_NAME_PRICEPLAN_CODE)
  private String priceplanCode;

  public static final String SERIALIZED_NAME_DO_NOT_TRIGGER_INVOICING = "doNotTriggerInvoicing";
  @SerializedName(SERIALIZED_NAME_DO_NOT_TRIGGER_INVOICING)
  private Boolean doNotTriggerInvoicing;

  public static final String SERIALIZED_NAME_START_DATE = "startDate";
  @SerializedName(SERIALIZED_NAME_START_DATE)
  private OffsetDateTime startDate;

  public static final String SERIALIZED_NAME_END_DATE = "endDate";
  @SerializedName(SERIALIZED_NAME_END_DATE)
  private OffsetDateTime endDate;

  public static final String SERIALIZED_NAME_PARAMETER1 = "parameter1";
  @SerializedName(SERIALIZED_NAME_PARAMETER1)
  private String parameter1;

  public static final String SERIALIZED_NAME_PARAMETER2 = "parameter2";
  @SerializedName(SERIALIZED_NAME_PARAMETER2)
  private String parameter2;

  public static final String SERIALIZED_NAME_PARAMETER3 = "parameter3";
  @SerializedName(SERIALIZED_NAME_PARAMETER3)
  private String parameter3;

  public static final String SERIALIZED_NAME_USER_ACCOUNT_CODE = "userAccountCode";
  @SerializedName(SERIALIZED_NAME_USER_ACCOUNT_CODE)
  private String userAccountCode;

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

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

  public static final String SERIALIZED_NAME_INVOICE_SUB_CATEGORY_CODE = "invoiceSubCategoryCode";
  @SerializedName(SERIALIZED_NAME_INVOICE_SUB_CATEGORY_CODE)
  private String invoiceSubCategoryCode;

  public static final String SERIALIZED_NAME_SELLER_CODE = "sellerCode";
  @SerializedName(SERIALIZED_NAME_SELLER_CODE)
  private String sellerCode;

  public static final String SERIALIZED_NAME_BILLING_ACCOUNT_CODE = "billingAccountCode";
  @SerializedName(SERIALIZED_NAME_BILLING_ACCOUNT_CODE)
  private String billingAccountCode;


  public RatedTransactionDto usageDate(OffsetDateTime usageDate) {
    
    this.usageDate = usageDate;
    return this;
  }

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

  public OffsetDateTime getUsageDate() {
    return usageDate;
  }



  public void setUsageDate(OffsetDateTime usageDate) {
    this.usageDate = usageDate;
  }


  public RatedTransactionDto unitAmountWithoutTax(BigDecimal unitAmountWithoutTax) {
    
    this.unitAmountWithoutTax = unitAmountWithoutTax;
    return this;
  }

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

  public BigDecimal getUnitAmountWithoutTax() {
    return unitAmountWithoutTax;
  }



  public void setUnitAmountWithoutTax(BigDecimal unitAmountWithoutTax) {
    this.unitAmountWithoutTax = unitAmountWithoutTax;
  }


  public RatedTransactionDto unitAmountWithTax(BigDecimal unitAmountWithTax) {
    
    this.unitAmountWithTax = unitAmountWithTax;
    return this;
  }

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

  public BigDecimal getUnitAmountWithTax() {
    return unitAmountWithTax;
  }



  public void setUnitAmountWithTax(BigDecimal unitAmountWithTax) {
    this.unitAmountWithTax = unitAmountWithTax;
  }


  public RatedTransactionDto unitAmountTax(BigDecimal unitAmountTax) {
    
    this.unitAmountTax = unitAmountTax;
    return this;
  }

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

  public BigDecimal getUnitAmountTax() {
    return unitAmountTax;
  }



  public void setUnitAmountTax(BigDecimal unitAmountTax) {
    this.unitAmountTax = unitAmountTax;
  }


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

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

  public BigDecimal getAmountWithoutTax() {
    return amountWithoutTax;
  }



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


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

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

  public BigDecimal getAmountWithTax() {
    return amountWithTax;
  }



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


  public RatedTransactionDto amountTax(BigDecimal amountTax) {
    
    this.amountTax = amountTax;
    return this;
  }

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

  public BigDecimal getAmountTax() {
    return amountTax;
  }



  public void setAmountTax(BigDecimal amountTax) {
    this.amountTax = amountTax;
  }


  public RatedTransactionDto code(String code) {
    
    this.code = code;
    return this;
  }

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

  public String getCode() {
    return code;
  }



  public void setCode(String code) {
    this.code = code;
  }


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

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

  public String getUnityDescription() {
    return unityDescription;
  }



  public void setUnityDescription(String unityDescription) {
    this.unityDescription = unityDescription;
  }


  public RatedTransactionDto priceplanCode(String priceplanCode) {
    
    this.priceplanCode = priceplanCode;
    return this;
  }

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

  public String getPriceplanCode() {
    return priceplanCode;
  }



  public void setPriceplanCode(String priceplanCode) {
    this.priceplanCode = priceplanCode;
  }


  public RatedTransactionDto doNotTriggerInvoicing(Boolean doNotTriggerInvoicing) {
    
    this.doNotTriggerInvoicing = doNotTriggerInvoicing;
    return this;
  }

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

  public Boolean getDoNotTriggerInvoicing() {
    return doNotTriggerInvoicing;
  }



  public void setDoNotTriggerInvoicing(Boolean doNotTriggerInvoicing) {
    this.doNotTriggerInvoicing = doNotTriggerInvoicing;
  }


  public RatedTransactionDto startDate(OffsetDateTime startDate) {
    
    this.startDate = startDate;
    return this;
  }

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

  public OffsetDateTime getStartDate() {
    return startDate;
  }



  public void setStartDate(OffsetDateTime startDate) {
    this.startDate = startDate;
  }


  public RatedTransactionDto endDate(OffsetDateTime endDate) {
    
    this.endDate = endDate;
    return this;
  }

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

  public OffsetDateTime getEndDate() {
    return endDate;
  }



  public void setEndDate(OffsetDateTime endDate) {
    this.endDate = endDate;
  }


  public RatedTransactionDto parameter1(String parameter1) {
    
    this.parameter1 = parameter1;
    return this;
  }

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

  public String getParameter1() {
    return parameter1;
  }



  public void setParameter1(String parameter1) {
    this.parameter1 = parameter1;
  }


  public RatedTransactionDto parameter2(String parameter2) {
    
    this.parameter2 = parameter2;
    return this;
  }

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

  public String getParameter2() {
    return parameter2;
  }



  public void setParameter2(String parameter2) {
    this.parameter2 = parameter2;
  }


  public RatedTransactionDto parameter3(String parameter3) {
    
    this.parameter3 = parameter3;
    return this;
  }

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

  public String getParameter3() {
    return parameter3;
  }



  public void setParameter3(String parameter3) {
    this.parameter3 = parameter3;
  }


  public RatedTransactionDto userAccountCode(String userAccountCode) {
    
    this.userAccountCode = userAccountCode;
    return this;
  }

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

  public String getUserAccountCode() {
    return userAccountCode;
  }



  public void setUserAccountCode(String userAccountCode) {
    this.userAccountCode = userAccountCode;
  }


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

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

  public BigDecimal getTaxPercent() {
    return taxPercent;
  }



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


  public RatedTransactionDto invoiceSubCategoryCode(String invoiceSubCategoryCode) {
    
    this.invoiceSubCategoryCode = invoiceSubCategoryCode;
    return this;
  }

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

  public String getInvoiceSubCategoryCode() {
    return invoiceSubCategoryCode;
  }



  public void setInvoiceSubCategoryCode(String invoiceSubCategoryCode) {
    this.invoiceSubCategoryCode = invoiceSubCategoryCode;
  }


  public RatedTransactionDto sellerCode(String sellerCode) {
    
    this.sellerCode = sellerCode;
    return this;
  }

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

  public String getSellerCode() {
    return sellerCode;
  }



  public void setSellerCode(String sellerCode) {
    this.sellerCode = sellerCode;
  }


  public RatedTransactionDto billingAccountCode(String billingAccountCode) {
    
    this.billingAccountCode = billingAccountCode;
    return this;
  }

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

  public String getBillingAccountCode() {
    return billingAccountCode;
  }



  public void setBillingAccountCode(String billingAccountCode) {
    this.billingAccountCode = billingAccountCode;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    RatedTransactionDto ratedTransactionDto = (RatedTransactionDto) o;
    return Objects.equals(this.usageDate, ratedTransactionDto.usageDate) &&
        Objects.equals(this.unitAmountWithoutTax, ratedTransactionDto.unitAmountWithoutTax) &&
        Objects.equals(this.unitAmountWithTax, ratedTransactionDto.unitAmountWithTax) &&
        Objects.equals(this.unitAmountTax, ratedTransactionDto.unitAmountTax) &&
        Objects.equals(this.quantity, ratedTransactionDto.quantity) &&
        Objects.equals(this.amountWithoutTax, ratedTransactionDto.amountWithoutTax) &&
        Objects.equals(this.amountWithTax, ratedTransactionDto.amountWithTax) &&
        Objects.equals(this.amountTax, ratedTransactionDto.amountTax) &&
        Objects.equals(this.code, ratedTransactionDto.code) &&
        Objects.equals(this.description, ratedTransactionDto.description) &&
        Objects.equals(this.unityDescription, ratedTransactionDto.unityDescription) &&
        Objects.equals(this.priceplanCode, ratedTransactionDto.priceplanCode) &&
        Objects.equals(this.doNotTriggerInvoicing, ratedTransactionDto.doNotTriggerInvoicing) &&
        Objects.equals(this.startDate, ratedTransactionDto.startDate) &&
        Objects.equals(this.endDate, ratedTransactionDto.endDate) &&
        Objects.equals(this.parameter1, ratedTransactionDto.parameter1) &&
        Objects.equals(this.parameter2, ratedTransactionDto.parameter2) &&
        Objects.equals(this.parameter3, ratedTransactionDto.parameter3) &&
        Objects.equals(this.userAccountCode, ratedTransactionDto.userAccountCode) &&
        Objects.equals(this.taxCode, ratedTransactionDto.taxCode) &&
        Objects.equals(this.taxPercent, ratedTransactionDto.taxPercent) &&
        Objects.equals(this.invoiceSubCategoryCode, ratedTransactionDto.invoiceSubCategoryCode) &&
        Objects.equals(this.sellerCode, ratedTransactionDto.sellerCode) &&
        Objects.equals(this.billingAccountCode, ratedTransactionDto.billingAccountCode);
  }

  @Override
  public int hashCode() {
    return Objects.hash(usageDate, unitAmountWithoutTax, unitAmountWithTax, unitAmountTax, quantity, amountWithoutTax, amountWithTax, amountTax, code, description, unityDescription, priceplanCode, doNotTriggerInvoicing, startDate, endDate, parameter1, parameter2, parameter3, userAccountCode, taxCode, taxPercent, invoiceSubCategoryCode, sellerCode, billingAccountCode);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class RatedTransactionDto {\n");
    sb.append("    usageDate: ").append(toIndentedString(usageDate)).append("\n");
    sb.append("    unitAmountWithoutTax: ").append(toIndentedString(unitAmountWithoutTax)).append("\n");
    sb.append("    unitAmountWithTax: ").append(toIndentedString(unitAmountWithTax)).append("\n");
    sb.append("    unitAmountTax: ").append(toIndentedString(unitAmountTax)).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("    amountTax: ").append(toIndentedString(amountTax)).append("\n");
    sb.append("    code: ").append(toIndentedString(code)).append("\n");
    sb.append("    description: ").append(toIndentedString(description)).append("\n");
    sb.append("    unityDescription: ").append(toIndentedString(unityDescription)).append("\n");
    sb.append("    priceplanCode: ").append(toIndentedString(priceplanCode)).append("\n");
    sb.append("    doNotTriggerInvoicing: ").append(toIndentedString(doNotTriggerInvoicing)).append("\n");
    sb.append("    startDate: ").append(toIndentedString(startDate)).append("\n");
    sb.append("    endDate: ").append(toIndentedString(endDate)).append("\n");
    sb.append("    parameter1: ").append(toIndentedString(parameter1)).append("\n");
    sb.append("    parameter2: ").append(toIndentedString(parameter2)).append("\n");
    sb.append("    parameter3: ").append(toIndentedString(parameter3)).append("\n");
    sb.append("    userAccountCode: ").append(toIndentedString(userAccountCode)).append("\n");
    sb.append("    taxCode: ").append(toIndentedString(taxCode)).append("\n");
    sb.append("    taxPercent: ").append(toIndentedString(taxPercent)).append("\n");
    sb.append("    invoiceSubCategoryCode: ").append(toIndentedString(invoiceSubCategoryCode)).append("\n");
    sb.append("    sellerCode: ").append(toIndentedString(sellerCode)).append("\n");
    sb.append("    billingAccountCode: ").append(toIndentedString(billingAccountCode)).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    ");
  }

}

