| POST | /signup/api/standardSignup |
|---|
import 'package:servicestack/servicestack.dart';
class StandardSignupFormMemberInfo implements IConvertible
{
int? BhUserID;
int? BhGroupID;
String? ClientUserID;
String? ClientGroupID;
int? NationalID;
String? FirstName;
String? MiddleName;
String? LastName;
String? Address1;
String? Address2;
String? City;
String? State;
String? PostalCode;
String? Country;
String? Email;
String? Phone;
String? PacContributionAmount;
DateTime? DateOfBirth;
String? MemberTypeClientID;
String? BillingTypeID;
int? FiscalYear;
bool? OptedToPayCTADues;
StandardSignupFormMemberInfo({this.BhUserID,this.BhGroupID,this.ClientUserID,this.ClientGroupID,this.NationalID,this.FirstName,this.MiddleName,this.LastName,this.Address1,this.Address2,this.City,this.State,this.PostalCode,this.Country,this.Email,this.Phone,this.PacContributionAmount,this.DateOfBirth,this.MemberTypeClientID,this.BillingTypeID,this.FiscalYear,this.OptedToPayCTADues});
StandardSignupFormMemberInfo.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
BhUserID = json['BhUserID'];
BhGroupID = json['BhGroupID'];
ClientUserID = json['ClientUserID'];
ClientGroupID = json['ClientGroupID'];
NationalID = json['NationalID'];
FirstName = json['FirstName'];
MiddleName = json['MiddleName'];
LastName = json['LastName'];
Address1 = json['Address1'];
Address2 = json['Address2'];
City = json['City'];
State = json['State'];
PostalCode = json['PostalCode'];
Country = json['Country'];
Email = json['Email'];
Phone = json['Phone'];
PacContributionAmount = json['PacContributionAmount'];
DateOfBirth = JsonConverters.fromJson(json['DateOfBirth'],'DateTime',context!);
MemberTypeClientID = json['MemberTypeClientID'];
BillingTypeID = json['BillingTypeID'];
FiscalYear = json['FiscalYear'];
OptedToPayCTADues = json['OptedToPayCTADues'];
return this;
}
Map<String, dynamic> toJson() => {
'BhUserID': BhUserID,
'BhGroupID': BhGroupID,
'ClientUserID': ClientUserID,
'ClientGroupID': ClientGroupID,
'NationalID': NationalID,
'FirstName': FirstName,
'MiddleName': MiddleName,
'LastName': LastName,
'Address1': Address1,
'Address2': Address2,
'City': City,
'State': State,
'PostalCode': PostalCode,
'Country': Country,
'Email': Email,
'Phone': Phone,
'PacContributionAmount': PacContributionAmount,
'DateOfBirth': JsonConverters.toJson(DateOfBirth,'DateTime',context!),
'MemberTypeClientID': MemberTypeClientID,
'BillingTypeID': BillingTypeID,
'FiscalYear': FiscalYear,
'OptedToPayCTADues': OptedToPayCTADues
};
getTypeName() => "StandardSignupFormMemberInfo";
TypeContext? context = _ctx;
}
class ClientVerification implements IConvertible
{
String? Provider;
String? VerificationCode;
ClientVerification({this.Provider,this.VerificationCode});
ClientVerification.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
Provider = json['Provider'];
VerificationCode = json['VerificationCode'];
return this;
}
Map<String, dynamic> toJson() => {
'Provider': Provider,
'VerificationCode': VerificationCode
};
getTypeName() => "ClientVerification";
TypeContext? context = _ctx;
}
class CcPaymentInformation implements IConvertible
{
String? CardNumber;
String? Cvv;
int? ExpMonth;
int? ExpYear;
String? CardholderName;
String? Country;
String? BillingAddress;
String? Address1;
String? Address2;
String? City;
String? StateProvince;
String? PostalCode;
CcPaymentInformation({this.CardNumber,this.Cvv,this.ExpMonth,this.ExpYear,this.CardholderName,this.Country,this.BillingAddress,this.Address1,this.Address2,this.City,this.StateProvince,this.PostalCode});
CcPaymentInformation.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
CardNumber = json['CardNumber'];
Cvv = json['Cvv'];
ExpMonth = json['ExpMonth'];
ExpYear = json['ExpYear'];
CardholderName = json['CardholderName'];
Country = json['Country'];
BillingAddress = json['BillingAddress'];
Address1 = json['Address1'];
Address2 = json['Address2'];
City = json['City'];
StateProvince = json['StateProvince'];
PostalCode = json['PostalCode'];
return this;
}
Map<String, dynamic> toJson() => {
'CardNumber': CardNumber,
'Cvv': Cvv,
'ExpMonth': ExpMonth,
'ExpYear': ExpYear,
'CardholderName': CardholderName,
'Country': Country,
'BillingAddress': BillingAddress,
'Address1': Address1,
'Address2': Address2,
'City': City,
'StateProvince': StateProvince,
'PostalCode': PostalCode
};
getTypeName() => "CcPaymentInformation";
TypeContext? context = _ctx;
}
class AchPaymentInformation implements IConvertible
{
String? AccountHolderName;
String? CheckNumber;
String? RoutingNumber;
String? AccountNumber;
String? AccountType;
AchPaymentInformation({this.AccountHolderName,this.CheckNumber,this.RoutingNumber,this.AccountNumber,this.AccountType});
AchPaymentInformation.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
AccountHolderName = json['AccountHolderName'];
CheckNumber = json['CheckNumber'];
RoutingNumber = json['RoutingNumber'];
AccountNumber = json['AccountNumber'];
AccountType = json['AccountType'];
return this;
}
Map<String, dynamic> toJson() => {
'AccountHolderName': AccountHolderName,
'CheckNumber': CheckNumber,
'RoutingNumber': RoutingNumber,
'AccountNumber': AccountNumber,
'AccountType': AccountType
};
getTypeName() => "AchPaymentInformation";
TypeContext? context = _ctx;
}
class ContributionItem implements IConvertible
{
int? ChartOfAccountId;
String? ChartOfAccountRefId;
double? Amount;
ContributionItem({this.ChartOfAccountId,this.ChartOfAccountRefId,this.Amount});
ContributionItem.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
ChartOfAccountId = json['ChartOfAccountId'];
ChartOfAccountRefId = json['ChartOfAccountRefId'];
Amount = JsonConverters.toDouble(json['Amount']);
return this;
}
Map<String, dynamic> toJson() => {
'ChartOfAccountId': ChartOfAccountId,
'ChartOfAccountRefId': ChartOfAccountRefId,
'Amount': Amount
};
getTypeName() => "ContributionItem";
TypeContext? context = _ctx;
}
class StandardSignupFormPostRq implements IConvertible
{
bool? IsCreditCard;
StandardSignupFormMemberInfo? MemberInfo;
ClientVerification? VerificationInfo;
CcPaymentInformation? CcPaymentInfo;
AchPaymentInformation? AchPaymentInfo;
List<ContributionItem>? Contributions;
StandardSignupFormPostRq({this.IsCreditCard,this.MemberInfo,this.VerificationInfo,this.CcPaymentInfo,this.AchPaymentInfo,this.Contributions});
StandardSignupFormPostRq.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
IsCreditCard = json['IsCreditCard'];
MemberInfo = JsonConverters.fromJson(json['MemberInfo'],'StandardSignupFormMemberInfo',context!);
VerificationInfo = JsonConverters.fromJson(json['VerificationInfo'],'ClientVerification',context!);
CcPaymentInfo = JsonConverters.fromJson(json['CcPaymentInfo'],'CcPaymentInformation',context!);
AchPaymentInfo = JsonConverters.fromJson(json['AchPaymentInfo'],'AchPaymentInformation',context!);
Contributions = JsonConverters.fromJson(json['Contributions'],'List<ContributionItem>',context!);
return this;
}
Map<String, dynamic> toJson() => {
'IsCreditCard': IsCreditCard,
'MemberInfo': JsonConverters.toJson(MemberInfo,'StandardSignupFormMemberInfo',context!),
'VerificationInfo': JsonConverters.toJson(VerificationInfo,'ClientVerification',context!),
'CcPaymentInfo': JsonConverters.toJson(CcPaymentInfo,'CcPaymentInformation',context!),
'AchPaymentInfo': JsonConverters.toJson(AchPaymentInfo,'AchPaymentInformation',context!),
'Contributions': JsonConverters.toJson(Contributions,'List<ContributionItem>',context!)
};
getTypeName() => "StandardSignupFormPostRq";
TypeContext? context = _ctx;
}
class StandardSignupFormPostRs implements IConvertible
{
String? Message;
StandardSignupFormPostRs({this.Message});
StandardSignupFormPostRs.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
Message = json['Message'];
return this;
}
Map<String, dynamic> toJson() => {
'Message': Message
};
getTypeName() => "StandardSignupFormPostRs";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'devapi.billhighway.com', types: <String, TypeInfo> {
'StandardSignupFormMemberInfo': TypeInfo(TypeOf.Class, create:() => StandardSignupFormMemberInfo()),
'ClientVerification': TypeInfo(TypeOf.Class, create:() => ClientVerification()),
'CcPaymentInformation': TypeInfo(TypeOf.Class, create:() => CcPaymentInformation()),
'AchPaymentInformation': TypeInfo(TypeOf.Class, create:() => AchPaymentInformation()),
'ContributionItem': TypeInfo(TypeOf.Class, create:() => ContributionItem()),
'StandardSignupFormPostRq': TypeInfo(TypeOf.Class, create:() => StandardSignupFormPostRq()),
'List<ContributionItem>': TypeInfo(TypeOf.Class, create:() => <ContributionItem>[]),
'StandardSignupFormPostRs': TypeInfo(TypeOf.Class, create:() => StandardSignupFormPostRs()),
});
Dart StandardSignupFormPostRq 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.
POST /signup/api/standardSignup HTTP/1.1
Host: devapi.billhighway.com
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<StandardSignupFormPostRq xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BH.CloudAPI.Common4.DTO.StandardSignupForm.Request">
<AchPaymentInfo xmlns:d2p1="http://schemas.datacontract.org/2004/07/BH.CloudAPI.Common4.DTO.Subscriptions">
<d2p1:AccountHolderName>String</d2p1:AccountHolderName>
<d2p1:AccountNumber>String</d2p1:AccountNumber>
<d2p1:AccountType>String</d2p1:AccountType>
<d2p1:CheckNumber>String</d2p1:CheckNumber>
<d2p1:RoutingNumber>String</d2p1:RoutingNumber>
</AchPaymentInfo>
<CcPaymentInfo xmlns:d2p1="http://schemas.datacontract.org/2004/07/BH.CloudAPI.Common4.DTO.Subscriptions">
<d2p1:Address1>String</d2p1:Address1>
<d2p1:Address2>String</d2p1:Address2>
<d2p1:BillingAddress>String</d2p1:BillingAddress>
<d2p1:CardNumber>String</d2p1:CardNumber>
<d2p1:CardholderName>String</d2p1:CardholderName>
<d2p1:City>String</d2p1:City>
<d2p1:Country>String</d2p1:Country>
<d2p1:Cvv>String</d2p1:Cvv>
<d2p1:ExpMonth>0</d2p1:ExpMonth>
<d2p1:ExpYear>0</d2p1:ExpYear>
<d2p1:PostalCode>String</d2p1:PostalCode>
<d2p1:StateProvince>String</d2p1:StateProvince>
</CcPaymentInfo>
<Contributions xmlns:d2p1="http://schemas.datacontract.org/2004/07/BH.CloudAPI.Common4.DTO.RecurringObligation">
<d2p1:ContributionItem>
<d2p1:Amount>0</d2p1:Amount>
<d2p1:ChartOfAccountId>0</d2p1:ChartOfAccountId>
<d2p1:ChartOfAccountRefId>String</d2p1:ChartOfAccountRefId>
</d2p1:ContributionItem>
</Contributions>
<IsCreditCard>false</IsCreditCard>
<MemberInfo xmlns:d2p1="http://schemas.datacontract.org/2004/07/BH.CloudAPI.Common4.DTO.StandardSignupForm">
<d2p1:Address1>String</d2p1:Address1>
<d2p1:Address2>String</d2p1:Address2>
<d2p1:BhGroupID>0</d2p1:BhGroupID>
<d2p1:BhUserID>0</d2p1:BhUserID>
<d2p1:BillingTypeID>String</d2p1:BillingTypeID>
<d2p1:City>String</d2p1:City>
<d2p1:ClientGroupID>String</d2p1:ClientGroupID>
<d2p1:ClientUserID>String</d2p1:ClientUserID>
<d2p1:Country>String</d2p1:Country>
<d2p1:DateOfBirth>0001-01-01T00:00:00</d2p1:DateOfBirth>
<d2p1:Email>String</d2p1:Email>
<d2p1:FirstName>String</d2p1:FirstName>
<d2p1:FiscalYear>0</d2p1:FiscalYear>
<d2p1:LastName>String</d2p1:LastName>
<d2p1:MemberTypeClientID>String</d2p1:MemberTypeClientID>
<d2p1:MiddleName>String</d2p1:MiddleName>
<d2p1:NationalID>0</d2p1:NationalID>
<d2p1:OptedToPayCTADues>false</d2p1:OptedToPayCTADues>
<d2p1:PacContributionAmount>String</d2p1:PacContributionAmount>
<d2p1:Phone>String</d2p1:Phone>
<d2p1:PostalCode>String</d2p1:PostalCode>
<d2p1:State>String</d2p1:State>
</MemberInfo>
<VerificationInfo xmlns:d2p1="http://schemas.datacontract.org/2004/07/BH.CloudAPI.Common4.DTO.Subscriptions">
<d2p1:Provider>String</d2p1:Provider>
<d2p1:VerificationCode>String</d2p1:VerificationCode>
</VerificationInfo>
</StandardSignupFormPostRq>
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <StandardSignupFormPostRs xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BH.CloudAPI.Common4.DTO.StandardSignupForm.Response"> <Message>String</Message> </StandardSignupFormPostRs>