TicketUserServices

<back to all web services

CalculateDiscountPricesRequest

Requires Authentication
Requires any of the roles:Admin, TeamAdmin, MobileAppRequires the permission:ReadData
The following routes are available for this service:
GET POST/ticketOrder/CalculatePrices
import java.math.*;
import java.util.*;
import net.servicestack.client.*;

public class dtos
{

    public static class CalculateDiscountPricesRequest
    {
        public String discountCode = null;
        public String fullPhoneNumber = null;
        public Integer eventId = null;
        public ArrayList<TicketDetails> orderDetails = null;
        
        public String getDiscountCode() { return discountCode; }
        public CalculateDiscountPricesRequest setDiscountCode(String value) { this.discountCode = value; return this; }
        public String getFullPhoneNumber() { return fullPhoneNumber; }
        public CalculateDiscountPricesRequest setFullPhoneNumber(String value) { this.fullPhoneNumber = value; return this; }
        public Integer getEventId() { return eventId; }
        public CalculateDiscountPricesRequest setEventId(Integer value) { this.eventId = value; return this; }
        public ArrayList<TicketDetails> getOrderDetails() { return orderDetails; }
        public CalculateDiscountPricesRequest setOrderDetails(ArrayList<TicketDetails> value) { this.orderDetails = value; return this; }
    }

    public static class TicketDetails
    {
        public Integer id = null;
        public Integer ticketId = null;
        public Integer eventSeriesTicketType = null;
        public Integer eventSeriesOwnerTicketType = null;
        public BigDecimal ticketPrice = null;
        public BigDecimal totalPrice = null;
        public Integer count = null;
        public String ticketColor = null;
        public Boolean showUsedTickets = null;
        public String ticketName = null;
        public String ticketDisplayString = null;
        public Integer ticketDetailsTransferredFrom = null;
        public Integer teamPassId = null;
        public Boolean isSpecialTicket = null;
        public String specialTicketId = null;
        public Boolean justChangedBySQL = null;
        public Date sqlJustChangedTimeStamp = null;
        public String currency = null;
        public String discountCode = null;
        public BigDecimal totalDiscount = null;
        public BigDecimal totalAmountBeforeDiscount = null;
        public BigDecimal ticketPriceBeforeDiscount = null;
        
        public Integer getId() { return id; }
        public TicketDetails setId(Integer value) { this.id = value; return this; }
        public Integer getTicketId() { return ticketId; }
        public TicketDetails setTicketId(Integer value) { this.ticketId = value; return this; }
        public Integer getEventSeriesTicketType() { return eventSeriesTicketType; }
        public TicketDetails setEventSeriesTicketType(Integer value) { this.eventSeriesTicketType = value; return this; }
        public Integer getEventSeriesOwnerTicketType() { return eventSeriesOwnerTicketType; }
        public TicketDetails setEventSeriesOwnerTicketType(Integer value) { this.eventSeriesOwnerTicketType = value; return this; }
        public BigDecimal getTicketPrice() { return ticketPrice; }
        public TicketDetails setTicketPrice(BigDecimal value) { this.ticketPrice = value; return this; }
        public BigDecimal getTotalPrice() { return totalPrice; }
        public TicketDetails setTotalPrice(BigDecimal value) { this.totalPrice = value; return this; }
        public Integer getCount() { return count; }
        public TicketDetails setCount(Integer value) { this.count = value; return this; }
        public String getTicketColor() { return ticketColor; }
        public TicketDetails setTicketColor(String value) { this.ticketColor = value; return this; }
        public Boolean isShowUsedTickets() { return showUsedTickets; }
        public TicketDetails setShowUsedTickets(Boolean value) { this.showUsedTickets = value; return this; }
        public String getTicketName() { return ticketName; }
        public TicketDetails setTicketName(String value) { this.ticketName = value; return this; }
        public String getTicketDisplayString() { return ticketDisplayString; }
        public TicketDetails setTicketDisplayString(String value) { this.ticketDisplayString = value; return this; }
        public Integer getTicketDetailsTransferredFrom() { return ticketDetailsTransferredFrom; }
        public TicketDetails setTicketDetailsTransferredFrom(Integer value) { this.ticketDetailsTransferredFrom = value; return this; }
        public Integer getTeamPassId() { return teamPassId; }
        public TicketDetails setTeamPassId(Integer value) { this.teamPassId = value; return this; }
        public Boolean getIsSpecialTicket() { return isSpecialTicket; }
        public TicketDetails setIsSpecialTicket(Boolean value) { this.isSpecialTicket = value; return this; }
        public String getSpecialTicketId() { return specialTicketId; }
        public TicketDetails setSpecialTicketId(String value) { this.specialTicketId = value; return this; }
        public Boolean isJustChangedBySQL() { return justChangedBySQL; }
        public TicketDetails setJustChangedBySQL(Boolean value) { this.justChangedBySQL = value; return this; }
        public Date getSqlJustChangedTimeStamp() { return sqlJustChangedTimeStamp; }
        public TicketDetails setSqlJustChangedTimeStamp(Date value) { this.sqlJustChangedTimeStamp = value; return this; }
        public String getCurrency() { return currency; }
        public TicketDetails setCurrency(String value) { this.currency = value; return this; }
        public String getDiscountCode() { return discountCode; }
        public TicketDetails setDiscountCode(String value) { this.discountCode = value; return this; }
        public BigDecimal getTotalDiscount() { return totalDiscount; }
        public TicketDetails setTotalDiscount(BigDecimal value) { this.totalDiscount = value; return this; }
        public BigDecimal getTotalAmountBeforeDiscount() { return totalAmountBeforeDiscount; }
        public TicketDetails setTotalAmountBeforeDiscount(BigDecimal value) { this.totalAmountBeforeDiscount = value; return this; }
        public BigDecimal getTicketPriceBeforeDiscount() { return ticketPriceBeforeDiscount; }
        public TicketDetails setTicketPriceBeforeDiscount(BigDecimal value) { this.ticketPriceBeforeDiscount = value; return this; }
    }

