TicketUserServices

<back to all web services

WebshopSettingsUpdateRequest

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


open class WebshopSettingsUpdateRequest
{
    var ownerId:Int? = null
    var item:WebshopSettings? = null
}

open class WebshopSettings
{
    var id:Int? = null
    var ownerId:Int? = null
    @StringLength(200)
    var orderEmail:String? = null

    var pickupAllowed:Boolean? = null
    var droppAllowed:Boolean? = null
    var shippedAllowed:Boolean? = null
    @StringLength(300)
    var pickupAddress:String? = null

    @StringLength(500)
    var pickupDescription:String? = null

    var droppFeeMinor:Int? = null
    var shippedFeeMinor:Int? = null
    @StringLength(50)
    var legacyTeamNumber:String? = null

    var createdAt:Date? = null
    var updatedAt:Date? = null
}

open class WebshopSettingsResult
{
    var item:WebshopSettings? = null
    var statusCode:Int? = null
    var message:String? = null
}

Kotlin WebshopSettingsUpdateRequest 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.

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