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

com.checkout.payments.PaymentsClient Maven / Gradle / Ivy

There is a newer version: 6.4.2
Show newest version
package com.checkout.payments;

import com.checkout.ItemsResponse;
import com.checkout.payments.request.AuthorizationRequest;
import com.checkout.payments.request.PaymentRequest;
import com.checkout.payments.request.PayoutRequest;
import com.checkout.payments.response.AuthorizationResponse;
import com.checkout.payments.response.GetPaymentResponse;
import com.checkout.payments.response.PaymentResponse;
import com.checkout.payments.response.PaymentsQueryResponse;
import com.checkout.payments.response.PayoutResponse;

import java.util.concurrent.CompletableFuture;

public interface PaymentsClient {

    CompletableFuture requestPayment(PaymentRequest paymentRequest);

    CompletableFuture requestPayment(PaymentRequest paymentRequest, final String idempotencyKey);

    CompletableFuture requestPayout(PayoutRequest payoutRequest);

    CompletableFuture requestPayout(PayoutRequest payoutRequest, final String idempotencyKey);

    CompletableFuture getPaymentsList(PaymentsQueryFilter queryFilter);

    CompletableFuture getPayment(String paymentId);

    CompletableFuture> getPaymentActions(String paymentId);

    CompletableFuture incrementPaymentAuthorization(String paymentId, AuthorizationRequest authorizationRequest);

    CompletableFuture incrementPaymentAuthorization(String paymentId, AuthorizationRequest authorizationRequest, String idempotencyKey);

    CompletableFuture capturePayment(String paymentId);

    CompletableFuture capturePayment(String paymentId, String idempotencyKey);

    CompletableFuture capturePayment(String paymentId, CaptureRequest captureRequest);

    CompletableFuture capturePayment(String paymentId, CaptureRequest captureRequest, String idempotencyKey);

    CompletableFuture refundPayment(String paymentId);

    CompletableFuture refundPayment(String paymentId, String idempotencyKey);

    CompletableFuture refundPayment(String paymentId, RefundRequest refundRequest);

    CompletableFuture refundPayment(String paymentId, RefundRequest refundRequest, String idempotencyKey);

    CompletableFuture voidPayment(String paymentId);

    CompletableFuture voidPayment(String paymentId, String idempotencyKey);

    CompletableFuture voidPayment(String paymentId, VoidRequest voidRequest);

    CompletableFuture voidPayment(String paymentId, VoidRequest voidRequest, String idempotencyKey);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy