| POST | /api/SalesForce/RefundCreditCardPayment | ||
|---|---|---|---|
| POST | /payments/creditcard/refund |
import 'package:servicestack/servicestack.dart';
class RefundCreditCardPaymentReply implements IHaveErrorField, IConvertible
{
String? ClassName;
String? UniqueId;
DateTime? CreatedDateTime;
int? ErrorCode;
String? ErrorMessage;
String? ConfirmationNumber;
bool? IsError;
RefundCreditCardPaymentReply({this.ClassName,this.UniqueId,this.CreatedDateTime,this.ErrorCode,this.ErrorMessage,this.ConfirmationNumber,this.IsError});
RefundCreditCardPaymentReply.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() => "RefundCreditCardPaymentReply";
TypeContext? context = _ctx;
}
class RefundCreditCardPayment implements IConvertible
{
String? ClassName;
String? UniqueId;
DateTime? CreatedDateTime;
int? ClientId;
String? GroupId;
String? UserId;
int? BhUserId;
double? RefundAmount;
String? Memo;
int? TransactionId;
String? Reason;
RefundCreditCardPayment({this.ClassName,this.UniqueId,this.CreatedDateTime,this.ClientId,this.GroupId,this.UserId,this.BhUserId,this.RefundAmount,this.Memo,this.TransactionId,this.Reason});
RefundCreditCardPayment.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() => "RefundCreditCardPayment";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'devapi.billhighway.com', types: <String, TypeInfo> {
'RefundCreditCardPaymentReply': TypeInfo(TypeOf.Class, create:() => RefundCreditCardPaymentReply()),
'RefundCreditCardPayment': TypeInfo(TypeOf.Class, create:() => RefundCreditCardPayment()),
});
Dart RefundCreditCardPayment DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /api/SalesForce/RefundCreditCardPayment HTTP/1.1
Host: devapi.billhighway.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
ClassName: String,
UniqueId: String,
CreatedDateTime: 0001-01-01,
ClientId: 0,
GroupId: String,
UserId: String,
BhUserId: 0,
RefundAmount: 0,
Memo: String,
TransactionId: 0,
Reason: String
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
ClassName: String,
UniqueId: String,
CreatedDateTime: 0001-01-01,
ErrorCode: 0,
ErrorMessage: String,
ConfirmationNumber: String,
IsError: False
}