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

com.payu.sdk.api.services.PaymentServices 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.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;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy