# frozen_string_literal: true # encoding: utf-8 # Options: =begin Date: 2026-11-07 02:58:08 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: GetUserNotifications.* #ExcludeTypes: #AddNamespaces: #AddDefaultXmlNamespace: http://schemas.servicestack.net/types =end require 'json' require 'servicestack' module Severity SUCCESS = 0 INFO = 1 WARNING = 2 ERROR = 3 end module NotificationType DEFAULT = 0 SLIP_DELIVERY_CONFIRMATION_REQUEST = 1 SLIP_DELIVERY_ISSUE_RESOLVED = 2 end module IReturn def response_type() = T def get_type_name() = 'IReturn' end class RecordDictionary < Hash end class Notification include ServiceStack::DTO # @return [Severity] attr_accessor :severity # @return [NotificationType] attr_accessor :type # @return [RecordDictionary] attr_accessor :data def self.properties { severity: { name: 'severity' }, type: { name: 'type' }, data: { name: 'data', type: RecordDictionary }, } end end class UserNotification include ServiceStack::DTO # @return [String] attr_accessor :id # @return [Notification] attr_accessor :notification # @return [DateTime] attr_accessor :dispatched_at def self.properties { id: { name: 'id' }, notification: { name: 'notification', type: Notification }, dispatched_at: { name: 'dispatchedAt', type: DateTime }, } end end class UserNotifications include ServiceStack::DTO # @return [TrueClass] attr_accessor :is_overflown # @return [String] attr_accessor :id # @return [Integer] attr_accessor :n # @return [Integer] attr_accessor :s # @return [Integer] attr_accessor :i # @return [Integer] attr_accessor :w # @return [Integer] attr_accessor :e # @return [Dictionary] attr_accessor :notifications def self.properties { is_overflown: { name: 'isOverflown' }, id: { name: 'id' }, n: { name: 'n' }, s: { name: 's' }, i: { name: 'i' }, w: { name: 'w' }, e: { name: 'e' }, notifications: { name: 'notifications', type: { String => UserNotification } }, } end end # @Route("/qry/users/notifications") class GetUserNotifications include ServiceStack::DTO # @return [String] attr_accessor :id def self.properties { id: { name: 'id' }, } end def response_type() = UserNotifications def get_type_name() = 'GetUserNotifications' def get_method() = 'POST' end