/*
 * 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 java.math.BigDecimal;
import org.openapitools.client.model.CustomFieldsDto;
import org.threeten.bp.OffsetDateTime;

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

  public static final String SERIALIZED_NAME_CODE = "code";
  @SerializedName(SERIALIZED_NAME_CODE)
  private String code;

  public static final String SERIALIZED_NAME_DESCRIPTION = "description";
  @SerializedName(SERIALIZED_NAME_DESCRIPTION)
  private String description;

  public static final String SERIALIZED_NAME_UPDATED_CODE = "updatedCode";
  @SerializedName(SERIALIZED_NAME_UPDATED_CODE)
  private String updatedCode;

  public static final String SERIALIZED_NAME_START_DATE = "startDate";
  @SerializedName(SERIALIZED_NAME_START_DATE)
  private OffsetDateTime startDate;

  public static final String SERIALIZED_NAME_AMOUNT = "amount";
  @SerializedName(SERIALIZED_NAME_AMOUNT)
  private BigDecimal amount;

  public static final String SERIALIZED_NAME_CALENDAR_CODE = "calendarCode";
  @SerializedName(SERIALIZED_NAME_CALENDAR_CODE)
  private String calendarCode;

  public static final String SERIALIZED_NAME_PAYMENT_LABEL = "paymentLabel";
  @SerializedName(SERIALIZED_NAME_PAYMENT_LABEL)
  private String paymentLabel;

  public static final String SERIALIZED_NAME_PAYMENT_DAY_IN_MONTH = "paymentDayInMonth";
  @SerializedName(SERIALIZED_NAME_PAYMENT_DAY_IN_MONTH)
  private Integer paymentDayInMonth;

  public static final String SERIALIZED_NAME_SERVICE_TEMPLATE_CODE = "serviceTemplateCode";
  @SerializedName(SERIALIZED_NAME_SERVICE_TEMPLATE_CODE)
  private String serviceTemplateCode;

  public static final String SERIALIZED_NAME_ADVANCE_PAYMENT_INVOICE_TYPE_CODE = "advancePaymentInvoiceTypeCode";
  @SerializedName(SERIALIZED_NAME_ADVANCE_PAYMENT_INVOICE_TYPE_CODE)
  private String advancePaymentInvoiceTypeCode;

  public static final String SERIALIZED_NAME_GENERATE_ADVANCE_PAYMENT_INVOICE = "generateAdvancePaymentInvoice";
  @SerializedName(SERIALIZED_NAME_GENERATE_ADVANCE_PAYMENT_INVOICE)
  private Boolean generateAdvancePaymentInvoice;

  public static final String SERIALIZED_NAME_DO_PAYMENT = "doPayment";
  @SerializedName(SERIALIZED_NAME_DO_PAYMENT)
  private Boolean doPayment;

  public static final String SERIALIZED_NAME_ADVANCE_PAYMENT_INVOICE_SUB_CATEGORY_CODE = "advancePaymentInvoiceSubCategoryCode";
  @SerializedName(SERIALIZED_NAME_ADVANCE_PAYMENT_INVOICE_SUB_CATEGORY_CODE)
  private String advancePaymentInvoiceSubCategoryCode;

  public static final String SERIALIZED_NAME_APPLY_AGREEMENT = "applyAgreement";
  @SerializedName(SERIALIZED_NAME_APPLY_AGREEMENT)
  private Boolean applyAgreement;

  public static final String SERIALIZED_NAME_AMOUNT_EL = "amountEl";
  @SerializedName(SERIALIZED_NAME_AMOUNT_EL)
  private String amountEl;

  public static final String SERIALIZED_NAME_FILTER_EL = "filterEl";
  @SerializedName(SERIALIZED_NAME_FILTER_EL)
  private String filterEl;

  public static final String SERIALIZED_NAME_CUSTOM_FIELDS = "customFields";
  @SerializedName(SERIALIZED_NAME_CUSTOM_FIELDS)
  private CustomFieldsDto customFields;


  public PaymentScheduleTemplateDto 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 PaymentScheduleTemplateDto code(String code) {
    
    this.code = code;
    return this;
  }

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

  public String getCode() {
    return code;
  }



  public void setCode(String code) {
    this.code = code;
  }


  public PaymentScheduleTemplateDto description(String description) {
    
    this.description = description;
    return this;
  }

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

  public String getDescription() {
    return description;
  }



  public void setDescription(String description) {
    this.description = description;
  }


  public PaymentScheduleTemplateDto updatedCode(String updatedCode) {
    
    this.updatedCode = updatedCode;
    return this;
  }

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

  public String getUpdatedCode() {
    return updatedCode;
  }



  public void setUpdatedCode(String updatedCode) {
    this.updatedCode = updatedCode;
  }


  public PaymentScheduleTemplateDto startDate(OffsetDateTime startDate) {
    
    this.startDate = startDate;
    return this;
  }

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

  public OffsetDateTime getStartDate() {
    return startDate;
  }



  public void setStartDate(OffsetDateTime startDate) {
    this.startDate = startDate;
  }


  public PaymentScheduleTemplateDto amount(BigDecimal amount) {
    
    this.amount = amount;
    return this;
  }

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

  public BigDecimal getAmount() {
    return amount;
  }



  public void setAmount(BigDecimal amount) {
    this.amount = amount;
  }


  public PaymentScheduleTemplateDto calendarCode(String calendarCode) {
    
    this.calendarCode = calendarCode;
    return this;
  }

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

  public String getCalendarCode() {
    return calendarCode;
  }



  public void setCalendarCode(String calendarCode) {
    this.calendarCode = calendarCode;
  }


  public PaymentScheduleTemplateDto paymentLabel(String paymentLabel) {
    
    this.paymentLabel = paymentLabel;
    return this;
  }

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

  public String getPaymentLabel() {
    return paymentLabel;
  }



  public void setPaymentLabel(String paymentLabel) {
    this.paymentLabel = paymentLabel;
  }


  public PaymentScheduleTemplateDto paymentDayInMonth(Integer paymentDayInMonth) {
    
    this.paymentDayInMonth = paymentDayInMonth;
    return this;
  }

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

  public Integer getPaymentDayInMonth() {
    return paymentDayInMonth;
  }



  public void setPaymentDayInMonth(Integer paymentDayInMonth) {
    this.paymentDayInMonth = paymentDayInMonth;
  }


  public PaymentScheduleTemplateDto serviceTemplateCode(String serviceTemplateCode) {
    
    this.serviceTemplateCode = serviceTemplateCode;
    return this;
  }

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

  public String getServiceTemplateCode() {
    return serviceTemplateCode;
  }



  public void setServiceTemplateCode(String serviceTemplateCode) {
    this.serviceTemplateCode = serviceTemplateCode;
  }


  public PaymentScheduleTemplateDto advancePaymentInvoiceTypeCode(String advancePaymentInvoiceTypeCode) {
    
    this.advancePaymentInvoiceTypeCode = advancePaymentInvoiceTypeCode;
    return this;
  }

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

  public String getAdvancePaymentInvoiceTypeCode() {
    return advancePaymentInvoiceTypeCode;
  }



  public void setAdvancePaymentInvoiceTypeCode(String advancePaymentInvoiceTypeCode) {
    this.advancePaymentInvoiceTypeCode = advancePaymentInvoiceTypeCode;
  }


  public PaymentScheduleTemplateDto generateAdvancePaymentInvoice(Boolean generateAdvancePaymentInvoice) {
    
    this.generateAdvancePaymentInvoice = generateAdvancePaymentInvoice;
    return this;
  }

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

  public Boolean getGenerateAdvancePaymentInvoice() {
    return generateAdvancePaymentInvoice;
  }



  public void setGenerateAdvancePaymentInvoice(Boolean generateAdvancePaymentInvoice) {
    this.generateAdvancePaymentInvoice = generateAdvancePaymentInvoice;
  }


  public PaymentScheduleTemplateDto doPayment(Boolean doPayment) {
    
    this.doPayment = doPayment;
    return this;
  }

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

  public Boolean getDoPayment() {
    return doPayment;
  }



  public void setDoPayment(Boolean doPayment) {
    this.doPayment = doPayment;
  }


  public PaymentScheduleTemplateDto advancePaymentInvoiceSubCategoryCode(String advancePaymentInvoiceSubCategoryCode) {
    
    this.advancePaymentInvoiceSubCategoryCode = advancePaymentInvoiceSubCategoryCode;
    return this;
  }

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

  public String getAdvancePaymentInvoiceSubCategoryCode() {
    return advancePaymentInvoiceSubCategoryCode;
  }



  public void setAdvancePaymentInvoiceSubCategoryCode(String advancePaymentInvoiceSubCategoryCode) {
    this.advancePaymentInvoiceSubCategoryCode = advancePaymentInvoiceSubCategoryCode;
  }


  public PaymentScheduleTemplateDto applyAgreement(Boolean applyAgreement) {
    
    this.applyAgreement = applyAgreement;
    return this;
  }

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

  public Boolean getApplyAgreement() {
    return applyAgreement;
  }



  public void setApplyAgreement(Boolean applyAgreement) {
    this.applyAgreement = applyAgreement;
  }


  public PaymentScheduleTemplateDto amountEl(String amountEl) {
    
    this.amountEl = amountEl;
    return this;
  }

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

  public String getAmountEl() {
    return amountEl;
  }



  public void setAmountEl(String amountEl) {
    this.amountEl = amountEl;
  }


  public PaymentScheduleTemplateDto filterEl(String filterEl) {
    
    this.filterEl = filterEl;
    return this;
  }

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

  public String getFilterEl() {
    return filterEl;
  }



  public void setFilterEl(String filterEl) {
    this.filterEl = filterEl;
  }


  public PaymentScheduleTemplateDto customFields(CustomFieldsDto customFields) {
    
    this.customFields = customFields;
    return this;
  }

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

  public CustomFieldsDto getCustomFields() {
    return customFields;
  }



  public void setCustomFields(CustomFieldsDto customFields) {
    this.customFields = customFields;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    PaymentScheduleTemplateDto paymentScheduleTemplateDto = (PaymentScheduleTemplateDto) o;
    return Objects.equals(this.id, paymentScheduleTemplateDto.id) &&
        Objects.equals(this.code, paymentScheduleTemplateDto.code) &&
        Objects.equals(this.description, paymentScheduleTemplateDto.description) &&
        Objects.equals(this.updatedCode, paymentScheduleTemplateDto.updatedCode) &&
        Objects.equals(this.startDate, paymentScheduleTemplateDto.startDate) &&
        Objects.equals(this.amount, paymentScheduleTemplateDto.amount) &&
        Objects.equals(this.calendarCode, paymentScheduleTemplateDto.calendarCode) &&
        Objects.equals(this.paymentLabel, paymentScheduleTemplateDto.paymentLabel) &&
        Objects.equals(this.paymentDayInMonth, paymentScheduleTemplateDto.paymentDayInMonth) &&
        Objects.equals(this.serviceTemplateCode, paymentScheduleTemplateDto.serviceTemplateCode) &&
        Objects.equals(this.advancePaymentInvoiceTypeCode, paymentScheduleTemplateDto.advancePaymentInvoiceTypeCode) &&
        Objects.equals(this.generateAdvancePaymentInvoice, paymentScheduleTemplateDto.generateAdvancePaymentInvoice) &&
        Objects.equals(this.doPayment, paymentScheduleTemplateDto.doPayment) &&
        Objects.equals(this.advancePaymentInvoiceSubCategoryCode, paymentScheduleTemplateDto.advancePaymentInvoiceSubCategoryCode) &&
        Objects.equals(this.applyAgreement, paymentScheduleTemplateDto.applyAgreement) &&
        Objects.equals(this.amountEl, paymentScheduleTemplateDto.amountEl) &&
        Objects.equals(this.filterEl, paymentScheduleTemplateDto.filterEl) &&
        Objects.equals(this.customFields, paymentScheduleTemplateDto.customFields);
  }

  @Override
  public int hashCode() {
    return Objects.hash(id, code, description, updatedCode, startDate, amount, calendarCode, paymentLabel, paymentDayInMonth, serviceTemplateCode, advancePaymentInvoiceTypeCode, generateAdvancePaymentInvoice, doPayment, advancePaymentInvoiceSubCategoryCode, applyAgreement, amountEl, filterEl, customFields);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class PaymentScheduleTemplateDto {\n");
    sb.append("    id: ").append(toIndentedString(id)).append("\n");
    sb.append("    code: ").append(toIndentedString(code)).append("\n");
    sb.append("    description: ").append(toIndentedString(description)).append("\n");
    sb.append("    updatedCode: ").append(toIndentedString(updatedCode)).append("\n");
    sb.append("    startDate: ").append(toIndentedString(startDate)).append("\n");
    sb.append("    amount: ").append(toIndentedString(amount)).append("\n");
    sb.append("    calendarCode: ").append(toIndentedString(calendarCode)).append("\n");
    sb.append("    paymentLabel: ").append(toIndentedString(paymentLabel)).append("\n");
    sb.append("    paymentDayInMonth: ").append(toIndentedString(paymentDayInMonth)).append("\n");
    sb.append("    serviceTemplateCode: ").append(toIndentedString(serviceTemplateCode)).append("\n");
    sb.append("    advancePaymentInvoiceTypeCode: ").append(toIndentedString(advancePaymentInvoiceTypeCode)).append("\n");
    sb.append("    generateAdvancePaymentInvoice: ").append(toIndentedString(generateAdvancePaymentInvoice)).append("\n");
    sb.append("    doPayment: ").append(toIndentedString(doPayment)).append("\n");
    sb.append("    advancePaymentInvoiceSubCategoryCode: ").append(toIndentedString(advancePaymentInvoiceSubCategoryCode)).append("\n");
    sb.append("    applyAgreement: ").append(toIndentedString(applyAgreement)).append("\n");
    sb.append("    amountEl: ").append(toIndentedString(amountEl)).append("\n");
    sb.append("    filterEl: ").append(toIndentedString(filterEl)).append("\n");
    sb.append("    customFields: ").append(toIndentedString(customFields)).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    ");
  }

}

