-
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.
SD-1501-EBL-TD-atleast one identifyingcode mandatory (#229)
- Loading branch information
1 parent
69df1ea
commit a5fde47
Showing
4 changed files
with
311 additions
and
142 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -104,12 +104,18 @@ static ObjectNode siFromScenarioType(ScenarioType scenarioType, CarrierScenarioP | |
if (!scenarioType.isToOrder()) { | ||
// Cannot substitute this because it is a full element | ||
var parties = (ObjectNode) jsonRequestBody.path("documentParties"); | ||
parties.putObject("consignee") | ||
.put("partyName", "DCSA CTK Consignee") | ||
.putArray("partyContactDetails") | ||
.addObject() | ||
.put("name", "DCSA another test person") | ||
.put("email", "[email protected]"); | ||
parties | ||
.putObject("consignee") | ||
.put("partyName", "DCSA CTK Consignee") | ||
.putArray("identifyingCodes") | ||
.addObject() | ||
.put("codeListProvider", "W3C") | ||
.put("partyCode", "MSK") | ||
.put("codeListName", "DID") | ||
.putArray("partyContactDetails") | ||
.addObject() | ||
.put("name", "DCSA another test person") | ||
.put("email", "[email protected]"); | ||
} | ||
return jsonRequestBody; | ||
} | ||
|
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.