Project

General

Profile

Actions

Improvement #30078

open

Improvement #29635: Code Review, Upgrade and changes in Prompt of Email Boat

Step 2 (Part C) - Final Payload Construction

Added by Sachin Suresh 5 days ago. Updated 5 days ago.

Status:
Fixed not Tested
Priority:
Normal
Assignee:
Target version:
-
Start date:
11/18/2025
Due date:
% Done:

100%

Estimated time:
4:00 h
remarks:
DB Changes:
Keys & Permissions:
Areas Affected:
Files Changed:

Description

Task 5.1: Create services/payloadBuilder.js.

Task 5.2: Implement mapSeatClass function ('economy' -> 'Y', 'premium' -> 'W', etc.).

Task 5.3: Implement buildApiPayload to construct the final API JSON.

Task 5.4: Integrate mapToIata (async) and formatFlightDate into the payload builder.

Task 5.5: Implement isRoundtrip normalization logic (to handle "round trip", "Round-trip", etc.).

Task 5.6: Ensure static/config objects (Configuration, Utm, InstantCharge) are correctly added.

Task 5.7: Ensure Currency and Country are read from .env.

Actions #1

Updated by Sachin Suresh 5 days ago

  • Status changed from Assigned to Fixed not Tested
  • % Done changed from 0 to 100
Actions

Also available in: Atom PDF