-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CDMS-146 changes the way MatchingService identifies non-linked docume… (
#82) * CDMS-146 changes the way MatchingService identifies non-linked documents - it should only expect CHEDs to be linked, not other documents such as IUU docs * Need to handle lowercase * Fix sonarqube issue
- Loading branch information
1 parent
89efdcd
commit dcdd5c2
Showing
9 changed files
with
342 additions
and
36 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
Fix sonarqube issue | ||
|
||
# Please enter the commit message for your changes. Lines starting | ||
# with '#' will be ignored, and an empty message aborts the commit. | ||
# | ||
# Date: Mon Jan 27 15:11:15 2025 +0000 | ||
# | ||
# On branch feature/cdms-146 | ||
# Changes to be committed: | ||
# modified: Btms.Business/Services/Matching/MatchingService.cs | ||
# |
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
53 changes: 52 additions & 1 deletion
53
...ecisionTests/ALVS/2024/12/02/24GBDC4TW6DUQYIAR5-2e652dff-5b1e-4f9c-83d8-e1e0a1ffa2f2.json
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 +1,52 @@ | ||
{"serviceHeader":{"sourceSystem":"CDS","destinationSystem":"ALVS","correlationId":"1307513","serviceCallTimestamp":1733099125000},"header":{"entryReference":"24GBDC4TW6DUQYIAR5","entryVersionNumber":1,"previousVersionNumber":null,"declarationUCR":"4GB823723242000-SLHA24017238","declarationPartNumber":null,"declarationType":"S","arrivalDateTime":null,"submitterTURN":null,"declarantId":"GB823723242000","declarantName":"GB823723242000","dispatchCountryCode":"IL","goodsLocationCode":"FEMLHRPDX","masterUCR":"HPDX11463348040"},"items":[{"itemNumber":1,"customsProcedureCode":"4000000","taricCommodityCode":"1211908620","goodsDescription":"BASIL","consigneeId":"GB101487738000","consigneeName":"GB101487738000","itemNetMass":640,"itemSupplementaryUnits":0,"itemThirdQuantity":null,"itemOriginCountryCode":"IL","documents":[{"documentCode":"N851","documentReference":"gbchd2024.5229377","documentStatus":"JE","documentControl":"P","documentQuantity":null}],"checks":[{"checkCode":"H219","departmentCode":"PHSI"}]}]} | ||
{ | ||
"serviceHeader": { | ||
"sourceSystem": "CDS", | ||
"destinationSystem": "ALVS", | ||
"correlationId": "1307513", | ||
"serviceCallTimestamp": 1733099125000 | ||
}, | ||
"header": { | ||
"entryReference": "24GBDC4TW6DUQYIAR5", | ||
"entryVersionNumber": 1, | ||
"previousVersionNumber": null, | ||
"declarationUCR": "4GB823723242000-SLHA24017238", | ||
"declarationPartNumber": null, | ||
"declarationType": "S", | ||
"arrivalDateTime": null, | ||
"submitterTURN": null, | ||
"declarantId": "GB823723242000", | ||
"declarantName": "GB823723242000", | ||
"dispatchCountryCode": "IL", | ||
"goodsLocationCode": "FEMLHRPDX", | ||
"masterUCR": "HPDX11463348040" | ||
}, | ||
"items": [ | ||
{ | ||
"itemNumber": 1, | ||
"customsProcedureCode": "4000000", | ||
"taricCommodityCode": "1211908620", | ||
"goodsDescription": "BASIL", | ||
"consigneeId": "GB101487738000", | ||
"consigneeName": "GB101487738000", | ||
"itemNetMass": 640, | ||
"itemSupplementaryUnits": 0, | ||
"itemThirdQuantity": null, | ||
"itemOriginCountryCode": "IL", | ||
"documents": [ | ||
{ | ||
"documentCode": "N851", | ||
"documentReference": "gbchd2024.5229377", | ||
"documentStatus": "JE", | ||
"documentControl": "P", | ||
"documentQuantity": null | ||
} | ||
], | ||
"checks": [ | ||
{ | ||
"checkCode": "H219", | ||
"departmentCode": "PHSI" | ||
} | ||
] | ||
} | ||
] | ||
} |
53 changes: 52 additions & 1 deletion
53
...ecisionTests/ALVS/2024/12/02/24GBDC4TW6DUQYIAR5-63063f4c-6185-442a-ac94-f39b52964f19.json
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 +1,52 @@ | ||
{"serviceHeader":{"sourceSystem":"CDS","destinationSystem":"ALVS","correlationId":"1307514","serviceCallTimestamp":1733099196000},"header":{"entryReference":"24GBDC4TW6DUQYIAR5","entryVersionNumber":2,"previousVersionNumber":1,"declarationUCR":"4GB823723242000-SLHA24017238","declarationPartNumber":null,"declarationType":"S","arrivalDateTime":null,"submitterTURN":null,"declarantId":"GB823723242000","declarantName":"GB823723242000","dispatchCountryCode":"IL","goodsLocationCode":"FEMLHRPDX","masterUCR":"HPDX11463348040"},"items":[{"itemNumber":1,"customsProcedureCode":"4000000","taricCommodityCode":"1211908620","goodsDescription":"BASIL","consigneeId":"GB101487738000","consigneeName":"GB101487738000","itemNetMass":640,"itemSupplementaryUnits":0,"itemThirdQuantity":null,"itemOriginCountryCode":"IL","documents":[{"documentCode":"N851","documentReference":"gbchd2024.5229377","documentStatus":"JE","documentControl":"P","documentQuantity":null}],"checks":[{"checkCode":"H219","departmentCode":"PHSI"}]}]} | ||
{ | ||
"serviceHeader": { | ||
"sourceSystem": "CDS", | ||
"destinationSystem": "ALVS", | ||
"correlationId": "1307514", | ||
"serviceCallTimestamp": 1733099196000 | ||
}, | ||
"header": { | ||
"entryReference": "24GBDC4TW6DUQYIAR5", | ||
"entryVersionNumber": 2, | ||
"previousVersionNumber": 1, | ||
"declarationUCR": "4GB823723242000-SLHA24017238", | ||
"declarationPartNumber": null, | ||
"declarationType": "S", | ||
"arrivalDateTime": null, | ||
"submitterTURN": null, | ||
"declarantId": "GB823723242000", | ||
"declarantName": "GB823723242000", | ||
"dispatchCountryCode": "IL", | ||
"goodsLocationCode": "FEMLHRPDX", | ||
"masterUCR": "HPDX11463348040" | ||
}, | ||
"items": [ | ||
{ | ||
"itemNumber": 1, | ||
"customsProcedureCode": "4000000", | ||
"taricCommodityCode": "1211908620", | ||
"goodsDescription": "BASIL", | ||
"consigneeId": "GB101487738000", | ||
"consigneeName": "GB101487738000", | ||
"itemNetMass": 640, | ||
"itemSupplementaryUnits": 0, | ||
"itemThirdQuantity": null, | ||
"itemOriginCountryCode": "IL", | ||
"documents": [ | ||
{ | ||
"documentCode": "N851", | ||
"documentReference": "gbchd2024.5229377", | ||
"documentStatus": "JE", | ||
"documentControl": "P", | ||
"documentQuantity": null | ||
} | ||
], | ||
"checks": [ | ||
{ | ||
"checkCode": "H219", | ||
"departmentCode": "PHSI" | ||
} | ||
] | ||
} | ||
] | ||
} |
70 changes: 69 additions & 1 deletion
70
...onTests/DECISIONS/2024/12/01/24GBDB6P6GWPVLKAR7-0b32a0ed-18fa-4976-863c-1ef6e0cd4cbf.json
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 +1,69 @@ | ||
{"serviceHeader":{"sourceSystem":"ALVS","destinationSystem":"CDS","correlationId":"000","serviceCallTimestamp":1733045601631},"header":{"entryReference":"24GBDB6P6GWPVLKAR7","entryVersionNumber":1,"decisionNumber":1},"items":[{"itemNumber":1,"documents":[],"checks":[{"checkCode":"H219","decisionCode":"C03","decisionValidUntil":null,"decisionReasons":[]},{"checkCode":"H223","decisionCode":"C03","decisionValidUntil":null,"decisionReasons":[]}]},{"itemNumber":2,"documents":[],"checks":[{"checkCode":"H218","decisionCode":"C03","decisionValidUntil":null,"decisionReasons":[]},{"checkCode":"H219","decisionCode":"C03","decisionValidUntil":null,"decisionReasons":[]},{"checkCode":"H223","decisionCode":"H01","decisionValidUntil":null,"decisionReasons":[]}]},{"itemNumber":6,"documents":[],"checks":[{"checkCode":"H219","decisionCode":"C03","decisionValidUntil":null,"decisionReasons":[]}]}]} | ||
{ | ||
"serviceHeader": { | ||
"sourceSystem": "ALVS", | ||
"destinationSystem": "CDS", | ||
"correlationId": "000", | ||
"serviceCallTimestamp": 1733045601631 | ||
}, | ||
"header": { | ||
"entryReference": "24GBDB6P6GWPVLKAR7", | ||
"entryVersionNumber": 1, | ||
"decisionNumber": 1 | ||
}, | ||
"items": [ | ||
{ | ||
"itemNumber": 1, | ||
"documents": [], | ||
"checks": [ | ||
{ | ||
"checkCode": "H219", | ||
"decisionCode": "C03", | ||
"decisionValidUntil": null, | ||
"decisionReasons": [] | ||
}, | ||
{ | ||
"checkCode": "H223", | ||
"decisionCode": "C03", | ||
"decisionValidUntil": null, | ||
"decisionReasons": [] | ||
} | ||
] | ||
}, | ||
{ | ||
"itemNumber": 2, | ||
"documents": [], | ||
"checks": [ | ||
{ | ||
"checkCode": "H218", | ||
"decisionCode": "C03", | ||
"decisionValidUntil": null, | ||
"decisionReasons": [] | ||
}, | ||
{ | ||
"checkCode": "H219", | ||
"decisionCode": "C03", | ||
"decisionValidUntil": null, | ||
"decisionReasons": [] | ||
}, | ||
{ | ||
"checkCode": "H223", | ||
"decisionCode": "H01", | ||
"decisionValidUntil": null, | ||
"decisionReasons": [] | ||
} | ||
] | ||
}, | ||
{ | ||
"itemNumber": 6, | ||
"documents": [], | ||
"checks": [ | ||
{ | ||
"checkCode": "H219", | ||
"decisionCode": "C03", | ||
"decisionValidUntil": null, | ||
"decisionReasons": [] | ||
} | ||
] | ||
} | ||
] | ||
} |
70 changes: 69 additions & 1 deletion
70
...onTests/DECISIONS/2024/12/01/24GBDB6P6GWPVLKAR7-ff1ca5bf-8896-4a37-9572-d369405d6372.json
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 +1,69 @@ | ||
{"serviceHeader":{"sourceSystem":"ALVS","destinationSystem":"CDS","correlationId":"000","serviceCallTimestamp":1733062869974},"header":{"entryReference":"24GBDB6P6GWPVLKAR7","entryVersionNumber":2,"decisionNumber":2},"items":[{"itemNumber":1,"documents":[],"checks":[{"checkCode":"H219","decisionCode":"C03","decisionValidUntil":null,"decisionReasons":[]},{"checkCode":"H223","decisionCode":"C03","decisionValidUntil":null,"decisionReasons":[]}]},{"itemNumber":2,"documents":[],"checks":[{"checkCode":"H218","decisionCode":"C03","decisionValidUntil":null,"decisionReasons":[]},{"checkCode":"H219","decisionCode":"C03","decisionValidUntil":null,"decisionReasons":[]},{"checkCode":"H223","decisionCode":"H01","decisionValidUntil":null,"decisionReasons":[]}]},{"itemNumber":6,"documents":[],"checks":[{"checkCode":"H219","decisionCode":"C03","decisionValidUntil":null,"decisionReasons":[]}]}]} | ||
{ | ||
"serviceHeader": { | ||
"sourceSystem": "ALVS", | ||
"destinationSystem": "CDS", | ||
"correlationId": "000", | ||
"serviceCallTimestamp": 1733062869974 | ||
}, | ||
"header": { | ||
"entryReference": "24GBDB6P6GWPVLKAR7", | ||
"entryVersionNumber": 2, | ||
"decisionNumber": 2 | ||
}, | ||
"items": [ | ||
{ | ||
"itemNumber": 1, | ||
"documents": [], | ||
"checks": [ | ||
{ | ||
"checkCode": "H219", | ||
"decisionCode": "C03", | ||
"decisionValidUntil": null, | ||
"decisionReasons": [] | ||
}, | ||
{ | ||
"checkCode": "H223", | ||
"decisionCode": "C03", | ||
"decisionValidUntil": null, | ||
"decisionReasons": [] | ||
} | ||
] | ||
}, | ||
{ | ||
"itemNumber": 2, | ||
"documents": [], | ||
"checks": [ | ||
{ | ||
"checkCode": "H218", | ||
"decisionCode": "C03", | ||
"decisionValidUntil": null, | ||
"decisionReasons": [] | ||
}, | ||
{ | ||
"checkCode": "H219", | ||
"decisionCode": "C03", | ||
"decisionValidUntil": null, | ||
"decisionReasons": [] | ||
}, | ||
{ | ||
"checkCode": "H223", | ||
"decisionCode": "H01", | ||
"decisionValidUntil": null, | ||
"decisionReasons": [] | ||
} | ||
] | ||
}, | ||
{ | ||
"itemNumber": 6, | ||
"documents": [], | ||
"checks": [ | ||
{ | ||
"checkCode": "H219", | ||
"decisionCode": "C03", | ||
"decisionValidUntil": null, | ||
"decisionReasons": [] | ||
} | ||
] | ||
} | ||
] | ||
} |
Oops, something went wrong.