package com.doverfuelingsolutions.issp.api.service

import com.doverfuelingsolutions.issp.api.dto.ResultAccumulationInfo
import com.doverfuelingsolutions.issp.api.dto.ResultPumpInfo
import com.doverfuelingsolutions.issp.api.entity.DefaultParams
import retrofit2.Call
import retrofit2.http.Body
import retrofit2.http.Headers
import retrofit2.http.POST

interface ServiceStation {

    @POST("u/?mn=GetPumpsLayout&pn=fdcServerApp&en=Applications.FDC.FdcServerHostApp")
    fun getNozzleInfo(@Body params: DefaultParams = DefaultParams(emptyList())): Call<Array<ResultPumpInfo>>


    @POST("u/?mn=GetFuelSaleTrxDetailsAsync&pn=fdcServerApp&en=Applications.FDC.FdcServerHostApp")
    @Headers("Content-Type: application/json", "Accept: application/json")
    fun accumulationInfo(@Body params: DefaultParams): Call<List<ResultAccumulationInfo>>
}