Requires the role: | Admin | Requires the permission: | ReadData |
POST | /borgunTest3D/Token/Single | Test 3D |
---|
import 'package:servicestack/servicestack.dart';
class BorgunVerifyCardResult implements IConvertible
{
String? transactionId;
String? actionCode;
BorgunVerifyCardResult({this.transactionId,this.actionCode});
BorgunVerifyCardResult.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
transactionId = json['transactionId'];
actionCode = json['actionCode'];
return this;
}
Map<String, dynamic> toJson() => {
'transactionId': transactionId,
'actionCode': actionCode
};
getTypeName() => "BorgunVerifyCardResult";
TypeContext? context = _ctx;
}
class BorgunMetadata implements IConvertible
{
String? payload;
BorgunMetadata({this.payload});
BorgunMetadata.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
payload = json['payload'];
return this;
}
Map<String, dynamic> toJson() => {
'payload': payload
};
getTypeName() => "BorgunMetadata";
TypeContext? context = _ctx;
}
class BorgunTokenSingleInfo implements IConvertible
{
String? virtualNumber;
String? token;
String? pan;
String? expYear;
String? expMonth;
bool? enabled;
BorgunVerifyCardResult? verifyCardResult;
BorgunMetadata? metadata;
BorgunTokenSingleInfo({this.virtualNumber,this.token,this.pan,this.expYear,this.expMonth,this.enabled,this.verifyCardResult,this.metadata});
BorgunTokenSingleInfo.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
virtualNumber = json['virtualNumber'];
token = json['token'];
pan = json['pan'];
expYear = json['expYear'];
expMonth = json['expMonth'];
enabled = json['enabled'];
verifyCardResult = JsonConverters.fromJson(json['verifyCardResult'],'BorgunVerifyCardResult',context!);
metadata = JsonConverters.fromJson(json['metadata'],'BorgunMetadata',context!);
return this;
}
Map<String, dynamic> toJson() => {
'virtualNumber': virtualNumber,
'token': token,
'pan': pan,
'expYear': expYear,
'expMonth': expMonth,
'enabled': enabled,
'verifyCardResult': JsonConverters.toJson(verifyCardResult,'BorgunVerifyCardResult',context!),
'metadata': JsonConverters.toJson(metadata,'BorgunMetadata',context!)
};
getTypeName() => "BorgunTokenSingleInfo";
TypeContext? context = _ctx;
}
class BorgunTokenSingleResponse implements IConvertible
{
int? statusCode;
BorgunTokenSingleInfo? token;
String? uri;
String? message;
BorgunTokenSingleResponse({this.statusCode,this.token,this.uri,this.message});
BorgunTokenSingleResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
statusCode = json['statusCode'];
token = JsonConverters.fromJson(json['token'],'BorgunTokenSingleInfo',context!);
uri = json['uri'];
message = json['message'];
return this;
}
Map<String, dynamic> toJson() => {
'statusCode': statusCode,
'token': JsonConverters.toJson(token,'BorgunTokenSingleInfo',context!),
'uri': uri,
'message': message
};
getTypeName() => "BorgunTokenSingleResponse";
TypeContext? context = _ctx;
}
class BorgunTest3DGetSingleTokenResponse implements IConvertible
{
BorgunTokenSingleResponse? response;
int? statusCode;
String? message;
String? forcedPath;
String? forcedJSONRequest;
String? jsonRequest;
String? jsonResponse;
String? requestPath;
String? requestSent;
String? requestReceived;
BorgunTest3DGetSingleTokenResponse({this.response,this.statusCode,this.message,this.forcedPath,this.forcedJSONRequest,this.jsonRequest,this.jsonResponse,this.requestPath,this.requestSent,this.requestReceived});
BorgunTest3DGetSingleTokenResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
response = JsonConverters.fromJson(json['response'],'BorgunTokenSingleResponse',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,'BorgunTokenSingleResponse',context!),
'statusCode': statusCode,
'message': message,
'forcedPath': forcedPath,
'forcedJSONRequest': forcedJSONRequest,
'jsonRequest': jsonRequest,
'jsonResponse': jsonResponse,
'requestPath': requestPath,
'requestSent': requestSent,
'requestReceived': requestReceived
};
getTypeName() => "BorgunTest3DGetSingleTokenResponse";
TypeContext? context = _ctx;
}
class BorgunVerifyCardRequest implements IConvertible
{
int? checkAmount;
String? currency;
String? cvc;
BorgunVerifyCardRequest({this.checkAmount,this.currency,this.cvc});
BorgunVerifyCardRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
checkAmount = json['checkAmount'];
currency = json['currency'];
cvc = json['cvc'];
return this;
}
Map<String, dynamic> toJson() => {
'checkAmount': checkAmount,
'currency': currency,
'cvc': cvc
};
getTypeName() => "BorgunVerifyCardRequest";
TypeContext? context = _ctx;
}
class BorgunTokenSingleRequest implements IConvertible
{
String? pan;
String? expMonth;
String? expYear;
int? tokenLifetime;
BorgunVerifyCardRequest? verifyCard;
BorgunMetadata? metadata;
BorgunTokenSingleRequest({this.pan,this.expMonth,this.expYear,this.tokenLifetime,this.verifyCard,this.metadata});
BorgunTokenSingleRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
pan = json['pan'];
expMonth = json['expMonth'];
expYear = json['expYear'];
tokenLifetime = json['tokenLifetime'];
verifyCard = JsonConverters.fromJson(json['verifyCard'],'BorgunVerifyCardRequest',context!);
metadata = JsonConverters.fromJson(json['metadata'],'BorgunMetadata',context!);
return this;
}
Map<String, dynamic> toJson() => {
'pan': pan,
'expMonth': expMonth,
'expYear': expYear,
'tokenLifetime': tokenLifetime,
'verifyCard': JsonConverters.toJson(verifyCard,'BorgunVerifyCardRequest',context!),
'metadata': JsonConverters.toJson(metadata,'BorgunMetadata',context!)
};
getTypeName() => "BorgunTokenSingleRequest";
TypeContext? context = _ctx;
}
class BorgunTest3DGetSingleTokenRequest implements IConvertible
{
BorgunTokenSingleRequest? request;
String? forcedPath;
String? forcedJSONRequest;
bool? skipBorgunCall;
BorgunTest3DGetSingleTokenRequest({this.request,this.forcedPath,this.forcedJSONRequest,this.skipBorgunCall});
BorgunTest3DGetSingleTokenRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
request = JsonConverters.fromJson(json['request'],'BorgunTokenSingleRequest',context!);
forcedPath = json['forcedPath'];
forcedJSONRequest = json['forcedJSONRequest'];
skipBorgunCall = json['skipBorgunCall'];
return this;
}
Map<String, dynamic> toJson() => {
'request': JsonConverters.toJson(request,'BorgunTokenSingleRequest',context!),
'forcedPath': forcedPath,
'forcedJSONRequest': forcedJSONRequest,
'skipBorgunCall': skipBorgunCall
};
getTypeName() => "BorgunTest3DGetSingleTokenRequest";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'stubbur_autoupdates_live.smartnewapis.com', types: <String, TypeInfo> {
'BorgunVerifyCardResult': TypeInfo(TypeOf.Class, create:() => BorgunVerifyCardResult()),
'BorgunMetadata': TypeInfo(TypeOf.Class, create:() => BorgunMetadata()),
'BorgunTokenSingleInfo': TypeInfo(TypeOf.Class, create:() => BorgunTokenSingleInfo()),
'BorgunTokenSingleResponse': TypeInfo(TypeOf.Class, create:() => BorgunTokenSingleResponse()),
'BorgunTest3DGetSingleTokenResponse': TypeInfo(TypeOf.Class, create:() => BorgunTest3DGetSingleTokenResponse()),
'BorgunVerifyCardRequest': TypeInfo(TypeOf.Class, create:() => BorgunVerifyCardRequest()),
'BorgunTokenSingleRequest': TypeInfo(TypeOf.Class, create:() => BorgunTokenSingleRequest()),
'BorgunTest3DGetSingleTokenRequest': TypeInfo(TypeOf.Class, create:() => BorgunTest3DGetSingleTokenRequest()),
});
Dart BorgunTest3DGetSingleTokenRequest 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 /borgunTest3D/Token/Single HTTP/1.1
Host: stubbur-autoupdates-live.smartnewapis.com
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{"request":{"pan":"String","expMonth":"String","expYear":"String","tokenLifetime":0,"verifyCard":{"checkAmount":0,"currency":"String","cvc":"String"},"metadata":{"payload":"String"}},"forcedPath":"String","forcedJSONRequest":"String","skipBorgunCall":false}
HTTP/1.1 200 OK Content-Type: text/csv Content-Length: length {"response":{"statusCode":0,"token":{"virtualNumber":"String","token":"String","pan":"String","expYear":"String","expMonth":"String","enabled":false,"verifyCardResult":{"transactionId":"String","actionCode":"String"},"metadata":{"payload":"String"}},"uri":"String","message":"String"},"statusCode":0,"message":"String","forcedPath":"String","forcedJSONRequest":"String","jsonRequest":"String","jsonResponse":"String","requestPath":"String","requestSent":"String","requestReceived":"String"}