package com.gingersoft.gsa.cloud.pay.device.pos.yedpay.lifecycle.model.service;

import com.gingersoft.gsa.cloud.common.bean.BaseResult;

import io.reactivex.Single;
import me.jessyan.retrofiturlmanager.RetrofitUrlManager;
import okhttp3.RequestBody;
import retrofit2.http.Body;
import retrofit2.http.Headers;
import retrofit2.http.POST;

/**
 * @作者: bin
 * @創建時間: 2021-04-30 16:27
 * @更新時間: 2021-04-30 16:27
 * @描述:
 */
public interface YedpayService {

    @POST("posPay/getYedPayTxnId" + RetrofitUrlManager.IDENTIFICATION_PATH_SIZE + 2)
    Single<BaseResult> getYedPayTxnId(@Body RequestBody requestBody);

    @POST("posPay/getYedPayRefundTxnId" + RetrofitUrlManager.IDENTIFICATION_PATH_SIZE + 2)
    Single<BaseResult> getYedPayRefundTxnId(@Body RequestBody requestBody);

    @Headers({"Domain-Name: ricepon_pay"})
    @POST("gsaYedPay/updatePayStatus" + RetrofitUrlManager.IDENTIFICATION_PATH_SIZE + 2)
    Single<BaseResult> findSaleStatus(@Body RequestBody requestBody);

    @Headers({"Domain-Name: ricepon_pay"})
    @POST("gsaYedPay/refund" + RetrofitUrlManager.IDENTIFICATION_PATH_SIZE + 2)
    Single<BaseResult> refundOrder(@Body RequestBody requestBody);

}
