Creates an instance of CardBalanceCheck
The actions for the fetchable data
The dispatch count. Used for the dispatchId
The store section name Used to name the rootState member and postfixed to all actions
The reducers for the fetchable data
The url to fetch the data from
Initial state
Create a fetch action using the class request type This helper will setup and add promises for the fetch call and any chain that is triggered
TODO: If typings provide optional-ness correctly we can remove the Partial
NOTE: omitSessionId is deprecated but remains to not mess up parameter ordering
Create a response action using the class response type
Retrieves the requested data from the EVA backend
The redux action
Returns the error property as an observable stream
Will return the matching giftcard handler given a paymentMethodTypeModel.
Beware that a paymentMethodTypeModel could have multiple matching giftcard handlers. This method will still only return the first one. Consumers are responsible for facillitating a UI that allows the user to choose whatever giftcard handler they want.
The matching giftcard handler. If no match is found, returns null. The match can be then used in a cardBalanceCheck like so
Handler
=> Handler
CardType
in (AvailableGiftCardHandler) => CardSubType
(in cardBalanceCheck)Retrieves a specific property path from this reducers state from the root state as an observable stream
The collection of reducer functions
Returns the response property as an observable stream
Returns the response property as an observable stream
Retrieves section specific state from the root state
Retrieves section specific state from the root state as an observable stream
The observable stream
Expose a helper function to get the full url
Returns the isFetching property as an observable stream
The saga listener for this store section
Helper method for an async-awaitable timeout
Implements CardBalanceCheck fetch for the Redux store