# frozen_string_literal: true # encoding: utf-8 # Options: =begin Date: 2026-11-07 03:05:47 Version: 10.40 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.bettor.webhop.biz #MakePartial: True #MakeVirtual: True #MakeInternal: False #MakeDataContractsExtensible: False #AddReturnMarker: True #AddDescriptionAsComments: True #AddDataContractAttributes: False #AddIndexesToDataMembers: False #AddGeneratedCodeAttributes: False #AddResponseStatus: False #AddImplicitVersion: #InitializeCollections: False #ExportValueTypes: False IncludeTypes: RequestBetCancellation.* #ExcludeTypes: #AddNamespaces: #AddDefaultXmlNamespace: http://schemas.servicestack.net/types =end require 'json' require 'servicestack' module IReturn def response_type() = T def get_type_name() = 'IReturn' end class Ref include ServiceStack::DTO # @return [String] attr_accessor :id # @return [String] attr_accessor :val def self.properties { id: { name: 'id' }, val: { name: 'val' }, } end end class RefEx < Ref # @return [RecordDictionary] attr_accessor :data def self.properties { data: { name: 'data', type: RecordDictionary }, } end end class ProductReference include ServiceStack::DTO # @return [String] attr_accessor :id # @return [String] attr_accessor :value # @return [String] attr_accessor :category # @return [Ref] attr_accessor :product_provider def self.properties { id: { name: 'id' }, value: { name: 'value' }, category: { name: 'category' }, product_provider: { name: 'productProvider', type: Ref }, } end end class ProductInstanceRef include ServiceStack::DTO # @return [String] attr_accessor :id # @return [String] attr_accessor :name # @return [String] attr_accessor :title # @return [ProductReference] attr_accessor :product def self.properties { id: { name: 'id' }, name: { name: 'name' }, title: { name: 'title' }, product: { name: 'product', type: ProductReference }, } end end class RecordDictionary < Hash end class BettingApp include ServiceStack::DTO # @return [String] attr_accessor :name # @return [String] attr_accessor :version def self.properties { name: { name: 'name' }, version: { name: 'version' }, } end end class Origin include ServiceStack::DTO # @return [BettingApp] attr_accessor :application # @return [String] attr_accessor :ip # @return [RefEx] attr_accessor :organization # @return [Ref] attr_accessor :region # @return [Ref] attr_accessor :location_group # @return [RefEx] attr_accessor :location # @return [RefEx] attr_accessor :device # @return [Ref] attr_accessor :clerk def self.properties { application: { name: 'application', type: BettingApp }, ip: { name: 'ip' }, organization: { name: 'organization', type: RefEx }, region: { name: 'region', type: Ref }, location_group: { name: 'locationGroup', type: Ref }, location: { name: 'location', type: RefEx }, device: { name: 'device', type: RefEx }, clerk: { name: 'clerk', type: Ref }, } end end # @Route("/cmd/slips/bets/requestCancellation", "POST") class RequestBetCancellation include ServiceStack::DTO # @return [ProductInstanceRef] attr_accessor :product_instance # @return [String] attr_accessor :id # @return [String] attr_accessor :bet_id # @return [Origin] attr_accessor :origin def self.properties { product_instance: { name: 'productInstance', type: ProductInstanceRef }, id: { name: 'id' }, bet_id: { name: 'betId' }, origin: { name: 'origin', type: Origin }, } end def response_type() = ServiceStack::ResponseStatus def get_type_name() = 'RequestBetCancellation' def get_method() = 'POST' end