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.*;

public class dtos
{

    public static class ReportBetPayouts
    {
        public RecordList<WinDto> betPayouts = null;
        
        public RecordList<WinDto> getBetPayouts() { return betPayouts; }
        public ReportBetPayouts setBetPayouts(RecordList<WinDto> value) { this.betPayouts = value; return this; }
    }

    public static class RecordList<T> extends ArrayList<T>
    {
        
    }

    public static class WinDto extends TransactionDtoBase
    {
        public String bet_transaction_id = null;
        public String ticket_id = null;
        public BigDecimal win_odds = null;
        public WinType win_type = null;
        public BigDecimal bonus = null;
        public Boolean cancel = null;
        public RecordList<IBetEvent> canceled_events = null;
        
        public String getBetTransactionId() { return bet_transaction_id; }
        public WinDto setBetTransactionId(String value) { this.bet_transaction_id = value; return this; }
        public String getTicketId() { return ticket_id; }
        public WinDto setTicketId(String value) { this.ticket_id = value; return this; }
        public BigDecimal getWinOdds() { return win_odds; }
        public WinDto setWinOdds(BigDecimal value) { this.win_odds = value; return this; }
        public WinType getWinType() { return win_type; }
        public WinDto setWinType(WinType value) { this.win_type = value; return this; }
        public BigDecimal getBonus() { return bonus; }
        public WinDto setBonus(BigDecimal value) { this.bonus = value; return this; }
        public Boolean isCancel() { return cancel; }
        public WinDto setCancel(Boolean value) { this.cancel = value; return this; }
        public RecordList<IBetEvent> getCanceledEvents() { return canceled_events; }
        public WinDto setCanceledEvents(RecordList<IBetEvent> value) { this.canceled_events = value; return this; }
    }

    public static class TransactionDtoBase
    {
        public String transaction_id = null;
        public Date transaction_time = null;
        public BigDecimal transaction_amount = null;
        public String game_name = null;
        public String betting_place_id = null;
        public String betting_terminal_id = null;
        public String jmbg = null;
        public String passport_number = null;
        public BetSource source = null;
        public String identification_document_country = null;
        public String identification_document_type = null;
        
        public String getTransactionId() { return transaction_id; }
        public TransactionDtoBase setTransactionId(String value) { this.transaction_id = value; return this; }
        public Date getTransactionTime() { return transaction_time; }
        public TransactionDtoBase setTransactionTime(Date value) { this.transaction_time = value; return this; }
        public BigDecimal getTransactionAmount() { return transaction_amount; }
        public TransactionDtoBase setTransactionAmount(BigDecimal value) { this.transaction_amount = value; return this; }
        public String getGameName() { return game_name; }
        public TransactionDtoBase setGameName(String value) { this.game_name = value; return this; }
        public String getBettingPlaceId() { return betting_place_id; }
        public TransactionDtoBase setBettingPlaceId(String value) { this.betting_place_id = value; return this; }
        public String getBettingTerminalId() { return betting_terminal_id; }
        public TransactionDtoBase setBettingTerminalId(String value) { this.betting_terminal_id = value; return this; }
        public String getJmbg() { return jmbg; }
        public TransactionDtoBase setJmbg(String value) { this.jmbg = value; return this; }
        public String getPassportNumber() { return passport_number; }
        public TransactionDtoBase setPassportNumber(String value) { this.passport_number = value; return this; }
        public BetSource getSource() { return source; }
        public TransactionDtoBase setSource(BetSource value) { this.source = value; return this; }
        public String getIdentificationDocumentCountry() { return identification_document_country; }
        public TransactionDtoBase setIdentificationDocumentCountry(String value) { this.identification_document_country = value; return this; }
        public String getIdentificationDocumentType() { return identification_document_type; }
        public TransactionDtoBase setIdentificationDocumentType(String value) { this.identification_document_type = value; return this; }
    }

    public static enum BetSource
    {
        @SerializedName("0") Landbase(0),
        @SerializedName("1") Web(1);

        private final int value;
        BetSource(final int intValue) { value = intValue; }
        public int getValue() { return value; }
    }

    public static enum WinType
    {
        @SerializedName("0") Regular(0),
        @SerializedName("1") Cashback(1),
        @SerializedName("2") Cashout(2);

        private final int value;
        WinType(final int intValue) { value = intValue; }
        public int getValue() { return value; }
    }

    public static interface IBetEvent
    {
    }

}

Java 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.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
	}
}