| Requires any of the roles: | Client, Admin, Partner |
| GET | /payment_rules |
|---|
import 'package:servicestack/servicestack.dart';
// @DataContract
class PaymentRulesLookup implements IConvertible
{
// @DataMember(Order=2)
int? TenantsId;
// @DataMember(Order=3)
int? PaymentActionsId;
// @DataMember(Order=4)
double? PaymentValue;
// @DataMember(Order=5)
double? PaymentPercentage;
// @DataMember(Order=6)
double? DiscountAmount;
// @DataMember(Order=7)
double? DiscountPercentage;
PaymentRulesLookup({this.TenantsId,this.PaymentActionsId,this.PaymentValue,this.PaymentPercentage,this.DiscountAmount,this.DiscountPercentage});
PaymentRulesLookup.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
TenantsId = json['TenantsId'];
PaymentActionsId = json['PaymentActionsId'];
PaymentValue = JsonConverters.toDouble(json['PaymentValue']);
PaymentPercentage = JsonConverters.toDouble(json['PaymentPercentage']);
DiscountAmount = JsonConverters.toDouble(json['DiscountAmount']);
DiscountPercentage = JsonConverters.toDouble(json['DiscountPercentage']);
return this;
}
Map<String, dynamic> toJson() => {
'TenantsId': TenantsId,
'PaymentActionsId': PaymentActionsId,
'PaymentValue': PaymentValue,
'PaymentPercentage': PaymentPercentage,
'DiscountAmount': DiscountAmount,
'DiscountPercentage': DiscountPercentage
};
getTypeName() => "PaymentRulesLookup";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'duengageapi.uat.scadsoftware.com', types: <String, TypeInfo> {
'PaymentRulesLookup': TypeInfo(TypeOf.Class, create:() => PaymentRulesLookup()),
});
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.
GET /payment_rules HTTP/1.1 Host: duengageapi.uat.scadsoftware.com Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
[
{
TenantsId: 0,
PaymentActionsId: 0,
PaymentValue: 0,
PaymentPercentage: 0,
DiscountAmount: 0,
DiscountPercentage: 0,
ResponseStatus:
{
ErrorCode: String,
Message: String,
StackTrace: String,
Errors:
[
{
ErrorCode: String,
FieldName: String,
Message: String,
Meta:
{
String: String
}
}
],
Meta:
{
String: String
}
}
}
]