| POST | /bets/payout |
|---|
namespace Starnet.MontenegroTaxationAuthority.WebApi.ServiceModel
open System
open System.IO
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations
type BetSource =
| Landbase = 0
| Web = 1
[<AllowNullLiteral>]
type TransactionDtoBase() =
member val transaction_id:String = null with get,set
member val transaction_time:DateTime = new DateTime() with get,set
member val transaction_amount:Decimal = new Decimal() with get,set
member val game_name:String = null with get,set
member val betting_place_id:String = null with get,set
member val betting_terminal_id:String = null with get,set
member val jmbg:String = null with get,set
member val passport_number:String = null with get,set
member val source:BetSource = new BetSource() with get,set
member val identification_document_country:String = null with get,set
member val identification_document_type:String = null with get,set
type WinType =
| Regular = 0
| Cashback = 1
| Cashout = 2
[<AllowNullLiteral>]
type IBetEvent =
interface end
[<AllowNullLiteral>]
type WinDto() =
inherit TransactionDtoBase()
member val bet_transaction_id:String = null with get,set
member val ticket_id:String = null with get,set
member val win_odds:Decimal = new Decimal() with get,set
member val win_type:WinType = new WinType() with get,set
member val bonus:Decimal = new Decimal() with get,set
member val cancel:Boolean = new Boolean() with get,set
member val canceled_events:RecordList<IBetEvent> = null with get,set
[<AllowNullLiteral>]
type ReportBetPayouts() =
member val BetPayouts:RecordList<WinDto> = null with get,set
[<AllowNullLiteral>]
type RecordList<T>() =
inherit ResizeArray<T>()
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/payout HTTP/1.1
Host: api.sbbet-prod-mnta.webhop.biz
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
betPayouts:
[
{
bet_transaction_id: String,
ticket_id: String,
win_odds: 0,
win_type: 0,
bonus: 0,
cancel: False,
canceled_events:
[
{
}
],
transaction_id: String,
transaction_time: 0001-01-01,
transaction_amount: 0,
game_name: String,
betting_place_id: String,
betting_terminal_id: String,
jmbg: String,
passport_number: String,
source: 0,
identification_document_country: String,
identification_document_type: String
}
]
}
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
}
}