Requires the role: | Admin | Requires the permission: | ReadData |
POST | /borgunTest3D/ResVerification | Test 3D |
---|
import 'package:servicestack/servicestack.dart';
class BorgunResValidationResponse implements IConvertible
{
String? xId;
String? mdStatus;
String? mdErrorMessage;
String? enrollmentStatus;
String? authenticationStatus;
String? eci;
String? cavv;
String? cavvAlgorithm;
String? paResVerified;
String? paResSyntaxOK;
BorgunResValidationResponse({this.xId,this.mdStatus,this.mdErrorMessage,this.enrollmentStatus,this.authenticationStatus,this.eci,this.cavv,this.cavvAlgorithm,this.paResVerified,this.paResSyntaxOK});
BorgunResValidationResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
xId = json['xId'];
mdStatus = json['mdStatus'];
mdErrorMessage = json['mdErrorMessage'];
enrollmentStatus = json['enrollmentStatus'];
authenticationStatus = json['authenticationStatus'];
eci = json['eci'];
cavv = json['cavv'];
cavvAlgorithm = json['cavvAlgorithm'];
paResVerified = json['paResVerified'];
paResSyntaxOK = json['paResSyntaxOK'];
return this;
}
Map<String, dynamic> toJson() => {
'xId': xId,
'mdStatus': mdStatus,
'mdErrorMessage': mdErrorMessage,
'enrollmentStatus': enrollmentStatus,
'authenticationStatus': authenticationStatus,
'eci': eci,
'cavv': cavv,
'cavvAlgorithm': cavvAlgorithm,
'paResVerified': paResVerified,
'paResSyntaxOK': paResSyntaxOK
};
getTypeName() => "BorgunResValidationResponse";
TypeContext? context = _ctx;
}
class BorgunTest3DVerificationResponse implements IConvertible
{
BorgunResValidationResponse? response;
int? statusCode;
String? message;
String? forcedPath;
String? forcedJSONRequest;
String? jsonRequest;
String? jsonResponse;
String? requestPath;
String? requestSent;
String? requestReceived;
BorgunTest3DVerificationResponse({this.response,this.statusCode,this.message,this.forcedPath,this.forcedJSONRequest,this.jsonRequest,this.jsonResponse,this.requestPath,this.requestSent,this.requestReceived});
BorgunTest3DVerificationResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
response = JsonConverters.fromJson(json['response'],'BorgunResValidationResponse',context!);
statusCode = json['statusCode'];
message = json['message'];
forcedPath = json['forcedPath'];
forcedJSONRequest = json['forcedJSONRequest'];
jsonRequest = json['jsonRequest'];
jsonResponse = json['jsonResponse'];
requestPath = json['requestPath'];
requestSent = json['requestSent'];
requestReceived = json['requestReceived'];
return this;
}
Map<String, dynamic> toJson() => {
'response': JsonConverters.toJson(response,'BorgunResValidationResponse',context!),
'statusCode': statusCode,
'message': message,
'forcedPath': forcedPath,
'forcedJSONRequest': forcedJSONRequest,
'jsonRequest': jsonRequest,
'jsonResponse': jsonResponse,
'requestPath': requestPath,
'requestSent': requestSent,
'requestReceived': requestReceived
};
getTypeName() => "BorgunTest3DVerificationResponse";
TypeContext? context = _ctx;
}
class BorgunResValidationRequest implements IConvertible
{
String? paRes;
String? cRes;
String? md;
BorgunResValidationRequest({this.paRes,this.cRes,this.md});
BorgunResValidationRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
paRes = json['paRes'];
cRes = json['cRes'];
md = json['md'];
return this;
}
Map<String, dynamic> toJson() => {
'paRes': paRes,
'cRes': cRes,
'md': md
};
getTypeName() => "BorgunResValidationRequest";
TypeContext? context = _ctx;
}
class BorgunTest3DVerificationRequest implements IConvertible
{
BorgunResValidationRequest? request;
String? forcedPath;
String? forcedJSONRequest;
bool? skipBorgunCall;
BorgunTest3DVerificationRequest({this.request,this.forcedPath,this.forcedJSONRequest,this.skipBorgunCall});
BorgunTest3DVerificationRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
request = JsonConverters.fromJson(json['request'],'BorgunResValidationRequest',context!);
forcedPath = json['forcedPath'];
forcedJSONRequest = json['forcedJSONRequest'];
skipBorgunCall = json['skipBorgunCall'];
return this;
}
Map<String, dynamic> toJson() => {
'request': JsonConverters.toJson(request,'BorgunResValidationRequest',context!),
'forcedPath': forcedPath,
'forcedJSONRequest': forcedJSONRequest,
'skipBorgunCall': skipBorgunCall
};
getTypeName() => "BorgunTest3DVerificationRequest";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'stubbur_autoupdates_live.smartnewapis.com', types: <String, TypeInfo> {
'BorgunResValidationResponse': TypeInfo(TypeOf.Class, create:() => BorgunResValidationResponse()),
'BorgunTest3DVerificationResponse': TypeInfo(TypeOf.Class, create:() => BorgunTest3DVerificationResponse()),
'BorgunResValidationRequest': TypeInfo(TypeOf.Class, create:() => BorgunResValidationRequest()),
'BorgunTest3DVerificationRequest': TypeInfo(TypeOf.Class, create:() => BorgunTest3DVerificationRequest()),
});
Dart BorgunTest3DVerificationRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /borgunTest3D/ResVerification HTTP/1.1
Host: stubbur-autoupdates-live.smartnewapis.com
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{"request":{"paRes":"String","cRes":"String","md":"String"},"forcedPath":"String","forcedJSONRequest":"String","skipBorgunCall":false}
HTTP/1.1 200 OK Content-Type: text/csv Content-Length: length {"response":{"xId":"String","mdStatus":"String","mdErrorMessage":"String","enrollmentStatus":"String","authenticationStatus":"String","eci":"String","cavv":"String","cavvAlgorithm":"String","paResVerified":"String","paResSyntaxOK":"String"},"statusCode":0,"message":"String","forcedPath":"String","forcedJSONRequest":"String","jsonRequest":"String","jsonResponse":"String","requestPath":"String","requestSent":"String","requestReceived":"String"}