
Model.Invoicingv2invoicesInvoiceInformation Maven / Gradle / Ivy
/*
* CyberSource Merged Spec
* All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html
*
* OpenAPI spec version: 0.0.1
*
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package 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 org.joda.time.LocalDate;
/**
* Contains all of the invoice-specific fields, such as the invoice number and due date.
*/
@ApiModel(description = "Contains all of the invoice-specific fields, such as the invoice number and due date.")
public class Invoicingv2invoicesInvoiceInformation {
@SerializedName("invoiceNumber")
private String invoiceNumber = null;
@SerializedName("description")
private String description = null;
@SerializedName("dueDate")
private LocalDate dueDate = null;
@SerializedName("expirationDate")
private LocalDate expirationDate = null;
@SerializedName("sendImmediately")
private Boolean sendImmediately = false;
@SerializedName("allowPartialPayments")
private Boolean allowPartialPayments = false;
@SerializedName("deliveryMode")
private String deliveryMode = null;
public Invoicingv2invoicesInvoiceInformation invoiceNumber(String invoiceNumber) {
this.invoiceNumber = invoiceNumber;
return this;
}
/**
* Invoice Number.
* @return invoiceNumber
**/
@ApiModelProperty(value = "Invoice Number.")
public String getInvoiceNumber() {
return invoiceNumber;
}
public void setInvoiceNumber(String invoiceNumber) {
this.invoiceNumber = invoiceNumber;
}
public Invoicingv2invoicesInvoiceInformation description(String description) {
this.description = description;
return this;
}
/**
* The description included in the invoice.
* @return description
**/
@ApiModelProperty(required = true, value = "The description included in the invoice.")
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public Invoicingv2invoicesInvoiceInformation dueDate(LocalDate dueDate) {
this.dueDate = dueDate;
return this;
}
/**
* The invoice due date. This field is required for creating an invoice. Format: `YYYY-MM-DD`, where `YYYY` = year, `MM` = month, and `DD` = day
* @return dueDate
**/
@ApiModelProperty(required = true, value = "The invoice due date. This field is required for creating an invoice. Format: `YYYY-MM-DD`, where `YYYY` = year, `MM` = month, and `DD` = day ")
public LocalDate getDueDate() {
return dueDate;
}
public void setDueDate(LocalDate dueDate) {
this.dueDate = dueDate;
}
public Invoicingv2invoicesInvoiceInformation expirationDate(LocalDate expirationDate) {
this.expirationDate = expirationDate;
return this;
}
/**
* Define an expiration date for the link. Format: `YYYY-MM-DD`, where `YYYY` = year, `MM` = month, and `DD` = day
* @return expirationDate
**/
@ApiModelProperty(value = "Define an expiration date for the link. Format: `YYYY-MM-DD`, where `YYYY` = year, `MM` = month, and `DD` = day ")
public LocalDate getExpirationDate() {
return expirationDate;
}
public void setExpirationDate(LocalDate expirationDate) {
this.expirationDate = expirationDate;
}
public Invoicingv2invoicesInvoiceInformation sendImmediately(Boolean sendImmediately) {
this.sendImmediately = sendImmediately;
return this;
}
/**
* If set to `true`, we send the invoice immediately. If set to `false`, the invoice remains in draft mode.
* @return sendImmediately
**/
@ApiModelProperty(value = "If set to `true`, we send the invoice immediately. If set to `false`, the invoice remains in draft mode.")
public Boolean SendImmediately() {
return sendImmediately;
}
public void setSendImmediately(Boolean sendImmediately) {
this.sendImmediately = sendImmediately;
}
public Invoicingv2invoicesInvoiceInformation allowPartialPayments(Boolean allowPartialPayments) {
this.allowPartialPayments = allowPartialPayments;
return this;
}
/**
* If set to `true`, the payer can make a partial invoice payment.
* @return allowPartialPayments
**/
@ApiModelProperty(value = "If set to `true`, the payer can make a partial invoice payment.")
public Boolean AllowPartialPayments() {
return allowPartialPayments;
}
public void setAllowPartialPayments(Boolean allowPartialPayments) {
this.allowPartialPayments = allowPartialPayments;
}
public Invoicingv2invoicesInvoiceInformation deliveryMode(String deliveryMode) {
this.deliveryMode = deliveryMode;
return this;
}
/**
* If this field is set to 'None', an invoice will be generated with the status 'CREATED', but no email will be dispatched. Possible values: - `None` - `Email`
* @return deliveryMode
**/
@ApiModelProperty(value = "If this field is set to 'None', an invoice will be generated with the status 'CREATED', but no email will be dispatched. Possible values: - `None` - `Email` ")
public String getDeliveryMode() {
return deliveryMode;
}
public void setDeliveryMode(String deliveryMode) {
this.deliveryMode = deliveryMode;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
Invoicingv2invoicesInvoiceInformation invoicingv2invoicesInvoiceInformation = (Invoicingv2invoicesInvoiceInformation) o;
return Objects.equals(this.invoiceNumber, invoicingv2invoicesInvoiceInformation.invoiceNumber) &&
Objects.equals(this.description, invoicingv2invoicesInvoiceInformation.description) &&
Objects.equals(this.dueDate, invoicingv2invoicesInvoiceInformation.dueDate) &&
Objects.equals(this.expirationDate, invoicingv2invoicesInvoiceInformation.expirationDate) &&
Objects.equals(this.sendImmediately, invoicingv2invoicesInvoiceInformation.sendImmediately) &&
Objects.equals(this.allowPartialPayments, invoicingv2invoicesInvoiceInformation.allowPartialPayments) &&
Objects.equals(this.deliveryMode, invoicingv2invoicesInvoiceInformation.deliveryMode);
}
@Override
public int hashCode() {
return Objects.hash(invoiceNumber, description, dueDate, expirationDate, sendImmediately, allowPartialPayments, deliveryMode);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class Invoicingv2invoicesInvoiceInformation {\n");
if (invoiceNumber != null) sb.append(" invoiceNumber: ").append(toIndentedString(invoiceNumber)).append("\n");
if (description != null) sb.append(" description: ").append(toIndentedString(description)).append("\n");
if (dueDate != null) sb.append(" dueDate: ").append(toIndentedString(dueDate)).append("\n");
if (expirationDate != null) sb.append(" expirationDate: ").append(toIndentedString(expirationDate)).append("\n");
if (sendImmediately != null) sb.append(" sendImmediately: ").append(toIndentedString(sendImmediately)).append("\n");
if (allowPartialPayments != null) sb.append(" allowPartialPayments: ").append(toIndentedString(allowPartialPayments)).append("\n");
if (deliveryMode != null) sb.append(" deliveryMode: ").append(toIndentedString(deliveryMode)).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(java.lang.Object o) {
if (o == null) {
// return "null";
}
return o.toString().replace("\n", "\n ");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy