/* Options: Date: 2025-04-04 17:15:49 Version: 6.10 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://staging-api.billiecart.com.au //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: UpdatePaymentRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; abstract class ITenantedRequest { String? organisationId; } abstract class PutOperationUnTenanted implements IPut { PutOperationUnTenanted(); PutOperationUnTenanted.fromJson(Map json) : super(); fromMap(Map json) { return this; } Map toJson() => {}; getTypeName() => "PutOperationUnTenanted<$TResponse>"; TypeContext? context = _ctx; } abstract class PutOperationTenanted extends PutOperationUnTenanted implements ITenantedRequest { String? organisationId; PutOperationTenanted({this.organisationId}); PutOperationTenanted.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); organisationId = json['organisationId']; return this; } Map toJson() => super.toJson()..addAll({ 'organisationId': organisationId }); getTypeName() => "PutOperationTenanted<$TResponse>"; TypeContext? context = _ctx; } class BankAccount implements IConvertible { String? bsbNumber; String? accountNumber; BankAccount({this.bsbNumber,this.accountNumber}); BankAccount.fromJson(Map json) { fromMap(json); } fromMap(Map json) { bsbNumber = json['bsbNumber']; accountNumber = json['accountNumber']; return this; } Map toJson() => { 'bsbNumber': bsbNumber, 'accountNumber': accountNumber }; getTypeName() => "BankAccount"; TypeContext? context = _ctx; } class Payment implements IIdentifiableResource, IConvertible { String? salaryPackageId; double? amount; double? gstAmount; String? particulars; String? budgetCategory; String? status; BankAccount? toAccount; String? id; Payment({this.salaryPackageId,this.amount,this.gstAmount,this.particulars,this.budgetCategory,this.status,this.toAccount,this.id}); Payment.fromJson(Map json) { fromMap(json); } fromMap(Map json) { salaryPackageId = json['salaryPackageId']; amount = JsonConverters.toDouble(json['amount']); gstAmount = JsonConverters.toDouble(json['gstAmount']); particulars = json['particulars']; budgetCategory = json['budgetCategory']; status = json['status']; toAccount = JsonConverters.fromJson(json['toAccount'],'BankAccount',context!); id = json['id']; return this; } Map toJson() => { 'salaryPackageId': salaryPackageId, 'amount': amount, 'gstAmount': gstAmount, 'particulars': particulars, 'budgetCategory': budgetCategory, 'status': status, 'toAccount': JsonConverters.toJson(toAccount,'BankAccount',context!), 'id': id }; getTypeName() => "Payment"; TypeContext? context = _ctx; } abstract class IIdentifiableResource { String? id; } class UpdatePaymentResponse implements IConvertible { ResponseStatus? responseStatus; Payment? payment; UpdatePaymentResponse({this.responseStatus,this.payment}); UpdatePaymentResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { responseStatus = JsonConverters.fromJson(json['responseStatus'],'ResponseStatus',context!); payment = JsonConverters.fromJson(json['payment'],'Payment',context!); return this; } Map toJson() => { 'responseStatus': JsonConverters.toJson(responseStatus,'ResponseStatus',context!), 'payment': JsonConverters.toJson(payment,'Payment',context!) }; getTypeName() => "UpdatePaymentResponse"; TypeContext? context = _ctx; } // @Route("/payments/{Id}", "PUT") class UpdatePaymentRequest extends PutOperationTenanted implements IReturn, IConvertible { String? id; double? amount; double? gstAmount; String? particulars; String? budgetCategory; UpdatePaymentRequest({this.id,this.amount,this.gstAmount,this.particulars,this.budgetCategory}); UpdatePaymentRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); id = json['id']; amount = JsonConverters.toDouble(json['amount']); gstAmount = JsonConverters.toDouble(json['gstAmount']); particulars = json['particulars']; budgetCategory = json['budgetCategory']; return this; } Map toJson() => super.toJson()..addAll({ 'id': id, 'amount': amount, 'gstAmount': gstAmount, 'particulars': particulars, 'budgetCategory': budgetCategory }); createResponse() => UpdatePaymentResponse(); getResponseTypeName() => "UpdatePaymentResponse"; getTypeName() => "UpdatePaymentRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'staging_api.billiecart.com.au', types: { 'ITenantedRequest': TypeInfo(TypeOf.Interface), 'PutOperationUnTenanted': TypeInfo(TypeOf.AbstractClass), 'PutOperationTenanted': TypeInfo(TypeOf.AbstractClass), 'BankAccount': TypeInfo(TypeOf.Class, create:() => BankAccount()), 'Payment': TypeInfo(TypeOf.Class, create:() => Payment()), 'IIdentifiableResource': TypeInfo(TypeOf.Interface), 'UpdatePaymentResponse': TypeInfo(TypeOf.Class, create:() => UpdatePaymentResponse()), 'UpdatePaymentRequest': TypeInfo(TypeOf.Class, create:() => UpdatePaymentRequest()), });