-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #39 from LinkedDestiny/master
add reverse api
- Loading branch information
Showing
2 changed files
with
55 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace EasySwoole\Pay\WeChat\RequestBean; | ||
|
||
|
||
class Reverse extends Base | ||
{ | ||
/** | ||
* 商户订单号 | ||
* @var string | ||
*/ | ||
protected $out_trade_no; | ||
|
||
/** | ||
* 微信订单号 | ||
* @var string | ||
*/ | ||
protected $transaction_id; | ||
|
||
public function getOutTradeNo(): string | ||
{ | ||
return $this->out_trade_no; | ||
} | ||
|
||
public function setOutTradeNo(string $outTradeNo): void | ||
{ | ||
$this->out_trade_no = $outTradeNo; | ||
} | ||
|
||
public function setTransactionId(string $transactionId): void | ||
{ | ||
$this->transaction_id = $transactionId; | ||
} | ||
|
||
public function getTransactionId(): string | ||
{ | ||
return $this->transaction_id; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters