org.openapitools.client.model.InvoiceReverseRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of zuora-sdk-java Show documentation
Show all versions of zuora-sdk-java Show documentation
The SDK of JAVA language for Zuora pricing system
/*
* Quickstart API Reference
* Zuora Quickstart API is the API that helps you achieve fundamental use cases.
* It provides a much simplified object model and improved performance, enabling developers to easily learn and use.
*/
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 org.threeten.bp.LocalDate;
import org.openapitools.client.JSON.CustomFieldAdapter;
import org.openapitools.client.JSON.NullableFieldAdapter;
/**
* InvoiceReverseRequest
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class InvoiceReverseRequest {
public static final String SERIALIZED_NAME_DOCUMENT_DATE = "document_date";
@SerializedName(SERIALIZED_NAME_DOCUMENT_DATE)
private LocalDate documentDate;
public static final String SERIALIZED_NAME_APPLY_DATE = "apply_date";
@SerializedName(SERIALIZED_NAME_APPLY_DATE)
private LocalDate applyDate;
public InvoiceReverseRequest() {
}
public InvoiceReverseRequest documentDate(LocalDate documentDate) {
this.documentDate = documentDate;
return this;
}
/**
* The date that appears on the credit memo.
* @return documentDate
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "Sun Jan 01 00:00:00 GMT 2023", value = "The date that appears on the credit memo.")
public LocalDate getDocumentDate() {
return documentDate;
}
public void setDocumentDate(LocalDate documentDate) {
this.documentDate = documentDate;
}
public InvoiceReverseRequest applyDate(LocalDate applyDate) {
this.applyDate = applyDate;
return this;
}
/**
* Get applyDate
* @return applyDate
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "Sun Jan 01 00:00:00 GMT 2023", value = "")
public LocalDate getApplyDate() {
return applyDate;
}
public void setApplyDate(LocalDate applyDate) {
this.applyDate = applyDate;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
InvoiceReverseRequest invoiceReverseRequest = (InvoiceReverseRequest) o;
return Objects.equals(this.documentDate, invoiceReverseRequest.documentDate) &&
Objects.equals(this.applyDate, invoiceReverseRequest.applyDate);
}
@Override
public int hashCode() {
return Objects.hash(documentDate, applyDate);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class InvoiceReverseRequest {\n");
sb.append(" documentDate: ").append(toIndentedString(documentDate)).append("\n");
sb.append(" applyDate: ").append(toIndentedString(applyDate)).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