Diwali
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.
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 ?
Ā
In app/lib/constants.js add/update serviceTypes in
internationalServices
as it is used in getMasterData api for promocode.
Note - how to stop promocodes?
Ā
Obbv2 changes -
1. In src/main/ConsignmentConstants.ts add services Types in serviceNamesInternationalAlso Add to serviceTypeProductCodeMap in the same file used in rate fetching
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 |
---|---|---|
Ā | Ā | Ā |
Ā | Ā | Ā |