RAPP.Mercedes.VanCustomerAccount.Api

<back to all web services

Delete

The following routes are available for this service:
POST/delete/
import 'package:servicestack/servicestack.dart';

class ReturnStatus implements IConvertible
{
    String? ReturnCode;
    String? Message;

    ReturnStatus({this.ReturnCode,this.Message});
    ReturnStatus.fromJson(Map<String, dynamic> json) { fromMap(json); }

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

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

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

class DeleteResponse implements IConvertible
{
    ReturnStatus? Status;

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

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

    Map<String, dynamic> toJson() => {
        'Status': JsonConverters.toJson(Status,'ReturnStatus',context!)
    };

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

class Delete implements IConvertible
{
    String? CiamId;
    String? FirstName;
    String? LastName;
    String? EmailAddress;
    String? MobileTelephoneNumber;

    Delete({this.CiamId,this.FirstName,this.LastName,this.EmailAddress,this.MobileTelephoneNumber});
    Delete.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        CiamId = json['CiamId'];
        FirstName = json['FirstName'];
        LastName = json['LastName'];
        EmailAddress = json['EmailAddress'];
        MobileTelephoneNumber = json['MobileTelephoneNumber'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'CiamId': CiamId,
        'FirstName': FirstName,
        'LastName': LastName,
        'EmailAddress': EmailAddress,
        'MobileTelephoneNumber': MobileTelephoneNumber
    };

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

TypeContext _ctx = TypeContext(library: 'webservices.mbukdatabase.co.uk', types: <String, TypeInfo> {
    'ReturnStatus': TypeInfo(TypeOf.Class, create:() => ReturnStatus()),
    'DeleteResponse': TypeInfo(TypeOf.Class, create:() => DeleteResponse()),
    'Delete': TypeInfo(TypeOf.Class, create:() => Delete()),
});

Dart Delete DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /delete/ HTTP/1.1 
Host: webservices.mbukdatabase.co.uk 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"CiamId":"String","FirstName":"String","LastName":"String","EmailAddress":"String","MobileTelephoneNumber":"String"}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"Status":{"ReturnCode":"String","Message":"String"}}