Requires the role: | Admin | Requires the permission: | ReadData |
POST | /borgunTest3D/Enrollment | Test 3D |
---|
import 'package:servicestack/servicestack.dart';
class BorgunMPIEnrollmentACSField implements IConvertible
{
String? name;
String? values;
BorgunMPIEnrollmentACSField({this.name,this.values});
BorgunMPIEnrollmentACSField.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
name = json['name'];
values = json['values'];
return this;
}
Map<String, dynamic> toJson() => {
'name': name,
'values': values
};
getTypeName() => "BorgunMPIEnrollmentACSField";
TypeContext? context = _ctx;
}
class Borgun3DEnrollmentResponse implements IConvertible
{
int? resultStatus;
String? messageId;
String? enrollmentStatus;
String? mdErrorMessage;
String? mdStatus;
String? redirectToACSForm;
String? md;
String? mpiToken;
List<BorgunMPIEnrollmentACSField>? redirectToACSDAta;
Borgun3DEnrollmentResponse({this.resultStatus,this.messageId,this.enrollmentStatus,this.mdErrorMessage,this.mdStatus,this.redirectToACSForm,this.md,this.mpiToken,this.redirectToACSDAta});
Borgun3DEnrollmentResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
resultStatus = json['resultStatus'];
messageId = json['messageId'];
enrollmentStatus = json['enrollmentStatus'];
mdErrorMessage = json['mdErrorMessage'];
mdStatus = json['mdStatus'];
redirectToACSForm = json['redirectToACSForm'];
md = json['md'];
mpiToken = json['mpiToken'];
redirectToACSDAta = JsonConverters.fromJson(json['redirectToACSDAta'],'List<BorgunMPIEnrollmentACSField>',context!);
return this;
}
Map<String, dynamic> toJson() => {
'resultStatus': resultStatus,
'messageId': messageId,
'enrollmentStatus': enrollmentStatus,
'mdErrorMessage': mdErrorMessage,
'mdStatus': mdStatus,
'redirectToACSForm': redirectToACSForm,
'md': md,
'mpiToken': mpiToken,
'redirectToACSDAta': JsonConverters.toJson(redirectToACSDAta,'List<BorgunMPIEnrollmentACSField>',context!)
};
getTypeName() => "Borgun3DEnrollmentResponse";
TypeContext? context = _ctx;
}
class BorgunTest3DEnrollmentResponse implements IConvertible
{
int? statusCode;
String? message;
Borgun3DEnrollmentResponse? response;
String? forcedPath;
String? forcedJSONRequest;
String? jsonRequest;
String? jsonResponse;
String? requestPath;
String? requestSent;
String? requestReceived;
BorgunTest3DEnrollmentResponse({this.statusCode,this.message,this.response,this.forcedPath,this.forcedJSONRequest,this.jsonRequest,this.jsonResponse,this.requestPath,this.requestSent,this.requestReceived});
BorgunTest3DEnrollmentResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
statusCode = json['statusCode'];
message = json['message'];
response = JsonConverters.fromJson(json['response'],'Borgun3DEnrollmentResponse',context!);
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() => {
'statusCode': statusCode,
'message': message,
'response': JsonConverters.toJson(response,'Borgun3DEnrollmentResponse',context!),
'forcedPath': forcedPath,
'forcedJSONRequest': forcedJSONRequest,
'jsonRequest': jsonRequest,
'jsonResponse': jsonResponse,
'requestPath': requestPath,
'requestSent': requestSent,
'requestReceived': requestReceived
};
getTypeName() => "BorgunTest3DEnrollmentResponse";
TypeContext? context = _ctx;
}
enum BorgunPaymentTypes
{
Unknown,
Card,
TokenSingle,
TokenMulti,
}
class BorgunPaymentRequestMethod implements IConvertible
{
BorgunPaymentTypes? paymentType;
String? pan;
String? expYear;
String? expMonth;
String? cvC2;
String? token;
BorgunPaymentRequestMethod({this.paymentType,this.pan,this.expYear,this.expMonth,this.cvC2,this.token});
BorgunPaymentRequestMethod.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
paymentType = JsonConverters.fromJson(json['paymentType'],'BorgunPaymentTypes',context!);
pan = json['pan'];
expYear = json['expYear'];
expMonth = json['expMonth'];
cvC2 = json['cvC2'];
token = json['token'];
return this;
}
Map<String, dynamic> toJson() => {
'paymentType': JsonConverters.toJson(paymentType,'BorgunPaymentTypes',context!),
'pan': pan,
'expYear': expYear,
'expMonth': expMonth,
'cvC2': cvC2,
'token': token
};
getTypeName() => "BorgunPaymentRequestMethod";
TypeContext? context = _ctx;
}
class Borgun3DEnrollmentRequest implements IConvertible
{
BorgunPaymentRequestMethod? cardDetails;
int? purchAmount;
int? exponent;
String? currency;
String? termURL;
DateTime? transactionDate;
String? md;
String? description;
Borgun3DEnrollmentRequest({this.cardDetails,this.purchAmount,this.exponent,this.currency,this.termURL,this.transactionDate,this.md,this.description});
Borgun3DEnrollmentRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
cardDetails = JsonConverters.fromJson(json['cardDetails'],'BorgunPaymentRequestMethod',context!);
purchAmount = json['purchAmount'];
exponent = json['exponent'];
currency = json['currency'];
termURL = json['termURL'];
transactionDate = JsonConverters.fromJson(json['transactionDate'],'DateTime',context!);
md = json['md'];
description = json['description'];
return this;
}
Map<String, dynamic> toJson() => {
'cardDetails': JsonConverters.toJson(cardDetails,'BorgunPaymentRequestMethod',context!),
'purchAmount': purchAmount,
'exponent': exponent,
'currency': currency,
'termURL': termURL,
'transactionDate': JsonConverters.toJson(transactionDate,'DateTime',context!),
'md': md,
'description': description
};
getTypeName() => "Borgun3DEnrollmentRequest";
TypeContext? context = _ctx;
}
class BorgunTest3DEnrollmentRequest implements IConvertible
{
Borgun3DEnrollmentRequest? request;
String? forcedPath;
String? forcedJSONRequest;
bool? skipBorgunCall;
BorgunTest3DEnrollmentRequest({this.request,this.forcedPath,this.forcedJSONRequest,this.skipBorgunCall});
BorgunTest3DEnrollmentRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
request = JsonConverters.fromJson(json['request'],'Borgun3DEnrollmentRequest',context!);
forcedPath = json['forcedPath'];
forcedJSONRequest = json['forcedJSONRequest'];
skipBorgunCall = json['skipBorgunCall'];
return this;
}
Map<String, dynamic> toJson() => {
'request': JsonConverters.toJson(request,'Borgun3DEnrollmentRequest',context!),
'forcedPath': forcedPath,
'forcedJSONRequest': forcedJSONRequest,
'skipBorgunCall': skipBorgunCall
};
getTypeName() => "BorgunTest3DEnrollmentRequest";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'stubbur_autoupdates_live.smartnewapis.com', types: <String, TypeInfo> {
'BorgunMPIEnrollmentACSField': TypeInfo(TypeOf.Class, create:() => BorgunMPIEnrollmentACSField()),
'Borgun3DEnrollmentResponse': TypeInfo(TypeOf.Class, create:() => Borgun3DEnrollmentResponse()),
'List<BorgunMPIEnrollmentACSField>': TypeInfo(TypeOf.Class, create:() => <BorgunMPIEnrollmentACSField>[]),
'BorgunTest3DEnrollmentResponse': TypeInfo(TypeOf.Class, create:() => BorgunTest3DEnrollmentResponse()),
'BorgunPaymentTypes': TypeInfo(TypeOf.Enum, enumValues:BorgunPaymentTypes.values),
'BorgunPaymentRequestMethod': TypeInfo(TypeOf.Class, create:() => BorgunPaymentRequestMethod()),
'Borgun3DEnrollmentRequest': TypeInfo(TypeOf.Class, create:() => Borgun3DEnrollmentRequest()),
'BorgunTest3DEnrollmentRequest': TypeInfo(TypeOf.Class, create:() => BorgunTest3DEnrollmentRequest()),
});
Dart BorgunTest3DEnrollmentRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /borgunTest3D/Enrollment HTTP/1.1
Host: stubbur-autoupdates-live.smartnewapis.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
request:
{
cardDetails:
{
paymentType: Unknown,
pan: String,
expYear: String,
expMonth: String,
cvC2: String,
token: String
},
purchAmount: 0,
exponent: 0,
currency: String,
termURL: String,
transactionDate: 0001-01-01,
md: String,
description: String
},
forcedPath: String,
forcedJSONRequest: String,
skipBorgunCall: False
}
HTTP/1.1 200 OK Content-Type: text/jsv Content-Length: length { statusCode: 0, message: String, response: { resultStatus: 0, messageId: String, enrollmentStatus: String, mdErrorMessage: String, mdStatus: String, redirectToACSForm: String, md: String, mpiToken: String, redirectToACSDAta: [ { name: String, values: String } ] }, forcedPath: String, forcedJSONRequest: String, jsonRequest: String, jsonResponse: String, requestPath: String, requestSent: String, requestReceived: String }