package cn.freemud.service.thirdparty;

import cn.freemud.entities.dto.order.FacePayRequestDto;
import cn.freemud.entities.dto.order.FacePayResponseDto;
import cn.freemud.management.entities.dto.response.pay.PayBatchRefundResponse;
import com.freemud.sdk.api.assortment.order.request.order.BatchOrderRefundV2Request;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * All rights Reserved, Designed By www.freemud.cn
 *
 * @version V1.0
 * @Title: PaymentNewClient
 * @Package cn.freemud.service.thirdparty
 * @Description:
 * @author: ping1.wu
 * @date: 2019/12/25 19:09
 * @Copyright: 2019 www.freemud.cn Inc. All rights reserved.
 * 注意：本内容仅限于上海非码科技内部传阅，禁止外泄以及用于其他的商业目
 */
@FeignClient(name = "payment-service-new",url="${payment.new.baseUrl}")
@RequestMapping(produces = {"application/json;charset=UTF-8"})
public interface PaymentNewClient {

    /**
     * 扫脸支付
     */
    @PostMapping("paymentcenter/facePay")
    com.freemud.application.sdk.api.base.BaseResponse<FacePayResponseDto> facePay(@RequestBody FacePayRequestDto orderPayDto);

    /**
     * 批量支付退款
     */
    @PostMapping("/payment/application/batch/refund")
    PayBatchRefundResponse batchRefund(BatchOrderRefundV2Request batchOrderRefundV2Request);

}
