Mercedes.Agency.Orchestration.API

<back to all web services

GetOrderCustomerRequest

Order
Requires Authentication
The following routes are available for this service:
GET/v1/order/customer/{CustomerId}Get Order by Customer
import 'package:servicestack/servicestack.dart';

class Order implements IConvertible
{
    String? Guid;
    String? Reference;
    int? Status;
    String? CustomerId;
    String? MulesoftReference;
    String? GasId;
    String? OrderDate;
    String? OfferSnapShot;

    Order({this.Guid,this.Reference,this.Status,this.CustomerId,this.MulesoftReference,this.GasId,this.OrderDate,this.OfferSnapShot});
    Order.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        Guid = json['Guid'];
        Reference = json['Reference'];
        Status = json['Status'];
        CustomerId = json['CustomerId'];
        MulesoftReference = json['MulesoftReference'];
        GasId = json['GasId'];
        OrderDate = json['OrderDate'];
        OfferSnapShot = json['OfferSnapShot'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'Guid': Guid,
        'Reference': Reference,
        'Status': Status,
        'CustomerId': CustomerId,
        'MulesoftReference': MulesoftReference,
        'GasId': GasId,
        'OrderDate': OrderDate,
        'OfferSnapShot': OfferSnapShot
    };

    getTypeName() => "Order";
    TypeContext? context = _ctx;
}

class OrderStatus implements IConvertible
{
    int? Id;
    String? Description;

    OrderStatus({this.Id,this.Description});
    OrderStatus.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        Id = json['Id'];
        Description = json['Description'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'Id': Id,
        'Description': Description
    };

    getTypeName() => "OrderStatus";
    TypeContext? context = _ctx;
}

class OnlineShowroomStatus implements IConvertible
{
    int? Id;
    String? Description;
    String? Slug;
    bool? Current;
    bool? Completed;
    List<OrderStatus>? OrderStatuses = [];

    OnlineShowroomStatus({this.Id,this.Description,this.Slug,this.Current,this.Completed,this.OrderStatuses});
    OnlineShowroomStatus.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        Id = json['Id'];
        Description = json['Description'];
        Slug = json['Slug'];
        Current = json['Current'];
        Completed = json['Completed'];
        OrderStatuses = JsonConverters.fromJson(json['OrderStatuses'],'List<OrderStatus>',context!);
        return this;
    }

    Map<String, dynamic> toJson() => {
        'Id': Id,
        'Description': Description,
        'Slug': Slug,
        'Current': Current,
        'Completed': Completed,
        'OrderStatuses': JsonConverters.toJson(OrderStatuses,'List<OrderStatus>',context!)
    };

    getTypeName() => "OnlineShowroomStatus";
    TypeContext? context = _ctx;
}

class RetailerOpeningTime implements IConvertible
{
    String? Day;
    String? OpenFrom;
    String? OpenTo;
    String? Special;

    RetailerOpeningTime({this.Day,this.OpenFrom,this.OpenTo,this.Special});
    RetailerOpeningTime.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        Day = json['Day'];
        OpenFrom = json['OpenFrom'];
        OpenTo = json['OpenTo'];
        Special = json['Special'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'Day': Day,
        'OpenFrom': OpenFrom,
        'OpenTo': OpenTo,
        'Special': Special
    };

    getTypeName() => "RetailerOpeningTime";
    TypeContext? context = _ctx;
}

class RetailerOpeningTimes implements IConvertible
{
    List<RetailerOpeningTime>? New = [];
    List<RetailerOpeningTime>? Used = [];

    RetailerOpeningTimes({this.New,this.Used});
    RetailerOpeningTimes.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        New = JsonConverters.fromJson(json['New'],'List<RetailerOpeningTime>',context!);
        Used = JsonConverters.fromJson(json['Used'],'List<RetailerOpeningTime>',context!);
        return this;
    }

    Map<String, dynamic> toJson() => {
        'New': JsonConverters.toJson(New,'List<RetailerOpeningTime>',context!),
        'Used': JsonConverters.toJson(Used,'List<RetailerOpeningTime>',context!)
    };

    getTypeName() => "RetailerOpeningTimes";
    TypeContext? context = _ctx;
}

class Retailer implements IConvertible
{
    int? Id;
    String? GssnId;
    String? Description;
    String? Street;
    String? City;
    String? Postcode;
    String? GoogleMapPostcode;
    String? Phone;
    String? Fax;
    String? Email;
    String? Website;
    String? RetailerGroupId;
    String? RetailerGroupName;
    bool? IsOnline;
    bool? IsNewCarRetailer;
    bool? IsUsedCarRetailer;
    bool? IsCentralRetailer;
    bool? ChatEnabled;
    bool? TradeInEnabled;
    bool? smart;
    String? DisplayPhoneNumberNew;
    String? DisplayPhoneNumberUsed;
    double? Latitude;
    double? Longitude;
    String? smartDescription;
    String? smartWebsite;
    String? smartPhone;
    String? LegacyId;
    bool? Agent;
    int? MarketAreaId;
    String? DigitalLoungeParentGssnId;
    bool? SendLeadsToDigitalLoungeParent;
    RetailerOpeningTimes? OpeningTimes;

