All Downloads are FREE. Search and download functionalities are using the official Maven repository.

Model.Invoicingv2invoicesidInvoiceInformation Maven / Gradle / Ivy

There is a newer version: 0.0.8
Show newest version
/*
 * 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 the updatable invoice information.
 */
@ApiModel(description = "Contains the updatable invoice information.")

public class Invoicingv2invoicesidInvoiceInformation {
  @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 Invoicingv2invoicesidInvoiceInformation 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 Invoicingv2invoicesidInvoiceInformation 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 Invoicingv2invoicesidInvoiceInformation 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 Invoicingv2invoicesidInvoiceInformation 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 Invoicingv2invoicesidInvoiceInformation 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 Invoicingv2invoicesidInvoiceInformation 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;
    }
    Invoicingv2invoicesidInvoiceInformation invoicingv2invoicesidInvoiceInformation = (Invoicingv2invoicesidInvoiceInformation) o;
    return Objects.equals(this.description, invoicingv2invoicesidInvoiceInformation.description) &&
        Objects.equals(this.dueDate, invoicingv2invoicesidInvoiceInformation.dueDate) &&
        Objects.equals(this.expirationDate, invoicingv2invoicesidInvoiceInformation.expirationDate) &&
        Objects.equals(this.sendImmediately, invoicingv2invoicesidInvoiceInformation.sendImmediately) &&
        Objects.equals(this.allowPartialPayments, invoicingv2invoicesidInvoiceInformation.allowPartialPayments) &&
        Objects.equals(this.deliveryMode, invoicingv2invoicesidInvoiceInformation.deliveryMode);
  }

  @Override
  public int hashCode() {
    return Objects.hash(description, dueDate, expirationDate, sendImmediately, allowPartialPayments, deliveryMode);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class Invoicingv2invoicesidInvoiceInformation {\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