com.cardpay.sdk.api.ReportsApiControllerApi Maven / Gradle / Ivy
package com.cardpay.sdk.api;
import com.cardpay.sdk.client.CollectionFormats.*;
import com.cardpay.sdk.model.ReportsRequest;
import com.cardpay.sdk.model.ReportsResponse;
import retrofit2.Call;
import retrofit2.http.*;
public interface ReportsApiControllerApi {
/**
* Gets actual state of processing of requested settlement reports
*
* @param id id (required)
* @return Call<ReportsResponse>
*/
@GET("api/reports/{id}")
Call gETReports(
@retrofit2.http.Path("id") String id
);
/**
* Download the report file
*
* @param id id (required)
* @return Call<byte[]>
*/
@GET("api/reports/download/{id}")
Call gETReportsContent(
@retrofit2.http.Path("id") String id
);
/**
* Initiate the reports' preparation
*
* @param request request (required)
* @return Call<ReportsResponse>
*/
@Headers({
"Content-Type:application/json"
})
@POST("api/reports")
Call pOSTReports(
@retrofit2.http.Body ReportsRequest request
);
}