/* Options: Date: 2026-08-17 08:24:00 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: WebshopOrderGetRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class LocalizedMessage implements IConvertible { String? Is; String? en; LocalizedMessage({this.Is,this.en}); LocalizedMessage.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Is = json['is']; en = json['en']; return this; } Map toJson() => { 'is': Is, 'en': en }; getTypeName() => "LocalizedMessage"; TypeContext? context = _ctx; } class WebshopOrderLineSummary implements IConvertible { int? id; int? productId; int? variantId; String? productName; String? size; String? color; int? unitPriceMinor; int? quantity; int? lineTotalMinor; String? status; int? payoutInfoId; String? payoutTag; WebshopOrderLineSummary({this.id,this.productId,this.variantId,this.productName,this.size,this.color,this.unitPriceMinor,this.quantity,this.lineTotalMinor,this.status,this.payoutInfoId,this.payoutTag}); WebshopOrderLineSummary.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; productId = json['productId']; variantId = json['variantId']; productName = json['productName']; size = json['size']; color = json['color']; unitPriceMinor = json['unitPriceMinor']; quantity = json['quantity']; lineTotalMinor = json['lineTotalMinor']; status = json['status']; payoutInfoId = json['payoutInfoId']; payoutTag = json['payoutTag']; return this; } Map toJson() => { 'id': id, 'productId': productId, 'variantId': variantId, 'productName': productName, 'size': size, 'color': color, 'unitPriceMinor': unitPriceMinor, 'quantity': quantity, 'lineTotalMinor': lineTotalMinor, 'status': status, 'payoutInfoId': payoutInfoId, 'payoutTag': payoutTag }; getTypeName() => "WebshopOrderLineSummary"; TypeContext? context = _ctx; } class WebshopOrderSummary implements IConvertible { int? id; String? orderReference; int? ownerId; String? status; int? totalMinor; int? deliveryFeeMinor; int? totalDiscountMinor; String? currency; String? buyerName; String? buyerEmail; String? buyerPhone; String? address; String? city; String? zipCode; String? country; String? deliveryType; String? droppOrderId; String? droppLocationId; bool? needsDeliveryAttention; String? paymentMethodId; String? paymentId; String? paymentReference; String? discountCode; int? giftPaidMinor; DateTime? createdAt; DateTime? updatedAt; List? lines; WebshopOrderSummary({this.id,this.orderReference,this.ownerId,this.status,this.totalMinor,this.deliveryFeeMinor,this.totalDiscountMinor,this.currency,this.buyerName,this.buyerEmail,this.buyerPhone,this.address,this.city,this.zipCode,this.country,this.deliveryType,this.droppOrderId,this.droppLocationId,this.needsDeliveryAttention,this.paymentMethodId,this.paymentId,this.paymentReference,this.discountCode,this.giftPaidMinor,this.createdAt,this.updatedAt,this.lines}); WebshopOrderSummary.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; orderReference = json['orderReference']; ownerId = json['ownerId']; status = json['status']; totalMinor = json['totalMinor']; deliveryFeeMinor = json['deliveryFeeMinor']; totalDiscountMinor = json['totalDiscountMinor']; currency = json['currency']; buyerName = json['buyerName']; buyerEmail = json['buyerEmail']; buyerPhone = json['buyerPhone']; address = json['address']; city = json['city']; zipCode = json['zipCode']; country = json['country']; deliveryType = json['deliveryType']; droppOrderId = json['droppOrderId']; droppLocationId = json['droppLocationId']; needsDeliveryAttention = json['needsDeliveryAttention']; paymentMethodId = json['paymentMethodId']; paymentId = json['paymentId']; paymentReference = json['paymentReference']; discountCode = json['discountCode']; giftPaidMinor = json['giftPaidMinor']; createdAt = JsonConverters.fromJson(json['createdAt'],'DateTime',context!); updatedAt = JsonConverters.fromJson(json['updatedAt'],'DateTime',context!); lines = JsonConverters.fromJson(json['lines'],'List',context!); return this; } Map toJson() => { 'id': id, 'orderReference': orderReference, 'ownerId': ownerId, 'status': status, 'totalMinor': totalMinor, 'deliveryFeeMinor': deliveryFeeMinor, 'totalDiscountMinor': totalDiscountMinor, 'currency': currency, 'buyerName': buyerName, 'buyerEmail': buyerEmail, 'buyerPhone': buyerPhone, 'address': address, 'city': city, 'zipCode': zipCode, 'country': country, 'deliveryType': deliveryType, 'droppOrderId': droppOrderId, 'droppLocationId': droppLocationId, 'needsDeliveryAttention': needsDeliveryAttention, 'paymentMethodId': paymentMethodId, 'paymentId': paymentId, 'paymentReference': paymentReference, 'discountCode': discountCode, 'giftPaidMinor': giftPaidMinor, 'createdAt': JsonConverters.toJson(createdAt,'DateTime',context!), 'updatedAt': JsonConverters.toJson(updatedAt,'DateTime',context!), 'lines': JsonConverters.toJson(lines,'List',context!) }; getTypeName() => "WebshopOrderSummary"; TypeContext? context = _ctx; } class WebshopOrderResult implements IConvertible { bool? success; String? reason; LocalizedMessage? message; String? orderReference; WebshopOrderSummary? order; int? statusCode; WebshopOrderResult({this.success,this.reason,this.message,this.orderReference,this.order,this.statusCode}); WebshopOrderResult.fromJson(Map json) { fromMap(json); } fromMap(Map json) { success = json['success']; reason = json['reason']; message = JsonConverters.fromJson(json['message'],'LocalizedMessage',context!); orderReference = json['orderReference']; order = JsonConverters.fromJson(json['order'],'WebshopOrderSummary',context!); statusCode = json['statusCode']; return this; } Map toJson() => { 'success': success, 'reason': reason, 'message': JsonConverters.toJson(message,'LocalizedMessage',context!), 'orderReference': orderReference, 'order': JsonConverters.toJson(order,'WebshopOrderSummary',context!), 'statusCode': statusCode }; getTypeName() => "WebshopOrderResult"; TypeContext? context = _ctx; } // @Route("/Webshop/Order/{Reference}", "GET") class WebshopOrderGetRequest implements IReturn, IConvertible { String? reference; int? ownerId; WebshopOrderGetRequest({this.reference,this.ownerId}); WebshopOrderGetRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { reference = json['reference']; ownerId = json['ownerId']; return this; } Map toJson() => { 'reference': reference, 'ownerId': ownerId }; createResponse() => WebshopOrderResult(); getResponseTypeName() => "WebshopOrderResult"; getTypeName() => "WebshopOrderGetRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'stubbur_app.azurewebsites.net', types: { 'LocalizedMessage': TypeInfo(TypeOf.Class, create:() => LocalizedMessage()), 'WebshopOrderLineSummary': TypeInfo(TypeOf.Class, create:() => WebshopOrderLineSummary()), 'WebshopOrderSummary': TypeInfo(TypeOf.Class, create:() => WebshopOrderSummary()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'WebshopOrderResult': TypeInfo(TypeOf.Class, create:() => WebshopOrderResult()), 'WebshopOrderGetRequest': TypeInfo(TypeOf.Class, create:() => WebshopOrderGetRequest()), });