<?php
namespace App\Amadeus\FileParser;

class Line_RBK extends \App\Amadeus\FileParser\LineAbstract
{
	/**
	 * 4.70. RBK Booking data from RAM  Booking data from Rail Server
	 * see page 219(474)
	 *
	 * This line is used to transmit Booking information as taken from the RAM TACTCQ message.
	 */
	protected $structure = [
		['name'=> 'MSGTAG',  'val' => 'RBK',   'type' => 'AN',   'req' => 'M',  'len' => 3,],  // 1 : Message Tag (RBK)
		['name'=> 'CREACHNL',                  'type' => 'N',                   'len' => 1,],  // 2 : PNR Creation Channel 1-Agency 2-MinitelWeb 3-Phone 4-RAVEL 5-Self booking tool 6-voyages-sncf.com 7-Web
		['name'=> 'DELIM',   'val' => ';',     'type' => 'AN',   'req' => 'M',  'len' => 1,],  // 3 : Delimiter (Constant value of ";")
		['name'=> 'DISTUIC',                   'type' => 'N',                   'len' => 4,],  // 4 : Distributor UIC Code
		['name'=> 'DELIM',   'val' => ';',     'type' => 'AN',   'req' => 'M',  'len' => 1,],  // 5 : Delimiter (Constant value of ';')
		['name'=> 'AGENTREF',                  'type' => 'AN',],                               // 6 : Agent Reference
		['name'=> 'DELIM',   'val' => ';',     'type' => 'AN',   'req' => 'M',  'len' => 1,],  // 7 : Delimiter (Constant value of ';')
		['name'=> 'PCC',                       'type' => 'AN',                  'len' => 4,],  // 8 : Pseudo City CodeRef
	];
}
