Billhighway Cloud API

<back to all web services

StandardSignupFormMemberInfoGetRq

The following routes are available for this service:
GET/signup/api/user/{userID}/dob/{dob}/standardSignup/memberInfo
import 'package:servicestack/servicestack.dart';

class StandardSignupFormMemberInfoGetRq implements IApiRequest, IConvertible
{
    int? UserID;
    String? Dob;

    StandardSignupFormMemberInfoGetRq({this.UserID,this.Dob});
    StandardSignupFormMemberInfoGetRq.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        UserID = json['UserID'];
        Dob = json['Dob'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'UserID': UserID,
        'Dob': Dob
    };

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

class AddressDto implements IConvertible
{
    String? Address1;
    String? Address2;
    String? City;
    String? State;
    String? ZipCode;
    String? Country;

    AddressDto({this.Address1,this.Address2,this.City,this.State,this.ZipCode,this.Country});
    AddressDto.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        Address1 = json['Address1'];
        Address2 = json['Address2'];
        City = json['City'];
        State = json['State'];
        ZipCode = json['ZipCode'];
        Country = json['Country'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'Address1': Address1,
        'Address2': Address2,
        'City': City,
        'State': State,
        'ZipCode': ZipCode,
        'Country': Country
    };

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

class MemberDto implements IConvertible
{
    int? UserID;
    String? FirstName;
    String? MiddleName;
    String? LastName;
    String? Email;
    String? Phone;
    String? ClientUserId;
    String? DateOfBirth;
    AddressDto? Address;

    MemberDto({this.UserID,this.FirstName,this.MiddleName,this.LastName,this.Email,this.Phone,this.ClientUserId,this.DateOfBirth,this.Address});
    MemberDto.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        UserID = json['UserID'];
        FirstName = json['FirstName'];
        MiddleName = json['MiddleName'];
        LastName = json['LastName'];
        Email = json['Email'];
        Phone = json['Phone'];
        ClientUserId = json['ClientUserId'];
        DateOfBirth = json['DateOfBirth'];
        Address = JsonConverters.fromJson(json['Address'],'AddressDto',context!);
        return this;
    }

    Map<String, dynamic> toJson() => {
        'UserID': UserID,
        'FirstName': FirstName,
        'MiddleName': MiddleName,
        'LastName': LastName,
        'Email': Email,
        'Phone': Phone,
        'ClientUserId': ClientUserId,
        'DateOfBirth': DateOfBirth,
        'Address': JsonConverters.toJson(Address,'AddressDto',context!)
    };

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

class StandardSignupFormMemberInfoGetRs implements IApiResponse, IConvertible
{
    MemberDto? MemberInfo;

    StandardSignupFormMemberInfoGetRs({this.MemberInfo});
    StandardSignupFormMemberInfoGetRs.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        MemberInfo = JsonConverters.fromJson(json['MemberInfo'],'MemberDto',context!);
        return this;
    }

    Map<String, dynamic> toJson() => {
        'MemberInfo': JsonConverters.toJson(MemberInfo,'MemberDto',context!)
    };

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

TypeContext _ctx = TypeContext(library: 'devapi.billhighway.com', types: <String, TypeInfo> {
    'StandardSignupFormMemberInfoGetRq': TypeInfo(TypeOf.Class, create:() => StandardSignupFormMemberInfoGetRq()),
    'AddressDto': TypeInfo(TypeOf.Class, create:() => AddressDto()),
    'MemberDto': TypeInfo(TypeOf.Class, create:() => MemberDto()),
    'StandardSignupFormMemberInfoGetRs': TypeInfo(TypeOf.Class, create:() => StandardSignupFormMemberInfoGetRs()),
});

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

GET /signup/api/user/{userID}/dob/{dob}/standardSignup/memberInfo HTTP/1.1 
Host: devapi.billhighway.com 
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	MemberInfo: 
	{
		UserID: 0,
		FirstName: String,
		MiddleName: String,
		LastName: String,
		Email: String,
		Phone: String,
		ClientUserId: String,
		DateOfBirth: String,
		Address: 
		{
			Address1: String,
			Address2: String,
			City: String,
			State: String,
			ZipCode: String,
			Country: String
		}
	}
}