| Requires any of the roles: | Admin, TeamAdmin | Required permission: | Tickets.Add |
| PUT | /Webshop/Settings/{OwnerId} |
|---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class WebshopSettingsUpdateRequest
{
public Integer ownerId = null;
public WebshopSettings item = null;
public Integer getOwnerId() { return ownerId; }
public WebshopSettingsUpdateRequest setOwnerId(Integer value) { this.ownerId = value; return this; }
public WebshopSettings getItem() { return item; }
public WebshopSettingsUpdateRequest setItem(WebshopSettings value) { this.item = value; return this; }
}
public static class WebshopSettings
{
public Integer id = null;
public Integer ownerId = null;
@StringLength(200)
public String orderEmail = null;
public Boolean pickupAllowed = null;
public Boolean droppAllowed = null;
public Boolean shippedAllowed = null;
@StringLength(300)
public String pickupAddress = null;
@StringLength(500)
public String pickupDescription = null;
public Integer droppFeeMinor = null;
public Integer shippedFeeMinor = null;
@StringLength(50)
public String legacyTeamNumber = null;
public Date createdAt = null;
public Date updatedAt = null;
public Integer getId() { return id; }
public WebshopSettings setId(Integer value) { this.id = value; return this; }
public Integer getOwnerId() { return ownerId; }
public WebshopSettings setOwnerId(Integer value) { this.ownerId = value; return this; }
public String getOrderEmail() { return orderEmail; }
public WebshopSettings setOrderEmail(String value) { this.orderEmail = value; return this; }
public Boolean isPickupAllowed() { return pickupAllowed; }
public WebshopSettings setPickupAllowed(Boolean value) { this.pickupAllowed = value; return this; }
public Boolean isDroppAllowed() { return droppAllowed; }
public WebshopSettings setDroppAllowed(Boolean value) { this.droppAllowed = value; return this; }
public Boolean isShippedAllowed() { return shippedAllowed; }
public WebshopSettings setShippedAllowed(Boolean value) { this.shippedAllowed = value; return this; }
public String getPickupAddress() { return pickupAddress; }
public WebshopSettings setPickupAddress(String value) { this.pickupAddress = value; return this; }
public String getPickupDescription() { return pickupDescription; }
public WebshopSettings setPickupDescription(String value) { this.pickupDescription = value; return this; }
public Integer getDroppFeeMinor() { return droppFeeMinor; }
public WebshopSettings setDroppFeeMinor(Integer value) { this.droppFeeMinor = value; return this; }
public Integer getShippedFeeMinor() { return shippedFeeMinor; }
public WebshopSettings setShippedFeeMinor(Integer value) { this.shippedFeeMinor = value; return this; }
public String getLegacyTeamNumber() { return legacyTeamNumber; }
public WebshopSettings setLegacyTeamNumber(String value) { this.legacyTeamNumber = value; return this; }
public Date getCreatedAt() { return createdAt; }
public WebshopSettings setCreatedAt(Date value) { this.createdAt = value; return this; }
public Date getUpdatedAt() { return updatedAt; }
public WebshopSettings setUpdatedAt(Date value) { this.updatedAt = value; return this; }
}
public static class WebshopSettingsResult
{
public WebshopSettings item = null;
public Integer statusCode = null;
public String message = null;
public WebshopSettings getItem() { return item; }
public WebshopSettingsResult setItem(WebshopSettings value) { this.item = value; return this; }
public Integer getStatusCode() { return statusCode; }
public WebshopSettingsResult setStatusCode(Integer value) { this.statusCode = value; return this; }
public String getMessage() { return message; }
public WebshopSettingsResult setMessage(String value) { this.message = value; return this; }
}
}
Java WebshopSettingsUpdateRequest 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/Settings/{OwnerId} HTTP/1.1
Host: stubbur-app.azurewebsites.net
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
ownerId: 0,
item:
{
id: 0,
ownerId: 0,
orderEmail: String,
pickupAllowed: False,
droppAllowed: False,
shippedAllowed: False,
pickupAddress: String,
pickupDescription: String,
droppFeeMinor: 0,
shippedFeeMinor: 0,
legacyTeamNumber: String,
createdAt: 0001-01-01,
updatedAt: 0001-01-01
}
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
item:
{
id: 0,
ownerId: 0,
orderEmail: String,
pickupAllowed: False,
droppAllowed: False,
shippedAllowed: False,
pickupAddress: String,
pickupDescription: String,
droppFeeMinor: 0,
shippedFeeMinor: 0,
legacyTeamNumber: String,
createdAt: 0001-01-01,
updatedAt: 0001-01-01
},
statusCode: 0,
message: String
}