<?php
namespace App\Amadeus\FileParser;

class Line_AQ extends \App\Amadeus\FileParser\LineAbstract
{
	/**
	 * 4.153. AQ Address Verification
	 * see page 373(415)
	 *
	 * This line item is used to transmit credit card address verification information.
	 */
	protected $structure = [
		['name'=> 'MSGTAG',  'val' => 'AQ',    'type' => 'AN',      'req' => 'M',  'len' => 2,],  // 1 : Message Tag (AQ)
		['name'=> 'ZIPCODE',                   'type' => 'N',],               // 2 : ZIP Code
		['name'=> 'DELIM',   'val' => ';',     'type' => 'AN',                     'len' => 1,],  // 3 : Delimiter (Constant value of ';')
		['name'=> 'ADDRESS',                   'type' => 'AN',],               // 4 : AVS Address
		['name'=> 'DELIM',   'val' => ';',     'type' => 'AN',                     'len' => 1,],  // 3 : Delimiter (Constant value of ';')
		['name'=> 'RSLTCODE',                  'type' => 'AN',],               // 4 : AVS Address
		['name'=> 'SEGASS',  'val' => ';S',    'type' => 'ASSOC',],
		['name'=> 'PSGASS',  'val' => ';P',    'type' => 'ASSOC',],
	];
}
