Billhighway Cloud API

<back to all web services

MemberPaymentOption

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

class PaymentOptions implements IConvertible
{
    int? BhUserId;
    String? UserId;
    String? PaymentOption;

    PaymentOptions({this.BhUserId,this.UserId,this.PaymentOption});
    PaymentOptions.fromJson(Map<String, dynamic> json) { fromMap(json); }

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

    Map<String, dynamic> toJson() => {
        'BhUserId': BhUserId,
        'UserId': UserId,
        'PaymentOption': PaymentOption
    };

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

class MemberPaymentOptionReply implements IHaveErrorField, IConvertible
{
    int? ClientId;
    String? GroupId;
    int? ErrorCode;
    String? ErrorMessage;
    List<PaymentOptions>? PaymentOption;
    // @ApiMember(ExcludeInSchema=true)
    bool? IsError;

    MemberPaymentOptionReply({this.ClientId,this.GroupId,this.ErrorCode,this.ErrorMessage,this.PaymentOption,this.IsError});
    MemberPaymentOptionReply.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        ClientId = json['ClientId'];
        GroupId = json['GroupId'];
        ErrorCode = json['ErrorCode'];
        ErrorMessage = json['ErrorMessage'];
        PaymentOption = JsonConverters.fromJson(json['PaymentOption'],'List<PaymentOptions>',context!);
        IsError = json['IsError'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'ClientId': ClientId,
        'GroupId': GroupId,
        'ErrorCode': ErrorCode,
        'ErrorMessage': ErrorMessage,
        'PaymentOption': JsonConverters.toJson(PaymentOption,'List<PaymentOptions>',context!),
        'IsError': IsError
    };

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

class MemberPaymentOption implements IConvertible
{
    int? ClientId;
    String? GroupId;
    String? UserId;
    int? BhUserId;

    MemberPaymentOption({this.ClientId,this.GroupId,this.UserId,this.BhUserId});
    MemberPaymentOption.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() => "MemberPaymentOption";
    TypeContext? context = _ctx;
}

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

Dart MemberPaymentOption DTOs

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

HTTP + JSV

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

GET /members/PaymentOption HTTP/1.1 
Host: devapi.billhighway.com 
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	ClientId: 0,
	GroupId: String,
	ErrorCode: 0,
	ErrorMessage: String,
	PaymentOption: 
	[
		{
			BhUserId: 0,
			UserId: String,
			PaymentOption: String
		}
	],
	IsError: False
}