    Retailer({this.Id,this.GssnId,this.Description,this.Street,this.City,this.Postcode,this.GoogleMapPostcode,this.Phone,this.Fax,this.Email,this.Website,this.RetailerGroupId,this.RetailerGroupName,this.IsOnline,this.IsNewCarRetailer,this.IsUsedCarRetailer,this.IsCentralRetailer,this.ChatEnabled,this.TradeInEnabled,this.smart,this.DisplayPhoneNumberNew,this.DisplayPhoneNumberUsed,this.Latitude,this.Longitude,this.smartDescription,this.smartWebsite,this.smartPhone,this.LegacyId,this.Agent,this.MarketAreaId,this.DigitalLoungeParentGssnId,this.SendLeadsToDigitalLoungeParent,this.OpeningTimes});
    Retailer.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        Id = json['Id'];
        GssnId = json['GssnId'];
        Description = json['Description'];
        Street = json['Street'];
        City = json['City'];
        Postcode = json['Postcode'];
        GoogleMapPostcode = json['GoogleMapPostcode'];
        Phone = json['Phone'];
        Fax = json['Fax'];
        Email = json['Email'];
        Website = json['Website'];
        RetailerGroupId = json['RetailerGroupId'];
        RetailerGroupName = json['RetailerGroupName'];
        IsOnline = json['IsOnline'];
        IsNewCarRetailer = json['IsNewCarRetailer'];
        IsUsedCarRetailer = json['IsUsedCarRetailer'];
        IsCentralRetailer = json['IsCentralRetailer'];
        ChatEnabled = json['ChatEnabled'];
        TradeInEnabled = json['TradeInEnabled'];
        smart = json['smart'];
        DisplayPhoneNumberNew = json['DisplayPhoneNumberNew'];
        DisplayPhoneNumberUsed = json['DisplayPhoneNumberUsed'];
        Latitude = JsonConverters.toDouble(json['Latitude']);
        Longitude = JsonConverters.toDouble(json['Longitude']);
        smartDescription = json['smartDescription'];
        smartWebsite = json['smartWebsite'];
        smartPhone = json['smartPhone'];
        LegacyId = json['LegacyId'];
        Agent = json['Agent'];
        MarketAreaId = json['MarketAreaId'];
        DigitalLoungeParentGssnId = json['DigitalLoungeParentGssnId'];
        SendLeadsToDigitalLoungeParent = json['SendLeadsToDigitalLoungeParent'];
        OpeningTimes = JsonConverters.fromJson(json['OpeningTimes'],'RetailerOpeningTimes',context!);
        return this;
    }

    Map<String, dynamic> toJson() => {
        'Id': Id,
        'GssnId': GssnId,
        'Description': Description,
        'Street': Street,
        'City': City,
        'Postcode': Postcode,
        'GoogleMapPostcode': GoogleMapPostcode,
        'Phone': Phone,
        'Fax': Fax,
        'Email': Email,
        'Website': Website,
        'RetailerGroupId': RetailerGroupId,
        'RetailerGroupName': RetailerGroupName,
        'IsOnline': IsOnline,
        'IsNewCarRetailer': IsNewCarRetailer,
        'IsUsedCarRetailer': IsUsedCarRetailer,
        'IsCentralRetailer': IsCentralRetailer,
        'ChatEnabled': ChatEnabled,
        'TradeInEnabled': TradeInEnabled,
        'smart': smart,
        'DisplayPhoneNumberNew': DisplayPhoneNumberNew,
        'DisplayPhoneNumberUsed': DisplayPhoneNumberUsed,
        'Latitude': Latitude,
        'Longitude': Longitude,
        'smartDescription': smartDescription,
        'smartWebsite': smartWebsite,
        'smartPhone': smartPhone,
        'LegacyId': LegacyId,
        'Agent': Agent,
        'MarketAreaId': MarketAreaId,
        'DigitalLoungeParentGssnId': DigitalLoungeParentGssnId,
        'SendLeadsToDigitalLoungeParent': SendLeadsToDigitalLoungeParent,
        'OpeningTimes': JsonConverters.toJson(OpeningTimes,'RetailerOpeningTimes',context!)
    };

    getTypeName() => "Retailer";
    TypeContext? context = _ctx;
}

class OnlineShowroomVehicle implements IConvertible
{
    String? Vin;
    String? VehicleClass;
    String? TransmissionType;
    String? FuelType;
    String? ImageUrl;
    String? Colour;
    String? Description;
    String? BodyStyle;
    String? UpholsteryType;
    Retailer? Retailer;
    double? OTR;
    double? ActualPrice;
    double? TotalOfferValue;
    double? NetPrice;
    String? VehicleType;
    String? OfferExpiryDate;

    OnlineShowroomVehicle({this.Vin,this.VehicleClass,this.TransmissionType,this.FuelType,this.ImageUrl,this.Colour,this.Description,this.BodyStyle,this.UpholsteryType,this.Retailer,this.OTR,this.ActualPrice,this.TotalOfferValue,this.NetPrice,this.VehicleType,this.OfferExpiryDate});
    OnlineShowroomVehicle.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        Vin = json['Vin'];
        VehicleClass = json['VehicleClass'];
        TransmissionType = json['TransmissionType'];
        FuelType = json['FuelType'];
        ImageUrl = json['ImageUrl'];
        Colour = json['Colour'];
        Description = json['Description'];
        BodyStyle = json['BodyStyle'];
        UpholsteryType = json['UpholsteryType'];
        Retailer = JsonConverters.fromJson(json['Retailer'],'Retailer',context!);
        OTR = JsonConverters.toDouble(json['OTR']);
        ActualPrice = JsonConverters.toDouble(json['ActualPrice']);
        TotalOfferValue = JsonConverters.toDouble(json['TotalOfferValue']);
        NetPrice = JsonConverters.toDouble(json['NetPrice']);
        VehicleType = json['VehicleType'];
        OfferExpiryDate = json['OfferExpiryDate'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'Vin': Vin,
        'VehicleClass': VehicleClass,
        'TransmissionType': TransmissionType,
        'FuelType': FuelType,
        'ImageUrl': ImageUrl,
        'Colour': Colour,
        'Description': Description,
        'BodyStyle': BodyStyle,
        'UpholsteryType': UpholsteryType,
        'Retailer': JsonConverters.toJson(Retailer,'Retailer',context!),
        'OTR': OTR,
        'ActualPrice': ActualPrice,
        'TotalOfferValue': TotalOfferValue,
        'NetPrice': NetPrice,
        'VehicleType': VehicleType,
        'OfferExpiryDate': OfferExpiryDate
    };

