| Requires any of the roles: | Admin, TeamAdmin | Required permission: | Tickets.Add |
| PUT | /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 WebshopPayoutInfoUpdateRequest implements IConvertible
{
WebshopPayoutInfo? item;
int? ownerId;
WebshopPayoutInfoUpdateRequest({this.item,this.ownerId});
WebshopPayoutInfoUpdateRequest.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() => "WebshopPayoutInfoUpdateRequest";
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()),
'WebshopPayoutInfoUpdateRequest': TypeInfo(TypeOf.Class, create:() => WebshopPayoutInfoUpdateRequest()),
});
Dart WebshopPayoutInfoUpdateRequest 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.
PUT /Webshop/PayoutInfo HTTP/1.1
Host: stubbur-app.azurewebsites.net
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
item:
{
id: 0,
ownerId: 0,
name: String,
accountNumber: String,
ssn: String,
tag: String,
active: False,
legacyId: 0,
createdAt: 0001-01-01
},
ownerId: 0
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
item:
{
id: 0,
ownerId: 0,
name: String,
accountNumber: String,
ssn: String,
tag: String,
active: False,
legacyId: 0,
createdAt: 0001-01-01
},
statusCode: 0,
message: String
}