MBMMFAutoEnrol

<back to all web services

GetDetailsRequest

Requires Authentication
The following routes are available for this service:
GET/GetDetails/
# frozen_string_literal: true
# encoding: utf-8


require 'json'
require 'servicestack'


class GetDetailsResponse
    include ServiceStack::DTO

    # @return [Integer]
    attr_accessor :bpid
    # @return [Integer]
    attr_accessor :failed_login_attempt
    # @return [String]
    attr_accessor :reg_number
    # @return [TrueClass]
    attr_accessor :success
    # @return [String]
    attr_accessor :error
    # @return [String]
    attr_accessor :mercedes_finance_portal_name

    def self.properties
        {
            bpid: { name: 'bpid' },
            failed_login_attempt: { name: 'failedLoginAttempt' },
            reg_number: { name: 'regNumber' },
            success: { name: 'success' },
            error: { name: 'error' },
            mercedes_finance_portal_name: { name: 'mercedesFinancePortalName' },
        }
    end

end

class GetDetailsRequest
    include ServiceStack::DTO

    # @return [String]
    attr_accessor :guid

    def self.properties
        {
            guid: { name: 'guid' },
        }
    end

    def response_type() = GetDetailsResponse
    def get_type_name() = 'GetDetailsRequest'
end

Ruby GetDetailsRequest DTOs

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

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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

GET /GetDetails/ HTTP/1.1 
Host: webservices.mbukdatabase.co.uk 
Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"BPID":0,"FailedLoginAttempt":0,"RegNumber":"String","Success":false,"Error":"String","MercedesFinancePortalName":"String"}