# frozen_string_literal: true # encoding: utf-8 # Options: =begin Date: 2026-11-07 02:49:25 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: AddLocationDevice.* #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 Device include ServiceStack::DTO # @return [String] attr_accessor :id # @return [String] attr_accessor :name # @return [TrueClass] attr_accessor :is_active # @return [DeviceProfile] attr_accessor :profile # @return [RecordDictionary] attr_accessor :integrations_data def self.properties { id: { name: 'id' }, name: { name: 'name' }, is_active: { name: 'isActive' }, profile: { name: 'profile' }, integrations_data: { name: 'integrationsData' }, } end end class Device include ServiceStack::DTO # @return [String] attr_accessor :id # @return [String] attr_accessor :name # @return [TrueClass] attr_accessor :is_active # @return [TrueClass] attr_accessor :is_retired # @return [DeviceOperationalStatus] attr_accessor :operational_status # @return [DeviceType] attr_accessor :type # @return [DeviceProfile] attr_accessor :profile # @return [RefEx] attr_accessor :location # @return [Ref] attr_accessor :location_group # @return [RefEx] attr_accessor :organization # @return [RecordDictionary] attr_accessor :integrations_data def self.properties { id: { name: 'id' }, name: { name: 'name' }, is_active: { name: 'isActive' }, is_retired: { name: 'isRetired' }, operational_status: { name: 'operationalStatus' }, type: { name: 'type' }, profile: { name: 'profile' }, location: { name: 'location' }, location_group: { name: 'locationGroup' }, organization: { name: 'organization' }, integrations_data: { name: 'integrationsData' }, } end end class Device include ServiceStack::DTO # @return [String] attr_accessor :id # @return [String] attr_accessor :name # @return [TrueClass] attr_accessor :is_active # @return [TrueClass] attr_accessor :is_retired # @return [DeviceOperationalStatus] attr_accessor :operational_status # @return [DeviceType] attr_accessor :type # @return [RecordDictionary] attr_accessor :integrations_data # @return [DeviceProfile] attr_accessor :profile def self.properties { id: { name: 'id' }, name: { name: 'name' }, is_active: { name: 'isActive' }, is_retired: { name: 'isRetired' }, operational_status: { name: 'operationalStatus' }, type: { name: 'type' }, integrations_data: { name: 'integrationsData' }, profile: { name: 'profile' }, } end end # @Route("/cmd/locations/devices/add", "POST") class AddLocationDevice include ServiceStack::DTO # @return [String] attr_accessor :id # @return [Device] attr_accessor :device def self.properties { id: { name: 'id' }, device: { name: 'device', type: Device }, } end def response_type() = ServiceStack::ResponseStatus def get_type_name() = 'AddLocationDevice' def get_method() = 'POST' end