CDD Engine Web Service v2.14.0.0

<back to all web services

CDDResponse_RequestAddedForRequest

Requires Authentication
The following routes are available for this service:
POST/response/requestaddedfor
import 'package:servicestack/servicestack.dart';

class CDDResponse_RequestAddedForRequest implements IConvertible
{
    String? ApplicationGUID;
    int? CDDCheckID;

    CDDResponse_RequestAddedForRequest({this.ApplicationGUID,this.CDDCheckID});
    CDDResponse_RequestAddedForRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }

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

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

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

class EventStore implements IConvertible
{
    String? ApplicationGUID;
    int? StatusCode;
    String? CDDEngineAppGUID;
    String? AuditFileID;
    String? Request;
    String? ResponseDesc;
    String? Response;
    DateTime? DateAdded;
    String? AddedBy;
    DateTime? DateChecked;
    int? CDDCheckID;

    EventStore({this.ApplicationGUID,this.StatusCode,this.CDDEngineAppGUID,this.AuditFileID,this.Request,this.ResponseDesc,this.Response,this.DateAdded,this.AddedBy,this.DateChecked,this.CDDCheckID});
    EventStore.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        ApplicationGUID = json['ApplicationGUID'];
        StatusCode = json['StatusCode'];
        CDDEngineAppGUID = json['CDDEngineAppGUID'];
        AuditFileID = json['AuditFileID'];
        Request = json['Request'];
        ResponseDesc = json['ResponseDesc'];
        Response = json['Response'];
        DateAdded = JsonConverters.fromJson(json['DateAdded'],'DateTime',context!);
        AddedBy = json['AddedBy'];
        DateChecked = JsonConverters.fromJson(json['DateChecked'],'DateTime',context!);
        CDDCheckID = json['CDDCheckID'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'ApplicationGUID': ApplicationGUID,
        'StatusCode': StatusCode,
        'CDDEngineAppGUID': CDDEngineAppGUID,
        'AuditFileID': AuditFileID,
        'Request': Request,
        'ResponseDesc': ResponseDesc,
        'Response': Response,
        'DateAdded': JsonConverters.toJson(DateAdded,'DateTime',context!),
        'AddedBy': AddedBy,
        'DateChecked': JsonConverters.toJson(DateChecked,'DateTime',context!),
        'CDDCheckID': CDDCheckID
    };

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

TypeContext _ctx = TypeContext(library: 'wpcdd_featuretest_ws.worldpay.com', types: <String, TypeInfo> {
    'CDDResponse_RequestAddedForRequest': TypeInfo(TypeOf.Class, create:() => CDDResponse_RequestAddedForRequest()),
    'EventStore': TypeInfo(TypeOf.Class, create:() => EventStore()),
});

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

POST /response/requestaddedfor HTTP/1.1 
Host: wpcdd-featuretest-ws.worldpay.com 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	ApplicationGUID: String,
	CDDCheckID: 0
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	ApplicationGUID: String,
	StatusCode: 0,
	CDDEngineAppGUID: String,
	AuditFileID: String,
	Request: String,
	ResponseDesc: String,
	Response: String,
	DateAdded: 0001-01-01,
	AddedBy: String,
	DateChecked: 0001-01-01,
	CDDCheckID: 0
}