User Tools

Site Tools


getflight

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
getflight [2013/05/23 15:50]
richard
getflight [2014/05/21 10:48] (current)
Line 10: Line 10:
 |starttime |time the flightreservation is made for in minutes since midnight (600 = 10 o'​clock,​ 720 is noon) | |starttime |time the flightreservation is made for in minutes since midnight (600 = 10 o'​clock,​ 720 is noon) |
  
-At least one of the parameters fltnr, relnr, relnrlocal, startdate, strttime ​is needs to be provided, otherwise the return code 449 - Retry with valid parameters is returned.+At least one of the parameters fltnr, relnr, relnrlocal, startdate, strttime needs to be provided, otherwise the return code 449 - Retry with valid parameters is returned.
  
-If the parameters fltnr and/or startdate are nort provided, the resultset will always be limited to startdates >= today+If the parameters fltnr and/or startdate are not provided, the resultset will always be limited to startdates >= today
  
 If the parameter fltnr is provided all other selection parameters are ignored. If the parameter fltnr is provided all other selection parameters are ignored.
Line 46: Line 46:
       "​carnr":​ 0,       "​carnr":​ 0,
       "​carname":​ null,       "​carname":​ null,
 +      "​locked_by":​ 205,
       "​players":​ [       "​players":​ [
         {         {
Line 165: Line 166:
 |carnr ​         |internal id of reason if the booking was canceled| |carnr ​         |internal id of reason if the booking was canceled|
 |carname ​       |description of cancelreason| |carname ​       |description of cancelreason|
 +|locked_by ​     |id of the computer that holds the flight in a lock|
  
 Players (if the parameter fltnr was provided, these subrecords may also include players that have canceled (carnr>​0):​ Players (if the parameter fltnr was provided, these subrecords may also include players that have canceled (carnr>​0):​
Line 186: Line 188:
 |usedrounds|used up value of the greenfeecard (totalrounds - usedrounds = balance). Beware that this value will only include the current flight if the player has checked in| |usedrounds|used up value of the greenfeecard (totalrounds - usedrounds = balance). Beware that this value will only include the current flight if the player has checked in|
 |gfcnrdiscount|internal id of discountcard| |gfcnrdiscount|internal id of discountcard|
-|gfcdatefrom|date the greenfeecard ​became valid| +|gfcdatefromdiscount|date the discountcard ​became valid| 
-|gfcdateto| date after which the greenfeecard ​is expired| +|gfcdatetodiscount| date after which the discountcard ​is expired| 
-|totalrounds|total value of the greenfeecard+|totalroundsdiscount|total value of the discountcard
-|usedrounds|used up value of the greenfeecard ​(totalrounds - usedrounds = balance). Beware that this value will only include the current flight if the player has checked in|+|usedroundsdiscount|used up value of the discountcard ​(totalrounds - usedrounds = balance). Beware that this value will only include the current flight if the player has checked in|
 |scorecardnr|internal id of scorecard if the player has checked in (use this to test if the player has checked in and payed)| |scorecardnr|internal id of scorecard if the player has checked in (use this to test if the player has checked in and payed)|
 |qualifyingnr|internal id of qualifying card| |qualifyingnr|internal id of qualifying card|
 |carnr|internal id of cancel reason if this player was canceled| |carnr|internal id of cancel reason if this player was canceled|
  
 +Rentals (if a rental record was assigned to a specific player, the record will appear as a subrecord to that player in the resultset. All rental records that are not assigned to a player will be treated as if they were assigned to the first player in the flight):
 +
 +|rentalnr|internal id id the rental record|
 +|rentaltypenr|internal id of the type of object that was rented|
 +|rentaltype|name of the type of object that was rented|
 +|rentalitemnr|internal id of the item that was rented (if specified)|
 +|rentalitem|name if the item that was rented if specified (i.e. Buggy 3)|
 +|rentaltimefrom|time from in minutes since midnight|
 +|rentaltimeto|time to in minutes since midnight|
 +|extratimebefore|extra time the item is blocked before time from|
 +|extratimeafter|extra time the item is blocked after time to|
 +|extrainfo|extra info textfield|
 +|rentalprice|rental fee|
 +|checkedin|if true the rental item was checked in together with the player and has been paid for|
  
  
getflight.1369324253.txt.gz · Last modified: 2013/05/23 16:50 (external edit)