Billhighway Cloud API

<back to all web services

BillingTypeListRequest

The following routes are available for this service:
GET/invoices/billingTypes
import 'package:servicestack/servicestack.dart';

class BillingTypeListItem implements IConvertible
{
    int? BillingTypeID;
    String? BillingTypeName;
    bool? IsPrimary;

    BillingTypeListItem({this.BillingTypeID,this.BillingTypeName,this.IsPrimary});
    BillingTypeListItem.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        BillingTypeID = json['BillingTypeID'];
        BillingTypeName = json['BillingTypeName'];
        IsPrimary = json['IsPrimary'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'BillingTypeID': BillingTypeID,
        'BillingTypeName': BillingTypeName,
        'IsPrimary': IsPrimary
    };

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

class BillingTypeListResponse implements IConvertible
{
    List<BillingTypeListItem>? Results;

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

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

    Map<String, dynamic> toJson() => {
        'Results': JsonConverters.toJson(Results,'List<BillingTypeListItem>',context!)
    };

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

class BillingTypeListRequest implements IConvertible
{
    String? GroupID;

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

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

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

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

TypeContext _ctx = TypeContext(library: 'devapi.billhighway.com', types: <String, TypeInfo> {
    'BillingTypeListItem': TypeInfo(TypeOf.Class, create:() => BillingTypeListItem()),
    'BillingTypeListResponse': TypeInfo(TypeOf.Class, create:() => BillingTypeListResponse()),
    'List<BillingTypeListItem>': TypeInfo(TypeOf.Class, create:() => <BillingTypeListItem>[]),
    'BillingTypeListRequest': TypeInfo(TypeOf.Class, create:() => BillingTypeListRequest()),
});

Dart BillingTypeListRequest DTOs

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

HTTP + JSON

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /invoices/billingTypes HTTP/1.1 
Host: devapi.billhighway.com 
Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"Results":[{"BillingTypeID":0,"BillingTypeName":"String","IsPrimary":false}]}