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

/**
 * Line parser
 * @author Lucian Sirbu
 */
class BKS47 extends \App\Bsp\Hot230\HOTBase
{
	protected $children = [
		[ 'key'=>'SMSG',  'type'=>'Constant', 'val'=>'BKS',       'len'=>3,      'label'=>'Standard Message Identifier', ],    // X/M/Standard Message Identifier
		[ 'key'=>'SQNR',  'type'=>'Integer',                      'len'=>8,      'label'=>'Sequence Number', ],                // X/M/Sequence Number
		[ 'key'=>'STNQ',  'type'=>'Constant', 'val'=>'47',        'len'=>2,      'label'=>'Standard Numeric Qualifier', ],     // X/M/Standard Numeric Qualifier
		[ 'key'=>'DAIS',  'type'=>'Date',     'fmt'=>'YYMMDD',    'len'=>6,      'label'=>'Date of Issue', ],                  // X/M/Date of Issue
		[ 'key'=>'TRNN',  'type'=>'Integer',                      'len'=>6,      'label'=>'Transaction Number', ],             // X/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', ],                    // X/M/Check-Digit
		[ 'key'=>'NTTP1',              'type'=>'StringRaw',          'len'=>1,      'label'=>'Netting type', ],
		[ 'key'=>'NTTC1',              'type'=>'StringRaw',          'len'=>8,      'label'=>'Netting code', ],
		[ 'key'=>'NTTA1',              'type'=>'PriceAmount',     'len'=>11,     'label'=>'Netting code', ],
		[ 'key'=>'NTTP2',              'type'=>'StringRaw',          'len'=>1,      'label'=>'Netting type', ],
		[ 'key'=>'NTTC2',              'type'=>'StringRaw',          'len'=>8,      'label'=>'Netting code', ],
		[ 'key'=>'NTTA2',              'type'=>'PriceAmount',     'len'=>11,     'label'=>'Netting code', ],
		[ 'key'=>'NTTP3',              'type'=>'StringRaw',          'len'=>1,      'label'=>'Netting type', ],
		[ 'key'=>'NTTC3',              'type'=>'StringRaw',          'len'=>8,      'label'=>'Netting code', ],
		[ 'key'=>'NTTA3',              'type'=>'PriceAmount',     'len'=>11,     'label'=>'Netting code', ],
		[ 'key'=>'NTTP4',              'type'=>'StringRaw',          'len'=>1,      'label'=>'Netting type', ],
		[ 'key'=>'NTTC4',              'type'=>'StringRaw',          'len'=>8,      'label'=>'Netting code', ],
		[ 'key'=>'NTTA4',              'type'=>'PriceAmount',     'len'=>11,     'label'=>'Netting code', ],
		[ 'key'=>'RESD',               'type'=>'StringTrim',      'len'=>12,     'label'=>'Reserved Space', ],            //  /M/Reserved Space
		[ 'key'=>'CUTP',               'type'=>'StringRaw',          'len'=>3,      'label'=>'Currency Type', ],             // S/M/Currency Type
		[ 'key'=>'CUTP_decimals',      'type'=>'Integer',         'len'=>1,      'label'=>'Currency Type(decimals)', ],   // S/M/Currency Type
	];
}
