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

jp.co.freee.accounting.models.InvoiceIndexResponseTotalAmountPerVatRate Maven / Gradle / Ivy

There is a newer version: 2.29.0
Show newest version
/*
 * freee API
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: v1.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 jp.co.freee.accounting.models;

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;

/**
 * InvoiceIndexResponseTotalAmountPerVatRate
 */
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class InvoiceIndexResponseTotalAmountPerVatRate {
  public static final String SERIALIZED_NAME_REDUCED_VAT8 = "reduced_vat_8";
  @SerializedName(SERIALIZED_NAME_REDUCED_VAT8)
  private Long reducedVat8;

  public static final String SERIALIZED_NAME_VAT10 = "vat_10";
  @SerializedName(SERIALIZED_NAME_VAT10)
  private Long vat10;

  public static final String SERIALIZED_NAME_VAT5 = "vat_5";
  @SerializedName(SERIALIZED_NAME_VAT5)
  private Long vat5;

  public static final String SERIALIZED_NAME_VAT8 = "vat_8";
  @SerializedName(SERIALIZED_NAME_VAT8)
  private Long vat8;

  public InvoiceIndexResponseTotalAmountPerVatRate() { 
  }

  public InvoiceIndexResponseTotalAmountPerVatRate reducedVat8(Long reducedVat8) {
    
    this.reducedVat8 = reducedVat8;
    return this;
  }

   /**
   * 軽減税率8%の税込み金額合計
   * maximum: 9223372036854775807
   * @return reducedVat8
  **/
  @javax.annotation.Nonnull
  @ApiModelProperty(example = "0", required = true, value = "軽減税率8%の税込み金額合計")

  public Long getReducedVat8() {
    return reducedVat8;
  }


  public void setReducedVat8(Long reducedVat8) {
    this.reducedVat8 = reducedVat8;
  }


  public InvoiceIndexResponseTotalAmountPerVatRate vat10(Long vat10) {
    
    this.vat10 = vat10;
    return this;
  }

   /**
   * 税率10%の税込み金額合計
   * maximum: 9223372036854775807
   * @return vat10
  **/
  @javax.annotation.Nonnull
  @ApiModelProperty(example = "0", required = true, value = "税率10%の税込み金額合計")

  public Long getVat10() {
    return vat10;
  }


  public void setVat10(Long vat10) {
    this.vat10 = vat10;
  }


  public InvoiceIndexResponseTotalAmountPerVatRate vat5(Long vat5) {
    
    this.vat5 = vat5;
    return this;
  }

   /**
   * 税率5%の税込み金額合計
   * maximum: 9223372036854775807
   * @return vat5
  **/
  @javax.annotation.Nonnull
  @ApiModelProperty(example = "0", required = true, value = "税率5%の税込み金額合計")

  public Long getVat5() {
    return vat5;
  }


  public void setVat5(Long vat5) {
    this.vat5 = vat5;
  }


  public InvoiceIndexResponseTotalAmountPerVatRate vat8(Long vat8) {
    
    this.vat8 = vat8;
    return this;
  }

   /**
   * 税率8%の税込み金額合計
   * maximum: 9223372036854775807
   * @return vat8
  **/
  @javax.annotation.Nonnull
  @ApiModelProperty(example = "108000", required = true, value = "税率8%の税込み金額合計")

  public Long getVat8() {
    return vat8;
  }


  public void setVat8(Long vat8) {
    this.vat8 = vat8;
  }


  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    InvoiceIndexResponseTotalAmountPerVatRate invoiceIndexResponseTotalAmountPerVatRate = (InvoiceIndexResponseTotalAmountPerVatRate) o;
    return Objects.equals(this.reducedVat8, invoiceIndexResponseTotalAmountPerVatRate.reducedVat8) &&
        Objects.equals(this.vat10, invoiceIndexResponseTotalAmountPerVatRate.vat10) &&
        Objects.equals(this.vat5, invoiceIndexResponseTotalAmountPerVatRate.vat5) &&
        Objects.equals(this.vat8, invoiceIndexResponseTotalAmountPerVatRate.vat8);
  }

  @Override
  public int hashCode() {
    return Objects.hash(reducedVat8, vat10, vat5, vat8);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class InvoiceIndexResponseTotalAmountPerVatRate {\n");
    sb.append("    reducedVat8: ").append(toIndentedString(reducedVat8)).append("\n");
    sb.append("    vat10: ").append(toIndentedString(vat10)).append("\n");
    sb.append("    vat5: ").append(toIndentedString(vat5)).append("\n");
    sb.append("    vat8: ").append(toIndentedString(vat8)).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