/
Diwali

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 }});

Ā 

  1. 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',
  2. In businessBooking/serviceTypeMapping.js add/ update service Types in serviceTypeMapping object as it is used while ctbs sync.

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

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

  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

Function/Feature

Ā Scenario

Ā Expected Outcome

Ā 

Ā 

Ā 

Ā 

Ā 

Ā 

3.3 Impact Analysis

3.4 Security and Permissions

3.5 Notes (If any)

Add label