com.splittypay.api.SplittyPayApi Maven / Gradle / Ivy
package com.splittypay.api;
import com.splittypay.model.Page;
import com.splittypay.model.request.PayOutRequest;
import com.splittypay.model.request.PaymentRequest;
import com.splittypay.model.response.BalanceResponse;
import com.splittypay.model.response.InteractionResponse;
import com.splittypay.model.response.PayOutResponse;
import com.splittypay.model.response.PaymentMerchantResponse;
import com.splittypay.model.response.PaymentResponse;
import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Path;
public interface SplittyPayApi {
@POST("register-payment")
Call createPayment(final @Body PaymentRequest paymentRequest);
@GET("payments/{id}")
Call getPayment(@Path("id") int id);
@GET("payments/getsByRandomId/{randomId}")
Call getPaymentByRef(@Path("randomId") String randomId);
@GET("payments")
Call> getPayments();
@GET("balance")
Call getBalance();
@POST("payouts")
Call createPayOut(final @Body PayOutRequest payOutRequest);
@GET("payouts/{id}")
Call getPayOut(@Path("id") long id);
@GET("payouts")
Call> getPayOuts();
@GET("payments/{id}/interactions")
Call> getInteractions(@Path("id") int id);
@GET("payments/getsByRandomId/{randomId}/interactions")
Call> getInteractionsByRef(@Path("randomId") String randomId);
}