|
| 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.InvoiceReimbursement; |
| 25 | +import com.fasterxml.jackson.annotation.JsonProperty; |
| 26 | +import com.fasterxml.jackson.annotation.JsonCreator; |
| 27 | +import com.fasterxml.jackson.annotation.JsonValue; |
| 28 | +import io.swagger.annotations.ApiModel; |
| 29 | +import io.swagger.annotations.ApiModelProperty; |
| 30 | +import java.util.*; |
| 31 | +import java.time.OffsetDateTime; |
| 32 | + |
| 33 | +/** |
| 34 | + * |
| 35 | + */ |
| 36 | +@ApiModel(description = "") |
| 37 | + |
| 38 | +public class InvoiceReimbursementWithRefundReference extends InvoiceReimbursement { |
| 39 | + |
| 40 | + @JsonProperty("refundMerchantReference") |
| 41 | + protected String refundMerchantReference = null; |
| 42 | + |
| 43 | + |
| 44 | + |
| 45 | + /** |
| 46 | + * |
| 47 | + * @return refundMerchantReference |
| 48 | + **/ |
| 49 | + @ApiModelProperty(value = "") |
| 50 | + public String getRefundMerchantReference() { |
| 51 | + return refundMerchantReference; |
| 52 | + } |
| 53 | + |
| 54 | + |
| 55 | + |
| 56 | + @Override |
| 57 | + public boolean equals(java.lang.Object o) { |
| 58 | + if (this == o) { |
| 59 | + return true; |
| 60 | + } |
| 61 | + if (o == null || getClass() != o.getClass()) { |
| 62 | + return false; |
| 63 | + } |
| 64 | + InvoiceReimbursementWithRefundReference invoiceReimbursementWithRefundReference = (InvoiceReimbursementWithRefundReference) o; |
| 65 | + return Objects.equals(this.amount, invoiceReimbursementWithRefundReference.amount) && |
| 66 | + Objects.equals(this.createdOn, invoiceReimbursementWithRefundReference.createdOn) && |
| 67 | + Objects.equals(this.currency, invoiceReimbursementWithRefundReference.currency) && |
| 68 | + Objects.equals(this.discardedBy, invoiceReimbursementWithRefundReference.discardedBy) && |
| 69 | + Objects.equals(this.discardedOn, invoiceReimbursementWithRefundReference.discardedOn) && |
| 70 | + Objects.equals(this.id, invoiceReimbursementWithRefundReference.id) && |
| 71 | + Objects.equals(this.linkedSpaceId, invoiceReimbursementWithRefundReference.linkedSpaceId) && |
| 72 | + Objects.equals(this.paymentConnectorConfiguration, invoiceReimbursementWithRefundReference.paymentConnectorConfiguration) && |
| 73 | + Objects.equals(this.paymentInitiationAdviceFile, invoiceReimbursementWithRefundReference.paymentInitiationAdviceFile) && |
| 74 | + Objects.equals(this.processedBy, invoiceReimbursementWithRefundReference.processedBy) && |
| 75 | + Objects.equals(this.processedOn, invoiceReimbursementWithRefundReference.processedOn) && |
| 76 | + Objects.equals(this.recipientCity, invoiceReimbursementWithRefundReference.recipientCity) && |
| 77 | + Objects.equals(this.recipientCountry, invoiceReimbursementWithRefundReference.recipientCountry) && |
| 78 | + Objects.equals(this.recipientFamilyName, invoiceReimbursementWithRefundReference.recipientFamilyName) && |
| 79 | + Objects.equals(this.recipientGivenName, invoiceReimbursementWithRefundReference.recipientGivenName) && |
| 80 | + Objects.equals(this.recipientIban, invoiceReimbursementWithRefundReference.recipientIban) && |
| 81 | + Objects.equals(this.recipientPostcode, invoiceReimbursementWithRefundReference.recipientPostcode) && |
| 82 | + Objects.equals(this.recipientStreet, invoiceReimbursementWithRefundReference.recipientStreet) && |
| 83 | + Objects.equals(this.senderIban, invoiceReimbursementWithRefundReference.senderIban) && |
| 84 | + Objects.equals(this.state, invoiceReimbursementWithRefundReference.state) && |
| 85 | + Objects.equals(this.version, invoiceReimbursementWithRefundReference.version) && |
| 86 | + Objects.equals(this.refundMerchantReference, invoiceReimbursementWithRefundReference.refundMerchantReference) && |
| 87 | + super.equals(o); |
| 88 | + } |
| 89 | + |
| 90 | + @Override |
| 91 | + public int hashCode() { |
| 92 | + return Objects.hash(amount, createdOn, currency, discardedBy, discardedOn, id, linkedSpaceId, paymentConnectorConfiguration, paymentInitiationAdviceFile, processedBy, processedOn, recipientCity, recipientCountry, recipientFamilyName, recipientGivenName, recipientIban, recipientPostcode, recipientStreet, senderIban, state, version, refundMerchantReference, super.hashCode()); |
| 93 | + } |
| 94 | + |
| 95 | + |
| 96 | + @Override |
| 97 | + public String toString() { |
| 98 | + StringBuilder sb = new StringBuilder(); |
| 99 | + sb.append("class InvoiceReimbursementWithRefundReference {\n"); |
| 100 | + sb.append(" ").append(toIndentedString(super.toString())).append("\n"); |
| 101 | + sb.append(" amount: ").append(toIndentedString(amount)).append("\n"); |
| 102 | + sb.append(" createdOn: ").append(toIndentedString(createdOn)).append("\n"); |
| 103 | + sb.append(" currency: ").append(toIndentedString(currency)).append("\n"); |
| 104 | + sb.append(" discardedBy: ").append(toIndentedString(discardedBy)).append("\n"); |
| 105 | + sb.append(" discardedOn: ").append(toIndentedString(discardedOn)).append("\n"); |
| 106 | + sb.append(" id: ").append(toIndentedString(id)).append("\n"); |
| 107 | + sb.append(" linkedSpaceId: ").append(toIndentedString(linkedSpaceId)).append("\n"); |
| 108 | + sb.append(" paymentConnectorConfiguration: ").append(toIndentedString(paymentConnectorConfiguration)).append("\n"); |
| 109 | + sb.append(" paymentInitiationAdviceFile: ").append(toIndentedString(paymentInitiationAdviceFile)).append("\n"); |
| 110 | + sb.append(" processedBy: ").append(toIndentedString(processedBy)).append("\n"); |
| 111 | + sb.append(" processedOn: ").append(toIndentedString(processedOn)).append("\n"); |
| 112 | + sb.append(" recipientCity: ").append(toIndentedString(recipientCity)).append("\n"); |
| 113 | + sb.append(" recipientCountry: ").append(toIndentedString(recipientCountry)).append("\n"); |
| 114 | + sb.append(" recipientFamilyName: ").append(toIndentedString(recipientFamilyName)).append("\n"); |
| 115 | + sb.append(" recipientGivenName: ").append(toIndentedString(recipientGivenName)).append("\n"); |
| 116 | + sb.append(" recipientIban: ").append(toIndentedString(recipientIban)).append("\n"); |
| 117 | + sb.append(" recipientPostcode: ").append(toIndentedString(recipientPostcode)).append("\n"); |
| 118 | + sb.append(" recipientStreet: ").append(toIndentedString(recipientStreet)).append("\n"); |
| 119 | + sb.append(" senderIban: ").append(toIndentedString(senderIban)).append("\n"); |
| 120 | + sb.append(" state: ").append(toIndentedString(state)).append("\n"); |
| 121 | + sb.append(" version: ").append(toIndentedString(version)).append("\n"); |
| 122 | + sb.append(" refundMerchantReference: ").append(toIndentedString(refundMerchantReference)).append("\n"); |
| 123 | + sb.append("}"); |
| 124 | + return sb.toString(); |
| 125 | + } |
| 126 | + |
| 127 | + /** |
| 128 | + * Convert the given object to string with each line indented by 4 spaces |
| 129 | + * (except the first line). |
| 130 | + */ |
| 131 | + private String toIndentedString(java.lang.Object o) { |
| 132 | + if (o == null) { |
| 133 | + return "null"; |
| 134 | + } |
| 135 | + return o.toString().replace("\n", "\n "); |
| 136 | + } |
| 137 | + |
| 138 | +} |
| 139 | + |
0 commit comments