Betting.WebApi

<back to all web services

GetSelfServiceDeviceBettingSession

Requires Authentication
The following routes are available for this service:
GET/qry/self-service-device-betting-sessions/{Id}
import java.math.*
import java.util.*
import java.io.InputStream
import net.servicestack.client.*
import com.google.gson.annotations.*
import com.google.gson.reflect.*


open class GetSelfServiceDeviceBettingSession
{
    open var id:String? = null
}

open class SelfServiceDeviceBettingSession
{
    open var id:String? = null
    open var device:Ref? = null
    open var location:Ref? = null
    open var status:SessionStatus? = null
    open var startedAt:Date? = null
    open var issuedByClerk:Ref? = null
    open var patronName:String? = null
    open var initialCredit:Money? = null
    open var topUps:RecordList<SessionTopUp>? = null
    open var payoutId:String? = null
    open var payout:Money? = null
    open var rejectionReason:String? = null
}

open class Ref
{
    open var id:String? = null
    @SerializedName("val") open var Val:String? = null
}

enum class SessionStatus(val value:Int)
{
    @SerializedName("1") Opening(1),
    @SerializedName("2") Open(2),
    @SerializedName("3") Ending(3),
    @SerializedName("4") Ended(4),
    @SerializedName("5") Rejected(5),
}

open class Money
{
    open var amount:BigDecimal? = null
    open var currency:String? = null
}

open class RecordList<T> : ArrayList<T>()
{
}

open class SessionTopUp
{
    open var id:String? = null
    open var amount:Money? = null
    open var clerk:Ref? = null
    open var status:TopUpStatus? = null
    open var failureReason:String? = null
}

enum class TopUpStatus(val value:Int)
{
    @SerializedName("1") Pending(1),
    @SerializedName("2") Completed(2),
    @SerializedName("3") Failed(3),
}

Kotlin GetSelfServiceDeviceBettingSession DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv

HTTP + CSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /qry/self-service-device-betting-sessions/{Id} HTTP/1.1 
Host: api.testenv.webhop.biz 
Accept: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"id":"String","device":{"id":"String","val":"String"},"location":{"id":"String","val":"String"},"status":1,"startedAt":"0001-01-01T00:00:00.0000000Z","issuedByClerk":{"id":"String","val":"String"},"patronName":"String","initialCredit":{"amount":0,"currency":"String"},"topUps":[{"id":"String","amount":{"amount":0,"currency":"String"},"clerk":{"id":"String","val":"String"},"status":1,"failureReason":"String"}],"payoutId":"String","payout":{"amount":0,"currency":"String"},"rejectionReason":"String"}