/* Options: Date: 2024-12-15 20:57:40 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: SetNotesRequest.* //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 BudgetBreakdown implements IConvertible { double? leaseAmount; double? administrationFee; double? fuel; double? servicing; double? tyres; double? insurance; double? carWash; double? registration; double? roadSideAssistance; double? anythingExtra; BudgetBreakdown({this.leaseAmount,this.administrationFee,this.fuel,this.servicing,this.tyres,this.insurance,this.carWash,this.registration,this.roadSideAssistance,this.anythingExtra}); BudgetBreakdown.fromJson(Map json) { fromMap(json); } fromMap(Map json) { leaseAmount = JsonConverters.toDouble(json['leaseAmount']); administrationFee = JsonConverters.toDouble(json['administrationFee']); fuel = JsonConverters.toDouble(json['fuel']); servicing = JsonConverters.toDouble(json['servicing']); tyres = JsonConverters.toDouble(json['tyres']); insurance = JsonConverters.toDouble(json['insurance']); carWash = JsonConverters.toDouble(json['carWash']); registration = JsonConverters.toDouble(json['registration']); roadSideAssistance = JsonConverters.toDouble(json['roadSideAssistance']); anythingExtra = JsonConverters.toDouble(json['anythingExtra']); return this; } Map toJson() => { 'leaseAmount': leaseAmount, 'administrationFee': administrationFee, 'fuel': fuel, 'servicing': servicing, 'tyres': tyres, 'insurance': insurance, 'carWash': carWash, 'registration': registration, 'roadSideAssistance': roadSideAssistance, 'anythingExtra': anythingExtra }; getTypeName() => "BudgetBreakdown"; TypeContext? context = _ctx; } class Employment implements IConvertible { String? payrollCycle; DateTime? firstPayDate; String? employerId; String? employerName; Employment({this.payrollCycle,this.firstPayDate,this.employerId,this.employerName}); Employment.fromJson(Map json) { fromMap(json); } fromMap(Map json) { payrollCycle = json['payrollCycle']; firstPayDate = JsonConverters.fromJson(json['firstPayDate'],'DateTime',context!); employerId = json['employerId']; employerName = json['employerName']; return this; } Map toJson() => { 'payrollCycle': payrollCycle, 'firstPayDate': JsonConverters.toJson(firstPayDate,'DateTime',context!), 'employerId': employerId, 'employerName': employerName }; getTypeName() => "Employment"; TypeContext? context = _ctx; } class Vehicle implements IConvertible { String? make; String? model; String? colour; String? bodyShape; String? licensePlate; String? transmission; int? manufactureYear; Vehicle({this.make,this.model,this.colour,this.bodyShape,this.licensePlate,this.transmission,this.manufactureYear}); Vehicle.fromJson(Map json) { fromMap(json); } fromMap(Map json) { make = json['make']; model = json['model']; colour = json['colour']; bodyShape = json['bodyShape']; licensePlate = json['licensePlate']; transmission = json['transmission']; manufactureYear = json['manufactureYear']; return this; } Map toJson() => { 'make': make, 'model': model, 'colour': colour, 'bodyShape': bodyShape, 'licensePlate': licensePlate, 'transmission': transmission, 'manufactureYear': manufactureYear }; getTypeName() => "Vehicle"; 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 LeaseDetails implements IConvertible { int? term; DateTime? startDate; double? amountFinanced; double? paymentAmount; String? financeProvider; double? residualValue; int? yearlyKmsTravelled; double? fringeBenefitTaxValue; String? fringeBenefitTaxMethod; int? fringeBenefitTaxBusinessUse; DateTime? fringeBenefitTaxStartDate; double? preTaxDeduction; double? postTaxDeduction; double? gstOnPostTaxDeduction; double? luxuryVehicleCharge; double? onRoadCost; DateTime? registrationDueDate; DateTime? insuranceDueDate; BankAccount? leaseProviderBankAccount; LeaseDetails({this.term,this.startDate,this.amountFinanced,this.paymentAmount,this.financeProvider,this.residualValue,this.yearlyKmsTravelled,this.fringeBenefitTaxValue,this.fringeBenefitTaxMethod,this.fringeBenefitTaxBusinessUse,this.fringeBenefitTaxStartDate,this.preTaxDeduction,this.postTaxDeduction,this.gstOnPostTaxDeduction,this.luxuryVehicleCharge,this.onRoadCost,this.registrationDueDate,this.insuranceDueDate,this.leaseProviderBankAccount}); LeaseDetails.fromJson(Map json) { fromMap(json); } fromMap(Map json) { term = json['term']; startDate = JsonConverters.fromJson(json['startDate'],'DateTime',context!); amountFinanced = JsonConverters.toDouble(json['amountFinanced']); paymentAmount = JsonConverters.toDouble(json['paymentAmount']); financeProvider = json['financeProvider']; residualValue = JsonConverters.toDouble(json['residualValue']); yearlyKmsTravelled = json['yearlyKmsTravelled']; fringeBenefitTaxValue = JsonConverters.toDouble(json['fringeBenefitTaxValue']); fringeBenefitTaxMethod = json['fringeBenefitTaxMethod']; fringeBenefitTaxBusinessUse = json['fringeBenefitTaxBusinessUse']; fringeBenefitTaxStartDate = JsonConverters.fromJson(json['fringeBenefitTaxStartDate'],'DateTime',context!); preTaxDeduction = JsonConverters.toDouble(json['preTaxDeduction']); postTaxDeduction = JsonConverters.toDouble(json['postTaxDeduction']); gstOnPostTaxDeduction = JsonConverters.toDouble(json['gstOnPostTaxDeduction']); luxuryVehicleCharge = JsonConverters.toDouble(json['luxuryVehicleCharge']); onRoadCost = JsonConverters.toDouble(json['onRoadCost']); registrationDueDate = JsonConverters.fromJson(json['registrationDueDate'],'DateTime',context!); insuranceDueDate = JsonConverters.fromJson(json['insuranceDueDate'],'DateTime',context!); leaseProviderBankAccount = JsonConverters.fromJson(json['leaseProviderBankAccount'],'BankAccount',context!); return this; } Map toJson() => { 'term': term, 'startDate': JsonConverters.toJson(startDate,'DateTime',context!), 'amountFinanced': amountFinanced, 'paymentAmount': paymentAmount, 'financeProvider': financeProvider, 'residualValue': residualValue, 'yearlyKmsTravelled': yearlyKmsTravelled, 'fringeBenefitTaxValue': fringeBenefitTaxValue, 'fringeBenefitTaxMethod': fringeBenefitTaxMethod, 'fringeBenefitTaxBusinessUse': fringeBenefitTaxBusinessUse, 'fringeBenefitTaxStartDate': JsonConverters.toJson(fringeBenefitTaxStartDate,'DateTime',context!), 'preTaxDeduction': preTaxDeduction, 'postTaxDeduction': postTaxDeduction, 'gstOnPostTaxDeduction': gstOnPostTaxDeduction, 'luxuryVehicleCharge': luxuryVehicleCharge, 'onRoadCost': onRoadCost, 'registrationDueDate': JsonConverters.toJson(registrationDueDate,'DateTime',context!), 'insuranceDueDate': JsonConverters.toJson(insuranceDueDate,'DateTime',context!), 'leaseProviderBankAccount': JsonConverters.toJson(leaseProviderBankAccount,'BankAccount',context!) }; getTypeName() => "LeaseDetails"; TypeContext? context = _ctx; } class BudgetBalances implements IConvertible { double? leaseAmount; double? administrationFee; double? fuel; double? servicing; double? tyres; double? insurance; double? carWash; double? registration; double? roadSideAssistance; double? anythingExtra; BudgetBalances({this.leaseAmount,this.administrationFee,this.fuel,this.servicing,this.tyres,this.insurance,this.carWash,this.registration,this.roadSideAssistance,this.anythingExtra}); BudgetBalances.fromJson(Map json) { fromMap(json); } fromMap(Map json) { leaseAmount = JsonConverters.toDouble(json['leaseAmount']); administrationFee = JsonConverters.toDouble(json['administrationFee']); fuel = JsonConverters.toDouble(json['fuel']); servicing = JsonConverters.toDouble(json['servicing']); tyres = JsonConverters.toDouble(json['tyres']); insurance = JsonConverters.toDouble(json['insurance']); carWash = JsonConverters.toDouble(json['carWash']); registration = JsonConverters.toDouble(json['registration']); roadSideAssistance = JsonConverters.toDouble(json['roadSideAssistance']); anythingExtra = JsonConverters.toDouble(json['anythingExtra']); return this; } Map toJson() => { 'leaseAmount': leaseAmount, 'administrationFee': administrationFee, 'fuel': fuel, 'servicing': servicing, 'tyres': tyres, 'insurance': insurance, 'carWash': carWash, 'registration': registration, 'roadSideAssistance': roadSideAssistance, 'anythingExtra': anythingExtra }; getTypeName() => "BudgetBalances"; TypeContext? context = _ctx; } class SalarySacrificeBreakdown implements IConvertible { double? leaseAmount; double? administrationFee; double? fuel; double? servicing; double? tyres; double? insurance; double? carWash; double? registration; double? roadSideAssistance; double? anythingExtra; SalarySacrificeBreakdown({this.leaseAmount,this.administrationFee,this.fuel,this.servicing,this.tyres,this.insurance,this.carWash,this.registration,this.roadSideAssistance,this.anythingExtra}); SalarySacrificeBreakdown.fromJson(Map json) { fromMap(json); } fromMap(Map json) { leaseAmount = JsonConverters.toDouble(json['leaseAmount']); administrationFee = JsonConverters.toDouble(json['administrationFee']); fuel = JsonConverters.toDouble(json['fuel']); servicing = JsonConverters.toDouble(json['servicing']); tyres = JsonConverters.toDouble(json['tyres']); insurance = JsonConverters.toDouble(json['insurance']); carWash = JsonConverters.toDouble(json['carWash']); registration = JsonConverters.toDouble(json['registration']); roadSideAssistance = JsonConverters.toDouble(json['roadSideAssistance']); anythingExtra = JsonConverters.toDouble(json['anythingExtra']); return this; } Map toJson() => { 'leaseAmount': leaseAmount, 'administrationFee': administrationFee, 'fuel': fuel, 'servicing': servicing, 'tyres': tyres, 'insurance': insurance, 'carWash': carWash, 'registration': registration, 'roadSideAssistance': roadSideAssistance, 'anythingExtra': anythingExtra }; getTypeName() => "SalarySacrificeBreakdown"; TypeContext? context = _ctx; } class SalarySacrifice implements IConvertible { DateTime? paymentDate; SalarySacrificeBreakdown? salarySacrificeBreakdown; double? preTaxDeduction; double? postTaxDeduction; String? contributionId; SalarySacrifice({this.paymentDate,this.salarySacrificeBreakdown,this.preTaxDeduction,this.postTaxDeduction,this.contributionId}); SalarySacrifice.fromJson(Map json) { fromMap(json); } fromMap(Map json) { paymentDate = JsonConverters.fromJson(json['paymentDate'],'DateTime',context!); salarySacrificeBreakdown = JsonConverters.fromJson(json['salarySacrificeBreakdown'],'SalarySacrificeBreakdown',context!); preTaxDeduction = JsonConverters.toDouble(json['preTaxDeduction']); postTaxDeduction = JsonConverters.toDouble(json['postTaxDeduction']); contributionId = json['contributionId']; return this; } Map toJson() => { 'paymentDate': JsonConverters.toJson(paymentDate,'DateTime',context!), 'salarySacrificeBreakdown': JsonConverters.toJson(salarySacrificeBreakdown,'SalarySacrificeBreakdown',context!), 'preTaxDeduction': preTaxDeduction, 'postTaxDeduction': postTaxDeduction, 'contributionId': contributionId }; getTypeName() => "SalarySacrifice"; TypeContext? context = _ctx; } class ForecastedSalarySacrifice implements IConvertible { DateTime? paymentDate; double? amount; SalarySacrifice? matched; ForecastedSalarySacrifice({this.paymentDate,this.amount,this.matched}); ForecastedSalarySacrifice.fromJson(Map json) { fromMap(json); } fromMap(Map json) { paymentDate = JsonConverters.fromJson(json['paymentDate'],'DateTime',context!); amount = JsonConverters.toDouble(json['amount']); matched = JsonConverters.fromJson(json['matched'],'SalarySacrifice',context!); return this; } Map toJson() => { 'paymentDate': JsonConverters.toJson(paymentDate,'DateTime',context!), 'amount': amount, 'matched': JsonConverters.toJson(matched,'SalarySacrifice',context!) }; getTypeName() => "ForecastedSalarySacrifice"; TypeContext? context = _ctx; } class Expense implements IConvertible { String? budgetCategory; double? amount; double? gst; Expense({this.budgetCategory,this.amount,this.gst}); Expense.fromJson(Map json) { fromMap(json); } fromMap(Map json) { budgetCategory = json['budgetCategory']; amount = JsonConverters.toDouble(json['amount']); gst = JsonConverters.toDouble(json['gst']); return this; } Map toJson() => { 'budgetCategory': budgetCategory, 'amount': amount, 'gst': gst }; getTypeName() => "Expense"; TypeContext? context = _ctx; } class ForecastedOutgoingPayment implements IConvertible { DateTime? scheduled; double? amount; String? budgetCategory; Expense? matched; ForecastedOutgoingPayment({this.scheduled,this.amount,this.budgetCategory,this.matched}); ForecastedOutgoingPayment.fromJson(Map json) { fromMap(json); } fromMap(Map json) { scheduled = JsonConverters.fromJson(json['scheduled'],'DateTime',context!); amount = JsonConverters.toDouble(json['amount']); budgetCategory = json['budgetCategory']; matched = JsonConverters.fromJson(json['matched'],'Expense',context!); return this; } Map toJson() => { 'scheduled': JsonConverters.toJson(scheduled,'DateTime',context!), 'amount': amount, 'budgetCategory': budgetCategory, 'matched': JsonConverters.toJson(matched,'Expense',context!) }; getTypeName() => "ForecastedOutgoingPayment"; TypeContext? context = _ctx; } class Adjustment implements IIdentifiableResource, IConvertible { String? budgetCategory; double? amount; double? gst; String? description; DateTime? received; String? id; Adjustment({this.budgetCategory,this.amount,this.gst,this.description,this.received,this.id}); Adjustment.fromJson(Map json) { fromMap(json); } fromMap(Map json) { budgetCategory = json['budgetCategory']; amount = JsonConverters.toDouble(json['amount']); gst = JsonConverters.toDouble(json['gst']); description = json['description']; received = JsonConverters.fromJson(json['received'],'DateTime',context!); id = json['id']; return this; } Map toJson() => { 'budgetCategory': budgetCategory, 'amount': amount, 'gst': gst, 'description': description, 'received': JsonConverters.toJson(received,'DateTime',context!), 'id': id }; getTypeName() => "Adjustment"; TypeContext? context = _ctx; } class Transaction implements IConvertible { DateTime? received; String? budgetCategory; double? amount; double? gst; String? description; String? type; Transaction({this.received,this.budgetCategory,this.amount,this.gst,this.description,this.type}); Transaction.fromJson(Map json) { fromMap(json); } fromMap(Map json) { received = JsonConverters.fromJson(json['received'],'DateTime',context!); budgetCategory = json['budgetCategory']; amount = JsonConverters.toDouble(json['amount']); gst = JsonConverters.toDouble(json['gst']); description = json['description']; type = json['type']; return this; } Map toJson() => { 'received': JsonConverters.toJson(received,'DateTime',context!), 'budgetCategory': budgetCategory, 'amount': amount, 'gst': gst, 'description': description, 'type': type }; getTypeName() => "Transaction"; TypeContext? context = _ctx; } class SalaryPackage implements IIdentifiableResource, IConvertible { String? customerId; String? customerFirstName; String? customerLastName; String? status; String? notes; BudgetBreakdown? budgetBreakdown; Employment? employment; Vehicle? vehicle; LeaseDetails? leaseDetails; BudgetBalances? budgetBalances; double? currentBalance; List? forecastedSalarySacrifices; List? forecastedOutgoingPayments; List? adjustments; List? transactions; String? id; SalaryPackage({this.customerId,this.customerFirstName,this.customerLastName,this.status,this.notes,this.budgetBreakdown,this.employment,this.vehicle,this.leaseDetails,this.budgetBalances,this.currentBalance,this.forecastedSalarySacrifices,this.forecastedOutgoingPayments,this.adjustments,this.transactions,this.id}); SalaryPackage.fromJson(Map json) { fromMap(json); } fromMap(Map json) { customerId = json['customerId']; customerFirstName = json['customerFirstName']; customerLastName = json['customerLastName']; status = json['status']; notes = json['notes']; budgetBreakdown = JsonConverters.fromJson(json['budgetBreakdown'],'BudgetBreakdown',context!); employment = JsonConverters.fromJson(json['employment'],'Employment',context!); vehicle = JsonConverters.fromJson(json['vehicle'],'Vehicle',context!); leaseDetails = JsonConverters.fromJson(json['leaseDetails'],'LeaseDetails',context!); budgetBalances = JsonConverters.fromJson(json['budgetBalances'],'BudgetBalances',context!); currentBalance = JsonConverters.toDouble(json['currentBalance']); forecastedSalarySacrifices = JsonConverters.fromJson(json['forecastedSalarySacrifices'],'List',context!); forecastedOutgoingPayments = JsonConverters.fromJson(json['forecastedOutgoingPayments'],'List',context!); adjustments = JsonConverters.fromJson(json['adjustments'],'List',context!); transactions = JsonConverters.fromJson(json['transactions'],'List',context!); id = json['id']; return this; } Map toJson() => { 'customerId': customerId, 'customerFirstName': customerFirstName, 'customerLastName': customerLastName, 'status': status, 'notes': notes, 'budgetBreakdown': JsonConverters.toJson(budgetBreakdown,'BudgetBreakdown',context!), 'employment': JsonConverters.toJson(employment,'Employment',context!), 'vehicle': JsonConverters.toJson(vehicle,'Vehicle',context!), 'leaseDetails': JsonConverters.toJson(leaseDetails,'LeaseDetails',context!), 'budgetBalances': JsonConverters.toJson(budgetBalances,'BudgetBalances',context!), 'currentBalance': currentBalance, 'forecastedSalarySacrifices': JsonConverters.toJson(forecastedSalarySacrifices,'List',context!), 'forecastedOutgoingPayments': JsonConverters.toJson(forecastedOutgoingPayments,'List',context!), 'adjustments': JsonConverters.toJson(adjustments,'List',context!), 'transactions': JsonConverters.toJson(transactions,'List',context!), 'id': id }; getTypeName() => "SalaryPackage"; TypeContext? context = _ctx; } abstract class IIdentifiableResource { String? id; } class SetNotesResponse implements IConvertible { ResponseStatus? responseStatus; SalaryPackage? salaryPackage; SetNotesResponse({this.responseStatus,this.salaryPackage}); SetNotesResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { responseStatus = JsonConverters.fromJson(json['responseStatus'],'ResponseStatus',context!); salaryPackage = JsonConverters.fromJson(json['salaryPackage'],'SalaryPackage',context!); return this; } Map toJson() => { 'responseStatus': JsonConverters.toJson(responseStatus,'ResponseStatus',context!), 'salaryPackage': JsonConverters.toJson(salaryPackage,'SalaryPackage',context!) }; getTypeName() => "SetNotesResponse"; TypeContext? context = _ctx; } // @Route("/packages/{Id}/update-notes", "PUT") class SetNotesRequest extends PutOperationTenanted implements IReturn, IConvertible { String? id; String? notes; SetNotesRequest({this.id,this.notes}); SetNotesRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); id = json['id']; notes = json['notes']; return this; } Map toJson() => super.toJson()..addAll({ 'id': id, 'notes': notes }); createResponse() => SetNotesResponse(); getResponseTypeName() => "SetNotesResponse"; getTypeName() => "SetNotesRequest"; 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), 'BudgetBreakdown': TypeInfo(TypeOf.Class, create:() => BudgetBreakdown()), 'Employment': TypeInfo(TypeOf.Class, create:() => Employment()), 'Vehicle': TypeInfo(TypeOf.Class, create:() => Vehicle()), 'BankAccount': TypeInfo(TypeOf.Class, create:() => BankAccount()), 'LeaseDetails': TypeInfo(TypeOf.Class, create:() => LeaseDetails()), 'BudgetBalances': TypeInfo(TypeOf.Class, create:() => BudgetBalances()), 'SalarySacrificeBreakdown': TypeInfo(TypeOf.Class, create:() => SalarySacrificeBreakdown()), 'SalarySacrifice': TypeInfo(TypeOf.Class, create:() => SalarySacrifice()), 'ForecastedSalarySacrifice': TypeInfo(TypeOf.Class, create:() => ForecastedSalarySacrifice()), 'Expense': TypeInfo(TypeOf.Class, create:() => Expense()), 'ForecastedOutgoingPayment': TypeInfo(TypeOf.Class, create:() => ForecastedOutgoingPayment()), 'Adjustment': TypeInfo(TypeOf.Class, create:() => Adjustment()), 'Transaction': TypeInfo(TypeOf.Class, create:() => Transaction()), 'SalaryPackage': TypeInfo(TypeOf.Class, create:() => SalaryPackage()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'IIdentifiableResource': TypeInfo(TypeOf.Interface), 'SetNotesResponse': TypeInfo(TypeOf.Class, create:() => SetNotesResponse()), 'SetNotesRequest': TypeInfo(TypeOf.Class, create:() => SetNotesRequest()), });