彭雪彬
2025-07-14 c1d20b425b10e8ba59f102dd1ab413055883eed0
oying-system/src/main/java/com/oying/modules/hwc/service/SwiftPassService.java
New file
@@ -0,0 +1,44 @@
package com.oying.modules.hwc.service;
import com.alibaba.fastjson2.JSONObject;
import com.oying.modules.hwc.domain.HwcResponse;
import com.oying.utils.enums.PayTypeEnum;
import javax.validation.constraints.NotNull;
import java.util.Map;
/**
 * @author xin
 * @description
 * @date 2025/1/23 下午3:55
 */
public interface SwiftPassService {
    /**
     * <一句话功能简述>
     * <功能详细描述>支付请求
     *
     * @see [类、类#方法、类#成员]
     */
    HwcResponse pay(String ip, String total, String timeExpire, String description, String openId,
                    String orderNum, PayTypeEnum status);
    /**
     * <一句话功能简述>
     * <功能详细描述>订单查询
     *
     * @see [类、类#方法、类#成员]
     */
    JSONObject query(String orderNum, PayTypeEnum status);
    void closeOrder(String outTradeNo, PayTypeEnum status);
    /**
     * <一句话功能简述>
     * <功能详细描述>退款
     *
     * @see [类、类#方法、类#成员]
     */
    Map<String, String> refund(String returnNum, String orderNum, @NotNull(message = "备注不能为空") String reason,
                               long refund, long total, PayTypeEnum payType);
}