Node Red nodes to decode and encode IATA Resolution 792 Compliant Boarding Pass Barcodes
npm install node-red-contrib-iata-bcbp



A set of Node-Red nodes to decode and encode IATA Resolution 792 Compliant Boarding Pass Barcode Data.
This is a Node-Red wrapper for the work by georgesmith46's bcbp NPM node
Add the IATA BCBP node to node-red through the manage palette tab or command line.
Here's an example of basic usage:
Converts a JSON object to a BCBP string. Any of the following parameters can be skipped (except legs).
#### Object Structure
|Name|Description|Example values|
|----|----|----|
|passengerName|Passenger Name|
#### Legs Structure
Any of the following parameters can be skipped.
|Name|Description|Example values|
|----|----|----|
|operatingCarrierPNR|Operating carrier PNR Code|
#### Example JSON Object
``json`
{
"legs": [
{
"operatingCarrierPNR": "ABC123",
"departureAirport": "YUL",
"arrivalAirport": "FRA",
"operatingCarrierDesignator": "AC",
"flightNumber": "0834",
"flightDate": "2018-08-14T00:00:00.000Z",
"compartmentCode": "F",
"seatNumber": "001A",
"checkInSequenceNumber": "0025",
"passengerStatus": "1"
}
],
"passengerName": "DESMARAIS/LUC"
}
Outputs:
``
M1DESMARAIS/LUC EABC123 YULFRAAC 0834 226F001A0025 106>60000
Converts a BCBP string to a JSON object. The returned object uses the same data structure as the Encode node above.
#### Example String
``
M1DESMARAIS/LUC EABC123 YULFRAAC 0834 226F001A0025 106>60000
Outputs:
`json``
{
"legs": [
{
"operatingCarrierPNR": "ABC123",
"departureAirport": "YUL",
"arrivalAirport": "FRA",
"operatingCarrierDesignator": "AC",
"flightNumber": "0834",
"flightDate": "2018-08-14T00:00:00.000Z",
"compartmentCode": "F",
"seatNumber": "001A",
"checkInSequenceNumber": "0025",
"passengerStatus": "1"
}
],
"passengerName": "DESMARAIS/LUC"
}
*/
1. [ ] Add further error handling / data checks
2. [ ] Add data capture / export
3. [ ] Add boarding pass validation node against airline DCS host using IATA BCBP XML format
4. [ ] Add basic validation rules engine
5. [ ] Add Barcode Image Decode
6. [ ] Add Boarding Pass template generation
Mark Funston - Node Red Wrapper* - mlfunston
georgesmith46 - Original NPM Package for bcbp* - georgesmith46
Contributions welcome! Feel free to fork this and provide updates and new features.
Don't forget to submit a pull request!
This project is licensed under the GPL3.0 License - see the LICENSE file for details
This Node-RED module is based on the great work of georgesmith46 - georgesmith46, using his bcbp libraries.
* Initial Release
* IATA BCBP Decode Function
* IATA BCBP Encode Function