GiftCardComponent

Constructors

Link copied to clipboard
constructor(giftCardDelegate: GiftCardDelegate, genericActionDelegate: GenericActionDelegate, actionHandlingComponent: DefaultActionHandlingComponent, componentEventHandler: ComponentEventHandler<GiftCardComponentState>)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open override val delegate: ComponentDelegate
Link copied to clipboard
open override val viewFlow: Flow<ComponentViewType?>

Functions

Link copied to clipboard
open fun addCloseable(closeable: AutoCloseable)
fun addCloseable(key: String, closeable: AutoCloseable)
Link copied to clipboard
open override fun canHandleAction(action: Action): Boolean
Link copied to clipboard
Link copied to clipboard
open override fun handleAction(action: Action, activity: Activity)
Link copied to clipboard
open override fun handleIntent(intent: Intent)
Link copied to clipboard
open override fun isConfirmationRequired(): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Pass the BalanceResult you get from the call to the /paymentMethods/balance endpoint of the Checkout API to continue the gift card flow. You should make this call in the GiftCardComponentCallback.onBalanceCheck callback. Deserialize the response using BalanceResult.SERIALIZER.

Link copied to clipboard

Pass the OrderResponse you get from the call to the /orders endpoint of the Checkout API to continue the gift card flow. You should make this call in the GiftCardComponentCallback.onRequestOrder callback. Deserialize the response using OrderResponse.SERIALIZER.

Link copied to clipboard
open override fun setInteractionBlocked(isInteractionBlocked: Boolean)
Link copied to clipboard
open override fun setOnRedirectListener(listener: () -> Unit)
Link copied to clipboard
open override fun submit()