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

com.xero.models.payrollnz.PaymentLine 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;

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

  @JsonProperty("paymentLineID")
  private UUID paymentLineID;

  @JsonProperty("amount")
  private Double amount;

  @JsonProperty("accountNumber")
  private String accountNumber;

  @JsonProperty("sortCode")
  private String sortCode;

  @JsonProperty("accountName")
  private String accountName;
  /**
   * Xero identifier for payroll payment line
   *
   * @param paymentLineID UUID
   * @return PaymentLine
   */
  public PaymentLine paymentLineID(UUID paymentLineID) {
    this.paymentLineID = paymentLineID;
    return this;
  }

  /**
   * Xero identifier for payroll payment line
   *
   * @return paymentLineID
   */
  @ApiModelProperty(value = "Xero identifier for payroll payment line")
  /**
   * Xero identifier for payroll payment line
   *
   * @return paymentLineID UUID
   */
  public UUID getPaymentLineID() {
    return paymentLineID;
  }

  /**
   * Xero identifier for payroll payment line
   *
   * @param paymentLineID UUID
   */
  public void setPaymentLineID(UUID paymentLineID) {
    this.paymentLineID = paymentLineID;
  }

  /**
   * The amount of the payment line
   *
   * @param amount Double
   * @return PaymentLine
   */
  public PaymentLine amount(Double amount) {
    this.amount = amount;
    return this;
  }

  /**
   * The amount of the payment line
   *
   * @return amount
   */
  @ApiModelProperty(value = "The amount of the payment line")
  /**
   * The amount of the payment line
   *
   * @return amount Double
   */
  public Double getAmount() {
    return amount;
  }

  /**
   * The amount of the payment line
   *
   * @param amount Double
   */
  public void setAmount(Double amount) {
    this.amount = amount;
  }

  /**
   * The account number
   *
   * @param accountNumber String
   * @return PaymentLine
   */
  public PaymentLine accountNumber(String accountNumber) {
    this.accountNumber = accountNumber;
    return this;
  }

  /**
   * The account number
   *
   * @return accountNumber
   */
  @ApiModelProperty(value = "The account number")
  /**
   * The account number
   *
   * @return accountNumber String
   */
  public String getAccountNumber() {
    return accountNumber;
  }

  /**
   * The account number
   *
   * @param accountNumber String
   */
  public void setAccountNumber(String accountNumber) {
    this.accountNumber = accountNumber;
  }

  /**
   * The account sort code
   *
   * @param sortCode String
   * @return PaymentLine
   */
  public PaymentLine sortCode(String sortCode) {
    this.sortCode = sortCode;
    return this;
  }

  /**
   * The account sort code
   *
   * @return sortCode
   */
  @ApiModelProperty(value = "The account sort code")
  /**
   * The account sort code
   *
   * @return sortCode String
   */
  public String getSortCode() {
    return sortCode;
  }

  /**
   * The account sort code
   *
   * @param sortCode String
   */
  public void setSortCode(String sortCode) {
    this.sortCode = sortCode;
  }

  /**
   * The account name
   *
   * @param accountName String
   * @return PaymentLine
   */
  public PaymentLine accountName(String accountName) {
    this.accountName = accountName;
    return this;
  }

  /**
   * The account name
   *
   * @return accountName
   */
  @ApiModelProperty(value = "The account name")
  /**
   * The account name
   *
   * @return accountName String
   */
  public String getAccountName() {
    return accountName;
  }

  /**
   * The account name
   *
   * @param accountName String
   */
  public void setAccountName(String accountName) {
    this.accountName = accountName;
  }

  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    PaymentLine paymentLine = (PaymentLine) o;
    return Objects.equals(this.paymentLineID, paymentLine.paymentLineID)
        && Objects.equals(this.amount, paymentLine.amount)
        && Objects.equals(this.accountNumber, paymentLine.accountNumber)
        && Objects.equals(this.sortCode, paymentLine.sortCode)
        && Objects.equals(this.accountName, paymentLine.accountName);
  }

  @Override
  public int hashCode() {
    return Objects.hash(paymentLineID, amount, accountNumber, sortCode, accountName);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class PaymentLine {\n");
    sb.append("    paymentLineID: ").append(toIndentedString(paymentLineID)).append("\n");
    sb.append("    amount: ").append(toIndentedString(amount)).append("\n");
    sb.append("    accountNumber: ").append(toIndentedString(accountNumber)).append("\n");
    sb.append("    sortCode: ").append(toIndentedString(sortCode)).append("\n");
    sb.append("    accountName: ").append(toIndentedString(accountName)).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