org.openapitools.client.model.FulfillmentCreateBulkResponse 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 java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;
import org.openapitools.client.model.Fulfillment;
import org.openapitools.client.JSON.CustomFieldAdapter;
import org.openapitools.client.JSON.NullableFieldAdapter;
/**
* FulfillmentCreateBulkResponse
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class FulfillmentCreateBulkResponse {
public static final String SERIALIZED_NAME_DATA = "data";
@SerializedName(SERIALIZED_NAME_DATA)
private List data = null;
public static final String SERIALIZED_NAME_AMOUNT_PAID = "amount_paid";
@SerializedName(SERIALIZED_NAME_AMOUNT_PAID)
private BigDecimal amountPaid;
public static final String SERIALIZED_NAME_PAYMENT_NUMBER = "payment_number";
@SerializedName(SERIALIZED_NAME_PAYMENT_NUMBER)
private String paymentNumber;
public static final String SERIALIZED_NAME_CREDIT_MEMO_NUMBERS = "credit_memo_numbers";
@SerializedName(SERIALIZED_NAME_CREDIT_MEMO_NUMBERS)
private List creditMemoNumbers = null;
public static final String SERIALIZED_NAME_INVOICE_NUMBERS = "invoice_numbers";
@SerializedName(SERIALIZED_NAME_INVOICE_NUMBERS)
private List invoiceNumbers = null;
public FulfillmentCreateBulkResponse() {
}
public FulfillmentCreateBulkResponse data(List data) {
this.data = data;
return this;
}
public FulfillmentCreateBulkResponse addDataItem(Fulfillment dataItem) {
if (this.data == null) {
this.data = new ArrayList();
}
this.data.add(dataItem);
return this;
}
/**
* Get data
* @return data
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public List getData() {
return data;
}
public void setData(List data) {
this.data = data;
}
public FulfillmentCreateBulkResponse amountPaid(BigDecimal amountPaid) {
this.amountPaid = amountPaid;
return this;
}
/**
* The total amount collected by this request.
* @return amountPaid
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "The total amount collected by this request.")
public BigDecimal getAmountPaid() {
return amountPaid;
}
public void setAmountPaid(BigDecimal amountPaid) {
this.amountPaid = amountPaid;
}
public FulfillmentCreateBulkResponse paymentNumber(String paymentNumber) {
this.paymentNumber = paymentNumber;
return this;
}
/**
* Human-readable identifier of the payment associated with this fulfillment.
* @return paymentNumber
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "Human-readable identifier of the payment associated with this fulfillment.")
public String getPaymentNumber() {
return paymentNumber;
}
public void setPaymentNumber(String paymentNumber) {
this.paymentNumber = paymentNumber;
}
public FulfillmentCreateBulkResponse creditMemoNumbers(List creditMemoNumbers) {
this.creditMemoNumbers = creditMemoNumbers;
return this;
}
public FulfillmentCreateBulkResponse addCreditMemoNumbersItem(String creditMemoNumbersItem) {
if (this.creditMemoNumbers == null) {
this.creditMemoNumbers = new ArrayList();
}
this.creditMemoNumbers.add(creditMemoNumbersItem);
return this;
}
/**
* Human-readable identifiers of any credit memos associated with this request.
* @return creditMemoNumbers
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "Human-readable identifiers of any credit memos associated with this request.")
public List getCreditMemoNumbers() {
return creditMemoNumbers;
}
public void setCreditMemoNumbers(List creditMemoNumbers) {
this.creditMemoNumbers = creditMemoNumbers;
}
public FulfillmentCreateBulkResponse invoiceNumbers(List invoiceNumbers) {
this.invoiceNumbers = invoiceNumbers;
return this;
}
public FulfillmentCreateBulkResponse addInvoiceNumbersItem(String invoiceNumbersItem) {
if (this.invoiceNumbers == null) {
this.invoiceNumbers = new ArrayList();
}
this.invoiceNumbers.add(invoiceNumbersItem);
return this;
}
/**
* Human-readable identifiers of any invoices associated with this request.
* @return invoiceNumbers
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "Human-readable identifiers of any invoices associated with this request.")
public List getInvoiceNumbers() {
return invoiceNumbers;
}
public void setInvoiceNumbers(List invoiceNumbers) {
this.invoiceNumbers = invoiceNumbers;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
FulfillmentCreateBulkResponse fulfillmentCreateBulkResponse = (FulfillmentCreateBulkResponse) o;
return Objects.equals(this.data, fulfillmentCreateBulkResponse.data) &&
Objects.equals(this.amountPaid, fulfillmentCreateBulkResponse.amountPaid) &&
Objects.equals(this.paymentNumber, fulfillmentCreateBulkResponse.paymentNumber) &&
Objects.equals(this.creditMemoNumbers, fulfillmentCreateBulkResponse.creditMemoNumbers) &&
Objects.equals(this.invoiceNumbers, fulfillmentCreateBulkResponse.invoiceNumbers);
}
@Override
public int hashCode() {
return Objects.hash(data, amountPaid, paymentNumber, creditMemoNumbers, invoiceNumbers);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class FulfillmentCreateBulkResponse {\n");
sb.append(" data: ").append(toIndentedString(data)).append("\n");
sb.append(" amountPaid: ").append(toIndentedString(amountPaid)).append("\n");
sb.append(" paymentNumber: ").append(toIndentedString(paymentNumber)).append("\n");
sb.append(" creditMemoNumbers: ").append(toIndentedString(creditMemoNumbers)).append("\n");
sb.append(" invoiceNumbers: ").append(toIndentedString(invoiceNumbers)).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