package payp.mard2p.api.v0.models; import io.reactivex.Single; import java.lang.Double; import java.lang.Integer; import java.lang.Long; import java.lang.String; import java.lang.Void; import retrofit2.http.DELETE; import retrofit2.http.GET; import retrofit2.http.POST; import retrofit2.http.PUT; import retrofit2.http.Path; import retrofit2.http.Query; /** * Generated by API Builder - https://www.apibuilder.io * Service version: 0.0.2-dev * User agent: apibuilder app.apibuilder.io/mard/mard2p-api/0.0.2-dev/android_rx2_client * * WARNING: not all features (notably unions) and data types work with android generator yet. * Android generator is designed to be used in an android application, but should work in any java codebase as long as you import jackson, retrofit2 and RxJava2 libraries. * If you are considering using this library, would like to request/discuss features, or would like to share how you're using it, please contact android-feedback@gilt.com * */ public interface PaymentsClient { /** * Used to create a payment. */ @POST("payments/create") Single postPaymentsCreate(@Query("payid") Long payid, @Query("payment_method") String paymentMethod, @Query("actorid") String actorid, @Query("ref_accountid") Long refAccountid, @Query("operatorid") String operatorid, @Query("amount") Double amount, @Query("currency") String currency, @Query("phone") Long phone, @Query("pin") Integer pin, @Query("payment_context") String paymentContext); /** * Used to update a payment. */ @PUT("payments/update/{payid}") Single putPaymentsUpdatePayid(@Path("payid") Long payid, @Query("payment_method") String paymentMethod, @Query("actorid") String actorid, @Query("ref_accountid") Long refAccountid, @Query("operatorid") String operatorid, @Query("amount") Double amount, @Query("phone") Long phone, @Query("pin") Integer pin, @Query("currency") String currency, @Query("payment_context") String paymentContext); /** * Delete some payment. */ @DELETE("payments/delete/{payid}") Single deletePaymentsDeletePayid(@Path("payid") Long payid); /** * Find payment by its id. */ @GET("payments/{payid}") Single getPaymentsPayid(@Path("payid") Long payid, @Query("payment_method") String paymentMethod, @Query("actorid") String actorid, @Query("ref_accountid") Long refAccountid, @Query("operatorid") String operatorid, @Query("amount") Double amount, @Query("phone") Long phone, @Query("pin") Long pin, @Query("currency") String currency, @Query("payment_context") String paymentContext); /** * Find payment by id accountid */ @GET("payments/{ref_accountid}") Single getPaymentsRefAccountid(@Path("ref_accountid") Long refAccountid, @Query("payid") Long payid, @Query("payment_method") String paymentMethod, @Query("actorid") String actorid, @Query("operatorid") String operatorid, @Query("amount") Double amount, @Query("phone") Long phone, @Query("pin") Integer pin, @Query("currency") String currency, @Query("payment_context") String paymentContext); /** * List all the payments */ @GET("payments/list") Single getPaymentsList(@Query("payid") Long payid, @Query("payment_method") String paymentMethod, @Query("actorid") String actorid, @Query("ref_accountid") Long refAccountid, @Query("operatorid") String operatorid, @Query("amount") Double amount, @Query("phone") Long phone, @Query("pin") Long pin, @Query("currency") String currency, @Query("payment_context") String paymentContext); }