/* Options: Date: 2024-12-15 19:25:56 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: CreatePaymentRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; abstract class PostOperationUnTenanted implements IPost { PostOperationUnTenanted(); PostOperationUnTenanted.fromJson(Map json) : super(); fromMap(Map json) { return this; } Map toJson() => {}; getTypeName() => "PostOperationUnTenanted<$TResponse>"; TypeContext? context = _ctx; } abstract class PostOperationTenanted extends PostOperationUnTenanted implements ITenantedRequest { String? organisationId; PostOperationTenanted({this.organisationId}); PostOperationTenanted.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); organisationId = json['organisationId']; return this; } Map toJson() => super.toJson()..addAll({ 'organisationId': organisationId }); getTypeName() => "PostOperationTenanted<$TResponse>"; TypeContext? context = _ctx; } abstract class ITenantedRequest { String? organisationId; } 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 CreatePaymentResponse implements IConvertible { ResponseStatus? responseStatus; Payment? payment; CreatePaymentResponse({this.responseStatus,this.payment}); CreatePaymentResponse.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() => "CreatePaymentResponse"; TypeContext? context = _ctx; } // @Route("/payments", "POST") class CreatePaymentRequest extends PostOperationTenanted implements IReturn, IConvertible { String? salaryPackageId; double? amount; double? gstAmount; String? particulars; String? budgetCategory; CreatePaymentRequest({this.salaryPackageId,this.amount,this.gstAmount,this.particulars,this.budgetCategory}); CreatePaymentRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); salaryPackageId = json['salaryPackageId']; amount = JsonConverters.toDouble(json['amount']); gstAmount = JsonConverters.toDouble(json['gstAmount']); particulars = json['particulars']; budgetCategory = json['budgetCategory']; return this; } Map toJson() => super.toJson()..addAll({ 'salaryPackageId': salaryPackageId, 'amount': amount, 'gstAmount': gstAmount, 'particulars': particulars, 'budgetCategory': budgetCategory }); createResponse() => CreatePaymentResponse(); getResponseTypeName() => "CreatePaymentResponse"; getTypeName() => "CreatePaymentRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'staging_api.billiecart.com.au', types: { 'PostOperationUnTenanted': TypeInfo(TypeOf.AbstractClass), 'PostOperationTenanted': TypeInfo(TypeOf.AbstractClass), 'ITenantedRequest': TypeInfo(TypeOf.Interface), 'BankAccount': TypeInfo(TypeOf.Class, create:() => BankAccount()), 'Payment': TypeInfo(TypeOf.Class, create:() => Payment()), 'IIdentifiableResource': TypeInfo(TypeOf.Interface), 'CreatePaymentResponse': TypeInfo(TypeOf.Class, create:() => CreatePaymentResponse()), 'CreatePaymentRequest': TypeInfo(TypeOf.Class, create:() => CreatePaymentRequest()), });