Requires the role: | Admin | Requires the permission: | ReadData |
POST | /borgunServices/Finish3DProcess | 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 BorgunServices3DFinishProcessResponse implements IConvertible
{
BorgunFinal3DResponse? response;
bool? success;
int? httpStatusCode;
String? message;
BorgunServices3DFinishProcessResponse({this.response,this.success,this.httpStatusCode,this.message});
BorgunServices3DFinishProcessResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
response = JsonConverters.fromJson(json['response'],'BorgunFinal3DResponse',context!);
success = json['success'];
httpStatusCode = json['httpStatusCode'];
message = json['message'];
return this;
}
Map<String, dynamic> toJson() => {
'response': JsonConverters.toJson(response,'BorgunFinal3DResponse',context!),
'success': success,
'httpStatusCode': httpStatusCode,
'message': message
};
getTypeName() => "BorgunServices3DFinishProcessResponse";
TypeContext? context = _ctx;
}
class Borgun3DFinalPaymentMethodInfo implements IConvertible
{
String? paymentType;
String? token;
Borgun3DFinalPaymentMethodInfo({this.paymentType,this.token});
Borgun3DFinalPaymentMethodInfo.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
paymentType = json['paymentType'];
token = json['token'];
return this;
}
Map<String, dynamic> toJson() => {
'paymentType': paymentType,
'token': token
};
getTypeName() => "Borgun3DFinalPaymentMethodInfo";
TypeContext? context = _ctx;
}
class Borgun3DFinal3DSecureInfo implements IConvertible
{
String? dataType;
String? mpiToken;
Borgun3DFinal3DSecureInfo({this.dataType,this.mpiToken});
Borgun3DFinal3DSecureInfo.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
dataType = json['dataType'];
mpiToken = json['mpiToken'];
return this;
}
Map<String, dynamic> toJson() => {
'dataType': dataType,
'mpiToken': mpiToken
};
getTypeName() => "Borgun3DFinal3DSecureInfo";
TypeContext? context = _ctx;
}
class Borgun3DFinalRequest implements IConvertible
{
String? transactionType;
int? amount;
String? currency;
DateTime? transactionDate;
String? orderId;
Borgun3DFinalPaymentMethodInfo? paymentMethod;
Borgun3DFinal3DSecureInfo? threeDSecure;
Borgun3DFinalRequest({this.transactionType,this.amount,this.currency,this.transactionDate,this.orderId,this.paymentMethod,this.threeDSecure});
Borgun3DFinalRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
transactionType = json['transactionType'];
amount = json['amount'];
currency = json['currency'];
transactionDate = JsonConverters.fromJson(json['transactionDate'],'DateTime',context!);
orderId = json['orderId'];
paymentMethod = JsonConverters.fromJson(json['paymentMethod'],'Borgun3DFinalPaymentMethodInfo',context!);
threeDSecure = JsonConverters.fromJson(json['threeDSecure'],'Borgun3DFinal3DSecureInfo',context!);
return this;
}
Map<String, dynamic> toJson() => {
'transactionType': transactionType,
'amount': amount,
'currency': currency,
'transactionDate': JsonConverters.toJson(transactionDate,'DateTime',context!),
'orderId': orderId,
'paymentMethod': JsonConverters.toJson(paymentMethod,'Borgun3DFinalPaymentMethodInfo',context!),
'threeDSecure': JsonConverters.toJson(threeDSecure,'Borgun3DFinal3DSecureInfo',context!)
};
getTypeName() => "Borgun3DFinalRequest";
TypeContext? context = _ctx;
}
class BorgunServices3DFinishProcessRequest implements IConvertible
{
Borgun3DFinalRequest? request;
BorgunServices3DFinishProcessRequest({this.request});
BorgunServices3DFinishProcessRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
request = JsonConverters.fromJson(json['request'],'Borgun3DFinalRequest',context!);
return this;
}
Map<String, dynamic> toJson() => {
'request': JsonConverters.toJson(request,'Borgun3DFinalRequest',context!)
};
getTypeName() => "BorgunServices3DFinishProcessRequest";
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()),
'BorgunServices3DFinishProcessResponse': TypeInfo(TypeOf.Class, create:() => BorgunServices3DFinishProcessResponse()),
'Borgun3DFinalPaymentMethodInfo': TypeInfo(TypeOf.Class, create:() => Borgun3DFinalPaymentMethodInfo()),
'Borgun3DFinal3DSecureInfo': TypeInfo(TypeOf.Class, create:() => Borgun3DFinal3DSecureInfo()),
'Borgun3DFinalRequest': TypeInfo(TypeOf.Class, create:() => Borgun3DFinalRequest()),
'BorgunServices3DFinishProcessRequest': TypeInfo(TypeOf.Class, create:() => BorgunServices3DFinishProcessRequest()),
});
Dart BorgunServices3DFinishProcessRequest 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 /borgunServices/Finish3DProcess HTTP/1.1
Host: stubbur-autoupdates-live.smartnewapis.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
request:
{
transactionType: String,
amount: 0,
currency: String,
transactionDate: 0001-01-01,
orderId: String,
paymentMethod:
{
paymentType: String,
token: String
},
threeDSecure:
{
dataType: String,
mpiToken: String
}
}
}
HTTP/1.1 200 OK Content-Type: text/jsv Content-Length: length { response: { transactionId: String, transactionType: String, amount: 0, currency: String, transactionDate: 0001-01-01, 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 }, success: False, httpStatusCode: 0, message: String }