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

com.payu.sdk.api.services.ReportServices 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.report.ReportingRequest;
import com.payu.sdk.api.model.report.ReportingResponse;
import com.payu.sdk.api.model.report.ReportingResponseOrderList;
import com.payu.sdk.api.model.report.ReportingResponseTransaction;
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 ReportServices {
  @POST(URI) Response ping(@Body Request bodyRequest)
      throws HttpException, AuthenticationException, PayUException, NetworkException;

  @POST(URI) ReportingResponse getOrderDetailById(@Body ReportingRequest bodyRequest)
      throws HttpException, AuthenticationException, PayUException, NetworkException;

  @POST(URI) ReportingResponseOrderList getOrderDetailByReferenceCode(
      @Body ReportingRequest bodyRequest)
      throws HttpException, AuthenticationException, PayUException, NetworkException;

  @POST(URI) ReportingResponseTransaction getTransactionResponse(@Body ReportingRequest request)
      throws HttpException, AuthenticationException, PayUException, NetworkException;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy