-
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.
fix(FSADT1-936): fixing CHES on non-dev env (#683)
* fix: changing submission list limit added it as parameter * chore: removing swagger from legacy * fix(FSADT1-936): fixing non-dev ches issues * chore: removing swagger * fix(FSADT1-936): fixing ches params * fix(FSADT1-639): fixing email mechanism that is not triggered
- Loading branch information
1 parent
b6a47b7
commit 2727de2
Showing
31 changed files
with
112 additions
and
546 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,94 +2,20 @@ | |
|
||
import ca.bc.gov.app.dto.client.ClientAddressDto; | ||
import ca.bc.gov.app.dto.client.ClientContactDto; | ||
import io.swagger.v3.oas.annotations.media.Schema; | ||
import java.util.List; | ||
import lombok.With; | ||
|
||
/** | ||
* A data transfer object representing the details of a client. | ||
*/ | ||
@Schema( | ||
example = """ | ||
{ | ||
"name": "Acme Inc.", | ||
"id": "AC0000000", | ||
"goodStanding": true, | ||
"addresses": [ | ||
{ | ||
"streetAddress": "123 Main St", | ||
"country": {"value": "CA", "text": "Canada"}, | ||
"province": {"value": "ON", text": "Ontario"}, | ||
"city": "Toronto", | ||
"postalCode": "M5V1E3", | ||
"locationName":"Billing Address", | ||
"index": 0 | ||
}, | ||
{ | ||
"streetAddress": "456 Queen St", | ||
"country": {"value": "CA", text": "Canada"}, | ||
"province": {"value": "QC", text": "Quebec"}, | ||
"city": "Montreal", | ||
"postalCode": "H3B1A7", | ||
"locationName":"Mailing address", | ||
"index": 1, | ||
}, | ||
], | ||
"contacts":[{ | ||
"type": "person", | ||
"firstName": "JAMES", | ||
"lastName": "BAXTER", | ||
"phoneNumber": "123456789" | ||
"email": "[email protected]", | ||
"locations":[ | ||
{"value": "0", text": "Billing Address"} | ||
}] | ||
}""" | ||
) | ||
@With | ||
public record ClientDetailsDto( | ||
@Schema(description = "The client name as registered on the BC Registry", example = "Acme Inc.") | ||
String name, | ||
@Schema(description = "ID of the client", example = "AC0000000") | ||
String id, | ||
@Schema( | ||
description = "Defines if the client is in good standing with the Ministry of Finance", | ||
example = "true" | ||
) | ||
boolean goodStanding, | ||
@Schema(description = "All available addresses", example = """ | ||
[ | ||
{ | ||
"streetAddress": "123 Main St", | ||
"country": {"value": "CA", "text": "Canada"}, | ||
"province": {"value": "ON", text": "Ontario"}, | ||
"city": "Toronto", | ||
"postalCode": "M5V1E3", | ||
"locationName":"Billing Address", | ||
"index": 0 | ||
}, | ||
{ | ||
"streetAddress": "456 Queen St", | ||
"country": {"value": "CA", text": "Canada"}, | ||
"province": {"value": "QC", text": "Quebec"}, | ||
"city": "Montreal", | ||
"postalCode": "H3B1A7", | ||
"locationName":"Mailing Address", | ||
"index": 1 | ||
} | ||
]""") | ||
List<ClientAddressDto> addresses, | ||
|
||
@Schema(description = "All available contacts", example = """ | ||
[ | ||
{ | ||
"type": "person", | ||
"firstName": "JAMES", | ||
"lastName": "BAXTER", | ||
"phoneNumber": "123456789" | ||
"email": "[email protected]", | ||
} | ||
]""") | ||
List<ClientContactDto> contacts | ||
) { | ||
|
||
} |
42 changes: 2 additions & 40 deletions
42
backend/src/main/java/ca/bc/gov/app/dto/client/ClientAddressDto.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
Oops, something went wrong.