RAPP.Mercedes.VanCustomerAccount.Api

<back to all web services

InsuranceProducts

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

public class dtos
{

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

    public static class InsuranceProductsResponse
    {
        public ReturnStatus Status = null;
        public Short NumberOfPages = null;
        public ArrayList<InsuranceProduct> InsuranceProducts = null;
        
        public ReturnStatus getStatus() { return Status; }
        public InsuranceProductsResponse setStatus(ReturnStatus value) { this.Status = value; return this; }
        public Short getNumberOfPages() { return NumberOfPages; }
        public InsuranceProductsResponse setNumberOfPages(Short value) { this.NumberOfPages = value; return this; }
        public ArrayList<InsuranceProduct> getInsuranceProducts() { return InsuranceProducts; }
        public InsuranceProductsResponse setInsuranceProducts(ArrayList<InsuranceProduct> value) { this.InsuranceProducts = 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 InsuranceProduct
    {
        public String CertificateNumber = null;
        public String ProductType = null;
        public Date StartDate = null;
        public Date EndDate = null;
        public String Cancelled = null;
        
        public String getCertificateNumber() { return CertificateNumber; }
        public InsuranceProduct setCertificateNumber(String value) { this.CertificateNumber = value; return this; }
        public String getProductType() { return ProductType; }
        public InsuranceProduct setProductType(String value) { this.ProductType = value; return this; }
        public Date getStartDate() { return StartDate; }
        public InsuranceProduct setStartDate(Date value) { this.StartDate = value; return this; }
        public Date getEndDate() { return EndDate; }
        public InsuranceProduct setEndDate(Date value) { this.EndDate = value; return this; }
        public String getCancelled() { return Cancelled; }
        public InsuranceProduct setCancelled(String value) { this.Cancelled = value; return this; }
    }

}

Java InsuranceProducts 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 /insuranceproducts/ HTTP/1.1 
Host: webservices.mbukdatabase.co.uk 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<InsuranceProducts 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>
</InsuranceProducts>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<InsuranceProductsResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RAPP.Mercedes.VanCustomerAccount.Api.ServiceModel.SitecoreServiceModels">
  <InsuranceProducts>
    <InsuranceProduct>
      <Cancelled>String</Cancelled>
      <CertificateNumber>String</CertificateNumber>
      <EndDate>0001-01-01T00:00:00</EndDate>
      <ProductType>String</ProductType>
      <StartDate>0001-01-01T00:00:00</StartDate>
    </InsuranceProduct>
  </InsuranceProducts>
  <NumberOfPages>0</NumberOfPages>
  <Status>
    <Message>String</Message>
    <ReturnCode>String</ReturnCode>
  </Status>
</InsuranceProductsResponse>