Host

<back to all web services

AccountRegisterationInitRequest

The following routes are available for this service:
POST/UserAccount/AccountRegisterationInit
import 'package:servicestack/servicestack.dart';

class AccountRegisterationInitResponse implements IConvertible
{
    int? LocationCountryId;
    String? ErrorMsg;
    bool? IsVerified;
    String? RequestId;
    bool? PinCodeRequestEnabled;
    bool? BypassMobileAuthentication;
    ResponseStatus? ResponseStatus;

    AccountRegisterationInitResponse({this.LocationCountryId,this.ErrorMsg,this.IsVerified,this.RequestId,this.PinCodeRequestEnabled,this.BypassMobileAuthentication,this.ResponseStatus});
    AccountRegisterationInitResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        LocationCountryId = json['LocationCountryId'];
        ErrorMsg = json['ErrorMsg'];
        IsVerified = json['IsVerified'];
        RequestId = json['RequestId'];
        PinCodeRequestEnabled = json['PinCodeRequestEnabled'];
        BypassMobileAuthentication = json['BypassMobileAuthentication'];
        ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!);
        return this;
    }

    Map<String, dynamic> toJson() => {
        'LocationCountryId': LocationCountryId,
        'ErrorMsg': ErrorMsg,
        'IsVerified': IsVerified,
        'RequestId': RequestId,
        'PinCodeRequestEnabled': PinCodeRequestEnabled,
        'BypassMobileAuthentication': BypassMobileAuthentication,
        'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!)
    };

    getTypeName() => "AccountRegisterationInitResponse";
    TypeContext? context = _ctx;
}

class AccountRegisterationInitRequest implements IConvertible
{
    String? MobileNumber;
    String? IsoCode;
    int? AttemptNumber;

    AccountRegisterationInitRequest({this.MobileNumber,this.IsoCode,this.AttemptNumber});
    AccountRegisterationInitRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        MobileNumber = json['MobileNumber'];
        IsoCode = json['IsoCode'];
        AttemptNumber = json['AttemptNumber'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'MobileNumber': MobileNumber,
        'IsoCode': IsoCode,
        'AttemptNumber': AttemptNumber
    };

    getTypeName() => "AccountRegisterationInitRequest";
    TypeContext? context = _ctx;
}

TypeContext _ctx = TypeContext(library: 'api_demo_1.cura.healthcare', types: <String, TypeInfo> {
    'AccountRegisterationInitResponse': TypeInfo(TypeOf.Class, create:() => AccountRegisterationInitResponse()),
    'AccountRegisterationInitRequest': TypeInfo(TypeOf.Class, create:() => AccountRegisterationInitRequest()),
});

Dart AccountRegisterationInitRequest 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.

POST /UserAccount/AccountRegisterationInit HTTP/1.1 
Host: api-demo-1.cura.healthcare 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	MobileNumber: String,
	IsoCode: String,
	AttemptNumber: 0
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	LocationCountryId: 0,
	ErrorMsg: String,
	IsVerified: False,
	RequestId: String,
	PinCodeRequestEnabled: False,
	BypassMobileAuthentication: False,
	ResponseStatus: 
	{
		ErrorCode: String,
		Message: String,
		StackTrace: String,
		Errors: 
		[
			{
				ErrorCode: String,
				FieldName: String,
				Message: String,
				Meta: 
				{
					String: String
				}
			}
		],
		Meta: 
		{
			String: String
		}
	}
}