- For player registration. Will automatically create ticket and coin balance = 0. Require following parameters:
firstname
lastname
password
- Will update player information. May update following parameters:
firstname
lastname
middleinitial
profile
address_type
phone
address
birthdate
- Will login player. Will show player info, coin and ticket balance. Require following parameters:
password
- Will show ticket balance of player
{player_id}
- Will increase ticket balance of player. Require following parameters:
player_id
ticket_balance (tickets to be added)
- Will decrease ticket balance of player. Require following parameters:
player_id
ticket_balance (tickets to be subtracted)
- Will show coin balance of player
{player_id}
- Will add new raffle entry. Require following parameters:
type_id
prize_id
prize_2 (nullable)
prize_3 (nullable)
prize1_probability (nullable)
prize2_probability (nullable)
prize3_probability (nullable)
charity_id (nullable)
raffle_name
raffle_desc (nullable)
image1 (nullable)
image2 (nullable)
image3 (nullable)
slots
start_schedule
end_schedule
- Will update selected raffle entry. Require following parameters:
raffle_id
type_id
prize_id
prize_2 (nullable)
prize_3 (nullable)
prize1_probability (nullable)
prize2_probability (nullable)
prize3_probability (nullable)
charity_id (nullable)
raffle_name
raffle_desc (nullable)
image1 (nullable)
image2 (nullable)
image3 (nullable)
slots
start_schedule
end_schedule
- Will show all raffles available (also for admin page)
- Results:
Raffle Type, Raffle Name, Charity Name, Created_at, Status
- Will show raffles information and schedule
- Will save selected slot. Will automatically decrease 1 ticket balance. Require following parameters:
raffle_id
player_id
slot_number
- Results:
'Successful' 'Failed' 'Slot Taken'
- Will get all slots taken in a specific raffle
- Will update status of raffle to 1. Require following parameters:
raffle_id
- Results:
'Successful' 'Failed/Already Updated'
- Will update status of raffle to 0, will automatically give 100 coins to players who participated. Require following parameters:
raffle_id
- Results:
'Successful' 'Failed/Already Updated'
- Will show all prizes (also for admin)
- Results:
Name, is_available, Category Name, Description, Coin Price
- Will add new prize. Require following parameters:
name
category_id
description (nullable)
image (nullable)
coin_amount (nullable)\
- Will update selected prize. Require following parameters:
prize_id
name
category_id
description (nullable)
image (nullable)
coin_amount (nullable)\
- Will update availability to 0. Require following parameters:
prize_id \
- Results:
'Successful' 'Failed/Already Updated'
- Will show all transaction log (for admin)
- Results:
transaction_id, title, type, user, date