/* Options: Date: 2026-02-14 10:18:02 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: AddCustomerMaster.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; abstract class ICommandResponse { } class CustomerMasterMessage implements IConvertible { TransactionalParty dataSource; TransactionalParty dataRecipient; String customerMasterIdentification = ""; List customer = []; String documentStatusCode = ""; String documentActionCode = ""; DateTime creationDateTime = DateTime(0); DateTime lastUpdateDateTime = DateTime(0); CustomerMasterMessage({this.dataSource,this.dataRecipient,this.customerMasterIdentification,this.customer,this.documentStatusCode,this.documentActionCode,this.creationDateTime,this.lastUpdateDateTime}); CustomerMasterMessage.fromJson(Map json) { fromMap(json); } fromMap(Map json) { dataSource = JsonConverters.fromJson(json['dataSource'],'TransactionalParty',context!); dataRecipient = JsonConverters.fromJson(json['dataRecipient'],'TransactionalParty',context!); customerMasterIdentification = json['customerMasterIdentification']; customer = JsonConverters.fromJson(json['customer'],'List',context!); documentStatusCode = json['documentStatusCode']; documentActionCode = json['documentActionCode']; creationDateTime = JsonConverters.fromJson(json['creationDateTime'],'DateTime',context!); lastUpdateDateTime = JsonConverters.fromJson(json['lastUpdateDateTime'],'DateTime',context!); return this; } Map toJson() => { 'dataSource': JsonConverters.toJson(dataSource,'TransactionalParty',context!), 'dataRecipient': JsonConverters.toJson(dataRecipient,'TransactionalParty',context!), 'customerMasterIdentification': customerMasterIdentification, 'customer': JsonConverters.toJson(customer,'List',context!), 'documentStatusCode': documentStatusCode, 'documentActionCode': documentActionCode, 'creationDateTime': JsonConverters.toJson(creationDateTime,'DateTime',context!), 'lastUpdateDateTime': JsonConverters.toJson(lastUpdateDateTime,'DateTime',context!) }; getTypeName() => "CustomerMasterMessage"; 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; } /** * Customer Master */ // @Route("/customerMaster", "POST") // @Api(Description="Customer Master") // @ApiResponse(Description="Add customer master request received", IsDefaultResponse=true, StatusCode=200) // @ApiResponse(Description="Customer master request not accepted, Confirm Sender GLN", ResponseType=typeof(UnauthorizedAccessException), StatusCode=403) class AddCustomerMaster implements IReturn, IConvertible, IPost { /** * Customer Master model containing all of the Customer Master data */ // @ApiMember(Description="Customer Master model containing all of the Customer Master data", ParameterType="model") CustomerMasterMessage customerMaster; AddCustomerMaster({this.customerMaster}); AddCustomerMaster.fromJson(Map json) { fromMap(json); } fromMap(Map json) { customerMaster = JsonConverters.fromJson(json['customerMaster'],'CustomerMasterMessage',context!); return this; } Map toJson() => { 'customerMaster': JsonConverters.toJson(customerMaster,'CustomerMasterMessage',context!) }; createResponse() => TokenDto(); getResponseTypeName() => "TokenDto"; getTypeName() => "AddCustomerMaster"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'stf_api_uat.data_xchange.co.za', types: { 'ICommandResponse': TypeInfo(TypeOf.Interface), 'CustomerMasterMessage': TypeInfo(TypeOf.Class, create:() => CustomerMasterMessage()), 'TransactionalParty': TypeInfo(TypeOf.Class, create:() => TransactionalParty()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'CustomerMasterType': TypeInfo(TypeOf.Class, create:() => CustomerMasterType()), 'TokenDto': TypeInfo(TypeOf.Class, create:() => TokenDto()), 'AddCustomerMaster': TypeInfo(TypeOf.Class, create:() => AddCustomerMaster()), });