You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
1.0 KiB

  1. <?php
  2. namespace App\Service;
  3. interface CouponServiceInterface
  4. {
  5. public function getSystemCouponUserList($userId,$receiveType);
  6. public function userCouponAccount();
  7. public function userReceiveCoupon();
  8. public function getUserReceiveCouponList();
  9. public function getUserAvailableCoupons($orderAmount,$userId,$marketId,$type,$storetypeId);
  10. /**
  11. * 当前订单可用优惠券列表
  12. * @param $orderAmount 订单金额
  13. * @param $marketId 市场ID
  14. * @param $userId 用户ID
  15. * @param int $type 优惠券类型,1全平台 2线上 3线下
  16. * @param int[] $storeTypeIds 商户类型ID数组
  17. * @param array $fields
  18. * @return mixed
  19. */
  20. public function getOrderCanUseCoupons($orderAmount, $marketId, $userId, $fields=[], $type=1, $storeTypeIds=[0]);
  21. public function refundOrderCoupons($global_order_id);
  22. public function clearTodayCouponUsed($userId, $couponId);
  23. public function orderRefundCoupon($global_order_id);
  24. }