WxpayController.ts 726 Bytes
import {AxiosResponse, AxiosStatic} from 'axios';
import dayjs, {Dayjs} from 'dayjs';
import {ResponseEntity} from "lib/src/domain/ResponseEntity";
// region 前端扩展导入包
// endregion

/**
 */
export class WxpayController {

    /**
     * <pre>
     退款回调通知处理
     详见 https://pay.weixin.qq.com/doc/v3/merchant/4012791865
     </pre>
     * @param notifyData
     * @param request
     * @return ResponseEntity
     * @throws WxPayException
     */
    static parseRefundNotifyResult(axios: AxiosStatic, notifyData: string): Promise<AxiosResponse<ResponseEntity<String>>> {
        return axios.post('wxpay/notify/refund', notifyData);
    }

    // region 前端扩展代码区
    // endregion
}