|
| 1 | +/* |
| 2 | + * Adyen Checkout API |
| 3 | + * |
| 4 | + * The version of the OpenAPI document: 71 |
| 5 | + * |
| 6 | + * |
| 7 | + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). |
| 8 | + * https://openapi-generator.tech |
| 9 | + * Do not edit the class manually. |
| 10 | + */ |
| 11 | + |
| 12 | + |
| 13 | +package com.adyen.model.checkout; |
| 14 | + |
| 15 | +import java.util.Objects; |
| 16 | +import java.util.Arrays; |
| 17 | +import java.util.Map; |
| 18 | +import java.util.HashMap; |
| 19 | +import com.fasterxml.jackson.annotation.JsonInclude; |
| 20 | +import com.fasterxml.jackson.annotation.JsonProperty; |
| 21 | +import com.fasterxml.jackson.annotation.JsonCreator; |
| 22 | +import com.fasterxml.jackson.annotation.JsonTypeName; |
| 23 | +import com.fasterxml.jackson.annotation.JsonValue; |
| 24 | +import io.swagger.annotations.ApiModel; |
| 25 | +import io.swagger.annotations.ApiModelProperty; |
| 26 | +import com.fasterxml.jackson.annotation.JsonPropertyOrder; |
| 27 | +import com.fasterxml.jackson.core.JsonProcessingException; |
| 28 | + |
| 29 | + |
| 30 | +/** |
| 31 | + * EBankingFinlandDetails |
| 32 | + */ |
| 33 | +@JsonPropertyOrder({ |
| 34 | + EBankingFinlandDetails.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID, |
| 35 | + EBankingFinlandDetails.JSON_PROPERTY_ISSUER, |
| 36 | + EBankingFinlandDetails.JSON_PROPERTY_TYPE |
| 37 | +}) |
| 38 | + |
| 39 | +public class EBankingFinlandDetails { |
| 40 | + public static final String JSON_PROPERTY_CHECKOUT_ATTEMPT_ID = "checkoutAttemptId"; |
| 41 | + private String checkoutAttemptId; |
| 42 | + |
| 43 | + public static final String JSON_PROPERTY_ISSUER = "issuer"; |
| 44 | + private String issuer; |
| 45 | + |
| 46 | + /** |
| 47 | + * **ebanking_FI** |
| 48 | + */ |
| 49 | + public enum TypeEnum { |
| 50 | + EBANKING_FI("ebanking_FI"); |
| 51 | + |
| 52 | + private String value; |
| 53 | + |
| 54 | + TypeEnum(String value) { |
| 55 | + this.value = value; |
| 56 | + } |
| 57 | + |
| 58 | + @JsonValue |
| 59 | + public String getValue() { |
| 60 | + return value; |
| 61 | + } |
| 62 | + |
| 63 | + @Override |
| 64 | + public String toString() { |
| 65 | + return String.valueOf(value); |
| 66 | + } |
| 67 | + |
| 68 | + @JsonCreator |
| 69 | + public static TypeEnum fromValue(String value) { |
| 70 | + for (TypeEnum b : TypeEnum.values()) { |
| 71 | + if (b.value.equals(value)) { |
| 72 | + return b; |
| 73 | + } |
| 74 | + } |
| 75 | + throw new IllegalArgumentException("Unexpected value '" + value + "'"); |
| 76 | + } |
| 77 | + } |
| 78 | + |
| 79 | + public static final String JSON_PROPERTY_TYPE = "type"; |
| 80 | + private TypeEnum type; |
| 81 | + |
| 82 | + public EBankingFinlandDetails() { |
| 83 | + } |
| 84 | + |
| 85 | + /** |
| 86 | + * The checkout attempt identifier. |
| 87 | + * |
| 88 | + * @param checkoutAttemptId |
| 89 | + * @return the current {@code EBankingFinlandDetails} instance, allowing for method chaining |
| 90 | + */ |
| 91 | + public EBankingFinlandDetails checkoutAttemptId(String checkoutAttemptId) { |
| 92 | + this.checkoutAttemptId = checkoutAttemptId; |
| 93 | + return this; |
| 94 | + } |
| 95 | + |
| 96 | + /** |
| 97 | + * The checkout attempt identifier. |
| 98 | + * @return checkoutAttemptId |
| 99 | + */ |
| 100 | + @ApiModelProperty(value = "The checkout attempt identifier.") |
| 101 | + @JsonProperty(JSON_PROPERTY_CHECKOUT_ATTEMPT_ID) |
| 102 | + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) |
| 103 | + public String getCheckoutAttemptId() { |
| 104 | + return checkoutAttemptId; |
| 105 | + } |
| 106 | + |
| 107 | + /** |
| 108 | + * The checkout attempt identifier. |
| 109 | + * |
| 110 | + * @param checkoutAttemptId |
| 111 | + */ |
| 112 | + @JsonProperty(JSON_PROPERTY_CHECKOUT_ATTEMPT_ID) |
| 113 | + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) |
| 114 | + public void setCheckoutAttemptId(String checkoutAttemptId) { |
| 115 | + this.checkoutAttemptId = checkoutAttemptId; |
| 116 | + } |
| 117 | + |
| 118 | + /** |
| 119 | + * The Ebanking Finland issuer value of the shopper's selected bank. |
| 120 | + * |
| 121 | + * @param issuer |
| 122 | + * @return the current {@code EBankingFinlandDetails} instance, allowing for method chaining |
| 123 | + */ |
| 124 | + public EBankingFinlandDetails issuer(String issuer) { |
| 125 | + this.issuer = issuer; |
| 126 | + return this; |
| 127 | + } |
| 128 | + |
| 129 | + /** |
| 130 | + * The Ebanking Finland issuer value of the shopper's selected bank. |
| 131 | + * @return issuer |
| 132 | + */ |
| 133 | + @ApiModelProperty(value = "The Ebanking Finland issuer value of the shopper's selected bank.") |
| 134 | + @JsonProperty(JSON_PROPERTY_ISSUER) |
| 135 | + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) |
| 136 | + public String getIssuer() { |
| 137 | + return issuer; |
| 138 | + } |
| 139 | + |
| 140 | + /** |
| 141 | + * The Ebanking Finland issuer value of the shopper's selected bank. |
| 142 | + * |
| 143 | + * @param issuer |
| 144 | + */ |
| 145 | + @JsonProperty(JSON_PROPERTY_ISSUER) |
| 146 | + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) |
| 147 | + public void setIssuer(String issuer) { |
| 148 | + this.issuer = issuer; |
| 149 | + } |
| 150 | + |
| 151 | + /** |
| 152 | + * **ebanking_FI** |
| 153 | + * |
| 154 | + * @param type |
| 155 | + * @return the current {@code EBankingFinlandDetails} instance, allowing for method chaining |
| 156 | + */ |
| 157 | + public EBankingFinlandDetails type(TypeEnum type) { |
| 158 | + this.type = type; |
| 159 | + return this; |
| 160 | + } |
| 161 | + |
| 162 | + /** |
| 163 | + * **ebanking_FI** |
| 164 | + * @return type |
| 165 | + */ |
| 166 | + @ApiModelProperty(required = true, value = "**ebanking_FI**") |
| 167 | + @JsonProperty(JSON_PROPERTY_TYPE) |
| 168 | + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) |
| 169 | + public TypeEnum getType() { |
| 170 | + return type; |
| 171 | + } |
| 172 | + |
| 173 | + /** |
| 174 | + * **ebanking_FI** |
| 175 | + * |
| 176 | + * @param type |
| 177 | + */ |
| 178 | + @JsonProperty(JSON_PROPERTY_TYPE) |
| 179 | + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) |
| 180 | + public void setType(TypeEnum type) { |
| 181 | + this.type = type; |
| 182 | + } |
| 183 | + |
| 184 | + /** |
| 185 | + * Return true if this EBankingFinlandDetails object is equal to o. |
| 186 | + */ |
| 187 | + @Override |
| 188 | + public boolean equals(Object o) { |
| 189 | + if (this == o) { |
| 190 | + return true; |
| 191 | + } |
| 192 | + if (o == null || getClass() != o.getClass()) { |
| 193 | + return false; |
| 194 | + } |
| 195 | + EBankingFinlandDetails ebankingFinlandDetails = (EBankingFinlandDetails) o; |
| 196 | + return Objects.equals(this.checkoutAttemptId, ebankingFinlandDetails.checkoutAttemptId) && |
| 197 | + Objects.equals(this.issuer, ebankingFinlandDetails.issuer) && |
| 198 | + Objects.equals(this.type, ebankingFinlandDetails.type); |
| 199 | + } |
| 200 | + |
| 201 | + @Override |
| 202 | + public int hashCode() { |
| 203 | + return Objects.hash(checkoutAttemptId, issuer, type); |
| 204 | + } |
| 205 | + |
| 206 | + @Override |
| 207 | + public String toString() { |
| 208 | + StringBuilder sb = new StringBuilder(); |
| 209 | + sb.append("class EBankingFinlandDetails {\n"); |
| 210 | + sb.append(" checkoutAttemptId: ").append(toIndentedString(checkoutAttemptId)).append("\n"); |
| 211 | + sb.append(" issuer: ").append(toIndentedString(issuer)).append("\n"); |
| 212 | + sb.append(" type: ").append(toIndentedString(type)).append("\n"); |
| 213 | + sb.append("}"); |
| 214 | + return sb.toString(); |
| 215 | + } |
| 216 | + |
| 217 | + /** |
| 218 | + * Convert the given object to string with each line indented by 4 spaces |
| 219 | + * (except the first line). |
| 220 | + */ |
| 221 | + private String toIndentedString(Object o) { |
| 222 | + if (o == null) { |
| 223 | + return "null"; |
| 224 | + } |
| 225 | + return o.toString().replace("\n", "\n "); |
| 226 | + } |
| 227 | + |
| 228 | +/** |
| 229 | + * Create an instance of EBankingFinlandDetails given an JSON string |
| 230 | + * |
| 231 | + * @param jsonString JSON string |
| 232 | + * @return An instance of EBankingFinlandDetails |
| 233 | + * @throws JsonProcessingException if the JSON string is invalid with respect to EBankingFinlandDetails |
| 234 | + */ |
| 235 | + public static EBankingFinlandDetails fromJson(String jsonString) throws JsonProcessingException { |
| 236 | + return JSON.getMapper().readValue(jsonString, EBankingFinlandDetails.class); |
| 237 | + } |
| 238 | +/** |
| 239 | + * Convert an instance of EBankingFinlandDetails to an JSON string |
| 240 | + * |
| 241 | + * @return JSON string |
| 242 | + */ |
| 243 | + public String toJson() throws JsonProcessingException { |
| 244 | + return JSON.getMapper().writeValueAsString(this); |
| 245 | + } |
| 246 | +} |
0 commit comments