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.
* add cache plus refactor * resolve conflicts * replace draft accounts PUT * fix(deps): update flyway to v10.18.1 * Revert "PO-802 make test user 1 both an inputter and a checker (#546)" (#552) This reverts commit d416df3. Co-authored-by: Dan Lysiak <50049163+danlysiak@users.noreply.github.com> * PO-802 and 810 Reassign permissions to some users and remove duplicat… (#553) * PO-802 and 810 Reassign permissions to some users and remove duplicate business units assigned to some users as a result of removing RM BUs * adjustments to tests for corrected user data --------- Co-authored-by: CadeFaulkner <cade.faulkner@hmcts.net> * fix(deps): update junit5 monorepo * fix(deps): update serenityversion to v4.2.3 --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: abrahamdennis <148991960+abrahamdennis@users.noreply.github.com> Co-authored-by: Dan Lysiak <50049163+danlysiak@users.noreply.github.com> Co-authored-by: CadeFaulkner <cade.faulkner@hmcts.net>
- Loading branch information
1 parent
8c8dea7
commit e904895
Showing
8 changed files
with
331 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
14 changes: 14 additions & 0 deletions
14
src/main/java/uk/gov/hmcts/opal/dto/DraftAccountRequestDto.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,14 @@ | ||
package uk.gov.hmcts.opal.dto; | ||
|
||
public interface DraftAccountRequestDto { | ||
|
||
String getAccount(); | ||
|
||
Short getBusinessUnitId(); | ||
|
||
String getSubmittedBy(); | ||
|
||
String getAccountType(); | ||
|
||
String getTimelineData(); | ||
} |
44 changes: 44 additions & 0 deletions
44
src/main/java/uk/gov/hmcts/opal/dto/ReplaceDraftAccountRequestDto.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,44 @@ | ||
package uk.gov.hmcts.opal.dto; | ||
|
||
import com.fasterxml.jackson.annotation.JsonInclude; | ||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import com.fasterxml.jackson.annotation.JsonRawValue; | ||
import com.fasterxml.jackson.databind.annotation.JsonDeserialize; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Builder; | ||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
import uk.gov.hmcts.opal.util.KeepAsJsonDeserializer; | ||
|
||
@Data | ||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
@Builder | ||
@JsonInclude(JsonInclude.Include.NON_NULL) | ||
public class ReplaceDraftAccountRequestDto implements ToJsonString, DraftAccountRequestDto { | ||
|
||
@JsonProperty(value = "business_unit_id", required = true) | ||
private Short businessUnitId; | ||
|
||
@JsonProperty(value = "submitted_by", required = true) | ||
private String submittedBy; | ||
|
||
@JsonProperty("validated_by") | ||
private String validatedBy; | ||
|
||
@JsonProperty(value = "account", required = true) | ||
@JsonDeserialize(using = KeepAsJsonDeserializer.class) | ||
@JsonRawValue | ||
private String account; | ||
|
||
@JsonProperty(value = "account_type", required = true) | ||
private String accountType; | ||
|
||
@JsonProperty(value = "account_status", required = true) | ||
private String accountStatus; | ||
|
||
@JsonProperty(value = "timeline_data", required = true) | ||
@JsonDeserialize(using = KeepAsJsonDeserializer.class) | ||
@JsonRawValue | ||
private String timelineData; | ||
} |
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
44 changes: 44 additions & 0 deletions
44
src/main/resources/jsonSchemas/replaceDraftAccountRequest.json
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,44 @@ | ||
{ | ||
"$schema": "https://json-schema.org/draft/2020-12/schema", | ||
"$id": "https://opal-fines-service/replaceDraftAccountRequest.json", | ||
"type": "object", | ||
"properties": { | ||
"business_unit_id": { | ||
"type": "integer", | ||
"format": "int32", | ||
"description": "ID of the Business Unit the Draft Account belongs to" | ||
}, | ||
"submitted_by": { | ||
"type": "string", | ||
"description": "ID of the User that last submitted the Draft Account for checking" | ||
}, | ||
"validated_by": { | ||
"type": "string", | ||
"description": "ID of the User that validated the Draft Account for checking" | ||
}, | ||
"account": { | ||
"type": "object", | ||
"description": "The structured Account data (JSON)" | ||
}, | ||
"account_type": { | ||
"type": "string", | ||
"description": "Type of Account, such as Fixed Penalty Registration" | ||
}, | ||
"account_status": { | ||
"type": "string", | ||
"description": "Status of the Draft Account - one of Submitted, Resubmitted, Rejected, Approved, Deleted" | ||
}, | ||
"timeline_data": { | ||
"type": "object", | ||
"description": "Status changes to the Draft Account in chronological order (JSON Array) - System generated (UI)" | ||
} | ||
}, | ||
"required": [ | ||
"business_unit_id", | ||
"submitted_by", | ||
"account", | ||
"account_type", | ||
"account_status", | ||
"timeline_data" | ||
] | ||
} |
Oops, something went wrong.