| Requires any of the roles: | Admin, TeamAdmin, MobileApp | Requires the permission: | ReadData |
| POST | /cardTokens/complete3DSSave |
|---|
import 'package:servicestack/servicestack.dart';
class Complete3DSCardSaveResult implements IConvertible
{
int? statusCode;
bool? success;
String? message;
String? token;
Complete3DSCardSaveResult({this.statusCode,this.success,this.message,this.token});
Complete3DSCardSaveResult.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
statusCode = json['statusCode'];
success = json['success'];
message = json['message'];
token = json['token'];
return this;
}
Map<String, dynamic> toJson() => {
'statusCode': statusCode,
'success': success,
'message': message,
'token': token
};
getTypeName() => "Complete3DSCardSaveResult";
TypeContext? context = _ctx;
}
class RequestSignature implements IConvertible
{
String? systemId;
String? systemSecret;
String? signature;
RequestSignature({this.systemId,this.systemSecret,this.signature});
RequestSignature.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
systemId = json['systemId'];
systemSecret = json['systemSecret'];
signature = json['signature'];
return this;
}
Map<String, dynamic> toJson() => {
'systemId': systemId,
'systemSecret': systemSecret,
'signature': signature
};
getTypeName() => "RequestSignature";
TypeContext? context = _ctx;
}
class Complete3DSCardSaveRequest implements IConvertible
{
String? sessionId;
String? paRes;
String? cRes;
String? pan;
String? cvc;
RequestSignature? signature;
Complete3DSCardSaveRequest({this.sessionId,this.paRes,this.cRes,this.pan,this.cvc,this.signature});
Complete3DSCardSaveRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
sessionId = json['sessionId'];
paRes = json['paRes'];
cRes = json['cRes'];
pan = json['pan'];
cvc = json['cvc'];
signature = JsonConverters.fromJson(json['signature'],'RequestSignature',context!);
return this;
}
Map<String, dynamic> toJson() => {
'sessionId': sessionId,
'paRes': paRes,
'cRes': cRes,
'pan': pan,
'cvc': cvc,
'signature': JsonConverters.toJson(signature,'RequestSignature',context!)
};
getTypeName() => "Complete3DSCardSaveRequest";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'stubbur_app.azurewebsites.net', types: <String, TypeInfo> {
'Complete3DSCardSaveResult': TypeInfo(TypeOf.Class, create:() => Complete3DSCardSaveResult()),
'RequestSignature': TypeInfo(TypeOf.Class, create:() => RequestSignature()),
'Complete3DSCardSaveRequest': TypeInfo(TypeOf.Class, create:() => Complete3DSCardSaveRequest()),
});
Dart Complete3DSCardSaveRequest 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 /cardTokens/complete3DSSave HTTP/1.1
Host: stubbur-app.azurewebsites.net
Accept: application/json
Content-Type: application/json
Content-Length: length
{"sessionId":"String","paRes":"String","cRes":"String","pan":"String","cvc":"String","signature":{"systemId":"String","systemSecret":"String","signature":"String"}}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"statusCode":0,"success":false,"message":"String","token":"String"}