|
| 1 | +/** |
| 2 | +* PostFinance Checkout SDK |
| 3 | +* |
| 4 | +* This library allows to interact with the PostFinance Checkout payment service. |
| 5 | +* |
| 6 | +* Licensed under the Apache License, Version 2.0 (the "License"); |
| 7 | +* you may not use this file except in compliance with the License. |
| 8 | +* You may obtain a copy of the License at |
| 9 | +* |
| 10 | +* http://www.apache.org/licenses/LICENSE-2.0 |
| 11 | +* |
| 12 | +* Unless required by applicable law or agreed to in writing, software |
| 13 | +* distributed under the License is distributed on an "AS IS" BASIS, |
| 14 | +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 15 | +* See the License for the specific language governing permissions and |
| 16 | +* limitations under the License. |
| 17 | +*/ |
| 18 | + |
| 19 | + |
| 20 | +package ch.postfinance.sdk.model; |
| 21 | + |
| 22 | +import java.util.Objects; |
| 23 | +import java.util.Arrays; |
| 24 | +import ch.postfinance.sdk.model.InvoiceReconciliationRecord; |
| 25 | +import ch.postfinance.sdk.model.TransactionInvoice; |
| 26 | +import com.fasterxml.jackson.annotation.JsonProperty; |
| 27 | +import com.fasterxml.jackson.annotation.JsonCreator; |
| 28 | +import com.fasterxml.jackson.annotation.JsonValue; |
| 29 | +import io.swagger.annotations.ApiModel; |
| 30 | +import io.swagger.annotations.ApiModelProperty; |
| 31 | +import java.math.BigDecimal; |
| 32 | +import java.time.OffsetDateTime; |
| 33 | +import java.util.*; |
| 34 | +import java.time.OffsetDateTime; |
| 35 | + |
| 36 | +/** |
| 37 | + * |
| 38 | + */ |
| 39 | +@ApiModel(description = "") |
| 40 | + |
| 41 | +public class InvoiceReconciliationRecordInvoiceLink { |
| 42 | + |
| 43 | + @JsonProperty("amount") |
| 44 | + protected BigDecimal amount = null; |
| 45 | + |
| 46 | + |
| 47 | + @JsonProperty("createdOn") |
| 48 | + protected OffsetDateTime createdOn = null; |
| 49 | + |
| 50 | + |
| 51 | + @JsonProperty("id") |
| 52 | + protected Long id = null; |
| 53 | + |
| 54 | + |
| 55 | + @JsonProperty("invoice") |
| 56 | + protected TransactionInvoice invoice = null; |
| 57 | + |
| 58 | + |
| 59 | + @JsonProperty("linkedSpaceId") |
| 60 | + protected Long linkedSpaceId = null; |
| 61 | + |
| 62 | + |
| 63 | + @JsonProperty("record") |
| 64 | + protected InvoiceReconciliationRecord record = null; |
| 65 | + |
| 66 | + |
| 67 | + |
| 68 | + /** |
| 69 | + * |
| 70 | + * @return amount |
| 71 | + **/ |
| 72 | + @ApiModelProperty(value = "") |
| 73 | + public BigDecimal getAmount() { |
| 74 | + return amount; |
| 75 | + } |
| 76 | + |
| 77 | + |
| 78 | + /** |
| 79 | + * The created on date indicates the date on which the entity was stored into the database. |
| 80 | + * @return createdOn |
| 81 | + **/ |
| 82 | + @ApiModelProperty(value = "The created on date indicates the date on which the entity was stored into the database.") |
| 83 | + public OffsetDateTime getCreatedOn() { |
| 84 | + return createdOn; |
| 85 | + } |
| 86 | + |
| 87 | + |
| 88 | + /** |
| 89 | + * The ID is the primary key of the entity. The ID identifies the entity uniquely. |
| 90 | + * @return id |
| 91 | + **/ |
| 92 | + @ApiModelProperty(value = "The ID is the primary key of the entity. The ID identifies the entity uniquely.") |
| 93 | + public Long getId() { |
| 94 | + return id; |
| 95 | + } |
| 96 | + |
| 97 | + |
| 98 | + /** |
| 99 | + * |
| 100 | + * @return invoice |
| 101 | + **/ |
| 102 | + @ApiModelProperty(value = "") |
| 103 | + public TransactionInvoice getInvoice() { |
| 104 | + return invoice; |
| 105 | + } |
| 106 | + |
| 107 | + |
| 108 | + /** |
| 109 | + * The linked space id holds the ID of the space to which the entity belongs to. |
| 110 | + * @return linkedSpaceId |
| 111 | + **/ |
| 112 | + @ApiModelProperty(value = "The linked space id holds the ID of the space to which the entity belongs to.") |
| 113 | + public Long getLinkedSpaceId() { |
| 114 | + return linkedSpaceId; |
| 115 | + } |
| 116 | + |
| 117 | + |
| 118 | + /** |
| 119 | + * |
| 120 | + * @return record |
| 121 | + **/ |
| 122 | + @ApiModelProperty(value = "") |
| 123 | + public InvoiceReconciliationRecord getRecord() { |
| 124 | + return record; |
| 125 | + } |
| 126 | + |
| 127 | + |
| 128 | + |
| 129 | + @Override |
| 130 | + public boolean equals(java.lang.Object o) { |
| 131 | + if (this == o) { |
| 132 | + return true; |
| 133 | + } |
| 134 | + if (o == null || getClass() != o.getClass()) { |
| 135 | + return false; |
| 136 | + } |
| 137 | + InvoiceReconciliationRecordInvoiceLink invoiceReconciliationRecordInvoiceLink = (InvoiceReconciliationRecordInvoiceLink) o; |
| 138 | + return Objects.equals(this.amount, invoiceReconciliationRecordInvoiceLink.amount) && |
| 139 | + Objects.equals(this.createdOn, invoiceReconciliationRecordInvoiceLink.createdOn) && |
| 140 | + Objects.equals(this.id, invoiceReconciliationRecordInvoiceLink.id) && |
| 141 | + Objects.equals(this.invoice, invoiceReconciliationRecordInvoiceLink.invoice) && |
| 142 | + Objects.equals(this.linkedSpaceId, invoiceReconciliationRecordInvoiceLink.linkedSpaceId) && |
| 143 | + Objects.equals(this.record, invoiceReconciliationRecordInvoiceLink.record); |
| 144 | + } |
| 145 | + |
| 146 | + @Override |
| 147 | + public int hashCode() { |
| 148 | + return Objects.hash(amount, createdOn, id, invoice, linkedSpaceId, record); |
| 149 | + } |
| 150 | + |
| 151 | + |
| 152 | + @Override |
| 153 | + public String toString() { |
| 154 | + StringBuilder sb = new StringBuilder(); |
| 155 | + sb.append("class InvoiceReconciliationRecordInvoiceLink {\n"); |
| 156 | + |
| 157 | + sb.append(" amount: ").append(toIndentedString(amount)).append("\n"); |
| 158 | + sb.append(" createdOn: ").append(toIndentedString(createdOn)).append("\n"); |
| 159 | + sb.append(" id: ").append(toIndentedString(id)).append("\n"); |
| 160 | + sb.append(" invoice: ").append(toIndentedString(invoice)).append("\n"); |
| 161 | + sb.append(" linkedSpaceId: ").append(toIndentedString(linkedSpaceId)).append("\n"); |
| 162 | + sb.append(" record: ").append(toIndentedString(record)).append("\n"); |
| 163 | + sb.append("}"); |
| 164 | + return sb.toString(); |
| 165 | + } |
| 166 | + |
| 167 | + /** |
| 168 | + * Convert the given object to string with each line indented by 4 spaces |
| 169 | + * (except the first line). |
| 170 | + */ |
| 171 | + private String toIndentedString(java.lang.Object o) { |
| 172 | + if (o == null) { |
| 173 | + return "null"; |
| 174 | + } |
| 175 | + return o.toString().replace("\n", "\n "); |
| 176 | + } |
| 177 | + |
| 178 | +} |
| 179 | + |
0 commit comments