/* Options: Date: 2026-10-08 22:19:16 Version: 6.21 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://cert.cendyn.com/CenResServiceR2Test //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: HotelPackage.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class PackageDetail implements IConvertible { DateTime? startDate; DateTime? endDate; double? priceAmount; double? posAllowance; int? pointsTotal; String? action; double? amountBeforeTax; double? amountAfterTax; String? itemName; int? quantity; String? code; String? itemId; bool? showInReservation; bool? useInCRS; bool? addToRate; bool? isFixedCharge; String? recurrence; String? relation; bool? monday; bool? tuesday; bool? wednesday; bool? thursday; bool? friday; bool? saturday; bool? sunday; PackageDetail({this.startDate,this.endDate,this.priceAmount,this.posAllowance,this.pointsTotal,this.action,this.amountBeforeTax,this.amountAfterTax,this.itemName,this.quantity,this.code,this.itemId,this.showInReservation,this.useInCRS,this.addToRate,this.isFixedCharge,this.recurrence,this.relation,this.monday,this.tuesday,this.wednesday,this.thursday,this.friday,this.saturday,this.sunday}); PackageDetail.fromJson(Map json) { fromMap(json); } fromMap(Map json) { startDate = JsonConverters.fromJson(json['startDate'],'DateTime',context!); endDate = JsonConverters.fromJson(json['endDate'],'DateTime',context!); priceAmount = JsonConverters.toDouble(json['priceAmount']); posAllowance = JsonConverters.toDouble(json['posAllowance']); pointsTotal = json['pointsTotal']; action = json['action']; amountBeforeTax = JsonConverters.toDouble(json['amountBeforeTax']); amountAfterTax = JsonConverters.toDouble(json['amountAfterTax']); itemName = json['itemName']; quantity = json['quantity']; code = json['code']; itemId = json['itemId']; showInReservation = json['showInReservation']; useInCRS = json['useInCRS']; addToRate = json['addToRate']; isFixedCharge = json['isFixedCharge']; recurrence = json['recurrence']; relation = json['relation']; monday = json['monday']; tuesday = json['tuesday']; wednesday = json['wednesday']; thursday = json['thursday']; friday = json['friday']; saturday = json['saturday']; sunday = json['sunday']; return this; } Map toJson() => { 'startDate': JsonConverters.toJson(startDate,'DateTime',context!), 'endDate': JsonConverters.toJson(endDate,'DateTime',context!), 'priceAmount': priceAmount, 'posAllowance': posAllowance, 'pointsTotal': pointsTotal, 'action': action, 'amountBeforeTax': amountBeforeTax, 'amountAfterTax': amountAfterTax, 'itemName': itemName, 'quantity': quantity, 'code': code, 'itemId': itemId, 'showInReservation': showInReservation, 'useInCRS': useInCRS, 'addToRate': addToRate, 'isFixedCharge': isFixedCharge, 'recurrence': recurrence, 'relation': relation, 'monday': monday, 'tuesday': tuesday, 'wednesday': wednesday, 'thursday': thursday, 'friday': friday, 'saturday': saturday, 'sunday': sunday }; getTypeName() => "PackageDetail"; TypeContext? context = _ctx; } class PackageItem implements IConvertible { String? itemName; int? quantity; PackageItem({this.itemName,this.quantity}); PackageItem.fromJson(Map json) { fromMap(json); } fromMap(Map json) { itemName = json['itemName']; quantity = json['quantity']; return this; } Map toJson() => { 'itemName': itemName, 'quantity': quantity }; getTypeName() => "PackageItem"; TypeContext? context = _ctx; } class Package implements IConvertible { String? externalID; String? cendynPropertyID; String? hotelCode; String? packageCode; String? packageDescription; String? shortDescription; String? forecastGroup; bool? printSeparately; bool? addToRate; double? priceAmount; bool? taxIncluded; String? currencyCode; bool? sellSeparate; bool? postNextDay; bool? forecastNextDay; bool? cateringPackage; bool? redemption; bool? overrideFixedRate; String? calculationRule; String? postingRhythm; String? packageElement; String? addToRateMode; bool? isActive; DateTime? inactiveDate; String? sourceName; String? sourceID; String? action; List? packageDetails; List? packageItems; Package({this.externalID,this.cendynPropertyID,this.hotelCode,this.packageCode,this.packageDescription,this.shortDescription,this.forecastGroup,this.printSeparately,this.addToRate,this.priceAmount,this.taxIncluded,this.currencyCode,this.sellSeparate,this.postNextDay,this.forecastNextDay,this.cateringPackage,this.redemption,this.overrideFixedRate,this.calculationRule,this.postingRhythm,this.packageElement,this.addToRateMode,this.isActive,this.inactiveDate,this.sourceName,this.sourceID,this.action,this.packageDetails,this.packageItems}); Package.fromJson(Map json) { fromMap(json); } fromMap(Map json) { externalID = json['externalID']; cendynPropertyID = json['cendynPropertyID']; hotelCode = json['hotelCode']; packageCode = json['packageCode']; packageDescription = json['packageDescription']; shortDescription = json['shortDescription']; forecastGroup = json['forecastGroup']; printSeparately = json['printSeparately']; addToRate = json['addToRate']; priceAmount = JsonConverters.toDouble(json['priceAmount']); taxIncluded = json['taxIncluded']; currencyCode = json['currencyCode']; sellSeparate = json['sellSeparate']; postNextDay = json['postNextDay']; forecastNextDay = json['forecastNextDay']; cateringPackage = json['cateringPackage']; redemption = json['redemption']; overrideFixedRate = json['overrideFixedRate']; calculationRule = json['calculationRule']; postingRhythm = json['postingRhythm']; packageElement = json['packageElement']; addToRateMode = json['addToRateMode']; isActive = json['isActive']; inactiveDate = JsonConverters.fromJson(json['inactiveDate'],'DateTime',context!); sourceName = json['sourceName']; sourceID = json['sourceID']; action = json['action']; packageDetails = JsonConverters.fromJson(json['packageDetails'],'List',context!); packageItems = JsonConverters.fromJson(json['packageItems'],'List',context!); return this; } Map toJson() => { 'externalID': externalID, 'cendynPropertyID': cendynPropertyID, 'hotelCode': hotelCode, 'packageCode': packageCode, 'packageDescription': packageDescription, 'shortDescription': shortDescription, 'forecastGroup': forecastGroup, 'printSeparately': printSeparately, 'addToRate': addToRate, 'priceAmount': priceAmount, 'taxIncluded': taxIncluded, 'currencyCode': currencyCode, 'sellSeparate': sellSeparate, 'postNextDay': postNextDay, 'forecastNextDay': forecastNextDay, 'cateringPackage': cateringPackage, 'redemption': redemption, 'overrideFixedRate': overrideFixedRate, 'calculationRule': calculationRule, 'postingRhythm': postingRhythm, 'packageElement': packageElement, 'addToRateMode': addToRateMode, 'isActive': isActive, 'inactiveDate': JsonConverters.toJson(inactiveDate,'DateTime',context!), 'sourceName': sourceName, 'sourceID': sourceID, 'action': action, 'packageDetails': JsonConverters.toJson(packageDetails,'List',context!), 'packageItems': JsonConverters.toJson(packageItems,'List',context!) }; getTypeName() => "Package"; TypeContext? context = _ctx; } class Response implements IConvertible { String? statusCode; int? recordCount; int? errorCount; Response({this.statusCode,this.recordCount,this.errorCount}); Response.fromJson(Map json) { fromMap(json); } fromMap(Map json) { statusCode = json['statusCode']; recordCount = json['recordCount']; errorCount = json['errorCount']; return this; } Map toJson() => { 'statusCode': statusCode, 'recordCount': recordCount, 'errorCount': errorCount }; getTypeName() => "Response"; TypeContext? context = _ctx; } // @Route("/HotelPackage/{SubscriptionId}/{CendynPropertyId}", "POST") class HotelPackage implements IReturn, IConvertible { Package? package; String? subscriptionId; String? cendynPropertyId; HotelPackage({this.package,this.subscriptionId,this.cendynPropertyId}); HotelPackage.fromJson(Map json) { fromMap(json); } fromMap(Map json) { package = JsonConverters.fromJson(json['package'],'Package',context!); subscriptionId = json['subscriptionId']; cendynPropertyId = json['cendynPropertyId']; return this; } Map toJson() => { 'package': JsonConverters.toJson(package,'Package',context!), 'subscriptionId': subscriptionId, 'cendynPropertyId': cendynPropertyId }; createResponse() => Response(); getResponseTypeName() => "Response"; getTypeName() => "HotelPackage"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'cert.cendyn.com', types: { 'PackageDetail': TypeInfo(TypeOf.Class, create:() => PackageDetail()), 'PackageItem': TypeInfo(TypeOf.Class, create:() => PackageItem()), 'Package': TypeInfo(TypeOf.Class, create:() => Package()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'Response': TypeInfo(TypeOf.Class, create:() => Response()), 'HotelPackage': TypeInfo(TypeOf.Class, create:() => HotelPackage()), });