package com.yono.messeripos.api.service;

import com.yono.messeripos.api.ApiHelper;
import com.yono.messeripos.models.ProductCartModels;
import com.yono.messeripos.models.ProductModels;
import com.yono.messeripos.response.DataResponse;
import com.yono.messeripos.response.OrdersResponse;

import java.util.List;

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

public interface OrdersService {
    @POST(ApiHelper.VERSI_API_1+"order")
    Call<DataResponse> postOrders(@Body OrdersResponse cartPost);

    @GET(ApiHelper.VERSI_API_1+"order-products/{id}")
    Call<DataResponse<List<ProductModels>>> getOrdersProductById(@Path("id") String id);
}
