Starnet.MontenegroTaxationAuthority.WebApi

<back to all web services

ReportBetCancellations

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


open class ReportBetCancellations
{
    open var betCancellations:RecordList<RollbackDto>? = null
}

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

open class RollbackDto : TransactionDtoBase()
{
    open var rollback_transaction_id:String? = null
    open var ticket_id:String? = null
    open var rollback_transaction_type:RollbackTransactionType? = 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 RollbackTransactionType(val value:Int)
{
    @SerializedName("0") Bet(0),
    @SerializedName("1") Win(1),
    @SerializedName("1") Jackpot(1),
}

Kotlin ReportBetCancellations 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/cancel HTTP/1.1 
Host: api.prod-mnta.webhop.biz 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	betCancellations: 
	[
		{
			rollback_transaction_id: String,
			ticket_id: String,
			rollback_transaction_type: 0,
			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
	}
}