<?php
namespace App\Amadeus\FileParser;

class Line_SAC extends \App\Amadeus\FileParser\LineAbstract
{
	/**
	 * 4.114. SAC Settlement Authorisation Code (Electronic Ticket)
	 * see page 295(337)
	 *
	 * This field is used to transmit Electronic Ticket Settlement Authorisation Codes and exists only in
	 * ETKT exchange AIR method 4 (1E/7E/8E) and ETKT supplementary AIRs sent to National Systems and Ticketing System Providers.
	 */
	protected $structure = [
		['name'=> 'MSGTAG',  'val' => 'SAC',   'type' => 'AN',   'req' => 'M',  'len' => 3,],                          // 1 : Message Tag (SAC)
		['name'=> 'SACNBR',                    'type' => 'AN',                  'len_min' => 1,   'len_max' => 20,],   // 2 : Settlement Authorisation Code
	];
}
