public final class FlowConfiguration
extends java.lang.Object
FlowConfiguration is working.
The configuration is immutable and as such it can be passed along different threads.
| Modifier and Type | Class and Description |
|---|---|
static class |
FlowConfiguration.Builder
The builder allows to construct a flow configuration.
|
| Constructor and Description |
|---|
FlowConfiguration(PaymentFormViewFactory paymentFormViewFactory,
TokenListViewFactory tokenListViewFactory,
PaymentMethodListViewFactory paymentMethodListViewFactory,
SuccessViewFactory successViewFactory,
AwaitingFinalStateViewFactory awaitingFinalStateViewFactory,
FailureViewFactory failureViewFactory,
IconCache iconCache,
java.util.List<? extends FlowListener> listeners,
IconRequestManager iconRequestManager,
WebServiceApiClient webServiceApiClient) |
| Modifier and Type | Method and Description |
|---|---|
AwaitingFinalStateViewFactory |
getAwaitingFinalStateViewFactory()
The transaction may not reach a final state immediately.
|
FailureViewFactory |
getFailureViewFactory()
When the transaction fails the
FlowCoordinator will show
a view which explains to the user why the transaction failed. |
IconCache |
getIconCache()
The icon cache is required to cache the downloaded icons locally on the device to avoid
downloading them over and over again.
|
IconRequestManager |
getIconRequestManager()
Each payment method has an icon.
|
java.util.List<? extends FlowListener> |
getListeners()
A listener can implement any subinterface of
FlowListener. |
<L extends FlowListener> |
getListenersByType(java.lang.Class<L> type)
This method returns the listeners which implements the
type interface. |
PaymentFormViewFactory |
getPaymentFormViewFactory()
The payment form view factory creates the view which collects the payment information.
|
PaymentMethodListViewFactory |
getPaymentMethodListViewFactory()
The payment method selection view allows the user to select from a list of payment methods
the one which should be used to process the transaction with.
|
SuccessViewFactory |
getSuccessViewFactory()
The success view is displayed once the transaction has been processed successfully.
|
TokenListViewFactory |
getTokenListViewFactory()
The token selection view lets the user select a token from a list of tokens.
|
WebServiceApiClient |
getWebServiceApiClient()
The web service API client allows to access directly the web service API of wallee.
|
public FlowConfiguration(PaymentFormViewFactory paymentFormViewFactory, TokenListViewFactory tokenListViewFactory, PaymentMethodListViewFactory paymentMethodListViewFactory, SuccessViewFactory successViewFactory, AwaitingFinalStateViewFactory awaitingFinalStateViewFactory, FailureViewFactory failureViewFactory, IconCache iconCache, java.util.List<? extends FlowListener> listeners, IconRequestManager iconRequestManager, WebServiceApiClient webServiceApiClient)
public PaymentFormViewFactory getPaymentFormViewFactory()
public TokenListViewFactory getTokenListViewFactory()
public PaymentMethodListViewFactory getPaymentMethodListViewFactory()
public SuccessViewFactory getSuccessViewFactory()
public IconCache getIconCache()
public java.util.List<? extends FlowListener> getListeners()
FlowListener. The listener will be
informed about all of those events.public FailureViewFactory getFailureViewFactory()
FlowCoordinator will show
a view which explains to the user why the transaction failed. This factory is responsible for
this view.public AwaitingFinalStateViewFactory getAwaitingFinalStateViewFactory()
public IconRequestManager getIconRequestManager()
public WebServiceApiClient getWebServiceApiClient()
public <L extends FlowListener> java.util.List<L> getListenersByType(java.lang.Class<L> type)
type interface.
The method can be used to filter the listeners to a particular listener interface.
L - the type of the listener interface.type - the listener interface to which the list of listeners should be reduced to.type interface.