/* Options: Date: 2026-05-19 04:44:56 Version: 6.10 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://stubbur-app.azurewebsites.net //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: CalculateDiscountPricesRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class TicketDetails implements IConvertible { int? id; int? ticketId; int? eventSeriesTicketType; int? eventSeriesOwnerTicketType; double? ticketPrice; double? totalPrice; int? count; String? ticketColor; bool? showUsedTickets; String? ticketName; String? ticketDisplayString; int? ticketDetailsTransferredFrom; int? teamPassId; bool? isSpecialTicket; String? specialTicketId; bool? justChangedBySQL; DateTime? sqlJustChangedTimeStamp; String? currency; String? discountCode; double? totalDiscount; double? totalAmountBeforeDiscount; double? ticketPriceBeforeDiscount; TicketDetails({this.id,this.ticketId,this.eventSeriesTicketType,this.eventSeriesOwnerTicketType,this.ticketPrice,this.totalPrice,this.count,this.ticketColor,this.showUsedTickets,this.ticketName,this.ticketDisplayString,this.ticketDetailsTransferredFrom,this.teamPassId,this.isSpecialTicket,this.specialTicketId,this.justChangedBySQL,this.sqlJustChangedTimeStamp,this.currency,this.discountCode,this.totalDiscount,this.totalAmountBeforeDiscount,this.ticketPriceBeforeDiscount}); TicketDetails.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; ticketId = json['ticketId']; eventSeriesTicketType = json['eventSeriesTicketType']; eventSeriesOwnerTicketType = json['eventSeriesOwnerTicketType']; ticketPrice = JsonConverters.toDouble(json['ticketPrice']); totalPrice = JsonConverters.toDouble(json['totalPrice']); count = json['count']; ticketColor = json['ticketColor']; showUsedTickets = json['showUsedTickets']; ticketName = json['ticketName']; ticketDisplayString = json['ticketDisplayString']; ticketDetailsTransferredFrom = json['ticketDetailsTransferredFrom']; teamPassId = json['teamPassId']; isSpecialTicket = json['isSpecialTicket']; specialTicketId = json['specialTicketId']; justChangedBySQL = json['justChangedBySQL']; sqlJustChangedTimeStamp = JsonConverters.fromJson(json['sqlJustChangedTimeStamp'],'DateTime',context!); currency = json['currency']; discountCode = json['discountCode']; totalDiscount = JsonConverters.toDouble(json['totalDiscount']); totalAmountBeforeDiscount = JsonConverters.toDouble(json['totalAmountBeforeDiscount']); ticketPriceBeforeDiscount = JsonConverters.toDouble(json['ticketPriceBeforeDiscount']); return this; } Map toJson() => { 'id': id, 'ticketId': ticketId, 'eventSeriesTicketType': eventSeriesTicketType, 'eventSeriesOwnerTicketType': eventSeriesOwnerTicketType, 'ticketPrice': ticketPrice, 'totalPrice': totalPrice, 'count': count, 'ticketColor': ticketColor, 'showUsedTickets': showUsedTickets, 'ticketName': ticketName, 'ticketDisplayString': ticketDisplayString, 'ticketDetailsTransferredFrom': ticketDetailsTransferredFrom, 'teamPassId': teamPassId, 'isSpecialTicket': isSpecialTicket, 'specialTicketId': specialTicketId, 'justChangedBySQL': justChangedBySQL, 'sqlJustChangedTimeStamp': JsonConverters.toJson(sqlJustChangedTimeStamp,'DateTime',context!), 'currency': currency, 'discountCode': discountCode, 'totalDiscount': totalDiscount, 'totalAmountBeforeDiscount': totalAmountBeforeDiscount, 'ticketPriceBeforeDiscount': ticketPriceBeforeDiscount }; getTypeName() => "TicketDetails"; TypeContext? context = _ctx; } class CalculateDiscountPricesResult implements IConvertible { List? orderDetails; int? statusCode; String? message; CalculateDiscountPricesResult({this.orderDetails,this.statusCode,this.message}); CalculateDiscountPricesResult.fromJson(Map json) { fromMap(json); } fromMap(Map json) { orderDetails = JsonConverters.fromJson(json['orderDetails'],'List',context!); statusCode = json['statusCode']; message = json['message']; return this; } Map toJson() => { 'orderDetails': JsonConverters.toJson(orderDetails,'List',context!), 'statusCode': statusCode, 'message': message }; getTypeName() => "CalculateDiscountPricesResult"; TypeContext? context = _ctx; } // @Route("/ticketOrder/CalculatePrices", "GET POST") class CalculateDiscountPricesRequest implements IReturn, IConvertible { String? discountCode; String? fullPhoneNumber; int? eventId; List? orderDetails; CalculateDiscountPricesRequest({this.discountCode,this.fullPhoneNumber,this.eventId,this.orderDetails}); CalculateDiscountPricesRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { discountCode = json['discountCode']; fullPhoneNumber = json['fullPhoneNumber']; eventId = json['eventId']; orderDetails = JsonConverters.fromJson(json['orderDetails'],'List',context!); return this; } Map toJson() => { 'discountCode': discountCode, 'fullPhoneNumber': fullPhoneNumber, 'eventId': eventId, 'orderDetails': JsonConverters.toJson(orderDetails,'List',context!) }; createResponse() => CalculateDiscountPricesResult(); getResponseTypeName() => "CalculateDiscountPricesResult"; getTypeName() => "CalculateDiscountPricesRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'stubbur_app.azurewebsites.net', types: { 'TicketDetails': TypeInfo(TypeOf.Class, create:() => TicketDetails()), 'CalculateDiscountPricesResult': TypeInfo(TypeOf.Class, create:() => CalculateDiscountPricesResult()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'CalculateDiscountPricesRequest': TypeInfo(TypeOf.Class, create:() => CalculateDiscountPricesRequest()), });