@@ 8-39 (lines=32) @@ | ||
5 | ||
6 | use MerchantSafeUnipay; |
|
7 | ||
8 | class DealerType extends ActionAbstract implements ActionInterface |
|
9 | { |
|
10 | public function add($args) |
|
11 | { |
|
12 | $this->action = 'DEALERTYPEADD'; |
|
13 | $queryParamKeys = [ |
|
14 | 'DEALERTYPENAME', 'DESCRIPTIONREQUIRED', 'MAXINSTALLMENTCOUNT' |
|
15 | ]; |
|
16 | $args = MerchantSafeUnipay\filter($queryParamKeys, $args); |
|
17 | $this->queryParameters = $args; |
|
18 | } |
|
19 | ||
20 | public function edit($args) |
|
21 | { |
|
22 | $this->action = 'DEALERTYPEEDIT'; |
|
23 | $queryParamKeys = [ |
|
24 | 'DEALERTYPENAME', 'DESCRIPTIONREQUIRED', 'MAXINSTALLMENTCOUNT' |
|
25 | ]; |
|
26 | $args = MerchantSafeUnipay\filter($queryParamKeys, $args); |
|
27 | $this->queryParameters = $args; |
|
28 | } |
|
29 | ||
30 | public function delete($args) |
|
31 | { |
|
32 | $this->action = 'DEALERTYPEDELETE'; |
|
33 | $queryParamKeys = [ |
|
34 | 'DEALERTYPENAME' |
|
35 | ]; |
|
36 | $args = MerchantSafeUnipay\filter($queryParamKeys, $args); |
|
37 | $this->queryParameters = $args; |
|
38 | } |
|
39 | } |
|
40 |
@@ 8-40 (lines=33) @@ | ||
5 | ||
6 | use MerchantSafeUnipay; |
|
7 | ||
8 | class MessageContent extends ActionAbstract implements ActionInterface |
|
9 | { |
|
10 | public function add($args) |
|
11 | { |
|
12 | $this->action = 'MESSAGECONTENTADD'; |
|
13 | $queryParamKeys = [ |
|
14 | 'TITLE', 'CONTENT', 'MESSAGECONTENTTYPE', 'LANGUAGE' |
|
15 | ]; |
|
16 | $args = MerchantSafeUnipay\filter($queryParamKeys, $args); |
|
17 | $this->queryParameters = $args; |
|
18 | } |
|
19 | ||
20 | public function edit($args) |
|
21 | { |
|
22 | $this->action = 'MESSAGECONTENTEDIT'; |
|
23 | $queryParamKeys = [ |
|
24 | 'MESSAGECONTENTID', 'TITLE', 'CONTENT', 'MESSAGECONTENTTYPE', 'LANGUAGE' |
|
25 | ]; |
|
26 | $args = MerchantSafeUnipay\filter($queryParamKeys, $args); |
|
27 | $this->queryParameters = $args; |
|
28 | } |
|
29 | ||
30 | ||
31 | public function delete($args) |
|
32 | { |
|
33 | $this->action = 'MESSAGECONTENTDELETE'; |
|
34 | $queryParamKeys = [ |
|
35 | 'MESSAGECONTENTID' |
|
36 | ]; |
|
37 | $args = MerchantSafeUnipay\filter($queryParamKeys, $args); |
|
38 | $this->queryParameters = $args; |
|
39 | } |
|
40 | } |
|
41 |
@@ 8-39 (lines=32) @@ | ||
5 | ||
6 | use MerchantSafeUnipay; |
|
7 | ||
8 | class DealerPst extends ActionAbstract implements ActionInterface |
|
9 | { |
|
10 | public function add($args) |
|
11 | { |
|
12 | $this->action = 'DEALERPSTADD'; |
|
13 | $queryParamKeys = [ |
|
14 | 'SUBMERCHANTCODE', 'PAYMENTSYSTEMTYPE', 'DEALERCODE' |
|
15 | ]; |
|
16 | $args = MerchantSafeUnipay\filter($queryParamKeys, $args); |
|
17 | $this->queryParameters = $args; |
|
18 | } |
|
19 | ||
20 | public function edit($args) |
|
21 | { |
|
22 | $this->action = 'DEALERPSTEDIT'; |
|
23 | $queryParamKeys = [ |
|
24 | 'SUBMERCHANTCODE', 'PAYMENTSYSTEMTYPE', 'DEALERCODE' |
|
25 | ]; |
|
26 | $args = MerchantSafeUnipay\filter($queryParamKeys, $args); |
|
27 | $this->queryParameters = $args; |
|
28 | } |
|
29 | ||
30 | public function delete($args) |
|
31 | { |
|
32 | $this->action = 'DEALERPSTDELETE'; |
|
33 | $queryParamKeys = [ |
|
34 | 'DEALERCODE', 'PAYMENTSYSTEMTYPE' |
|
35 | ]; |
|
36 | $args = MerchantSafeUnipay\filter($queryParamKeys, $args); |
|
37 | $this->queryParameters = $args; |
|
38 | } |
|
39 | } |
|
40 |