<?php
namespace App\Bsp\Hot230\Lines\Footer; class BOT93 extends \App\Bsp\Hot230\HOTBase { protected $children = [ [ 'key'=>'SMSG', 'type'=>'Constant', 'val'=>'BOT', 'len'=>3, 'label'=>'Standard Message Identifier', ], [ 'key'=>'SQNR', 'type'=>'Integer', 'len'=>8, 'label'=>'Sequence Number', ], [ 'key'=>'STNQ', 'type'=>'Constant', 'val'=>'93', 'len'=>2, 'label'=>'Standard Numeric Qualifier', ], [ 'key'=>'AGTN', 'type'=>'Digits', 'len'=>8, 'label'=>'Agent Numeric Code', ], [ 'key'=>'RMED', 'type'=>'Date', 'fmt'=>'YYMMDD', 'len'=>6, 'label'=>'Remittance Period Ending Date', ], [ 'key'=>'GROS', 'type'=>'PriceAmount', 'len'=>15, 'label'=>'Gross Value Amount', ], [ 'key'=>'TREM', 'type'=>'PriceAmount', 'len'=>15, 'label'=>'Total Remittance Amount', ], [ 'key'=>'TCOM', 'type'=>'PriceAmount', 'len'=>15, 'label'=>'Total Commission Value Amount', ], [ 'key'=>'TTMF', 'type'=>'PriceAmount', 'len'=>15, 'label'=>'Total Tax/Miscellaneous Fee Amount', ], [ 'key'=>'TRNC', 'type'=>'StringRaw', 'len'=>4, 'label'=>'Transaction Code', ], [ 'key'=>'TTCA', 'type'=>'PriceAmount', 'len'=>15, 'label'=>'Total Tax on Commission Amount', ], [ 'key'=>'RESD', 'type'=>'StringTrim', 'len'=>26, 'label'=>'Reserved Space', ], [ 'key'=>'CUTP', 'type'=>'StringRaw', 'len'=>3, 'label'=>'Currency Type', ], [ 'key'=>'CUTP_decimals', 'type'=>'Integer', 'len'=>1, 'label'=>'Currency Type(decimals)', ], ]; protected function postExtract(\App\Utils\BaseParser\TextParser\ExtractedBlock $ret) { $ret = $this->postProcessPriceAmount($ret, $this->children, $ret->extractedData['CUTP_decimals']); return $ret; } } 