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

/**
 * Line parser
 * @author Lucian Sirbu
 */
class BKS45 extends \App\Bsp\Hot230\HOTBase
{
	protected $children = [
		[ 'key'=>'SMSG',  				'type'=>'Constant', 'val'=>'BKS',       'len'=>3,      'label'=>'Standard Message Identifier', ],                        // S/M/Standard Message Identifier
		[ 'key'=>'SQNR',  				'type'=>'Integer',                      'len'=>8,      'label'=>'Sequence Number', ],                                    // S/M/Sequence Number
		[ 'key'=>'STNQ',  				'type'=>'Constant', 'val'=>'45',        'len'=>2,      'label'=>'Standard Numeric Qualifier', ],                         // S/M/Standard Numeric Qualifier
		[ 'key'=>'RMED',  				'type'=>'Date',     'fmt'=>'YYMMDD',    'len'=>6,      'label'=>'Remittance Period Ending Date', ],                      // S/M/Remittance Period Ending Date
		[ 'key'=>'TRNN',  				'type'=>'Digits',                       'len'=>6,      'label'=>'Transaction Number', ],                                 // S/M/Transaction Number
		[ 'key'=>'RTDN_airLine',		'type'=>'StringRaw',                    'len'=>3,      'label'=>'Related Ticket/ Document Number', ],                    // S/M/Related Ticket/ Document Number
		[ 'key'=>'RTDN_ticketNumber',	'type'=>'StringRaw',                    'len'=>10,     'label'=>'Related Ticket/ Document Number', ],                    // S/M/Related Ticket/ Document Number
		[ 'key'=>'RTDN_extra',			'type'=>'StringRaw',                    'len'=>1,      'label'=>'Related Ticket/ Document Number', ],                    // S/M/Related Ticket/ Document Number
		[ 'key'=>'CDGT',  				'type'=>'Digits',                       'len'=>1,      'label'=>'Check-Digit', ],                                        // S/M/Check-Digit
		[ 'key'=>'WAVR',  				'type'=>'StringRaw',                    'len'=>14,     'label'=>'Waiver Code', ],                                        // S/C/Waiver Code
		[ 'key'=>'RMIC',  				'type'=>'StringTrim',                   'len'=>5,      'label'=>'Reason for Memo Issuance Code', ],                      // S/C/Reason for Memo Issuance Code
		[ 'key'=>'RCPN',  				'type'=>'Digits',                       'len'=>4,      'label'=>'Related Ticket/Document Coupon Number Identifier', ],   // S/C/Related Ticket/Document Coupon Number Identifier
		[ 'key'=>'DIRD',  				'type'=>'DateAuto',                     'len'=>6,      'label'=>'Date of Issue Related Document', ],                     // S/C/Date of Issue Related Document
		[ 'key'=>'RESD',  				'type'=>'StringTrim',                   'len'=>67,     'label'=>'Reserved Space', ],                                     //  /M/Reserved Space
	];
}
