Starnet.MontenegroTaxationAuthority.WebApi

<back to all web services

ReportBetPayouts

The following routes are available for this service:
POST/bets/payout
import java.math.*
import java.util.*
import java.io.InputStream
import net.servicestack.client.*


open class ReportBetPayouts
{
    open var betPayouts:RecordList<WinDto>? = null
}

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

open class WinDto : TransactionDtoBase()
{
    open var bet_transaction_id:String? = null
    open var ticket_id:String? = null
    open var win_odds:BigDecimal? = null
    open var win_type:WinType? = null
    open var bonus:BigDecimal? = null
    open var cancel:Boolean? = null
    open var canceled_events:RecordList<IBetEvent>? = null
}

open class TransactionDtoBase
{
    open var transaction_id:String? = null
    open var transaction_time:Date? = null
    open var transaction_amount:BigDecimal? = null
    open var game_name:String? = null
    open var betting_place_id:String? = null
    open var betting_terminal_id:String? = null
    open var jmbg:String? = null
    open var passport_number:String? = null
    open var source:BetSource? = null
    open var identification_document_country:String? = null
    open var identification_document_type:String? = null
}

enum class BetSource(val value:Int)
{
    @SerializedName("0") Landbase(0),
    @SerializedName("1") Web(1),
}

enum class WinType(val value:Int)
{
    @SerializedName("0") Regular(0),
    @SerializedName("1") Cashback(1),
    @SerializedName("2") Cashout(2),
}

interface IBetEvent
{
}

Kotlin ReportBetPayouts DTOs

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

HTTP + 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.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
	}
}