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 .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/PaymentOption HTTP/1.1 
Host: devapi.billhighway.com 
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<MemberPaymentOptionReply xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BH.CloudAPI.Common4.DTO.SalesForce">
  <ClientId>0</ClientId>
  <ErrorCode>0</ErrorCode>
  <ErrorMessage>String</ErrorMessage>
  <GroupId>String</GroupId>
  <PaymentOption>
    <PaymentOptions>
      <BhUserId>0</BhUserId>
      <PaymentOption>String</PaymentOption>
      <UserId>String</UserId>
    </PaymentOptions>
  </PaymentOption>
</MemberPaymentOptionReply>