package shop.alien.store.service;

import shop.alien.entity.store.MerchantPaymentOrder;
import shop.alien.entity.store.RefundRecord;

/**
 * 退款相关异步落库：更新支付单 + 保存退款记录，避免阻塞退款接口响应
 */
public interface RefundRecordAsyncService {

    /**
     * 异步执行：先更新支付单状态，再保存退款记录（顺序保证）
     */
    void completeRefundAsync(MerchantPaymentOrder paymentOrder, RefundRecord record);
}
