MBMMFAutoEnrol

<back to all web services

PutEmailAdd_RegRequest

Requires Authentication
The following routes are available for this service:
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 .jsv suffix or ?format=jsv

HTTP + JSV

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: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	BPID: 0,
	EmailAddress: String
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	Success: False,
	AlreadyRegistered: False,
	Error: String
}