Requires the role: | Admin | Requires the permission: | ReadData |
POST | /borgunServices/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 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 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 BorgunServices3DFinishProcessRequestShortVersion implements IConvertible
{
Borgun3DFinalRequestShortVersion? request;
BorgunServices3DFinishProcessRequestShortVersion({this.request});
BorgunServices3DFinishProcessRequestShortVersion.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
request = JsonConverters.fromJson(json['request'],'Borgun3DFinalRequestShortVersion',context!);
return this;
}
Map<String, dynamic> toJson() => {
'request': JsonConverters.toJson(request,'Borgun3DFinalRequestShortVersion',context!)
};
getTypeName() => "BorgunServices3DFinishProcessRequestShortVersion";
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()),
'Borgun3DFinalRequestShortVersion': TypeInfo(TypeOf.Class, create:() => Borgun3DFinalRequestShortVersion()),
'BorgunServices3DFinishProcessRequestShortVersion': TypeInfo(TypeOf.Class, create:() => BorgunServices3DFinishProcessRequestShortVersion()),
});
Dart BorgunServices3DFinishProcessRequestShortVersion DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /borgunServices/Finish3DProcessShortVersion HTTP/1.1
Host: stubbur-autoupdates-live.smartnewapis.com
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{"request":{"amount":0,"mpiToken":"String","orderId":"String","token":"String"}}
HTTP/1.1 200 OK Content-Type: text/csv 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"},"success":false,"httpStatusCode":0,"message":"String"}