Skip to content

Commit 04c1972

Browse files
authored
Merge pull request #14 from companieshouse/PCI-715-store-address
Added annotation to store address correctly
2 parents 16bc1f6 + 1b3402b commit 04c1972

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/main/java/uk/gov/companieshouse/orders/api/model/DeliveryDetails.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,17 @@
11
package uk.gov.companieshouse.orders.api.model;
22

3+
import com.fasterxml.jackson.annotation.JsonProperty;
34
import com.google.gson.Gson;
5+
import org.springframework.data.mongodb.core.mapping.Field;
46

57
public class DeliveryDetails {
68

9+
@Field("address_line_1")
10+
@JsonProperty("address_line_1")
711
private String addressLine1;
812

13+
@Field("address_line_2")
14+
@JsonProperty("address_line_2")
915
private String addressLine2;
1016

1117
private String country;

0 commit comments

Comments
 (0)