    getTypeName() => "OnlineShowroomVehicle";
    TypeContext? context = _ctx;
}

class PaymentDetail implements IConvertible
{
    String? PaymentType;
    String? PaymentLink;

    PaymentDetail({this.PaymentType,this.PaymentLink});
    PaymentDetail.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        PaymentType = json['PaymentType'];
        PaymentLink = json['PaymentLink'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'PaymentType': PaymentType,
        'PaymentLink': PaymentLink
    };

    getTypeName() => "PaymentDetail";
    TypeContext? context = _ctx;
}

class OnlineShowroomOrder implements IConvertible
{
    String? Guid;
    String? Reference;
    List<OnlineShowroomStatus>? Status = [];
    OnlineShowroomVehicle? Vehicle;
    String? ClosedDate;
    String? CustomerId;
    String? HandoverDate;
    String? ClosedReason;
    String? OrderDate;
    List<PaymentDetail>? PaymentLinks = [];

    OnlineShowroomOrder({this.Guid,this.Reference,this.Status,this.Vehicle,this.ClosedDate,this.CustomerId,this.HandoverDate,this.ClosedReason,this.OrderDate,this.PaymentLinks});
    OnlineShowroomOrder.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        Guid = json['Guid'];
        Reference = json['Reference'];
        Status = JsonConverters.fromJson(json['Status'],'List<OnlineShowroomStatus>',context!);
        Vehicle = JsonConverters.fromJson(json['Vehicle'],'OnlineShowroomVehicle',context!);
        ClosedDate = json['ClosedDate'];
        CustomerId = json['CustomerId'];
        HandoverDate = json['HandoverDate'];
        ClosedReason = json['ClosedReason'];
        OrderDate = json['OrderDate'];
        PaymentLinks = JsonConverters.fromJson(json['PaymentLinks'],'List<PaymentDetail>',context!);
        return this;
    }

    Map<String, dynamic> toJson() => {
        'Guid': Guid,
        'Reference': Reference,
        'Status': JsonConverters.toJson(Status,'List<OnlineShowroomStatus>',context!),
        'Vehicle': JsonConverters.toJson(Vehicle,'OnlineShowroomVehicle',context!),
        'ClosedDate': ClosedDate,
        'CustomerId': CustomerId,
        'HandoverDate': HandoverDate,
        'ClosedReason': ClosedReason,
        'OrderDate': OrderDate,
        'PaymentLinks': JsonConverters.toJson(PaymentLinks,'List<PaymentDetail>',context!)
    };

    getTypeName() => "OnlineShowroomOrder";
    TypeContext? context = _ctx;
}

class GetOrderCustomerResponse implements IConvertible
{
    List<Order>? Orders = [];
    List<OnlineShowroomOrder>? Completed = [];
    List<OnlineShowroomOrder>? Cancelled = [];
    List<OnlineShowroomOrder>? InProgress = [];
    List<OnlineShowroomOrder>? Archived = [];

    GetOrderCustomerResponse({this.Orders,this.Completed,this.Cancelled,this.InProgress,this.Archived});
    GetOrderCustomerResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        Orders = JsonConverters.fromJson(json['Orders'],'List<Order>',context!);
        Completed = JsonConverters.fromJson(json['Completed'],'List<OnlineShowroomOrder>',context!);
        Cancelled = JsonConverters.fromJson(json['Cancelled'],'List<OnlineShowroomOrder>',context!);
        InProgress = JsonConverters.fromJson(json['InProgress'],'List<OnlineShowroomOrder>',context!);
        Archived = JsonConverters.fromJson(json['Archived'],'List<OnlineShowroomOrder>',context!);
        return this;
    }

    Map<String, dynamic> toJson() => {
        'Orders': JsonConverters.toJson(Orders,'List<Order>',context!),
        'Completed': JsonConverters.toJson(Completed,'List<OnlineShowroomOrder>',context!),
        'Cancelled': JsonConverters.toJson(Cancelled,'List<OnlineShowroomOrder>',context!),
        'InProgress': JsonConverters.toJson(InProgress,'List<OnlineShowroomOrder>',context!),
        'Archived': JsonConverters.toJson(Archived,'List<OnlineShowroomOrder>',context!)
    };

    getTypeName() => "GetOrderCustomerResponse";
    TypeContext? context = _ctx;
}

class GetOrderCustomerRequest implements IGet, IConvertible
{
    String? CustomerId;

    GetOrderCustomerRequest({this.CustomerId});
    GetOrderCustomerRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        CustomerId = json['CustomerId'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'CustomerId': CustomerId
    };

    getTypeName() => "GetOrderCustomerRequest";
    TypeContext? context = _ctx;
}

