/* Options: Date: 2026-02-14 10:07:53 Version: 10.04 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://stf-api-uat.data-xchange.co.za //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: AddItemDataNotification.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; abstract class ICommandResponse { } class ItemDataNotificationMessage extends BaseDocument implements IConvertible { TransactionalParty dataRecipient; TransactionalParty dataSource; String itemDataNotificationIdentification = ""; List itemDataNotificationLineItem = []; ItemDataNotificationMessage({this.dataRecipient,this.dataSource,this.itemDataNotificationIdentification,this.itemDataNotificationLineItem}); ItemDataNotificationMessage.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); dataRecipient = JsonConverters.fromJson(json['dataRecipient'],'TransactionalParty',context!); dataSource = JsonConverters.fromJson(json['dataSource'],'TransactionalParty',context!); itemDataNotificationIdentification = json['itemDataNotificationIdentification']; itemDataNotificationLineItem = JsonConverters.fromJson(json['itemDataNotificationLineItem'],'List',context!); return this; } Map toJson() => super.toJson()..addAll({ 'dataRecipient': JsonConverters.toJson(dataRecipient,'TransactionalParty',context!), 'dataSource': JsonConverters.toJson(dataSource,'TransactionalParty',context!), 'itemDataNotificationIdentification': itemDataNotificationIdentification, 'itemDataNotificationLineItem': JsonConverters.toJson(itemDataNotificationLineItem,'List',context!) }); getTypeName() => "ItemDataNotificationMessage"; TypeContext? context = _ctx; } class TokenDto implements ICommandResponse, IConvertible { String token = ""; TokenDto({this.token}); TokenDto.fromJson(Map json) { fromMap(json); } fromMap(Map json) { token = json['token']; return this; } Map toJson() => { 'token': token }; getTypeName() => "TokenDto"; TypeContext? context = _ctx; } /** * Item Data Notification */ // @Route("/itemDataNotification", "POST") // @Api(Description="Item Data Notification") // @ApiResponse(Description="Add ItemDataNotification request received", IsDefaultResponse=true, StatusCode=200) // @ApiResponse(Description="ItemDataNotification not accepted, Confirm Sender GLN", ResponseType=typeof(UnauthorizedAccessException), StatusCode=403) class AddItemDataNotification implements IReturn, IConvertible, IPost { /** * ItemDataNotification model containing all of the ItemDataNotification data */ // @ApiMember(Description="ItemDataNotification model containing all of the ItemDataNotification data", ParameterType="model") ItemDataNotificationMessage itemDataNotification; AddItemDataNotification({this.itemDataNotification}); AddItemDataNotification.fromJson(Map json) { fromMap(json); } fromMap(Map json) { itemDataNotification = JsonConverters.fromJson(json['itemDataNotification'],'ItemDataNotificationMessage',context!); return this; } Map toJson() => { 'itemDataNotification': JsonConverters.toJson(itemDataNotification,'ItemDataNotificationMessage',context!) }; createResponse() => TokenDto(); getResponseTypeName() => "TokenDto"; getTypeName() => "AddItemDataNotification"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'stf_api_uat.data_xchange.co.za', types: { 'ICommandResponse': TypeInfo(TypeOf.Interface), 'ItemDataNotificationMessage': TypeInfo(TypeOf.Class, create:() => ItemDataNotificationMessage()), 'TransactionalParty': TypeInfo(TypeOf.Class, create:() => TransactionalParty()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'ItemDataNotificationLineItem': TypeInfo(TypeOf.Class, create:() => ItemDataNotificationLineItem()), 'TokenDto': TypeInfo(TypeOf.Class, create:() => TokenDto()), 'AddItemDataNotification': TypeInfo(TypeOf.Class, create:() => AddItemDataNotification()), });