/
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.

    1fuelSurcharge[serviceNames['EXPRESS D - DIWALI']] = 21.25; 2 fuelSurcharge[serviceNames['WORLDWYDE EXPORT EXPRESS - DIWALI']] = 36; 3 fuelSurcharge[serviceNames['EXPRESS F - DIWALI']] = 19.5; 4 fuelSurcharge[serviceNames['EXPRESS U - DIWALI']] = 21.25; 5 6

Also add fuel surcharge to the variableConfigs collection.

1 Update the variableConfigs collection 2 3db.variableConfigs.updateOne({id:"variableConfigs"},{ $set: { "internationalFuelSurcharge.EXPRESS D - DIWALI": 31.5 }}); 4db.variableConfigs.updateOne({id:"variableConfigs"},{ $set: { "internationalFuelSurcharge.EXPRESS F - DIWALI": 37 }}); 5db.variableConfigs.updateOne({id:"variableConfigs"},{ $set: { "internationalFuelSurcharge.EXPRESS U - DIWALI": 32 }}); 6db.variableConfigs.updateOne({id:"variableConfigs"},{ $set: { "internationalFuelSurcharge.WWE EXPRESS - DIWALI": 36 }});


  1. In app/lib/ipriceAndTAT.js add/update service types in serviceNames object as it is used in getPriceAndTat

    1 'EXPRESS D - DIWALI': 'EXPRESS D - DIWALI', 2 'WWE EXPRESS - DIWALI': 'WWE EXPRESS - DIWALI', 3 'EXPRESS F - DIWALI': 'EXPRESS F - DIWALI', 4 'EXPRESS U - DIWALI': 'EXPRESS U - DIWALI',
  2. In businessBooking/serviceTypeMapping.js add/ update service Types in serviceTypeMapping object as it is used while ctbs sync.

    1 'EXPRESS D - DIWALI': 'INTL', 2 'WWE EXPRESS - DIWALI': 'INTL', 3 'EXPRESS F - DIWALI': 'INTL', 4 'EXPRESS U - DIWALI': 'INTL',
  3. 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 ?

    1'DID' : 'EXPRESS D - DIWALI', 2'EXD': 'WWE EXPRESS - DIWALI', 3'DIF': 'EXPRESS F - DIWALI', 4'DIU': 'EXPRESS U - DIWALI',


  1. In app/lib/constants.js add/update serviceTypes in internationalServices as it is used in getMasterData api for promocode.
    Note - how to stop promocodes?

    1'EXPRESS D - DIWALI': 'EXPRESS D - DIWALI', 2'WWE EXPRESS - DIWALI': 'WWE EXPRESS - DIWALI', 3'EXPRESS F - DIWALI': 'EXPRESS F - DIWALI', 4'EXPRESS U - DIWALI': 'EXPRESS U - DIWALI'


  • Obbv2 changes -
    1. In src/main/ConsignmentConstants.ts add services Types in serviceNamesInternational

    1'EXPRESS D - DIWALI': 'EXPRESS D - DIWALI', 2'WWE EXPRESS - DIWALI': 'WWE EXPRESS - DIWALI', 3'EXPRESS F - DIWALI': 'EXPRESS F - DIWALI', 4'EXPRESS U - DIWALI': 'EXPRESS U - DIWALI',

    Also Add to serviceTypeProductCodeMap in the same file used in rate fetching

    1'EXPRESS D - DIWALI': 'DID', 2'WWE EXPRESS - DIWALI': 'EXD', 3'EXPRESS F - DIWALI': 'DIF', 4'EXPRESS U - DIWALI': 'DIU',
  1. In serviceabilityInternational/TAT/strategies/default/dao/interface/TATDocument.ts add/update services if required

  2. In src/serviceabilityInternational/TAT/strategies/default/dao/schema/TATSchema.ts add/update services if required

  3. 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

  1. Approach:

  2. Database Migration and Index Changes:

  3. Org Config:

  4. Code Writing Style:

  5. API Documentation:

    1. Endpoint:

    2. Method:

    3. Fields/Payload:

    4. Response:

    5. Logic:

  6. Assumptions:

3.2 Dev Test Cases

Function/Feature

 Scenario

 Expected Outcome

 

 

 

 

 

 

3.3 Impact Analysis

3.4 Security and Permissions

3.5 Notes (If any)