/* Options: Date: 2025-08-04 00:08:04 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: UpdatePriceRequest.* //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; /** * The OAuthToken token return by AeServices30 */ // @DataMember // @ApiMember(DataType="string", Description="The OAuthToken token return by AeServices30", IsRequired=true, Name="OAuthToken", ParameterType="Header") String? OAuthToken; /** * The Device ID of the Mobile Device. Not used for non-mobile devices. */ // @DataMember // @ApiMember(DataType="string", Description="The Device ID of the Mobile Device. Not used for non-mobile devices.", Name="DeviceId", ParameterType="Header") String? DeviceId; /** * An identifier for your integration */ // @DataMember // @ApiMember(DataType="string", Description="An identifier for your integration", IsRequired=true, Name="AppId", ParameterType="Header") String? AppId; BaseRequest({this.ApiKey,this.OAuthToken,this.DeviceId,this.AppId}); BaseRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ApiKey = json['ApiKey']; OAuthToken = json['OAuthToken']; DeviceId = json['DeviceId']; AppId = json['AppId']; return this; } Map toJson() => { 'ApiKey': ApiKey, 'OAuthToken': OAuthToken, 'DeviceId': DeviceId, 'AppId': AppId }; getTypeName() => "BaseRequest"; TypeContext? context = _ctx; } // @DataContract class BaseSecureRequest extends BaseRequest implements IConvertible { /** * The Login Token return by the Security API. Required for secured calls. */ // @DataMember // @ApiMember(DataType="string", Description="The Login Token return by the Security API. Required for secured calls.", Name="Token", ParameterType="Header") String? Token; BaseSecureRequest({this.Token}); BaseSecureRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); Token = json['Token']; return this; } Map toJson() => super.toJson()..addAll({ 'Token': Token }); getTypeName() => "BaseSecureRequest"; 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 UpdatePriceResponse extends BaseResponse implements IConvertible { UpdatePriceResponse(); UpdatePriceResponse.fromJson(Map json) : super.fromJson(json); fromMap(Map json) { super.fromMap(json); return this; } Map toJson() => super.toJson(); getTypeName() => "UpdatePriceResponse"; TypeContext? context = _ctx; } /** * UpdatePriceRequires active-e Inventory Service */ // @Route("/UpdatePrice", "POST") // @DataContract class UpdatePriceRequest extends BaseSecureRequest implements IReturn, IConvertible, IPost { // @DataMember int? Pk; // @DataMember String? InvType; // @DataMember double? NewPrice; UpdatePriceRequest({this.Pk,this.InvType,this.NewPrice}); UpdatePriceRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); Pk = json['Pk']; InvType = json['InvType']; NewPrice = JsonConverters.toDouble(json['NewPrice']); return this; } Map toJson() => super.toJson()..addAll({ 'Pk': Pk, 'InvType': InvType, 'NewPrice': NewPrice }); createResponse() => UpdatePriceResponse(); getResponseTypeName() => "UpdatePriceResponse"; getTypeName() => "UpdatePriceRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'active_ewebservice.biz', types: { 'BaseRequest': TypeInfo(TypeOf.Class, create:() => BaseRequest()), 'BaseSecureRequest': TypeInfo(TypeOf.Class, create:() => BaseSecureRequest()), 'BaseResponse': TypeInfo(TypeOf.Class, create:() => BaseResponse()), 'BaseResponseResult': TypeInfo(TypeOf.Class, create:() => BaseResponseResult()), 'UpdatePriceResponse': TypeInfo(TypeOf.Class, create:() => UpdatePriceResponse()), 'UpdatePriceRequest': TypeInfo(TypeOf.Class, create:() => UpdatePriceRequest()), });