admin
2020-05-20 98b1a0affd69bbe63223c21fdd2c404e8bedfccb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
package com.yeshi.fanli.service.inter.shop;
 
import java.math.BigDecimal;
 
import com.yeshi.fanli.exception.redpack.RedPackBalanceException;
import com.yeshi.fanli.exception.shop.BanLiShopOrderException;
 
/**
 * 板栗商城订单服务
 * 
 * @author Administrator
 *
 */
public interface BanLiShopOrderPayService {
 
    /**
     * 订单支付(用红包)
     * 
     * @param orderId
     * @throws BanLiShopOrderException
     * @throws RedPackBalanceException
     */
    public void payOrderByHongBao(Long orderId) throws BanLiShopOrderException, RedPackBalanceException;
 
    /**
     * 订单支付(用现金)
     * 
     * @param orderId
     * @throws BanLiShopOrderException
     */
    public void payOrderByMoney(Long orderId, BigDecimal money) throws BanLiShopOrderException;
 
    /**
     * 订单退款
     * 
     * @param orderId
     * @throws BanLiShopOrderException
     */
    public void refund(Long orderId) throws BanLiShopOrderException;
 
    /**
     * 充值(按照订单号)
     * 
     * @param orderId
     * @throws BanLiShopOrderException
     */
    public void charge(Long orderId) throws BanLiShopOrderException;
    
    
    /**
     * 验证订单失效状态
     * @Title: invalidOrderByOrderId
     * @Description: 
     * @param orderId
     * @param stateDesc 
     * void 返回类型
     * @throws
     */
    public void invalidOrderByOrderId(Long orderId, String stateDesc) throws BanLiShopOrderException;
}