package com.hzs.retail.sale.controller.service;

import com.hzs.common.domain.sale.order.SaOrderItems;
import com.hzs.retail.sale.param.RetailOrderParam;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

/**
 * @Description: 新零售订单邮费处理服务
 * @Author: jiang chao
 * @Time: 2024/12/15 10:21
 * @Classname: IRetailOrderPostageService
 * @PackageName: com.hzs.retail.sale.controller.service
 */
public interface IRetailOrderPostageService {

    /**
     * 计算订单邮费
     *
     * @param freePostage 免邮金额
     * @param postageMap  邮费模板map（key：邮费模板ID，value：邮费订单明细）
     * @param orderParam  订单入参
     * @return
     */
    String calculatePostage(BigDecimal freePostage, Map<Integer, List<SaOrderItems>> postageMap, RetailOrderParam orderParam);

}
