| @@ 10-19 (lines=10) @@ | ||
| 7 | ||
| 8 | class Dealer extends ActionAbstract implements ActionInterface |
|
| 9 | { |
|
| 10 | public function add($args) |
|
| 11 | { |
|
| 12 | $this->action = 'DEALERADD'; |
|
| 13 | $queryParamKeys = [ |
|
| 14 | 'NAME', 'DEALERCODE', 'CONTACTNAME', 'CONTACTPHONE', 'CONTACTEMAIL', 'CONTACTFAX', |
|
| 15 | 'CONTACTWEBADDRESS', 'DEALERTYPES' |
|
| 16 | ]; |
|
| 17 | $args = MerchantSafeUnipay\filter($queryParamKeys, $args); |
|
| 18 | $this->queryParameters = $args; |
|
| 19 | } |
|
| 20 | ||
| 21 | public function edit($args) |
|
| 22 | { |
|
| @@ 21-30 (lines=10) @@ | ||
| 18 | $this->queryParameters = $args; |
|
| 19 | } |
|
| 20 | ||
| 21 | public function edit($args) |
|
| 22 | { |
|
| 23 | $this->action = 'DEALEREDIT'; |
|
| 24 | $queryParamKeys = [ |
|
| 25 | 'NAME', 'DEALERCODE', 'PARENTDEALERCODE', 'CONTACTNAME', 'CONTACTPHONE', 'CONTACTEMAIL', 'CONTACTFAX', |
|
| 26 | 'CONTACTWEBADDRESS', 'DEALERTYPES' |
|
| 27 | ]; |
|
| 28 | $args = MerchantSafeUnipay\filter($queryParamKeys, $args); |
|
| 29 | $this->queryParameters = $args; |
|
| 30 | } |
|
| 31 | ||
| 32 | public function enable($args) |
|
| 33 | { |
|