Package com.jumio.sdk.kyx
Class JumioClient
java.lang.Object
com.jumio.sdk.kyx.JumioClient
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic interfacestatic interfacestatic interfacestatic interfacestatic interface -
Constructor Summary
ConstructorsConstructorDescriptionJumioClient(DataCenter dataCenter, BiFunction<org.springframework.http.client.ClientHttpRequestFactory, com.fasterxml.jackson.databind.ObjectMapper, org.springframework.web.client.RestTemplate> restTemplateFactory, org.springframework.http.client.ClientHttpRequestFactory restTemplateClientFactory, Function<org.springframework.web.client.RestTemplate, ApiAuthenticator> apiAuthenticatorProvider, String userAgent) -
Method Summary
Modifier and TypeMethodDescriptionaddNewWorkflowToExistingAccount(FluentBuilderWorkflow<T> fluentBuilderWorkflow, UUID accountId) static JumioClient.BuilderStep1builder()voidCan be called optionally called to fetch the authentication credentials.extractNonPassedCapabilities(WorkflowExecutionResponseCapabilities capabilitiesObject) com.fasterxml.jackson.databind.ObjectMapperorg.springframework.web.client.RestTemplateorg.springframework.core.io.ByteArrayResourcegetTransactionReportPdf(CallbackRequestBody callbackRequestBody) org.springframework.core.io.ByteArrayResourcegetTransactionReportPdf(UUID accountId, UUID workflowExecutionId) initiateNewAccount(FluentBuilderWorkflow<T> fluentBuilderWorkflow) static JumioClientretrieveData(CallbackRequestBody callbackRequestBody) retrieveData(UUID accountId, UUID workflowExecutionId)
-
Constructor Details
-
JumioClient
public JumioClient(DataCenter dataCenter, BiFunction<org.springframework.http.client.ClientHttpRequestFactory, com.fasterxml.jackson.databind.ObjectMapper, org.springframework.web.client.RestTemplate> restTemplateFactory, org.springframework.http.client.ClientHttpRequestFactory restTemplateClientFactory, Function<org.springframework.web.client.RestTemplate, ApiAuthenticator> apiAuthenticatorProvider, String userAgent)
-
-
Method Details
-
builder
-
mockClient
-
getDataCenter
-
getSystemStatus
-
ensureAuthenticated
public void ensureAuthenticated()Can be called optionally called to fetch the authentication credentials. With oauth2 this will result in a network call (if not cached already). With base authentication network call will not be made. This method is implicitly called before every -
getApiAuthenticator
-
getObjectMapper
public com.fasterxml.jackson.databind.ObjectMapper getObjectMapper() -
initiateNewAccount
public <T> FluentBuilderContainer.CustomerReferenceBuilderStep<T> initiateNewAccount(FluentBuilderWorkflow<T> fluentBuilderWorkflow) -
addNewWorkflowToExistingAccount
public <T> FluentBuilderContainer.CustomerReferenceBuilderStep<T> addNewWorkflowToExistingAccount(FluentBuilderWorkflow<T> fluentBuilderWorkflow, UUID accountId) -
getUserAgent
- Returns:
- the user agent to be used with calls
-
getAccountApi
-
getApiWorkflowExecutionsApi
-
getApiPartsApi
-
getRetrievalApi
-
getStatusApi
-
getRestTemplate
public org.springframework.web.client.RestTemplate getRestTemplate() -
retrieveData
-
retrieveData
-
getTransactionReportPdf
public org.springframework.core.io.ByteArrayResource getTransactionReportPdf(CallbackRequestBody callbackRequestBody) -
getTransactionReportPdf
-
extractNonPassedCapabilities
public String extractNonPassedCapabilities(WorkflowExecutionResponseCapabilities capabilitiesObject)
-