com.payu.sdk.api.services.PaymentServices Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of api-client Show documentation
Show all versions of api-client Show documentation
A fresh implementation of the PayU API Client for Android
The newest version!
package com.payu.sdk.api.services;
import com.payu.sdk.api.exceptions.AuthenticationException;
import com.payu.sdk.api.exceptions.HttpException;
import com.payu.sdk.api.exceptions.NetworkException;
import com.payu.sdk.api.exceptions.PayUException;
import com.payu.sdk.api.model.payments.PaymentBanksRequest;
import com.payu.sdk.api.model.payments.PaymentsBanksResponse;
import com.payu.sdk.api.model.payments.PaymentsMethodsResponse;
import com.payu.sdk.api.model.request.Request;
import com.payu.sdk.api.model.response.Response;
import retrofit.http.Body;
import retrofit.http.POST;
import static com.payu.sdk.api.constants.Resources.URI;
public interface PaymentServices {
@POST(URI) Response ping(@Body Request bodyRequest)
throws HttpException, AuthenticationException, PayUException, NetworkException;
@POST(URI) PaymentsMethodsResponse getPaymentMethods(@Body Request bodyRequest)
throws HttpException, AuthenticationException, PayUException, NetworkException;
@POST(URI) PaymentsBanksResponse getListBank(@Body PaymentBanksRequest bodyRequest)
throws HttpException, AuthenticationException, PayUException, NetworkException;
}