org.openapitools.client.model.RefundPatchRequest 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.util.HashMap;
import java.util.List;
import java.util.Map;
import org.openapitools.client.JSON.CustomFieldAdapter;
import org.openapitools.client.JSON.NullableFieldAdapter;
/**
* RefundPatchRequest
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class RefundPatchRequest {
public static final String SERIALIZED_NAME_DESCRIPTION = "description";
@SerializedName(SERIALIZED_NAME_DESCRIPTION)
private String description;
public static final String SERIALIZED_NAME_REASON_CODE = "reason_code";
@SerializedName(SERIALIZED_NAME_REASON_CODE)
private String reasonCode;
public static final String SERIALIZED_NAME_BANK_ACCOUNT_ACCOUNT = "bank_account_account";
@SerializedName(SERIALIZED_NAME_BANK_ACCOUNT_ACCOUNT)
private String bankAccountAccount;
public static final String SERIALIZED_NAME_UNAPPLIED_PAYMENT_ACCOUNT = "unapplied_payment_account";
@SerializedName(SERIALIZED_NAME_UNAPPLIED_PAYMENT_ACCOUNT)
private String unappliedPaymentAccount;
public static final String SERIALIZED_NAME_REFERENCE_ID = "reference_id";
@SerializedName(SERIALIZED_NAME_REFERENCE_ID)
private String referenceId;
public static final String SERIALIZED_NAME_CUSTOM_FIELDS = "custom_fields";
@SerializedName(SERIALIZED_NAME_CUSTOM_FIELDS)
@JsonAdapter(CustomFieldAdapter.class)
private Map customFields = null;
public RefundPatchRequest() {
}
public RefundPatchRequest description(String description) {
this.description = description;
return this;
}
/**
* An arbitrary string attached to the object. Often useful for displaying to users.
* @return description
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "An arbitrary string attached to the object. Often useful for displaying to users.")
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public RefundPatchRequest reasonCode(String reasonCode) {
this.reasonCode = reasonCode;
return this;
}
/**
* User-provided reason for the refund.
* @return reasonCode
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "User-provided reason for the refund.")
public String getReasonCode() {
return reasonCode;
}
public void setReasonCode(String reasonCode) {
this.reasonCode = reasonCode;
}
public RefundPatchRequest bankAccountAccount(String bankAccountAccount) {
this.bankAccountAccount = bankAccountAccount;
return this;
}
/**
* An active account in your Zuora Chart of Accounts.
* @return bankAccountAccount
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "An active account in your Zuora Chart of Accounts.")
public String getBankAccountAccount() {
return bankAccountAccount;
}
public void setBankAccountAccount(String bankAccountAccount) {
this.bankAccountAccount = bankAccountAccount;
}
public RefundPatchRequest unappliedPaymentAccount(String unappliedPaymentAccount) {
this.unappliedPaymentAccount = unappliedPaymentAccount;
return this;
}
/**
* An active account in your Zuora Chart of Accounts.
* @return unappliedPaymentAccount
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "An active account in your Zuora Chart of Accounts.")
public String getUnappliedPaymentAccount() {
return unappliedPaymentAccount;
}
public void setUnappliedPaymentAccount(String unappliedPaymentAccount) {
this.unappliedPaymentAccount = unappliedPaymentAccount;
}
public RefundPatchRequest referenceId(String referenceId) {
this.referenceId = referenceId;
return this;
}
/**
* Transaction identifier returned by the payment gateway. You may use this field to reconcile payments between your payment gateway and Zuora Payments.
* @return referenceId
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "Transaction identifier returned by the payment gateway. You may use this field to reconcile payments between your payment gateway and Zuora Payments.")
public String getReferenceId() {
return referenceId;
}
public void setReferenceId(String referenceId) {
this.referenceId = referenceId;
}
public RefundPatchRequest customFields(Map customFields) {
this.customFields = customFields;
return this;
}
public RefundPatchRequest putCustomFieldsItem(String key, String customFieldsItem) {
if (this.customFields == null) {
this.customFields = new HashMap();
}
this.customFields.put(key, customFieldsItem);
return this;
}
/**
* Set of user-defined fields associated with this object. Useful for storing additional information about the object in a structured format.
* @return customFields
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "Set of user-defined fields associated with this object. Useful for storing additional information about the object in a structured format.")
public Map getCustomFields() {
return customFields;
}
public void setCustomFields(Map customFields) {
this.customFields = customFields;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
RefundPatchRequest refundPatchRequest = (RefundPatchRequest) o;
return Objects.equals(this.description, refundPatchRequest.description) &&
Objects.equals(this.reasonCode, refundPatchRequest.reasonCode) &&
Objects.equals(this.bankAccountAccount, refundPatchRequest.bankAccountAccount) &&
Objects.equals(this.unappliedPaymentAccount, refundPatchRequest.unappliedPaymentAccount) &&
Objects.equals(this.referenceId, refundPatchRequest.referenceId) &&
Objects.equals(this.customFields, refundPatchRequest.customFields);
}
@Override
public int hashCode() {
return Objects.hash(description, reasonCode, bankAccountAccount, unappliedPaymentAccount, referenceId, customFields);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class RefundPatchRequest {\n");
sb.append(" description: ").append(toIndentedString(description)).append("\n");
sb.append(" reasonCode: ").append(toIndentedString(reasonCode)).append("\n");
sb.append(" bankAccountAccount: ").append(toIndentedString(bankAccountAccount)).append("\n");
sb.append(" unappliedPaymentAccount: ").append(toIndentedString(unappliedPaymentAccount)).append("\n");
sb.append(" referenceId: ").append(toIndentedString(referenceId)).append("\n");
sb.append(" customFields: ").append(toIndentedString(customFields)).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