| 1 | <?php |
||
| 16 | class RefundRequest extends AbstractSignatureRequest |
||
| 17 | { |
||
| 18 | /** |
||
| 19 | * {@inheritdoc} |
||
| 20 | */ |
||
| 21 | protected $responseClass = RefundResponse::class; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * {@inheritdoc} |
||
| 25 | */ |
||
| 26 | public function initialize(array $parameters = []) |
||
| 27 | { |
||
| 28 | parent::initialize($parameters); |
||
| 29 | $this->setParameter('requestType', 'refundMoMoWallet'); |
||
| 30 | |||
| 31 | return $this; |
||
| 32 | } |
||
| 33 | |||
| 34 | /** |
||
| 35 | * {@inheritdoc} |
||
| 36 | */ |
||
| 37 | public function getTransactionId(): ?string |
||
| 38 | { |
||
| 39 | return $this->getTransId(); |
||
| 40 | } |
||
| 41 | |||
| 42 | /** |
||
| 43 | * {@inheritdoc} |
||
| 44 | */ |
||
| 45 | public function setTransactionId($value) |
||
| 46 | { |
||
| 47 | return $this->setTransId($value); |
||
| 48 | } |
||
| 49 | |||
| 50 | /** |
||
| 51 | * Trả về mã giao dịch của MoMo. |
||
| 52 | * |
||
| 53 | * @return null|string |
||
| 54 | */ |
||
| 55 | public function getTransId(): ?string |
||
| 56 | { |
||
| 57 | return $this->getParameter('transId'); |
||
| 58 | } |
||
| 59 | |||
| 60 | /** |
||
| 61 | * Thiết lập mã giao dịch của MoMo. |
||
| 62 | * |
||
| 63 | * @param string $id |
||
| 64 | * @return $this |
||
| 65 | */ |
||
| 66 | public function setTransId(string $id) |
||
| 67 | { |
||
| 68 | return $this->setParameter('transId', $id); |
||
| 69 | } |
||
| 70 | |||
| 71 | /** |
||
| 72 | * {@inheritdoc} |
||
| 73 | */ |
||
| 74 | protected function getSignatureParameters(): array |
||
| 80 | } |
||
| 81 |