All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.payu.sdk.api.services.MobileServices Maven / Gradle / Ivy

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;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy