Class DefaultCardDelegate
-
- All Implemented Interfaces:
-
com.adyen.checkout.card.internal.ui.CardDelegate,com.adyen.checkout.components.core.internal.ui.ComponentDelegate,com.adyen.checkout.components.core.internal.ui.PaymentComponentDelegate,com.adyen.checkout.ui.core.internal.ui.AddressDelegate,com.adyen.checkout.ui.core.internal.ui.AddressLookupDelegate,com.adyen.checkout.ui.core.internal.ui.ButtonDelegate,com.adyen.checkout.ui.core.internal.ui.UIStateDelegate,com.adyen.checkout.ui.core.internal.ui.ViewProvidingDelegate
@RestrictTo(value = {RestrictTo.Scope.LIBRARY_GROUP}) public final class DefaultCardDelegate implements CardDelegate, AddressLookupDelegate
-
-
Field Summary
Fields Modifier and Type Field Description private final Flow<CardOutputData>outputDataFlowprivate final AddressOutputDataaddressOutputDataprivate final Flow<AddressOutputData>addressOutputDataFlowprivate final CardOutputDataoutputDataprivate final Flow<CardComponentState>componentStateFlowprivate final Flow<CheckoutException>exceptionFlowprivate final Flow<ComponentViewType>viewFlowprivate final Flow<CardComponentState>submitFlowprivate final Flow<PaymentComponentUIState>uiStateFlowprivate final Flow<PaymentComponentUIEvent>uiEventFlowprivate final CardComponentParamscomponentParamsprivate final AddressDelegateaddressDelegateprivate final Flow<String>addressLookupErrorPopupFlowprivate final Channel<AddressLookupEvent>addressLookupEventChannelprivate final Flow<AddressLookupState>addressLookupStateFlowprivate final Flow<AddressInputModel>addressLookupSubmitFlow
-
Constructor Summary
Constructors Constructor Description DefaultCardDelegate(PaymentObserverRepository observerRepository, PublicKeyRepository publicKeyRepository, CardComponentParams componentParams, PaymentMethod paymentMethod, OrderRequest order, AnalyticsManager analyticsManager, AddressRepository addressRepository, DetectCardTypeRepository detectCardTypeRepository, CardValidationMapper cardValidationMapper, BaseCardEncryptor cardEncryptor, BaseGenericEncryptor genericEncryptor, SubmitHandler<CardComponentState> submitHandler, AddressLookupDelegate addressLookupDelegate, CardConfigDataGenerator cardConfigDataGenerator)
-
Method Summary
-
Methods inherited from class com.adyen.checkout.ui.core.internal.ui.AddressLookupDelegate
clear, getAddressDelegate, getAddressLookupErrorPopupFlow, getAddressLookupEventChannel, getAddressLookupStateFlow, getAddressLookupSubmitFlow, initialize, onAddressLookupCompletion, onAddressQueryChanged, onManualEntryModeSelected, submitAddress -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
DefaultCardDelegate
DefaultCardDelegate(PaymentObserverRepository observerRepository, PublicKeyRepository publicKeyRepository, CardComponentParams componentParams, PaymentMethod paymentMethod, OrderRequest order, AnalyticsManager analyticsManager, AddressRepository addressRepository, DetectCardTypeRepository detectCardTypeRepository, CardValidationMapper cardValidationMapper, BaseCardEncryptor cardEncryptor, BaseGenericEncryptor genericEncryptor, SubmitHandler<CardComponentState> submitHandler, AddressLookupDelegate addressLookupDelegate, CardConfigDataGenerator cardConfigDataGenerator)
-
-
Method Detail
-
getOutputDataFlow
Flow<CardOutputData> getOutputDataFlow()
-
getAddressOutputData
AddressOutputData getAddressOutputData()
-
getAddressOutputDataFlow
Flow<AddressOutputData> getAddressOutputDataFlow()
-
getOutputData
CardOutputData getOutputData()
-
getComponentStateFlow
Flow<CardComponentState> getComponentStateFlow()
-
getExceptionFlow
Flow<CheckoutException> getExceptionFlow()
-
getViewFlow
Flow<ComponentViewType> getViewFlow()
-
getSubmitFlow
Flow<CardComponentState> getSubmitFlow()
-
getUiStateFlow
Flow<PaymentComponentUIState> getUiStateFlow()
-
getUiEventFlow
Flow<PaymentComponentUIEvent> getUiEventFlow()
-
getComponentParams
CardComponentParams getComponentParams()
-
initialize
Unit initialize(CoroutineScope coroutineScope)
-
observe
Unit observe(LifecycleOwner lifecycleOwner, CoroutineScope coroutineScope, Function1<PaymentComponentEvent<CardComponentState>, Unit> callback)
-
removeObserver
Unit removeObserver()
-
updateInputData
Unit updateInputData(Function1<CardInputData, Unit> update)
-
updateAddressInputData
Unit updateAddressInputData(Function1<AddressInputModel, Unit> update)
-
setInteractionBlocked
Unit setInteractionBlocked(Boolean isInteractionBlocked)
-
getPaymentMethodType
String getPaymentMethodType()
-
startAddressLookup
Unit startAddressLookup()
-
handleBackPress
Boolean handleBackPress()
-
isConfirmationRequired
Boolean isConfirmationRequired()
-
shouldShowSubmitButton
Boolean shouldShowSubmitButton()
-
setOnBinValueListener
Unit setOnBinValueListener(Function1<String, Unit> listener)
-
setOnBinLookupListener
Unit setOnBinLookupListener(Function1<List<BinLookupData>, Unit> listener)
-
setAddressLookupCallback
Unit setAddressLookupCallback(AddressLookupCallback addressLookupCallback)
-
updateAddressLookupOptions
Unit updateAddressLookupOptions(List<LookupAddress> options)
-
setAddressLookupResult
Unit setAddressLookupResult(AddressLookupResult addressLookupResult)
-
-
-
-