All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.precisely.apis.model.UseTax Maven / Gradle / Ivy

Go to download

Java SDK for accessing Precisely APIs which transform your business with new insights. Enrich and enhance your data, applications, business processes, and workflows with hundreds of Location and Identity datasets and APIs.

The newest version!
/*
 * Precisely APIs
 * Enhance & enrich your data, applications, business processes, and workflows with rich location, information, and identify APIs.
 *
 * The version of the OpenAPI document: 18.0.0
 * 
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */


package com.precisely.apis.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 com.precisely.apis.model.SpecialPurposeDistrictTax;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;

/**
 * UseTax
 */
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-02-13T16:39:48.889177+05:30[Asia/Calcutta]")
public class UseTax {
  public static final String SERIALIZED_NAME_SPECIAL_TAX_RULES_APPLIED = "specialTaxRulesApplied";
  @SerializedName(SERIALIZED_NAME_SPECIAL_TAX_RULES_APPLIED)
  private Boolean specialTaxRulesApplied;

  public static final String SERIALIZED_NAME_SPECIAL_TAX_RULES_DESCRIPTOR = "specialTaxRulesDescriptor";
  @SerializedName(SERIALIZED_NAME_SPECIAL_TAX_RULES_DESCRIPTOR)
  private String specialTaxRulesDescriptor;

  public static final String SERIALIZED_NAME_TOTAL_TAX_RATE = "totalTaxRate";
  @SerializedName(SERIALIZED_NAME_TOTAL_TAX_RATE)
  private Double totalTaxRate;

  public static final String SERIALIZED_NAME_TOTAL_TAX_AMOUNT = "totalTaxAmount";
  @SerializedName(SERIALIZED_NAME_TOTAL_TAX_AMOUNT)
  private Double totalTaxAmount;

  public static final String SERIALIZED_NAME_STATE_TAX_RATE = "stateTaxRate";
  @SerializedName(SERIALIZED_NAME_STATE_TAX_RATE)
  private Double stateTaxRate;

  public static final String SERIALIZED_NAME_STATE_TAX_AMOUNT = "stateTaxAmount";
  @SerializedName(SERIALIZED_NAME_STATE_TAX_AMOUNT)
  private Double stateTaxAmount;

  public static final String SERIALIZED_NAME_COUNTY_TAX_RATE = "countyTaxRate";
  @SerializedName(SERIALIZED_NAME_COUNTY_TAX_RATE)
  private Double countyTaxRate;

  public static final String SERIALIZED_NAME_COUNTY_TAX_AMOUNT = "countyTaxAmount";
  @SerializedName(SERIALIZED_NAME_COUNTY_TAX_AMOUNT)
  private Double countyTaxAmount;

  public static final String SERIALIZED_NAME_MUNICIPAL_TAX_RATE = "municipalTaxRate";
  @SerializedName(SERIALIZED_NAME_MUNICIPAL_TAX_RATE)
  private Double municipalTaxRate;

  public static final String SERIALIZED_NAME_MUNICIPAL_TAX_AMOUNT = "municipalTaxAmount";
  @SerializedName(SERIALIZED_NAME_MUNICIPAL_TAX_AMOUNT)
  private Double municipalTaxAmount;

  public static final String SERIALIZED_NAME_SPDS_TAX = "spdsTax";
  @SerializedName(SERIALIZED_NAME_SPDS_TAX)
  private List spdsTax = null;

  public UseTax() { 
  }

  public UseTax specialTaxRulesApplied(Boolean specialTaxRulesApplied) {
    
    this.specialTaxRulesApplied = specialTaxRulesApplied;
    return this;
  }

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

  public Boolean getSpecialTaxRulesApplied() {
    return specialTaxRulesApplied;
  }


  public void setSpecialTaxRulesApplied(Boolean specialTaxRulesApplied) {
    this.specialTaxRulesApplied = specialTaxRulesApplied;
  }


  public UseTax specialTaxRulesDescriptor(String specialTaxRulesDescriptor) {
    
    this.specialTaxRulesDescriptor = specialTaxRulesDescriptor;
    return this;
  }

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

  public String getSpecialTaxRulesDescriptor() {
    return specialTaxRulesDescriptor;
  }


  public void setSpecialTaxRulesDescriptor(String specialTaxRulesDescriptor) {
    this.specialTaxRulesDescriptor = specialTaxRulesDescriptor;
  }


  public UseTax totalTaxRate(Double totalTaxRate) {
    
    this.totalTaxRate = totalTaxRate;
    return this;
  }

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

  public Double getTotalTaxRate() {
    return totalTaxRate;
  }


  public void setTotalTaxRate(Double totalTaxRate) {
    this.totalTaxRate = totalTaxRate;
  }


  public UseTax totalTaxAmount(Double totalTaxAmount) {
    
    this.totalTaxAmount = totalTaxAmount;
    return this;
  }

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

  public Double getTotalTaxAmount() {
    return totalTaxAmount;
  }


  public void setTotalTaxAmount(Double totalTaxAmount) {
    this.totalTaxAmount = totalTaxAmount;
  }


  public UseTax stateTaxRate(Double stateTaxRate) {
    
    this.stateTaxRate = stateTaxRate;
    return this;
  }

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

