TicketUserServices

<back to all web services

WebshopSettingsGetRequest

Requires Authentication
Requires any of the roles:Admin, TeamAdminRequires the permission:ReadData
The following routes are available for this service:
GET/Webshop/Settings/{OwnerId}
import java.math.*;
import java.util.*;
import net.servicestack.client.*;

public class dtos
{

    public static class WebshopSettingsGetRequest
    {
        public Integer ownerId = null;
        
        public Integer getOwnerId() { return ownerId; }
        public WebshopSettingsGetRequest setOwnerId(Integer value) { this.ownerId = 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; }
    }

    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; }
    }

}

Java WebshopSettingsGetRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv

HTTP + CSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /Webshop/Settings/{OwnerId} HTTP/1.1 
Host: stubbur-app.azurewebsites.net 
Accept: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
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-01T00:00:00.0000000","updatedAt":"0001-01-01T00:00:00.0000000"},"statusCode":0,"message":"String"}