|
| 1 | +/* |
| 2 | + * Configuration API |
| 3 | + * |
| 4 | + * The version of the OpenAPI document: 2 |
| 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 | +package com.adyen.model.balanceplatform; |
| 13 | + |
| 14 | +import com.fasterxml.jackson.annotation.JsonCreator; |
| 15 | +import com.fasterxml.jackson.annotation.JsonInclude; |
| 16 | +import com.fasterxml.jackson.annotation.JsonProperty; |
| 17 | +import com.fasterxml.jackson.annotation.JsonPropertyOrder; |
| 18 | +import com.fasterxml.jackson.annotation.JsonValue; |
| 19 | +import com.fasterxml.jackson.core.JsonProcessingException; |
| 20 | +import java.util.*; |
| 21 | +import java.util.Arrays; |
| 22 | +import java.util.logging.Logger; |
| 23 | + |
| 24 | +/** USInternationalAchPriorityRequirement */ |
| 25 | +@JsonPropertyOrder({ |
| 26 | + USInternationalAchPriorityRequirement.JSON_PROPERTY_DESCRIPTION, |
| 27 | + USInternationalAchPriorityRequirement.JSON_PROPERTY_TYPE |
| 28 | +}) |
| 29 | +public class USInternationalAchPriorityRequirement { |
| 30 | + public static final String JSON_PROPERTY_DESCRIPTION = "description"; |
| 31 | + private String description; |
| 32 | + |
| 33 | + /** **usInternationalAchPriorityRequirement** */ |
| 34 | + public enum TypeEnum { |
| 35 | + USINTERNATIONALACHPRIORITYREQUIREMENT(String.valueOf("usInternationalAchPriorityRequirement")); |
| 36 | + |
| 37 | + private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); |
| 38 | + |
| 39 | + private String value; |
| 40 | + |
| 41 | + TypeEnum(String value) { |
| 42 | + this.value = value; |
| 43 | + } |
| 44 | + |
| 45 | + @JsonValue |
| 46 | + public String getValue() { |
| 47 | + return value; |
| 48 | + } |
| 49 | + |
| 50 | + @Override |
| 51 | + public String toString() { |
| 52 | + return String.valueOf(value); |
| 53 | + } |
| 54 | + |
| 55 | + @JsonCreator |
| 56 | + public static TypeEnum fromValue(String value) { |
| 57 | + for (TypeEnum b : TypeEnum.values()) { |
| 58 | + if (b.value.equals(value)) { |
| 59 | + return b; |
| 60 | + } |
| 61 | + } |
| 62 | + // handling unexpected value |
| 63 | + LOG.warning( |
| 64 | + "TypeEnum: unexpected enum value '" |
| 65 | + + value |
| 66 | + + "' - Supported values are " |
| 67 | + + Arrays.toString(TypeEnum.values())); |
| 68 | + return null; |
| 69 | + } |
| 70 | + } |
| 71 | + |
| 72 | + public static final String JSON_PROPERTY_TYPE = "type"; |
| 73 | + private TypeEnum type; |
| 74 | + |
| 75 | + public USInternationalAchPriorityRequirement() {} |
| 76 | + |
| 77 | + /** |
| 78 | + * Specifies that transactions deemed to be International ACH (IAT) per OFAC/NACHA rules cannot |
| 79 | + * have fast priority. |
| 80 | + * |
| 81 | + * @param description Specifies that transactions deemed to be International ACH (IAT) per |
| 82 | + * OFAC/NACHA rules cannot have fast priority. |
| 83 | + * @return the current {@code USInternationalAchPriorityRequirement} instance, allowing for method |
| 84 | + * chaining |
| 85 | + */ |
| 86 | + public USInternationalAchPriorityRequirement description(String description) { |
| 87 | + this.description = description; |
| 88 | + return this; |
| 89 | + } |
| 90 | + |
| 91 | + /** |
| 92 | + * Specifies that transactions deemed to be International ACH (IAT) per OFAC/NACHA rules cannot |
| 93 | + * have fast priority. |
| 94 | + * |
| 95 | + * @return description Specifies that transactions deemed to be International ACH (IAT) per |
| 96 | + * OFAC/NACHA rules cannot have fast priority. |
| 97 | + */ |
| 98 | + @JsonProperty(JSON_PROPERTY_DESCRIPTION) |
| 99 | + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) |
| 100 | + public String getDescription() { |
| 101 | + return description; |
| 102 | + } |
| 103 | + |
| 104 | + /** |
| 105 | + * Specifies that transactions deemed to be International ACH (IAT) per OFAC/NACHA rules cannot |
| 106 | + * have fast priority. |
| 107 | + * |
| 108 | + * @param description Specifies that transactions deemed to be International ACH (IAT) per |
| 109 | + * OFAC/NACHA rules cannot have fast priority. |
| 110 | + */ |
| 111 | + @JsonProperty(JSON_PROPERTY_DESCRIPTION) |
| 112 | + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) |
| 113 | + public void setDescription(String description) { |
| 114 | + this.description = description; |
| 115 | + } |
| 116 | + |
| 117 | + /** |
| 118 | + * **usInternationalAchPriorityRequirement** |
| 119 | + * |
| 120 | + * @param type **usInternationalAchPriorityRequirement** |
| 121 | + * @return the current {@code USInternationalAchPriorityRequirement} instance, allowing for method |
| 122 | + * chaining |
| 123 | + */ |
| 124 | + public USInternationalAchPriorityRequirement type(TypeEnum type) { |
| 125 | + this.type = type; |
| 126 | + return this; |
| 127 | + } |
| 128 | + |
| 129 | + /** |
| 130 | + * **usInternationalAchPriorityRequirement** |
| 131 | + * |
| 132 | + * @return type **usInternationalAchPriorityRequirement** |
| 133 | + */ |
| 134 | + @JsonProperty(JSON_PROPERTY_TYPE) |
| 135 | + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) |
| 136 | + public TypeEnum getType() { |
| 137 | + return type; |
| 138 | + } |
| 139 | + |
| 140 | + /** |
| 141 | + * **usInternationalAchPriorityRequirement** |
| 142 | + * |
| 143 | + * @param type **usInternationalAchPriorityRequirement** |
| 144 | + */ |
| 145 | + @JsonProperty(JSON_PROPERTY_TYPE) |
| 146 | + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) |
| 147 | + public void setType(TypeEnum type) { |
| 148 | + this.type = type; |
| 149 | + } |
| 150 | + |
| 151 | + /** Return true if this USInternationalAchPriorityRequirement object is equal to o. */ |
| 152 | + @Override |
| 153 | + public boolean equals(Object o) { |
| 154 | + if (this == o) { |
| 155 | + return true; |
| 156 | + } |
| 157 | + if (o == null || getClass() != o.getClass()) { |
| 158 | + return false; |
| 159 | + } |
| 160 | + USInternationalAchPriorityRequirement usInternationalAchPriorityRequirement = |
| 161 | + (USInternationalAchPriorityRequirement) o; |
| 162 | + return Objects.equals(this.description, usInternationalAchPriorityRequirement.description) |
| 163 | + && Objects.equals(this.type, usInternationalAchPriorityRequirement.type); |
| 164 | + } |
| 165 | + |
| 166 | + @Override |
| 167 | + public int hashCode() { |
| 168 | + return Objects.hash(description, type); |
| 169 | + } |
| 170 | + |
| 171 | + @Override |
| 172 | + public String toString() { |
| 173 | + StringBuilder sb = new StringBuilder(); |
| 174 | + sb.append("class USInternationalAchPriorityRequirement {\n"); |
| 175 | + sb.append(" description: ").append(toIndentedString(description)).append("\n"); |
| 176 | + sb.append(" type: ").append(toIndentedString(type)).append("\n"); |
| 177 | + sb.append("}"); |
| 178 | + return sb.toString(); |
| 179 | + } |
| 180 | + |
| 181 | + /** |
| 182 | + * Convert the given object to string with each line indented by 4 spaces (except the first line). |
| 183 | + */ |
| 184 | + private String toIndentedString(Object o) { |
| 185 | + if (o == null) { |
| 186 | + return "null"; |
| 187 | + } |
| 188 | + return o.toString().replace("\n", "\n "); |
| 189 | + } |
| 190 | + |
| 191 | + /** |
| 192 | + * Create an instance of USInternationalAchPriorityRequirement given an JSON string |
| 193 | + * |
| 194 | + * @param jsonString JSON string |
| 195 | + * @return An instance of USInternationalAchPriorityRequirement |
| 196 | + * @throws JsonProcessingException if the JSON string is invalid with respect to |
| 197 | + * USInternationalAchPriorityRequirement |
| 198 | + */ |
| 199 | + public static USInternationalAchPriorityRequirement fromJson(String jsonString) |
| 200 | + throws JsonProcessingException { |
| 201 | + return JSON.getMapper().readValue(jsonString, USInternationalAchPriorityRequirement.class); |
| 202 | + } |
| 203 | + |
| 204 | + /** |
| 205 | + * Convert an instance of USInternationalAchPriorityRequirement to an JSON string |
| 206 | + * |
| 207 | + * @return JSON string |
| 208 | + */ |
| 209 | + public String toJson() throws JsonProcessingException { |
| 210 | + return JSON.getMapper().writeValueAsString(this); |
| 211 | + } |
| 212 | +} |
0 commit comments