Six4Win.WebApi

<back to all web services

FindRescheduleRequests

The following routes are available for this service:
All Verbs/qry/super-win/reschedule-requests
# frozen_string_literal: true
# encoding: utf-8


require 'json'
require 'servicestack'


class QueryRequest
    include ServiceStack::DTO

    # @return [RecordDictionary]
    attr_accessor :qry

    def self.properties
        {
            qry: { name: 'qry', type: RecordDictionary },
        }
    end

end

class PaginatedQueryRequest < QueryRequest
    # @return [Integer]
    attr_accessor :current_page
    # @return [Integer]
    attr_accessor :page_size

    def self.properties
        {
            current_page: { name: 'currentPage' },
            page_size: { name: 'pageSize' },
        }
    end

end

class FindRescheduleRequests < PaginatedQueryRequest
    def response_type() = PaginatedResult
    def get_type_name() = 'FindRescheduleRequests'
end

class RecordDictionary < Hash
end

class Bet
    include ServiceStack::DTO

    # @return [String]
    attr_accessor :id
    # @return [Integer]
    attr_accessor :ordinal_of_available_round_to_assign_to
    # @return [String]
    attr_accessor :content
    # @return [BigDecimal]
    attr_accessor :stake
    # @return [Dictionary]
    attr_accessor :payload

    def self.properties
        {
            id: { name: 'id' },
            ordinal_of_available_round_to_assign_to: { name: 'ordinalOfAvailableRoundToAssignTo' },
            content: { name: 'content' },
            stake: { name: 'stake' },
            payload: { name: 'payload' },
        }
    end

end

class PaginatedResult
    include ServiceStack::DTO

    # @return [List]
    attr_accessor :data
    # @return [Integer]
    attr_accessor :current_page
    # @return [Integer]
    attr_accessor :page_size
    # @return [Integer]
    attr_accessor :total_items
    # @return [Integer]
    attr_accessor :total_pages

    def self.properties
        {
            data: { name: 'data', type: [Bet] },
            current_page: { name: 'currentPage' },
            page_size: { name: 'pageSize' },
            total_items: { name: 'totalItems' },
            total_pages: { name: 'totalPages' },
        }
    end

end

Ruby FindRescheduleRequests 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 /qry/super-win/reschedule-requests HTTP/1.1 
Host: s4w2.api.bettor.webhop.biz 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<FindRescheduleRequests xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Six4Win.WebApi.ServiceModel">
  <Qry xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns="http://schemas.datacontract.org/2004/07/Starnet.Common">
    <d2p1:KeyValueOfstringstring>
      <d2p1:Key>String</d2p1:Key>
      <d2p1:Value>String</d2p1:Value>
    </d2p1:KeyValueOfstringstring>
  </Qry>
  <CurrentPage xmlns="http://schemas.datacontract.org/2004/07/Starnet.Common">0</CurrentPage>
  <PageSize xmlns="http://schemas.datacontract.org/2004/07/Starnet.Common">0</PageSize>
