org.openapitools.client.model.PaymentApplyUnapplyRequest 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.BillingDocumentPaymentApplicationRequest;
import org.threeten.bp.LocalDate;
import org.openapitools.client.JSON.CustomFieldAdapter;
import org.openapitools.client.JSON.NullableFieldAdapter;
/**
* PaymentApplyUnapplyRequest
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class PaymentApplyUnapplyRequest {
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 PaymentApplyUnapplyRequest() {
}
public PaymentApplyUnapplyRequest effectiveDate(LocalDate effectiveDate) {
this.effectiveDate = effectiveDate;
return this;
}
/**
* The date and time when the payment takes effect.
* @return effectiveDate
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "The date and time when the payment takes effect.")
public LocalDate getEffectiveDate() {
return effectiveDate;
}
public void setEffectiveDate(LocalDate effectiveDate) {
this.effectiveDate = effectiveDate;
}
public PaymentApplyUnapplyRequest billingDocuments(List billingDocuments) {
this.billingDocuments = billingDocuments;
return this;
}
public PaymentApplyUnapplyRequest addBillingDocumentsItem(BillingDocumentPaymentApplicationRequest billingDocumentsItem) {
this.billingDocuments.add(billingDocumentsItem);
return this;
}
/**
* Indicates to which billing documents (invoices or debit memos) are the payment applied.
* @return billingDocuments
**/
@javax.annotation.Nonnull
@ApiModelProperty(required = true, value = "Indicates to which billing documents (invoices or debit memos) are the payment applied.")
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;
}
PaymentApplyUnapplyRequest paymentApplyUnapplyRequest = (PaymentApplyUnapplyRequest) o;
return Objects.equals(this.effectiveDate, paymentApplyUnapplyRequest.effectiveDate) &&
Objects.equals(this.billingDocuments, paymentApplyUnapplyRequest.billingDocuments);
}
@Override
public int hashCode() {
return Objects.hash(effectiveDate, billingDocuments);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class PaymentApplyUnapplyRequest {\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