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

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

  public static final String SERIALIZED_NAME_PAGING = "paging";
  @SerializedName(SERIALIZED_NAME_PAGING)
  private PagingAndFiltering paging;

  public static final String SERIALIZED_NAME_CUSTOMER_PAYMENT_DTO_LIST = "customerPaymentDtoList";
  @SerializedName(SERIALIZED_NAME_CUSTOMER_PAYMENT_DTO_LIST)
  private List<PaymentDto> customerPaymentDtoList = null;

  public static final String SERIALIZED_NAME_BALANCE = "balance";
  @SerializedName(SERIALIZED_NAME_BALANCE)
  private Double balance;


  public CustomerPaymentsResponse 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 CustomerPaymentsResponse paging(PagingAndFiltering paging) {
    
    this.paging = paging;
    return this;
  }

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

  public PagingAndFiltering getPaging() {
    return paging;
  }



  public void setPaging(PagingAndFiltering paging) {
    this.paging = paging;
  }


  public CustomerPaymentsResponse customerPaymentDtoList(List<PaymentDto> customerPaymentDtoList) {
    
    this.customerPaymentDtoList = customerPaymentDtoList;
    return this;
  }

  public CustomerPaymentsResponse addCustomerPaymentDtoListItem(PaymentDto customerPaymentDtoListItem) {
    if (this.customerPaymentDtoList == null) {
      this.customerPaymentDtoList = new ArrayList<PaymentDto>();
    }
    this.customerPaymentDtoList.add(customerPaymentDtoListItem);
    return this;
  }

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

  public List<PaymentDto> getCustomerPaymentDtoList() {
    return customerPaymentDtoList;
  }



  public void setCustomerPaymentDtoList(List<PaymentDto> customerPaymentDtoList) {
    this.customerPaymentDtoList = customerPaymentDtoList;
  }


  public CustomerPaymentsResponse balance(Double balance) {
    
    this.balance = balance;
    return this;
  }

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

  public Double getBalance() {
    return balance;
  }



  public void setBalance(Double balance) {
    this.balance = balance;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    CustomerPaymentsResponse customerPaymentsResponse = (CustomerPaymentsResponse) o;
    return Objects.equals(this.actionStatus, customerPaymentsResponse.actionStatus) &&
        Objects.equals(this.paging, customerPaymentsResponse.paging) &&
        Objects.equals(this.customerPaymentDtoList, customerPaymentsResponse.customerPaymentDtoList) &&
        Objects.equals(this.balance, customerPaymentsResponse.balance);
  }

  @Override
  public int hashCode() {
    return Objects.hash(actionStatus, paging, customerPaymentDtoList, balance);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class CustomerPaymentsResponse {\n");
    sb.append("    actionStatus: ").append(toIndentedString(actionStatus)).append("\n");
    sb.append("    paging: ").append(toIndentedString(paging)).append("\n");
    sb.append("    customerPaymentDtoList: ").append(toIndentedString(customerPaymentDtoList)).append("\n");
    sb.append("    balance: ").append(toIndentedString(balance)).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    ");
  }

}

