generated from bcgov/quickstart-openshift
-
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.
feat(SILVA-539): added autocomplete for client location (#505)
- Loading branch information
1 parent
0bd2641
commit efd2d74
Showing
34 changed files
with
1,420 additions
and
74 deletions.
There are no files selected for viewing
12 changes: 12 additions & 0 deletions
12
...src/main/java/ca/bc/gov/restapi/results/common/dto/ForestClientAutocompleteResultDto.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.restapi.results.common.dto; | ||
|
||
import lombok.With; | ||
|
||
@With | ||
public record ForestClientAutocompleteResultDto( | ||
String id, | ||
String name, | ||
String acronym | ||
) { | ||
|
||
} |
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
31 changes: 31 additions & 0 deletions
31
backend/src/main/java/ca/bc/gov/restapi/results/common/dto/ForestClientLocationDto.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,31 @@ | ||
package ca.bc.gov.restapi.results.common.dto; | ||
|
||
import ca.bc.gov.restapi.results.common.enums.YesNoEnum; | ||
import java.time.LocalDate; | ||
import lombok.With; | ||
|
||
@With | ||
public record ForestClientLocationDto( | ||
String clientNumber, | ||
String locationCode, | ||
String locationName, | ||
String companyCode, | ||
String address1, | ||
String address2, | ||
String address3, | ||
String city, | ||
String province, | ||
String postalCode, | ||
String country, | ||
String businessPhone, | ||
String homePhone, | ||
String cellPhone, | ||
String faxNumber, | ||
String email, | ||
YesNoEnum expired, | ||
YesNoEnum trusted, | ||
LocalDate returnedMailDate, | ||
String comment | ||
) { | ||
|
||
} |
11 changes: 11 additions & 0 deletions
11
backend/src/main/java/ca/bc/gov/restapi/results/common/dto/IdNameDto.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.restapi.results.common.dto; | ||
|
||
import lombok.With; | ||
|
||
@With | ||
public record IdNameDto( | ||
String id, | ||
String name | ||
) { | ||
|
||
} |
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
30 changes: 30 additions & 0 deletions
30
backend/src/main/java/ca/bc/gov/restapi/results/common/enums/YesNoEnum.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,30 @@ | ||
package ca.bc.gov.restapi.results.common.enums; | ||
|
||
import com.fasterxml.jackson.annotation.JsonCreator; | ||
import com.fasterxml.jackson.annotation.JsonValue; | ||
|
||
public enum YesNoEnum { | ||
YES("Y"), | ||
NO("N"); | ||
|
||
private final String value; | ||
|
||
YesNoEnum(String value) { | ||
this.value = value; | ||
} | ||
|
||
@JsonValue | ||
public String value() { | ||
return this.value; | ||
} | ||
|
||
@JsonCreator | ||
public static YesNoEnum fromValue(String value) { | ||
for (YesNoEnum c : values()) { | ||
if (c.value().equalsIgnoreCase(value)) { | ||
return c; | ||
} | ||
} | ||
return null; | ||
} | ||
} |
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
Oops, something went wrong.