package com.doverfuelingsolutions.issp.api.service

import com.doverfuelingsolutions.issp.api.WayneApiConfig
import com.doverfuelingsolutions.issp.api.dto.ResultBarcode
import com.doverfuelingsolutions.issp.api.dto.ResultDeviceSessionInfo
import okhttp3.ResponseBody
import retrofit2.Call
import retrofit2.http.*

interface ServiceBase {

    @Headers("requestName: sessionInfo")
    @GET(WayneApiConfig.PATH_BASE_DEVICE_SESSION)
    fun sessionInfo(@Query("deviceSN") sn: String): Call<ResultDeviceSessionInfo>

    @Headers("requestName: barcodeInfo")
    @GET(WayneApiConfig.PATH_BARCODE)
    fun barcodeInfo(@Path("id") id: Int): Call<ResultBarcode>

    @GET(WayneApiConfig.POS_TICKET_INFO)
    fun posTicketInfo(@Path("trxId") trxId: String): Call<ResponseBody>
}