/* Options: Date: 2025-05-10 02:11:46 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: GetCustomerDefaultsRequest.* //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 CustomerDefaultInfo implements IConvertible { // @DataMember int? Id; // @DataMember String? Desc; // @DataMember String? ShortDesc; CustomerDefaultInfo({this.Id,this.Desc,this.ShortDesc}); CustomerDefaultInfo.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Id = json['Id']; Desc = json['Desc']; ShortDesc = json['ShortDesc']; return this; } Map toJson() => { 'Id': Id, 'Desc': Desc, 'ShortDesc': ShortDesc }; getTypeName() => "CustomerDefaultInfo"; 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 GetCustomerDefaultsResponse extends BaseResponse implements IConvertible { // @DataMember List? CustomerDefaults; GetCustomerDefaultsResponse({this.CustomerDefaults}); GetCustomerDefaultsResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); CustomerDefaults = JsonConverters.fromJson(json['CustomerDefaults'],'List',context!); return this; } Map toJson() => super.toJson()..addAll({ 'CustomerDefaults': JsonConverters.toJson(CustomerDefaults,'List',context!) }); getTypeName() => "GetCustomerDefaultsResponse"; TypeContext? context = _ctx; } /** * GetCustomerDefaultsRequires active-e Customer Service. */ // @Route("/GetCustomerDefaults", "GET") // @DataContract class GetCustomerDefaultsRequest extends BaseSecureRequest implements IReturn, IConvertible, IGet { /** * Customer Default lookup. If sent, all other parameters will be ignored. */ // @DataMember // @ApiMember(DataType="integer", Description="Customer Default lookup. If sent, all other parameters will be ignored.", Format="int64", Name="CustomerDefaultId", ParameterType="query") int? CustomerDefaultId; GetCustomerDefaultsRequest({this.CustomerDefaultId}); GetCustomerDefaultsRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); CustomerDefaultId = json['CustomerDefaultId']; return this; } Map toJson() => super.toJson()..addAll({ 'CustomerDefaultId': CustomerDefaultId }); createResponse() => GetCustomerDefaultsResponse(); getResponseTypeName() => "GetCustomerDefaultsResponse"; getTypeName() => "GetCustomerDefaultsRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'active_ewebservice.biz', types: { 'BaseRequest': TypeInfo(TypeOf.Class, create:() => BaseRequest()), 'BaseSecureRequest': TypeInfo(TypeOf.Class, create:() => BaseSecureRequest()), 'CustomerDefaultInfo': TypeInfo(TypeOf.Class, create:() => CustomerDefaultInfo()), 'BaseResponse': TypeInfo(TypeOf.Class, create:() => BaseResponse()), 'BaseResponseResult': TypeInfo(TypeOf.Class, create:() => BaseResponseResult()), 'GetCustomerDefaultsResponse': TypeInfo(TypeOf.Class, create:() => GetCustomerDefaultsResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'GetCustomerDefaultsRequest': TypeInfo(TypeOf.Class, create:() => GetCustomerDefaultsRequest()), });