| Total Complexity | 3 |
| Total Lines | 56 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 21 | class GiftCardOrderClient extends BaseClient |
||
| 22 | { |
||
| 23 | /** |
||
| 24 | * 查询-单个礼品卡订单信息接口. |
||
| 25 | * |
||
| 26 | * @param string $orderId |
||
| 27 | * |
||
| 28 | * @return mixed |
||
| 29 | */ |
||
| 30 | 1 | public function get(string $orderId) |
|
| 31 | { |
||
| 32 | $params = [ |
||
| 33 | 1 | 'order_id' => $orderId, |
|
| 34 | ]; |
||
| 35 | |||
| 36 | 1 | return $this->httpPostJson('card/giftcard/order/get', $params); |
|
| 37 | } |
||
| 38 | |||
| 39 | /** |
||
| 40 | * 查询-批量查询礼品卡订单信息接口. |
||
| 41 | * |
||
| 42 | * @param int $beginTime |
||
| 43 | * @param int $endTime |
||
| 44 | * @param int $offset |
||
| 45 | * @param int $count |
||
| 46 | * @param string $sortType |
||
| 47 | * |
||
| 48 | * @return mixed |
||
| 49 | */ |
||
| 50 | 1 | public function list(int $beginTime, int $endTime, int $offset = 0, int $count = 10, string $sortType = 'ASC') |
|
| 61 | } |
||
| 62 | |||
| 63 | /** |
||
| 64 | * 退款接口. |
||
| 65 | * |
||
| 66 | * @param string $orderId |
||
| 67 | * |
||
| 68 | * @return mixed |
||
| 69 | */ |
||
| 70 | 1 | public function refund(string $orderId) |
|
| 77 | } |
||
| 78 | } |
||
| 79 |