| GET | /members/StatusValues |
|---|
import 'package:servicestack/servicestack.dart';
class AutoPayInfo implements IConvertible
{
String? PaymentMethod;
String? CardType;
String? CardReference;
String? CardNumberLastFour;
int? ExpMonth;
int? ExpYear;
String? AchReference;
String? PayerName;
String? Address1;
String? Address2;
String? BillingCity;
String? BillingState;
String? PostalCode;
String? Country;
String? AccountNumberLastFour;
String? RoutingNumberLastFour;
String? AccountType;
String? LastAutoPayAmount;
String? LastAutoPayDate;
AutoPayInfo({this.PaymentMethod,this.CardType,this.CardReference,this.CardNumberLastFour,this.ExpMonth,this.ExpYear,this.AchReference,this.PayerName,this.Address1,this.Address2,this.BillingCity,this.BillingState,this.PostalCode,this.Country,this.AccountNumberLastFour,this.RoutingNumberLastFour,this.AccountType,this.LastAutoPayAmount,this.LastAutoPayDate});
AutoPayInfo.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
PaymentMethod = json['PaymentMethod'];
CardType = json['CardType'];
CardReference = json['CardReference'];
CardNumberLastFour = json['CardNumberLastFour'];
ExpMonth = json['ExpMonth'];
ExpYear = json['ExpYear'];
AchReference = json['AchReference'];
PayerName = json['PayerName'];
Address1 = json['Address1'];
Address2 = json['Address2'];
BillingCity = json['BillingCity'];
BillingState = json['BillingState'];
PostalCode = json['PostalCode'];
Country = json['Country'];
AccountNumberLastFour = json['AccountNumberLastFour'];
RoutingNumberLastFour = json['RoutingNumberLastFour'];
AccountType = json['AccountType'];
LastAutoPayAmount = json['LastAutoPayAmount'];
LastAutoPayDate = json['LastAutoPayDate'];
return this;
}
Map<String, dynamic> toJson() => {
'PaymentMethod': PaymentMethod,
'CardType': CardType,
'CardReference': CardReference,
'CardNumberLastFour': CardNumberLastFour,
'ExpMonth': ExpMonth,
'ExpYear': ExpYear,
'AchReference': AchReference,
'PayerName': PayerName,
'Address1': Address1,
'Address2': Address2,
'BillingCity': BillingCity,
'BillingState': BillingState,
'PostalCode': PostalCode,
'Country': Country,
'AccountNumberLastFour': AccountNumberLastFour,
'RoutingNumberLastFour': RoutingNumberLastFour,
'AccountType': AccountType,
'LastAutoPayAmount': LastAutoPayAmount,
'LastAutoPayDate': LastAutoPayDate
};
getTypeName() => "AutoPayInfo";
TypeContext? context = _ctx;
}
class MemberStatusValuesReply implements IHaveErrorField, IConvertible
{
int? ClientId;
String? GroupId;
int? ErrorCode;
String? ErrorMessage;
String? UserId;
int? BhUserId;
int? BillingTypeId;
int? MemberStatusId;
String? MemberStatusCode;
String? MemberStatusDesc;
int? MemberTypeId;
String? MemberTypeCode;
String? MemberTypeDesc;
String? CurrentBalance;
String? AutoPayStatus;
AutoPayInfo? AutoPayInfo;
// @ApiMember(ExcludeInSchema=true)
bool? IsError;
MemberStatusValuesReply({this.ClientId,this.GroupId,this.ErrorCode,this.ErrorMessage,this.UserId,this.BhUserId,this.BillingTypeId,this.MemberStatusId,this.MemberStatusCode,this.MemberStatusDesc,this.MemberTypeId,this.MemberTypeCode,this.MemberTypeDesc,this.CurrentBalance,this.AutoPayStatus,this.AutoPayInfo,this.IsError});
MemberStatusValuesReply.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
ClientId = json['ClientId'];
GroupId = json['GroupId'];
ErrorCode = json['ErrorCode'];
ErrorMessage = json['ErrorMessage'];
UserId = json['UserId'];
BhUserId = json['BhUserId'];
BillingTypeId = json['BillingTypeId'];
MemberStatusId = json['MemberStatusId'];
MemberStatusCode = json['MemberStatusCode'];
MemberStatusDesc = json['MemberStatusDesc'];
MemberTypeId = json['MemberTypeId'];
MemberTypeCode = json['MemberTypeCode'];
MemberTypeDesc = json['MemberTypeDesc'];
CurrentBalance = json['CurrentBalance'];
AutoPayStatus = json['AutoPayStatus'];
AutoPayInfo = JsonConverters.fromJson(json['AutoPayInfo'],'AutoPayInfo',context!);
IsError = json['IsError'];
return this;
}
Map<String, dynamic> toJson() => {
'ClientId': ClientId,
'GroupId': GroupId,
'ErrorCode': ErrorCode,
'ErrorMessage': ErrorMessage,
'UserId': UserId,
'BhUserId': BhUserId,
'BillingTypeId': BillingTypeId,
'MemberStatusId': MemberStatusId,
'MemberStatusCode': MemberStatusCode,
'MemberStatusDesc': MemberStatusDesc,
'MemberTypeId': MemberTypeId,
'MemberTypeCode': MemberTypeCode,
'MemberTypeDesc': MemberTypeDesc,
'CurrentBalance': CurrentBalance,
'AutoPayStatus': AutoPayStatus,
'AutoPayInfo': JsonConverters.toJson(AutoPayInfo,'AutoPayInfo',context!),
'IsError': IsError
};
getTypeName() => "MemberStatusValuesReply";
TypeContext? context = _ctx;
}
class MemberStatusValues implements IConvertible
{
int? ClientId;
String? GroupId;
String? UserId;
int? BhUserId;
MemberStatusValues({this.ClientId,this.GroupId,this.UserId,this.BhUserId});
MemberStatusValues.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
ClientId = json['ClientId'];
GroupId = json['GroupId'];
UserId = json['UserId'];
BhUserId = json['BhUserId'];
return this;
}
Map<String, dynamic> toJson() => {
'ClientId': ClientId,
'GroupId': GroupId,
'UserId': UserId,
'BhUserId': BhUserId
};
getTypeName() => "MemberStatusValues";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'devapi.billhighway.com', types: <String, TypeInfo> {
'AutoPayInfo': TypeInfo(TypeOf.Class, create:() => AutoPayInfo()),
'MemberStatusValuesReply': TypeInfo(TypeOf.Class, create:() => MemberStatusValuesReply()),
'MemberStatusValues': TypeInfo(TypeOf.Class, create:() => MemberStatusValues()),
});
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /members/StatusValues HTTP/1.1 Host: devapi.billhighway.com Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"ClientId":0,"GroupId":"String","ErrorCode":0,"ErrorMessage":"String","UserId":"String","BhUserId":0,"BillingTypeId":0,"MemberStatusId":0,"MemberStatusCode":"String","MemberStatusDesc":"String","MemberTypeId":0,"MemberTypeCode":"String","MemberTypeDesc":"String","CurrentBalance":"String","AutoPayStatus":"String","AutoPayInfo":{"PaymentMethod":"String","CardType":"String","CardReference":"String","CardNumberLastFour":"String","ExpMonth":0,"ExpYear":0,"AchReference":"String","PayerName":"String","Address1":"String","Address2":"String","BillingCity":"String","BillingState":"String","PostalCode":"String","Country":"String","AccountNumberLastFour":"String","RoutingNumberLastFour":"String","AccountType":"String","LastAutoPayAmount":"String","LastAutoPayDate":"String"},"IsError":false}