| POST | /ValidateDetails/ |
|---|
import 'package:servicestack/servicestack.dart';
class ValidateDetailsResponse implements IConvertible
{
int? BPID;
bool? IsValid;
bool? IsLocked;
int? AttemptsRemaining;
String? Error;
ValidateDetailsResponse({this.BPID,this.IsValid,this.IsLocked,this.AttemptsRemaining,this.Error});
ValidateDetailsResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
BPID = json['BPID'];
IsValid = json['IsValid'];
IsLocked = json['IsLocked'];
AttemptsRemaining = json['AttemptsRemaining'];
Error = json['Error'];
return this;
}
Map<String, dynamic> toJson() => {
'BPID': BPID,
'IsValid': IsValid,
'IsLocked': IsLocked,
'AttemptsRemaining': AttemptsRemaining,
'Error': Error
};
getTypeName() => "ValidateDetailsResponse";
TypeContext? context = _ctx;
}
class ValidateDetailsRequest implements IConvertible
{
String? GUID;
String? Postcode;
String? Number4;
String? Email;
String? EmailConfirm;
ValidateDetailsRequest({this.GUID,this.Postcode,this.Number4,this.Email,this.EmailConfirm});
ValidateDetailsRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
GUID = json['GUID'];
Postcode = json['Postcode'];
Number4 = json['Number4'];
Email = json['Email'];
EmailConfirm = json['EmailConfirm'];
return this;
}
Map<String, dynamic> toJson() => {
'GUID': GUID,
'Postcode': Postcode,
'Number4': Number4,
'Email': Email,
'EmailConfirm': EmailConfirm
};
getTypeName() => "ValidateDetailsRequest";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'webservices.mbukdatabase.co.uk', types: <String, TypeInfo> {
'ValidateDetailsResponse': TypeInfo(TypeOf.Class, create:() => ValidateDetailsResponse()),
'ValidateDetailsRequest': TypeInfo(TypeOf.Class, create:() => ValidateDetailsRequest()),
});
Dart ValidateDetailsRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /ValidateDetails/ HTTP/1.1
Host: webservices.mbukdatabase.co.uk
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length
{"GUID":"00000000000000000000000000000000","Postcode":"String","Number4":"String","Email":"String","EmailConfirm":"String"}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length
{"BPID":0,"IsValid":false,"IsLocked":false,"AttemptsRemaining":0,"Error":"String"}