/*
 * 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 java.util.ArrayList;
import java.util.List;
import org.openapitools.client.model.ActionStatus;
import org.openapitools.client.model.WalletOperationDto;

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

  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_TAX = "amountTax";
  @SerializedName(SERIALIZED_NAME_AMOUNT_TAX)
  private BigDecimal amountTax;

  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_WALLET_OPERATION_COUNT = "walletOperationCount";
  @SerializedName(SERIALIZED_NAME_WALLET_OPERATION_COUNT)
  private Integer walletOperationCount;

  public static final String SERIALIZED_NAME_WALLET_OPERATIONS = "walletOperations";
  @SerializedName(SERIALIZED_NAME_WALLET_OPERATIONS)
  private List<WalletOperationDto> walletOperations = null;


  public ChargeCDRResponseDto actionStatus(ActionStatus actionStatus) {
    
    this.actionStatus = actionStatus;
    return this;
  }

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

  public ActionStatus getActionStatus() {
    return actionStatus;
  }



  public void setActionStatus(ActionStatus actionStatus) {
    this.actionStatus = actionStatus;
  }


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

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

  public BigDecimal getAmountTax() {
    return amountTax;
  }



  public void setAmountTax(BigDecimal amountTax) {
    this.amountTax = amountTax;
  }


  public ChargeCDRResponseDto 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 ChargeCDRResponseDto walletOperationCount(Integer walletOperationCount) {
    
    this.walletOperationCount = walletOperationCount;
    return this;
  }

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

  public Integer getWalletOperationCount() {
    return walletOperationCount;
  }



  public void setWalletOperationCount(Integer walletOperationCount) {
    this.walletOperationCount = walletOperationCount;
  }


  public ChargeCDRResponseDto walletOperations(List<WalletOperationDto> walletOperations) {
    
    this.walletOperations = walletOperations;
    return this;
  }

  public ChargeCDRResponseDto addWalletOperationsItem(WalletOperationDto walletOperationsItem) {
    if (this.walletOperations == null) {
      this.walletOperations = new ArrayList<WalletOperationDto>();
    }
    this.walletOperations.add(walletOperationsItem);
    return this;
  }

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

  public List<WalletOperationDto> getWalletOperations() {
    return walletOperations;
  }



  public void setWalletOperations(List<WalletOperationDto> walletOperations) {
    this.walletOperations = walletOperations;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    ChargeCDRResponseDto chargeCDRResponseDto = (ChargeCDRResponseDto) o;
    return Objects.equals(this.actionStatus, chargeCDRResponseDto.actionStatus) &&
        Objects.equals(this.amountWithoutTax, chargeCDRResponseDto.amountWithoutTax) &&
        Objects.equals(this.amountTax, chargeCDRResponseDto.amountTax) &&
        Objects.equals(this.amountWithTax, chargeCDRResponseDto.amountWithTax) &&
        Objects.equals(this.walletOperationCount, chargeCDRResponseDto.walletOperationCount) &&
        Objects.equals(this.walletOperations, chargeCDRResponseDto.walletOperations);
  }

  @Override
  public int hashCode() {
    return Objects.hash(actionStatus, amountWithoutTax, amountTax, amountWithTax, walletOperationCount, walletOperations);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class ChargeCDRResponseDto {\n");
    sb.append("    actionStatus: ").append(toIndentedString(actionStatus)).append("\n");
    sb.append("    amountWithoutTax: ").append(toIndentedString(amountWithoutTax)).append("\n");
    sb.append("    amountTax: ").append(toIndentedString(amountTax)).append("\n");
    sb.append("    amountWithTax: ").append(toIndentedString(amountWithTax)).append("\n");
    sb.append("    walletOperationCount: ").append(toIndentedString(walletOperationCount)).append("\n");
    sb.append("    walletOperations: ").append(toIndentedString(walletOperations)).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    ");
  }

}

