|
| 1 | +/** |
| 2 | +* SDK |
| 3 | +* |
| 4 | +* This library allows to interact with the 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 com.wallee.sdk.model; |
| 21 | + |
| 22 | +import java.util.Objects; |
| 23 | +import java.util.Arrays; |
| 24 | +import com.fasterxml.jackson.annotation.JsonProperty; |
| 25 | +import com.fasterxml.jackson.annotation.JsonCreator; |
| 26 | +import com.fasterxml.jackson.annotation.JsonValue; |
| 27 | +import com.wallee.sdk.model.PaymentTerminalAddress; |
| 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 PaymentTerminalContactAddress extends PaymentTerminalAddress { |
| 39 | + |
| 40 | + |
| 41 | + |
| 42 | + @Override |
| 43 | + public boolean equals(java.lang.Object o) { |
| 44 | + if (this == o) { |
| 45 | + return true; |
| 46 | + } |
| 47 | + if (o == null || getClass() != o.getClass()) { |
| 48 | + return false; |
| 49 | + } |
| 50 | + PaymentTerminalContactAddress paymentTerminalContactAddress = (PaymentTerminalContactAddress) o; |
| 51 | + return Objects.equals(this.city, paymentTerminalContactAddress.city) && |
| 52 | + Objects.equals(this.country, paymentTerminalContactAddress.country) && |
| 53 | + Objects.equals(this.dependentLocality, paymentTerminalContactAddress.dependentLocality) && |
| 54 | + Objects.equals(this.emailAddress, paymentTerminalContactAddress.emailAddress) && |
| 55 | + Objects.equals(this.familyName, paymentTerminalContactAddress.familyName) && |
| 56 | + Objects.equals(this.givenName, paymentTerminalContactAddress.givenName) && |
| 57 | + Objects.equals(this.mobilePhoneNumber, paymentTerminalContactAddress.mobilePhoneNumber) && |
| 58 | + Objects.equals(this.organizationName, paymentTerminalContactAddress.organizationName) && |
| 59 | + Objects.equals(this.phoneNumber, paymentTerminalContactAddress.phoneNumber) && |
| 60 | + Objects.equals(this.postalState, paymentTerminalContactAddress.postalState) && |
| 61 | + Objects.equals(this.postcode, paymentTerminalContactAddress.postcode) && |
| 62 | + Objects.equals(this.salutation, paymentTerminalContactAddress.salutation) && |
| 63 | + Objects.equals(this.sortingCode, paymentTerminalContactAddress.sortingCode) && |
| 64 | + Objects.equals(this.street, paymentTerminalContactAddress.street) && |
| 65 | + super.equals(o); |
| 66 | + } |
| 67 | + |
| 68 | + @Override |
| 69 | + public int hashCode() { |
| 70 | + return Objects.hash(city, country, dependentLocality, emailAddress, familyName, givenName, mobilePhoneNumber, organizationName, phoneNumber, postalState, postcode, salutation, sortingCode, street, super.hashCode()); |
| 71 | + } |
| 72 | + |
| 73 | + |
| 74 | + @Override |
| 75 | + public String toString() { |
| 76 | + StringBuilder sb = new StringBuilder(); |
| 77 | + sb.append("class PaymentTerminalContactAddress {\n"); |
| 78 | + sb.append(" ").append(toIndentedString(super.toString())).append("\n"); |
| 79 | + sb.append(" city: ").append(toIndentedString(city)).append("\n"); |
| 80 | + sb.append(" country: ").append(toIndentedString(country)).append("\n"); |
| 81 | + sb.append(" dependentLocality: ").append(toIndentedString(dependentLocality)).append("\n"); |
| 82 | + sb.append(" emailAddress: ").append(toIndentedString(emailAddress)).append("\n"); |
| 83 | + sb.append(" familyName: ").append(toIndentedString(familyName)).append("\n"); |
| 84 | + sb.append(" givenName: ").append(toIndentedString(givenName)).append("\n"); |
| 85 | + sb.append(" mobilePhoneNumber: ").append(toIndentedString(mobilePhoneNumber)).append("\n"); |
| 86 | + sb.append(" organizationName: ").append(toIndentedString(organizationName)).append("\n"); |
| 87 | + sb.append(" phoneNumber: ").append(toIndentedString(phoneNumber)).append("\n"); |
| 88 | + sb.append(" postalState: ").append(toIndentedString(postalState)).append("\n"); |
| 89 | + sb.append(" postcode: ").append(toIndentedString(postcode)).append("\n"); |
| 90 | + sb.append(" salutation: ").append(toIndentedString(salutation)).append("\n"); |
| 91 | + sb.append(" sortingCode: ").append(toIndentedString(sortingCode)).append("\n"); |
| 92 | + sb.append(" street: ").append(toIndentedString(street)).append("\n"); |
| 93 | + sb.append("}"); |
| 94 | + return sb.toString(); |
| 95 | + } |
| 96 | + |
| 97 | + /** |
| 98 | + * Convert the given object to string with each line indented by 4 spaces |
| 99 | + * (except the first line). |
| 100 | + */ |
| 101 | + private String toIndentedString(java.lang.Object o) { |
| 102 | + if (o == null) { |
| 103 | + return "null"; |
| 104 | + } |
| 105 | + return o.toString().replace("\n", "\n "); |
| 106 | + } |
| 107 | + |
| 108 | +} |
| 109 | + |
0 commit comments