| @@ 16-43 (lines=28) @@ | ||
| 13 | * @author Vuong Minh <[email protected]> | |
| 14 | * @since 1.0.0 | |
| 15 | */ | |
| 16 | class QueryRefundRequest extends AbstractSignatureRequest | |
| 17 | { | |
| 18 | /** | |
| 19 |      * {@inheritdoc} | |
| 20 | */ | |
| 21 | protected $responseClass = QueryRefundResponse::class; | |
| 22 | ||
| 23 | /** | |
| 24 |      * {@inheritdoc} | |
| 25 | */ | |
| 26 | public function initialize(array $parameters = []) | |
| 27 |     { | |
| 28 | parent::initialize($parameters); | |
| 29 |         $this->setParameter('requestType', 'refundStatus'); | |
| 30 | ||
| 31 | return $this; | |
| 32 | } | |
| 33 | ||
| 34 | /** | |
| 35 |      * {@inheritdoc} | |
| 36 | */ | |
| 37 | protected function getSignatureParameters(): array | |
| 38 |     { | |
| 39 | return [ | |
| 40 | 'partnerCode', 'accessKey', 'requestId', 'orderId', 'requestType', | |
| 41 | ]; | |
| 42 | } | |
| 43 | } | |
| 44 | ||
| @@ 16-43 (lines=28) @@ | ||
| 13 | * @author Vuong Minh <[email protected]> | |
| 14 | * @since 1.0.0 | |
| 15 | */ | |
| 16 | class QueryTransactionRequest extends AbstractSignatureRequest | |
| 17 | { | |
| 18 | /** | |
| 19 |      * {@inheritdoc} | |
| 20 | */ | |
| 21 | protected $responseClass = QueryTransactionResponse::class; | |
| 22 | ||
| 23 | /** | |
| 24 |      * {@inheritdoc} | |
| 25 | */ | |
| 26 | public function initialize(array $parameters = []) | |
| 27 |     { | |
| 28 | parent::initialize($parameters); | |
| 29 |         $this->setParameter('requestType', 'transactionStatus'); | |
| 30 | ||
| 31 | return $this; | |
| 32 | } | |
| 33 | ||
| 34 | /** | |
| 35 |      * {@inheritdoc} | |
| 36 | */ | |
| 37 | protected function getSignatureParameters(): array | |
| 38 |     { | |
| 39 | return [ | |
| 40 | 'partnerCode', 'accessKey', 'requestId', 'orderId', 'requestType', | |
| 41 | ]; | |
| 42 | } | |
| 43 | } | |
| 44 | ||