1 | <?php |
||
16 | class Client extends BaseClient |
||
17 | { |
||
18 | /** |
||
19 | * Refund by out trade number. |
||
20 | * |
||
21 | * @param string $number |
||
22 | * @param string $refundNumber |
||
23 | * @param int $totalFee |
||
24 | * @param int $refundFee |
||
25 | * @param array $optional |
||
26 | * |
||
27 | * @return \Psr\Http\Message\ResponseInterface|\EasyWeChat\Kernel\Support\Collection|array|object|string |
||
28 | */ |
||
29 | public function byOutTradeNumber(string $number, string $refundNumber, int $totalFee, int $refundFee, array $optional = []) |
||
33 | |||
34 | /** |
||
35 | * Refund by transaction id. |
||
36 | * |
||
37 | * @param string $transactionId |
||
38 | * @param string $refundNumber |
||
39 | * @param int $totalFee |
||
40 | * @param int $refundFee |
||
41 | * @param array $optional |
||
42 | * |
||
43 | * @return \Psr\Http\Message\ResponseInterface|\EasyWeChat\Kernel\Support\Collection|array|object|string |
||
44 | */ |
||
45 | public function byTransactionId(string $transactionId, string $refundNumber, int $totalFee, int $refundFee, array $optional = []) |
||
49 | |||
50 | /** |
||
51 | * Query refund by transaction id. |
||
52 | * |
||
53 | * @param string $transactionId |
||
54 | * |
||
55 | * @return \Psr\Http\Message\ResponseInterface|\EasyWeChat\Kernel\Support\Collection|array|object|string |
||
56 | */ |
||
57 | public function queryByTransactionId(string $transactionId) |
||
61 | |||
62 | /** |
||
63 | * Query refund by out trade number. |
||
64 | * |
||
65 | * @param string $outTradeNumber |
||
66 | * |
||
67 | * @return \Psr\Http\Message\ResponseInterface|\EasyWeChat\Kernel\Support\Collection|array|object|string |
||
68 | */ |
||
69 | public function queryByOutTradeNumber(string $outTradeNumber) |
||
73 | |||
74 | /** |
||
75 | * Query refund by out refund number. |
||
76 | * |
||
77 | * @param string $outRefundNumber |
||
78 | * |
||
79 | * @return \Psr\Http\Message\ResponseInterface|\EasyWeChat\Kernel\Support\Collection|array|object|string |
||
80 | */ |
||
81 | public function queryByOutRefundNumber(string $outRefundNumber) |
||
85 | |||
86 | /** |
||
87 | * Query refund by refund id. |
||
88 | * |
||
89 | * @param string $refundId |
||
90 | * |
||
91 | * @return \Psr\Http\Message\ResponseInterface|\EasyWeChat\Kernel\Support\Collection|array|object|string |
||
92 | */ |
||
93 | public function queryByRefundId(string $refundId) |
||
97 | |||
98 | /** |
||
99 | * Refund. |
||
100 | * |
||
101 | * @param string $refundNumber |
||
102 | * @param int $totalFee |
||
103 | * @param int $refundFee |
||
104 | * @param array $optional |
||
105 | * |
||
106 | * @return \Psr\Http\Message\ResponseInterface|\EasyWeChat\Kernel\Support\Collection|array|object|string |
||
107 | */ |
||
108 | protected function refund(string $refundNumber, int $totalFee, int $refundFee, $optional = []) |
||
118 | |||
119 | /** |
||
120 | * Query refund. |
||
121 | * |
||
122 | * @param string $number |
||
123 | * @param string $type |
||
124 | * |
||
125 | * @return \Psr\Http\Message\ResponseInterface|\EasyWeChat\Kernel\Support\Collection|array|object|string |
||
126 | */ |
||
127 | protected function query(string $number, string $type) |
||
135 | } |
||
136 |