
package com.tmerclub.cloud.api.multishop.feign;

import com.tmerclub.cloud.api.multishop.bo.OrderChangeShopWalletAmountBO;
import com.tmerclub.cloud.common.response.ServerResponseEntity;

/**
 * @author lhd
 * @date 2022/7/3716:42
 */
public interface ShopWalletFeignClient {

    /**
     * 获取店铺余额
     * @param shopId 店铺id
     * @param paySysType 支付系统类型 0默认1通联
     * @return
     */
    ServerResponseEntity<Long> getSettlementAmountByShopId(Long shopId, Integer paySysType);

    /**
     * 减少商家结算金额
     * @param orderChangeShopWalletAmountBO
     */
    void subSettlementAmount(OrderChangeShopWalletAmountBO orderChangeShopWalletAmountBO);

    /**
     * 通联商家充值回调
     * @param bizOrderNo
     * @param payStatus
     * @param bizUserId
     * @return
     */
    ServerResponseEntity<Void> rechargeBack(String bizOrderNo,
                                            String payStatus,
                                            String bizUserId);

}
