|
| 1 | +/* |
| 2 | + * Copyright 2020 Basis Technology Corp. |
| 3 | + * |
| 4 | + * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | + * you may not use this file except in compliance with the License. |
| 6 | + * You may obtain a copy of the License at |
| 7 | + * |
| 8 | + * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | + * |
| 10 | + * Unless required by applicable law or agreed to in writing, software |
| 11 | + * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | + * See the License for the specific language governing permissions and |
| 14 | + * limitations under the License. |
| 15 | + */ |
| 16 | + |
| 17 | +package com.basistech.rosette.apimodel.jackson; |
| 18 | + |
| 19 | +import com.fasterxml.jackson.annotation.JsonCreator; |
| 20 | +import com.fasterxml.jackson.annotation.JsonInclude; |
| 21 | +import com.fasterxml.jackson.annotation.JsonProperty; |
| 22 | +import com.fasterxml.jackson.annotation.JsonTypeName; |
| 23 | +import com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder; |
| 24 | + |
| 25 | +@JsonTypeName("FieldedAddress") |
| 26 | +@JsonInclude(JsonInclude.Include.NON_NULL) |
| 27 | +public abstract class FieldedAddressMixin { |
| 28 | + |
| 29 | + @JsonCreator |
| 30 | + protected FieldedAddressMixin(@JsonProperty("house") String house, |
| 31 | + @JsonProperty("houseNumber") String houseNumber, |
| 32 | + @JsonProperty("road") String road, |
| 33 | + @JsonProperty("unit") String unit, |
| 34 | + @JsonProperty("level") String level, |
| 35 | + @JsonProperty("staircase") String staircase, |
| 36 | + @JsonProperty("entrance") String entrance, |
| 37 | + @JsonProperty("suburb") String suburb, |
| 38 | + @JsonProperty("cityDistrict") String cityDistrict, |
| 39 | + @JsonProperty("city") String city, |
| 40 | + @JsonProperty("island") String island, |
| 41 | + @JsonProperty("stateDistrict") String stateDistrict, |
| 42 | + @JsonProperty("state") String state, |
| 43 | + @JsonProperty("countryRegion") String countryRegion, |
| 44 | + @JsonProperty("country") String country, |
| 45 | + @JsonProperty("worldRegion") String worldRegion, |
| 46 | + @JsonProperty("postCode") String postCode, |
| 47 | + @JsonProperty("poBox") String poBox) { |
| 48 | + // |
| 49 | + } |
| 50 | + |
| 51 | + @JsonPOJOBuilder(withPrefix = "") |
| 52 | + abstract class FieldedAddressBuilderMixin { |
| 53 | + } |
| 54 | +} |
0 commit comments