-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into fix/fe/submissions-menu-icon
- Loading branch information
Showing
69 changed files
with
3,441 additions
and
335 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
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
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
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
7 changes: 5 additions & 2 deletions
7
processor/src/main/java/ca/bc/gov/app/dto/SubmissionInformationDto.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 |
---|---|---|
@@ -1,11 +1,14 @@ | ||
package ca.bc.gov.app.dto; | ||
|
||
import java.time.LocalDate; | ||
import lombok.With; | ||
|
||
@With | ||
public record SubmissionInformationDto( | ||
String legalName, | ||
String corporationName, | ||
LocalDate dateOfBirth, | ||
String incorporationNumber, | ||
String goodStanding | ||
String goodStanding, | ||
String clientType | ||
) { | ||
} |
12 changes: 12 additions & 0 deletions
12
processor/src/main/java/ca/bc/gov/app/dto/bcregistry/BcRegistryDocumentAccessRequestDto.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,12 @@ | ||
package ca.bc.gov.app.dto.bcregistry; | ||
|
||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties; | ||
import java.util.List; | ||
import lombok.With; | ||
|
||
@With | ||
@JsonIgnoreProperties(ignoreUnknown = true) | ||
public record BcRegistryDocumentAccessRequestDto( | ||
List<BcRegistryDocumentAccessTypeDto> documents | ||
) { | ||
} |
13 changes: 13 additions & 0 deletions
13
processor/src/main/java/ca/bc/gov/app/dto/bcregistry/BcRegistryDocumentAccessTypeDto.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,13 @@ | ||
package ca.bc.gov.app.dto.bcregistry; | ||
|
||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties; | ||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import lombok.With; | ||
|
||
@With | ||
@JsonIgnoreProperties(ignoreUnknown = true) | ||
public record BcRegistryDocumentAccessTypeDto( | ||
@JsonProperty("type") | ||
String documentType | ||
) { | ||
} |
23 changes: 23 additions & 0 deletions
23
processor/src/main/java/ca/bc/gov/app/dto/bcregistry/BcRegistryDocumentDto.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,23 @@ | ||
package ca.bc.gov.app.dto.bcregistry; | ||
|
||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties; | ||
import java.util.List; | ||
import lombok.With; | ||
|
||
@With | ||
@JsonIgnoreProperties(ignoreUnknown = true) | ||
public record BcRegistryDocumentDto( | ||
List<BcRegistryPartyDto> parties | ||
) { | ||
|
||
public BcRegistryPartyDto getProprietor() { | ||
if (parties == null) { | ||
return null; | ||
} | ||
return parties | ||
.stream() | ||
.filter(BcRegistryPartyDto::isProprietor) | ||
.findFirst() | ||
.orElse(null); | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
processor/src/main/java/ca/bc/gov/app/dto/bcregistry/BcRegistryDocumentRequestBodyDto.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,11 @@ | ||
package ca.bc.gov.app.dto.bcregistry; | ||
|
||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties; | ||
import lombok.With; | ||
|
||
@With | ||
@JsonIgnoreProperties(ignoreUnknown = true) | ||
public record BcRegistryDocumentRequestBodyDto( | ||
BcRegistryDocumentAccessRequestDto documentAccessRequest | ||
) { | ||
} |
14 changes: 14 additions & 0 deletions
14
...ssor/src/main/java/ca/bc/gov/app/dto/bcregistry/BcRegistryDocumentRequestDocumentDto.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 ca.bc.gov.app.dto.bcregistry; | ||
|
||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties; | ||
import lombok.With; | ||
|
||
@With | ||
@JsonIgnoreProperties(ignoreUnknown = true) | ||
public record BcRegistryDocumentRequestDocumentDto( | ||
String documentKey, | ||
String documentType, | ||
String fileName, | ||
Long id | ||
) { | ||
} |
16 changes: 16 additions & 0 deletions
16
...ssor/src/main/java/ca/bc/gov/app/dto/bcregistry/BcRegistryDocumentRequestResponseDto.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,16 @@ | ||
package ca.bc.gov.app.dto.bcregistry; | ||
|
||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties; | ||
import java.util.List; | ||
import lombok.With; | ||
|
||
@With | ||
@JsonIgnoreProperties(ignoreUnknown = true) | ||
public record BcRegistryDocumentRequestResponseDto( | ||
String businessIdentifier, | ||
String businessName, | ||
List<BcRegistryDocumentRequestDocumentDto> documents, | ||
String paymentStatus, | ||
String status | ||
) { | ||
} |
12 changes: 12 additions & 0 deletions
12
processor/src/main/java/ca/bc/gov/app/dto/bcregistry/BcRegistryExceptionMessageDto.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,12 @@ | ||
package ca.bc.gov.app.dto.bcregistry; | ||
|
||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties; | ||
import lombok.With; | ||
|
||
@With | ||
@JsonIgnoreProperties(ignoreUnknown = true) | ||
public record BcRegistryExceptionMessageDto( | ||
String errorMessage, | ||
String rootCause | ||
) { | ||
} |
13 changes: 13 additions & 0 deletions
13
processor/src/main/java/ca/bc/gov/app/dto/bcregistry/BcRegistryOfficerDto.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,13 @@ | ||
package ca.bc.gov.app.dto.bcregistry; | ||
|
||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties; | ||
|
||
@JsonIgnoreProperties(ignoreUnknown = true) | ||
public record BcRegistryOfficerDto( | ||
String email, | ||
String firstName, | ||
String lastName, | ||
String middleInitial, | ||
String partyType | ||
) { | ||
} |
24 changes: 24 additions & 0 deletions
24
processor/src/main/java/ca/bc/gov/app/dto/bcregistry/BcRegistryPartyDto.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,24 @@ | ||
package ca.bc.gov.app.dto.bcregistry; | ||
|
||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties; | ||
import java.util.List; | ||
import lombok.With; | ||
import org.apache.commons.lang3.StringUtils; | ||
|
||
@With | ||
@JsonIgnoreProperties(ignoreUnknown = true) | ||
public record BcRegistryPartyDto( | ||
BcRegistryOfficerDto officer, | ||
List<BcRegistryRoleDto> roles | ||
) { | ||
|
||
public boolean isProprietor() { | ||
if (roles == null) { | ||
return false; | ||
} | ||
return roles | ||
.stream() | ||
.filter(BcRegistryRoleDto::active) | ||
.anyMatch(role -> StringUtils.equalsIgnoreCase(role.roleType(), "Proprietor")); | ||
} | ||
} |
Oops, something went wrong.