CDD Engine Web Service v2.14.0.0

<back to all web services

CDDResponseRequest

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

class CDDResponseRequest implements IConvertible
{
    String? ApplicationGUID;

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

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

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

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

class EventResponse implements IConvertible
{
    String? ApplicationGUID;
    String? AuditFileID;
    String? ResponseDesc;
    String? ReportURL;
    String? EventType;
    DateTime? DateChecked;
    int? CDDCheckID;
    int? StatusCode;

    EventResponse({this.ApplicationGUID,this.AuditFileID,this.ResponseDesc,this.ReportURL,this.EventType,this.DateChecked,this.CDDCheckID,this.StatusCode});
    EventResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }

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

    Map<String, dynamic> toJson() => {
        'ApplicationGUID': ApplicationGUID,
        'AuditFileID': AuditFileID,
        'ResponseDesc': ResponseDesc,
        'ReportURL': ReportURL,
        'EventType': EventType,
        'DateChecked': JsonConverters.toJson(DateChecked,'DateTime',context!),
        'CDDCheckID': CDDCheckID,
        'StatusCode': StatusCode
    };

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

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

Dart CDDResponseRequest DTOs

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

HTTP + CSV

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

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

{"ApplicationGUID":"String"}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"ApplicationGUID":"String","AuditFileID":"String","ResponseDesc":"String","ReportURL":"String","EventType":"String","DateChecked":"\/Date(-62135596800000-0000)\/","CDDCheckID":0,"StatusCode":0}