package com.sonic.lion.service;

import com.sonic.lion.domain.req.PrePaymentReq;
import com.sonic.lion.domain.resp.BuffCheckoutResp;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

public interface CheckOutService {

    @Transactional(propagation = Propagation.REQUIRES_NEW)
    void chargeAfterPayment(String paymentTradeNo, Long srcUid);

    /**
     * 预下单并结账
     * @param req
     * @return
     */
    BuffCheckoutResp checkout(PrePaymentReq req);

}
