Mercedes.Agency.Orchestration.API

<back to all web services

VehicleSwapActiveRequest

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

public class dtos
{

    public static class VehicleSwapActiveRequest implements IGet
    {
        
    }

    public static class VehicleSwapActiveResponse
    {
        public ArrayList<VehicleSwapActive> ActiveVehicleSwaps = new ArrayList<VehicleSwapActive>();
        
        public ArrayList<VehicleSwapActive> getActiveVehicleSwaps() { return ActiveVehicleSwaps; }
        public VehicleSwapActiveResponse setActiveVehicleSwaps(ArrayList<VehicleSwapActive> value) { this.ActiveVehicleSwaps = value; return this; }
    }

    public static class VehicleSwapActive
    {
        public Integer Id = null;
        public String Reference = null;
        public String OrderType = null;
        public UUID VehicleSwapGuid = null;
        public UUID OrderGuid = null;
        public String Showroom = null;
        public String CommissionNumber = null;
        public String RequestReason = null;
        public Boolean SentToCesar = null;
        public Date CreationDate = null;
        public Date MaintenanceDate = null;
        
        public Integer getId() { return Id; }
        public VehicleSwapActive setId(Integer value) { this.Id = value; return this; }
        public String getReference() { return Reference; }
        public VehicleSwapActive setReference(String value) { this.Reference = value; return this; }
        public String getOrderType() { return OrderType; }
        public VehicleSwapActive setOrderType(String value) { this.OrderType = value; return this; }
        public UUID getVehicleSwapGuid() { return VehicleSwapGuid; }
        public VehicleSwapActive setVehicleSwapGuid(UUID value) { this.VehicleSwapGuid = value; return this; }
        public UUID getOrderGuid() { return OrderGuid; }
        public VehicleSwapActive setOrderGuid(UUID value) { this.OrderGuid = value; return this; }
        public String getShowroom() { return Showroom; }
        public VehicleSwapActive setShowroom(String value) { this.Showroom = value; return this; }
        public String getCommissionNumber() { return CommissionNumber; }
        public VehicleSwapActive setCommissionNumber(String value) { this.CommissionNumber = value; return this; }
        public String getRequestReason() { return RequestReason; }
        public VehicleSwapActive setRequestReason(String value) { this.RequestReason = value; return this; }
        public Boolean isSentToCesar() { return SentToCesar; }
        public VehicleSwapActive setSentToCesar(Boolean value) { this.SentToCesar = value; return this; }
        public Date getCreationDate() { return CreationDate; }
        public VehicleSwapActive setCreationDate(Date value) { this.CreationDate = value; return this; }
        public Date getMaintenanceDate() { return MaintenanceDate; }
        public VehicleSwapActive setMaintenanceDate(Date value) { this.MaintenanceDate = value; return this; }
    }

}

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

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

{
	ActiveVehicleSwaps: 
	[
		{
			Id: 0,
			Reference: String,
			OrderType: String,
			VehicleSwapGuid: 00000000000000000000000000000000,
			OrderGuid: 00000000000000000000000000000000,
			Showroom: String,
			CommissionNumber: String,
			RequestReason: String,
			SentToCesar: False,
			CreationDate: 0001-01-01,
			MaintenanceDate: 0001-01-01
		}
	]
}