Mercedes.VehicleManagement.API

<back to all web services

SecuredStatusRequest

Vehicle
Requires Authentication
The following routes are available for this service:
POST/v1/Vehicle/SecuredStatusSet secured status for vehicle
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;

public class dtos
{

    public static class SecuredStatusRequest implements IPost
    {
        public String commissionNumber = null;
        public String vehicleType = null;
        public String reason = null;
        public Boolean secured = null;
        
        public String getCommissionNumber() { return commissionNumber; }
        public SecuredStatusRequest setCommissionNumber(String value) { this.commissionNumber = value; return this; }
        public String getVehicleType() { return vehicleType; }
        public SecuredStatusRequest setVehicleType(String value) { this.vehicleType = value; return this; }
        public String getReason() { return reason; }
        public SecuredStatusRequest setReason(String value) { this.reason = value; return this; }
        public Boolean isSecured() { return secured; }
        public SecuredStatusRequest setSecured(Boolean value) { this.secured = value; return this; }
    }

    public static class ValidateSecuredStatusResponse
    {
        public ArrayList<ValidateVehicleResponse> validateVehicleResponses = new ArrayList<ValidateVehicleResponse>();
        
        public ArrayList<ValidateVehicleResponse> getValidateVehicleResponses() { return validateVehicleResponses; }
        public ValidateSecuredStatusResponse setValidateVehicleResponses(ArrayList<ValidateVehicleResponse> value) { this.validateVehicleResponses = value; return this; }
    }

    public static class ValidateVehicleResponse
    {
        public String comm = null;
        public String failureReason = null;
        public Integer failureReasonId = null;
        
        public String getComm() { return comm; }
        public ValidateVehicleResponse setComm(String value) { this.comm = value; return this; }
        public String getFailureReason() { return failureReason; }
        public ValidateVehicleResponse setFailureReason(String value) { this.failureReason = value; return this; }
        public Integer getFailureReasonId() { return failureReasonId; }
        public ValidateVehicleResponse setFailureReasonId(Integer value) { this.failureReasonId = value; return this; }
    }

}

Java SecuredStatusRequest DTOs

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

HTTP + OTHER

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

POST /v1/Vehicle/SecuredStatus HTTP/1.1 
Host: uat-api-vehicle-mgt-mb-dhc.rapp-customers.co.uk 
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length

{"commissionNumber":"String","vehicleType":"String","reason":"String","secured":false}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{Unable to show example output for type 'ValidateSecuredStatusResponse' using the custom 'other' filter}Cannot dynamically create an instance of type 'Mercedes.DataProcess.Shared.ValidateSecuredStatusResponse'. Reason: No parameterless constructor defined.