| 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 .xml suffix or ?format=xml
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: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<StandardSignupFormMemberInfoGetRs xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BH.CloudAPI.Common4.DTO.StandardSignupForm.Response">
<MemberInfo xmlns:d2p1="http://schemas.datacontract.org/2004/07/BH.API.DataAccess.Dto">
<d2p1:Address>
<d2p1:Address1>String</d2p1:Address1>
<d2p1:Address2>String</d2p1:Address2>
<d2p1:City>String</d2p1:City>
<d2p1:Country>String</d2p1:Country>
<d2p1:State>String</d2p1:State>
<d2p1:ZipCode>String</d2p1:ZipCode>
</d2p1:Address>
<d2p1:ClientUserId>String</d2p1:ClientUserId>
<d2p1:DateOfBirth>String</d2p1:DateOfBirth>
<d2p1:Email>String</d2p1:Email>
<d2p1:FirstName>String</d2p1:FirstName>
<d2p1:LastName>String</d2p1:LastName>
<d2p1:MiddleName>String</d2p1:MiddleName>
<d2p1:Phone>String</d2p1:Phone>
<d2p1:UserID>0</d2p1:UserID>
</MemberInfo>
</StandardSignupFormMemberInfoGetRs>