Six4Win.WebApi

<back to all web services

FindRescheduleRequests

The following routes are available for this service:
All Verbs/qry/super-win/reschedule-requests
#![allow(
    dead_code,
    non_camel_case_types,
    non_snake_case,
    clippy::upper_case_acronyms
)]

use serde::{Deserialize, Serialize};
use serde_json::Value;
use std::collections::HashMap;

#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Default)]
#[serde(default)]
pub struct QueryRequest {
    pub qry: RecordDictionary,
}

#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Default)]
#[serde(default)]
pub struct PaginatedQueryRequest {
    #[serde(flatten)]
    pub query_request: QueryRequest,
    #[serde(rename = "currentPage")]
    pub current_page: i32,
    #[serde(rename = "pageSize")]
    pub page_size: i32,
}

#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Default)]
#[serde(default)]
pub struct FindRescheduleRequests {
    #[serde(flatten)]
    pub paginated_query_request: PaginatedQueryRequest,
}

#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Default)]
#[serde(default)]
pub struct RecordDictionary(pub HashMap<TKey, TVal>);

#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Default)]
#[serde(default)]
pub struct Bet {
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub id: Option<String>,
    #[serde(rename = "ordinalOfAvailableRoundToAssignTo")]
    pub ordinal_of_available_round_to_assign_to: i32,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub content: Option<String>,
    pub stake: f64,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub payload: Option<HashMap<String, String>>,
}

#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Default)]
#[serde(default)]
pub struct PaginatedResult<T> {
    pub data: Vec<Bet>,
    #[serde(rename = "currentPage")]
    pub current_page: i64,
    #[serde(rename = "pageSize")]
    pub page_size: i64,
    #[serde(rename = "totalItems")]
    pub total_items: i64,
    #[serde(rename = "totalPages")]
    pub total_pages: i64,
}

Rust 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: s4w1.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>