Mercedes.Agency.Orchestration.API

<back to all web services

UpdateCarConfiguratorRequest

CarConfigurator
Requires Authentication
The following routes are available for this service:
PUT/v1/configuratorRemoves a back order from a car configuratorThis endpoint calls Agency API when a ConfigurationCode is removed from a back order.
import 'package:servicestack/servicestack.dart';

class KeyInformation implements IConvertible
{
    String? BM7NST;
    String? ConfigurationDate;
    String? ModelYear;
    String? HalfYear;

    KeyInformation({this.BM7NST,this.ConfigurationDate,this.ModelYear,this.HalfYear});
    KeyInformation.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        BM7NST = json['BM7NST'];
        ConfigurationDate = json['ConfigurationDate'];
        ModelYear = json['ModelYear'];
        HalfYear = json['HalfYear'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'BM7NST': BM7NST,
        'ConfigurationDate': ConfigurationDate,
        'ModelYear': ModelYear,
        'HalfYear': HalfYear
    };

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

class EquipmentCache implements IConvertible
{
    String? Code;
    String? Description;
    String? StandardFlag;
    double? Price;
    String? Category;
    String? Importance;

    EquipmentCache({this.Code,this.Description,this.StandardFlag,this.Price,this.Category,this.Importance});
    EquipmentCache.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        Code = json['Code'];
        Description = json['Description'];
        StandardFlag = json['StandardFlag'];
        Price = JsonConverters.toDouble(json['Price']);
        Category = json['Category'];
        Importance = json['Importance'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'Code': Code,
        'Description': Description,
        'StandardFlag': StandardFlag,
        'Price': Price,
        'Category': Category,
        'Importance': Importance
    };

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

class OrderingOptions implements IConvertible
{
    List<String>? Interior;
    List<String>? Exterior;
    List<String>? Options;
    List<EquipmentCache>? WheelOptions = [];
    List<EquipmentCache>? TrimOptions = [];
    List<EquipmentCache>? OptionCodes = [];

    OrderingOptions({this.Interior,this.Exterior,this.Options,this.WheelOptions,this.TrimOptions,this.OptionCodes});
    OrderingOptions.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        Interior = JsonConverters.fromJson(json['Interior'],'List<String>',context!);
        Exterior = JsonConverters.fromJson(json['Exterior'],'List<String>',context!);
        Options = JsonConverters.fromJson(json['Options'],'List<String>',context!);
        WheelOptions = JsonConverters.fromJson(json['WheelOptions'],'List<EquipmentCache>',context!);
        TrimOptions = JsonConverters.fromJson(json['TrimOptions'],'List<EquipmentCache>',context!);
        OptionCodes = JsonConverters.fromJson(json['OptionCodes'],'List<EquipmentCache>',context!);
        return this;
    }

    Map<String, dynamic> toJson() => {
        'Interior': JsonConverters.toJson(Interior,'List<String>',context!),
        'Exterior': JsonConverters.toJson(Exterior,'List<String>',context!),
        'Options': JsonConverters.toJson(Options,'List<String>',context!),
        'WheelOptions': JsonConverters.toJson(WheelOptions,'List<EquipmentCache>',context!),
        'TrimOptions': JsonConverters.toJson(TrimOptions,'List<EquipmentCache>',context!),
        'OptionCodes': JsonConverters.toJson(OptionCodes,'List<EquipmentCache>',context!)
    };

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

class CarConfiguratorResponse implements IConvertible
{
    String? Name;
    KeyInformation? KeyInformation;
    OrderingOptions? OrderingOptions;
    ResponseStatus? ResponseStatus;
    String? ConfiguratorCode;

    CarConfiguratorResponse({this.Name,this.KeyInformation,this.OrderingOptions,this.ResponseStatus,this.ConfiguratorCode});
    CarConfiguratorResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        Name = json['Name'];
        KeyInformation = JsonConverters.fromJson(json['KeyInformation'],'KeyInformation',context!);
        OrderingOptions = JsonConverters.fromJson(json['OrderingOptions'],'OrderingOptions',context!);
        ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!);
        ConfiguratorCode = json['ConfiguratorCode'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'Name': Name,
        'KeyInformation': JsonConverters.toJson(KeyInformation,'KeyInformation',context!),
        'OrderingOptions': JsonConverters.toJson(OrderingOptions,'OrderingOptions',context!),
        'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!),
        'ConfiguratorCode': ConfiguratorCode
    };

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

class UpdateCarConfiguratorRequest implements IPut, IConvertible
{
    /**
    * Configurator code
    */
    // @ApiMember(Description="Configurator code", IsRequired=true)
    String? ConfiguratorCode;

    /**
    * BackOrder Guid
    */
    // @ApiMember(Description="BackOrder Guid")
    String? Guid;

    UpdateCarConfiguratorRequest({this.ConfiguratorCode,this.Guid});
    UpdateCarConfiguratorRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }

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

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

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

TypeContext _ctx = TypeContext(library: 'prod_api_agency_orch_mb_dhc.rapp_customers.co.uk', types: <String, TypeInfo> {
    'KeyInformation': TypeInfo(TypeOf.Class, create:() => KeyInformation()),
    'EquipmentCache': TypeInfo(TypeOf.Class, create:() => EquipmentCache()),
    'OrderingOptions': TypeInfo(TypeOf.Class, create:() => OrderingOptions()),
    'List<EquipmentCache>': TypeInfo(TypeOf.Class, create:() => <EquipmentCache>[]),
    'CarConfiguratorResponse': TypeInfo(TypeOf.Class, create:() => CarConfiguratorResponse()),
    'UpdateCarConfiguratorRequest': TypeInfo(TypeOf.Class, create:() => UpdateCarConfiguratorRequest()),
});

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

PUT /v1/configurator HTTP/1.1 
Host: prod-api-agency-orch-mb-dhc.rapp-customers.co.uk 
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length

{"ConfiguratorCode":"String","Guid":"00000000000000000000000000000000"}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"Name":"String","KeyInformation":{"BM7NST":"String","ConfigurationDate":"String","ModelYear":"String","HalfYear":"String"},"OrderingOptions":{"Interior":["String"],"Exterior":["String"],"Options":["String"],"WheelOptions":[{"Code":"String","Description":"String","StandardFlag":"String","Price":0,"Category":"String","Importance":"String"}],"TrimOptions":[{"Code":"String","Description":"String","StandardFlag":"String","Price":0,"Category":"String","Importance":"String"}],"OptionCodes":[{"Code":"String","Description":"String","StandardFlag":"String","Price":0,"Category":"String","Importance":"String"}]},"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"ConfiguratorCode":"String"}