/* Options: Date: 2026-02-14 10:19:43 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: AddReceivingAdvice.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; abstract class ICommandResponse { } class ReceivingAdviceMessage implements IConvertible { Header header; ReceivingAdvice receivingAdvice; ReceivingAdviceMessage({this.header,this.receivingAdvice}); ReceivingAdviceMessage.fromJson(Map json) { fromMap(json); } fromMap(Map json) { header = JsonConverters.fromJson(json['header'],'Header',context!); receivingAdvice = JsonConverters.fromJson(json['receivingAdvice'],'ReceivingAdvice',context!); return this; } Map toJson() => { 'header': JsonConverters.toJson(header,'Header',context!), 'receivingAdvice': JsonConverters.toJson(receivingAdvice,'ReceivingAdvice',context!) }; getTypeName() => "ReceivingAdviceMessage"; 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; } /** * Receiving Advice */ // @Route("/receivingAdvice", "POST") // @Api(Description="Receiving Advice") // @ApiResponse(Description="Add ReceivingAdvice request received", IsDefaultResponse=true, StatusCode=200) // @ApiResponse(Description="ReceivingAdvice not accepted, Confirm Sender GLN", ResponseType=typeof(UnauthorizedAccessException), StatusCode=403) class AddReceivingAdvice implements IReturn, IConvertible, IPost { /** * ReceivingAdvice model containing all of the ReceivingAdvice data */ // @ApiMember(Description="ReceivingAdvice model containing all of the ReceivingAdvice data", ParameterType="model") ReceivingAdviceMessage receivingAdvice; AddReceivingAdvice({this.receivingAdvice}); AddReceivingAdvice.fromJson(Map json) { fromMap(json); } fromMap(Map json) { receivingAdvice = JsonConverters.fromJson(json['receivingAdvice'],'ReceivingAdviceMessage',context!); return this; } Map toJson() => { 'receivingAdvice': JsonConverters.toJson(receivingAdvice,'ReceivingAdviceMessage',context!) }; createResponse() => TokenDto(); getResponseTypeName() => "TokenDto"; getTypeName() => "AddReceivingAdvice"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'stf_api_uat.data_xchange.co.za', types: { 'ICommandResponse': TypeInfo(TypeOf.Interface), 'ReceivingAdviceMessage': TypeInfo(TypeOf.Class, create:() => ReceivingAdviceMessage()), 'Header': TypeInfo(TypeOf.Class, create:() => Header()), 'ReceivingAdvice': TypeInfo(TypeOf.Class, create:() => ReceivingAdvice()), 'TokenDto': TypeInfo(TypeOf.Class, create:() => TokenDto()), 'AddReceivingAdvice': TypeInfo(TypeOf.Class, create:() => AddReceivingAdvice()), });