package com.sonic.lion.service;

import com.sonic.lion.domain.req.PreChargeReq;
import com.sonic.lion.domain.resp.PrePaymentResp;

/**
 * 充值预下单
 */
public interface PreChargeHandlerService {

    /**
     * 预下单
     * @param userId
     * @param req
     * @param ip
     * @return
     */
    PrePaymentResp preCharge(Long userId, PreChargeReq req, String ip);

    /**
     * 苹果iap预下单
     * @param userId
     * @param req
     * @param ip
     * @return
     */
    PrePaymentResp iapPreCharge(Long userId, PreChargeReq req, String ip);

    /**
     * 安卓Google预下单
     * @param userId
     * @param req
     * @param ip
     * @return
     */
    PrePaymentResp googlePreCharge(Long userId, PreChargeReq req, String ip);
}
