RAPP.Mercedes.VanCustomerAccount.Api

<back to all web services

VehicleVisits

The following routes are available for this service:
POST/vehiclevisits/
import java.math.*;
import java.util.*;
import net.servicestack.client.*;

public class dtos
{

    public static class VehicleVisits
    {
        public String CIAMId = null;
        public String ChassisNumber = null;
        public Short ItemsPerPage = null;
        public Short PageNumber = null;
        
        public String getCiamId() { return CIAMId; }
        public VehicleVisits setCiamId(String value) { this.CIAMId = value; return this; }
        public String getChassisNumber() { return ChassisNumber; }
        public VehicleVisits setChassisNumber(String value) { this.ChassisNumber = value; return this; }
        public Short getItemsPerPage() { return ItemsPerPage; }
        public VehicleVisits setItemsPerPage(Short value) { this.ItemsPerPage = value; return this; }
        public Short getPageNumber() { return PageNumber; }
        public VehicleVisits setPageNumber(Short value) { this.PageNumber = value; return this; }
    }

    public static class VehicleVisitsResponse
    {
        public ReturnStatus Status = null;
        public Short NumberOfPages = null;
        public ArrayList<Visit> Visits = null;
        
        public ReturnStatus getStatus() { return Status; }
        public VehicleVisitsResponse setStatus(ReturnStatus value) { this.Status = value; return this; }
        public Short getNumberOfPages() { return NumberOfPages; }
        public VehicleVisitsResponse setNumberOfPages(Short value) { this.NumberOfPages = value; return this; }
        public ArrayList<Visit> getVisits() { return Visits; }
        public VehicleVisitsResponse setVisits(ArrayList<Visit> value) { this.Visits = value; return this; }
    }

    public static class ReturnStatus
    {
        public String ReturnCode = null;
        public String Message = null;
        
        public String getReturnCode() { return ReturnCode; }
        public ReturnStatus setReturnCode(String value) { this.ReturnCode = value; return this; }
        public String getMessage() { return Message; }
        public ReturnStatus setMessage(String value) { this.Message = value; return this; }
    }

    public static class Visit
    {
        public String VisitType = null;
        public Date VisitDate = null;
        public BigDecimal Mileage = null;
        public String RegistrationNumber = null;
        public String DealerName = null;
        public String ContractNumber = null;
        
        public String getVisitType() { return VisitType; }
        public Visit setVisitType(String value) { this.VisitType = value; return this; }
        public Date getVisitDate() { return VisitDate; }
        public Visit setVisitDate(Date value) { this.VisitDate = value; return this; }
        public BigDecimal getMileage() { return Mileage; }
        public Visit setMileage(BigDecimal value) { this.Mileage = value; return this; }
        public String getRegistrationNumber() { return RegistrationNumber; }
        public Visit setRegistrationNumber(String value) { this.RegistrationNumber = value; return this; }
        public String getDealerName() { return DealerName; }
        public Visit setDealerName(String value) { this.DealerName = value; return this; }
        public String getContractNumber() { return ContractNumber; }
        public Visit setContractNumber(String value) { this.ContractNumber = value; return this; }
    }

}

Java VehicleVisits 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.

POST /vehiclevisits/ HTTP/1.1 
Host: webservices.mbukdatabase.co.uk 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	CIAMId: String,
	ChassisNumber: String,
	ItemsPerPage: 0,
	PageNumber: 0
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	Status: 
	{
		ReturnCode: String,
		Message: String
	},
	NumberOfPages: 0,
	Visits: 
	[
		{
			VisitType: String,
			VisitDate: 0001-01-01,
			Mileage: 0,
			RegistrationNumber: String,
			DealerName: String,
			ContractNumber: String
		}
	]
}