|
| 1 | +/* |
| 2 | + * Accounting API |
| 3 | + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) |
| 4 | + * |
| 5 | + * OpenAPI spec version: 2.0.0 |
| 6 | + * Contact: api@xero.com |
| 7 | + * |
| 8 | + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). |
| 9 | + * https://openapi-generator.tech |
| 10 | + * Do not edit the class manually. |
| 11 | + */ |
| 12 | + |
| 13 | + |
| 14 | +package com.xero.models.accounting; |
| 15 | + |
| 16 | +import java.util.Objects; |
| 17 | +import java.util.Arrays; |
| 18 | +import com.fasterxml.jackson.annotation.JsonProperty; |
| 19 | +import com.fasterxml.jackson.annotation.JsonCreator; |
| 20 | +import com.fasterxml.jackson.annotation.JsonValue; |
| 21 | +import io.swagger.annotations.ApiModel; |
| 22 | +import io.swagger.annotations.ApiModelProperty; |
| 23 | + |
| 24 | +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; |
| 25 | + |
| 26 | +/** |
| 27 | + * Bank details for use on a batch payment stored with each contact |
| 28 | + */ |
| 29 | +@ApiModel(description = "Bank details for use on a batch payment stored with each contact") |
| 30 | + |
| 31 | +public class BatchPaymentDetails { |
| 32 | + |
| 33 | + @JsonProperty("BankAccountNumber") |
| 34 | + private String bankAccountNumber = null; |
| 35 | + |
| 36 | + |
| 37 | + @JsonProperty("BankAccountName") |
| 38 | + private String bankAccountName = null; |
| 39 | + |
| 40 | + |
| 41 | + @JsonProperty("Details") |
| 42 | + private String details = null; |
| 43 | + |
| 44 | + |
| 45 | + @JsonProperty("Code") |
| 46 | + private String code = null; |
| 47 | + |
| 48 | + |
| 49 | + @JsonProperty("Reference") |
| 50 | + private String reference = null; |
| 51 | + |
| 52 | + public BatchPaymentDetails bankAccountNumber(String bankAccountNumber) { |
| 53 | + this.bankAccountNumber = bankAccountNumber; |
| 54 | + return this; |
| 55 | + } |
| 56 | + |
| 57 | + /** |
| 58 | + * Bank account number for use with Batch Payments |
| 59 | + * @return bankAccountNumber |
| 60 | + **/ |
| 61 | + @ApiModelProperty(example = "123-456-1111111", value = "Bank account number for use with Batch Payments") |
| 62 | + public String getBankAccountNumber() { |
| 63 | + return bankAccountNumber; |
| 64 | + } |
| 65 | + |
| 66 | + public void setBankAccountNumber(String bankAccountNumber) { |
| 67 | + this.bankAccountNumber = bankAccountNumber; |
| 68 | + } |
| 69 | + |
| 70 | + public BatchPaymentDetails bankAccountName(String bankAccountName) { |
| 71 | + this.bankAccountName = bankAccountName; |
| 72 | + return this; |
| 73 | + } |
| 74 | + |
| 75 | + /** |
| 76 | + * Name of bank for use with Batch Payments |
| 77 | + * @return bankAccountName |
| 78 | + **/ |
| 79 | + @ApiModelProperty(example = "ACME Bank", value = "Name of bank for use with Batch Payments") |
| 80 | + public String getBankAccountName() { |
| 81 | + return bankAccountName; |
| 82 | + } |
| 83 | + |
| 84 | + public void setBankAccountName(String bankAccountName) { |
| 85 | + this.bankAccountName = bankAccountName; |
| 86 | + } |
| 87 | + |
| 88 | + public BatchPaymentDetails details(String details) { |
| 89 | + this.details = details; |
| 90 | + return this; |
| 91 | + } |
| 92 | + |
| 93 | + /** |
| 94 | + * (Non-NZ Only) These details are sent to the org’s bank as a reference for the batch payment transaction. They will also show with the batch payment transaction in the bank reconciliation Find & Match screen. Depending on your individual bank, the detail may also show on the bank statement imported into Xero. Maximum field length = 18 |
| 95 | + * @return details |
| 96 | + **/ |
| 97 | + @ApiModelProperty(example = "Hello World", value = "(Non-NZ Only) These details are sent to the org’s bank as a reference for the batch payment transaction. They will also show with the batch payment transaction in the bank reconciliation Find & Match screen. Depending on your individual bank, the detail may also show on the bank statement imported into Xero. Maximum field length = 18") |
| 98 | + public String getDetails() { |
| 99 | + return details; |
| 100 | + } |
| 101 | + |
| 102 | + public void setDetails(String details) { |
| 103 | + this.details = details; |
| 104 | + } |
| 105 | + |
| 106 | + public BatchPaymentDetails code(String code) { |
| 107 | + this.code = code; |
| 108 | + return this; |
| 109 | + } |
| 110 | + |
| 111 | + /** |
| 112 | + * (NZ Only) Optional references for the batch payment transaction. It will also show with the batch payment transaction in the bank reconciliation Find & Match screen. Depending on your individual bank, the detail may also show on the bank statement you import into Xero. |
| 113 | + * @return code |
| 114 | + **/ |
| 115 | + @ApiModelProperty(example = "ABC", value = "(NZ Only) Optional references for the batch payment transaction. It will also show with the batch payment transaction in the bank reconciliation Find & Match screen. Depending on your individual bank, the detail may also show on the bank statement you import into Xero.") |
| 116 | + public String getCode() { |
| 117 | + return code; |
| 118 | + } |
| 119 | + |
| 120 | + public void setCode(String code) { |
| 121 | + this.code = code; |
| 122 | + } |
| 123 | + |
| 124 | + public BatchPaymentDetails reference(String reference) { |
| 125 | + this.reference = reference; |
| 126 | + return this; |
| 127 | + } |
| 128 | + |
| 129 | + /** |
| 130 | + * (NZ Only) Optional references for the batch payment transaction. It will also show with the batch payment transaction in the bank reconciliation Find & Match screen. Depending on your individual bank, the detail may also show on the bank statement you import into Xero. |
| 131 | + * @return reference |
| 132 | + **/ |
| 133 | + @ApiModelProperty(example = "Foobar", value = "(NZ Only) Optional references for the batch payment transaction. It will also show with the batch payment transaction in the bank reconciliation Find & Match screen. Depending on your individual bank, the detail may also show on the bank statement you import into Xero.") |
| 134 | + public String getReference() { |
| 135 | + return reference; |
| 136 | + } |
| 137 | + |
| 138 | + public void setReference(String reference) { |
| 139 | + this.reference = reference; |
| 140 | + } |
| 141 | + |
| 142 | + |
| 143 | + @Override |
| 144 | + public boolean equals(java.lang.Object o) { |
| 145 | + if (this == o) { |
| 146 | + return true; |
| 147 | + } |
| 148 | + if (o == null || getClass() != o.getClass()) { |
| 149 | + return false; |
| 150 | + } |
| 151 | + BatchPaymentDetails batchPaymentDetails = (BatchPaymentDetails) o; |
| 152 | + return Objects.equals(this.bankAccountNumber, batchPaymentDetails.bankAccountNumber) && |
| 153 | + Objects.equals(this.bankAccountName, batchPaymentDetails.bankAccountName) && |
| 154 | + Objects.equals(this.details, batchPaymentDetails.details) && |
| 155 | + Objects.equals(this.code, batchPaymentDetails.code) && |
| 156 | + Objects.equals(this.reference, batchPaymentDetails.reference); |
| 157 | + } |
| 158 | + |
| 159 | + @Override |
| 160 | + public int hashCode() { |
| 161 | + return Objects.hash(bankAccountNumber, bankAccountName, details, code, reference); |
| 162 | + } |
| 163 | + |
| 164 | + |
| 165 | + @Override |
| 166 | + public String toString() { |
| 167 | + StringBuilder sb = new StringBuilder(); |
| 168 | + sb.append("class BatchPaymentDetails {\n"); |
| 169 | + |
| 170 | + sb.append(" bankAccountNumber: ").append(toIndentedString(bankAccountNumber)).append("\n"); |
| 171 | + sb.append(" bankAccountName: ").append(toIndentedString(bankAccountName)).append("\n"); |
| 172 | + sb.append(" details: ").append(toIndentedString(details)).append("\n"); |
| 173 | + sb.append(" code: ").append(toIndentedString(code)).append("\n"); |
| 174 | + sb.append(" reference: ").append(toIndentedString(reference)).append("\n"); |
| 175 | + sb.append("}"); |
| 176 | + return sb.toString(); |
| 177 | + } |
| 178 | + |
| 179 | + /** |
| 180 | + * Convert the given object to string with each line indented by 4 spaces |
| 181 | + * (except the first line). |
| 182 | + */ |
| 183 | + private String toIndentedString(java.lang.Object o) { |
| 184 | + if (o == null) { |
| 185 | + return "null"; |
| 186 | + } |
| 187 | + return o.toString().replace("\n", "\n "); |
| 188 | + } |
| 189 | + |
| 190 | +} |
| 191 | + |
0 commit comments