-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
HMAN-319 - add V2 "Submit event for case" endpoint
- Loading branch information
1 parent
4cb9607
commit 356e4ac
Showing
6 changed files
with
115 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
66 changes: 66 additions & 0 deletions
66
src/main/java/uk/gov/hmcts/reform/ccd/client/model/CaseResource.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
package uk.gov.hmcts.reform.ccd.client.model; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import com.fasterxml.jackson.databind.JsonNode; | ||
import lombok.Data; | ||
import lombok.EqualsAndHashCode; | ||
import lombok.NoArgsConstructor; | ||
|
||
import java.time.LocalDateTime; | ||
import java.util.Map; | ||
|
||
@Data | ||
@EqualsAndHashCode | ||
@NoArgsConstructor | ||
public class CaseResource { | ||
|
||
@JsonProperty("id") | ||
private String reference; | ||
|
||
@JsonProperty("jurisdiction") | ||
private String jurisdiction; | ||
|
||
@JsonProperty("case_type") | ||
private String caseType; | ||
|
||
@JsonProperty("created_on") | ||
private LocalDateTime createdOn; | ||
|
||
@JsonProperty("last_modified_on") | ||
private LocalDateTime lastModifiedOn; | ||
|
||
@JsonProperty("last_state_modified_on") | ||
private LocalDateTime lastStateModifiedOn; | ||
|
||
@JsonProperty("state") | ||
private String state; | ||
|
||
@JsonProperty("security_classification") | ||
private Classification securityClassification; | ||
|
||
@JsonProperty("data") | ||
private Map<String, JsonNode> data; | ||
|
||
@JsonProperty("data_classification") | ||
private Map<String, JsonNode> dataClassification; | ||
|
||
@JsonProperty("after_submit_callback_response") | ||
@SuppressWarnings("squid:common-java:DuplicatedBlocks") | ||
private SubmittedCallbackResponse afterSubmitCallbackResponse; | ||
|
||
@JsonProperty("callback_response_status_code") | ||
@SuppressWarnings("squid:common-java:DuplicatedBlocks") | ||
private Integer callbackResponseStatusCode; | ||
|
||
@JsonProperty("callback_response_status") | ||
@SuppressWarnings("squid:common-java:DuplicatedBlocks") | ||
private String callbackResponseStatus; | ||
|
||
@JsonProperty("delete_draft_response_status_code") | ||
@SuppressWarnings("squid:common-java:DuplicatedBlocks") | ||
private Integer deleteDraftResponseStatusCode; | ||
|
||
@JsonProperty("delete_draft_response_status") | ||
@SuppressWarnings("squid:common-java:DuplicatedBlocks") | ||
private String deleteDraftResponseStatus; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters