/* Options: Date: 2025-05-10 02:03:13 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: ScheduledExchangesPostRequest.* //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(Name="FormInput") class FormInput implements IConvertible { /** * Field Name of the Input Field */ // @DataMember // @ApiMember(DataType="string", Description="Field Name of the Input Field", IsRequired=true, Name="Key", ParameterType="query") String? Key; /** * Value of the Input Field. */ // @DataMember // @ApiMember(DataType="string", Description="Value of the Input Field.", IsRequired=true, Name="Value", ParameterType="query") String? Value; /** * Whether or not the field is encryped with the C2B encryption key. */ // @DataMember // @ApiMember(DataType="boolean", Description="Whether or not the field is encryped with the C2B encryption key.", IsRequired=true, Name="Encrypted", ParameterType="query") bool? Encrypted; FormInput({this.Key,this.Value,this.Encrypted}); FormInput.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Key = json['Key']; Value = json['Value']; Encrypted = json['Encrypted']; return this; } Map toJson() => { 'Key': Key, 'Value': Value, 'Encrypted': Encrypted }; getTypeName() => "FormInput"; 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 ScheduledExchangesPostResponse extends BaseResponse implements IConvertible { // @DataMember int? ExchangeID; ScheduledExchangesPostResponse({this.ExchangeID}); ScheduledExchangesPostResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); ExchangeID = json['ExchangeID']; return this; } Map toJson() => super.toJson()..addAll({ 'ExchangeID': ExchangeID }); getTypeName() => "ScheduledExchangesPostResponse"; TypeContext? context = _ctx; } /** * ScheduledExchangesRequires active-e Contracts Service. */ // @Route("/ScheduledExchanges", "POST") // @DataContract class ScheduledExchangesPostRequest extends BaseSecureRequest implements IReturn, IConvertible, IPost { // @DataMember int? Acct; // @DataMember int? Sub; // @DataMember int? ExchangedItemID; // @DataMember DateTime? PostingDate; // @DataMember DateTime? ScheduledDate; // @DataMember String? NewSku; // @DataMember int? OptionId; // @DataMember String? ExchangeNotes; // @DataMember bool? Processed; // @DataMember int? StatusId; /** * Key/Value pair only. The 'Encrypted' proprety is not used for this API call. */ // @DataMember // @ApiMember(DataType="array", Description="Key/Value pair only. The 'Encrypted' proprety is not used for this API call.", Name="FormInputList", ParameterType="query") List? FormInputList; ScheduledExchangesPostRequest({this.Acct,this.Sub,this.ExchangedItemID,this.PostingDate,this.ScheduledDate,this.NewSku,this.OptionId,this.ExchangeNotes,this.Processed,this.StatusId,this.FormInputList}); ScheduledExchangesPostRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); Acct = json['Acct']; Sub = json['Sub']; ExchangedItemID = json['ExchangedItemID']; PostingDate = JsonConverters.fromJson(json['PostingDate'],'DateTime',context!); ScheduledDate = JsonConverters.fromJson(json['ScheduledDate'],'DateTime',context!); NewSku = json['NewSku']; OptionId = json['OptionId']; ExchangeNotes = json['ExchangeNotes']; Processed = json['Processed']; StatusId = json['StatusId']; FormInputList = JsonConverters.fromJson(json['FormInputList'],'List',context!); return this; } Map toJson() => super.toJson()..addAll({ 'Acct': Acct, 'Sub': Sub, 'ExchangedItemID': ExchangedItemID, 'PostingDate': JsonConverters.toJson(PostingDate,'DateTime',context!), 'ScheduledDate': JsonConverters.toJson(ScheduledDate,'DateTime',context!), 'NewSku': NewSku, 'OptionId': OptionId, 'ExchangeNotes': ExchangeNotes, 'Processed': Processed, 'StatusId': StatusId, 'FormInputList': JsonConverters.toJson(FormInputList,'List',context!) }); createResponse() => ScheduledExchangesPostResponse(); getResponseTypeName() => "ScheduledExchangesPostResponse"; getTypeName() => "ScheduledExchangesPostRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'active_ewebservice.biz', types: { 'BaseRequest': TypeInfo(TypeOf.Class, create:() => BaseRequest()), 'BaseSecureRequest': TypeInfo(TypeOf.Class, create:() => BaseSecureRequest()), 'FormInput': TypeInfo(TypeOf.Class, create:() => FormInput()), 'BaseResponse': TypeInfo(TypeOf.Class, create:() => BaseResponse()), 'BaseResponseResult': TypeInfo(TypeOf.Class, create:() => BaseResponseResult()), 'ScheduledExchangesPostResponse': TypeInfo(TypeOf.Class, create:() => ScheduledExchangesPostResponse()), 'ScheduledExchangesPostRequest': TypeInfo(TypeOf.Class, create:() => ScheduledExchangesPostRequest()), 'List': TypeInfo(TypeOf.Class, create:() => []), });