generated from hmcts/spring-boot-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PO-591: GET Draft Account API implementation.
- Loading branch information
1 parent
3df4d8c
commit 6ff6849
Showing
15 changed files
with
489 additions
and
42 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
57 changes: 57 additions & 0 deletions
57
src/main/java/uk/gov/hmcts/opal/dto/GetDraftAccountResponseDto.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,57 @@ | ||
package uk.gov.hmcts.opal.dto; | ||
|
||
import com.fasterxml.jackson.annotation.JsonInclude; | ||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Builder; | ||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
|
||
import java.time.OffsetDateTime; | ||
|
||
@Data | ||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
@Builder | ||
@JsonInclude(JsonInclude.Include.NON_NULL) | ||
public class GetDraftAccountResponseDto implements ToJsonString { | ||
|
||
@JsonProperty("draft_account_id") | ||
private Long draftAccountId; | ||
|
||
@JsonProperty("business_unit_id") | ||
private Short businessUnitId; | ||
|
||
@JsonProperty("created_at") | ||
private OffsetDateTime createdDate; | ||
|
||
@JsonProperty("submitted_by") | ||
private String submittedBy; | ||
|
||
@JsonProperty("validated_at") | ||
private OffsetDateTime validatedDate; | ||
|
||
@JsonProperty("validated_by") | ||
private String validatedBy; | ||
|
||
@JsonProperty("account") | ||
private String account; | ||
|
||
@JsonProperty("account_snapshot") | ||
private String accountSnapshot; | ||
|
||
@JsonProperty("account_type") | ||
private String accountType; | ||
|
||
@JsonProperty("account_status") | ||
private String accountStatus; | ||
|
||
@JsonProperty("timeline_data") | ||
private String timelineData; | ||
|
||
@JsonProperty("account_number") | ||
private String accountNumber; | ||
|
||
@JsonProperty("account_id") | ||
private Long accountId; | ||
} |
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
17 changes: 17 additions & 0 deletions
17
src/main/java/uk/gov/hmcts/opal/exception/JsonSchemaValidationException.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,17 @@ | ||
package uk.gov.hmcts.opal.exception; | ||
|
||
public class JsonSchemaValidationException extends RuntimeException { | ||
|
||
public JsonSchemaValidationException(String msg) { | ||
super(msg); | ||
} | ||
|
||
public JsonSchemaValidationException(Throwable t) { | ||
super(t); | ||
} | ||
|
||
public JsonSchemaValidationException(String message, Throwable t) { | ||
super(message, t); | ||
} | ||
|
||
} |
Oops, something went wrong.