1. Objective (Problems and Goals)
To enable services of diwali - with the rates provided by dtdc
2. Initiation
Title | Enable diwali services |
Author(s) | Titunath |
Team (POD) | Brahmos |
Reviewer(s) | @suraj |
Last Updated On | |
Epic, ticket, issue, or LPP reference link |
3. Solution
In Obbv1 -
1. Add Hardcoded Fuel surcharge present in /internationalBooking/getPriceAndTAT.js or update the already present values.
fuelSurcharge[serviceNames['EXPRESS D - DIWALI']] = 21.25; fuelSurcharge[serviceNames['WORLDWYDE EXPORT EXPRESS - DIWALI']] = 36; fuelSurcharge[serviceNames['EXPRESS F - DIWALI']] = 19.5; fuelSurcharge[serviceNames['EXPRESS U - DIWALI']] = 21.25;
Also add fuel surcharge to the variableConfigs collection.
Update the variableConfigs collection
db.variableConfigs.updateOne({id:"variableConfigs"},{ $set: { "internationalFuelSurcharge.EXPRESS D - DIWALI": 31.5 }});
db.variableConfigs.updateOne({id:"variableConfigs"},{ $set: { "internationalFuelSurcharge.EXPRESS F - DIWALI": 37 }});
db.variableConfigs.updateOne({id:"variableConfigs"},{ $set: { "internationalFuelSurcharge.EXPRESS U - DIWALI": 32 }});
db.variableConfigs.updateOne({id:"variableConfigs"},{ $set: { "internationalFuelSurcharge.WWE EXPRESS - DIWALI": 36 }});In app/lib/ipriceAndTAT.js add/update service types in serviceNames object as it is used in getPriceAndTat
'EXPRESS D - DIWALI': 'EXPRESS D - DIWALI', 'WWE EXPRESS - DIWALI': 'WWE EXPRESS - DIWALI', 'EXPRESS F - DIWALI': 'EXPRESS F - DIWALI', 'EXPRESS U - DIWALI': 'EXPRESS U - DIWALI',
In businessBooking/serviceTypeMapping.js add/ update service Types in serviceTypeMapping object as it is used while ctbs sync.
'EXPRESS D - DIWALI': 'INTL', 'WWE EXPRESS - DIWALI': 'INTL', 'EXPRESS F - DIWALI': 'INTL', 'EXPRESS U - DIWALI': 'INTL',
In internationalBooking/validateSRFNumber.js add/update serviceTypes in serviceNameMapping-
Note - check if srf number is allowed for these service types or not - how to stop ?'DID' : 'EXPRESS D - DIWALI', 'EXD': 'WWE EXPRESS - DIWALI', 'DIF': 'EXPRESS F - DIWALI', 'DIU': 'EXPRESS U - DIWALI',
In app/lib/constants.js add/update serviceTypes in internationalServices as it is used in getMasterData api for promocode.
Note - how to stop promocodes?'EXPRESS D - DIWALI': 'EXPRESS D - DIWALI', 'WWE EXPRESS - DIWALI': 'WWE EXPRESS - DIWALI', 'EXPRESS F - DIWALI': 'EXPRESS F - DIWALI', 'EXPRESS U - DIWALI': 'EXPRESS U - DIWALI'
Obbv2 changes -
1. In src/main/ConsignmentConstants.ts add services Types in serviceNamesInternational'EXPRESS D - DIWALI': 'EXPRESS D - DIWALI', 'WWE EXPRESS - DIWALI': 'WWE EXPRESS - DIWALI', 'EXPRESS F - DIWALI': 'EXPRESS F - DIWALI', 'EXPRESS U - DIWALI': 'EXPRESS U - DIWALI',
Also Add to serviceTypeProductCodeMap in the same file used in rate fetching
'EXPRESS D - DIWALI': 'DID', 'WWE EXPRESS - DIWALI': 'EXD', 'EXPRESS F - DIWALI': 'DIF', 'EXPRESS U - DIWALI': 'DIU',
In serviceabilityInternational/TAT/strategies/default/dao/interface/TATDocument.ts add/update services if required
In src/serviceabilityInternational/TAT/strategies/default/dao/schema/TATSchema.ts add/update services if required
In /FranchiseeVirtualSeriesStrategy.ts add/update servicde types required in addDto.serviceTypes
Db migrations need to be added .
3.1 Schema Change
3.2 Approach and Components
Approach:
Database Migration and Index Changes:
Org Config:
Code Writing Style:
API Documentation:
Endpoint:
Method:
Fields/Payload:
Response:
Logic:
Assumptions:
3.2 Dev Test Cases
Function/Feature | Scenario | Expected Outcome |
---|---|---|
|
|
|
|
|
|