ShopTicketPayout

From BetgamesTV
Jump to navigation Jump to search

Method is called when cashier tries to payout ticket.

Inputs:

  • token (string) - current token.
  • barcode (string) - ticket barcode.
  • dontprintlost (int) - not needed. Send 0.

Outputs:

  • PayoutStatusAmount (int) - amount to be paid out in "cents".
  • PayoutStatusError (string) - returns error text if some error occured. Empty string otherwise.
  • PayoutIsRepeatable (int) - currently not used.
  • PayoutBets - array of bet information to print on payout card.
  • PayoutTime (dateTime) - time when ticket has been paid out.

Bet structure:

  • PayoutLottery (string)
  • PayoutLotteryRunDate (dateTime)
  • PayoutRunCode (string)
  • PayoutBetOddCode (string)
  • PayoutBetOdd (string)
  • PayoutBetOddValue (int) - odd value in "cents".
  • PayoutBetAmount (int) - bet amount in "cents".
  • PayoutBetAmountWon (int) - won amount in "cents".
  • PayoutBetCurrency (string)
  • PayoutBetItems (string)