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

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

  public static final String SERIALIZED_NAME_SUBSCRIPTION = "subscription";
  @SerializedName(SERIALIZED_NAME_SUBSCRIPTION)
  private String subscription;

  public static final String SERIALIZED_NAME_WALLET = "wallet";
  @SerializedName(SERIALIZED_NAME_WALLET)
  private String wallet;

  public static final String SERIALIZED_NAME_CREATE_WALLET = "createWallet";
  @SerializedName(SERIALIZED_NAME_CREATE_WALLET)
  private Boolean createWallet;

  public static final String SERIALIZED_NAME_OPERATION_DATE = "operationDate";
  @SerializedName(SERIALIZED_NAME_OPERATION_DATE)
  private OffsetDateTime operationDate;

  public static final String SERIALIZED_NAME_QUANTITY = "quantity";
  @SerializedName(SERIALIZED_NAME_QUANTITY)
  private BigDecimal quantity;

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

  public static final String SERIALIZED_NAME_AMOUNT_WITHOUT_TAX = "amountWithoutTax";
  @SerializedName(SERIALIZED_NAME_AMOUNT_WITHOUT_TAX)
  private BigDecimal amountWithoutTax;

  public static final String SERIALIZED_NAME_AMOUNT_WITH_TAX = "amountWithTax";
  @SerializedName(SERIALIZED_NAME_AMOUNT_WITH_TAX)
  private BigDecimal amountWithTax;

  public static final String SERIALIZED_NAME_CRITERIA1 = "criteria1";
  @SerializedName(SERIALIZED_NAME_CRITERIA1)
  private String criteria1;

  public static final String SERIALIZED_NAME_CRITERIA2 = "criteria2";
  @SerializedName(SERIALIZED_NAME_CRITERIA2)
  private String criteria2;

  public static final String SERIALIZED_NAME_CRITERIA3 = "criteria3";
  @SerializedName(SERIALIZED_NAME_CRITERIA3)
  private String criteria3;


  public ApplyOneShotChargeInstanceRequestDto oneShotCharge(String oneShotCharge) {
    
    this.oneShotCharge = oneShotCharge;
    return this;
  }

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

  public String getOneShotCharge() {
    return oneShotCharge;
  }



  public void setOneShotCharge(String oneShotCharge) {
    this.oneShotCharge = oneShotCharge;
  }


  public ApplyOneShotChargeInstanceRequestDto subscription(String subscription) {
    
    this.subscription = subscription;
    return this;
  }

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

  public String getSubscription() {
    return subscription;
  }



  public void setSubscription(String subscription) {
    this.subscription = subscription;
  }


  public ApplyOneShotChargeInstanceRequestDto wallet(String wallet) {
    
    this.wallet = wallet;
    return this;
  }

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

  public String getWallet() {
    return wallet;
  }



  public void setWallet(String wallet) {
    this.wallet = wallet;
  }


  public ApplyOneShotChargeInstanceRequestDto createWallet(Boolean createWallet) {
    
    this.createWallet = createWallet;
    return this;
  }

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

  public Boolean getCreateWallet() {
    return createWallet;
  }



  public void setCreateWallet(Boolean createWallet) {
    this.createWallet = createWallet;
  }


  public ApplyOneShotChargeInstanceRequestDto operationDate(OffsetDateTime operationDate) {
    
    this.operationDate = operationDate;
    return this;
  }

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

  public OffsetDateTime getOperationDate() {
    return operationDate;
  }



  public void setOperationDate(OffsetDateTime operationDate) {
    this.operationDate = operationDate;
  }


  public ApplyOneShotChargeInstanceRequestDto quantity(BigDecimal quantity) {
    
    this.quantity = quantity;
    return this;
  }

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

  public BigDecimal getQuantity() {
    return quantity;
  }



  public void setQuantity(BigDecimal quantity) {
    this.quantity = quantity;
  }


  public ApplyOneShotChargeInstanceRequestDto 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 ApplyOneShotChargeInstanceRequestDto amountWithoutTax(BigDecimal amountWithoutTax) {
    
    this.amountWithoutTax = amountWithoutTax;
    return this;
  }

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

  public BigDecimal getAmountWithoutTax() {
    return amountWithoutTax;
  }



  public void setAmountWithoutTax(BigDecimal amountWithoutTax) {
    this.amountWithoutTax = amountWithoutTax;
  }


  public ApplyOneShotChargeInstanceRequestDto amountWithTax(BigDecimal amountWithTax) {
    
    this.amountWithTax = amountWithTax;
    return this;
  }

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

  public BigDecimal getAmountWithTax() {
    return amountWithTax;
  }



  public void setAmountWithTax(BigDecimal amountWithTax) {
    this.amountWithTax = amountWithTax;
  }


  public ApplyOneShotChargeInstanceRequestDto criteria1(String criteria1) {
    
    this.criteria1 = criteria1;
    return this;
  }

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

  public String getCriteria1() {
    return criteria1;
  }



  public void setCriteria1(String criteria1) {
    this.criteria1 = criteria1;
  }


  public ApplyOneShotChargeInstanceRequestDto criteria2(String criteria2) {
    
    this.criteria2 = criteria2;
    return this;
  }

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

  public String getCriteria2() {
    return criteria2;
  }



  public void setCriteria2(String criteria2) {
    this.criteria2 = criteria2;
  }


  public ApplyOneShotChargeInstanceRequestDto criteria3(String criteria3) {
    
    this.criteria3 = criteria3;
    return this;
  }

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

  public String getCriteria3() {
    return criteria3;
  }



  public void setCriteria3(String criteria3) {
    this.criteria3 = criteria3;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    ApplyOneShotChargeInstanceRequestDto applyOneShotChargeInstanceRequestDto = (ApplyOneShotChargeInstanceRequestDto) o;
    return Objects.equals(this.oneShotCharge, applyOneShotChargeInstanceRequestDto.oneShotCharge) &&
        Objects.equals(this.subscription, applyOneShotChargeInstanceRequestDto.subscription) &&
        Objects.equals(this.wallet, applyOneShotChargeInstanceRequestDto.wallet) &&
        Objects.equals(this.createWallet, applyOneShotChargeInstanceRequestDto.createWallet) &&
        Objects.equals(this.operationDate, applyOneShotChargeInstanceRequestDto.operationDate) &&
        Objects.equals(this.quantity, applyOneShotChargeInstanceRequestDto.quantity) &&
        Objects.equals(this.description, applyOneShotChargeInstanceRequestDto.description) &&
        Objects.equals(this.amountWithoutTax, applyOneShotChargeInstanceRequestDto.amountWithoutTax) &&
        Objects.equals(this.amountWithTax, applyOneShotChargeInstanceRequestDto.amountWithTax) &&
        Objects.equals(this.criteria1, applyOneShotChargeInstanceRequestDto.criteria1) &&
        Objects.equals(this.criteria2, applyOneShotChargeInstanceRequestDto.criteria2) &&
        Objects.equals(this.criteria3, applyOneShotChargeInstanceRequestDto.criteria3);
  }

  @Override
  public int hashCode() {
    return Objects.hash(oneShotCharge, subscription, wallet, createWallet, operationDate, quantity, description, amountWithoutTax, amountWithTax, criteria1, criteria2, criteria3);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class ApplyOneShotChargeInstanceRequestDto {\n");
    sb.append("    oneShotCharge: ").append(toIndentedString(oneShotCharge)).append("\n");
    sb.append("    subscription: ").append(toIndentedString(subscription)).append("\n");
    sb.append("    wallet: ").append(toIndentedString(wallet)).append("\n");
    sb.append("    createWallet: ").append(toIndentedString(createWallet)).append("\n");
    sb.append("    operationDate: ").append(toIndentedString(operationDate)).append("\n");
    sb.append("    quantity: ").append(toIndentedString(quantity)).append("\n");
    sb.append("    description: ").append(toIndentedString(description)).append("\n");
    sb.append("    amountWithoutTax: ").append(toIndentedString(amountWithoutTax)).append("\n");
    sb.append("    amountWithTax: ").append(toIndentedString(amountWithTax)).append("\n");
    sb.append("    criteria1: ").append(toIndentedString(criteria1)).append("\n");
    sb.append("    criteria2: ").append(toIndentedString(criteria2)).append("\n");
    sb.append("    criteria3: ").append(toIndentedString(criteria3)).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    ");
  }

}

