Class DefaultGiftCardDelegate
-
- All Implemented Interfaces:
-
com.adyen.checkout.components.core.internal.ui.ComponentDelegate,com.adyen.checkout.components.core.internal.ui.PaymentComponentDelegate,com.adyen.checkout.giftcard.internal.ui.GiftCardDelegate,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 DefaultGiftCardDelegate implements GiftCardDelegate
-
-
Field Summary
Fields Modifier and Type Field Description private final Flow<GiftCardOutputData>outputDataFlowprivate final GiftCardOutputDataoutputDataprivate final Flow<GiftCardComponentState>componentStateFlowprivate final Flow<CheckoutException>exceptionFlowprivate final Flow<ComponentViewType>viewFlowprivate final Flow<GiftCardComponentState>submitFlowprivate final Flow<PaymentComponentUIState>uiStateFlowprivate final Flow<PaymentComponentUIEvent>uiEventFlowprivate final GiftCardComponentParamscomponentParams
-
Constructor Summary
Constructors Constructor Description DefaultGiftCardDelegate(PaymentObserverRepository observerRepository, PaymentMethod paymentMethod, OrderRequest order, AnalyticsManager analyticsManager, PublicKeyRepository publicKeyRepository, GiftCardComponentParams componentParams, BaseCardEncryptor cardEncryptor, SubmitHandler<GiftCardComponentState> submitHandler, GiftCardValidator validator, GiftCardProtocol protocol)
-
Method Summary
-
-
Constructor Detail
-
DefaultGiftCardDelegate
DefaultGiftCardDelegate(PaymentObserverRepository observerRepository, PaymentMethod paymentMethod, OrderRequest order, AnalyticsManager analyticsManager, PublicKeyRepository publicKeyRepository, GiftCardComponentParams componentParams, BaseCardEncryptor cardEncryptor, SubmitHandler<GiftCardComponentState> submitHandler, GiftCardValidator validator, GiftCardProtocol protocol)
-
-
Method Detail
-
getOutputDataFlow
Flow<GiftCardOutputData> getOutputDataFlow()
-
getOutputData
GiftCardOutputData getOutputData()
-
getComponentStateFlow
Flow<GiftCardComponentState> getComponentStateFlow()
-
getExceptionFlow
Flow<CheckoutException> getExceptionFlow()
-
getViewFlow
Flow<ComponentViewType> getViewFlow()
-
getSubmitFlow
Flow<GiftCardComponentState> getSubmitFlow()
-
getUiStateFlow
Flow<PaymentComponentUIState> getUiStateFlow()
-
getUiEventFlow
Flow<PaymentComponentUIEvent> getUiEventFlow()
-
getComponentParams
GiftCardComponentParams getComponentParams()
-
initialize
Unit initialize(CoroutineScope coroutineScope)
-
observe
Unit observe(LifecycleOwner lifecycleOwner, CoroutineScope coroutineScope, Function1<PaymentComponentEvent<GiftCardComponentState>, Unit> callback)
-
removeObserver
Unit removeObserver()
-
updateInputData
Unit updateInputData(Function1<GiftCardInputData, Unit> update)
-
isPinRequired
Boolean isPinRequired()
-
getPaymentMethodType
String getPaymentMethodType()
-
isConfirmationRequired
Boolean isConfirmationRequired()
-
shouldShowSubmitButton
Boolean shouldShowSubmitButton()
-
setInteractionBlocked
Unit setInteractionBlocked(Boolean isInteractionBlocked)
-
resolveBalanceResult
Unit resolveBalanceResult(BalanceResult balanceResult)
-
resolveOrderResponse
Unit resolveOrderResponse(OrderResponse orderResponse)
-
-
-
-