explain....Use-case: Add external Customer Id and return order number to data sent to…
- User
explain....Use-case: Add external Customer Id and return order number to data sent to Beam
- Retrieve order number and return order number from carrier data
If order ref found, move to step 2 If no order number and return order number in carrier data, find STS001 based on parcelCode If STS001 found, retrieve order number and return order number, move to step 2 If STS001 not found, return result as is 2. Query oms-metadata-live collection to get customer id
If record found, add customer id to BeamDataDTO If no record, query Oracle DB to retrieve external customer id If external customer id found, add it to BeamDataDTO If external customer id not found, handle exception 3. Encrypt First name, Last name, and Postcode/zipcode for shipping and billing addresses Add encrypted data to BeamDataDTO 4.Exception handling: If any exception occurs during the process, do not update the isProcessed flag to true.
- Assistant
This use-case involves adding an external Customer Id and returning an order number to the data being sent to Beam. The process can be summarized as follows:
-
The system checks if an order number is already present in the carrier data. If it is found, the process moves to step 2. If not, the system looks for a return order number in the carrier data. If a return order number is found, the system searches for STS001 based on the parcel code. If STS001 is found, the system retrieves the order number and returns it. If STS001 is not found, the system returns the result as it is.
-
The system queries the oms-metadata-live collection to check if there is a record containing the customer id. If a record is found, the customer id is added to the BeamDataDTO (Data Transfer Object).
-
If no record is found in the oms-metadata-live collection, the system queries the Oracle DB to retrieve the external customer id. If the external customer id is found, it is added to the BeamDataDTO. If the external customer id is not found, the system handles the exception.
-
- User
create a java code and test case
- Assistant