org.openapitools.client.model.PaymentAppliedToBillingItemResponse 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 org.openapitools.client.model.BillingDocumentItem;
import org.openapitools.jackson.nullable.JsonNullable;
import org.openapitools.client.JSON.CustomFieldAdapter;
import org.openapitools.client.JSON.NullableFieldAdapter;
/**
* PaymentAppliedToBillingItemResponse
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class PaymentAppliedToBillingItemResponse {
public static final String SERIALIZED_NAME_BILLING_DOCUMENT_ITEM_ID = "billing_document_item_id";
@SerializedName(SERIALIZED_NAME_BILLING_DOCUMENT_ITEM_ID)
private String billingDocumentItemId;
public static final String SERIALIZED_NAME_ID = "id";
@SerializedName(SERIALIZED_NAME_ID)
private String id;
public static final String SERIALIZED_NAME_BILLING_DOCUMENT_ITEM = "billing_document_item";
@SerializedName(SERIALIZED_NAME_BILLING_DOCUMENT_ITEM)
private BillingDocumentItem billingDocumentItem;
public static final String SERIALIZED_NAME_AMOUNT = "amount";
@SerializedName(SERIALIZED_NAME_AMOUNT)
private BigDecimal amount;
public static final String SERIALIZED_NAME_BILLING_DOCUMENT_ID = "billing_document_id";
@SerializedName(SERIALIZED_NAME_BILLING_DOCUMENT_ID)
private String billingDocumentId;
public static final String SERIALIZED_NAME_TAXATION_ITEM_ID = "taxation_item_id";
@SerializedName(SERIALIZED_NAME_TAXATION_ITEM_ID)
private String taxationItemId;
public PaymentAppliedToBillingItemResponse() {
}
public PaymentAppliedToBillingItemResponse billingDocumentItemId(String billingDocumentItemId) {
this.billingDocumentItemId = billingDocumentItemId;
return this;
}
/**
* Identifier of an invoice or a debit memo item.
* @return billingDocumentItemId
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "Identifier of an invoice or a debit memo item.")
public String getBillingDocumentItemId() {
return billingDocumentItemId;
}
public void setBillingDocumentItemId(String billingDocumentItemId) {
this.billingDocumentItemId = billingDocumentItemId;
}
public PaymentAppliedToBillingItemResponse id(String id) {
this.id = id;
return this;
}
/**
* Identifier of the payment application item.
* @return id
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "Identifier of the payment application item.")
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public PaymentAppliedToBillingItemResponse billingDocumentItem(BillingDocumentItem billingDocumentItem) {
this.billingDocumentItem = billingDocumentItem;
return this;
}
/**
* The related billing document item.
* @return billingDocumentItem
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "The related billing document item.")
public BillingDocumentItem getBillingDocumentItem() {
return billingDocumentItem;
}
public void setBillingDocumentItem(BillingDocumentItem billingDocumentItem) {
this.billingDocumentItem = billingDocumentItem;
}
public PaymentAppliedToBillingItemResponse amount(BigDecimal amount) {
this.amount = amount;
return this;
}
/**
* The amount of the payment that is applied to the specific billing document item.
* @return amount
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "The amount of the payment that is applied to the specific billing document item.")
public BigDecimal getAmount() {
return amount;
}
public void setAmount(BigDecimal amount) {
this.amount = amount;
}
public PaymentAppliedToBillingItemResponse billingDocumentId(String billingDocumentId) {
this.billingDocumentId = billingDocumentId;
return this;
}
/**
* Identifier of an invoice or a debit memo.
* @return billingDocumentId
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "Identifier of an invoice or a debit memo.")
public String getBillingDocumentId() {
return billingDocumentId;
}
public void setBillingDocumentId(String billingDocumentId) {
this.billingDocumentId = billingDocumentId;
}
public PaymentAppliedToBillingItemResponse taxationItemId(String taxationItemId) {
this.taxationItemId = taxationItemId;
return this;
}
/**
* Identifier of a taxation item.
* @return taxationItemId
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "Identifier of a taxation item.")
public String getTaxationItemId() {
return taxationItemId;
}
public void setTaxationItemId(String taxationItemId) {
this.taxationItemId = taxationItemId;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
PaymentAppliedToBillingItemResponse paymentAppliedToBillingItemResponse = (PaymentAppliedToBillingItemResponse) o;
return Objects.equals(this.billingDocumentItemId, paymentAppliedToBillingItemResponse.billingDocumentItemId) &&
Objects.equals(this.id, paymentAppliedToBillingItemResponse.id) &&
Objects.equals(this.billingDocumentItem, paymentAppliedToBillingItemResponse.billingDocumentItem) &&
Objects.equals(this.amount, paymentAppliedToBillingItemResponse.amount) &&
Objects.equals(this.billingDocumentId, paymentAppliedToBillingItemResponse.billingDocumentId) &&
Objects.equals(this.taxationItemId, paymentAppliedToBillingItemResponse.taxationItemId);
}
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(billingDocumentItemId, id, billingDocumentItem, amount, billingDocumentId, taxationItemId);
}
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 PaymentAppliedToBillingItemResponse {\n");
sb.append(" billingDocumentItemId: ").append(toIndentedString(billingDocumentItemId)).append("\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" billingDocumentItem: ").append(toIndentedString(billingDocumentItem)).append("\n");
sb.append(" amount: ").append(toIndentedString(amount)).append("\n");
sb.append(" billingDocumentId: ").append(toIndentedString(billingDocumentId)).append("\n");
sb.append(" taxationItemId: ").append(toIndentedString(taxationItemId)).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