public Task <SubjectEventsResponse> GetSubjectEvents(string subjectId) { CheckoutUtils.ValidateParams("subjectId", subjectId); return(ApiClient.Get <SubjectEventsResponse>(BuildPath(WorkflowsPath, EventsPath, SubjectPath, subjectId), SdkAuthorization())); }
public Task <GetEventResponse> GetEvent(string eventId) { CheckoutUtils.ValidateParams("eventId", eventId); return(ApiClient.Get <GetEventResponse>(BuildPath(WorkflowsPath, EventsPath, eventId), SdkAuthorization())); }
public Task <GetWorkflowResponse> GetWorkflow(string workflowId) { CheckoutUtils.ValidateParams(WorkflowId, workflowId); return(ApiClient.Get <GetWorkflowResponse>(BuildPath(WorkflowsPath, workflowId), SdkAuthorization())); }
public Task <EmptyResponse> RemoveWorkflow(string workflowId) { CheckoutUtils.ValidateParams(WorkflowId, workflowId); return(ApiClient.Delete <EmptyResponse>(BuildPath(WorkflowsPath, workflowId), SdkAuthorization())); }
public Task <WorkflowActionInvocationsResponse> GetActionInvocations(string eventId, string actionId) { CheckoutUtils.ValidateParams("eventId", eventId, "actionId", actionId); return(ApiClient.Get <WorkflowActionInvocationsResponse>( BuildPath(WorkflowsPath, EventsPath, eventId, ActionsPath, actionId), SdkAuthorization())); }
public Task <CreateWorkflowResponse> CreateWorkflow(CreateWorkflowRequest createWorkflowRequest) { CheckoutUtils.ValidateParams("createWorkflowRequest", createWorkflowRequest); return(ApiClient.Post <CreateWorkflowResponse>(WorkflowsPath, SdkAuthorization(), createWorkflowRequest)); }
public Task <EmptyResponse> RemoveWebhook(string webhookId, CancellationToken cancellationToken = default) { CheckoutUtils.ValidateParams("webhookId", webhookId); return(ApiClient.Delete <EmptyResponse>(BuildPath(WebhooksPath, webhookId), SdkAuthorization(), cancellationToken)); }
public Task <ReflowResponse> Reflow(ReflowRequest reflowRequest) { CheckoutUtils.ValidateParams("reflowRequest", reflowRequest); return(ApiClient.Post <ReflowResponse>(BuildPath(WorkflowsPath, EventsPath, ReflowPath), SdkAuthorization(), reflowRequest)); }
public PaymentSenderType?Type() { return(CheckoutUtils.GetEnumFromStringMemberValue <PaymentSenderType>( (string)base[CheckoutUtils.Type])); }
public Task <QuoteResponse> RequestQuote(QuoteRequest quoteRequest, CancellationToken cancellationToken = default) { CheckoutUtils.ValidateParams("quoteRequest", quoteRequest); return(ApiClient.Post <QuoteResponse>("forex/quotes", SdkAuthorization(), quoteRequest, cancellationToken)); }
public Task <EmptyResponse> SubmitEvidence(string disputeId, CancellationToken cancellationToken = default) { CheckoutUtils.ValidateParams("disputeId", disputeId); return(ApiClient.Post <EmptyResponse>(BuildPath(DisputesPath, disputeId, EvidencePath), SdkAuthorization(), null, cancellationToken, null)); }
public Task <EmptyResponse> Delete(string customerId, CancellationToken cancellationToken = default) { CheckoutUtils.ValidateParams("customerId", customerId); return(ApiClient.Delete <EmptyResponse>(BuildPath(Customers, customerId), SdkAuthorization(), cancellationToken)); }
public Task <IdResponse> Create(CustomerRequest customerRequest, CancellationToken cancellationToken = default) { CheckoutUtils.ValidateParams("customerRequest", customerRequest); return(ApiClient.Post <IdResponse>(Customers, SdkAuthorization(), customerRequest, cancellationToken, null)); }