package com.bonus.core.pay.common.service;

import com.bonus.core.pay.common.model.TradeChannel;
import com.bonus.core.pay.common.vo.TradeChannelVO;
import com.fasterxml.jackson.databind.JsonNode;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

public interface TradeChannelService {
   void insert(TradeChannel tradeChannel);

   void updateTradeRecordChannelState(Long channelId, Integer tradeState, String tradeResult, String outTradeNo, BigDecimal realAmount, JsonNode param, LocalDateTime tradeTime);

   List<TradeChannelVO> listChannelDetailByTradeId(Long tradeId);

   List<TradeChannelVO> listChannelDetailByTradeIds(List<Long> tradeId);
}
