org.openapitools.client.model.GenerateBillingDocumentsAccountResponse 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.openapitools.client.model.CreditMemoListResponse;
import org.openapitools.client.model.InvoiceListResponse;
import org.openapitools.jackson.nullable.JsonNullable;
import org.openapitools.client.JSON.CustomFieldAdapter;
import org.openapitools.client.JSON.NullableFieldAdapter;
/**
* GenerateBillingDocumentsAccountResponse
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class GenerateBillingDocumentsAccountResponse {
public static final String SERIALIZED_NAME_CREDIT_MEMOS = "credit_memos";
@SerializedName(SERIALIZED_NAME_CREDIT_MEMOS)
private CreditMemoListResponse creditMemos;
public static final String SERIALIZED_NAME_INVOICES = "invoices";
@SerializedName(SERIALIZED_NAME_INVOICES)
private InvoiceListResponse invoices;
public GenerateBillingDocumentsAccountResponse() {
}
public GenerateBillingDocumentsAccountResponse creditMemos(CreditMemoListResponse creditMemos) {
this.creditMemos = creditMemos;
return this;
}
/**
* Array of credit memos.
* @return creditMemos
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "Array of credit memos.")
public CreditMemoListResponse getCreditMemos() {
return creditMemos;
}
public void setCreditMemos(CreditMemoListResponse creditMemos) {
this.creditMemos = creditMemos;
}
public GenerateBillingDocumentsAccountResponse invoices(InvoiceListResponse invoices) {
this.invoices = invoices;
return this;
}
/**
* Array of invoices.
* @return invoices
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "Array of invoices.")
public InvoiceListResponse getInvoices() {
return invoices;
}
public void setInvoices(InvoiceListResponse invoices) {
this.invoices = invoices;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
GenerateBillingDocumentsAccountResponse generateBillingDocumentsAccountResponse = (GenerateBillingDocumentsAccountResponse) o;
return Objects.equals(this.creditMemos, generateBillingDocumentsAccountResponse.creditMemos) &&
Objects.equals(this.invoices, generateBillingDocumentsAccountResponse.invoices);
}
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(creditMemos, invoices);
}
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 GenerateBillingDocumentsAccountResponse {\n");
sb.append(" creditMemos: ").append(toIndentedString(creditMemos)).append("\n");
sb.append(" invoices: ").append(toIndentedString(invoices)).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