<?php
namespace App\Amadeus\FileParser;

class Line_MAQ extends \App\Amadeus\FileParser\LineAbstract
{
	/**
	 * 4.143. MAQ Address Verification
	 * see page 355(397)
	 *
	 * This line item is used to transmit credit card address verification information
	 */
	protected $structure = [
		['name'=> 'MSGTAG',     'val' => 'MAQ',   'type' => 'AN',      'req' => 'M',  'len' => 3,],  // 1 : Message Tag (MAQ)
		['name'=> 'ZIPCODE',                      'type' => 'N',       'req' => 'M',],               // 2 : ZIP Code
		['name'=> 'DELIM',      'val' => ';',     'type' => 'AN',      'req' => 'M',  'len' => 1,],  // 3 : Delimiter (Constant value of ';')
		['name'=> 'ADDRESS',                      'type' => 'AN',      'req' => 'M',],               // 4 : AVS Address
		['name'=> 'DELIM',      'val' => ';',     'type' => 'AN',      'req' => 'M',  'len' => 1,],  // 5 : Delimiter (Constant value of ';')
		['name'=> 'RSLTCODE',                     'type' => 'AN',],                                  // 6 : AVS Result Code
		['name'=> 'LINEASS',    'val' => ';L',    'type' => 'ASSOC',],
		['name'=> 'PSGASS',     'val' => ';P',    'type' => 'ASSOC',],
		['name'=> 'TSMID',      'val' => ';D',     'type' => 'AN',                     'len' => 2,],  // 10 : TSM association identifier (constant value of 'D')
		['name'=> 'TSMNBR',                       'type' => 'N',       'req' => 'M',  'requires' => ['TSMID',],],               // 11 : TSM number
	];
}
