| POST | /bets/expire |
|---|
Imports System
Imports System.IO
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports FBiHBetting.Aggregator.WebApi.ServiceModel
Namespace Global
Namespace FBiHBetting.Aggregator.WebApi.ServiceModel
Public Partial Class BetExpiration
Public Overridable Property Id As String
Public Overridable Property Origin As Origin
Public Overridable Property BetExpiredAt As Date
Public Overridable Property PaymentOrigin As PaymentOrigin
Public Overridable Property PayoutRecap As PayoutRecap
End Class
Public Partial Class Origin
Public Overridable Property Device As Reference
Public Overridable Property Location As Reference
Public Overridable Property LocationGroup As Reference
Public Overridable Property Organization As Reference
Public Overridable Property ProductInstance As ProductInstanceRef
End Class
Public Enum PaymentOrigin
POS = 0
SMS = 1
Internet = 2
End Enum
Public Partial Class PayoutRecap
Public Overridable Property Winnings As Decimal
Public Overridable Property TaxAmount As Decimal
Public Overridable Property Payout As Decimal
End Class
Public Enum ProductCategory
Sportsbook = 0
RNG = 1
End Enum
Public Partial Class ProductInstanceRef
Public Overridable Property Id As String
Public Overridable Property Name As String
Public Overridable Property Product As ProductReference
End Class
Public Partial Class ProductReference
Public Overridable Property Id As String
Public Overridable Property Value As String
Public Overridable Property Category As ProductCategory
Public Overridable Property ProductProvider As Reference
End Class
Public Partial Class Reference
Public Overridable Property Id As String
Public Overridable Property Value As String
End Class
Public Partial Class ReportBetExpirations
Public Overridable Property BetExpirations As List(Of BetExpiration)
End Class
End Namespace
End Namespace
VB.NET ReportBetExpirations 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/expire HTTP/1.1
Host: fbihtaapi.bettor.webhop.biz
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
betExpirations:
[
{
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
}
}
}
},
betExpiredAt: 0001-01-01,
paymentOrigin: 0,
payoutRecap:
{
winnings: 0,
taxAmount: 0,
payout: 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
}
}