All Downloads are FREE. Search and download functionalities are using the official Maven repository.

matrix.business.pay.service.MatrixRefundService Maven / Gradle / Ivy

There is a newer version: 2.1.11
Show newest version
package matrix.business.pay.service;

import matrix.business.pay.entity.MatrixBusinessRefundEntity;

import java.util.List;

/**
 * 退款service
 *
 * @author WangCheng
 */
public interface MatrixRefundService {

    /**
     * 保存退款实体
     *
     * @param refundEntity 退款实体
     */
    void saveRefundEntity(MatrixBusinessRefundEntity refundEntity);

    /**
     * 更新退款状态
     *
     * @param refundIds          退款IDs
     * @param originRefundStatus 原退款状态
     * @param newRefundStatus    新退款状态
     * @return 退款实体列表
     */
    List changeRefundStatus(List refundIds, Integer originRefundStatus, Integer newRefundStatus);

    /**
     * 查询未退款的实体
     *
     * @param payId 支付ID
     * @return 退款实体列表
     */
    List getRefundEntityByNoRefund(String payId);

    /**
     * 查询已退款的实体
     *
     * @param payId 支付ID
     * @return 退款实体列表
     */
    List getRefundEntityByRefunded(String payId);

    /**
     * 根据退款流水ID查询退款明细
     *
     * @param refundId 退款流水ID
     * @return 退款明细
     */
    MatrixBusinessRefundEntity getRefundEntityByRefundId(String refundId);

    /**
     * 获取类型编码
     *
     * @param refundId 退款ID
     * @return 类型编码
     */
    String getTypeCode(String refundId);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy