| Total Complexity | 4 |
| Total Lines | 56 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 8 | class Coupons extends BaseRequest |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * 卡券取消核销接口. |
||
| 12 | * |
||
| 13 | * @param array $params |
||
| 14 | * @return array |
||
| 15 | * |
||
| 16 | * @throws RequestException |
||
| 17 | * @throws InvalidArgumentException |
||
| 18 | */ |
||
| 19 | public function cancelVerify(array $params): array |
||
| 20 | { |
||
| 21 | return $this->httpPost('coupons/cancelVerify', $params); |
||
| 22 | } |
||
| 23 | |||
| 24 | /** |
||
| 25 | * 卡券废弃接口. |
||
| 26 | * |
||
| 27 | * @param array $params |
||
| 28 | * @return array |
||
| 29 | * |
||
| 30 | * @throws RequestException |
||
| 31 | * @throws InvalidArgumentException |
||
| 32 | */ |
||
| 33 | public function abandon(array $params): array |
||
| 36 | } |
||
| 37 | |||
| 38 | /** |
||
| 39 | * 卡券同步. |
||
| 40 | * |
||
| 41 | * @param array $params |
||
| 42 | * @return array |
||
| 43 | * |
||
| 44 | * @throws RequestException |
||
| 45 | * @throws InvalidArgumentException |
||
| 46 | */ |
||
| 47 | public function syncV2(array $params): array |
||
| 48 | { |
||
| 49 | return $this->httpPost('coupons/syncV2', $params); |
||
| 50 | } |
||
| 51 | |||
| 52 | /** |
||
| 53 | * 卡券核销接口V2版本. |
||
| 54 | * |
||
| 55 | * @param array $params |
||
| 56 | * @return array |
||
| 57 | * |
||
| 58 | * @throws RequestException |
||
| 59 | * @throws InvalidArgumentException |
||
| 60 | */ |
||
| 61 | public function verifyV2(array $params): array |
||
| 64 | } |
||
| 65 | } |
||
| 66 |