-
Notifications
You must be signed in to change notification settings - Fork 0
/
DPD_COD.php
24 lines (22 loc) · 1.13 KB
/
DPD_COD.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?php
function isDPD_COD($object){
return (get_class($object) == "DPD_COD");
}
class DPD_COD extends MVG_SimpleClass{
private $_arrVariableMapper = array(
"amount" => array( "mandatory" => true, "pattern" => "/^[0-9]{1,10}$/"),
"currency" => array( "mandatory" => true, "pattern" => "/^[A-Z]{3}$/"),
"inkasso" => array( "mandatory" => true, "pattern" => "/^(0|1)$/"),
"purpose" => array( "mandatory" => false, "pattern" => "/^[a-z\/ 0-9\.'-]{0,14}$/i"),
"bankCode" => array( "mandatory" => false, "pattern" => "/^[a-z\/ 0-9\.'-]{0,25}$/i"),
"bankName" => array( "mandatory" => false, "pattern" => "/^[a-z\/ 0-9\.'-]{0,27}$/i"),
"bankAccountNumber" => array( "mandatory" => false, "pattern" => "/^[a-z\/ 0-9\.'-]{0,25}$/i"),
"bankAccountHolder" => array( "mandatory" => false, "pattern" => "/^[a-z\/ 0-9\.'-]{0,30}$/i"),
"iban" => array( "mandatory" => false, "pattern" => "/^[a-z\/ 0-9\.'-]{0,50}$/i"),
"bic" => array( "mandatory" => false, "pattern" => "/^[a-z\/ 0-9\.'-]{0,50}$/i"),
);
function __construct($arrData){
parent::__construct(get_class($this), $this->_arrVariableMapper, $arrData);
}
}
?>