- Source:
Methods
(static) placebetReducer(state, action) → {state}
- Source:
Properties:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
singleStakes |
Array |
<optional> |
[]
|
|
combiStakes |
Array |
<optional> |
[]
|
|
multipleStake |
string |
<optional> |
''
|
|
otherStake |
string |
<optional> |
''
|
|
selectedOdds |
Array |
<optional> |
null
|
|
numberOfSelections |
number |
<optional> |
0
|
|
placeBetErrorMgs |
string |
<optional> |
null
|
|
betSlipConfimation |
boolean |
<optional> |
false
|
|
placebetDisabled |
boolean |
<optional> |
false
|
|
placebetAfterLogin |
string | null |
<optional> |
null
|
|
isLoadingPlaceBet |
boolean |
<optional> |
false
|
|
placedSelections |
Array |
<optional> |
{}
|
|
placedSelectionsTurbo |
Array |
<optional> |
{}
|
|
betslipSettings |
object |
<optional> |
null
|
|
bonusOddsThreshold |
string |
<optional> |
null
|
|
bonusPercentages |
number |
<optional> |
null
|
Parameters:
| Name | Type | Description |
|---|---|---|
state |
object | Contain initial and final state of data |
action |
object | Return the action object |
Returns:
- Type
- state
(inner) CLOSE_PLACEBET_CONFIRMATION()
- Source:
[Action Creator] This action is use to close confirmation of success placed bet in betslip
Example
closeSlipConfirmation(payload)
(inner) CLOSE_PLACEBET_ERROR()
- Source:
[Action Creator] This action is use to remove placebet error message
Example
closePlaceBetErrorMessage(payload)
(inner) DISABLE_PLACEBET(placebetDisabled)
- Source:
[Action Creator] This action is use to disable placebet button in betslip
Example
disablePlacebet(payload)
Parameters:
| Name | Type | Description |
|---|---|---|
placebetDisabled |
boolean |
(inner) GET_ROUND_SELECTIONS_SUCCESS()
- Source:
[Received Data] This action is use to set previoslu placed selection for current round
(inner) GET_ROUND_SUCCESS()
- Source:
[Received Data] This action is use to set data from round API call
(inner) KICK_OFF_SUCCESS()
- Source:
[Received Data] This action is use update kickoff success params
(inner) PLACEBET_SUCCESS(placedSelections)
- Source:
[Received Data] This action is use to set successfully placed bet
Parameters:
| Name | Type | Description |
|---|---|---|
placedSelections |
Array |
(inner) SET_BACKUP_LOGIN_PROPS()
- Source:
[Received Data] This action is use set backup login
(inner) SET_FREE_BETS()
- Source:
[Received Data] This action is use to clear free bet input
(inner) SET_NEED_BET_RE_COUNT()
- Source:
[Received Data] This action is use to set need bet re count
(inner) SET_NEED_TURBO_BET_RE_COUNT()
- Source:
[Received Data] This action is use to set need turbo bet re count
(inner) SET_NEED_TURBO_KICKOFF_BET_RE_COUNT()
- Source:
[Received Data] This action is use to set need turbo kickoff bet re count
(inner) SET_PLACEBET_LOADER()
- Source:
[Received Data] This action is use to set placebet after login
(inner) SET_STAKES(singleStakesopt, combiStakesopt, multipleStakeopt, otherStakeopt)
- Source:
[Action Creator] This action is use to set values to stakes input fields
Example
setStakes(payload)
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
singleStakes |
Array |
<optional> |
|
combiStakes |
Array |
<optional> |
|
multipleStake |
string |
<optional> |
|
otherStake |
string |
<optional> |
(inner) SHOW_ERROR_MODAL()
- Source:
[Received Data] This action is use show error modal
(inner) TOGGLE_BETSLIP()
- Source:
[Action Creator] This action is use to remove all from input fields
Example
toggleBetslip(payload)
(inner) TOGGLE_ODDS(selectedOdds, index)
- Source:
[Action Creator] This action is use to add or remove odd in selected odds array and also to remove all from array. Also used to setup inputs stake fields depended on number of selections
Example
toggleSelectedOdds(payload)
Parameters:
| Name | Type | Description |
|---|---|---|
selectedOdds |
Array | |
index |
number |