TypeContext _ctx = TypeContext(library: 'prod_api_agency_orch_mb_dhc.rapp_customers.co.uk', types: <String, TypeInfo> {
    'Order': TypeInfo(TypeOf.Class, create:() => Order()),
    'OrderStatus': TypeInfo(TypeOf.Class, create:() => OrderStatus()),
    'OnlineShowroomStatus': TypeInfo(TypeOf.Class, create:() => OnlineShowroomStatus()),
    'List<OrderStatus>': TypeInfo(TypeOf.Class, create:() => <OrderStatus>[]),
    'RetailerOpeningTime': TypeInfo(TypeOf.Class, create:() => RetailerOpeningTime()),
    'RetailerOpeningTimes': TypeInfo(TypeOf.Class, create:() => RetailerOpeningTimes()),
    'List<RetailerOpeningTime>': TypeInfo(TypeOf.Class, create:() => <RetailerOpeningTime>[]),
    'Retailer': TypeInfo(TypeOf.Class, create:() => Retailer()),
    'OnlineShowroomVehicle': TypeInfo(TypeOf.Class, create:() => OnlineShowroomVehicle()),
    'PaymentDetail': TypeInfo(TypeOf.Class, create:() => PaymentDetail()),
    'OnlineShowroomOrder': TypeInfo(TypeOf.Class, create:() => OnlineShowroomOrder()),
    'List<OnlineShowroomStatus>': TypeInfo(TypeOf.Class, create:() => <OnlineShowroomStatus>[]),
    'List<PaymentDetail>': TypeInfo(TypeOf.Class, create:() => <PaymentDetail>[]),
    'GetOrderCustomerResponse': TypeInfo(TypeOf.Class, create:() => GetOrderCustomerResponse()),
    'List<Order>': TypeInfo(TypeOf.Class, create:() => <Order>[]),
    'List<OnlineShowroomOrder>': TypeInfo(TypeOf.Class, create:() => <OnlineShowroomOrder>[]),
    'GetOrderCustomerRequest': TypeInfo(TypeOf.Class, create:() => GetOrderCustomerRequest()),
});

Dart GetOrderCustomerRequest 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.

