<?php
namespace App\Amadeus\FileParser;

class Line_MFV extends \App\Amadeus\FileParser\LineAbstract
{
	/**
	 * 4.146. MFV MCO/EMD Ticketing Carrier/Invoice/BP
	 * see page 361(403)
	 *
	 * DETAILS
	 */
	protected $structure = [
		['name'=> 'MSGTAG',     'val' => 'MFV',   'type' => 'AN',      'req' => 'M',  'len' => 3,],  // 1 : Message Tag (MFV)
		['name'=> 'TKTCARR',                      'type' => 'AN',      'req' => 'M',],               // 2 : MCO Plating Carrier/Invoice/BP etc....
		['name'=> 'LINEASS1',   'val' => ';L',    'type' => 'ASSOC',],
		['name'=> 'PSGASS',     'val' => ';P',    'type' => 'ASSOC',],
		['name'=> 'LINEASS2',   'val' => ';L',    'type' => 'ASSOC',],
		['name'=> 'TSMID',      'val' => ';D',    'type' => 'AN',                     'len' => 2,],  // 6 : TSM association identifier (constant value of 'D')
		['name'=> 'TSMNBR',                       'type' => 'N',       'req' => 'M',  'requires' => ['TSMID',],],               // 7 : TSM number
	];
}
