/* Options: Date: 2024-12-15 19:54:46 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: GetCustomerRequest.* //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 Customer implements IIdentifiableResource, IConvertible { String? id; String? firstName; String? lastName; DateTime? dateOfBirth; String? driversLicenceNo; String? email; String? phone; String? preferredContactMethod; String? addressLine1; String? addressLine2; String? suburb; String? stateTerritory; String? postcode; BankAccount? bankAccount; String? userAccountId; Customer({this.id,this.firstName,this.lastName,this.dateOfBirth,this.driversLicenceNo,this.email,this.phone,this.preferredContactMethod,this.addressLine1,this.addressLine2,this.suburb,this.stateTerritory,this.postcode,this.bankAccount,this.userAccountId}); Customer.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; firstName = json['firstName']; lastName = json['lastName']; dateOfBirth = JsonConverters.fromJson(json['dateOfBirth'],'DateTime',context!); driversLicenceNo = json['driversLicenceNo']; email = json['email']; phone = json['phone']; preferredContactMethod = json['preferredContactMethod']; addressLine1 = json['addressLine1']; addressLine2 = json['addressLine2']; suburb = json['suburb']; stateTerritory = json['stateTerritory']; postcode = json['postcode']; bankAccount = JsonConverters.fromJson(json['bankAccount'],'BankAccount',context!); userAccountId = json['userAccountId']; return this; } Map toJson() => { 'id': id, 'firstName': firstName, 'lastName': lastName, 'dateOfBirth': JsonConverters.toJson(dateOfBirth,'DateTime',context!), 'driversLicenceNo': driversLicenceNo, 'email': email, 'phone': phone, 'preferredContactMethod': preferredContactMethod, 'addressLine1': addressLine1, 'addressLine2': addressLine2, 'suburb': suburb, 'stateTerritory': stateTerritory, 'postcode': postcode, 'bankAccount': JsonConverters.toJson(bankAccount,'BankAccount',context!), 'userAccountId': userAccountId }; getTypeName() => "Customer"; TypeContext? context = _ctx; } abstract class IIdentifiableResource { String? id; } class GetCustomerResponse implements IConvertible { ResponseStatus? responseStatus; Customer? customer; GetCustomerResponse({this.responseStatus,this.customer}); GetCustomerResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { responseStatus = JsonConverters.fromJson(json['responseStatus'],'ResponseStatus',context!); customer = JsonConverters.fromJson(json['customer'],'Customer',context!); return this; } Map toJson() => { 'responseStatus': JsonConverters.toJson(responseStatus,'ResponseStatus',context!), 'customer': JsonConverters.toJson(customer,'Customer',context!) }; getTypeName() => "GetCustomerResponse"; TypeContext? context = _ctx; } // @Route("/customers/{Id}", "GET") class GetCustomerRequest extends GetOperationTenanted implements IReturn, IConvertible { String? id; GetCustomerRequest({this.id}); GetCustomerRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); id = json['id']; return this; } Map toJson() => super.toJson()..addAll({ 'id': id }); createResponse() => GetCustomerResponse(); getResponseTypeName() => "GetCustomerResponse"; getTypeName() => "GetCustomerRequest"; 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()), 'Customer': TypeInfo(TypeOf.Class, create:() => Customer()), 'IIdentifiableResource': TypeInfo(TypeOf.Interface), 'GetCustomerResponse': TypeInfo(TypeOf.Class, create:() => GetCustomerResponse()), 'GetCustomerRequest': TypeInfo(TypeOf.Class, create:() => GetCustomerRequest()), });