# frozen_string_literal: true # encoding: utf-8 # Options: =begin Date: 2026-10-21 08:15:41 Version: 10.20 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://uat-api-vehicle-mgt-mb-dhc.rapp-customers.co.uk #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: GetDataProcessRequest.* #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 module IGet end class DataProcessLog include ServiceStack::DTO # @return [Integer] attr_accessor :id # @return [Integer] attr_accessor :data_process__id # @return [Integer] attr_accessor :row_number # @return [Integer] attr_accessor :failure_reason_id # @return [String] attr_accessor :failure_reason # @return [String] attr_accessor :meta_data # @return [String] attr_accessor :meta_data2 # @return [TrueClass] attr_accessor :has_failed def self.properties { id: { name: 'id' }, data_process__id: { name: 'dataProcess_Id' }, row_number: { name: 'rowNumber' }, failure_reason_id: { name: 'failureReasonId' }, failure_reason: { name: 'failureReason' }, meta_data: { name: 'metaData' }, meta_data2: { name: 'metaData2' }, has_failed: { name: 'hasFailed' }, } end end class DataProcessJob include ServiceStack::DTO # @return [Integer] attr_accessor :id # @return [String] attr_accessor :gas_id # @return [String] attr_accessor :date_created # @return [Integer] attr_accessor :processed_records # @return [Integer] attr_accessor :status # @return [String] attr_accessor :status_name # @return [String] attr_accessor :file_name def self.properties { id: { name: 'id' }, gas_id: { name: 'gasId' }, date_created: { name: 'dateCreated' }, processed_records: { name: 'processedRecords' }, status: { name: 'status' }, status_name: { name: 'statusName' }, file_name: { name: 'fileName' }, } end end class CurrentDataProcessResponse < DataProcessJob # @return [Integer] attr_accessor :type # @return [Integer] attr_accessor :total_records # @return [String] attr_accessor :original_file_name # @return [String] attr_accessor :date_started # @return [String] attr_accessor :date_finished # @return [List] attr_accessor :data_process_result_logs # @return [Integer] attr_accessor :failed_count # @return [Integer] attr_accessor :success_count def self.properties { type: { name: 'type' }, total_records: { name: 'totalRecords' }, original_file_name: { name: 'originalFileName' }, date_started: { name: 'dateStarted' }, date_finished: { name: 'dateFinished' }, data_process_result_logs: { name: 'dataProcessResultLogs', type: [DataProcessLog] }, failed_count: { name: 'failedCount' }, success_count: { name: 'successCount' }, } end end # @Route("/v1/GetDataProcess/{ProcessId}", "GET") class GetDataProcessRequest include ServiceStack::DTO # @return [Integer] attr_accessor :process_id def self.properties { process_id: { name: 'processId' }, } end def response_type() = CurrentDataProcessResponse def get_type_name() = 'GetDataProcessRequest' def get_method() = 'GET' end