| PUT | /PutEmailAddress_RegRequestDate/ |
|---|
import 'package:servicestack/servicestack.dart';
class PutEmailAdd_RegResponse implements IConvertible
{
bool? Success;
bool? AlreadyRegistered;
String? Error;
PutEmailAdd_RegResponse({this.Success,this.AlreadyRegistered,this.Error});
PutEmailAdd_RegResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
Success = json['Success'];
AlreadyRegistered = json['AlreadyRegistered'];
Error = json['Error'];
return this;
}
Map<String, dynamic> toJson() => {
'Success': Success,
'AlreadyRegistered': AlreadyRegistered,
'Error': Error
};
getTypeName() => "PutEmailAdd_RegResponse";
TypeContext? context = _ctx;
}
class PutEmailAdd_RegRequest implements IConvertible
{
int? BPID;
String? EmailAddress;
PutEmailAdd_RegRequest({this.BPID,this.EmailAddress});
PutEmailAdd_RegRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
BPID = json['BPID'];
EmailAddress = json['EmailAddress'];
return this;
}
Map<String, dynamic> toJson() => {
'BPID': BPID,
'EmailAddress': EmailAddress
};
getTypeName() => "PutEmailAdd_RegRequest";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'webservices.mbukdatabase.co.uk', types: <String, TypeInfo> {
'PutEmailAdd_RegResponse': TypeInfo(TypeOf.Class, create:() => PutEmailAdd_RegResponse()),
'PutEmailAdd_RegRequest': TypeInfo(TypeOf.Class, create:() => PutEmailAdd_RegRequest()),
});
Dart PutEmailAdd_RegRequest 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.
PUT /PutEmailAddress_RegRequestDate/ HTTP/1.1
Host: webservices.mbukdatabase.co.uk
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<PutEmailAdd_RegRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MBMMFAutoEnrol.ServiceInterface.Services.PutEmailAdd_RegRequestDate">
<BPID>0</BPID>
<EmailAddress>String</EmailAddress>
</PutEmailAdd_RegRequest>
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <PutEmailAdd_RegResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MBMMFAutoEnrol.ServiceInterface.Services.PutEmailAdd_RegRequestDate"> <AlreadyRegistered>false</AlreadyRegistered> <Error>String</Error> <Success>false</Success> </PutEmailAdd_RegResponse>