package es.ujaen.rlc00008.gnbwallet.data.source.net;

import es.ujaen.rlc00008.gnbwallet.data.source.net.responses.CCVResponse;
import es.ujaen.rlc00008.gnbwallet.data.source.net.responses.CardTransactionsResponse;
import es.ujaen.rlc00008.gnbwallet.data.source.net.responses.ChallengeResponse;
import es.ujaen.rlc00008.gnbwallet.data.source.net.responses.GlobalPositionResponse;
import es.ujaen.rlc00008.gnbwallet.data.source.net.responses.LoginResponse;
import es.ujaen.rlc00008.gnbwallet.data.source.net.responses.PinResponse;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Headers;
import retrofit2.http.Path;

/**
 * Created by Mobilers on 18/1/16.
 */
public interface GNBServices {

	@Headers({
			"Content-Type: application/json",
	})
	@GET("/pfc/ws/users/{login}/userLogin.json")
	Call<ResponseWrapper<LoginResponse>> userLogin(
			@Path("login") String userLogin
	);

	@Headers({
			"Content-Type: application/json",
	})
	@GET("/pfc/ws/users/{login}/getGlobalPosition.json")
	Call<ResponseWrapper<GlobalPositionResponse>> getGlobalPosition(
			@Path("login") String userLogin
	);

	@Headers({
			"Content-Type: application/json",
	})
	@GET("/pfc/ws/users/{login}/generateChallenge.json")
	Call<ResponseWrapper<ChallengeResponse>> generateChallenge(
			@Path("login") String userLogin
	);

	@Headers({
			"Content-Type: application/json",
	})
	@GET("/pfc/ws/cardTransactions.json")
	Call<ResponseWrapper<CardTransactionsResponse>> getCardTransactions();

	@Headers({
			"Content-Type: application/json",
	})
	@GET("/pfc/ws/getPin.json")
	Call<ResponseWrapper<PinResponse>> getPin();

	@Headers({
			"Content-Type: application/json",
	})
	@GET("/pfc/ws/getCCV.json")
	Call<ResponseWrapper<CCVResponse>> getCCV();

	@Headers({
			"Content-Type: application/json",
	})
	@GET("/pfc/ws/disableCard.json")
	Call<ResponseWrapper<Void>> disableCard();

	@Headers({
			"Content-Type: application/json",
	})
	@GET("/pfc/ws/enableCard.json")
	Call<ResponseWrapper<Void>> enableCard();

	@Headers({
			"Content-Type: application/json",
	})
	@GET("/pfc/ws/setFavorite.json")
	Call<ResponseWrapper<Void>> setFavorite();

	@Headers({
			"Content-Type: application/json",
	})
	@GET("/pfc/ws/unsetFavorite.json")
	Call<ResponseWrapper<Void>> unsetFavorite();
}

@@ -1385,16 +1385,28 @@
 /pfc/ws/
+cards/%7Bpan%7D/
 cardTran
@@ -1490,16 +1490,49 @@
 actions(
+%0A%09%09%09@Path(%22pan%22) String cardPan%0A%09
 );%0A%0A%09@He
@@ -1595,16 +1595,28 @@
 /pfc/ws/
+cards/%7Bpan%7D/
 getPin.j
@@ -1664,16 +1664,49 @@
  getPin(
+%0A%09%09%09@Path(%22pan%22) String cardPan%0A%09
 );%0A%0A%09@He
@@ -1769,16 +1769,28 @@
 /pfc/ws/
+cards/%7Bpan%7D/
 getCCV.j
@@ -1838,16 +1838,49 @@
  getCCV(
+%0A%09%09%09@Path(%22pan%22) String cardPan%0A%09
 );%0A%0A%09@He
@@ -1943,16 +1943,28 @@
 /pfc/ws/
+cards/%7Bpan%7D/
 disableC
@@ -2007,32 +2007,65 @@
 d%3E%3E disableCard(
+%0A%09%09%09@Path(%22pan%22) String cardPan%0A%09
 );%0A%0A%09@Headers(%7B%0A
@@ -2120,16 +2120,28 @@
 /pfc/ws/
+cards/%7Bpan%7D/
 enableCa
@@ -2190,16 +2190,49 @@
 bleCard(
+%0A%09%09%09@Path(%22pan%22) String cardPan%0A%09
 );%0A%0A%09@He
@@ -2295,16 +2295,28 @@
 /pfc/ws/
+cards/%7Bpan%7D/
 setFavor
@@ -2367,16 +2367,49 @@
 avorite(
+%0A%09%09%09@Path(%22pan%22) String cardPan%0A%09
 );%0A%0A%09@He
@@ -2472,16 +2472,28 @@
 /pfc/ws/
+cards/%7Bpan%7D/
 unsetFav
@@ -2548,13 +2548,46 @@
 avorite(
+%0A%09%09%09@Path(%22pan%22) String cardPan%0A%09
 );%0A%7D%0A

Fix GNBServices