sagas/placebet

sagas/placebet

Methods

(async, static) module.exports() → {void}

Source:
Returns:
Type
void

(async, generator, static) placebet(action) → {select|put|put|select|call|put|put|put|select|select|select|put|put|put}

Source:
Properties:
Name Type Description
action object
Properties
Name Type Description
payload object
Properties
Name Type Description
betData string

Parsed bet data (betType|league:match:selection$..|totalAmount or combinationType:stake&...&T:totalAmount)"

round number

Round ID

maxPotWin number

Maximum potential win

freeBetId number | null

If free bets is placed, id of placed free bet

Placeing bet

Parameters:
Name Type Description
action object
Yields:
  • getUser
    Type
    select
  • PLACEBET_ERROR_LOGIN
    Type
    put
  • SET_PLACEBET_LOADER
    Type
    put
  • getRoundId
    Type
    select
  • /bet/placebet
    Type
    call
  • SET_FREE_BETS
    Type
    put
  • UPDATE_BALANCE
    Type
    put
  • GET_LOYALTY
    Type
    put
  • getPlacedSelections
    Type
    select
  • getNumberOfBets
    Type
    select
  • getMarkets
    Type
    select
  • PLACEBET_SUCCESS
    Type
    put
  • SET_NUM_OF_BETS
    Type
    put
  • SHOW_ERROR_MODAL
    Type
    put

Type Definitions

"placebet/response.data"

Source:
Properties:
Name Type Description
amount number
bonusAmount number
currency string
Type:
  • object