GET /v1/order/customer/{CustomerId} HTTP/1.1 
Host: prod-api-agency-orch-mb-dhc.rapp-customers.co.uk 
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<GetOrderCustomerResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Mercedes.Agency.Orchestration.API.Clients.AgencyApi.Responses">
  <Archived xmlns:d2p1="http://schemas.datacontract.org/2004/07/Mercedes.Agency.API.Shared.POCO">
    <d2p1:OnlineShowroomOrder>
      <d2p1:ClosedDate>String</d2p1:ClosedDate>
      <d2p1:ClosedReason>String</d2p1:ClosedReason>
      <d2p1:CustomerId>String</d2p1:CustomerId>
      <d2p1:Guid>00000000-0000-0000-0000-000000000000</d2p1:Guid>
      <d2p1:HandoverDate>String</d2p1:HandoverDate>
      <d2p1:OrderDate>String</d2p1:OrderDate>
      <d2p1:PaymentLinks>
        <d2p1:PaymentDetail>
          <d2p1:PaymentLink>String</d2p1:PaymentLink>
          <d2p1:PaymentType>String</d2p1:PaymentType>
        </d2p1:PaymentDetail>
      </d2p1:PaymentLinks>
      <d2p1:Reference>String</d2p1:Reference>
      <d2p1:Status>
        <d2p1:OnlineShowroomStatus>
          <d2p1:Completed>false</d2p1:Completed>
          <d2p1:Current>false</d2p1:Current>
          <d2p1:Description>String</d2p1:Description>
          <d2p1:Id>0</d2p1:Id>
          <d2p1:OrderStatuses>
            <d2p1:OrderStatus>
              <d2p1:Description>String</d2p1:Description>
              <d2p1:Id>0</d2p1:Id>
            </d2p1:OrderStatus>
          </d2p1:OrderStatuses>
          <d2p1:Slug>String</d2p1:Slug>
        </d2p1:OnlineShowroomStatus>
      </d2p1:Status>
      <d2p1:Vehicle>
        <d2p1:ActualPrice>0</d2p1:ActualPrice>
        <d2p1:BodyStyle>String</d2p1:BodyStyle>
        <d2p1:Colour>String</d2p1:Colour>
        <d2p1:Description>String</d2p1:Description>
        <d2p1:FuelType>String</d2p1:FuelType>
        <d2p1:ImageUrl>String</d2p1:ImageUrl>
        <d2p1:NetPrice>0</d2p1:NetPrice>
        <d2p1:OTR>0</d2p1:OTR>
        <d2p1:OfferExpiryDate>String</d2p1:OfferExpiryDate>
        <d2p1:Retailer>
          <d2p1:Agent>false</d2p1:Agent>
          <d2p1:ChatEnabled>false</d2p1:ChatEnabled>
          <d2p1:City>String</d2p1:City>
          <d2p1:Description>String</d2p1:Description>
          <d2p1:DigitalLoungeParentGssnId>String</d2p1:DigitalLoungeParentGssnId>
          <d2p1:DisplayPhoneNumberNew>String</d2p1:DisplayPhoneNumberNew>
          <d2p1:DisplayPhoneNumberUsed>String</d2p1:DisplayPhoneNumberUsed>
          <d2p1:Email>String</d2p1:Email>
          <d2p1:Fax>String</d2p1:Fax>
          <d2p1:GoogleMapPostcode>String</d2p1:GoogleMapPostcode>
          <d2p1:GssnId>String</d2p1:GssnId>
          <d2p1:Id>0</d2p1:Id>
          <d2p1:IsCentralRetailer>false</d2p1:IsCentralRetailer>
          <d2p1:IsNewCarRetailer>false</d2p1:IsNewCarRetailer>
          <d2p1:IsOnline>false</d2p1:IsOnline>
          <d2p1:IsUsedCarRetailer>false</d2p1:IsUsedCarRetailer>
          <d2p1:Latitude>0</d2p1:Latitude>
          <d2p1:LegacyId>String</d2p1:LegacyId>
          <d2p1:Longitude>0</d2p1:Longitude>
          <d2p1:MarketAreaId>0</d2p1:MarketAreaId>
          <d2p1:OpeningTimes>
            <d2p1:New>
              <d2p1:RetailerOpeningTime>
                <d2p1:Day>String</d2p1:Day>
                <d2p1:OpenFrom>String</d2p1:OpenFrom>
                <d2p1:OpenTo>String</d2p1:OpenTo>
                <d2p1:Special>String</d2p1:Special>
              </d2p1:RetailerOpeningTime>
            </d2p1:New>
            <d2p1:Used>
              <d2p1:RetailerOpeningTime>
                <d2p1:Day>String</d2p1:Day>
                <d2p1:OpenFrom>String</d2p1:OpenFrom>
                <d2p1:OpenTo>String</d2p1:OpenTo>
                <d2p1:Special>String</d2p1:Special>
              </d2p1:RetailerOpeningTime>
            </d2p1:Used>
          </d2p1:OpeningTimes>
          <d2p1:Phone>String</d2p1:Phone>
          <d2p1:Postcode>String</d2p1:Postcode>
          <d2p1:RetailerGroupId>String</d2p1:RetailerGroupId>
          <d2p1:RetailerGroupName>String</d2p1:RetailerGroupName>
          <d2p1:SendLeadsToDigitalLoungeParent>false</d2p1:SendLeadsToDigitalLoungeParent>
          <d2p1:Street>String</d2p1:Street>
          <d2p1:TradeInEnabled>false</d2p1:TradeInEnabled>
          <d2p1:Website>String</d2p1:Website>
          <d2p1:smart>false</d2p1:smart>
          <d2p1:smartDescription>String</d2p1:smartDescription>
          <d2p1:smartPhone>String</d2p1:smartPhone>
          <d2p1:smartWebsite>String</d2p1:smartWebsite>
        </d2p1:Retailer>
        <d2p1:TotalOfferValue>0</d2p1:TotalOfferValue>
        <d2p1:TransmissionType>String</d2p1:TransmissionType>
        <d2p1:UpholsteryType>String</d2p1:UpholsteryType>
        <d2p1:VehicleClass>String</d2p1:VehicleClass>
        <d2p1:VehicleType>String</d2p1:VehicleType>
        <d2p1:Vin>String</d2p1:Vin>
      </d2p1:Vehicle>
    </d2p1:OnlineShowroomOrder>
  </Archived>
  <Cancelled xmlns:d2p1="http://schemas.datacontract.org/2004/07/Mercedes.Agency.API.Shared.POCO">
    <d2p1:OnlineShowroomOrder>
      <d2p1:ClosedDate>String</d2p1:ClosedDate>
      <d2p1:ClosedReason>String</d2p1:ClosedReason>
      <d2p1:CustomerId>String</d2p1:CustomerId>
      <d2p1:Guid>00000000-0000-0000-0000-000000000000</d2p1:Guid>
      <d2p1:HandoverDate>String</d2p1:HandoverDate>
      <d2p1:OrderDate>String</d2p1:OrderDate>
      <d2p1:PaymentLinks>
        <d2p1:PaymentDetail>
          <d2p1:PaymentLink>String</d2p1:PaymentLink>
          <d2p1:PaymentType>String</d2p1:PaymentType>
        </d2p1:PaymentDetail>
      </d2p1:PaymentLinks>
      <d2p1:Reference>String</d2p1:Reference>
      <d2p1:Status>
        <d2p1:OnlineShowroomStatus>
          <d2p1:Completed>false</d2p1:Completed>
          <d2p1:Current>false</d2p1:Current>
          <d2p1:Description>String</d2p1:Description>
          <d2p1:Id>0</d2p1:Id>
          <d2p1:OrderStatuses>
            <d2p1:OrderStatus>
              <d2p1:Description>String</d2p1:Description>
              <d2p1:Id>0</d2p1:Id>
            </d2p1:OrderStatus>
          </d2p1:OrderStatuses>
          <d2p1:Slug>String</d2p1:Slug>
        </d2p1:OnlineShowroomStatus>
      </d2p1:Status>
      <d2p1:Vehicle>
        <d2p1:ActualPrice>0</d2p1:ActualPrice>
        <d2p1:BodyStyle>String</d2p1:BodyStyle>
        <d2p1:Colour>String</d2p1:Colour>
        <d2p1:Description>String</d2p1:Description>
        <d2p1:FuelType>String</d2p1:FuelType>
        <d2p1:ImageUrl>String</d2p1:ImageUrl>
        <d2p1:NetPrice>0</d2p1:NetPrice>
        <d2p1:OTR>0</d2p1:OTR>
        <d2p1:OfferExpiryDate>String</d2p1:OfferExpiryDate>
        <d2p1:Retailer>
          <d2p1:Agent>false</d2p1:Agent>
          <d2p1:ChatEnabled>false</d2p1:ChatEnabled>
          <d2p1:City>String</d2p1:City>
          <d2p1:Description>String</d2p1:Description>
          <d2p1:DigitalLoungeParentGssnId>String</d2p1:DigitalLoungeParentGssnId>
          <d2p1:DisplayPhoneNumberNew>String</d2p1:DisplayPhoneNumberNew>
          <d2p1:DisplayPhoneNumberUsed>String</d2p1:DisplayPhoneNumberUsed>
          <d2p1:Email>String</d2p1:Email>
          <d2p1:Fax>String</d2p1:Fax>
          <d2p1:GoogleMapPostcode>String</d2p1:GoogleMapPostcode>
          <d2p1:GssnId>String</d2p1:GssnId>
          <d2p1:Id>0</d2p1:Id>
          <d2p1:IsCentralRetailer>false</d2p1:IsCentralRetailer>
          <d2p1:IsNewCarRetailer>false</d2p1:IsNewCarRetailer>
          <d2p1:IsOnline>false</d2p1:IsOnline>
          <d2p1:IsUsedCarRetailer>false</d2p1:IsUsedCarRetailer>
          <d2p1:Latitude>0</d2p1:Latitude>
          <d2p1:LegacyId>String</d2p1:LegacyId>
          <d2p1:Longitude>0</d2p1:Longitude>
          <d2p1:MarketAreaId>0</d2p1:MarketAreaId>
          <d2p1:OpeningTimes>
            <d2p1:New>
              <d2p1:RetailerOpeningTime>
                <d2p1:Day>String</d2p1:Day>
                <d2p1:OpenFrom>String</d2p1:OpenFrom>
                <d2p1:OpenTo>String</d2p1:OpenTo>
                <d2p1:Special>String</d2p1:Special>
              </d2p1:RetailerOpeningTime>
            </d2p1:New>
            <d2p1:Used>
              <d2p1:RetailerOpeningTime>
                <d2p1:Day>String</d2p1:Day>
                <d2p1:OpenFrom>String</d2p1:OpenFrom>
                <d2p1:OpenTo>String</d2p1:OpenTo>
                <d2p1:Special>String</d2p1:Special>
              </d2p1:RetailerOpeningTime>
            </d2p1:Used>
          </d2p1:OpeningTimes>
          <d2p1:Phone>String</d2p1:Phone>
          <d2p1:Postcode>String</d2p1:Postcode>
          <d2p1:RetailerGroupId>String</d2p1:RetailerGroupId>
          <d2p1:RetailerGroupName>String</d2p1:RetailerGroupName>
          <d2p1:SendLeadsToDigitalLoungeParent>false</d2p1:SendLeadsToDigitalLoungeParent>
          <d2p1:Street>String</d2p1:Street>
          <d2p1:TradeInEnabled>false</d2p1:TradeInEnabled>
          <d2p1:Website>String</d2p1:Website>
          <d2p1:smart>false</d2p1:smart>
          <d2p1:smartDescription>String</d2p1:smartDescription>
          <d2p1:smartPhone>String</d2p1:smartPhone>
          <d2p1:smartWebsite>String</d2p1:smartWebsite>
        </d2p1:Retailer>
        <d2p1:TotalOfferValue>0</d2p1:TotalOfferValue>
        <d2p1:TransmissionType>String</d2p1:TransmissionType>
        <d2p1:UpholsteryType>String</d2p1:UpholsteryType>
        <d2p1:VehicleClass>String</d2p1:VehicleClass>
        <d2p1:VehicleType>String</d2p1:VehicleType>
        <d2p1:Vin>String</d2p1:Vin>
      </d2p1:Vehicle>
    </d2p1:OnlineShowroomOrder>
  </Cancelled>
  <Completed xmlns:d2p1="http://schemas.datacontract.org/2004/07/Mercedes.Agency.API.Shared.POCO">
    <d2p1:OnlineShowroomOrder>
      <d2p1:ClosedDate>String</d2p1:ClosedDate>
      <d2p1:ClosedReason>String</d2p1:ClosedReason>
      <d2p1:CustomerId>String</d2p1:CustomerId>
      <d2p1:Guid>00000000-0000-0000-0000-000000000000</d2p1:Guid>
      <d2p1:HandoverDate>String</d2p1:HandoverDate>
      <d2p1:OrderDate>String</d2p1:OrderDate>
      <d2p1:PaymentLinks>
        <d2p1:PaymentDetail>
          <d2p1:PaymentLink>String</d2p1:PaymentLink>
          <d2p1:PaymentType>String</d2p1:PaymentType>
        </d2p1:PaymentDetail>
      </d2p1:PaymentLinks>
      <d2p1:Reference>String</d2p1:Reference>
      <d2p1:Status>
        <d2p1:OnlineShowroomStatus>
          <d2p1:Completed>false</d2p1:Completed>
          <d2p1:Current>false</d2p1:Current>
          <d2p1:Description>String</d2p1:Description>
          <d2p1:Id>0</d2p1:Id>
          <d2p1:OrderStatuses>
            <d2p1:OrderStatus>
              <d2p1:Description>String</d2p1:Description>
              <d2p1:Id>0</d2p1:Id>
            </d2p1:OrderStatus>
          </d2p1:OrderStatuses>
          <d2p1:Slug>String</d2p1:Slug>
        </d2p1:OnlineShowroomStatus>
      </d2p1:Status>
      <d2p1:Vehicle>
        <d2p1:ActualPrice>0</d2p1:ActualPrice>
        <d2p1:BodyStyle>String</d2p1:BodyStyle>
        <d2p1:Colour>String</d2p1:Colour>
        <d2p1:Description>String</d2p1:Description>
        <d2p1:FuelType>String</d2p1:FuelType>
        <d2p1:ImageUrl>String</d2p1:ImageUrl>
        <d2p1:NetPrice>0</d2p1:NetPrice>
        <d2p1:OTR>0</d2p1:OTR>
        <d2p1:OfferExpiryDate>String</d2p1:OfferExpiryDate>
        <d2p1:Retailer>
          <d2p1:Agent>false</d2p1:Agent>
          <d2p1:ChatEnabled>false</d2p1:ChatEnabled>
          <d2p1:City>String</d2p1:City>
          <d2p1:Description>String</d2p1:Description>
          <d2p1:DigitalLoungeParentGssnId>String</d2p1:DigitalLoungeParentGssnId>
          <d2p1:DisplayPhoneNumberNew>String</d2p1:DisplayPhoneNumberNew>
          <d2p1:DisplayPhoneNumberUsed>String</d2p1:DisplayPhoneNumberUsed>
          <d2p1:Email>String</d2p1:Email>
          <d2p1:Fax>String</d2p1:Fax>
          <d2p1:GoogleMapPostcode>String</d2p1:GoogleMapPostcode>
          <d2p1:GssnId>String</d2p1:GssnId>
          <d2p1:Id>0</d2p1:Id>
          <d2p1:IsCentralRetailer>false</d2p1:IsCentralRetailer>
          <d2p1:IsNewCarRetailer>false</d2p1:IsNewCarRetailer>
          <d2p1:IsOnline>false</d2p1:IsOnline>
          <d2p1:IsUsedCarRetailer>false</d2p1:IsUsedCarRetailer>
          <d2p1:Latitude>0</d2p1:Latitude>
          <d2p1:LegacyId>String</d2p1:LegacyId>
          <d2p1:Longitude>0</d2p1:Longitude>
          <d2p1:MarketAreaId>0</d2p1:MarketAreaId>
          <d2p1:OpeningTimes>
            <d2p1:New>
              <d2p1:RetailerOpeningTime>
                <d2p1:Day>String</d2p1:Day>
                <d2p1:OpenFrom>String</d2p1:OpenFrom>
                <d2p1:OpenTo>String</d2p1:OpenTo>
                <d2p1:Special>String</d2p1:Special>
              </d2p1:RetailerOpeningTime>
            </d2p1:New>
            <d2p1:Used>
              <d2p1:RetailerOpeningTime>
                <d2p1:Day>String</d2p1:Day>
                <d2p1:OpenFrom>String</d2p1:OpenFrom>
                <d2p1:OpenTo>String</d2p1:OpenTo>
                <d2p1:Special>String</d2p1:Special>
              </d2p1:RetailerOpeningTime>
            </d2p1:Used>
          </d2p1:OpeningTimes>
          <d2p1:Phone>String</d2p1:Phone>
          <d2p1:Postcode>String</d2p1:Postcode>
          <d2p1:RetailerGroupId>String</d2p1:RetailerGroupId>
          <d2p1:RetailerGroupName>String</d2p1:RetailerGroupName>
          <d2p1:SendLeadsToDigitalLoungeParent>false</d2p1:SendLeadsToDigitalLoungeParent>
          <d2p1:Street>String</d2p1:Street>
          <d2p1:TradeInEnabled>false</d2p1:TradeInEnabled>
          <d2p1:Website>String</d2p1:Website>
          <d2p1:smart>false</d2p1:smart>
          <d2p1:smartDescription>String</d2p1:smartDescription>
          <d2p1:smartPhone>String</d2p1:smartPhone>
          <d2p1:smartWebsite>String</d2p1:smartWebsite>
        </d2p1:Retailer>
        <d2p1:TotalOfferValue>0</d2p1:TotalOfferValue>
        <d2p1:TransmissionType>String</d2p1:TransmissionType>
        <d2p1:UpholsteryType>String</d2p1:UpholsteryType>
        <d2p1:VehicleClass>String</d2p1:VehicleClass>
        <d2p1:VehicleType>String</d2p1:VehicleType>
        <d2p1:Vin>String</d2p1:Vin>
      </d2p1:Vehicle>
    </d2p1:OnlineShowroomOrder>
  </Completed>
  <InProgress xmlns:d2p1="http://schemas.datacontract.org/2004/07/Mercedes.Agency.API.Shared.POCO">
    <d2p1:OnlineShowroomOrder>
      <d2p1:ClosedDate>String</d2p1:ClosedDate>
      <d2p1:ClosedReason>String</d2p1:ClosedReason>
      <d2p1:CustomerId>String</d2p1:CustomerId>
      <d2p1:Guid>00000000-0000-0000-0000-000000000000</d2p1:Guid>
      <d2p1:HandoverDate>String</d2p1:HandoverDate>
      <d2p1:OrderDate>String</d2p1:OrderDate>
      <d2p1:PaymentLinks>
        <d2p1:PaymentDetail>
          <d2p1:PaymentLink>String</d2p1:PaymentLink>
          <d2p1:PaymentType>String</d2p1:PaymentType>
        </d2p1:PaymentDetail>
      </d2p1:PaymentLinks>
      <d2p1:Reference>String</d2p1:Reference>
      <d2p1:Status>
        <d2p1:OnlineShowroomStatus>
          <d2p1:Completed>false</d2p1:Completed>
          <d2p1:Current>false</d2p1:Current>
          <d2p1:Description>String</d2p1:Description>
          <d2p1:Id>0</d2p1:Id>
          <d2p1:OrderStatuses>
            <d2p1:OrderStatus>
              <d2p1:Description>String</d2p1:Description>
              <d2p1:Id>0</d2p1:Id>
            </d2p1:OrderStatus>
          </d2p1:OrderStatuses>
          <d2p1:Slug>String</d2p1:Slug>
        </d2p1:OnlineShowroomStatus>
      </d2p1:Status>
      <d2p1:Vehicle>
        <d2p1:ActualPrice>0</d2p1:ActualPrice>
        <d2p1:BodyStyle>String</d2p1:BodyStyle>
        <d2p1:Colour>String</d2p1:Colour>
        <d2p1:Description>String</d2p1:Description>
        <d2p1:FuelType>String</d2p1:FuelType>
        <d2p1:ImageUrl>String</d2p1:ImageUrl>
        <d2p1:NetPrice>0</d2p1:NetPrice>
        <d2p1:OTR>0</d2p1:OTR>
        <d2p1:OfferExpiryDate>String</d2p1:OfferExpiryDate>
        <d2p1:Retailer>
          <d2p1:Agent>false</d2p1:Agent>
          <d2p1:ChatEnabled>false</d2p1:ChatEnabled>
          <d2p1:City>String</d2p1:City>
          <d2p1:Description>String</d2p1:Description>
          <d2p1:DigitalLoungeParentGssnId>String</d2p1:DigitalLoungeParentGssnId>
          <d2p1:DisplayPhoneNumberNew>String</d2p1:DisplayPhoneNumberNew>
          <d2p1:DisplayPhoneNumberUsed>String</d2p1:DisplayPhoneNumberUsed>
          <d2p1:Email>String</d2p1:Email>
          <d2p1:Fax>String</d2p1:Fax>
          <d2p1:GoogleMapPostcode>String</d2p1:GoogleMapPostcode>
          <d2p1:GssnId>String</d2p1:GssnId>
          <d2p1:Id>0</d2p1:Id>
          <d2p1:IsCentralRetailer>false</d2p1:IsCentralRetailer>
          <d2p1:IsNewCarRetailer>false</d2p1:IsNewCarRetailer>
          <d2p1:IsOnline>false</d2p1:IsOnline>
          <d2p1:IsUsedCarRetailer>false</d2p1:IsUsedCarRetailer>
          <d2p1:Latitude>0</d2p1:Latitude>
          <d2p1:LegacyId>String</d2p1:LegacyId>
          <d2p1:Longitude>0</d2p1:Longitude>
          <d2p1:MarketAreaId>0</d2p1:MarketAreaId>
          <d2p1:OpeningTimes>
            <d2p1:New>
              <d2p1:RetailerOpeningTime>
                <d2p1:Day>String</d2p1:Day>
                <d2p1:OpenFrom>String</d2p1:OpenFrom>
                <d2p1:OpenTo>String</d2p1:OpenTo>
                <d2p1:Special>String</d2p1:Special>
              </d2p1:RetailerOpeningTime>
            </d2p1:New>
            <d2p1:Used>
              <d2p1:RetailerOpeningTime>
                <d2p1:Day>String</d2p1:Day>
                <d2p1:OpenFrom>String</d2p1:OpenFrom>
                <d2p1:OpenTo>String</d2p1:OpenTo>
                <d2p1:Special>String</d2p1:Special>
              </d2p1:RetailerOpeningTime>
            </d2p1:Used>
          </d2p1:OpeningTimes>
          <d2p1:Phone>String</d2p1:Phone>
          <d2p1:Postcode>String</d2p1:Postcode>
          <d2p1:RetailerGroupId>String</d2p1:RetailerGroupId>
          <d2p1:RetailerGroupName>String</d2p1:RetailerGroupName>
          <d2p1:SendLeadsToDigitalLoungeParent>false</d2p1:SendLeadsToDigitalLoungeParent>
          <d2p1:Street>String</d2p1:Street>
          <d2p1:TradeInEnabled>false</d2p1:TradeInEnabled>
          <d2p1:Website>String</d2p1:Website>
          <d2p1:smart>false</d2p1:smart>
          <d2p1:smartDescription>String</d2p1:smartDescription>
          <d2p1:smartPhone>String</d2p1:smartPhone>
          <d2p1:smartWebsite>String</d2p1:smartWebsite>
        </d2p1:Retailer>
        <d2p1:TotalOfferValue>0</d2p1:TotalOfferValue>
        <d2p1:TransmissionType>String</d2p1:TransmissionType>
        <d2p1:UpholsteryType>String</d2p1:UpholsteryType>
        <d2p1:VehicleClass>String</d2p1:VehicleClass>
        <d2p1:VehicleType>String</d2p1:VehicleType>
        <d2p1:Vin>String</d2p1:Vin>
      </d2p1:Vehicle>
    </d2p1:OnlineShowroomOrder>
  </InProgress>
  <Orders xmlns:d2p1="http://schemas.datacontract.org/2004/07/Mercedes.Agency.API.Shared.POCO">
    <d2p1:Order>
      <d2p1:CustomerId>String</d2p1:CustomerId>
      <d2p1:GasId>String</d2p1:GasId>
      <d2p1:Guid>00000000-0000-0000-0000-000000000000</d2p1:Guid>
      <d2p1:MulesoftReference>String</d2p1:MulesoftReference>
      <d2p1:OfferSnapShot>String</d2p1:OfferSnapShot>
      <d2p1:OrderDate>String</d2p1:OrderDate>
      <d2p1:Reference>String</d2p1:Reference>
      <d2p1:Status>0</d2p1:Status>
    </d2p1:Order>
  </Orders>
</GetOrderCustomerResponse>