Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public interface EurobankApi {
- @GET("/check")
- void apiCheck(Callback<Response> response);
- //region ACCOUNTS
- @GET("/accounts/{account}")
- List<Account> getAccountInfo();
- @GET("/accounts/{accountId}")
- Response getAccounts(@Path("account") String accountId);
- @GET("/accounts/{accountId}/savings")
- Response getSavingAccountTypes(@Path("accountId") String accountId);
- @GET("/accounts/{accountId}/blocked_funds")
- Response getAccountBlockedFunds(@Path("accountId") String accountId);
- @GET("/accounts/{accountId}/blocked_funds")
- void getAccountBlockedFunds(@Path("accountId") String accountId,
- Callback<BlockadesContainer> callback);
- @GET("/accounts/{accountId}/recent_operations?limit=3")
- Response getAccountRecentOperation(@Path("accountId") int accountId);
- @GET("/accounts/operation_categories")
- void getAccountsOperationCategories(Callback<JsonObject> response);
- // @GET("/transfers")
- // void getTransfers(Callback<JsonObject> response);
- @GET("/accounts")
- void getAccounts(Callback<JsonObject> response);
- @GET("/accounts")
- Response getAccounts();
- //endregion
- //region PHONE
- @GET("/prepaid/operators")
- void getPrepaidOperators(Callback<JsonObject> response);
- @GET("/prepaid/numbers")
- void getPrepaidNumbers(Callback<JsonObject> response);
- @GET("/numbers")
- Response getPhoneNumbers();
- @POST("/prepaid/topup")
- Response newPrepaidTopup(@Body NewPrepaidTopup body);
- //endregion
- //region DEPOSITS
- @GET("/deposits")
- void getDeposits(Callback<JsonObject> response);
- @GET("/deposits?status=ACTIVATED&status=ESTABILISHED")
- Response getDeposits();
- @GET("/deposit_calculator/types")
- void getDepositCalculatorTypes(Callback<JsonObject> response);
- //endregion
- //region LOANS
- @GET("/loans")
- void getLoans(Callback<JsonObject> response);
- @GET("/loans")
- Response getLoans();
- //endregion
- //region CREDIT
- @GET("/cards/credit")
- void getCreditCards(Callback<JsonObject> response);
- @GET("/cards/credit")
- Response getCreditCards();
- @POST("/cards/credit/{id}/reserve")
- void getCreditCardsReserve(@Path("id") String id, Callback<JsonObject> response);
- @GET("/cards/credit/{id}/history")
- void getCreditCardsHistory(@Path("history") String id, Callback<JsonObject> response);
- //endregion
- //region DEBIT
- // @GET("/cards/debit")
- // JsonObject getDebitCards(@Query("nrb") String nrb);
- @GET("/cards/debit")
- Response getDebitCards(@Query("nrb") String nrb);
- @GET("/cards/debit")
- Response getDebitCards();
- @GET("/cards/debit/limit")
- Response getDebitCardsLimits();
- // TODO bartek
- @POST("/cards/debit/{card_id}/limit")
- // TODO bartek body
- Response setDebitCardLimit(@Path("card_id") long cardId);
- //endregion
- @GET("/special_offer")
- void getSpecialOffer(Callback<JsonObject> response);
- @GET("/special_offer")
- Response getSpecialOffer();
- @GET("/receivers")
- void getReceivers(Callback<JsonObject> response);
- @GET("/receivers")
- JsonObject getReceivers();
- @GET("/ids")
- void getDocuments(Callback<JsonObject> response);
- //region HCE
- @GET("/cards/debit/hce/activation")
- Response getHceCardActivationCode(@Query("id") String cardId);
- // TODO bartek
- @POST("/cards/debit/hce/new")
- Response newHceCard(@Body HceNew hceNew);
- //endregion
- @GET("/{dynamicPath}")
- Response getRequest(String dynamicPath);
- @PUT("/device/pushid")
- Response putPushId(@Body PushId pushId) throws RestFailException;
- public static class RestFailException extends Exception{
- int status;
- RestFailException(int status){
- this.status = status;
- }
- @Override
- public String getMessage() {
- return String.format("Nie udalo sie wyslanie push id z bledem %d", status);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement