/* Options: Date: 2025-05-10 03:21:36 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: GetLocationsRequest.* //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 LocationInfo implements IConvertible { // @DataMember int? Id; // @DataMember String? Desc; // @DataMember String? ShortDesc; // @DataMember String? Region; // @DataMember double? Latitude; // @DataMember double? Longitude; // @DataMember String? InStorePickup; // @DataMember bool? Active; // @DataMember int? CashSaleAcct; LocationInfo({this.Id,this.Desc,this.ShortDesc,this.Region,this.Latitude,this.Longitude,this.InStorePickup,this.Active,this.CashSaleAcct}); LocationInfo.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Id = json['Id']; Desc = json['Desc']; ShortDesc = json['ShortDesc']; Region = json['Region']; Latitude = JsonConverters.toDouble(json['Latitude']); Longitude = JsonConverters.toDouble(json['Longitude']); InStorePickup = json['InStorePickup']; Active = json['Active']; CashSaleAcct = json['CashSaleAcct']; return this; } Map toJson() => { 'Id': Id, 'Desc': Desc, 'ShortDesc': ShortDesc, 'Region': Region, 'Latitude': Latitude, 'Longitude': Longitude, 'InStorePickup': InStorePickup, 'Active': Active, 'CashSaleAcct': CashSaleAcct }; getTypeName() => "LocationInfo"; 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 GetLocationsResponse extends BaseResponse implements IConvertible { // @DataMember List? Locations; GetLocationsResponse({this.Locations}); GetLocationsResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); Locations = JsonConverters.fromJson(json['Locations'],'List',context!); return this; } Map toJson() => super.toJson()..addAll({ 'Locations': JsonConverters.toJson(Locations,'List',context!) }); getTypeName() => "GetLocationsResponse"; TypeContext? context = _ctx; } /** * GetLocationsRequires active-e Inventory Service or active-e Customer Service or active 3rd Party E-Commerce or active-e Vortx E-Commerce. */ // @Route("/GetLocations", "GET") // @DataContract class GetLocationsRequest extends BaseSecureRequest implements IReturn, IConvertible, IGet { /** * Location lookup. If sent, all other parameters will be ignored. */ // @DataMember // @ApiMember(DataType="integer", Description="Location lookup. If sent, all other parameters will be ignored.", Format="int64", Name="LocationId", ParameterType="query") int? LocationId; // @DataMember bool? InStorePickup; /** * Sent in Conjunction with InStorePickup boolean. Can be set to CONTRACT or ORDER. */ // @DataMember // @ApiMember(DataType="integer", Description="Sent in Conjunction with InStorePickup boolean. Can be set to CONTRACT or ORDER.", Format="int64", Name="InStorePickupType", ParameterType="query") String? InStorePickupType; GetLocationsRequest({this.LocationId,this.InStorePickup,this.InStorePickupType}); GetLocationsRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); LocationId = json['LocationId']; InStorePickup = json['InStorePickup']; InStorePickupType = json['InStorePickupType']; return this; } Map toJson() => super.toJson()..addAll({ 'LocationId': LocationId, 'InStorePickup': InStorePickup, 'InStorePickupType': InStorePickupType }); createResponse() => GetLocationsResponse(); getResponseTypeName() => "GetLocationsResponse"; getTypeName() => "GetLocationsRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'active_ewebservice.biz', types: { 'BaseRequest': TypeInfo(TypeOf.Class, create:() => BaseRequest()), 'BaseSecureRequest': TypeInfo(TypeOf.Class, create:() => BaseSecureRequest()), 'LocationInfo': TypeInfo(TypeOf.Class, create:() => LocationInfo()), 'BaseResponse': TypeInfo(TypeOf.Class, create:() => BaseResponse()), 'BaseResponseResult': TypeInfo(TypeOf.Class, create:() => BaseResponseResult()), 'GetLocationsResponse': TypeInfo(TypeOf.Class, create:() => GetLocationsResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'GetLocationsRequest': TypeInfo(TypeOf.Class, create:() => GetLocationsRequest()), });