<?php
namespace App\Bsp\Hot230\Lines\Transaction;

/**
 * Line parser
 * @author Lucian Sirbu
 */
class BKI61 extends \App\Bsp\Hot230\HOTBase
{
	protected $children = [
		[ 'key'=>'SMSG',                 'type'=>'Constant', 'val'=>'BKI',       'len'=>3,      'label'=>'Standard Message Identifier', ],              // L/M/Standard Message Identifier
		[ 'key'=>'SQNR',                 'type'=>'Integer',                      'len'=>8,      'label'=>'Sequence Number', ],                          // L/M/Sequence Number
		[ 'key'=>'STNQ',                 'type'=>'Constant', 'val'=>'61',        'len'=>2,      'label'=>'Standard Numeric Qualifier', ],               // L/M/Standard Numeric Qualifier
		[ 'key'=>'DAIS',                 'type'=>'Date',     'fmt'=>'YYMMDD',    'len'=>6,      'label'=>'Date of Issue', ],                            // L/M/Date of Issue
		[ 'key'=>'TRNN',                 'type'=>'Integer',                      'len'=>6,      'label'=>'Transaction Number', ],                       // L/M/Transaction Number
		[ 'key'=>'TDNR_airline',         'type'=>'StringRaw',                    'len'=>3,      'label'=>'Ticket/Document Number(airline number)', ],   // S/M/Ticket/Document Number
		[ 'key'=>'TDNR_ticketNumber',    'type'=>'StringRaw',                    'len'=>10,     'label'=>'Ticket/Document Number', ],
		[ 'key'=>'TDNR_extra',           'type'=>'StringRaw',                    'len'=>1,      'label'=>'Ticket/Document Number(extra digits)', ],
		[ 'key'=>'CDGT',                 'type'=>'Digits',                       'len'=>1,      'label'=>'Check-Digit', ],                              // L/M/Check-Digit
		[ 'key'=>'SEGI',                 'type'=>'Digits',                       'len'=>1,      'label'=>'Segment Identifier', ],                       // L/M/Segment Identifier

		[ 'key'=>'UTPC',                 'type'=>'StringTrim',                   'len'=>5,      'label'=>'Unticketed Point Airport/City Code', ],
		[ 'key'=>'UPDA',                 'type'=>'DateAuto',                     'len'=>7,      'label'=>'Unticketed Point Date of Arrival ', ],
		[ 'key'=>'UPTA',                 'type'=>'StringTrim',                   'len'=>5,      'label'=>'Unticketed Point Local Time of Arrival', ],
		[ 'key'=>'UPDD',                 'type'=>'DateAuto',                     'len'=>7,      'label'=>'Unticketed Point Date Of Departure', ],
		[ 'key'=>'UPTD',                 'type'=>'StringTrim',                   'len'=>5,      'label'=>'Unticketed Point Local Time of Departure', ],
		[ 'key'=>'UPEQ',                 'type'=>'StringTrim',                   'len'=>3,      'label'=>'Unticketed Point Departure Equipment Code', ],

		[ 'key'=>'RESD',                 'type'=>'StringTrim',                   'len'=>63,     'label'=>'Reserved Space', ],                           //  /M/Reserved Space
	];
}
