/*
 * 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.threeten.bp.OffsetDateTime;

/**
 * FindWalletOperationsDto
 */
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-09-13T10:03:17.753Z[GMT]")
public class FindWalletOperationsDto {
  /**
   * Gets or Sets status
   */
  @JsonAdapter(StatusEnum.Adapter.class)
  public enum StatusEnum {
    OPEN("OPEN"),
    
    TREATED("TREATED"),
    
    CANCELED("CANCELED"),
    
    RESERVED("RESERVED"),
    
    TO_RERATE("TO_RERATE"),
    
    RERATED("RERATED"),
    
    SCHEDULED("SCHEDULED");

    private String value;

    StatusEnum(String value) {
      this.value = value;
    }

    public String getValue() {
      return value;
    }

    @Override
    public String toString() {
      return String.valueOf(value);
    }

    public static StatusEnum fromValue(String value) {
      for (StatusEnum b : StatusEnum.values()) {
        if (b.value.equals(value)) {
          return b;
        }
      }
      throw new IllegalArgumentException("Unexpected value '" + value + "'");
    }

    public static class Adapter extends TypeAdapter<StatusEnum> {
      @Override
      public void write(final JsonWriter jsonWriter, final StatusEnum enumeration) throws IOException {
        jsonWriter.value(enumeration.getValue());
      }

      @Override
      public StatusEnum read(final JsonReader jsonReader) throws IOException {
        String value = jsonReader.nextString();
        return StatusEnum.fromValue(value);
      }
    }
  }

  public static final String SERIALIZED_NAME_STATUS = "status";
  @SerializedName(SERIALIZED_NAME_STATUS)
  private StatusEnum status;

  public static final String SERIALIZED_NAME_WALLET_TEMPLATE = "walletTemplate";
  @SerializedName(SERIALIZED_NAME_WALLET_TEMPLATE)
  private String walletTemplate;

  public static final String SERIALIZED_NAME_USER_ACCOUNT = "userAccount";
  @SerializedName(SERIALIZED_NAME_USER_ACCOUNT)
  private String userAccount;

  public static final String SERIALIZED_NAME_FROM_DATE = "fromDate";
  @SerializedName(SERIALIZED_NAME_FROM_DATE)
  private OffsetDateTime fromDate;

  public static final String SERIALIZED_NAME_TO_DATE = "toDate";
  @SerializedName(SERIALIZED_NAME_TO_DATE)
  private OffsetDateTime toDate;

  public static final String SERIALIZED_NAME_CHARGE_TEMPLATE_CODE = "chargeTemplateCode";
  @SerializedName(SERIALIZED_NAME_CHARGE_TEMPLATE_CODE)
  private String chargeTemplateCode;

  public static final String SERIALIZED_NAME_PARAMETER1 = "parameter1";
  @SerializedName(SERIALIZED_NAME_PARAMETER1)
  private String parameter1;

  public static final String SERIALIZED_NAME_PARAMETER2 = "parameter2";
  @SerializedName(SERIALIZED_NAME_PARAMETER2)
  private String parameter2;

  public static final String SERIALIZED_NAME_PARAMETER3 = "parameter3";
  @SerializedName(SERIALIZED_NAME_PARAMETER3)
  private String parameter3;

  public static final String SERIALIZED_NAME_OFFER_TEMPLATE_CODE = "offerTemplateCode";
  @SerializedName(SERIALIZED_NAME_OFFER_TEMPLATE_CODE)
  private String offerTemplateCode;

  public static final String SERIALIZED_NAME_SUBSCRIPTION_CODE = "subscriptionCode";
  @SerializedName(SERIALIZED_NAME_SUBSCRIPTION_CODE)
  private String subscriptionCode;

  public static final String SERIALIZED_NAME_ORDER_NUMBER = "orderNumber";
  @SerializedName(SERIALIZED_NAME_ORDER_NUMBER)
  private String orderNumber;


  public FindWalletOperationsDto status(StatusEnum status) {
    
    this.status = status;
    return this;
  }

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

  public StatusEnum getStatus() {
    return status;
  }



  public void setStatus(StatusEnum status) {
    this.status = status;
  }


  public FindWalletOperationsDto walletTemplate(String walletTemplate) {
    
    this.walletTemplate = walletTemplate;
    return this;
  }

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

  public String getWalletTemplate() {
    return walletTemplate;
  }



  public void setWalletTemplate(String walletTemplate) {
    this.walletTemplate = walletTemplate;
  }


  public FindWalletOperationsDto userAccount(String userAccount) {
    
    this.userAccount = userAccount;
    return this;
  }

   /**
   * Get userAccount
   * @return userAccount
  **/
  @ApiModelProperty(required = true, value = "")

  public String getUserAccount() {
    return userAccount;
  }



  public void setUserAccount(String userAccount) {
    this.userAccount = userAccount;
  }


  public FindWalletOperationsDto fromDate(OffsetDateTime fromDate) {
    
    this.fromDate = fromDate;
    return this;
  }

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

  public OffsetDateTime getFromDate() {
    return fromDate;
  }



  public void setFromDate(OffsetDateTime fromDate) {
    this.fromDate = fromDate;
  }


