Mercedes.Agency.Orchestration.API

<back to all web services

VehicleSwapHistoricalRequest

VehicleSwapHistorical
Requires Authentication
The following routes are available for this service:
GET/v1/VehicleSwap/HistoricalGet Historical Vehicle RecordsThis endpoint calls the same named endpoint in the Agency API to return historical Vehicle Swap records.
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;

public class dtos
{

    public static class VehicleSwapHistoricalRequest implements IPost
    {
        
    }

    public static class VehicleSwapHistoricalResponse
    {
        public ArrayList<VehicleSwapHistorical> HistoricalVehicleSwaps = new ArrayList<VehicleSwapHistorical>();
        
        public ArrayList<VehicleSwapHistorical> getHistoricalVehicleSwaps() { return HistoricalVehicleSwaps; }
        public VehicleSwapHistoricalResponse setHistoricalVehicleSwaps(ArrayList<VehicleSwapHistorical> value) { this.HistoricalVehicleSwaps = value; return this; }
    }

    public static class VehicleSwapHistorical
    {
        public String Reference = null;
        public String OrderType = null;
        public UUID VehicleSwapGuid = null;
        public UUID OrderGuid = null;
        public String Showroom = null;
        public String GasUserId = null;
        public String OldCommissionNumber = null;
        public String NewCommissionNumber = null;
        public String RequestReason = null;
        public Boolean SentToCesar = null;
        public Integer StatusId = null;
        public String Status = null;
        public Date SwapCreated = null;
        public Date SwapUpdated = null;
        
        public String getReference() { return Reference; }
        public VehicleSwapHistorical setReference(String value) { this.Reference = value; return this; }
        public String getOrderType() { return OrderType; }
        public VehicleSwapHistorical setOrderType(String value) { this.OrderType = value; return this; }
        public UUID getVehicleSwapGuid() { return VehicleSwapGuid; }
        public VehicleSwapHistorical setVehicleSwapGuid(UUID value) { this.VehicleSwapGuid = value; return this; }
        public UUID getOrderGuid() { return OrderGuid; }
        public VehicleSwapHistorical setOrderGuid(UUID value) { this.OrderGuid = value; return this; }
        public String getShowroom() { return Showroom; }
        public VehicleSwapHistorical setShowroom(String value) { this.Showroom = value; return this; }
        public String getGasUserId() { return GasUserId; }
        public VehicleSwapHistorical setGasUserId(String value) { this.GasUserId = value; return this; }
        public String getOldCommissionNumber() { return OldCommissionNumber; }
        public VehicleSwapHistorical setOldCommissionNumber(String value) { this.OldCommissionNumber = value; return this; }
        public String getNewCommissionNumber() { return NewCommissionNumber; }
        public VehicleSwapHistorical setNewCommissionNumber(String value) { this.NewCommissionNumber = value; return this; }
        public String getRequestReason() { return RequestReason; }
        public VehicleSwapHistorical setRequestReason(String value) { this.RequestReason = value; return this; }
        public Boolean isSentToCesar() { return SentToCesar; }
        public VehicleSwapHistorical setSentToCesar(Boolean value) { this.SentToCesar = value; return this; }
        public Integer getStatusId() { return StatusId; }
        public VehicleSwapHistorical setStatusId(Integer value) { this.StatusId = value; return this; }
        public String getStatus() { return Status; }
        public VehicleSwapHistorical setStatus(String value) { this.Status = value; return this; }
        public Date getSwapCreated() { return SwapCreated; }
        public VehicleSwapHistorical setSwapCreated(Date value) { this.SwapCreated = value; return this; }
        public Date getSwapUpdated() { return SwapUpdated; }
        public VehicleSwapHistorical setSwapUpdated(Date value) { this.SwapUpdated = value; return this; }
    }

}

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

GET /v1/VehicleSwap/Historical HTTP/1.1 
Host: prod-api-agency-orch-mb-dhc.rapp-customers.co.uk 
Accept: text/jsonl
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"HistoricalVehicleSwaps":[{"Reference":"String","OrderType":"String","VehicleSwapGuid":"00000000000000000000000000000000","OrderGuid":"00000000000000000000000000000000","Showroom":"String","GasUserId":"String","OldCommissionNumber":"String","NewCommissionNumber":"String","RequestReason":"String","SentToCesar":false,"StatusId":0,"SwapCreated":"\/Date(-62135596800000-0000)\/","SwapUpdated":"\/Date(-62135596800000-0000)\/"}]}