/*
 * Swagger of Opencellsoft Api
 * @#Introduction
 *
 * The version of the OpenAPI document: 7.3.1-SNAPSHOT
 * Contact: contact@opencellsoft.fr
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */


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 org.openapitools.client.model.RecordedInvoiceDto;
import org.threeten.bp.OffsetDateTime;

/**
 * PaymentScheduleInstanceItemDto
 */
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-09-13T10:03:17.753Z[GMT]")
public class PaymentScheduleInstanceItemDto {
  public static final String SERIALIZED_NAME_ID = "id";
  @SerializedName(SERIALIZED_NAME_ID)
  private Long id;

  public static final String SERIALIZED_NAME_DUE_DATE = "dueDate";
  @SerializedName(SERIALIZED_NAME_DUE_DATE)
  private OffsetDateTime dueDate;

  public static final String SERIALIZED_NAME_REQUEST_PAYMENT_DATE = "requestPaymentDate";
  @SerializedName(SERIALIZED_NAME_REQUEST_PAYMENT_DATE)
  private OffsetDateTime requestPaymentDate;

  public static final String SERIALIZED_NAME_RECORDED_INVOICE = "recordedInvoice";
  @SerializedName(SERIALIZED_NAME_RECORDED_INVOICE)
  private RecordedInvoiceDto recordedInvoice;

  public static final String SERIALIZED_NAME_LAST = "last";
  @SerializedName(SERIALIZED_NAME_LAST)
  private Boolean last;

  public static final String SERIALIZED_NAME_PAID = "paid";
  @SerializedName(SERIALIZED_NAME_PAID)
  private Boolean paid;


  public PaymentScheduleInstanceItemDto id(Long id) {
    
    this.id = id;
    return this;
  }

   /**
   * Get id
   * @return id
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "")

  public Long getId() {
    return id;
  }



  public void setId(Long id) {
    this.id = id;
  }


  public PaymentScheduleInstanceItemDto dueDate(OffsetDateTime dueDate) {
    
    this.dueDate = dueDate;
    return this;
  }

   /**
   * Get dueDate
   * @return dueDate
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "")

  public OffsetDateTime getDueDate() {
    return dueDate;
  }



  public void setDueDate(OffsetDateTime dueDate) {
    this.dueDate = dueDate;
  }


  public PaymentScheduleInstanceItemDto requestPaymentDate(OffsetDateTime requestPaymentDate) {
    
    this.requestPaymentDate = requestPaymentDate;
    return this;
  }

   /**
   * Get requestPaymentDate
   * @return requestPaymentDate
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "")

  public OffsetDateTime getRequestPaymentDate() {
    return requestPaymentDate;
  }



  public void setRequestPaymentDate(OffsetDateTime requestPaymentDate) {
    this.requestPaymentDate = requestPaymentDate;
  }


  public PaymentScheduleInstanceItemDto recordedInvoice(RecordedInvoiceDto recordedInvoice) {
    
    this.recordedInvoice = recordedInvoice;
    return this;
  }

   /**
   * Get recordedInvoice
   * @return recordedInvoice
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "")

  public RecordedInvoiceDto getRecordedInvoice() {
    return recordedInvoice;
  }



  public void setRecordedInvoice(RecordedInvoiceDto recordedInvoice) {
    this.recordedInvoice = recordedInvoice;
  }


  public PaymentScheduleInstanceItemDto last(Boolean last) {
    
    this.last = last;
    return this;
  }

   /**
   * Get last
   * @return last
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "")

  public Boolean getLast() {
    return last;
  }



  public void setLast(Boolean last) {
    this.last = last;
  }


  public PaymentScheduleInstanceItemDto paid(Boolean paid) {
    
    this.paid = paid;
    return this;
  }

   /**
   * Get paid
   * @return paid
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "")

  public Boolean getPaid() {
    return paid;
  }



  public void setPaid(Boolean paid) {
    this.paid = paid;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    PaymentScheduleInstanceItemDto paymentScheduleInstanceItemDto = (PaymentScheduleInstanceItemDto) o;
    return Objects.equals(this.id, paymentScheduleInstanceItemDto.id) &&
        Objects.equals(this.dueDate, paymentScheduleInstanceItemDto.dueDate) &&
        Objects.equals(this.requestPaymentDate, paymentScheduleInstanceItemDto.requestPaymentDate) &&
        Objects.equals(this.recordedInvoice, paymentScheduleInstanceItemDto.recordedInvoice) &&
        Objects.equals(this.last, paymentScheduleInstanceItemDto.last) &&
        Objects.equals(this.paid, paymentScheduleInstanceItemDto.paid);
  }

  @Override
  public int hashCode() {
    return Objects.hash(id, dueDate, requestPaymentDate, recordedInvoice, last, paid);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class PaymentScheduleInstanceItemDto {\n");
    sb.append("    id: ").append(toIndentedString(id)).append("\n");
    sb.append("    dueDate: ").append(toIndentedString(dueDate)).append("\n");
    sb.append("    requestPaymentDate: ").append(toIndentedString(requestPaymentDate)).append("\n");
    sb.append("    recordedInvoice: ").append(toIndentedString(recordedInvoice)).append("\n");
    sb.append("    last: ").append(toIndentedString(last)).append("\n");
    sb.append("    paid: ").append(toIndentedString(paid)).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    ");
  }

}

