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

com.xero.models.payrollnz.StatutoryDeduction Maven / Gradle / Ivy

/*
 * Xero Payroll NZ
 * This is the Xero Payroll API for orgs in the NZ region.
 *
 * 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.payrollnz;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.xero.api.StringUtil;
import io.swagger.annotations.ApiModelProperty;
import java.util.Objects;
import java.util.UUID;

/** StatutoryDeduction */
public class StatutoryDeduction {
  StringUtil util = new StringUtil();

  @JsonProperty("id")
  private UUID id;

  @JsonProperty("name")
  private String name;

  @JsonProperty("statutoryDeductionCategory")
  private StatutoryDeductionCategory statutoryDeductionCategory;

  @JsonProperty("liabilityAccountId")
  private UUID liabilityAccountId;

  @JsonProperty("currentRecord")
  private Boolean currentRecord;
  /**
   * The Xero identifier for earnings order
   *
   * @param id UUID
   * @return StatutoryDeduction
   */
  public StatutoryDeduction id(UUID id) {
    this.id = id;
    return this;
  }

  /**
   * The Xero identifier for earnings order
   *
   * @return id
   */
  @ApiModelProperty(value = "The Xero identifier for earnings order")
  /**
   * The Xero identifier for earnings order
   *
   * @return id UUID
   */
  public UUID getId() {
    return id;
  }

  /**
   * The Xero identifier for earnings order
   *
   * @param id UUID
   */
  public void setId(UUID id) {
    this.id = id;
  }

  /**
   * Name of the earnings order
   *
   * @param name String
   * @return StatutoryDeduction
   */
  public StatutoryDeduction name(String name) {
    this.name = name;
    return this;
  }

  /**
   * Name of the earnings order
   *
   * @return name
   */
  @ApiModelProperty(value = "Name of the earnings order")
  /**
   * Name of the earnings order
   *
   * @return name String
   */
  public String getName() {
    return name;
  }

  /**
   * Name of the earnings order
   *
   * @param name String
   */
  public void setName(String name) {
    this.name = name;
  }

  /**
   * statutoryDeductionCategory
   *
   * @param statutoryDeductionCategory StatutoryDeductionCategory
   * @return StatutoryDeduction
   */
  public StatutoryDeduction statutoryDeductionCategory(
      StatutoryDeductionCategory statutoryDeductionCategory) {
    this.statutoryDeductionCategory = statutoryDeductionCategory;
    return this;
  }

  /**
   * Get statutoryDeductionCategory
   *
   * @return statutoryDeductionCategory
   */
  @ApiModelProperty(value = "")
  /**
   * statutoryDeductionCategory
   *
   * @return statutoryDeductionCategory StatutoryDeductionCategory
   */
  public StatutoryDeductionCategory getStatutoryDeductionCategory() {
    return statutoryDeductionCategory;
  }

  /**
   * statutoryDeductionCategory
   *
   * @param statutoryDeductionCategory StatutoryDeductionCategory
   */
  public void setStatutoryDeductionCategory(StatutoryDeductionCategory statutoryDeductionCategory) {
    this.statutoryDeductionCategory = statutoryDeductionCategory;
  }

  /**
   * Xero identifier for Liability Account
   *
   * @param liabilityAccountId UUID
   * @return StatutoryDeduction
   */
  public StatutoryDeduction liabilityAccountId(UUID liabilityAccountId) {
    this.liabilityAccountId = liabilityAccountId;
    return this;
  }

  /**
   * Xero identifier for Liability Account
   *
   * @return liabilityAccountId
   */
  @ApiModelProperty(value = "Xero identifier for Liability Account")
  /**
   * Xero identifier for Liability Account
   *
   * @return liabilityAccountId UUID
   */
  public UUID getLiabilityAccountId() {
    return liabilityAccountId;
  }

  /**
   * Xero identifier for Liability Account
   *
   * @param liabilityAccountId UUID
   */
  public void setLiabilityAccountId(UUID liabilityAccountId) {
    this.liabilityAccountId = liabilityAccountId;
  }

  /**
   * Identifier of a record is active or not.
   *
   * @param currentRecord Boolean
   * @return StatutoryDeduction
   */
  public StatutoryDeduction currentRecord(Boolean currentRecord) {
    this.currentRecord = currentRecord;
    return this;
  }

  /**
   * Identifier of a record is active or not.
   *
   * @return currentRecord
   */
  @ApiModelProperty(value = "Identifier of a record is active or not.")
  /**
   * Identifier of a record is active or not.
   *
   * @return currentRecord Boolean
   */
  public Boolean getCurrentRecord() {
    return currentRecord;
  }

  /**
   * Identifier of a record is active or not.
   *
   * @param currentRecord Boolean
   */
  public void setCurrentRecord(Boolean currentRecord) {
    this.currentRecord = currentRecord;
  }

  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    StatutoryDeduction statutoryDeduction = (StatutoryDeduction) o;
    return Objects.equals(this.id, statutoryDeduction.id)
        && Objects.equals(this.name, statutoryDeduction.name)
        && Objects.equals(
            this.statutoryDeductionCategory, statutoryDeduction.statutoryDeductionCategory)
        && Objects.equals(this.liabilityAccountId, statutoryDeduction.liabilityAccountId)
        && Objects.equals(this.currentRecord, statutoryDeduction.currentRecord);
  }

  @Override
  public int hashCode() {
    return Objects.hash(id, name, statutoryDeductionCategory, liabilityAccountId, currentRecord);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class StatutoryDeduction {\n");
    sb.append("    id: ").append(toIndentedString(id)).append("\n");
    sb.append("    name: ").append(toIndentedString(name)).append("\n");
    sb.append("    statutoryDeductionCategory: ")
        .append(toIndentedString(statutoryDeductionCategory))
        .append("\n");
    sb.append("    liabilityAccountId: ").append(toIndentedString(liabilityAccountId)).append("\n");
    sb.append("    currentRecord: ").append(toIndentedString(currentRecord)).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 - 2025 Weber Informatics LLC | Privacy Policy