-
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.
feat(be:FSADT1-1722): Adjust province and country information in Clie…
…nt Details API (#1431) * feat(be:FSADT1-1722): Adjust province and country information on API to Get Client Details * Fixed SonarCloud issues
- Loading branch information
1 parent
030fc09
commit 77dd877
Showing
7 changed files
with
178 additions
and
55 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
29 changes: 29 additions & 0 deletions
29
backend/src/main/java/ca/bc/gov/app/dto/legacy/ForestClientLocationDetailsDto.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,29 @@ | ||
package ca.bc.gov.app.dto.legacy; | ||
|
||
import lombok.With; | ||
|
||
@With | ||
public record ForestClientLocationDetailsDto( | ||
String clientNumber, | ||
String clientLocnCode, | ||
String clientLocnName, | ||
String addressOne, | ||
String addressTwo, | ||
String addressThree, | ||
String city, | ||
String provinceCode, | ||
String provinceDesc, | ||
String countryCode, | ||
String countryDesc, | ||
String postalCode, | ||
String businessPhone, | ||
String homePhone, | ||
String cellPhone, | ||
String faxNumber, | ||
String emailAddress, | ||
String locnExpiredInd, | ||
String cliLocnComment | ||
) { | ||
|
||
} | ||
|
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,16 +1,5 @@ | ||
package ca.bc.gov.app.service.client; | ||
|
||
import ca.bc.gov.app.dto.legacy.ForestClientContactDto; | ||
import ca.bc.gov.app.dto.legacy.ForestClientLocationDto; | ||
import java.time.LocalDate; | ||
import java.time.LocalDateTime; | ||
import java.time.ZonedDateTime; | ||
import java.util.List; | ||
import org.junit.jupiter.api.DisplayName; | ||
import org.mockito.Mockito; | ||
import org.springframework.beans.factory.annotation.Autowired; | ||
import org.springframework.boot.test.mock.mockito.MockBean; | ||
import org.junit.jupiter.api.Test; | ||
import ca.bc.gov.app.dto.bcregistry.BcRegistryAddressDto; | ||
import ca.bc.gov.app.dto.bcregistry.BcRegistryAlternateNameDto; | ||
import ca.bc.gov.app.dto.bcregistry.BcRegistryBusinessAdressesDto; | ||
|
@@ -20,9 +9,20 @@ | |
import ca.bc.gov.app.dto.bcregistry.BcRegistryOfficesDto; | ||
import ca.bc.gov.app.dto.bcregistry.BcRegistryPartyDto; | ||
import ca.bc.gov.app.dto.bcregistry.BcRegistryRoleDto; | ||
import ca.bc.gov.app.dto.legacy.ForestClientContactDto; | ||
import ca.bc.gov.app.dto.legacy.ForestClientDetailsDto; | ||
import ca.bc.gov.app.dto.legacy.ForestClientLocationDetailsDto; | ||
import ca.bc.gov.app.extensions.AbstractTestContainerIntegrationTest; | ||
import ca.bc.gov.app.service.bcregistry.BcRegistryService; | ||
import java.time.LocalDate; | ||
import java.time.LocalDateTime; | ||
import java.time.ZonedDateTime; | ||
import java.util.List; | ||
import org.junit.jupiter.api.DisplayName; | ||
import org.mockito.Mockito; | ||
import org.springframework.beans.factory.annotation.Autowired; | ||
import org.springframework.boot.test.mock.mockito.MockBean; | ||
import org.junit.jupiter.api.Test; | ||
import reactor.core.publisher.Flux; | ||
import reactor.core.publisher.Mono; | ||
import reactor.test.StepVerifier; | ||
|
@@ -396,7 +396,7 @@ void shouldSearchByClientNumberAndgetResultWithContactAndLocation(){ | |
null, | ||
null, | ||
List.of( | ||
new ForestClientLocationDto( | ||
new ForestClientLocationDetailsDto( | ||
clientNumber, | ||
"00", | ||
"Location", | ||
|
@@ -405,20 +405,17 @@ void shouldSearchByClientNumberAndgetResultWithContactAndLocation(){ | |
null, | ||
"City", | ||
"BC", | ||
"A1B2C3", | ||
"British Columbia", | ||
"CA", | ||
"Canada", | ||
"A1B2C3", | ||
"1234567890", | ||
"0987654321", | ||
"1234567890", | ||
"0987654321", | ||
"[email protected]", | ||
"N", | ||
null, | ||
null, | ||
null, | ||
"Admin", | ||
"Admin", | ||
70L | ||
null | ||
) | ||
), | ||
List.of( | ||
|
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
33 changes: 33 additions & 0 deletions
33
legacy/src/main/java/ca/bc/gov/app/dto/ForestClientLocationDetailsDto.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,33 @@ | ||
package ca.bc.gov.app.dto; | ||
|
||
import lombok.With; | ||
|
||
/** | ||
* DTO representing location details for a forest client, including addresses, contact numbers, | ||
* and additional comments. | ||
*/ | ||
@With | ||
public record ForestClientLocationDetailsDto( | ||
String clientNumber, | ||
String clientLocnCode, | ||
String clientLocnName, | ||
String addressOne, | ||
String addressTwo, | ||
String addressThree, | ||
String city, | ||
String provinceCode, | ||
String provinceDesc, | ||
String countryCode, | ||
String countryDesc, | ||
String postalCode, | ||
String businessPhone, | ||
String homePhone, | ||
String cellPhone, | ||
String faxNumber, | ||
String emailAddress, | ||
String locnExpiredInd, | ||
String cliLocnComment | ||
) { | ||
|
||
} | ||
|
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