Skip to content

Commit

Permalink
Merge pull request #484 from hmcts/search-party
Browse files Browse the repository at this point in the history
Updated SearchParty type to include collectionFieldName
  • Loading branch information
rajaram-nagarajan authored Jun 13, 2024
2 parents 294e087 + b5b1d5f commit aa6f910
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@
@Data
@ComplexType(name = "SearchParty")
public class SearchParty {

@JsonProperty("CollectionFieldName")
private String collectionFieldName;

@JsonProperty("Name")
private String name;

Expand All @@ -35,18 +39,20 @@ public class SearchParty {
private LocalDate dateOfDeath;

@JsonCreator
public SearchParty(@JsonProperty("Name") String name,
public SearchParty(@JsonProperty("CollectionFieldName") String collectionFieldName,
@JsonProperty("Name") String name,
@JsonProperty("EmailAddress") String emailAddress,
@JsonProperty("AddressLine1") String addressLine1,
@JsonProperty("Postcode") String postcode,
@JsonProperty("DOB") LocalDate dateOfBirth,
@JsonProperty("DOD") LocalDate dateOfDeath) {
this.collectionFieldName = collectionFieldName;
this.name = name;
this.emailAddress = emailAddress;
this.addressLine1 = addressLine1;
this.postcode = postcode;
this.dateOfBirth = dateOfBirth;
this.dateOfDeath = dateOfDeath;

}

}

0 comments on commit aa6f910

Please sign in to comment.