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
namespace TicketUserServices.ServiceModel

open System
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations

    [<AllowNullLiteral>]
    type LocalizedMessage() = 
        member val Is:String = null with get,set
        member val En:String = null with get,set

    [<AllowNullLiteral>]
    type DiscountSummary() = 
        member val Type:String = null with get,set
        member val Value:Decimal = new Decimal() with get,set

    [<AllowNullLiteral>]
    type DiscountLineResult() = 
        member val TicketTypeId:Nullable<Int32> = new Nullable<Int32>() with get,set
        member val Count:Int32 = new Int32() with get,set
        member val Applied:Boolean = new Boolean() with get,set
        member val UnitBefore:Decimal = new Decimal() with get,set
        member val UnitAfter:Decimal = new Decimal() with get,set
        member val LineBefore:Decimal = new Decimal() with get,set
        member val LineAfter:Decimal = new Decimal() with get,set

    [<AllowNullLiteral>]
    type PreviewDiscountResult() = 
        member val Status:String = null with get,set
        member val Reason:String = null with get,set
        member val Message:LocalizedMessage = null with get,set
        member val DiscountCodeId:Nullable<Int32> = new Nullable<Int32>() with get,set
        member val DiscountCodeTypeId:Nullable<Int32> = new Nullable<Int32>() with get,set
        member val Discount:DiscountSummary = null with get,set
        member val Lines:ResizeArray<DiscountLineResult> = new ResizeArray<DiscountLineResult>() with get,set
        member val SubtotalBefore:Decimal = new Decimal() with get,set
        member val SubtotalAfter:Decimal = new Decimal() with get,set
        member val TotalSavings:Decimal = new Decimal() with get,set
        member val Currency:String = null with get,set
        member val StatusCode:Int32 = new Int32() with get,set

    [<AllowNullLiteral>]
    type OwnerCardsPreviewDiscountRequest() = 
        member val Code:String = null with get,set
        member val OwnerCardTypeIds:ResizeArray<Int32> = new ResizeArray<Int32>() with get,set
        member val FullPhoneNumber:String = null with get,set
        member val IsSubscription:Nullable<Boolean> = new Nullable<Boolean>() with get,set

F# OwnerCardsPreviewDiscountRequest DTOs

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

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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: application/json
Content-Type: application/json
Content-Length: length

{"code":"String","ownerCardTypeIds":[0],"fullPhoneNumber":"String","isSubscription":false}
HTTP/1.1 200 OK
Content-Type: application/json
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}