| POST | /bets/cancel |
|---|
import java.math.*
import java.util.*
import java.io.InputStream
import net.servicestack.client.*
open class ReportBetCancelations
{
open var betCancelations:ArrayList<BetCancelation>? = null
}
open class BetCancelation
{
open var id:String? = null
open var origin:Origin? = null
open var betCanceledAt:Date? = null
open var paymentOrigin:PaymentOrigin? = null
open var payinRecap:PayinRecap? = null
}
open class Origin
{
open var device:Reference? = null
open var location:Reference? = null
open var locationGroup:Reference? = null
open var organization:Reference? = null
open var productInstance:ProductInstanceRef? = null
}
open class Reference
{
open var id:String? = null
open var value:String? = null
}
open class ProductInstanceRef
{
open var id:String? = null
open var name:String? = null
open var product:ProductReference? = null
}
open class ProductReference
{
open var id:String? = null
open var value:String? = null
open var category:ProductCategory? = null
open var productProvider:Reference? = null
}
enum class ProductCategory(val value:Int)
{
@SerializedName("0") Sportsbook(0),
@SerializedName("1") Rng(1),
}
enum class PaymentOrigin(val value:Int)
{
@SerializedName("0") Pos(0),
@SerializedName("1") Sms(1),
@SerializedName("2") Internet(2),
}
open class PayinRecap
{
open var payin:BigDecimal? = null
open var taxAmount:BigDecimal? = null
open var stake:BigDecimal? = null
}
Kotlin ReportBetCancelations DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /bets/cancel HTTP/1.1
Host: fbihtaapi.bettor.webhop.biz
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
betCancelations:
[
{
id: String,
origin:
{
device:
{
id: String,
value: String
},
location:
{
id: String,
value: String
},
locationGroup:
{
id: String,
value: String
},
organization:
{
id: String,
value: String
},
productInstance:
{
id: String,
name: String,
product:
{
id: String,
value: String,
category: 0,
productProvider:
{
id: String,
value: String
}
}
}
},
betCanceledAt: 0001-01-01,
paymentOrigin: 0,
payinRecap:
{
payin: 0,
taxAmount: 0,
stake: 0
}
}
]
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
errorCode: String,
message: String,
stackTrace: String,
errors:
[
{
errorCode: String,
fieldName: String,
message: String,
meta:
{
String: String
}
}
],
meta:
{
String: String
}
}