| Requires the role: | Admin |
| PUT | /PayoutPercentageForEventOwner |
|---|
import 'package:servicestack/servicestack.dart';
class PayoutPercentageForEventOwner implements IConvertible
{
int? id;
// @References(typeof(EventOwner))
int? eventOwnerId;
double? payoutPercentage;
bool? addTransactionFee;
DateTime? createdAt;
DateTime? validTo;
DateTime? effectiveFrom;
PayoutPercentageForEventOwner({this.id,this.eventOwnerId,this.payoutPercentage,this.addTransactionFee,this.createdAt,this.validTo,this.effectiveFrom});
PayoutPercentageForEventOwner.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
id = json['id'];
eventOwnerId = json['eventOwnerId'];
payoutPercentage = JsonConverters.toDouble(json['payoutPercentage']);
addTransactionFee = json['addTransactionFee'];
createdAt = JsonConverters.fromJson(json['createdAt'],'DateTime',context!);
validTo = JsonConverters.fromJson(json['validTo'],'DateTime',context!);
effectiveFrom = JsonConverters.fromJson(json['effectiveFrom'],'DateTime',context!);
return this;
}
Map<String, dynamic> toJson() => {
'id': id,
'eventOwnerId': eventOwnerId,
'payoutPercentage': payoutPercentage,
'addTransactionFee': addTransactionFee,
'createdAt': JsonConverters.toJson(createdAt,'DateTime',context!),
'validTo': JsonConverters.toJson(validTo,'DateTime',context!),
'effectiveFrom': JsonConverters.toJson(effectiveFrom,'DateTime',context!)
};
getTypeName() => "PayoutPercentageForEventOwner";
TypeContext? context = _ctx;
}
class PayoutPercentageForEventOwnerResult implements IConvertible
{
PayoutPercentageForEventOwner? item;
int? statusCode;
String? message;
PayoutPercentageForEventOwnerResult({this.item,this.statusCode,this.message});
PayoutPercentageForEventOwnerResult.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
item = JsonConverters.fromJson(json['item'],'PayoutPercentageForEventOwner',context!);
statusCode = json['statusCode'];
message = json['message'];
return this;
}
Map<String, dynamic> toJson() => {
'item': JsonConverters.toJson(item,'PayoutPercentageForEventOwner',context!),
'statusCode': statusCode,
'message': message
};
getTypeName() => "PayoutPercentageForEventOwnerResult";
TypeContext? context = _ctx;
}
class PayoutPercentageForEventOwnerUpdateRequest implements IConvertible
{
PayoutPercentageForEventOwner? item;
PayoutPercentageForEventOwnerUpdateRequest({this.item});
PayoutPercentageForEventOwnerUpdateRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
item = JsonConverters.fromJson(json['item'],'PayoutPercentageForEventOwner',context!);
return this;
}
Map<String, dynamic> toJson() => {
'item': JsonConverters.toJson(item,'PayoutPercentageForEventOwner',context!)
};
getTypeName() => "PayoutPercentageForEventOwnerUpdateRequest";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'stubbur_app.azurewebsites.net', types: <String, TypeInfo> {
'PayoutPercentageForEventOwner': TypeInfo(TypeOf.Class, create:() => PayoutPercentageForEventOwner()),
'PayoutPercentageForEventOwnerResult': TypeInfo(TypeOf.Class, create:() => PayoutPercentageForEventOwnerResult()),
'PayoutPercentageForEventOwnerUpdateRequest': TypeInfo(TypeOf.Class, create:() => PayoutPercentageForEventOwnerUpdateRequest()),
});
Dart PayoutPercentageForEventOwnerUpdateRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
PUT /PayoutPercentageForEventOwner HTTP/1.1
Host: stubbur-app.azurewebsites.net
Accept: application/json
Content-Type: application/json
Content-Length: length
{"item":{"id":0,"eventOwnerId":0,"payoutPercentage":0,"addTransactionFee":false,"createdAt":"0001-01-01T00:00:00.0000000","validTo":"0001-01-01T00:00:00.0000000","effectiveFrom":"0001-01-01T00:00:00.0000000"}}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"item":{"id":0,"eventOwnerId":0,"payoutPercentage":0,"addTransactionFee":false,"createdAt":"0001-01-01T00:00:00.0000000","validTo":"0001-01-01T00:00:00.0000000","effectiveFrom":"0001-01-01T00:00:00.0000000"},"statusCode":0,"message":"String"}