/* Options: Date: 2026-02-14 11:50:42 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: GetSettlementById.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; abstract class IGetDocumentById extends ISingleEntityQuery { } abstract class ISingleEntityQuery { String id = ""; } // @DataContract class DocumentIdentification implements IConvertible { // @DataMember(Name="identifier") String identifier = ""; // @DataMember(Name="type") String type = ""; // @DataMember(Name="creationDateAndTime") DateTime creationDateAndTime = DateTime(0); DocumentIdentification({this.identifier,this.type,this.creationDateAndTime}); DocumentIdentification.fromJson(Map json) { fromMap(json); } fromMap(Map json) { identifier = json['identifier']; type = json['type']; creationDateAndTime = JsonConverters.fromJson(json['creationDateAndTime'],'DateTime',context!); return this; } Map toJson() => { 'identifier': identifier, 'type': type, 'creationDateAndTime': JsonConverters.toJson(creationDateAndTime,'DateTime',context!) }; getTypeName() => "DocumentIdentification"; TypeContext? context = _ctx; } // @DataContract class Identifier implements IConvertible { // @DataMember(Name="authority") String authority = ""; // @DataMember(Name="text") String text = ""; Identifier({this.authority,this.text}); Identifier.fromJson(Map json) { fromMap(json); } fromMap(Map json) { authority = json['authority']; text = json['text']; return this; } Map toJson() => { 'authority': authority, 'text': text }; getTypeName() => "Identifier"; TypeContext? context = _ctx; } // @DataContract class ContactInformation implements IConvertible { ContactInformation(); ContactInformation.fromJson(Map json) : super(); fromMap(Map json) { return this; } Map toJson() => {}; getTypeName() => "ContactInformation"; TypeContext? context = _ctx; } // @DataContract class Partner implements IConvertible { // @DataMember(Name="identifier") Identifier identifier; // @DataMember(Name="contactInformation") List contactInformation = []; Partner({this.identifier,this.contactInformation}); Partner.fromJson(Map json) { fromMap(json); } fromMap(Map json) { identifier = JsonConverters.fromJson(json['identifier'],'Identifier',context!); contactInformation = JsonConverters.fromJson(json['contactInformation'],'List',context!); return this; } Map toJson() => { 'identifier': JsonConverters.toJson(identifier,'Identifier',context!), 'contactInformation': JsonConverters.toJson(contactInformation,'List',context!) }; getTypeName() => "Partner"; TypeContext? context = _ctx; } // @DataContract class Header implements IConvertible { // @DataMember(Name="documentIdentification") DocumentIdentification documentIdentification; // @DataMember(Name="sender") Partner sender; // @DataMember(Name="receiver") Partner receiver; Header({this.documentIdentification,this.sender,this.receiver}); Header.fromJson(Map json) { fromMap(json); } fromMap(Map json) { documentIdentification = JsonConverters.fromJson(json['documentIdentification'],'DocumentIdentification',context!); sender = JsonConverters.fromJson(json['sender'],'Partner',context!); receiver = JsonConverters.fromJson(json['receiver'],'Partner',context!); return this; } Map toJson() => { 'documentIdentification': JsonConverters.toJson(documentIdentification,'DocumentIdentification',context!), 'sender': JsonConverters.toJson(sender,'Partner',context!), 'receiver': JsonConverters.toJson(receiver,'Partner',context!) }; getTypeName() => "Header"; TypeContext? context = _ctx; } class AvpList implements IConvertible { String code = ""; String value = ""; AvpList({this.code,this.value}); AvpList.fromJson(Map json) { fromMap(json); } fromMap(Map json) { code = json['code']; value = json['value']; return this; } Map toJson() => { 'code': code, 'value': value }; getTypeName() => "AvpList"; TypeContext? context = _ctx; } class Ecom_PartyIdentificationType implements IConvertible { String gln = ""; String name = ""; List additionalPartyIdentification = []; Ecom_PartyIdentificationType({this.gln,this.name,this.additionalPartyIdentification}); Ecom_PartyIdentificationType.fromJson(Map json) { fromMap(json); } fromMap(Map json) { gln = json['gln']; name = json['name']; additionalPartyIdentification = JsonConverters.fromJson(json['additionalPartyIdentification'],'List',context!); return this; } Map toJson() => { 'gln': gln, 'name': name, 'additionalPartyIdentification': JsonConverters.toJson(additionalPartyIdentification,'List',context!) }; getTypeName() => "Ecom_PartyIdentificationType"; TypeContext? context = _ctx; } class CommunicationChannel implements IConvertible { String communicationChannelCode = ""; String communicationChannelName = ""; String communicationValue = ""; CommunicationChannel({this.communicationChannelCode,this.communicationChannelName,this.communicationValue}); CommunicationChannel.fromJson(Map json) { fromMap(json); } fromMap(Map json) { communicationChannelCode = json['communicationChannelCode']; communicationChannelName = json['communicationChannelName']; communicationValue = json['communicationValue']; return this; } Map toJson() => { 'communicationChannelCode': communicationChannelCode, 'communicationChannelName': communicationChannelName, 'communicationValue': communicationValue }; getTypeName() => "CommunicationChannel"; TypeContext? context = _ctx; } class Contact implements IConvertible { String contactTypeCode = ""; String personName = ""; String departmentName = ""; String jobTitle = ""; String responsibility = ""; List communicationChannel = []; Contact({this.contactTypeCode,this.personName,this.departmentName,this.jobTitle,this.responsibility,this.communicationChannel}); Contact.fromJson(Map json) { fromMap(json); } fromMap(Map json) { contactTypeCode = json['contactTypeCode']; personName = json['personName']; departmentName = json['departmentName']; jobTitle = json['jobTitle']; responsibility = json['responsibility']; communicationChannel = JsonConverters.fromJson(json['communicationChannel'],'List',context!); return this; } Map toJson() => { 'contactTypeCode': contactTypeCode, 'personName': personName, 'departmentName': departmentName, 'jobTitle': jobTitle, 'responsibility': responsibility, 'communicationChannel': JsonConverters.toJson(communicationChannel,'List',context!) }; getTypeName() => "Contact"; TypeContext? context = _ctx; } class Address implements IConvertible { String streetAddressOne = ""; String streetAddressTwo = ""; String streetAddressThree = ""; String city = ""; String postalCode = ""; String provinceCode = ""; String countryCode = ""; Address({this.streetAddressOne,this.streetAddressTwo,this.streetAddressThree,this.city,this.postalCode,this.provinceCode,this.countryCode}); Address.fromJson(Map json) { fromMap(json); } fromMap(Map json) { streetAddressOne = json['streetAddressOne']; streetAddressTwo = json['streetAddressTwo']; streetAddressThree = json['streetAddressThree']; city = json['city']; postalCode = json['postalCode']; provinceCode = json['provinceCode']; countryCode = json['countryCode']; return this; } Map toJson() => { 'streetAddressOne': streetAddressOne, 'streetAddressTwo': streetAddressTwo, 'streetAddressThree': streetAddressThree, 'city': city, 'postalCode': postalCode, 'provinceCode': provinceCode, 'countryCode': countryCode }; getTypeName() => "Address"; TypeContext? context = _ctx; } class FinancialRoutingNumber implements IConvertible { String number = ""; String numberTypeCode = ""; FinancialRoutingNumber({this.number,this.numberTypeCode}); FinancialRoutingNumber.fromJson(Map json) { fromMap(json); } fromMap(Map json) { number = json['number']; numberTypeCode = json['numberTypeCode']; return this; } Map toJson() => { 'number': number, 'numberTypeCode': numberTypeCode }; getTypeName() => "FinancialRoutingNumber"; TypeContext? context = _ctx; } class FinancialAccount implements IConvertible { String number = ""; String numberTypeCode = ""; String name = ""; FinancialAccount({this.number,this.numberTypeCode,this.name}); FinancialAccount.fromJson(Map json) { fromMap(json); } fromMap(Map json) { number = json['number']; numberTypeCode = json['numberTypeCode']; name = json['name']; return this; } Map toJson() => { 'number': number, 'numberTypeCode': numberTypeCode, 'name': name }; getTypeName() => "FinancialAccount"; TypeContext? context = _ctx; } class FinancialInstitutionInformation implements IConvertible { String financialInstitutionBranchName = ""; String financialInstitutionName = ""; FinancialRoutingNumber financialRoutingNumber; FinancialAccount financialAccount; String swiftCode = ""; String exportersCode = ""; FinancialInstitutionInformation({this.financialInstitutionBranchName,this.financialInstitutionName,this.financialRoutingNumber,this.financialAccount,this.swiftCode,this.exportersCode}); FinancialInstitutionInformation.fromJson(Map json) { fromMap(json); } fromMap(Map json) { financialInstitutionBranchName = json['financialInstitutionBranchName']; financialInstitutionName = json['financialInstitutionName']; financialRoutingNumber = JsonConverters.fromJson(json['financialRoutingNumber'],'FinancialRoutingNumber',context!); financialAccount = JsonConverters.fromJson(json['financialAccount'],'FinancialAccount',context!); swiftCode = json['swiftCode']; exportersCode = json['exportersCode']; return this; } Map toJson() => { 'financialInstitutionBranchName': financialInstitutionBranchName, 'financialInstitutionName': financialInstitutionName, 'financialRoutingNumber': JsonConverters.toJson(financialRoutingNumber,'FinancialRoutingNumber',context!), 'financialAccount': JsonConverters.toJson(financialAccount,'FinancialAccount',context!), 'swiftCode': swiftCode, 'exportersCode': exportersCode }; getTypeName() => "FinancialInstitutionInformation"; TypeContext? context = _ctx; } class TransactionalParty extends Ecom_PartyIdentificationType implements IConvertible { List contact = []; Address address; List communicationChannel = []; FinancialInstitutionInformation financialInstitutionInformation; String dutyFeeTaxRegistration = ""; String entityIdentification = ""; TransactionalParty({this.contact,this.address,this.communicationChannel,this.financialInstitutionInformation,this.dutyFeeTaxRegistration,this.entityIdentification}); TransactionalParty.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); contact = JsonConverters.fromJson(json['contact'],'List',context!); address = JsonConverters.fromJson(json['address'],'Address',context!); communicationChannel = JsonConverters.fromJson(json['communicationChannel'],'List',context!); financialInstitutionInformation = JsonConverters.fromJson(json['financialInstitutionInformation'],'FinancialInstitutionInformation',context!); dutyFeeTaxRegistration = json['dutyFeeTaxRegistration']; entityIdentification = json['entityIdentification']; return this; } Map toJson() => super.toJson()..addAll({ 'contact': JsonConverters.toJson(contact,'List',context!), 'address': JsonConverters.toJson(address,'Address',context!), 'communicationChannel': JsonConverters.toJson(communicationChannel,'List',context!), 'financialInstitutionInformation': JsonConverters.toJson(financialInstitutionInformation,'FinancialInstitutionInformation',context!), 'dutyFeeTaxRegistration': dutyFeeTaxRegistration, 'entityIdentification': entityIdentification }); getTypeName() => "TransactionalParty"; TypeContext? context = _ctx; } enum DocumentAction { ADD, CHANGE_BY_REFRESH, DELETE, REJECTED, } enum DocumentStatus { ADDITIONAL_TRANSMISSION, COPY, ORIGINAL, } class BaseDocument implements IConvertible { String currencyCode = ""; DateTime creationDateTime = DateTime(0); DocumentAction documentActionCode; DocumentStatus documentStatusCode; String documentStructureVersion = ""; DateTime? lastUpdateDateTime; int? revisionNumber; List avpList = []; BaseDocument({this.currencyCode,this.creationDateTime,this.documentActionCode,this.documentStatusCode,this.documentStructureVersion,this.lastUpdateDateTime,this.revisionNumber,this.avpList}); BaseDocument.fromJson(Map json) { fromMap(json); } fromMap(Map json) { currencyCode = json['currencyCode']; creationDateTime = JsonConverters.fromJson(json['creationDateTime'],'DateTime',context!); documentActionCode = JsonConverters.fromJson(json['documentActionCode'],'DocumentAction',context!); documentStatusCode = JsonConverters.fromJson(json['documentStatusCode'],'DocumentStatus',context!); documentStructureVersion = json['documentStructureVersion']; lastUpdateDateTime = JsonConverters.fromJson(json['lastUpdateDateTime'],'DateTime',context!); revisionNumber = json['revisionNumber']; avpList = JsonConverters.fromJson(json['avpList'],'List',context!); return this; } Map toJson() => { 'currencyCode': currencyCode, 'creationDateTime': JsonConverters.toJson(creationDateTime,'DateTime',context!), 'documentActionCode': JsonConverters.toJson(documentActionCode,'DocumentAction',context!), 'documentStatusCode': JsonConverters.toJson(documentStatusCode,'DocumentStatus',context!), 'documentStructureVersion': documentStructureVersion, 'lastUpdateDateTime': JsonConverters.toJson(lastUpdateDateTime,'DateTime',context!), 'revisionNumber': revisionNumber, 'avpList': JsonConverters.toJson(avpList,'List',context!) }; getTypeName() => "BaseDocument"; TypeContext? context = _ctx; } class PaymentMethod implements IConvertible { String automatedClearingHousePaymentFormat = ""; String paymentMethodCode = ""; String paymentMethodIdentification = ""; PaymentMethod({this.automatedClearingHousePaymentFormat,this.paymentMethodCode,this.paymentMethodIdentification}); PaymentMethod.fromJson(Map json) { fromMap(json); } fromMap(Map json) { automatedClearingHousePaymentFormat = json['automatedClearingHousePaymentFormat']; paymentMethodCode = json['paymentMethodCode']; paymentMethodIdentification = json['paymentMethodIdentification']; return this; } Map toJson() => { 'automatedClearingHousePaymentFormat': automatedClearingHousePaymentFormat, 'paymentMethodCode': paymentMethodCode, 'paymentMethodIdentification': paymentMethodIdentification }; getTypeName() => "PaymentMethod"; TypeContext? context = _ctx; } class DocumentReference implements IConvertible { DateTime? creationDateTime; int? revisionNumber; int? lineItemNumber; String entityIdentification = ""; DocumentReference({this.creationDateTime,this.revisionNumber,this.lineItemNumber,this.entityIdentification}); DocumentReference.fromJson(Map json) { fromMap(json); } fromMap(Map json) { creationDateTime = JsonConverters.fromJson(json['creationDateTime'],'DateTime',context!); revisionNumber = json['revisionNumber']; lineItemNumber = json['lineItemNumber']; entityIdentification = json['entityIdentification']; return this; } Map toJson() => { 'creationDateTime': JsonConverters.toJson(creationDateTime,'DateTime',context!), 'revisionNumber': revisionNumber, 'lineItemNumber': lineItemNumber, 'entityIdentification': entityIdentification }; getTypeName() => "DocumentReference"; TypeContext? context = _ctx; } class TransactionalReference extends DocumentReference implements IConvertible { String transactionalReferenceTypeCode = ""; TransactionalReference({this.transactionalReferenceTypeCode}); TransactionalReference.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); transactionalReferenceTypeCode = json['transactionalReferenceTypeCode']; return this; } Map toJson() => super.toJson()..addAll({ 'transactionalReferenceTypeCode': transactionalReferenceTypeCode }); getTypeName() => "TransactionalReference"; TypeContext? context = _ctx; } class SettlementAdjustment implements IConvertible { double? adjustmentAmount; String financialAdjusmentReasonPartyRoleCode = ""; String financialAdjustmentReasonCode = ""; TransactionalReference transactionalReference; SettlementAdjustment({this.adjustmentAmount,this.financialAdjusmentReasonPartyRoleCode,this.financialAdjustmentReasonCode,this.transactionalReference}); SettlementAdjustment.fromJson(Map json) { fromMap(json); } fromMap(Map json) { adjustmentAmount = JsonConverters.toDouble(json['adjustmentAmount']); financialAdjusmentReasonPartyRoleCode = json['financialAdjusmentReasonPartyRoleCode']; financialAdjustmentReasonCode = json['financialAdjustmentReasonCode']; transactionalReference = JsonConverters.fromJson(json['transactionalReference'],'TransactionalReference',context!); return this; } Map toJson() => { 'adjustmentAmount': adjustmentAmount, 'financialAdjusmentReasonPartyRoleCode': financialAdjusmentReasonPartyRoleCode, 'financialAdjustmentReasonCode': financialAdjustmentReasonCode, 'transactionalReference': JsonConverters.toJson(transactionalReference,'TransactionalReference',context!) }; getTypeName() => "SettlementAdjustment"; TypeContext? context = _ctx; } class ContentOwner implements IConvertible { String gln = ""; List additionalPartyIdentification = []; ContentOwner({this.gln,this.additionalPartyIdentification}); ContentOwner.fromJson(Map json) { fromMap(json); } fromMap(Map json) { gln = json['gln']; additionalPartyIdentification = JsonConverters.fromJson(json['additionalPartyIdentification'],'List',context!); return this; } Map toJson() => { 'gln': gln, 'additionalPartyIdentification': JsonConverters.toJson(additionalPartyIdentification,'List',context!) }; getTypeName() => "ContentOwner"; TypeContext? context = _ctx; } class InvoiceDocumentReference extends DocumentReference implements IConvertible { String invoiceTypeCode = ""; ContentOwner contentOwner; InvoiceDocumentReference({this.invoiceTypeCode,this.contentOwner}); InvoiceDocumentReference.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); invoiceTypeCode = json['invoiceTypeCode']; contentOwner = JsonConverters.fromJson(json['contentOwner'],'ContentOwner',context!); return this; } Map toJson() => super.toJson()..addAll({ 'invoiceTypeCode': invoiceTypeCode, 'contentOwner': JsonConverters.toJson(contentOwner,'ContentOwner',context!) }); getTypeName() => "InvoiceDocumentReference"; TypeContext? context = _ctx; } class Ecom_PartyIdentification implements IConvertible { List additionalPartyIdentification = []; String gln = ""; Ecom_PartyIdentification({this.additionalPartyIdentification,this.gln}); Ecom_PartyIdentification.fromJson(Map json) { fromMap(json); } fromMap(Map json) { additionalPartyIdentification = JsonConverters.fromJson(json['additionalPartyIdentification'],'List',context!); gln = json['gln']; return this; } Map toJson() => { 'additionalPartyIdentification': JsonConverters.toJson(additionalPartyIdentification,'List',context!), 'gln': gln }; getTypeName() => "Ecom_PartyIdentification"; TypeContext? context = _ctx; } class SettlementParty extends Ecom_PartyIdentification implements IConvertible { String partyRoleCode = ""; SettlementParty({this.partyRoleCode}); SettlementParty.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); partyRoleCode = json['partyRoleCode']; return this; } Map toJson() => super.toJson()..addAll({ 'partyRoleCode': partyRoleCode }); getTypeName() => "SettlementParty"; TypeContext? context = _ctx; } class SettlementLineItem implements IConvertible { double? amountPaid; int lineItemNumber = 0; double? originalAmount; List settlementAdjustment = []; AvpList avpList; DocumentReference debitCreditAdvice; InvoiceDocumentReference invoice; DocumentReference requestForPayment; List settlementParty = []; SettlementLineItem({this.amountPaid,this.lineItemNumber,this.originalAmount,this.settlementAdjustment,this.avpList,this.debitCreditAdvice,this.invoice,this.requestForPayment,this.settlementParty}); SettlementLineItem.fromJson(Map json) { fromMap(json); } fromMap(Map json) { amountPaid = JsonConverters.toDouble(json['amountPaid']); lineItemNumber = json['lineItemNumber']; originalAmount = JsonConverters.toDouble(json['originalAmount']); settlementAdjustment = JsonConverters.fromJson(json['settlementAdjustment'],'List',context!); avpList = JsonConverters.fromJson(json['avpList'],'AvpList',context!); debitCreditAdvice = JsonConverters.fromJson(json['debitCreditAdvice'],'DocumentReference',context!); invoice = JsonConverters.fromJson(json['invoice'],'InvoiceDocumentReference',context!); requestForPayment = JsonConverters.fromJson(json['requestForPayment'],'DocumentReference',context!); settlementParty = JsonConverters.fromJson(json['settlementParty'],'List',context!); return this; } Map toJson() => { 'amountPaid': amountPaid, 'lineItemNumber': lineItemNumber, 'originalAmount': originalAmount, 'settlementAdjustment': JsonConverters.toJson(settlementAdjustment,'List',context!), 'avpList': JsonConverters.toJson(avpList,'AvpList',context!), 'debitCreditAdvice': JsonConverters.toJson(debitCreditAdvice,'DocumentReference',context!), 'invoice': JsonConverters.toJson(invoice,'InvoiceDocumentReference',context!), 'requestForPayment': JsonConverters.toJson(requestForPayment,'DocumentReference',context!), 'settlementParty': JsonConverters.toJson(settlementParty,'List',context!) }; getTypeName() => "SettlementLineItem"; TypeContext? context = _ctx; } class SettlementExtensionLineItem implements IConvertible { int number = 0; String documentType = ""; String documentNumber = ""; String itemText = ""; SettlementExtensionLineItem({this.number,this.documentType,this.documentNumber,this.itemText}); SettlementExtensionLineItem.fromJson(Map json) { fromMap(json); } fromMap(Map json) { number = json['number']; documentType = json['documentType']; documentNumber = json['documentNumber']; itemText = json['itemText']; return this; } Map toJson() => { 'number': number, 'documentType': documentType, 'documentNumber': documentNumber, 'itemText': itemText }; getTypeName() => "SettlementExtensionLineItem"; TypeContext? context = _ctx; } class AdjustmentAndDiscountSummary implements IConvertible { double amountTotal = 0; double amountNett = 0; double amountVat = 0; String reasonMessage = ""; AdjustmentAndDiscountSummary({this.amountTotal,this.amountNett,this.amountVat,this.reasonMessage}); AdjustmentAndDiscountSummary.fromJson(Map json) { fromMap(json); } fromMap(Map json) { amountTotal = JsonConverters.toDouble(json['amountTotal']); amountNett = JsonConverters.toDouble(json['amountNett']); amountVat = JsonConverters.toDouble(json['amountVat']); reasonMessage = json['reasonMessage']; return this; } Map toJson() => { 'amountTotal': amountTotal, 'amountNett': amountNett, 'amountVat': amountVat, 'reasonMessage': reasonMessage }; getTypeName() => "AdjustmentAndDiscountSummary"; TypeContext? context = _ctx; } class TotalAmountSplit implements IConvertible { double amountTotal = 0; double amountNett = 0; double amountVat = 0; TotalAmountSplit({this.amountTotal,this.amountNett,this.amountVat}); TotalAmountSplit.fromJson(Map json) { fromMap(json); } fromMap(Map json) { amountTotal = JsonConverters.toDouble(json['amountTotal']); amountNett = JsonConverters.toDouble(json['amountNett']); amountVat = JsonConverters.toDouble(json['amountVat']); return this; } Map toJson() => { 'amountTotal': amountTotal, 'amountNett': amountNett, 'amountVat': amountVat }; getTypeName() => "TotalAmountSplit"; TypeContext? context = _ctx; } class SettlementExtension implements IConvertible { List settlementExtensionLineItem = []; List adjustmentAndDiscountSummary = []; TotalAmountSplit totalAmountSplit; SettlementExtension({this.settlementExtensionLineItem,this.adjustmentAndDiscountSummary,this.totalAmountSplit}); SettlementExtension.fromJson(Map json) { fromMap(json); } fromMap(Map json) { settlementExtensionLineItem = JsonConverters.fromJson(json['settlementExtensionLineItem'],'List',context!); adjustmentAndDiscountSummary = JsonConverters.fromJson(json['adjustmentAndDiscountSummary'],'List',context!); totalAmountSplit = JsonConverters.fromJson(json['totalAmountSplit'],'TotalAmountSplit',context!); return this; } Map toJson() => { 'settlementExtensionLineItem': JsonConverters.toJson(settlementExtensionLineItem,'List',context!), 'adjustmentAndDiscountSummary': JsonConverters.toJson(adjustmentAndDiscountSummary,'List',context!), 'totalAmountSplit': JsonConverters.toJson(totalAmountSplit,'TotalAmountSplit',context!) }; getTypeName() => "SettlementExtension"; TypeContext? context = _ctx; } class Settlement extends BaseDocument implements IConvertible { String batchIdentification = ""; DateTime paymentEffectiveDate = DateTime(0); String settlementCurrency = ""; String settlementHandlingTypeCode = ""; double? totalAmount; PaymentMethod paymentMethod; TransactionalParty payee; TransactionalParty payer; TransactionalParty remitTo; String settlementIdentification = ""; List settlementLineItem = []; SettlementExtension Extension; Settlement({this.batchIdentification,this.paymentEffectiveDate,this.settlementCurrency,this.settlementHandlingTypeCode,this.totalAmount,this.paymentMethod,this.payee,this.payer,this.remitTo,this.settlementIdentification,this.settlementLineItem,this.Extension}); Settlement.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); batchIdentification = json['batchIdentification']; paymentEffectiveDate = JsonConverters.fromJson(json['paymentEffectiveDate'],'DateTime',context!); settlementCurrency = json['settlementCurrency']; settlementHandlingTypeCode = json['settlementHandlingTypeCode']; totalAmount = JsonConverters.toDouble(json['totalAmount']); paymentMethod = JsonConverters.fromJson(json['paymentMethod'],'PaymentMethod',context!); payee = JsonConverters.fromJson(json['payee'],'TransactionalParty',context!); payer = JsonConverters.fromJson(json['payer'],'TransactionalParty',context!); remitTo = JsonConverters.fromJson(json['remitTo'],'TransactionalParty',context!); settlementIdentification = json['settlementIdentification']; settlementLineItem = JsonConverters.fromJson(json['settlementLineItem'],'List',context!); Extension = JsonConverters.fromJson(json['extension'],'SettlementExtension',context!); return this; } Map toJson() => super.toJson()..addAll({ 'batchIdentification': batchIdentification, 'paymentEffectiveDate': JsonConverters.toJson(paymentEffectiveDate,'DateTime',context!), 'settlementCurrency': settlementCurrency, 'settlementHandlingTypeCode': settlementHandlingTypeCode, 'totalAmount': totalAmount, 'paymentMethod': JsonConverters.toJson(paymentMethod,'PaymentMethod',context!), 'payee': JsonConverters.toJson(payee,'TransactionalParty',context!), 'payer': JsonConverters.toJson(payer,'TransactionalParty',context!), 'remitTo': JsonConverters.toJson(remitTo,'TransactionalParty',context!), 'settlementIdentification': settlementIdentification, 'settlementLineItem': JsonConverters.toJson(settlementLineItem,'List',context!), 'extension': JsonConverters.toJson(Extension,'SettlementExtension',context!) }); getTypeName() => "Settlement"; TypeContext? context = _ctx; } class SettlementMessage implements IConvertible { Header header; Settlement settlement; SettlementMessage({this.header,this.settlement}); SettlementMessage.fromJson(Map json) { fromMap(json); } fromMap(Map json) { header = JsonConverters.fromJson(json['header'],'Header',context!); settlement = JsonConverters.fromJson(json['settlement'],'Settlement',context!); return this; } Map toJson() => { 'header': JsonConverters.toJson(header,'Header',context!), 'settlement': JsonConverters.toJson(settlement,'Settlement',context!) }; getTypeName() => "SettlementMessage"; TypeContext? context = _ctx; } /** * Settlement */ // @Route("/settlement/{Id}", "GET") // @Api(Description="Settlement") // @ApiResponse(Description="Settlement data", IsDefaultResponse=true, StatusCode=200) // @ApiResponse(Description="No Content", ResponseType=typeof(IReturnVoid), StatusCode=204) // @ApiResponse(Description="Specified argument was out of the range of valid values.", ResponseType=typeof(ArgumentOutOfRangeException), StatusCode=400) class GetSettlementById implements IReturn, IGetDocumentById, IConvertible, IGet { /** * Settlement ID or Token */ // @ApiMember(Description="Settlement ID or Token", ExcludeInSchema=true, ParameterType="path") String id = ""; GetSettlementById({this.id}); GetSettlementById.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; return this; } Map toJson() => { 'id': id }; createResponse() => SettlementMessage(); getResponseTypeName() => "SettlementMessage"; getTypeName() => "GetSettlementById"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'stf_api_uat.data_xchange.co.za', types: { 'IGetDocumentById': TypeInfo(TypeOf.Interface), 'ISingleEntityQuery': TypeInfo(TypeOf.Interface), 'DocumentIdentification': TypeInfo(TypeOf.Class, create:() => DocumentIdentification()), 'Identifier': TypeInfo(TypeOf.Class, create:() => Identifier()), 'ContactInformation': TypeInfo(TypeOf.Class, create:() => ContactInformation()), 'Partner': TypeInfo(TypeOf.Class, create:() => Partner()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'Header': TypeInfo(TypeOf.Class, create:() => Header()), 'AvpList': TypeInfo(TypeOf.Class, create:() => AvpList()), 'Ecom_PartyIdentificationType': TypeInfo(TypeOf.Class, create:() => Ecom_PartyIdentificationType()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'CommunicationChannel': TypeInfo(TypeOf.Class, create:() => CommunicationChannel()), 'Contact': TypeInfo(TypeOf.Class, create:() => Contact()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'Address': TypeInfo(TypeOf.Class, create:() => Address()), 'FinancialRoutingNumber': TypeInfo(TypeOf.Class, create:() => FinancialRoutingNumber()), 'FinancialAccount': TypeInfo(TypeOf.Class, create:() => FinancialAccount()), 'FinancialInstitutionInformation': TypeInfo(TypeOf.Class, create:() => FinancialInstitutionInformation()), 'TransactionalParty': TypeInfo(TypeOf.Class, create:() => TransactionalParty()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'DocumentAction': TypeInfo(TypeOf.Enum, enumValues:DocumentAction.values), 'DocumentStatus': TypeInfo(TypeOf.Enum, enumValues:DocumentStatus.values), 'BaseDocument': TypeInfo(TypeOf.Class, create:() => BaseDocument()), 'PaymentMethod': TypeInfo(TypeOf.Class, create:() => PaymentMethod()), 'DocumentReference': TypeInfo(TypeOf.Class, create:() => DocumentReference()), 'TransactionalReference': TypeInfo(TypeOf.Class, create:() => TransactionalReference()), 'SettlementAdjustment': TypeInfo(TypeOf.Class, create:() => SettlementAdjustment()), 'ContentOwner': TypeInfo(TypeOf.Class, create:() => ContentOwner()), 'InvoiceDocumentReference': TypeInfo(TypeOf.Class, create:() => InvoiceDocumentReference()), 'Ecom_PartyIdentification': TypeInfo(TypeOf.Class, create:() => Ecom_PartyIdentification()), 'SettlementParty': TypeInfo(TypeOf.Class, create:() => SettlementParty()), 'SettlementLineItem': TypeInfo(TypeOf.Class, create:() => SettlementLineItem()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'SettlementExtensionLineItem': TypeInfo(TypeOf.Class, create:() => SettlementExtensionLineItem()), 'AdjustmentAndDiscountSummary': TypeInfo(TypeOf.Class, create:() => AdjustmentAndDiscountSummary()), 'TotalAmountSplit': TypeInfo(TypeOf.Class, create:() => TotalAmountSplit()), 'SettlementExtension': TypeInfo(TypeOf.Class, create:() => SettlementExtension()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'Settlement': TypeInfo(TypeOf.Class, create:() => Settlement()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'SettlementMessage': TypeInfo(TypeOf.Class, create:() => SettlementMessage()), 'GetSettlementById': TypeInfo(TypeOf.Class, create:() => GetSettlementById()), });