You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This repository contains the code for a persistent cache that holds customs-related data.
This microservice is a common backend service, which is used by other services. For example, it is used by CDS Exports, CDS Financials and CDS Reimbursements.
Pre-requisites
There are a number of dependencies required to run the service.
The easiest way to get started with these is via the Service Manager command line interface. You can find the installation
instructions in the MDTP HandBook.
Command
Description
sm2 --start CUSTOMS_FINANCIALS_ALL
Runs all dependencies
sm2 -s
Shows running services
sm2 --stop CUSTOMS_DATA_STORE
Stop the micro service
sbt run or sbt "run 9893"
(from root dir) to compile the current service with your changes
Testing
The minimum requirement for test coverage is 90%. Builds will fail when the project drops below this threshold.
Unit tests
Command
Description
sbt test
Runs unit tests locally
sbt "test/testOnly *TEST_FILE_NAME*"
runs tests for a single file
Coverage
Command
Description
sbt clean coverage test coverageReport
Generates a unit test coverage report that you can find here target/scala-3.3.5/scoverage-report/index.html
Available routes
Path
Description
Comments
GET /customs-data-store/eori/verified-email
Retrieves a verified email address for the logged-in EORI either from cache or SUB09
GET /customs-data-store/eori/company-information
Retrieves the business full name and address for the logged-in EORI either from cache or SUB09
GET /customs-data-store/eori/eori-history
Retrieves a list of all historic EORI's associated with the logged-in EORI either from cache or SUB09
GET /customs-data-store/eori/xieori-information
Retrieves XI EORI information for the logged-in EORI either from cache or SUB09
POST /customs-data-store/eori/verified-email-third-party
Retrieves the verified email address for the EORI specified in request body either from cache or SUB09
POST /customs-data-store/eori/company-information-third-party
Retrieves the business full name for the EORI specified in request body either from cache or SUB09
POST /customs-data-store/eori/eori-history-third-party
Retrieves the historic EORIs for the EORI specified in request body from cache or SUB21
POST /customs-data-store/update-email
Populates a new verified email address in the cache and removes undeliverable information
POST /customs-data-store/update-eori-history
Updates the eori history for a given EORI in the cache
POST /customs-data-store/update-undeliverable-email
Updates undeliverable information for a given enrolmentValue
GET /customs-data-store/subscriptions/subscriptionsdisplay
Internal Use Only
GET /customs-data-store/subscriptions/unverified-email-display
Internal Use Only
GET /customs-data-store/subscriptions/email-display
Internal Use Only
Feature switches
Not applicable
GET /eori/verified-email
An endpoint to retrieve a verified email address for logged-in EORI.