/* Options: Date: 2025-05-10 02:09:12 Version: 8.40 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://active-ewebservice.biz/aeservices30/api //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: AdvancedCustomerSearchRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; // @DataContract class BaseRequest implements IConvertible { /** * This is your AIM API Key provided by Tri-Tech */ // @DataMember // @ApiMember(DataType="string", Description="This is your AIM API Key provided by Tri-Tech", IsRequired=true, Name="ApiKey", ParameterType="header") String? ApiKey; // @DataMember // @ApiMember(DataType="string", Name="OAuthToken", ParameterType="header") String? OAuthToken; BaseRequest({this.ApiKey,this.OAuthToken}); BaseRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ApiKey = json['ApiKey']; OAuthToken = json['OAuthToken']; return this; } Map toJson() => { 'ApiKey': ApiKey, 'OAuthToken': OAuthToken }; getTypeName() => "BaseRequest"; TypeContext? context = _ctx; } // @DataContract class BaseSecureRequest extends BaseRequest implements IConvertible { /** * */ // @DataMember // @ApiMember(DataType="string", Description="", Name="Token", ParameterType="Header") String? Token; /** * */ // @DataMember // @ApiMember(DataType="string", Description="", Name="DeviceId", ParameterType="Header") String? DeviceId; /** * */ // @DataMember // @ApiMember(DataType="string", Description="", IsRequired=true, Name="AppId", ParameterType="Header") String? AppId; BaseSecureRequest({this.Token,this.DeviceId,this.AppId}); BaseSecureRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); Token = json['Token']; DeviceId = json['DeviceId']; AppId = json['AppId']; return this; } Map toJson() => super.toJson()..addAll({ 'Token': Token, 'DeviceId': DeviceId, 'AppId': AppId }); getTypeName() => "BaseSecureRequest"; TypeContext? context = _ctx; } // @DataContract class AdvancedCustomerSearchRecord implements IConvertible { // @DataMember int? Acct; // @DataMember int? Sub; // @DataMember String? Name; // @DataMember String? ResultType; // @DataMember String? ResultDetail; // @DataMember DateTime? DateTime; // @DataMember double? Amount; AdvancedCustomerSearchRecord({this.Acct,this.Sub,this.Name,this.ResultType,this.ResultDetail,this.DateTime,this.Amount}); AdvancedCustomerSearchRecord.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Acct = json['Acct']; Sub = json['Sub']; Name = json['Name']; ResultType = json['ResultType']; ResultDetail = json['ResultDetail']; DateTime = JsonConverters.fromJson(json['DateTime'],'DateTime',context!); Amount = JsonConverters.toDouble(json['Amount']); return this; } Map toJson() => { 'Acct': Acct, 'Sub': Sub, 'Name': Name, 'ResultType': ResultType, 'ResultDetail': ResultDetail, 'DateTime': JsonConverters.toJson(DateTime,'DateTime',context!), 'Amount': Amount }; getTypeName() => "AdvancedCustomerSearchRecord"; TypeContext? context = _ctx; } // @DataContract class BaseResponse implements IConvertible { /** * */ // @DataMember // @ApiMember(DataType="BaseResponseResult", Description="", Name="Status", ParameterType="body") BaseResponseResult? Status; BaseResponse({this.Status}); BaseResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Status = JsonConverters.fromJson(json['Status'],'BaseResponseResult',context!); return this; } Map toJson() => { 'Status': JsonConverters.toJson(Status,'BaseResponseResult',context!) }; getTypeName() => "BaseResponse"; TypeContext? context = _ctx; } // @DataContract class AdvancedCustomerSearchResponse extends BaseResponse implements IConvertible { // @DataMember int? RemainingRecords; // @DataMember List? Customers; AdvancedCustomerSearchResponse({this.RemainingRecords,this.Customers}); AdvancedCustomerSearchResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); RemainingRecords = json['RemainingRecords']; Customers = JsonConverters.fromJson(json['Customers'],'List',context!); return this; } Map toJson() => super.toJson()..addAll({ 'RemainingRecords': RemainingRecords, 'Customers': JsonConverters.toJson(Customers,'List',context!) }); getTypeName() => "AdvancedCustomerSearchResponse"; TypeContext? context = _ctx; } /** * AdvancedCustomerSearchRequires active-e Customer Service. */ // @Route("/AdvancedCustomerSearch", "GET") // @DataContract class AdvancedCustomerSearchRequest extends BaseSecureRequest implements IReturn, IConvertible, IGet { /** * The type of advanced search. Options are SUBACCOUNT (Students and Dependents), CHECK (Exact Check# lookup), and CREDITCARD (Last 4 lookup) */ // @DataMember // @ApiMember(DataType="string", Description="The type of advanced search. Options are SUBACCOUNT (Students and Dependents), CHECK (Exact Check# lookup), and CREDITCARD (Last 4 lookup)", IsRequired=true, Name="SearchType") String? SearchType; /** * What to search for */ // @DataMember // @ApiMember(DataType="string", Description="What to search for", IsRequired=true, Name="SearchString") String? SearchString; /** * The Starting Offset. Defaults to 0 if not sent. */ // @DataMember // @ApiMember(DataType="integer", Description="The Starting Offset. Defaults to 0 if not sent.", Format="int64", Name="StartOffset") int? StartOffset; /** * The # of records to be returned. Defaults to 100 if not sent. */ // @DataMember // @ApiMember(DataType="integer", Description="The # of records to be returned. Defaults to 100 if not sent.", Format="int64", Name="RecordCount") int? RecordCount; AdvancedCustomerSearchRequest({this.SearchType,this.SearchString,this.StartOffset,this.RecordCount}); AdvancedCustomerSearchRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); SearchType = json['SearchType']; SearchString = json['SearchString']; StartOffset = json['StartOffset']; RecordCount = json['RecordCount']; return this; } Map toJson() => super.toJson()..addAll({ 'SearchType': SearchType, 'SearchString': SearchString, 'StartOffset': StartOffset, 'RecordCount': RecordCount }); createResponse() => AdvancedCustomerSearchResponse(); getResponseTypeName() => "AdvancedCustomerSearchResponse"; getTypeName() => "AdvancedCustomerSearchRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'active_ewebservice.biz', types: { 'BaseRequest': TypeInfo(TypeOf.Class, create:() => BaseRequest()), 'BaseSecureRequest': TypeInfo(TypeOf.Class, create:() => BaseSecureRequest()), 'AdvancedCustomerSearchRecord': TypeInfo(TypeOf.Class, create:() => AdvancedCustomerSearchRecord()), 'BaseResponse': TypeInfo(TypeOf.Class, create:() => BaseResponse()), 'BaseResponseResult': TypeInfo(TypeOf.Class, create:() => BaseResponseResult()), 'AdvancedCustomerSearchResponse': TypeInfo(TypeOf.Class, create:() => AdvancedCustomerSearchResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'AdvancedCustomerSearchRequest': TypeInfo(TypeOf.Class, create:() => AdvancedCustomerSearchRequest()), });