org.openapitools.client.model.RefundAppliedToItemResponse 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.JSON.CustomFieldAdapter;
import org.openapitools.client.JSON.NullableFieldAdapter;
/**
* RefundAppliedToItemResponse
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class RefundAppliedToItemResponse {
public static final String SERIALIZED_NAME_CREDIT_MEMO_ITEM_ID = "credit_memo_item_id";
@SerializedName(SERIALIZED_NAME_CREDIT_MEMO_ITEM_ID)
private String creditMemoItemId;
public static final String SERIALIZED_NAME_ID = "id";
@SerializedName(SERIALIZED_NAME_ID)
private String id;
public static final String SERIALIZED_NAME_AMOUNT = "amount";
@SerializedName(SERIALIZED_NAME_AMOUNT)
private BigDecimal amount;
public static final String SERIALIZED_NAME_TAXATION_ITEM_ID = "taxation_item_id";
@SerializedName(SERIALIZED_NAME_TAXATION_ITEM_ID)
private String taxationItemId;
public RefundAppliedToItemResponse() {
}
public RefundAppliedToItemResponse creditMemoItemId(String creditMemoItemId) {
this.creditMemoItemId = creditMemoItemId;
return this;
}
/**
* Identifier of an invoice or a debit memo item.
* @return creditMemoItemId
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "Identifier of an invoice or a debit memo item.")
public String getCreditMemoItemId() {
return creditMemoItemId;
}
public void setCreditMemoItemId(String creditMemoItemId) {
this.creditMemoItemId = creditMemoItemId;
}
public RefundAppliedToItemResponse 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 RefundAppliedToItemResponse 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 RefundAppliedToItemResponse 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;
}
RefundAppliedToItemResponse refundAppliedToItemResponse = (RefundAppliedToItemResponse) o;
return Objects.equals(this.creditMemoItemId, refundAppliedToItemResponse.creditMemoItemId) &&
Objects.equals(this.id, refundAppliedToItemResponse.id) &&
Objects.equals(this.amount, refundAppliedToItemResponse.amount) &&
Objects.equals(this.taxationItemId, refundAppliedToItemResponse.taxationItemId);
}
@Override
public int hashCode() {
return Objects.hash(creditMemoItemId, id, amount, taxationItemId);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class RefundAppliedToItemResponse {\n");
sb.append(" creditMemoItemId: ").append(toIndentedString(creditMemoItemId)).append("\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" amount: ").append(toIndentedString(amount)).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