| Requires any of the roles: | Admin, TeamAdmin | Required permission: | Tickets.Add |
| POST | /Webshop/PayoutInfo |
|---|
import 'package:servicestack/servicestack.dart';
class WebshopPayoutInfo implements IConvertible
{
int? id;
int? ownerId;
// @StringLength(200)
String? name;
// @StringLength(50)
String? accountNumber;
// @StringLength(20)
String? ssn;
// @StringLength(100)
String? tag;
bool? active;
int? legacyId;
DateTime? createdAt;
WebshopPayoutInfo({this.id,this.ownerId,this.name,this.accountNumber,this.ssn,this.tag,this.active,this.legacyId,this.createdAt});
WebshopPayoutInfo.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
id = json['id'];
ownerId = json['ownerId'];
name = json['name'];
accountNumber = json['accountNumber'];
ssn = json['ssn'];
tag = json['tag'];
active = json['active'];
legacyId = json['legacyId'];
createdAt = JsonConverters.fromJson(json['createdAt'],'DateTime',context!);
return this;
}
Map<String, dynamic> toJson() => {
'id': id,
'ownerId': ownerId,
'name': name,
'accountNumber': accountNumber,
'ssn': ssn,
'tag': tag,
'active': active,
'legacyId': legacyId,
'createdAt': JsonConverters.toJson(createdAt,'DateTime',context!)
};
getTypeName() => "WebshopPayoutInfo";
TypeContext? context = _ctx;
}
class WebshopPayoutInfoResult implements IConvertible
{
WebshopPayoutInfo? item;
int? statusCode;
String? message;
WebshopPayoutInfoResult({this.item,this.statusCode,this.message});
WebshopPayoutInfoResult.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
item = JsonConverters.fromJson(json['item'],'WebshopPayoutInfo',context!);
statusCode = json['statusCode'];
message = json['message'];
return this;
}
Map<String, dynamic> toJson() => {
'item': JsonConverters.toJson(item,'WebshopPayoutInfo',context!),
'statusCode': statusCode,
'message': message
};
getTypeName() => "WebshopPayoutInfoResult";
TypeContext? context = _ctx;
}
class WebshopPayoutInfoCreateRequest implements IConvertible
{
WebshopPayoutInfo? item;
int? ownerId;
WebshopPayoutInfoCreateRequest({this.item,this.ownerId});
WebshopPayoutInfoCreateRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
item = JsonConverters.fromJson(json['item'],'WebshopPayoutInfo',context!);
ownerId = json['ownerId'];
return this;
}
Map<String, dynamic> toJson() => {
'item': JsonConverters.toJson(item,'WebshopPayoutInfo',context!),
'ownerId': ownerId
};
getTypeName() => "WebshopPayoutInfoCreateRequest";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'stubbur_app.azurewebsites.net', types: <String, TypeInfo> {
'WebshopPayoutInfo': TypeInfo(TypeOf.Class, create:() => WebshopPayoutInfo()),
'WebshopPayoutInfoResult': TypeInfo(TypeOf.Class, create:() => WebshopPayoutInfoResult()),
'WebshopPayoutInfoCreateRequest': TypeInfo(TypeOf.Class, create:() => WebshopPayoutInfoCreateRequest()),
});
Dart WebshopPayoutInfoCreateRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /Webshop/PayoutInfo HTTP/1.1
Host: stubbur-app.azurewebsites.net
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{"item":{"id":0,"ownerId":0,"name":"String","accountNumber":"String","ssn":"String","tag":"String","active":false,"legacyId":0,"createdAt":"0001-01-01T00:00:00.0000000"},"ownerId":0}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length
{"item":{"id":0,"ownerId":0,"name":"String","accountNumber":"String","ssn":"String","tag":"String","active":false,"legacyId":0,"createdAt":"0001-01-01T00:00:00.0000000"},"statusCode":0,"message":"String"}