/* Options: Date: 2025-05-05 18:43:02 Version: 8.61 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://prod-api-agency-orch-mb-dhc.rapp-customers.co.uk //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: GetOrderCustomerRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class Order implements IConvertible { String? Guid; String? Reference; int? Status; String? CustomerId; String? MulesoftReference; String? GasId; String? OrderDate; String? OfferSnapShot; Order({this.Guid,this.Reference,this.Status,this.CustomerId,this.MulesoftReference,this.GasId,this.OrderDate,this.OfferSnapShot}); Order.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Guid = json['Guid']; Reference = json['Reference']; Status = json['Status']; CustomerId = json['CustomerId']; MulesoftReference = json['MulesoftReference']; GasId = json['GasId']; OrderDate = json['OrderDate']; OfferSnapShot = json['OfferSnapShot']; return this; } Map toJson() => { 'Guid': Guid, 'Reference': Reference, 'Status': Status, 'CustomerId': CustomerId, 'MulesoftReference': MulesoftReference, 'GasId': GasId, 'OrderDate': OrderDate, 'OfferSnapShot': OfferSnapShot }; getTypeName() => "Order"; TypeContext? context = _ctx; } class OrderStatus implements IConvertible { int? Id; String? Description; OrderStatus({this.Id,this.Description}); OrderStatus.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Id = json['Id']; Description = json['Description']; return this; } Map toJson() => { 'Id': Id, 'Description': Description }; getTypeName() => "OrderStatus"; TypeContext? context = _ctx; } class OnlineShowroomStatus implements IConvertible { int? Id; String? Description; String? Slug; bool? Current; bool? Completed; List? OrderStatuses = []; OnlineShowroomStatus({this.Id,this.Description,this.Slug,this.Current,this.Completed,this.OrderStatuses}); OnlineShowroomStatus.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Id = json['Id']; Description = json['Description']; Slug = json['Slug']; Current = json['Current']; Completed = json['Completed']; OrderStatuses = JsonConverters.fromJson(json['OrderStatuses'],'List',context!); return this; } Map toJson() => { 'Id': Id, 'Description': Description, 'Slug': Slug, 'Current': Current, 'Completed': Completed, 'OrderStatuses': JsonConverters.toJson(OrderStatuses,'List',context!) }; getTypeName() => "OnlineShowroomStatus"; TypeContext? context = _ctx; } class Retailer implements IConvertible { String? Gssn; String? Description; bool? CampaignExcluded; Retailer({this.Gssn,this.Description,this.CampaignExcluded}); Retailer.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Gssn = json['Gssn']; Description = json['Description']; CampaignExcluded = json['CampaignExcluded']; return this; } Map toJson() => { 'Gssn': Gssn, 'Description': Description, 'CampaignExcluded': CampaignExcluded }; getTypeName() => "Retailer"; TypeContext? context = _ctx; } class OnlineShowroomVehicle implements IConvertible { String? Vin; String? VehicleClass; String? TransmissionType; String? FuelType; String? ImageUrl; String? Colour; String? Description; String? BodyStyle; String? UpholsteryType; Retailer? Retailer; double? OTR; double? ActualPrice; double? TotalOfferValue; double? NetPrice; String? VehicleType; String? OfferExpiryDate; OnlineShowroomVehicle({this.Vin,this.VehicleClass,this.TransmissionType,this.FuelType,this.ImageUrl,this.Colour,this.Description,this.BodyStyle,this.UpholsteryType,this.Retailer,this.OTR,this.ActualPrice,this.TotalOfferValue,this.NetPrice,this.VehicleType,this.OfferExpiryDate}); OnlineShowroomVehicle.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Vin = json['Vin']; VehicleClass = json['VehicleClass']; TransmissionType = json['TransmissionType']; FuelType = json['FuelType']; ImageUrl = json['ImageUrl']; Colour = json['Colour']; Description = json['Description']; BodyStyle = json['BodyStyle']; UpholsteryType = json['UpholsteryType']; Retailer = JsonConverters.fromJson(json['Retailer'],'Retailer',context!); OTR = JsonConverters.toDouble(json['OTR']); ActualPrice = JsonConverters.toDouble(json['ActualPrice']); TotalOfferValue = JsonConverters.toDouble(json['TotalOfferValue']); NetPrice = JsonConverters.toDouble(json['NetPrice']); VehicleType = json['VehicleType']; OfferExpiryDate = json['OfferExpiryDate']; return this; } Map toJson() => { 'Vin': Vin, 'VehicleClass': VehicleClass, 'TransmissionType': TransmissionType, 'FuelType': FuelType, 'ImageUrl': ImageUrl, 'Colour': Colour, 'Description': Description, 'BodyStyle': BodyStyle, 'UpholsteryType': UpholsteryType, 'Retailer': JsonConverters.toJson(Retailer,'Retailer',context!), 'OTR': OTR, 'ActualPrice': ActualPrice, 'TotalOfferValue': TotalOfferValue, 'NetPrice': NetPrice, 'VehicleType': VehicleType, 'OfferExpiryDate': OfferExpiryDate }; getTypeName() => "OnlineShowroomVehicle"; TypeContext? context = _ctx; } class PaymentDetail implements IConvertible { String? PaymentType; String? PaymentLink; PaymentDetail({this.PaymentType,this.PaymentLink}); PaymentDetail.fromJson(Map json) { fromMap(json); } fromMap(Map json) { PaymentType = json['PaymentType']; PaymentLink = json['PaymentLink']; return this; } Map toJson() => { 'PaymentType': PaymentType, 'PaymentLink': PaymentLink }; getTypeName() => "PaymentDetail"; TypeContext? context = _ctx; } class OnlineShowroomOrder implements IConvertible { String? Guid; String? Reference; List? Status = []; OnlineShowroomVehicle? Vehicle; String? ClosedDate; String? CustomerId; String? HandoverDate; String? ClosedReason; String? OrderDate; List? PaymentLinks = []; OnlineShowroomOrder({this.Guid,this.Reference,this.Status,this.Vehicle,this.ClosedDate,this.CustomerId,this.HandoverDate,this.ClosedReason,this.OrderDate,this.PaymentLinks}); OnlineShowroomOrder.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Guid = json['Guid']; Reference = json['Reference']; Status = JsonConverters.fromJson(json['Status'],'List',context!); Vehicle = JsonConverters.fromJson(json['Vehicle'],'OnlineShowroomVehicle',context!); ClosedDate = json['ClosedDate']; CustomerId = json['CustomerId']; HandoverDate = json['HandoverDate']; ClosedReason = json['ClosedReason']; OrderDate = json['OrderDate']; PaymentLinks = JsonConverters.fromJson(json['PaymentLinks'],'List',context!); return this; } Map toJson() => { 'Guid': Guid, 'Reference': Reference, 'Status': JsonConverters.toJson(Status,'List',context!), 'Vehicle': JsonConverters.toJson(Vehicle,'OnlineShowroomVehicle',context!), 'ClosedDate': ClosedDate, 'CustomerId': CustomerId, 'HandoverDate': HandoverDate, 'ClosedReason': ClosedReason, 'OrderDate': OrderDate, 'PaymentLinks': JsonConverters.toJson(PaymentLinks,'List',context!) }; getTypeName() => "OnlineShowroomOrder"; TypeContext? context = _ctx; } class Retailer implements IConvertible { int? Id; String? GssnId; String? Description; String? Street; String? City; String? Postcode; String? GoogleMapPostcode; String? Phone; String? Fax; String? Email; String? Website; String? RetailerGroupId; String? RetailerGroupName; bool? IsOnline; bool? IsNewCarRetailer; bool? IsUsedCarRetailer; bool? IsCentralRetailer; bool? ChatEnabled; bool? TradeInEnabled; bool? smart; String? DisplayPhoneNumberNew; String? DisplayPhoneNumberUsed; double? Latitude; double? Longitude; String? smartDescription; String? smartWebsite; String? smartPhone; String? LegacyId; bool? Agent; int? MarketAreaId; String? DigitalLoungeParentGssnId; bool? SendLeadsToDigitalLoungeParent; RetailerOpeningTimes? OpeningTimes; Retailer({this.Id,this.GssnId,this.Description,this.Street,this.City,this.Postcode,this.GoogleMapPostcode,this.Phone,this.Fax,this.Email,this.Website,this.RetailerGroupId,this.RetailerGroupName,this.IsOnline,this.IsNewCarRetailer,this.IsUsedCarRetailer,this.IsCentralRetailer,this.ChatEnabled,this.TradeInEnabled,this.smart,this.DisplayPhoneNumberNew,this.DisplayPhoneNumberUsed,this.Latitude,this.Longitude,this.smartDescription,this.smartWebsite,this.smartPhone,this.LegacyId,this.Agent,this.MarketAreaId,this.DigitalLoungeParentGssnId,this.SendLeadsToDigitalLoungeParent,this.OpeningTimes}); Retailer.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Id = json['Id']; GssnId = json['GssnId']; Description = json['Description']; Street = json['Street']; City = json['City']; Postcode = json['Postcode']; GoogleMapPostcode = json['GoogleMapPostcode']; Phone = json['Phone']; Fax = json['Fax']; Email = json['Email']; Website = json['Website']; RetailerGroupId = json['RetailerGroupId']; RetailerGroupName = json['RetailerGroupName']; IsOnline = json['IsOnline']; IsNewCarRetailer = json['IsNewCarRetailer']; IsUsedCarRetailer = json['IsUsedCarRetailer']; IsCentralRetailer = json['IsCentralRetailer']; ChatEnabled = json['ChatEnabled']; TradeInEnabled = json['TradeInEnabled']; smart = json['smart']; DisplayPhoneNumberNew = json['DisplayPhoneNumberNew']; DisplayPhoneNumberUsed = json['DisplayPhoneNumberUsed']; Latitude = JsonConverters.toDouble(json['Latitude']); Longitude = JsonConverters.toDouble(json['Longitude']); smartDescription = json['smartDescription']; smartWebsite = json['smartWebsite']; smartPhone = json['smartPhone']; LegacyId = json['LegacyId']; Agent = json['Agent']; MarketAreaId = json['MarketAreaId']; DigitalLoungeParentGssnId = json['DigitalLoungeParentGssnId']; SendLeadsToDigitalLoungeParent = json['SendLeadsToDigitalLoungeParent']; OpeningTimes = JsonConverters.fromJson(json['OpeningTimes'],'RetailerOpeningTimes',context!); return this; } Map toJson() => { 'Id': Id, 'GssnId': GssnId, 'Description': Description, 'Street': Street, 'City': City, 'Postcode': Postcode, 'GoogleMapPostcode': GoogleMapPostcode, 'Phone': Phone, 'Fax': Fax, 'Email': Email, 'Website': Website, 'RetailerGroupId': RetailerGroupId, 'RetailerGroupName': RetailerGroupName, 'IsOnline': IsOnline, 'IsNewCarRetailer': IsNewCarRetailer, 'IsUsedCarRetailer': IsUsedCarRetailer, 'IsCentralRetailer': IsCentralRetailer, 'ChatEnabled': ChatEnabled, 'TradeInEnabled': TradeInEnabled, 'smart': smart, 'DisplayPhoneNumberNew': DisplayPhoneNumberNew, 'DisplayPhoneNumberUsed': DisplayPhoneNumberUsed, 'Latitude': Latitude, 'Longitude': Longitude, 'smartDescription': smartDescription, 'smartWebsite': smartWebsite, 'smartPhone': smartPhone, 'LegacyId': LegacyId, 'Agent': Agent, 'MarketAreaId': MarketAreaId, 'DigitalLoungeParentGssnId': DigitalLoungeParentGssnId, 'SendLeadsToDigitalLoungeParent': SendLeadsToDigitalLoungeParent, 'OpeningTimes': JsonConverters.toJson(OpeningTimes,'RetailerOpeningTimes',context!) }; getTypeName() => "Retailer"; TypeContext? context = _ctx; } class GetOrderCustomerResponse implements IConvertible { List? Orders = []; List? Completed = []; List? Cancelled = []; List? InProgress = []; List? Archived = []; GetOrderCustomerResponse({this.Orders,this.Completed,this.Cancelled,this.InProgress,this.Archived}); GetOrderCustomerResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Orders = JsonConverters.fromJson(json['Orders'],'List',context!); Completed = JsonConverters.fromJson(json['Completed'],'List',context!); Cancelled = JsonConverters.fromJson(json['Cancelled'],'List',context!); InProgress = JsonConverters.fromJson(json['InProgress'],'List',context!); Archived = JsonConverters.fromJson(json['Archived'],'List',context!); return this; } Map toJson() => { 'Orders': JsonConverters.toJson(Orders,'List',context!), 'Completed': JsonConverters.toJson(Completed,'List',context!), 'Cancelled': JsonConverters.toJson(Cancelled,'List',context!), 'InProgress': JsonConverters.toJson(InProgress,'List',context!), 'Archived': JsonConverters.toJson(Archived,'List',context!) }; getTypeName() => "GetOrderCustomerResponse"; TypeContext? context = _ctx; } // @Route("/v1/order/customer/{CustomerId}", "GET") class GetOrderCustomerRequest implements IReturn, IGet, IConvertible { String? CustomerId; GetOrderCustomerRequest({this.CustomerId}); GetOrderCustomerRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { CustomerId = json['CustomerId']; return this; } Map toJson() => { 'CustomerId': CustomerId }; createResponse() => GetOrderCustomerResponse(); getResponseTypeName() => "GetOrderCustomerResponse"; getTypeName() => "GetOrderCustomerRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'prod_api_agency_orch_mb_dhc.rapp_customers.co.uk', types: { 'Order': TypeInfo(TypeOf.Class, create:() => Order()), 'OrderStatus': TypeInfo(TypeOf.Class, create:() => OrderStatus()), 'OnlineShowroomStatus': TypeInfo(TypeOf.Class, create:() => OnlineShowroomStatus()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'Retailer': TypeInfo(TypeOf.Class, create:() => Retailer()), 'OnlineShowroomVehicle': TypeInfo(TypeOf.Class, create:() => OnlineShowroomVehicle()), 'PaymentDetail': TypeInfo(TypeOf.Class, create:() => PaymentDetail()), 'OnlineShowroomOrder': TypeInfo(TypeOf.Class, create:() => OnlineShowroomOrder()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'RetailerOpeningTimes': TypeInfo(TypeOf.Class, create:() => RetailerOpeningTimes()), 'GetOrderCustomerResponse': TypeInfo(TypeOf.Class, create:() => GetOrderCustomerResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'GetOrderCustomerRequest': TypeInfo(TypeOf.Class, create:() => GetOrderCustomerRequest()), });