package com.yono.messeripos.api.service;

import com.yono.messeripos.api.ApiHelper;
import com.yono.messeripos.models.PaymentsModels;
import com.yono.messeripos.models.VaNumberModels;
import com.yono.messeripos.response.DataResponse;

import java.util.List;

import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.PUT;
import retrofit2.http.Path;

public interface PaymentService {
    @POST(ApiHelper.VERSI_API_1+"payment")
    Call<DataResponse<PaymentsModels<List<VaNumberModels>>>> postFromCart(@Body PaymentsModels paymentsModels);

    @PUT(ApiHelper.VERSI_API_1+"payment/{id}")
    Call<DataResponse> postFromCartPending(@Path("id")String id,
                                           @Body PaymentsModels paymentsModels);

    @GET(ApiHelper.VERSI_API_1+"payment/{id}")
    Call<DataResponse<PaymentsModels>> getTransactionById(@Body PaymentsModels paymentsModels, @Path("id") int id);
}
