TicketUserServices

<back to all web services

OwnerCardsPreviewDiscountRequest

Requires Authentication
Requires any of the roles:Admin, TeamAdmin, MobileApp, Admin, TeamAdmin, MobileAppRequires any of the permissions:ReadData, ReadData
The following routes are available for this service:
POST/OrderOwnerCards/previewDiscount
import java.math.*
import java.util.*
import net.servicestack.client.*
import com.google.gson.annotations.*
import com.google.gson.reflect.*


open class OwnerCardsPreviewDiscountRequest
{
    var code:String? = null
    var ownerCardTypeIds:ArrayList<Int> = ArrayList<Int>()
    var fullPhoneNumber:String? = null
    var isSubscription:Boolean? = null
}

open class PreviewDiscountResult
{
    var status:String? = null
    var reason:String? = null
    var message:LocalizedMessage? = null
    var discountCodeId:Int? = null
    var discountCodeTypeId:Int? = null
    var discount:DiscountSummary? = null
    var lines:ArrayList<DiscountLineResult> = ArrayList<DiscountLineResult>()
    var subtotalBefore:BigDecimal? = null
    var subtotalAfter:BigDecimal? = null
    var totalSavings:BigDecimal? = null
    var currency:String? = null
    var statusCode:Int? = null
}

open class LocalizedMessage
{
    @SerializedName("is") var Is:String? = null
    var en:String? = null
}

open class DiscountSummary
{
    @SerializedName("type") var Type:String? = null
    var value:BigDecimal? = null
}

open class DiscountLineResult
{
    var ticketTypeId:Int? = null
    var count:Int? = null
    var applied:Boolean? = null
    var unitBefore:BigDecimal? = null
    var unitAfter:BigDecimal? = null
    var lineBefore:BigDecimal? = null
    var lineAfter:BigDecimal? = null
}

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

POST /OrderOwnerCards/previewDiscount HTTP/1.1 
Host: stubbur-app.azurewebsites.net 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"code":"String","ownerCardTypeIds":[0],"fullPhoneNumber":"String","isSubscription":false}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"status":"String","reason":"String","message":{"is":"String","en":"String"},"discountCodeId":0,"discountCodeTypeId":0,"discount":{"type":"String","value":0},"lines":[{"ticketTypeId":0,"count":0,"applied":false,"unitBefore":0,"unitAfter":0,"lineBefore":0,"lineAfter":0}],"subtotalBefore":0,"subtotalAfter":0,"totalSavings":0,"currency":"String","statusCode":0}