org.openapitools.client.model.ApplyUnapplyCreditMemo 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.ArrayList;
import java.util.List;
import org.openapitools.client.model.CreditMemoApplicationRequest;
import org.threeten.bp.LocalDate;
import org.openapitools.client.JSON.CustomFieldAdapter;
import org.openapitools.client.JSON.NullableFieldAdapter;
/**
* ApplyUnapplyCreditMemo
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class ApplyUnapplyCreditMemo {
public static final String SERIALIZED_NAME_EFFECTIVE_DATE = "effective_date";
@SerializedName(SERIALIZED_NAME_EFFECTIVE_DATE)
private LocalDate effectiveDate;
public static final String SERIALIZED_NAME_BILLING_DOCUMENTS = "billing_documents";
@SerializedName(SERIALIZED_NAME_BILLING_DOCUMENTS)
private List billingDocuments = new ArrayList();
public ApplyUnapplyCreditMemo() {
}
public ApplyUnapplyCreditMemo effectiveDate(LocalDate effectiveDate) {
this.effectiveDate = effectiveDate;
return this;
}
/**
* The date when the credit memo is applied
* @return effectiveDate
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "Sun Jan 01 00:00:00 GMT 2023", value = "The date when the credit memo is applied")
public LocalDate getEffectiveDate() {
return effectiveDate;
}
public void setEffectiveDate(LocalDate effectiveDate) {
this.effectiveDate = effectiveDate;
}
public ApplyUnapplyCreditMemo billingDocuments(List billingDocuments) {
this.billingDocuments = billingDocuments;
return this;
}
public ApplyUnapplyCreditMemo addBillingDocumentsItem(CreditMemoApplicationRequest billingDocumentsItem) {
this.billingDocuments.add(billingDocumentsItem);
return this;
}
/**
* Array of billing documents to apply this credit memo to.
* @return billingDocuments
**/
@javax.annotation.Nonnull
@ApiModelProperty(required = true, value = "Array of billing documents to apply this credit memo to.")
public List getBillingDocuments() {
return billingDocuments;
}
public void setBillingDocuments(List billingDocuments) {
this.billingDocuments = billingDocuments;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
ApplyUnapplyCreditMemo applyUnapplyCreditMemo = (ApplyUnapplyCreditMemo) o;
return Objects.equals(this.effectiveDate, applyUnapplyCreditMemo.effectiveDate) &&
Objects.equals(this.billingDocuments, applyUnapplyCreditMemo.billingDocuments);
}
@Override
public int hashCode() {
return Objects.hash(effectiveDate, billingDocuments);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ApplyUnapplyCreditMemo {\n");
sb.append(" effectiveDate: ").append(toIndentedString(effectiveDate)).append("\n");
sb.append(" billingDocuments: ").append(toIndentedString(billingDocuments)).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