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