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 BorgunTokenMultiInfo implements IConvertible
{
String? virtualNumber;
String? token;
String? pan;
String? expYear;
String? expMonth;
bool? enabled;
BorgunVerifyCardResult? verifyCardResult;
BorgunMetadata? metadata;
BorgunTokenMultiInfo({this.virtualNumber,this.token,this.pan,this.expYear,this.expMonth,this.enabled,this.verifyCardResult,this.metadata});
BorgunTokenMultiInfo.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() => "BorgunTokenMultiInfo";
TypeContext? context = _ctx;
}
class BorgunTokenMultiResponse implements IConvertible
{
int? statusCode;
BorgunTokenMultiInfo? token;
String? uri;
String? message;
BorgunTokenMultiResponse({this.statusCode,this.token,this.uri,this.message});
BorgunTokenMultiResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
statusCode = json['statusCode'];
token = JsonConverters.fromJson(json['token'],'BorgunTokenMultiInfo',context!);
uri = json['uri'];
message = json['message'];
return this;
}
Map<String, dynamic> toJson() => {
'statusCode': statusCode,
'token': JsonConverters.toJson(token,'BorgunTokenMultiInfo',context!),
'uri': uri,
'message': message
};
getTypeName() => "BorgunTokenMultiResponse";
TypeContext? context = _ctx;
}
class BorgunTest3DGetMultiTokenResponse implements IConvertible
{
BorgunTokenMultiResponse? response;
int? statusCode;
String? message;
String? forcedPath;
String? forcedJSONRequest;
String? jsonRequest;
String? jsonResponse;
String? requestPath;
String? requestSent;
String? requestReceived;
BorgunTest3DGetMultiTokenResponse({this.response,this.statusCode,this.message,this.forcedPath,this.forcedJSONRequest,this.jsonRequest,this.jsonResponse,this.requestPath,this.requestSent,this.requestReceived});
BorgunTest3DGetMultiTokenResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
response = JsonConverters.fromJson(json['response'],'BorgunTokenMultiResponse',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,'BorgunTokenMultiResponse',context!),
'statusCode': statusCode,
'message': message,
'forcedPath': forcedPath,
'forcedJSONRequest': forcedJSONRequest,
'jsonRequest': jsonRequest,
'jsonResponse': jsonResponse,
'requestPath': requestPath,
'requestSent': requestSent,
'requestReceived': requestReceived
};
getTypeName() => "BorgunTest3DGetMultiTokenResponse";
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 BorgunTokenMultiRequest implements IConvertible
{
String? pan;
String? expMonth;
String? expYear;
BorgunVerifyCardRequest? verifyCard;
BorgunMetadata? metadata;
BorgunTokenMultiRequest({this.pan,this.expMonth,this.expYear,this.verifyCard,this.metadata});
BorgunTokenMultiRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
pan = json['pan'];
expMonth = json['expMonth'];
expYear = json['expYear'];
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,
'verifyCard': JsonConverters.toJson(verifyCard,'BorgunVerifyCardRequest',context!),
'metadata': JsonConverters.toJson(metadata,'BorgunMetadata',context!)
};
getTypeName() => "BorgunTokenMultiRequest";
TypeContext? context = _ctx;
}
class BorgunTest3DGetMultiTokenRequest implements IConvertible
{
BorgunTokenMultiRequest? request;
String? forcedPath;
String? forcedJSONRequest;
bool? skipBorgunCall;
BorgunTest3DGetMultiTokenRequest({this.request,this.forcedPath,this.forcedJSONRequest,this.skipBorgunCall});
BorgunTest3DGetMultiTokenRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
request = JsonConverters.fromJson(json['request'],'BorgunTokenMultiRequest',context!);
forcedPath = json['forcedPath'];
forcedJSONRequest = json['forcedJSONRequest'];
skipBorgunCall = json['skipBorgunCall'];
return this;
}
Map<String, dynamic> toJson() => {
'request': JsonConverters.toJson(request,'BorgunTokenMultiRequest',context!),
'forcedPath': forcedPath,
'forcedJSONRequest': forcedJSONRequest,
'skipBorgunCall': skipBorgunCall
};
getTypeName() => "BorgunTest3DGetMultiTokenRequest";
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()),
'BorgunTokenMultiInfo': TypeInfo(TypeOf.Class, create:() => BorgunTokenMultiInfo()),
'BorgunTokenMultiResponse': TypeInfo(TypeOf.Class, create:() => BorgunTokenMultiResponse()),
'BorgunTest3DGetMultiTokenResponse': TypeInfo(TypeOf.Class, create:() => BorgunTest3DGetMultiTokenResponse()),
'BorgunVerifyCardRequest': TypeInfo(TypeOf.Class, create:() => BorgunVerifyCardRequest()),
'BorgunTokenMultiRequest': TypeInfo(TypeOf.Class, create:() => BorgunTokenMultiRequest()),
'BorgunTest3DGetMultiTokenRequest': TypeInfo(TypeOf.Class, create:() => BorgunTest3DGetMultiTokenRequest()),
});
Dart BorgunTest3DGetMultiTokenRequest 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/Token/Single HTTP/1.1
Host: stubbur-autoupdates-live.smartnewapis.com
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<BorgunTest3DGetMultiTokenRequest 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:ExpMonth>String</d2p1:ExpMonth>
<d2p1:ExpYear>String</d2p1:ExpYear>
<d2p1:Metadata>
<d2p1:Payload>String</d2p1:Payload>
</d2p1:Metadata>
<d2p1:PAN>String</d2p1:PAN>
<d2p1:VerifyCard>
<d2p1:CVC>String</d2p1:CVC>
<d2p1:CheckAmount>0</d2p1:CheckAmount>
<d2p1:Currency>String</d2p1:Currency>
</d2p1:VerifyCard>
</Request>
<SkipBorgunCall>false</SkipBorgunCall>
</BorgunTest3DGetMultiTokenRequest>
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <BorgunTest3DGetMultiTokenResponse 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:Message>String</d2p1:Message> <d2p1:StatusCode>0</d2p1:StatusCode> <d2p1:Token> <d2p1:Enabled>false</d2p1:Enabled> <d2p1:ExpMonth>String</d2p1:ExpMonth> <d2p1:ExpYear>String</d2p1:ExpYear> <d2p1:Metadata> <d2p1:Payload>String</d2p1:Payload> </d2p1:Metadata> <d2p1:PAN>String</d2p1:PAN> <d2p1:Token>String</d2p1:Token> <d2p1:VerifyCardResult> <d2p1:ActionCode>String</d2p1:ActionCode> <d2p1:TransactionId>String</d2p1:TransactionId> </d2p1:VerifyCardResult> <d2p1:VirtualNumber>String</d2p1:VirtualNumber> </d2p1:Token> <d2p1:Uri>String</d2p1:Uri> </Response> <StatusCode>0</StatusCode> </BorgunTest3DGetMultiTokenResponse>