  public Double getStateTaxRate() {
    return stateTaxRate;
  }


  public void setStateTaxRate(Double stateTaxRate) {
    this.stateTaxRate = stateTaxRate;
  }


  public UseTax stateTaxAmount(Double stateTaxAmount) {
    
    this.stateTaxAmount = stateTaxAmount;
    return this;
  }

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

  public Double getStateTaxAmount() {
    return stateTaxAmount;
  }


  public void setStateTaxAmount(Double stateTaxAmount) {
    this.stateTaxAmount = stateTaxAmount;
  }


  public UseTax countyTaxRate(Double countyTaxRate) {
    
    this.countyTaxRate = countyTaxRate;
    return this;
  }

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

  public Double getCountyTaxRate() {
    return countyTaxRate;
  }


  public void setCountyTaxRate(Double countyTaxRate) {
    this.countyTaxRate = countyTaxRate;
  }


  public UseTax countyTaxAmount(Double countyTaxAmount) {
    
    this.countyTaxAmount = countyTaxAmount;
    return this;
  }

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

  public Double getCountyTaxAmount() {
    return countyTaxAmount;
  }


  public void setCountyTaxAmount(Double countyTaxAmount) {
    this.countyTaxAmount = countyTaxAmount;
  }


  public UseTax municipalTaxRate(Double municipalTaxRate) {
    
    this.municipalTaxRate = municipalTaxRate;
    return this;
  }

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

  public Double getMunicipalTaxRate() {
    return municipalTaxRate;
  }


  public void setMunicipalTaxRate(Double municipalTaxRate) {
    this.municipalTaxRate = municipalTaxRate;
  }


  public UseTax municipalTaxAmount(Double municipalTaxAmount) {
    
    this.municipalTaxAmount = municipalTaxAmount;
    return this;
  }

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

  public Double getMunicipalTaxAmount() {
    return municipalTaxAmount;
  }


  public void setMunicipalTaxAmount(Double municipalTaxAmount) {
    this.municipalTaxAmount = municipalTaxAmount;
  }


  public UseTax spdsTax(List spdsTax) {
    
    this.spdsTax = spdsTax;
    return this;
  }

  public UseTax addSpdsTaxItem(SpecialPurposeDistrictTax spdsTaxItem) {
    if (this.spdsTax == null) {
      this.spdsTax = new ArrayList();
    }
    this.spdsTax.add(spdsTaxItem);
    return this;
  }

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

  public List getSpdsTax() {
    return spdsTax;
  }


  public void setSpdsTax(List spdsTax) {
    this.spdsTax = spdsTax;
  }


  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    UseTax useTax = (UseTax) o;
    return Objects.equals(this.specialTaxRulesApplied, useTax.specialTaxRulesApplied) &&
        Objects.equals(this.specialTaxRulesDescriptor, useTax.specialTaxRulesDescriptor) &&
        Objects.equals(this.totalTaxRate, useTax.totalTaxRate) &&
        Objects.equals(this.totalTaxAmount, useTax.totalTaxAmount) &&
        Objects.equals(this.stateTaxRate, useTax.stateTaxRate) &&
        Objects.equals(this.stateTaxAmount, useTax.stateTaxAmount) &&
        Objects.equals(this.countyTaxRate, useTax.countyTaxRate) &&
        Objects.equals(this.countyTaxAmount, useTax.countyTaxAmount) &&
        Objects.equals(this.municipalTaxRate, useTax.municipalTaxRate) &&
        Objects.equals(this.municipalTaxAmount, useTax.municipalTaxAmount) &&
        Objects.equals(this.spdsTax, useTax.spdsTax);
  }

  @Override
  public int hashCode() {
    return Objects.hash(specialTaxRulesApplied, specialTaxRulesDescriptor, totalTaxRate, totalTaxAmount, stateTaxRate, stateTaxAmount, countyTaxRate, countyTaxAmount, municipalTaxRate, municipalTaxAmount, spdsTax);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class UseTax {\n");
    sb.append("    specialTaxRulesApplied: ").append(toIndentedString(specialTaxRulesApplied)).append("\n");
    sb.append("    specialTaxRulesDescriptor: ").append(toIndentedString(specialTaxRulesDescriptor)).append("\n");
    sb.append("    totalTaxRate: ").append(toIndentedString(totalTaxRate)).append("\n");
    sb.append("    totalTaxAmount: ").append(toIndentedString(totalTaxAmount)).append("\n");
    sb.append("    stateTaxRate: ").append(toIndentedString(stateTaxRate)).append("\n");
    sb.append("    stateTaxAmount: ").append(toIndentedString(stateTaxAmount)).append("\n");
    sb.append("    countyTaxRate: ").append(toIndentedString(countyTaxRate)).append("\n");
    sb.append("    countyTaxAmount: ").append(toIndentedString(countyTaxAmount)).append("\n");
    sb.append("    municipalTaxRate: ").append(toIndentedString(municipalTaxRate)).append("\n");
    sb.append("    municipalTaxAmount: ").append(toIndentedString(municipalTaxAmount)).append("\n");
    sb.append("    spdsTax: ").append(toIndentedString(spdsTax)).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(Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }

}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy