Starnet.MontenegroTaxationAuthority.WebApi

<back to all web services

ReportBetPayouts

The following routes are available for this service:
POST/bets/payout
using System;
using System.IO;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using ServiceStack;
using ServiceStack.DataAnnotations;
using Starnet.MontenegroTaxationAuthority.WebApi.ServiceModel;
using Starnet.Common;
using Starnet.MontenegroTaxationAuthority.Common;

namespace Starnet.Common
{
    public partial class RecordList<T>
        : List<T>
    {
    }

}

namespace Starnet.MontenegroTaxationAuthority.Common
{
    public enum BetSource
    {
        Landbase = 0,
        Web = 1,
    }

    public partial interface IBetEvent
    {
    }

    public partial class TransactionDtoBase
    {
        public virtual string transaction_id { get; set; }
        public virtual DateTime transaction_time { get; set; }
        public virtual decimal transaction_amount { get; set; }
        public virtual string game_name { get; set; }
        public virtual string betting_place_id { get; set; }
        public virtual string betting_terminal_id { get; set; }
        public virtual string jmbg { get; set; }
        public virtual string passport_number { get; set; }
        public virtual BetSource source { get; set; }
        public virtual string identification_document_country { get; set; }
        public virtual string identification_document_type { get; set; }
    }

    public partial class WinDto
        : TransactionDtoBase
    {
        public virtual string bet_transaction_id { get; set; }
        public virtual string ticket_id { get; set; }
        public virtual decimal win_odds { get; set; }
        public virtual WinType win_type { get; set; }
        public virtual decimal bonus { get; set; }
        public virtual bool cancel { get; set; }
        public virtual RecordList<IBetEvent> canceled_events { get; set; }
    }

    public enum WinType
    {
        Regular = 0,
        Cashback = 1,
        Cashout = 2,
    }

}

namespace Starnet.MontenegroTaxationAuthority.WebApi.ServiceModel
{
    public partial class ReportBetPayouts
    {
        public virtual RecordList<WinDto> BetPayouts { get; set; }
    }

}

C# ReportBetPayouts DTOs

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

HTTP + XML

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: application/xml
Content-Type: application/xml
Content-Length: length

<ReportBetPayouts xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Starnet.MontenegroTaxationAuthority.WebApi.ServiceModel">
  <BetPayouts xmlns:d2p1="http://schemas.datacontract.org/2004/07/Starnet.MontenegroTaxationAuthority.Common">
    <d2p1:WinDto>
      <d2p1:betting_place_id>String</d2p1:betting_place_id>
      <d2p1:betting_terminal_id>String</d2p1:betting_terminal_id>
      <d2p1:game_name>String</d2p1:game_name>
      <d2p1:identification_document_country>String</d2p1:identification_document_country>
      <d2p1:identification_document_type>String</d2p1:identification_document_type>
      <d2p1:jmbg>String</d2p1:jmbg>
      <d2p1:passport_number>String</d2p1:passport_number>
      <d2p1:source>Landbase</d2p1:source>
      <d2p1:transaction_amount>0</d2p1:transaction_amount>
      <d2p1:transaction_id>String</d2p1:transaction_id>
      <d2p1:transaction_time>0001-01-01T00:00:00</d2p1:transaction_time>
      <d2p1:bet_transaction_id>String</d2p1:bet_transaction_id>
      <d2p1:bonus>0</d2p1:bonus>
      <d2p1:cancel>false</d2p1:cancel>
      <d2p1:canceled_events xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:anyType i:nil="true" />
      </d2p1:canceled_events>
      <d2p1:ticket_id>String</d2p1:ticket_id>
      <d2p1:win_odds>0</d2p1:win_odds>
      <d2p1:win_type>Regular</d2p1:win_type>
    </d2p1:WinDto>
  </BetPayouts>
</ReportBetPayouts>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<ResponseStatus xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.servicestack.net/types">
  <ErrorCode>String</ErrorCode>
  <Message>String</Message>
  <StackTrace>String</StackTrace>
  <Errors>
    <ResponseError>
      <ErrorCode>String</ErrorCode>
      <FieldName>String</FieldName>
      <Message>String</Message>
      <Meta xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:KeyValueOfstringstring>
          <d4p1:Key>String</d4p1:Key>
          <d4p1:Value>String</d4p1:Value>
        </d4p1:KeyValueOfstringstring>
      </Meta>
    </ResponseError>
  </Errors>
  <Meta xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:KeyValueOfstringstring>
      <d2p1:Key>String</d2p1:Key>
      <d2p1:Value>String</d2p1:Value>
    </d2p1:KeyValueOfstringstring>
  </Meta>
</ResponseStatus>