  public FindWalletOperationsDto toDate(OffsetDateTime toDate) {
    
    this.toDate = toDate;
    return this;
  }

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

  public OffsetDateTime getToDate() {
    return toDate;
  }



  public void setToDate(OffsetDateTime toDate) {
    this.toDate = toDate;
  }


  public FindWalletOperationsDto chargeTemplateCode(String chargeTemplateCode) {
    
    this.chargeTemplateCode = chargeTemplateCode;
    return this;
  }

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

  public String getChargeTemplateCode() {
    return chargeTemplateCode;
  }



  public void setChargeTemplateCode(String chargeTemplateCode) {
    this.chargeTemplateCode = chargeTemplateCode;
  }


  public FindWalletOperationsDto parameter1(String parameter1) {
    
    this.parameter1 = parameter1;
    return this;
  }

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

  public String getParameter1() {
    return parameter1;
  }



  public void setParameter1(String parameter1) {
    this.parameter1 = parameter1;
  }


  public FindWalletOperationsDto parameter2(String parameter2) {
    
    this.parameter2 = parameter2;
    return this;
  }

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

  public String getParameter2() {
    return parameter2;
  }



  public void setParameter2(String parameter2) {
    this.parameter2 = parameter2;
  }


  public FindWalletOperationsDto parameter3(String parameter3) {
    
    this.parameter3 = parameter3;
    return this;
  }

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

  public String getParameter3() {
    return parameter3;
  }



  public void setParameter3(String parameter3) {
    this.parameter3 = parameter3;
  }


  public FindWalletOperationsDto offerTemplateCode(String offerTemplateCode) {
    
    this.offerTemplateCode = offerTemplateCode;
    return this;
  }

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

  public String getOfferTemplateCode() {
    return offerTemplateCode;
  }



  public void setOfferTemplateCode(String offerTemplateCode) {
    this.offerTemplateCode = offerTemplateCode;
  }


  public FindWalletOperationsDto subscriptionCode(String subscriptionCode) {
    
    this.subscriptionCode = subscriptionCode;
    return this;
  }

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

  public String getSubscriptionCode() {
    return subscriptionCode;
  }



  public void setSubscriptionCode(String subscriptionCode) {
    this.subscriptionCode = subscriptionCode;
  }


  public FindWalletOperationsDto orderNumber(String orderNumber) {
    
    this.orderNumber = orderNumber;
    return this;
  }

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

  public String getOrderNumber() {
    return orderNumber;
  }



  public void setOrderNumber(String orderNumber) {
    this.orderNumber = orderNumber;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    FindWalletOperationsDto findWalletOperationsDto = (FindWalletOperationsDto) o;
    return Objects.equals(this.status, findWalletOperationsDto.status) &&
        Objects.equals(this.walletTemplate, findWalletOperationsDto.walletTemplate) &&
        Objects.equals(this.userAccount, findWalletOperationsDto.userAccount) &&
        Objects.equals(this.fromDate, findWalletOperationsDto.fromDate) &&
        Objects.equals(this.toDate, findWalletOperationsDto.toDate) &&
        Objects.equals(this.chargeTemplateCode, findWalletOperationsDto.chargeTemplateCode) &&
        Objects.equals(this.parameter1, findWalletOperationsDto.parameter1) &&
        Objects.equals(this.parameter2, findWalletOperationsDto.parameter2) &&
        Objects.equals(this.parameter3, findWalletOperationsDto.parameter3) &&
        Objects.equals(this.offerTemplateCode, findWalletOperationsDto.offerTemplateCode) &&
        Objects.equals(this.subscriptionCode, findWalletOperationsDto.subscriptionCode) &&
        Objects.equals(this.orderNumber, findWalletOperationsDto.orderNumber);
  }

  @Override
  public int hashCode() {
    return Objects.hash(status, walletTemplate, userAccount, fromDate, toDate, chargeTemplateCode, parameter1, parameter2, parameter3, offerTemplateCode, subscriptionCode, orderNumber);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class FindWalletOperationsDto {\n");
    sb.append("    status: ").append(toIndentedString(status)).append("\n");
    sb.append("    walletTemplate: ").append(toIndentedString(walletTemplate)).append("\n");
    sb.append("    userAccount: ").append(toIndentedString(userAccount)).append("\n");
    sb.append("    fromDate: ").append(toIndentedString(fromDate)).append("\n");
    sb.append("    toDate: ").append(toIndentedString(toDate)).append("\n");
    sb.append("    chargeTemplateCode: ").append(toIndentedString(chargeTemplateCode)).append("\n");
    sb.append("    parameter1: ").append(toIndentedString(parameter1)).append("\n");
    sb.append("    parameter2: ").append(toIndentedString(parameter2)).append("\n");
    sb.append("    parameter3: ").append(toIndentedString(parameter3)).append("\n");
    sb.append("    offerTemplateCode: ").append(toIndentedString(offerTemplateCode)).append("\n");
    sb.append("    subscriptionCode: ").append(toIndentedString(subscriptionCode)).append("\n");
    sb.append("    orderNumber: ").append(toIndentedString(orderNumber)).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    ");
  }

}

