package com.doverfuelingsolutions.issp.api.service

import com.doverfuelingsolutions.issp.api.WayneApiConfig
import com.doverfuelingsolutions.issp.api.dto.ResultObj
import com.doverfuelingsolutions.issp.api.dto.ResultPayment
import com.doverfuelingsolutions.issp.api.dto.ResultPaymentParam
import com.wayne.www.waynelib.webservice.entity.ClientPosTrx
import com.wayne.www.waynelib.webservice.entity.PosTrx
import com.wayne.www.waynelib.webservice.entity.PosTrxMop
import retrofit2.Call
import retrofit2.http.Body
import retrofit2.http.GET
import retrofit2.http.POST
import retrofit2.http.Path

interface ServiceTrx {

    @POST(WayneApiConfig.PATH_TRX_TRANS)
    fun report(@Body trx: Any): Call<Any>

    @GET(WayneApiConfig.PATH_TRX_PAY_PARAM)
    fun paymentParam(): Call<ResultObj<List<ResultPaymentParam>>>

    @POST(WayneApiConfig.PATH_TRX_TRANS)
    fun reportPaymentOrder(@Body clientPosTrx: ClientPosTrx): Call<PosTrx>

    @POST(WayneApiConfig.PATH_PAY_BY_ID)
    fun pay(@Path("id") id: String, @Body posTrxMop: PosTrxMop): Call<ResultPayment>
}