| 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()),
});
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
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: application/xml
Content-Type: application/xml
Content-Length: length
<RefundACHPayment xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BH.CloudAPI.Common4.DTO.SalesForce">
<BhUserId>0</BhUserId>
<ClassName>String</ClassName>
<ClientId>0</ClientId>
<CreatedDateTime>0001-01-01T00:00:00</CreatedDateTime>
<GroupId>String</GroupId>
<Memo>String</Memo>
<Reason>String</Reason>
<RefundAmount>0</RefundAmount>
<TransactionId>0</TransactionId>
<UniqueId>String</UniqueId>
<UserId>String</UserId>
</RefundACHPayment>
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <RefundACHPaymentReply xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BH.CloudAPI.Common4.DTO.SalesForce"> <ClassName>String</ClassName> <ConfirmationNumber>String</ConfirmationNumber> <CreatedDateTime>0001-01-01T00:00:00</CreatedDateTime> <ErrorCode>0</ErrorCode> <ErrorMessage>String</ErrorMessage> <UniqueId>String</UniqueId> </RefundACHPaymentReply>