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

com.checkout.workflows.WorkflowsClient Maven / Gradle / Ivy

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

import com.checkout.EmptyResponse;
import com.checkout.ItemsResponse;
import com.checkout.common.IdResponse;
import com.checkout.workflows.actions.request.WorkflowActionRequest;
import com.checkout.workflows.actions.response.WorkflowActionInvocationsResponse;
import com.checkout.workflows.conditions.request.WorkflowConditionRequest;
import com.checkout.workflows.events.GetEventResponse;
import com.checkout.workflows.events.SubjectEventsResponse;
import com.checkout.workflows.events.WorkflowEventTypes;
import com.checkout.workflows.reflow.ReflowRequest;
import com.checkout.workflows.reflow.ReflowResponse;

import java.util.concurrent.CompletableFuture;

public interface WorkflowsClient {

    CompletableFuture getWorkflows();

    CompletableFuture createWorkflow(CreateWorkflowRequest createWorkflowRequest);

    CompletableFuture getWorkflow(String workflowId);

    CompletableFuture removeWorkflow(String workflowId);

    CompletableFuture updateWorkflow(String workflowId, UpdateWorkflowRequest updateWorkflowRequest);

    CompletableFuture addWorkflowAction(String workflowId, WorkflowActionRequest workflowActionRequest);

    CompletableFuture updateWorkflowAction(String workflowId, String actionId, WorkflowActionRequest workflowActionRequest);

    CompletableFuture removeWorkflowAction(String workflowId, String actionId);

    CompletableFuture addWorkflowCondition(String workflowId, WorkflowConditionRequest workflowConditionRequest);

    CompletableFuture updateWorkflowCondition(String workflowId, String conditionId, WorkflowConditionRequest workflowConditionRequest);

    CompletableFuture removeWorkflowCondition(String workflowId, String conditionId);

    CompletableFuture> getEventTypes();

    CompletableFuture getEvent(String eventId);

    CompletableFuture getActionInvocations(String eventId, String actionId);

    CompletableFuture reflowByEvent(String eventId);

    CompletableFuture reflowByEventAndWorkflow(String eventId, String workflowId);

    CompletableFuture reflow(ReflowRequest reflowRequest);

    CompletableFuture getSubjectEvents(String subjectId);

    CompletableFuture reflowBySubject(String subjectId);

    CompletableFuture reflowBySubjectAndWorkflow(String subjectId, String workflowId);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy