org.openapitools.client.model.BillingDocumentSettings 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.JSON.CustomFieldAdapter;
import org.openapitools.client.JSON.NullableFieldAdapter;
/**
* Billing document settings for an account
*/
@ApiModel(description = "Billing document settings for an account")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class BillingDocumentSettings {
public static final String SERIALIZED_NAME_CREDIT_MEMO_TEMPLATE_ID = "credit_memo_template_id";
@SerializedName(SERIALIZED_NAME_CREDIT_MEMO_TEMPLATE_ID)
private String creditMemoTemplateId;
public static final String SERIALIZED_NAME_DEBIT_MEMO_TEMPLATE_ID = "debit_memo_template_id";
@SerializedName(SERIALIZED_NAME_DEBIT_MEMO_TEMPLATE_ID)
private String debitMemoTemplateId;
public static final String SERIALIZED_NAME_EMAIL_DOCUMENTS = "email_documents";
@SerializedName(SERIALIZED_NAME_EMAIL_DOCUMENTS)
private Boolean emailDocuments;
public static final String SERIALIZED_NAME_PRINT_DOCUMENTS = "print_documents";
@SerializedName(SERIALIZED_NAME_PRINT_DOCUMENTS)
private Boolean printDocuments;
public static final String SERIALIZED_NAME_INVOICE_TEMPLATE_ID = "invoice_template_id";
@SerializedName(SERIALIZED_NAME_INVOICE_TEMPLATE_ID)
private String invoiceTemplateId;
public static final String SERIALIZED_NAME_ADDITIONAL_EMAIL = "additional_email";
@SerializedName(SERIALIZED_NAME_ADDITIONAL_EMAIL)
private List additionalEmail = null;
public BillingDocumentSettings() {
}
public BillingDocumentSettings creditMemoTemplateId(String creditMemoTemplateId) {
this.creditMemoTemplateId = creditMemoTemplateId;
return this;
}
/**
* Identifier of the credit memo template associated with this customer.
* @return creditMemoTemplateId
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "2c92c08b6a8c978f016a9e0084622b62", value = "Identifier of the credit memo template associated with this customer.")
public String getCreditMemoTemplateId() {
return creditMemoTemplateId;
}
public void setCreditMemoTemplateId(String creditMemoTemplateId) {
this.creditMemoTemplateId = creditMemoTemplateId;
}
public BillingDocumentSettings debitMemoTemplateId(String debitMemoTemplateId) {
this.debitMemoTemplateId = debitMemoTemplateId;
return this;
}
/**
* Identifier of the debit memo template associated with this customer.
* @return debitMemoTemplateId
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "2c92c08c6a8c7e08016a9ec8d72f3ab5", value = "Identifier of the debit memo template associated with this customer.")
public String getDebitMemoTemplateId() {
return debitMemoTemplateId;
}
public void setDebitMemoTemplateId(String debitMemoTemplateId) {
this.debitMemoTemplateId = debitMemoTemplateId;
}
public BillingDocumentSettings emailDocuments(Boolean emailDocuments) {
this.emailDocuments = emailDocuments;
return this;
}
/**
* Whether the customer wants to receive email invoices.
* @return emailDocuments
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "false", value = "Whether the customer wants to receive email invoices.")
public Boolean getEmailDocuments() {
return emailDocuments;
}
public void setEmailDocuments(Boolean emailDocuments) {
this.emailDocuments = emailDocuments;
}
public BillingDocumentSettings printDocuments(Boolean printDocuments) {
this.printDocuments = printDocuments;
return this;
}
/**
* Whether the customer wants to receive printed invoices.
* @return printDocuments
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "false", value = "Whether the customer wants to receive printed invoices.")
public Boolean getPrintDocuments() {
return printDocuments;
}
public void setPrintDocuments(Boolean printDocuments) {
this.printDocuments = printDocuments;
}
public BillingDocumentSettings invoiceTemplateId(String invoiceTemplateId) {
this.invoiceTemplateId = invoiceTemplateId;
return this;
}
/**
* Identifier of the invoice template associated with this customer.
* @return invoiceTemplateId
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "8f64d4d754739d85d0346e00ef77e50d", value = "Identifier of the invoice template associated with this customer.")
public String getInvoiceTemplateId() {
return invoiceTemplateId;
}
public void setInvoiceTemplateId(String invoiceTemplateId) {
this.invoiceTemplateId = invoiceTemplateId;
}
public BillingDocumentSettings additionalEmail(List additionalEmail) {
this.additionalEmail = additionalEmail;
return this;
}
public BillingDocumentSettings addAdditionalEmailItem(String additionalEmailItem) {
if (this.additionalEmail == null) {
this.additionalEmail = new ArrayList();
}
this.additionalEmail.add(additionalEmailItem);
return this;
}
/**
* A list of additional email addresses to receive email notifications.
* @return additionalEmail
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "[email protected]", value = "A list of additional email addresses to receive email notifications.")
public List getAdditionalEmail() {
return additionalEmail;
}
public void setAdditionalEmail(List additionalEmail) {
this.additionalEmail = additionalEmail;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
BillingDocumentSettings billingDocumentSettings = (BillingDocumentSettings) o;
return Objects.equals(this.creditMemoTemplateId, billingDocumentSettings.creditMemoTemplateId) &&
Objects.equals(this.debitMemoTemplateId, billingDocumentSettings.debitMemoTemplateId) &&
Objects.equals(this.emailDocuments, billingDocumentSettings.emailDocuments) &&
Objects.equals(this.printDocuments, billingDocumentSettings.printDocuments) &&
Objects.equals(this.invoiceTemplateId, billingDocumentSettings.invoiceTemplateId) &&
Objects.equals(this.additionalEmail, billingDocumentSettings.additionalEmail);
}
@Override
public int hashCode() {
return Objects.hash(creditMemoTemplateId, debitMemoTemplateId, emailDocuments, printDocuments, invoiceTemplateId, additionalEmail);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class BillingDocumentSettings {\n");
sb.append(" creditMemoTemplateId: ").append(toIndentedString(creditMemoTemplateId)).append("\n");
sb.append(" debitMemoTemplateId: ").append(toIndentedString(debitMemoTemplateId)).append("\n");
sb.append(" emailDocuments: ").append(toIndentedString(emailDocuments)).append("\n");
sb.append(" printDocuments: ").append(toIndentedString(printDocuments)).append("\n");
sb.append(" invoiceTemplateId: ").append(toIndentedString(invoiceTemplateId)).append("\n");
sb.append(" additionalEmail: ").append(toIndentedString(additionalEmail)).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