</FindRescheduleRequests>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<PaginatedResultOfSuperWinRescheduleRequestcdb8QqRi xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Starnet.Common">
  <CurrentPage>0</CurrentPage>
  <Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/Six4Win.ReadModel">
    <d2p1:SuperWinRescheduleRequest>
      <d2p1:ErrorDescription>String</d2p1:ErrorDescription>
      <d2p1:Id>String</d2p1:Id>
      <d2p1:IsResolved>false</d2p1:IsResolved>
      <d2p1:IsSuccess>false</d2p1:IsSuccess>
      <d2p1:RequestedAt>0001-01-01T00:00:00</d2p1:RequestedAt>
      <d2p1:RequestedBy>String</d2p1:RequestedBy>
      <d2p1:State xmlns:d4p1="http://schemas.datacontract.org/2004/07/Six4Win">
        <d4p1:AvailableAmount>0</d4p1:AvailableAmount>
        <d4p1:CurrentDate>String</d4p1:CurrentDate>
        <d4p1:Pools xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
          <d5p1:KeyValueOfintSuperWinPoolQC5r2uXE>
            <d5p1:Key>0</d5p1:Key>
            <d5p1:Value>
              <d4p1:Amount>0</d4p1:Amount>
              <d4p1:Id>0</d4p1:Id>
              <d4p1:Schedule>
                <d4p1:SuperWinPrize>
                  <d4p1:Amount>0</d4p1:Amount>
                  <d4p1:Id>0</d4p1:Id>
                  <d4p1:ScheduledAt>0001-01-01T00:00:00</d4p1:ScheduledAt>
                  <d4p1:Winner>
                    <d4p1:Amount>0</d4p1:Amount>
                    <d4p1:BetId>String</d4p1:BetId>
                    <d4p1:Bettor>
                      <_x003C_Id_x003E_k__BackingField>String</_x003C_Id_x003E_k__BackingField>
                      <_x003C_Val_x003E_k__BackingField>String</_x003C_Val_x003E_k__BackingField>
                    </d4p1:Bettor>
                    <d4p1:Code>String</d4p1:Code>
                    <d4p1:DrawnAtUtc>0001-01-01T00:00:00</d4p1:DrawnAtUtc>
                    <d4p1:IsDrawn>false</d4p1:IsDrawn>
                    <d4p1:LocationAddressOrBettorInfo>String</d4p1:LocationAddressOrBettorInfo>
                    <d4p1:Origin xmlns:d11p1="http://schemas.datacontract.org/2004/07/Betting.Common">
                      <d11p1:Application>
                        <d11p1:Name>String</d11p1:Name>
                        <d11p1:Version>String</d11p1:Version>
                      </d11p1:Application>
                      <d11p1:Clerk>
                        <_x003C_Id_x003E_k__BackingField>String</_x003C_Id_x003E_k__BackingField>
                        <_x003C_Val_x003E_k__BackingField>String</_x003C_Val_x003E_k__BackingField>
                      </d11p1:Clerk>
                      <d11p1:Device>
                        <_x003C_Id_x003E_k__BackingField>String</_x003C_Id_x003E_k__BackingField>
                        <_x003C_Val_x003E_k__BackingField>String</_x003C_Val_x003E_k__BackingField>
                        <_x003C_Data_x003E_k__BackingField>
                          <d5p1:KeyValueOfstringstring>
                            <d5p1:Key>String</d5p1:Key>
                            <d5p1:Value>String</d5p1:Value>
                          </d5p1:KeyValueOfstringstring>
                        </_x003C_Data_x003E_k__BackingField>
                      </d11p1:Device>
                      <d11p1:IP>String</d11p1:IP>
                      <d11p1:Location>
                        <_x003C_Id_x003E_k__BackingField>String</_x003C_Id_x003E_k__BackingField>
                        <_x003C_Val_x003E_k__BackingField>String</_x003C_Val_x003E_k__BackingField>
                        <_x003C_Data_x003E_k__BackingField>
                          <d5p1:KeyValueOfstringstring>
                            <d5p1:Key>String</d5p1:Key>
                            <d5p1:Value>String</d5p1:Value>
                          </d5p1:KeyValueOfstringstring>
                        </_x003C_Data_x003E_k__BackingField>
                      </d11p1:Location>
                      <d11p1:LocationGroup>
                        <_x003C_Id_x003E_k__BackingField>String</_x003C_Id_x003E_k__BackingField>
                        <_x003C_Val_x003E_k__BackingField>String</_x003C_Val_x003E_k__BackingField>
                      </d11p1:LocationGroup>
                      <d11p1:Organization>
                        <_x003C_Id_x003E_k__BackingField>String</_x003C_Id_x003E_k__BackingField>
                        <_x003C_Val_x003E_k__BackingField>String</_x003C_Val_x003E_k__BackingField>
                        <_x003C_Data_x003E_k__BackingField>
                          <d5p1:KeyValueOfstringstring>
                            <d5p1:Key>String</d5p1:Key>
                            <d5p1:Value>String</d5p1:Value>
                          </d5p1:KeyValueOfstringstring>
                        </_x003C_Data_x003E_k__BackingField>
                      </d11p1:Organization>
                      <d11p1:Region>
                        <_x003C_Id_x003E_k__BackingField>String</_x003C_Id_x003E_k__BackingField>
                        <_x003C_Val_x003E_k__BackingField>String</_x003C_Val_x003E_k__BackingField>
                      </d11p1:Region>
                    </d4p1:Origin>
                    <d4p1:RoundId>String</d4p1:RoundId>
                    <d4p1:SlipId>String</d4p1:SlipId>
                  </d4p1:Winner>
                </d4p1:SuperWinPrize>
              </d4p1:Schedule>
              <d4p1:State>Idle</d4p1:State>
            </d5p1:Value>
          </d5p1:KeyValueOfintSuperWinPoolQC5r2uXE>
        </d4p1:Pools>
      </d2p1:State>
    </d2p1:SuperWinRescheduleRequest>
  </Data>
  <PageSize>0</PageSize>
  <TotalItems>0</TotalItems>
  <TotalPages>0</TotalPages>
</PaginatedResultOfSuperWinRescheduleRequestcdb8QqRi>