| 1 | <?php |
||
| 9 | class Z1210 extends Element implements ElementInterface |
||
| 10 | { |
||
| 11 | const REG = '1210'; |
||
| 12 | const LEVEL = 3; |
||
| 13 | const PARENT = '1200'; |
||
| 14 | |||
| 15 | protected $parameters = [ |
||
| 16 | 'TIPO_UTIL' => [ |
||
| 17 | 'type' => 'string', |
||
| 18 | 'regex' => '^.{4}$', |
||
| 19 | 'required' => true, |
||
| 20 | 'info' => 'Tipo de utilização do crédito, conforme tabela indicada no item 5.5.', |
||
| 21 | 'format' => '' |
||
| 22 | ], |
||
| 23 | 'NR_DOC' => [ |
||
| 24 | 'type' => 'string', |
||
| 25 | 'regex' => '^.*$', |
||
| 26 | 'required' => false, |
||
| 27 | 'info' => 'Número do documento utilizado na baixa de créditos', |
||
| 28 | 'format' => '' |
||
| 29 | ], |
||
| 30 | 'VL_CRED_UTIL' => [ |
||
| 31 | 'type' => 'numeric', |
||
| 32 | 'regex' => '^\d+(\.\d*)?|\.\d+$', |
||
| 33 | 'required' => true, |
||
| 34 | 'info' => 'Total de crédito utilizado', |
||
| 35 | 'format' => '15v2' |
||
| 36 | ], |
||
| 37 | 'CHV_DOCE' => [ |
||
| 38 | 'type' => 'string', |
||
| 39 | 'regex' => '^\d{44}$', |
||
| 40 | 'required' => false, |
||
| 41 | 'info' => 'Chave do Documento Eletrônico', |
||
| 42 | 'format' => '' |
||
| 43 | ] |
||
| 44 | ]; |
||
| 45 | |||
| 46 | /** |
||
| 47 | * Constructor |
||
| 48 | * @param \stdClass $std |
||
| 49 | */ |
||
| 50 | public function __construct(\stdClass $std) |
||
| 56 | |||
| 57 | public function postValidation() |
||
| 67 | } |
||
| 68 |