/* Options: Date: 2026-10-08 22:18:33 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: ReservationStatusNoticePost.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class StayHistoryRevenue implements IConvertible { String? recordStatus; // @DataMember(IsRequired=true) String? revenueGroup; // @DataMember(IsRequired=true) String? revenueType; // @DataMember(IsRequired=true) double? amount; String? currencyCode; String? folioWindow; DateTime? transactionDate; DateTime? inactiveDate; StayHistoryRevenue({this.recordStatus,this.revenueGroup,this.revenueType,this.amount,this.currencyCode,this.folioWindow,this.transactionDate,this.inactiveDate}); StayHistoryRevenue.fromJson(Map json) { fromMap(json); } fromMap(Map json) { recordStatus = json['recordStatus']; revenueGroup = json['revenueGroup']; revenueType = json['revenueType']; amount = JsonConverters.toDouble(json['amount']); currencyCode = json['currencyCode']; folioWindow = json['folioWindow']; transactionDate = JsonConverters.fromJson(json['transactionDate'],'DateTime',context!); inactiveDate = JsonConverters.fromJson(json['inactiveDate'],'DateTime',context!); return this; } Map toJson() => { 'recordStatus': recordStatus, 'revenueGroup': revenueGroup, 'revenueType': revenueType, 'amount': amount, 'currencyCode': currencyCode, 'folioWindow': folioWindow, 'transactionDate': JsonConverters.toJson(transactionDate,'DateTime',context!), 'inactiveDate': JsonConverters.toJson(inactiveDate,'DateTime',context!) }; getTypeName() => "StayHistoryRevenue"; TypeContext? context = _ctx; } class UniqueIDType implements IConvertible { String? id; String? type; String? Context; UniqueIDType({this.id,this.type,this.Context}); UniqueIDType.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; type = json['type']; Context = json['context']; return this; } Map toJson() => { 'id': id, 'type': type, 'context': Context }; getTypeName() => "UniqueIDType"; TypeContext? context = _ctx; } class ReservationStatusNotice implements IConvertible { String? cendynPropertyId; String? externalResId1; String? externalResId2; String? resStatus; String? cancellationID; DateTime? cancellationDate; DateTime? dateResUpdated; String? resUpdatedBy; String? roomNumber; DateTime? roomNumberStartDate; DateTime? roomNumberEndDate; List? stayHistoryRevenueCollection; DateTime? resArriveDate; DateTime? resDepartDate; String? currency; String? roomType; String? externalProfileID; List? uniqueIDs; ReservationStatusNotice({this.cendynPropertyId,this.externalResId1,this.externalResId2,this.resStatus,this.cancellationID,this.cancellationDate,this.dateResUpdated,this.resUpdatedBy,this.roomNumber,this.roomNumberStartDate,this.roomNumberEndDate,this.stayHistoryRevenueCollection,this.resArriveDate,this.resDepartDate,this.currency,this.roomType,this.externalProfileID,this.uniqueIDs}); ReservationStatusNotice.fromJson(Map json) { fromMap(json); } fromMap(Map json) { cendynPropertyId = json['cendynPropertyId']; externalResId1 = json['externalResId1']; externalResId2 = json['externalResId2']; resStatus = json['resStatus']; cancellationID = json['cancellationID']; cancellationDate = JsonConverters.fromJson(json['cancellationDate'],'DateTime',context!); dateResUpdated = JsonConverters.fromJson(json['dateResUpdated'],'DateTime',context!); resUpdatedBy = json['resUpdatedBy']; roomNumber = json['roomNumber']; roomNumberStartDate = JsonConverters.fromJson(json['roomNumberStartDate'],'DateTime',context!); roomNumberEndDate = JsonConverters.fromJson(json['roomNumberEndDate'],'DateTime',context!); stayHistoryRevenueCollection = JsonConverters.fromJson(json['stayHistoryRevenueCollection'],'List',context!); resArriveDate = JsonConverters.fromJson(json['resArriveDate'],'DateTime',context!); resDepartDate = JsonConverters.fromJson(json['resDepartDate'],'DateTime',context!); currency = json['currency']; roomType = json['roomType']; externalProfileID = json['externalProfileID']; uniqueIDs = JsonConverters.fromJson(json['uniqueIDs'],'List',context!); return this; } Map toJson() => { 'cendynPropertyId': cendynPropertyId, 'externalResId1': externalResId1, 'externalResId2': externalResId2, 'resStatus': resStatus, 'cancellationID': cancellationID, 'cancellationDate': JsonConverters.toJson(cancellationDate,'DateTime',context!), 'dateResUpdated': JsonConverters.toJson(dateResUpdated,'DateTime',context!), 'resUpdatedBy': resUpdatedBy, 'roomNumber': roomNumber, 'roomNumberStartDate': JsonConverters.toJson(roomNumberStartDate,'DateTime',context!), 'roomNumberEndDate': JsonConverters.toJson(roomNumberEndDate,'DateTime',context!), 'stayHistoryRevenueCollection': JsonConverters.toJson(stayHistoryRevenueCollection,'List',context!), 'resArriveDate': JsonConverters.toJson(resArriveDate,'DateTime',context!), 'resDepartDate': JsonConverters.toJson(resDepartDate,'DateTime',context!), 'currency': currency, 'roomType': roomType, 'externalProfileID': externalProfileID, 'uniqueIDs': JsonConverters.toJson(uniqueIDs,'List',context!) }; getTypeName() => "ReservationStatusNotice"; 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("/reservation/notice/{SubscriptionId}", "POST") class ReservationStatusNoticePost implements IReturn, IConvertible { ReservationStatusNotice? noticeMessage; String? subscriptionId; ReservationStatusNoticePost({this.noticeMessage,this.subscriptionId}); ReservationStatusNoticePost.fromJson(Map json) { fromMap(json); } fromMap(Map json) { noticeMessage = JsonConverters.fromJson(json['noticeMessage'],'ReservationStatusNotice',context!); subscriptionId = json['subscriptionId']; return this; } Map toJson() => { 'noticeMessage': JsonConverters.toJson(noticeMessage,'ReservationStatusNotice',context!), 'subscriptionId': subscriptionId }; createResponse() => Response(); getResponseTypeName() => "Response"; getTypeName() => "ReservationStatusNoticePost"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'cert.cendyn.com', types: { 'StayHistoryRevenue': TypeInfo(TypeOf.Class, create:() => StayHistoryRevenue()), 'UniqueIDType': TypeInfo(TypeOf.Class, create:() => UniqueIDType()), 'ReservationStatusNotice': TypeInfo(TypeOf.Class, create:() => ReservationStatusNotice()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'Response': TypeInfo(TypeOf.Class, create:() => Response()), 'ReservationStatusNoticePost': TypeInfo(TypeOf.Class, create:() => ReservationStatusNoticePost()), });