com.payu.sdk.api.services.MobileServices 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.CreditCardListResponse;
import com.payu.sdk.api.model.mobile.DeviceAuthorizationRequest;
import com.payu.sdk.api.model.mobile.DeviceIdentifierRequest;
import com.payu.sdk.api.model.mobile.DeviceIdentifierResponse;
import com.payu.sdk.api.model.mobile.SenderIdResponse;
import retrofit.http.Body;
import retrofit.http.GET;
import retrofit.http.POST;
import retrofit.http.Path;
import static com.payu.sdk.api.constants.Resources.MOBILE_PATH_KEY;
import static com.payu.sdk.api.constants.Resources.MOBILE_URI;
public interface MobileServices {
@POST(MOBILE_URI) DeviceIdentifierResponse registerInstallation(
@Path(MOBILE_PATH_KEY) String method, @Body DeviceIdentifierRequest deviceIdentifierRequest)
throws HttpException, AuthenticationException, PayUException, NetworkException;
@POST(MOBILE_URI) DeviceIdentifierResponse authorizeInstallation(
@Path(MOBILE_PATH_KEY) String method,
@Body DeviceAuthorizationRequest deviceAuthorizationRequest)
throws HttpException, AuthenticationException, PayUException, NetworkException;
@POST(MOBILE_URI) CreditCardListResponse findDeviceTokens(@Path(MOBILE_PATH_KEY) String method,
@Body DeviceAuthorizationRequest deviceAuthorizationRequest)
throws HttpException, AuthenticationException, PayUException, NetworkException;
@GET(MOBILE_URI) SenderIdResponse getSenderId(@Path(MOBILE_PATH_KEY) String method)
throws HttpException, AuthenticationException, PayUException, NetworkException;
}