    public static class CalculateDiscountPricesResult
    {
        public ArrayList<TicketDetails> orderDetails = null;
        public Integer statusCode = null;
        public String message = null;
        
        public ArrayList<TicketDetails> getOrderDetails() { return orderDetails; }
        public CalculateDiscountPricesResult setOrderDetails(ArrayList<TicketDetails> value) { this.orderDetails = value; return this; }
        public Integer getStatusCode() { return statusCode; }
        public CalculateDiscountPricesResult setStatusCode(Integer value) { this.statusCode = value; return this; }
        public String getMessage() { return message; }
        public CalculateDiscountPricesResult setMessage(String value) { this.message = value; return this; }
    }

}

Java CalculateDiscountPricesRequest 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 /ticketOrder/CalculatePrices HTTP/1.1 
Host: stubbur-app.azurewebsites.net 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"discountCode":"String","fullPhoneNumber":"String","eventId":0,"orderDetails":[{"id":0,"ticketId":0,"eventSeriesTicketType":0,"eventSeriesOwnerTicketType":0,"ticketPrice":0,"totalPrice":0,"count":0,"ticketColor":"String","showUsedTickets":false,"ticketName":"String","ticketDisplayString":"String","ticketDetailsTransferredFrom":0,"teamPassId":0,"isSpecialTicket":false,"specialTicketId":"String","justChangedBySQL":false,"sqlJustChangedTimeStamp":"0001-01-01T00:00:00.0000000","currency":"String","discountCode":"String","totalDiscount":0,"totalAmountBeforeDiscount":0,"ticketPriceBeforeDiscount":0}]}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"orderDetails":[{"id":0,"ticketId":0,"eventSeriesTicketType":0,"eventSeriesOwnerTicketType":0,"ticketPrice":0,"totalPrice":0,"count":0,"ticketColor":"String","showUsedTickets":false,"ticketName":"String","ticketDisplayString":"String","ticketDetailsTransferredFrom":0,"teamPassId":0,"isSpecialTicket":false,"specialTicketId":"String","justChangedBySQL":false,"sqlJustChangedTimeStamp":"0001-01-01T00:00:00.0000000","currency":"String","discountCode":"String","totalDiscount":0,"totalAmountBeforeDiscount":0,"ticketPriceBeforeDiscount":0}],"statusCode":0,"message":"String"}