Requires the role: | Admin | Requires the permission: | ReadData |
POST | /borgunTest3D/Finish3DProcessShortVersion | Test 3D |
---|
import 'package:servicestack/servicestack.dart';
class BorgunPaymentMethodInfo implements IConvertible
{
String? paymentType;
String? pan;
String? token;
String? cardType;
String? isDebit;
BorgunPaymentMethodInfo({this.paymentType,this.pan,this.token,this.cardType,this.isDebit});
BorgunPaymentMethodInfo.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
paymentType = json['paymentType'];
pan = json['pan'];
token = json['token'];
cardType = json['cardType'];
isDebit = json['isDebit'];
return this;
}
Map<String, dynamic> toJson() => {
'paymentType': paymentType,
'pan': pan,
'token': token,
'cardType': cardType,
'isDebit': isDebit
};
getTypeName() => "BorgunPaymentMethodInfo";
TypeContext? context = _ctx;
}
class Borgun3DSecureInfo implements IConvertible
{
String? securityLevelInd;
String? xid;
Borgun3DSecureInfo({this.securityLevelInd,this.xid});
Borgun3DSecureInfo.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
securityLevelInd = json['securityLevelInd'];
xid = json['xid'];
return this;
}
Map<String, dynamic> toJson() => {
'securityLevelInd': securityLevelInd,
'xid': xid
};
getTypeName() => "Borgun3DSecureInfo";
TypeContext? context = _ctx;
}
class BorgunFinal3DResponse implements IConvertible
{
String? transactionId;
String? transactionType;
int? amount;
String? currency;
DateTime? transactionDate;
String? oorderId;
String? authCode;
String? actionCode;
String? transactionStatus;
BorgunPaymentMethodInfo? paymentMethod;
Borgun3DSecureInfo? threeDSecure;
String? lifeCycleId;
BorgunFinal3DResponse({this.transactionId,this.transactionType,this.amount,this.currency,this.transactionDate,this.oorderId,this.authCode,this.actionCode,this.transactionStatus,this.paymentMethod,this.threeDSecure,this.lifeCycleId});
BorgunFinal3DResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
transactionId = json['transactionId'];
transactionType = json['transactionType'];
amount = json['amount'];
currency = json['currency'];
transactionDate = JsonConverters.fromJson(json['transactionDate'],'DateTime',context!);
oorderId = json['oorderId'];
authCode = json['authCode'];
actionCode = json['actionCode'];
transactionStatus = json['transactionStatus'];
paymentMethod = JsonConverters.fromJson(json['paymentMethod'],'BorgunPaymentMethodInfo',context!);
threeDSecure = JsonConverters.fromJson(json['threeDSecure'],'Borgun3DSecureInfo',context!);
lifeCycleId = json['lifeCycleId'];
return this;
}
Map<String, dynamic> toJson() => {
'transactionId': transactionId,
'transactionType': transactionType,
'amount': amount,
'currency': currency,
'transactionDate': JsonConverters.toJson(transactionDate,'DateTime',context!),
'oorderId': oorderId,
'authCode': authCode,
'actionCode': actionCode,
'transactionStatus': transactionStatus,
'paymentMethod': JsonConverters.toJson(paymentMethod,'BorgunPaymentMethodInfo',context!),
'threeDSecure': JsonConverters.toJson(threeDSecure,'Borgun3DSecureInfo',context!),
'lifeCycleId': lifeCycleId
};
getTypeName() => "BorgunFinal3DResponse";
TypeContext? context = _ctx;
}
class BorgunTest3DFinishProcessResponse implements IConvertible
{
BorgunFinal3DResponse? response;
int? statusCode;
String? message;
String? forcedPath;
String? forcedJSONRequest;
String? jsonRequest;
String? jsonResponse;
String? requestPath;
String? requestSent;
String? requestReceived;
BorgunTest3DFinishProcessResponse({this.response,this.statusCode,this.message,this.forcedPath,this.forcedJSONRequest,this.jsonRequest,this.jsonResponse,this.requestPath,this.requestSent,this.requestReceived});
BorgunTest3DFinishProcessResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
response = JsonConverters.fromJson(json['response'],'BorgunFinal3DResponse',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,'BorgunFinal3DResponse',context!),
'statusCode': statusCode,
'message': message,
'forcedPath': forcedPath,
'forcedJSONRequest': forcedJSONRequest,
'jsonRequest': jsonRequest,
'jsonResponse': jsonResponse,
'requestPath': requestPath,
'requestSent': requestSent,
'requestReceived': requestReceived
};
getTypeName() => "BorgunTest3DFinishProcessResponse";
TypeContext? context = _ctx;
}
class Borgun3DFinalRequestShortVersion implements IConvertible
{
int? amount;
String? mpiToken;
String? orderId;
String? token;
Borgun3DFinalRequestShortVersion({this.amount,this.mpiToken,this.orderId,this.token});
Borgun3DFinalRequestShortVersion.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
amount = json['amount'];
mpiToken = json['mpiToken'];
orderId = json['orderId'];
token = json['token'];
return this;
}
Map<String, dynamic> toJson() => {
'amount': amount,
'mpiToken': mpiToken,
'orderId': orderId,
'token': token
};
getTypeName() => "Borgun3DFinalRequestShortVersion";
TypeContext? context = _ctx;
}
class BorgunTest3DFinishProcessRequestShortVersion implements IConvertible
{
Borgun3DFinalRequestShortVersion? request;
String? forcedPath;
String? forcedJSONRequest;
bool? skipBorgunCall;
BorgunTest3DFinishProcessRequestShortVersion({this.request,this.forcedPath,this.forcedJSONRequest,this.skipBorgunCall});
BorgunTest3DFinishProcessRequestShortVersion.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
request = JsonConverters.fromJson(json['request'],'Borgun3DFinalRequestShortVersion',context!);
forcedPath = json['forcedPath'];
forcedJSONRequest = json['forcedJSONRequest'];
skipBorgunCall = json['skipBorgunCall'];
return this;
}
Map<String, dynamic> toJson() => {
'request': JsonConverters.toJson(request,'Borgun3DFinalRequestShortVersion',context!),
'forcedPath': forcedPath,
'forcedJSONRequest': forcedJSONRequest,
'skipBorgunCall': skipBorgunCall
};
getTypeName() => "BorgunTest3DFinishProcessRequestShortVersion";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'stubbur_autoupdates_live.smartnewapis.com', types: <String, TypeInfo> {
'BorgunPaymentMethodInfo': TypeInfo(TypeOf.Class, create:() => BorgunPaymentMethodInfo()),
'Borgun3DSecureInfo': TypeInfo(TypeOf.Class, create:() => Borgun3DSecureInfo()),
'BorgunFinal3DResponse': TypeInfo(TypeOf.Class, create:() => BorgunFinal3DResponse()),
'BorgunTest3DFinishProcessResponse': TypeInfo(TypeOf.Class, create:() => BorgunTest3DFinishProcessResponse()),
'Borgun3DFinalRequestShortVersion': TypeInfo(TypeOf.Class, create:() => Borgun3DFinalRequestShortVersion()),
'BorgunTest3DFinishProcessRequestShortVersion': TypeInfo(TypeOf.Class, create:() => BorgunTest3DFinishProcessRequestShortVersion()),
});
Dart BorgunTest3DFinishProcessRequestShortVersion DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /borgunTest3D/Finish3DProcessShortVersion HTTP/1.1
Host: stubbur-autoupdates-live.smartnewapis.com
Accept: application/json
Content-Type: application/json
Content-Length: length
{"request":{"amount":0,"mpiToken":"String","orderId":"String","token":"String"},"forcedPath":"String","forcedJSONRequest":"String","skipBorgunCall":false}
HTTP/1.1 200 OK Content-Type: application/json Content-Length: length {"response":{"transactionId":"String","transactionType":"String","amount":0,"currency":"String","transactionDate":"0001-01-01T00:00:00.0000000","oorderId":"String","authCode":"String","actionCode":"String","transactionStatus":"String","paymentMethod":{"paymentType":"String","pan":"String","token":"String","cardType":"String","isDebit":"String"},"threeDSecure":{"securityLevelInd":"String","xid":"String"},"lifeCycleId":"String"},"statusCode":0,"message":"String","forcedPath":"String","forcedJSONRequest":"String","jsonRequest":"String","jsonResponse":"String","requestPath":"String","requestSent":"String","requestReceived":"String"}