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 .xml suffix or ?format=xml

HTTP + XML

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: application/xml
Content-Type: application/xml
Content-Length: length

<VehicleVisits xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RAPP.Mercedes.VanCustomerAccount.Api.ServiceModel.SitecoreServiceModels">
  <CIAMId>String</CIAMId>
  <ChassisNumber>String</ChassisNumber>
  <ItemsPerPage>0</ItemsPerPage>
  <PageNumber>0</PageNumber>
</VehicleVisits>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<VehicleVisitsResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RAPP.Mercedes.VanCustomerAccount.Api.ServiceModel.SitecoreServiceModels">
  <NumberOfPages>0</NumberOfPages>
  <Status>
    <Message>String</Message>
    <ReturnCode>String</ReturnCode>
  </Status>
  <Visits>
    <Visit>
      <ContractNumber>String</ContractNumber>
      <DealerName>String</DealerName>
      <Mileage>0</Mileage>
      <RegistrationNumber>String</RegistrationNumber>
      <VisitDate>0001-01-01T00:00:00</VisitDate>
      <VisitType>String</VisitType>
    </Visit>
  </Visits>
</VehicleVisitsResponse>