| Requires any of the roles: | Admin, TeamAdmin | Required permission: | Tickets.Add |
| PUT | /Webshop/PayoutInfo |
|---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class WebshopPayoutInfoUpdateRequest
{
public WebshopPayoutInfo item = null;
public Integer ownerId = null;
public WebshopPayoutInfo getItem() { return item; }
public WebshopPayoutInfoUpdateRequest setItem(WebshopPayoutInfo value) { this.item = value; return this; }
public Integer getOwnerId() { return ownerId; }
public WebshopPayoutInfoUpdateRequest setOwnerId(Integer value) { this.ownerId = value; return this; }
}
public static class WebshopPayoutInfo
{
public Integer id = null;
public Integer ownerId = null;
@StringLength(200)
public String name = null;
@StringLength(50)
public String accountNumber = null;
@StringLength(20)
public String ssn = null;
@StringLength(100)
public String tag = null;
public Boolean active = null;
public Integer legacyId = null;
public Date createdAt = null;
public Integer getId() { return id; }
public WebshopPayoutInfo setId(Integer value) { this.id = value; return this; }
public Integer getOwnerId() { return ownerId; }
public WebshopPayoutInfo setOwnerId(Integer value) { this.ownerId = value; return this; }
public String getName() { return name; }
public WebshopPayoutInfo setName(String value) { this.name = value; return this; }
public String getAccountNumber() { return accountNumber; }
public WebshopPayoutInfo setAccountNumber(String value) { this.accountNumber = value; return this; }
public String getSsn() { return ssn; }
public WebshopPayoutInfo setSsn(String value) { this.ssn = value; return this; }
public String getTag() { return tag; }
public WebshopPayoutInfo setTag(String value) { this.tag = value; return this; }
public Boolean isActive() { return active; }
public WebshopPayoutInfo setActive(Boolean value) { this.active = value; return this; }
public Integer getLegacyId() { return legacyId; }
public WebshopPayoutInfo setLegacyId(Integer value) { this.legacyId = value; return this; }
public Date getCreatedAt() { return createdAt; }
public WebshopPayoutInfo setCreatedAt(Date value) { this.createdAt = value; return this; }
}
public static class WebshopPayoutInfoResult
{
public WebshopPayoutInfo item = null;
public Integer statusCode = null;
public String message = null;
public WebshopPayoutInfo getItem() { return item; }
public WebshopPayoutInfoResult setItem(WebshopPayoutInfo value) { this.item = value; return this; }
public Integer getStatusCode() { return statusCode; }
public WebshopPayoutInfoResult setStatusCode(Integer value) { this.statusCode = value; return this; }
public String getMessage() { return message; }
public WebshopPayoutInfoResult setMessage(String value) { this.message = value; return this; }
}
}
Java 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
}