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 .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/Enrollment HTTP/1.1
Host: stubbur-autoupdates-live.smartnewapis.com
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<BorgunTest3DEnrollmentRequest 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:CardDetails>
<d2p1:CVC2>String</d2p1:CVC2>
<d2p1:ExpMonth>String</d2p1:ExpMonth>
<d2p1:ExpYear>String</d2p1:ExpYear>
<d2p1:PAN>String</d2p1:PAN>
<d2p1:PaymentType>Unknown</d2p1:PaymentType>
<d2p1:Token>String</d2p1:Token>
</d2p1:CardDetails>
<d2p1:Currency>String</d2p1:Currency>
<d2p1:Description>String</d2p1:Description>
<d2p1:Exponent>0</d2p1:Exponent>
<d2p1:MD>String</d2p1:MD>
<d2p1:PurchAmount>0</d2p1:PurchAmount>
<d2p1:TermURL>String</d2p1:TermURL>
<d2p1:TransactionDate>0001-01-01T00:00:00</d2p1:TransactionDate>
</Request>
<SkipBorgunCall>false</SkipBorgunCall>
</BorgunTest3DEnrollmentRequest>
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <BorgunTest3DEnrollmentResponse 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:EnrollmentStatus>String</d2p1:EnrollmentStatus> <d2p1:MD>String</d2p1:MD> <d2p1:MdErrorMessage>String</d2p1:MdErrorMessage> <d2p1:MdStatus>String</d2p1:MdStatus> <d2p1:MessageId>String</d2p1:MessageId> <d2p1:MpiToken>String</d2p1:MpiToken> <d2p1:RedirectToACSDAta> <d2p1:BorgunMPIEnrollmentACSField> <d2p1:Name>String</d2p1:Name> <d2p1:Values>String</d2p1:Values> </d2p1:BorgunMPIEnrollmentACSField> </d2p1:RedirectToACSDAta> <d2p1:RedirectToACSForm>String</d2p1:RedirectToACSForm> <d2p1:ResultStatus>0</d2p1:ResultStatus> </Response> <StatusCode>0</StatusCode> </BorgunTest3DEnrollmentResponse>