org.openapitools.client.model.RefundCreditMemoItemRequest 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;
/**
* RefundCreditMemoItemRequest
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class RefundCreditMemoItemRequest {
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_TAX_ITEM_ID = "tax_item_id";
@SerializedName(SERIALIZED_NAME_TAX_ITEM_ID)
private String taxItemId;
public RefundCreditMemoItemRequest() {
}
public RefundCreditMemoItemRequest id(String id) {
this.id = id;
return this;
}
/**
* Identifier of the credit memo item
* @return id
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "Identifier of the credit memo item")
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public RefundCreditMemoItemRequest amount(BigDecimal amount) {
this.amount = amount;
return this;
}
/**
* Refund amount.
* @return amount
**/
@javax.annotation.Nonnull
@ApiModelProperty(required = true, value = "Refund amount.")
public BigDecimal getAmount() {
return amount;
}
public void setAmount(BigDecimal amount) {
this.amount = amount;
}
public RefundCreditMemoItemRequest taxItemId(String taxItemId) {
this.taxItemId = taxItemId;
return this;
}
/**
* Identifier of the credit memo taxation item
* @return taxItemId
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "Identifier of the credit memo taxation item")
public String getTaxItemId() {
return taxItemId;
}
public void setTaxItemId(String taxItemId) {
this.taxItemId = taxItemId;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
RefundCreditMemoItemRequest refundCreditMemoItemRequest = (RefundCreditMemoItemRequest) o;
return Objects.equals(this.id, refundCreditMemoItemRequest.id) &&
Objects.equals(this.amount, refundCreditMemoItemRequest.amount) &&
Objects.equals(this.taxItemId, refundCreditMemoItemRequest.taxItemId);
}
@Override
public int hashCode() {
return Objects.hash(id, amount, taxItemId);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class RefundCreditMemoItemRequest {\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" amount: ").append(toIndentedString(amount)).append("\n");
sb.append(" taxItemId: ").append(toIndentedString(taxItemId)).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