| All Verbs | /qry/reports/locationTotals |
|---|
#![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, Copy, PartialEq, Eq, Hash, Default)]
#[repr(i32)]
pub enum WinningsKind {
#[default]
All = 0,
PaidOut = 1,
PendingPayout = 2,
}
#[derive(Serialize, Deserialize, Debug, Clone, Copy, PartialEq, Eq, Hash, Default)]
#[repr(i32)]
pub enum DeviceType {
#[default]
ClerkServicedKiosk = 0,
PersonalOnline = 1,
SelfServiceKiosk = 2,
Unknown = -1,
}
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Default)]
#[serde(default)]
pub struct GetLocationTotalsReport {
#[serde(default, skip_serializing_if = "Option::is_none")]
pub format: Option<String>,
#[serde(rename = "periodFrom")]
pub period_from: String,
#[serde(rename = "periodTo")]
pub period_to: String,
#[serde(rename = "winningsKind")]
pub winnings_kind: WinningsKind,
#[serde(rename = "deviceType")]
pub device_type: DeviceType,
}
Rust GetLocationTotalsReport DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /qry/reports/locationTotals HTTP/1.1
Host: api.bettor.webhop.biz
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length
{"format":"String","periodFrom":"0001-01-01T00:00:00.0000000Z","periodTo":"0001-01-01T00:00:00.0000000Z","winningsKind":0,"deviceType":0}