/* Options: Date: 2025-05-10 02:20:14 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: GetCustomerHistoryRequest.* //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 CustomerHistoryGeneric implements IConvertible { // @DataMember DateTime? Date; // @DataMember String? DateStr; // @DataMember String? Ref; // @DataMember String? Desc; // @DataMember double? Amount; // @DataMember double? OrigAmount; // @DataMember bool? Late; // @DataMember String? RefType; // @DataMember String? PO; // @DataMember DateTime? EstReceivedDate; CustomerHistoryGeneric({this.Date,this.DateStr,this.Ref,this.Desc,this.Amount,this.OrigAmount,this.Late,this.RefType,this.PO,this.EstReceivedDate}); CustomerHistoryGeneric.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Date = JsonConverters.fromJson(json['Date'],'DateTime',context!); DateStr = json['DateStr']; Ref = json['Ref']; Desc = json['Desc']; Amount = JsonConverters.toDouble(json['Amount']); OrigAmount = JsonConverters.toDouble(json['OrigAmount']); Late = json['Late']; RefType = json['RefType']; PO = json['PO']; EstReceivedDate = JsonConverters.fromJson(json['EstReceivedDate'],'DateTime',context!); return this; } Map toJson() => { 'Date': JsonConverters.toJson(Date,'DateTime',context!), 'DateStr': DateStr, 'Ref': Ref, 'Desc': Desc, 'Amount': Amount, 'OrigAmount': OrigAmount, 'Late': Late, 'RefType': RefType, 'PO': PO, 'EstReceivedDate': JsonConverters.toJson(EstReceivedDate,'DateTime',context!) }; getTypeName() => "CustomerHistoryGeneric"; 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 GetCustomerHistoryResponse extends BaseResponse implements IConvertible { // @DataMember List? CustomerHistory; GetCustomerHistoryResponse({this.CustomerHistory}); GetCustomerHistoryResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); CustomerHistory = JsonConverters.fromJson(json['CustomerHistory'],'List',context!); return this; } Map toJson() => super.toJson()..addAll({ 'CustomerHistory': JsonConverters.toJson(CustomerHistory,'List',context!) }); getTypeName() => "GetCustomerHistoryResponse"; TypeContext? context = _ctx; } /** * GetCustomerHistoryRequires active-e Customer Service. */ // @Route("/GetCustomerHistory", "POST, GET") // @DataContract class GetCustomerHistoryRequest extends BaseSecureRequest implements IReturn, IConvertible, IPost { // @DataMember bool? GetInvoices; // @DataMember bool? GetTickets; // @DataMember bool? GetProposals; // @DataMember bool? GetContracts; // @DataMember bool? GetOrders; // @DataMember bool? GetShortTermRentals; // @DataMember bool? GetWebPayments; // @DataMember bool? ShowClosed; // @DataMember bool? GetPaymentsDue; // @DataMember String? DateFrom; // @DataMember String? DateTo; // @DataMember int? Acct; // @DataMember bool? GetMemberships; // @DataMember bool? GetPendingWebOrders; // @DataMember bool? GetFutureTeeTimes; // @DataMember bool? GetStationReservations; // @DataMember bool? GetPendingWebRentals; // @DataMember bool? GetValuePacks; // @DataMember bool? IncludeUninvoicedScheduling; // @DataMember bool? IncludeOnHold; // @DataMember bool? GetConsignments; // @DataMember bool? GetRecurringHeaderInfo; GetCustomerHistoryRequest({this.GetInvoices,this.GetTickets,this.GetProposals,this.GetContracts,this.GetOrders,this.GetShortTermRentals,this.GetWebPayments,this.ShowClosed,this.GetPaymentsDue,this.DateFrom,this.DateTo,this.Acct,this.GetMemberships,this.GetPendingWebOrders,this.GetFutureTeeTimes,this.GetStationReservations,this.GetPendingWebRentals,this.GetValuePacks,this.IncludeUninvoicedScheduling,this.IncludeOnHold,this.GetConsignments,this.GetRecurringHeaderInfo}); GetCustomerHistoryRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); GetInvoices = json['GetInvoices']; GetTickets = json['GetTickets']; GetProposals = json['GetProposals']; GetContracts = json['GetContracts']; GetOrders = json['GetOrders']; GetShortTermRentals = json['GetShortTermRentals']; GetWebPayments = json['GetWebPayments']; ShowClosed = json['ShowClosed']; GetPaymentsDue = json['GetPaymentsDue']; DateFrom = json['DateFrom']; DateTo = json['DateTo']; Acct = json['Acct']; GetMemberships = json['GetMemberships']; GetPendingWebOrders = json['GetPendingWebOrders']; GetFutureTeeTimes = json['GetFutureTeeTimes']; GetStationReservations = json['GetStationReservations']; GetPendingWebRentals = json['GetPendingWebRentals']; GetValuePacks = json['GetValuePacks']; IncludeUninvoicedScheduling = json['IncludeUninvoicedScheduling']; IncludeOnHold = json['IncludeOnHold']; GetConsignments = json['GetConsignments']; GetRecurringHeaderInfo = json['GetRecurringHeaderInfo']; return this; } Map toJson() => super.toJson()..addAll({ 'GetInvoices': GetInvoices, 'GetTickets': GetTickets, 'GetProposals': GetProposals, 'GetContracts': GetContracts, 'GetOrders': GetOrders, 'GetShortTermRentals': GetShortTermRentals, 'GetWebPayments': GetWebPayments, 'ShowClosed': ShowClosed, 'GetPaymentsDue': GetPaymentsDue, 'DateFrom': DateFrom, 'DateTo': DateTo, 'Acct': Acct, 'GetMemberships': GetMemberships, 'GetPendingWebOrders': GetPendingWebOrders, 'GetFutureTeeTimes': GetFutureTeeTimes, 'GetStationReservations': GetStationReservations, 'GetPendingWebRentals': GetPendingWebRentals, 'GetValuePacks': GetValuePacks, 'IncludeUninvoicedScheduling': IncludeUninvoicedScheduling, 'IncludeOnHold': IncludeOnHold, 'GetConsignments': GetConsignments, 'GetRecurringHeaderInfo': GetRecurringHeaderInfo }); createResponse() => GetCustomerHistoryResponse(); getResponseTypeName() => "GetCustomerHistoryResponse"; getTypeName() => "GetCustomerHistoryRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'active_ewebservice.biz', types: { 'BaseRequest': TypeInfo(TypeOf.Class, create:() => BaseRequest()), 'BaseSecureRequest': TypeInfo(TypeOf.Class, create:() => BaseSecureRequest()), 'CustomerHistoryGeneric': TypeInfo(TypeOf.Class, create:() => CustomerHistoryGeneric()), 'BaseResponse': TypeInfo(TypeOf.Class, create:() => BaseResponse()), 'BaseResponseResult': TypeInfo(TypeOf.Class, create:() => BaseResponseResult()), 'GetCustomerHistoryResponse': TypeInfo(TypeOf.Class, create:() => GetCustomerHistoryResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'GetCustomerHistoryRequest': TypeInfo(TypeOf.Class, create:() => GetCustomerHistoryRequest()), });