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

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

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

import com.checkout.ItemsResponse;
import com.checkout.payments.CaptureRequest;
import com.checkout.payments.CaptureResponse;
import com.checkout.payments.RefundRequest;
import com.checkout.payments.RefundResponse;
import com.checkout.payments.VoidRequest;
import com.checkout.payments.VoidResponse;
import com.checkout.payments.previous.request.PaymentRequest;
import com.checkout.payments.previous.request.PayoutRequest;
import com.checkout.payments.previous.response.GetPaymentResponse;
import com.checkout.payments.previous.response.PaymentResponse;
import com.checkout.payments.PaymentsQueryFilter;
import com.checkout.payments.previous.response.PaymentsQueryResponse;

import java.util.concurrent.CompletableFuture;

public interface PaymentsClient {

    CompletableFuture requestPayment(PaymentRequest paymentRequest);

    CompletableFuture requestPayment(PaymentRequest paymentRequest, String idempotencyKey);

    CompletableFuture requestPayout(PayoutRequest payoutRequest);

    CompletableFuture requestPayout(PayoutRequest payoutRequest, String idempotencyKey);

    CompletableFuture getPaymentsList(PaymentsQueryFilter queryFilter);

    CompletableFuture getPayment(String paymentId);

    CompletableFuture> getPaymentActions(String paymentId);

    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