Mercedes.VehicleManagement.API

<back to all web services

GetOutOfMarketAreaCommsJobsRequest

Requires Authentication
The following routes are available for this service:
GET/v1/OutOfMarketAreaGet list of all Out Of Market Area Commission Number importsGet list of all Out Of Market Area Commission Number imports
# frozen_string_literal: true
# encoding: utf-8


require 'json'
require 'servicestack'


class OutOfMarketAreaCommsJob
    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 :file_name

    def self.properties
        {
            id: { name: 'id' },
            gas_id: { name: 'gasId' },
            date_created: { name: 'dateCreated' },
            processed_records: { name: 'processedRecords' },
            status: { name: 'status' },
            file_name: { name: 'fileName' },
        }
    end

end

class OutOfMarketAreaCommsJobsResponse
    include ServiceStack::DTO

    # @return [List]
    attr_accessor :data_processes

    def self.properties
        {
            data_processes: { name: 'dataProcesses', type: [OutOfMarketAreaCommsJob] },
        }
    end

end

class GetOutOfMarketAreaCommsJobsRequest
    include ServiceStack::DTO

    def response_type() = OutOfMarketAreaCommsJobsResponse
    def get_type_name() = 'GetOutOfMarketAreaCommsJobsRequest'
end

Ruby GetOutOfMarketAreaCommsJobsRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv

HTTP + JSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /v1/OutOfMarketArea HTTP/1.1 
Host: uat-api-vehicle-mgt-mb-dhc.rapp-customers.co.uk 
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	dataProcesses: 
	[
		{
			id: 0,
			gasId: String,
			dateCreated: String,
			processedRecords: 0,
			status: 0,
			fileName: String
		}
	]
}