Package cz.gopay.api.v3
Interface PaymentClient
public interface PaymentClient
- Author:
- Zbynek Novak novak.zbynek@gmail.com
-
Method Summary
Modifier and TypeMethodDescriptioncapturePayment(AuthHeader authHeader, Long id) capturePayment(AuthHeader authHeader, Long id, CapturePayment capturePayment) createPayment(AuthHeader authHeader, BasePayment createPayment) createRecurrentPayment(AuthHeader authHeader, Long id, NextPayment createPayment) voiddeleteCard(AuthHeader authHeader, Long cardId) findEETReceiptsByFilter(AuthHeader authHeader, EETReceiptFilter filter) getCardDetail(AuthHeader authHeader, Long cardId) getEETReceiptByPaymentId(AuthHeader authHeader, Long id) getHistoryOfRefunds(AuthHeader authHeader, Long id) getPayment(AuthHeader authHeader, Long id) getPaymentInstruments(AuthHeader authHeader, Long goId, Currency currency) byte[]getStatement(AuthHeader authHeader, AccountStatement accountStatement) refundPayment(AuthHeader authHeader, Long id, RefundPayment refundPayment) refundPayment(AuthHeader authHeader, Long id, Long amount) voidAuthorization(AuthHeader authHeader, Long id) voidRecurrence(AuthHeader authHeader, Long id)
-
Method Details
-
createPayment
@POST @Path("/payments/payment") @Produces({"application/json","application/xml"}) @Consumes("application/json") Payment createPayment(@BeanParam AuthHeader authHeader, BasePayment createPayment) -
refundPayment
@POST @Path("/payments/payment/{id}/refund") @Produces({"application/json","application/xml"}) @Consumes("application/x-www-form-urlencoded") PaymentResult refundPayment(@BeanParam AuthHeader authHeader, @PathParam("id") Long id, @FormParam("amount") Long amount) -
refundPayment
@POST @Path("/payments/payment/{id}/refund") @Produces({"application/json","application/xml"}) @Consumes("application/json") PaymentResult refundPayment(@BeanParam AuthHeader authHeader, @PathParam("id") Long id, RefundPayment refundPayment) -
createRecurrentPayment
@POST @Path("/payments/payment/{id}/create-recurrence") @Consumes("application/json") @Produces({"application/json","application/xml"}) Payment createRecurrentPayment(@BeanParam AuthHeader authHeader, @PathParam("id") Long id, NextPayment createPayment) -
voidRecurrence
@POST @Path("/payments/payment/{id}/void-recurrence") @Produces({"application/json","application/xml"}) @Consumes("application/x-www-form-urlencoded") PaymentResult voidRecurrence(@BeanParam AuthHeader authHeader, @PathParam("id") Long id) -
capturePayment
@POST @Path("/payments/payment/{id}/capture") @Produces({"application/json","application/xml"}) @Consumes("application/x-www-form-urlencoded") PaymentResult capturePayment(@BeanParam AuthHeader authHeader, @PathParam("id") Long id) -
capturePayment
@POST @Path("/payments/payment/{id}/capture") @Produces({"application/json","application/xml"}) @Consumes("application/json") PaymentResult capturePayment(@BeanParam AuthHeader authHeader, @PathParam("id") Long id, CapturePayment capturePayment) -
voidAuthorization
@POST @Path("/payments/payment/{id}/void-authorization") @Produces({"application/json","application/xml"}) @Consumes("application/x-www-form-urlencoded") PaymentResult voidAuthorization(@BeanParam AuthHeader authHeader, @PathParam("id") Long id) -
getPayment
@GET @Path("/payments/payment/{id}") @Produces({"application/json","application/xml"}) @Consumes("application/x-www-form-urlencoded") Payment getPayment(@BeanParam AuthHeader authHeader, @PathParam("id") Long id) -
getPaymentInstruments
@GET @Path("eshops/eshop/{goid}/payment-instruments/{currency}") @Produces("application/json") @Consumes("application/x-www-form-urlencoded") PaymentInstrumentRoot getPaymentInstruments(@BeanParam AuthHeader authHeader, @PathParam("goid") Long goId, @PathParam("currency") Currency currency) -
getStatement
@POST @Path("accounts/account-statement") @Produces("application/octet-stream") @Consumes("application/json") byte[] getStatement(@BeanParam AuthHeader authHeader, AccountStatement accountStatement) -
findEETReceiptsByFilter
@POST @Path("/eet-receipts") @Produces({"application/json","application/xml"}) @Consumes("application/json") List<EETReceipt> findEETReceiptsByFilter(@BeanParam AuthHeader authHeader, EETReceiptFilter filter) -
getEETReceiptByPaymentId
@GET @Path("/payments/payment/{id}/eet-receipts") @Produces({"application/json","application/xml"}) @Consumes("application/json") List<EETReceipt> getEETReceiptByPaymentId(@BeanParam AuthHeader authHeader, @PathParam("id") Long id) -
getCardDetail
@GET @Path("/payments/cards/{card_id}") @Produces({"application/json","application/xml"}) @Consumes("application/json") Card getCardDetail(@BeanParam AuthHeader authHeader, @PathParam("card_id") Long cardId) -
deleteCard
@DELETE @Path("payments/cards/{card_id}") void deleteCard(@BeanParam AuthHeader authHeader, @PathParam("card_id") Long cardId) -
getHistoryOfRefunds
@GET @Path("payments/payment/{id}/refunds") @Produces({"application/json","application/xml"}) @Consumes("application/json") List<Refund> getHistoryOfRefunds(@BeanParam AuthHeader authHeader, @PathParam("id") Long id)
-