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 .xml suffix or ?format=xml
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: application/xml
Content-Type: application/xml
Content-Length: length
<BorgunTest3DVerificationRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
<ForcedJSONRequest>String</ForcedJSONRequest>
<ForcedPath>String</ForcedPath>
<Request xmlns:d2p1="http://schemas.datacontract.org/2004/07/BorgunRPGData">
<d2p1:CRes>String</d2p1:CRes>
<d2p1:MD>String</d2p1:MD>
<d2p1:PaRes>String</d2p1:PaRes>
</Request>
<SkipBorgunCall>false</SkipBorgunCall>
</BorgunTest3DVerificationRequest>
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <BorgunTest3DVerificationResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel"> <ForcedJSONRequest>String</ForcedJSONRequest> <ForcedPath>String</ForcedPath> <JSONRequest>String</JSONRequest> <JSONResponse>String</JSONResponse> <Message>String</Message> <RequestPath>String</RequestPath> <RequestReceived>String</RequestReceived> <RequestSent>String</RequestSent> <Response xmlns:d2p1="http://schemas.datacontract.org/2004/07/BorgunRPGData"> <d2p1:AuthenticationStatus>String</d2p1:AuthenticationStatus> <d2p1:CAVV>String</d2p1:CAVV> <d2p1:CAVVAlgorithm>String</d2p1:CAVVAlgorithm> <d2p1:ECI>String</d2p1:ECI> <d2p1:EnrollmentStatus>String</d2p1:EnrollmentStatus> <d2p1:MdErrorMessage>String</d2p1:MdErrorMessage> <d2p1:MdStatus>String</d2p1:MdStatus> <d2p1:PAResSyntaxOK>String</d2p1:PAResSyntaxOK> <d2p1:PAResVerified>String</d2p1:PAResVerified> <d2p1:XId>String</d2p1:XId> </Response> <StatusCode>0</StatusCode> </BorgunTest3DVerificationResponse>