jp.co.freee.accounting.models.DealReceiptMetadatum Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of freee-accounting-sdk Show documentation
Show all versions of freee-accounting-sdk Show documentation
freee accounting client SDK for Java
The 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;
import org.openapitools.jackson.nullable.JsonNullable;
/**
* DealReceiptMetadatum
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class DealReceiptMetadatum {
public static final String SERIALIZED_NAME_AMOUNT = "amount";
@SerializedName(SERIALIZED_NAME_AMOUNT)
private Long amount;
public static final String SERIALIZED_NAME_ISSUE_DATE = "issue_date";
@SerializedName(SERIALIZED_NAME_ISSUE_DATE)
private String issueDate;
public static final String SERIALIZED_NAME_PARTNER_NAME = "partner_name";
@SerializedName(SERIALIZED_NAME_PARTNER_NAME)
private String partnerName;
public DealReceiptMetadatum() {
}
public DealReceiptMetadatum amount(Long amount) {
this.amount = amount;
return this;
}
/**
* 金額
* minimum: -9223372036854775808
* maximum: 9223372036854775807
* @return amount
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "5250", value = "金額")
public Long getAmount() {
return amount;
}
public void setAmount(Long amount) {
this.amount = amount;
}
public DealReceiptMetadatum issueDate(String issueDate) {
this.issueDate = issueDate;
return this;
}
/**
* 発行日 (yyyy-mm-dd)
* @return issueDate
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "2019-12-17", value = "発行日 (yyyy-mm-dd)")
public String getIssueDate() {
return issueDate;
}
public void setIssueDate(String issueDate) {
this.issueDate = issueDate;
}
public DealReceiptMetadatum partnerName(String partnerName) {
this.partnerName = partnerName;
return this;
}
/**
* 発行元
* @return partnerName
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "freeeパートナー", value = "発行元")
public String getPartnerName() {
return partnerName;
}
public void setPartnerName(String partnerName) {
this.partnerName = partnerName;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
DealReceiptMetadatum dealReceiptMetadatum = (DealReceiptMetadatum) o;
return Objects.equals(this.amount, dealReceiptMetadatum.amount) &&
Objects.equals(this.issueDate, dealReceiptMetadatum.issueDate) &&
Objects.equals(this.partnerName, dealReceiptMetadatum.partnerName);
}
private static boolean equalsNullable(JsonNullable a, JsonNullable b) {
return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get()));
}
@Override
public int hashCode() {
return Objects.hash(amount, issueDate, partnerName);
}
private static int hashCodeNullable(JsonNullable a) {
if (a == null) {
return 1;
}
return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class DealReceiptMetadatum {\n");
sb.append(" amount: ").append(toIndentedString(amount)).append("\n");
sb.append(" issueDate: ").append(toIndentedString(issueDate)).append("\n");
sb.append(" partnerName: ").append(toIndentedString(partnerName)).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 - 2025 Weber Informatics LLC | Privacy Policy