/* Options: Date: 2024-12-15 19:52:34 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: GetPaymentRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; abstract class GetOperationUnTenanted implements IHasGetOptions, IGet { String? embed; GetOperationUnTenanted({this.embed}); GetOperationUnTenanted.fromJson(Map json) { fromMap(json); } fromMap(Map json) { embed = json['embed']; return this; } Map toJson() => { 'embed': embed }; getTypeName() => "GetOperationUnTenanted<$TResponse>"; TypeContext? context = _ctx; } abstract class IHasGetOptions { String? embed; } abstract class ITenantedRequest { String? organisationId; } abstract class GetOperationTenanted extends GetOperationUnTenanted implements ITenantedRequest { String? organisationId; GetOperationTenanted({this.organisationId}); GetOperationTenanted.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); organisationId = json['organisationId']; return this; } Map toJson() => super.toJson()..addAll({ 'organisationId': organisationId }); getTypeName() => "GetOperationTenanted<$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 GetPaymentResponse implements IConvertible { ResponseStatus? responseStatus; Payment? payment; GetPaymentResponse({this.responseStatus,this.payment}); GetPaymentResponse.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() => "GetPaymentResponse"; TypeContext? context = _ctx; } // @Route("/payments/{Id}", "GET") class GetPaymentRequest extends GetOperationTenanted implements IReturn, IConvertible { String? id; GetPaymentRequest({this.id}); GetPaymentRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); id = json['id']; return this; } Map toJson() => super.toJson()..addAll({ 'id': id }); createResponse() => GetPaymentResponse(); getResponseTypeName() => "GetPaymentResponse"; getTypeName() => "GetPaymentRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'staging_api.billiecart.com.au', types: { 'GetOperationUnTenanted': TypeInfo(TypeOf.AbstractClass), 'IHasGetOptions': TypeInfo(TypeOf.Interface), 'ITenantedRequest': TypeInfo(TypeOf.Interface), 'GetOperationTenanted': TypeInfo(TypeOf.AbstractClass), 'BankAccount': TypeInfo(TypeOf.Class, create:() => BankAccount()), 'Payment': TypeInfo(TypeOf.Class, create:() => Payment()), 'IIdentifiableResource': TypeInfo(TypeOf.Interface), 'GetPaymentResponse': TypeInfo(TypeOf.Class, create:() => GetPaymentResponse()), 'GetPaymentRequest': TypeInfo(TypeOf.Class, create:() => GetPaymentRequest()), });