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