Billhighway Cloud API

<back to all web services

MemberStatusValues

The following routes are available for this service:
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()),
});

Dart MemberStatusValues DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml

HTTP + XML

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/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<MemberStatusValuesReply xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BH.CloudAPI.Common4.DTO.SalesForce">
  <AutoPayInfo>
    <AccountNumberLastFour>String</AccountNumberLastFour>
    <AccountType>String</AccountType>
    <AchReference>String</AchReference>
    <Address1>String</Address1>
    <Address2>String</Address2>
    <BillingCity>String</BillingCity>
    <BillingState>String</BillingState>
    <CardNumberLastFour>String</CardNumberLastFour>
    <CardReference>String</CardReference>
    <CardType>String</CardType>
    <Country>String</Country>
    <ExpMonth>0</ExpMonth>
    <ExpYear>0</ExpYear>
    <LastAutoPayAmount>String</LastAutoPayAmount>
    <LastAutoPayDate>String</LastAutoPayDate>
    <PayerName>String</PayerName>
    <PaymentMethod>String</PaymentMethod>
    <PostalCode>String</PostalCode>
    <RoutingNumberLastFour>String</RoutingNumberLastFour>
  </AutoPayInfo>
  <AutoPayStatus>String</AutoPayStatus>
  <BhUserId>0</BhUserId>
  <BillingTypeId>0</BillingTypeId>
  <ClientId>0</ClientId>
  <CurrentBalance>String</CurrentBalance>
  <ErrorCode>0</ErrorCode>
  <ErrorMessage>String</ErrorMessage>
  <GroupId>String</GroupId>
  <MemberStatusCode>String</MemberStatusCode>
  <MemberStatusDesc>String</MemberStatusDesc>
  <MemberStatusId>0</MemberStatusId>
  <MemberTypeCode>String</MemberTypeCode>
  <MemberTypeDesc>String</MemberTypeDesc>
  <MemberTypeId>0</MemberTypeId>
  <UserId>String</UserId>
</MemberStatusValuesReply>