/* Options: Date: 2026-02-14 09:59:37 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: UpdateInvoiceClientProcessed.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; abstract class ICommandResponse { } 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; } /** * Invoice */ // @Route("/invoice/{InvoiceId}/processed", "PUT") // @Api(Description="Invoice") // @ApiResponse(Description="Command received", IsDefaultResponse=true, ResponseType=typeof(TokenDto), StatusCode=202) class UpdateInvoiceClientProcessed implements IReturn, IConvertible, IPut { /** * Invoice ID or Token */ // @ApiMember(Description="Invoice ID or Token", ExcludeInSchema=true, ParameterType="path") String invoiceId = ""; /** * Customer invoice reference in destination system */ // @ApiMember(Description="Customer invoice reference in destination system") String customerReference = ""; /** * Date and Time invoice was processed in destination system */ // @ApiMember(Description="Date and Time invoice was processed in destination system") DateTime customerProcessedDate = DateTime(0); UpdateInvoiceClientProcessed({this.invoiceId,this.customerReference,this.customerProcessedDate}); UpdateInvoiceClientProcessed.fromJson(Map json) { fromMap(json); } fromMap(Map json) { invoiceId = json['invoiceId']; customerReference = json['customerReference']; customerProcessedDate = JsonConverters.fromJson(json['customerProcessedDate'],'DateTime',context!); return this; } Map toJson() => { 'invoiceId': invoiceId, 'customerReference': customerReference, 'customerProcessedDate': JsonConverters.toJson(customerProcessedDate,'DateTime',context!) }; createResponse() => TokenDto(); getResponseTypeName() => "TokenDto"; getTypeName() => "UpdateInvoiceClientProcessed"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'stf_api_uat.data_xchange.co.za', types: { 'ICommandResponse': TypeInfo(TypeOf.Interface), 'TokenDto': TypeInfo(TypeOf.Class, create:() => TokenDto()), 'UpdateInvoiceClientProcessed': TypeInfo(TypeOf.Class, create:() => UpdateInvoiceClientProcessed()), });