All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.xero.models.payrollau.PayRuns Maven / Gradle / Ivy

There is a newer version: 8.3.0
Show newest version
/*
 * Xero Payroll AU
 * This is the Xero Payroll API for orgs in Australia region.
 *
 * The version of the OpenAPI document: 1.0.0
 * Contact: [email protected]
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */


package com.xero.models.payrollau;

import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import com.xero.models.payrollau.PayRun;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;

/**
 * PayRuns
 */

public class PayRuns {
  
  @JsonProperty("PayRuns")
  private List payRuns = new ArrayList();

  public PayRuns payRuns(List payRuns) {
    this.payRuns = payRuns;
    return this;
  }

  public PayRuns addPayRunsItem(PayRun payRunsItem) {
    if (this.payRuns == null) {
      this.payRuns = new ArrayList();
    }
    this.payRuns.add(payRunsItem);
    return this;
  }

   /**
   * Get payRuns
   * @return payRuns
  **/
  @ApiModelProperty(value = "")
  public List getPayRuns() {
    return payRuns;
  }

  public void setPayRuns(List payRuns) {
    this.payRuns = payRuns;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    PayRuns payRuns = (PayRuns) o;
    return Objects.equals(this.payRuns, payRuns.payRuns);
  }

  @Override
  public int hashCode() {
    return Objects.hash(payRuns);
  }


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

}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy