/*
 * 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;

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

  public static final String SERIALIZED_NAME_CONSUMED_QUANTITY = "consumedQuantity";
  @SerializedName(SERIALIZED_NAME_CONSUMED_QUANTITY)
  private BigDecimal consumedQuantity;


  public PrepaidReservationDto reservationId(Long reservationId) {
    
    this.reservationId = reservationId;
    return this;
  }

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

  public Long getReservationId() {
    return reservationId;
  }



  public void setReservationId(Long reservationId) {
    this.reservationId = reservationId;
  }


  public PrepaidReservationDto consumedQuantity(BigDecimal consumedQuantity) {
    
    this.consumedQuantity = consumedQuantity;
    return this;
  }

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

  public BigDecimal getConsumedQuantity() {
    return consumedQuantity;
  }



  public void setConsumedQuantity(BigDecimal consumedQuantity) {
    this.consumedQuantity = consumedQuantity;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    PrepaidReservationDto prepaidReservationDto = (PrepaidReservationDto) o;
    return Objects.equals(this.reservationId, prepaidReservationDto.reservationId) &&
        Objects.equals(this.consumedQuantity, prepaidReservationDto.consumedQuantity);
  }

  @Override
  public int hashCode() {
    return Objects.hash(reservationId, consumedQuantity);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class PrepaidReservationDto {\n");
    sb.append("    reservationId: ").append(toIndentedString(reservationId)).append("\n");
    sb.append("    consumedQuantity: ").append(toIndentedString(consumedQuantity)).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    ");
  }

}

