MB Key2Key CCD API

<back to all web services

GetKey2keyDataRequest

Requires Authentication
The following routes are available for this service:
POST/GetKey2keyData/
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;

public class dtos
{

    @DataContract
    public static class GetKey2keyDataRequest
    {
        @DataMember
        public String ContractNumber = null;

        @DataMember
        public Integer BPID = null;

        @DataMember
        public String AppointmentDate = null;

        @DataMember
        public ArrayList<Offer> Offers = null;

        @DataMember
        public BigDecimal EstimatedSettlement = null;

        @DataMember
        public BigDecimal Valuation = null;

        @DataMember
        public String K2KActivityStatus = null;

        @DataMember
        public Integer K2KMileage = null;

        @DataMember
        public ArrayList<Comments> Comments = null;

        @DataMember
        public String UpdatedDate = null;
        
        public String getContractNumber() { return ContractNumber; }
        public GetKey2keyDataRequest setContractNumber(String value) { this.ContractNumber = value; return this; }
        public Integer getBpid() { return BPID; }
        public GetKey2keyDataRequest setBpid(Integer value) { this.BPID = value; return this; }
        public String getAppointmentDate() { return AppointmentDate; }
        public GetKey2keyDataRequest setAppointmentDate(String value) { this.AppointmentDate = value; return this; }
        public ArrayList<Offer> getOffers() { return Offers; }
        public GetKey2keyDataRequest setOffers(ArrayList<Offer> value) { this.Offers = value; return this; }
        public BigDecimal getEstimatedSettlement() { return EstimatedSettlement; }
        public GetKey2keyDataRequest setEstimatedSettlement(BigDecimal value) { this.EstimatedSettlement = value; return this; }
        public BigDecimal getValuation() { return Valuation; }
        public GetKey2keyDataRequest setValuation(BigDecimal value) { this.Valuation = value; return this; }
        public String getK2KActivityStatus() { return K2KActivityStatus; }
        public GetKey2keyDataRequest setK2KActivityStatus(String value) { this.K2KActivityStatus = value; return this; }
        public Integer getK2KMileage() { return K2KMileage; }
        public GetKey2keyDataRequest setK2KMileage(Integer value) { this.K2KMileage = value; return this; }
        public ArrayList<Comments> getComments() { return Comments; }
        public GetKey2keyDataRequest setComments(ArrayList<Comments> value) { this.Comments = value; return this; }
        public String getUpdatedDate() { return UpdatedDate; }
        public GetKey2keyDataRequest setUpdatedDate(String value) { this.UpdatedDate = value; return this; }
    }

    public static class Offer
    {
        public String OfferDescription = null;
        public String ParityLeadType = null;
        public BigDecimal EquityFigure = null;
        public BigDecimal ParityFigure = null;
        
        public String getOfferDescription() { return OfferDescription; }
        public Offer setOfferDescription(String value) { this.OfferDescription = value; return this; }
        public String getParityLeadType() { return ParityLeadType; }
        public Offer setParityLeadType(String value) { this.ParityLeadType = value; return this; }
        public BigDecimal getEquityFigure() { return EquityFigure; }
        public Offer setEquityFigure(BigDecimal value) { this.EquityFigure = value; return this; }
        public BigDecimal getParityFigure() { return ParityFigure; }
        public Offer setParityFigure(BigDecimal value) { this.ParityFigure = value; return this; }
    }

    public static class Comments
    {
        public String Comment = null;
        public Date Created = null;
        
        public String getComment() { return Comment; }
        public Comments setComment(String value) { this.Comment = value; return this; }
        public Date getCreated() { return Created; }
        public Comments setCreated(Date value) { this.Created = value; return this; }
    }

    @DataContract
    public static class GetKey2keyDataResponse
    {
        @DataMember
        public String Code = null;

        @DataMember
        public String Message = null;
        
        public String getCode() { return Code; }
        public GetKey2keyDataResponse setCode(String value) { this.Code = value; return this; }
        public String getMessage() { return Message; }
        public GetKey2keyDataResponse setMessage(String value) { this.Message = value; return this; }
    }

}

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

<GetKey2keyDataRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MBKey2keyCCD.GetKey2keyData">
  <AppointmentDate>String</AppointmentDate>
  <BPID>0</BPID>
  <Comments xmlns:d2p1="http://schemas.datacontract.org/2004/07/MBKey2keyCCD.DomainClasses">
    <d2p1:Comments>
      <d2p1:Comment>String</d2p1:Comment>
      <d2p1:Created>0001-01-01T00:00:00</d2p1:Created>
    </d2p1:Comments>
  </Comments>
  <ContractNumber>String</ContractNumber>
  <EstimatedSettlement>0</EstimatedSettlement>
  <K2KActivityStatus>String</K2KActivityStatus>
  <K2KMileage>0</K2KMileage>
  <Offers xmlns:d2p1="http://schemas.datacontract.org/2004/07/MBKey2keyCCD.BusinessLib.DomainClasses">
    <d2p1:Offer>
      <d2p1:EquityFigure>0</d2p1:EquityFigure>
      <d2p1:OfferDescription>String</d2p1:OfferDescription>
      <d2p1:ParityFigure>0</d2p1:ParityFigure>
      <d2p1:ParityLeadType>String</d2p1:ParityLeadType>
    </d2p1:Offer>
  </Offers>
  <UpdatedDate>String</UpdatedDate>
  <Valuation>0</Valuation>
</GetKey2keyDataRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<GetKey2keyDataResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MBKey2keyCCD.GetKey2keyData">
  <Code>String</Code>
  <Message>String</Message>
</GetKey2keyDataResponse>