Billhighway Cloud API

<back to all web services

RefundACHPayment

The following routes are available for this service:
POST/api/SalesForce/RefundACHPayment
POST/payments/ach/refund
import 'package:servicestack/servicestack.dart';

class RefundACHPaymentReply implements IHaveErrorField, IConvertible
{
    String? ClassName;
    String? UniqueId;
    DateTime? CreatedDateTime;
    int? ErrorCode;
    String? ErrorMessage;
    String? ConfirmationNumber;
    bool? IsError;

    RefundACHPaymentReply({this.ClassName,this.UniqueId,this.CreatedDateTime,this.ErrorCode,this.ErrorMessage,this.ConfirmationNumber,this.IsError});
    RefundACHPaymentReply.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        ClassName = json['ClassName'];
        UniqueId = json['UniqueId'];
        CreatedDateTime = JsonConverters.fromJson(json['CreatedDateTime'],'DateTime',context!);
        ErrorCode = json['ErrorCode'];
        ErrorMessage = json['ErrorMessage'];
        ConfirmationNumber = json['ConfirmationNumber'];
        IsError = json['IsError'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'ClassName': ClassName,
        'UniqueId': UniqueId,
        'CreatedDateTime': JsonConverters.toJson(CreatedDateTime,'DateTime',context!),
        'ErrorCode': ErrorCode,
        'ErrorMessage': ErrorMessage,
        'ConfirmationNumber': ConfirmationNumber,
        'IsError': IsError
    };

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

class RefundACHPayment implements IConvertible
{
    String? ClassName;
    String? UniqueId;
    DateTime? CreatedDateTime;
    int? ClientId;
    String? GroupId;
    String? UserId;
    int? BhUserId;
    double? RefundAmount;
    String? Memo;
    int? TransactionId;
    String? Reason;

    RefundACHPayment({this.ClassName,this.UniqueId,this.CreatedDateTime,this.ClientId,this.GroupId,this.UserId,this.BhUserId,this.RefundAmount,this.Memo,this.TransactionId,this.Reason});
    RefundACHPayment.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        ClassName = json['ClassName'];
        UniqueId = json['UniqueId'];
        CreatedDateTime = JsonConverters.fromJson(json['CreatedDateTime'],'DateTime',context!);
        ClientId = json['ClientId'];
        GroupId = json['GroupId'];
        UserId = json['UserId'];
        BhUserId = json['BhUserId'];
        RefundAmount = JsonConverters.toDouble(json['RefundAmount']);
        Memo = json['Memo'];
        TransactionId = json['TransactionId'];
        Reason = json['Reason'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'ClassName': ClassName,
        'UniqueId': UniqueId,
        'CreatedDateTime': JsonConverters.toJson(CreatedDateTime,'DateTime',context!),
        'ClientId': ClientId,
        'GroupId': GroupId,
        'UserId': UserId,
        'BhUserId': BhUserId,
        'RefundAmount': RefundAmount,
        'Memo': Memo,
        'TransactionId': TransactionId,
        'Reason': Reason
    };

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

TypeContext _ctx = TypeContext(library: 'devapi.billhighway.com', types: <String, TypeInfo> {
    'RefundACHPaymentReply': TypeInfo(TypeOf.Class, create:() => RefundACHPaymentReply()),
    'RefundACHPayment': TypeInfo(TypeOf.Class, create:() => RefundACHPayment()),
});

Dart RefundACHPayment DTOs

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

HTTP + CSV

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

POST /api/SalesForce/RefundACHPayment HTTP/1.1 
Host: devapi.billhighway.com 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"ClassName":"String","UniqueId":"String","CreatedDateTime":"0001-01-01T00:00:00.0000000","ClientId":0,"GroupId":"String","UserId":"String","BhUserId":0,"RefundAmount":0,"Memo":"String","TransactionId":0,"Reason":"String"}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"ClassName":"String","UniqueId":"String","CreatedDateTime":"0001-01-01T00:00:00.0000000","ErrorCode":0,"ErrorMessage":"String","ConfirmationNumber":"String","IsError":false}