/* Options: Date: 2025-05-10 04:00:05 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: C2BGetInstrumentInfoRequest.* //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 C2BGradeGeneric implements IConvertible { // @DataMember int? Level; // @DataMember String? Grade; // @DataMember double? DownPay; // @DataMember double? DownMaint; // @DataMember double? MoPay; // @DataMember double? MoMaint; // @DataMember int? Id; // @DataMember bool? OutOfStock; // @DataMember double? RentPrice; // @DataMember double? CashPrice; // @DataMember double? DownPayTax; // @DataMember double? DownMaintTax; // @DataMember double? MoPayTax; // @DataMember double? MoMaintTax; // @DataMember double? RentPricePlusTax; // @DataMember double? RentPricePlusTaxLessDownpay; // @DataMember int? Months; C2BGradeGeneric({this.Level,this.Grade,this.DownPay,this.DownMaint,this.MoPay,this.MoMaint,this.Id,this.OutOfStock,this.RentPrice,this.CashPrice,this.DownPayTax,this.DownMaintTax,this.MoPayTax,this.MoMaintTax,this.RentPricePlusTax,this.RentPricePlusTaxLessDownpay,this.Months}); C2BGradeGeneric.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Level = json['Level']; Grade = json['Grade']; DownPay = JsonConverters.toDouble(json['DownPay']); DownMaint = JsonConverters.toDouble(json['DownMaint']); MoPay = JsonConverters.toDouble(json['MoPay']); MoMaint = JsonConverters.toDouble(json['MoMaint']); Id = json['Id']; OutOfStock = json['OutOfStock']; RentPrice = JsonConverters.toDouble(json['RentPrice']); CashPrice = JsonConverters.toDouble(json['CashPrice']); DownPayTax = JsonConverters.toDouble(json['DownPayTax']); DownMaintTax = JsonConverters.toDouble(json['DownMaintTax']); MoPayTax = JsonConverters.toDouble(json['MoPayTax']); MoMaintTax = JsonConverters.toDouble(json['MoMaintTax']); RentPricePlusTax = JsonConverters.toDouble(json['RentPricePlusTax']); RentPricePlusTaxLessDownpay = JsonConverters.toDouble(json['RentPricePlusTaxLessDownpay']); Months = json['Months']; return this; } Map toJson() => { 'Level': Level, 'Grade': Grade, 'DownPay': DownPay, 'DownMaint': DownMaint, 'MoPay': MoPay, 'MoMaint': MoMaint, 'Id': Id, 'OutOfStock': OutOfStock, 'RentPrice': RentPrice, 'CashPrice': CashPrice, 'DownPayTax': DownPayTax, 'DownMaintTax': DownMaintTax, 'MoPayTax': MoPayTax, 'MoMaintTax': MoMaintTax, 'RentPricePlusTax': RentPricePlusTax, 'RentPricePlusTaxLessDownpay': RentPricePlusTaxLessDownpay, 'Months': Months }; getTypeName() => "C2BGradeGeneric"; TypeContext? context = _ctx; } // @DataContract class C2BAccessoryGeneric implements IConvertible { // @DataMember String? AccessoryDesc; // @DataMember double? Price; // @DataMember bool? Required; // @DataMember bool? Default; // @DataMember bool? RequiresLocation; // @DataMember String? Type; // @DataMember String? Topic; // @DataMember int? Id; // @DataMember int? DisplayOrder; // @DataMember String? Sku; // @DataMember double? TaxAmount; // @DataMember int? CatNum; C2BAccessoryGeneric({this.AccessoryDesc,this.Price,this.Required,this.Default,this.RequiresLocation,this.Type,this.Topic,this.Id,this.DisplayOrder,this.Sku,this.TaxAmount,this.CatNum}); C2BAccessoryGeneric.fromJson(Map json) { fromMap(json); } fromMap(Map json) { AccessoryDesc = json['AccessoryDesc']; Price = JsonConverters.toDouble(json['Price']); Required = json['Required']; Default = json['Default']; RequiresLocation = json['RequiresLocation']; Type = json['Type']; Topic = json['Topic']; Id = json['Id']; DisplayOrder = json['DisplayOrder']; Sku = json['Sku']; TaxAmount = JsonConverters.toDouble(json['TaxAmount']); CatNum = json['CatNum']; return this; } Map toJson() => { 'AccessoryDesc': AccessoryDesc, 'Price': Price, 'Required': Required, 'Default': Default, 'RequiresLocation': RequiresLocation, 'Type': Type, 'Topic': Topic, 'Id': Id, 'DisplayOrder': DisplayOrder, 'Sku': Sku, 'TaxAmount': TaxAmount, 'CatNum': CatNum }; getTypeName() => "C2BAccessoryGeneric"; TypeContext? context = _ctx; } // @DataContract class C2BInstrumentGeneric implements IConvertible { // @DataMember String? InstrumentName; // @DataMember String? Sku; // @DataMember String? Topic; // @DataMember String? Image; // @DataMember int? Level; // @DataMember double? RentPrice; // @DataMember double? CashPrice; // @DataMember String? Token; // @DataMember int? InstrumentId; // @DataMember int? InstrumentTeacherId; // @DataMember List? GradeList; // @DataMember bool? HasGrades; // @DataMember int? DisplayOrder; // @DataMember List? AccessoryList; // @DataMember List? DeliveryList; // @DataMember List? MaintenanceList; C2BInstrumentGeneric({this.InstrumentName,this.Sku,this.Topic,this.Image,this.Level,this.RentPrice,this.CashPrice,this.Token,this.InstrumentId,this.InstrumentTeacherId,this.GradeList,this.HasGrades,this.DisplayOrder,this.AccessoryList,this.DeliveryList,this.MaintenanceList}); C2BInstrumentGeneric.fromJson(Map json) { fromMap(json); } fromMap(Map json) { InstrumentName = json['InstrumentName']; Sku = json['Sku']; Topic = json['Topic']; Image = json['Image']; Level = json['Level']; RentPrice = JsonConverters.toDouble(json['RentPrice']); CashPrice = JsonConverters.toDouble(json['CashPrice']); Token = json['Token']; InstrumentId = json['InstrumentId']; InstrumentTeacherId = json['InstrumentTeacherId']; GradeList = JsonConverters.fromJson(json['GradeList'],'List',context!); HasGrades = json['HasGrades']; DisplayOrder = json['DisplayOrder']; AccessoryList = JsonConverters.fromJson(json['AccessoryList'],'List',context!); DeliveryList = JsonConverters.fromJson(json['DeliveryList'],'List',context!); MaintenanceList = JsonConverters.fromJson(json['MaintenanceList'],'List',context!); return this; } Map toJson() => { 'InstrumentName': InstrumentName, 'Sku': Sku, 'Topic': Topic, 'Image': Image, 'Level': Level, 'RentPrice': RentPrice, 'CashPrice': CashPrice, 'Token': Token, 'InstrumentId': InstrumentId, 'InstrumentTeacherId': InstrumentTeacherId, 'GradeList': JsonConverters.toJson(GradeList,'List',context!), 'HasGrades': HasGrades, 'DisplayOrder': DisplayOrder, 'AccessoryList': JsonConverters.toJson(AccessoryList,'List',context!), 'DeliveryList': JsonConverters.toJson(DeliveryList,'List',context!), 'MaintenanceList': JsonConverters.toJson(MaintenanceList,'List',context!) }; getTypeName() => "C2BInstrumentGeneric"; 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 C2BGetInstrumentInfoResponse extends BaseResponse implements IConvertible { // @DataMember List? Instruments; C2BGetInstrumentInfoResponse({this.Instruments}); C2BGetInstrumentInfoResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); Instruments = JsonConverters.fromJson(json['Instruments'],'List',context!); return this; } Map toJson() => super.toJson()..addAll({ 'Instruments': JsonConverters.toJson(Instruments,'List',context!) }); getTypeName() => "C2BGetInstrumentInfoResponse"; TypeContext? context = _ctx; } /** * C2BGetInstrumentInfoRequires active-e Contracts Service. */ // @Route("/C2BGetInstrumentInfo", "POST, GET") // @DataContract class C2BGetInstrumentInfoRequest extends BaseSecureRequest implements IReturn, IConvertible, IPost { /** * ID of the Teacher/Instrument record. */ // @DataMember // @ApiMember(DataType="integer", Description="ID of the Teacher/Instrument record.", Format="int64", Name="RsiPk", ParameterType="query") int? RsiPk; /** * ID of the Teacher record. */ // @DataMember // @ApiMember(DataType="integer", Description="ID of the Teacher record.", Format="int64", Name="TeacherId", ParameterType="query") int? TeacherId; /** * Optional Plan Code Override. If not sent, plancode from the school will be used. */ // @DataMember // @ApiMember(DataType="string", Description="Optional Plan Code Override. If not sent, plancode from the school will be used.", Name="PlanCode", ParameterType="query") String? PlanCode; /** * If set to false, less details will be sent. Defaults to True. */ // @DataMember // @ApiMember(DataType="boolean", Description="If set to false, less details will be sent. Defaults to True.", Name="GetDetails", ParameterType="query") bool? GetDetails; /** * If set to true, Out of Stock items will be included. */ // @DataMember // @ApiMember(DataType="boolean", Description="If set to true, Out of Stock items will be included.", Name="IncludeOutOfStockItems", ParameterType="query") bool? IncludeOutOfStockItems; /** * If set to true, each instrument will include a list of accessory options. Defaults to False. */ // @DataMember // @ApiMember(DataType="boolean", Description="If set to true, each instrument will include a list of accessory options. Defaults to False.", Name="IncludeAccessoryOptions", ParameterType="query") bool? IncludeAccessoryOptions; /** * If set to true, each instrument will include a list of delivery options. Defaults to False. */ // @DataMember // @ApiMember(DataType="boolean", Description="If set to true, each instrument will include a list of delivery options. Defaults to False.", Name="IncludeDeliveryOptions", ParameterType="query") bool? IncludeDeliveryOptions; /** * If set to true, each instrument will include a list of maintenance options. Defaults to False. */ // @DataMember // @ApiMember(DataType="boolean", Description="If set to true, each instrument will include a list of maintenance options. Defaults to False.", Name="IncludeMaintenanceOptions", ParameterType="query") bool? IncludeMaintenanceOptions; C2BGetInstrumentInfoRequest({this.RsiPk,this.TeacherId,this.PlanCode,this.GetDetails,this.IncludeOutOfStockItems,this.IncludeAccessoryOptions,this.IncludeDeliveryOptions,this.IncludeMaintenanceOptions}); C2BGetInstrumentInfoRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); RsiPk = json['RsiPk']; TeacherId = json['TeacherId']; PlanCode = json['PlanCode']; GetDetails = json['GetDetails']; IncludeOutOfStockItems = json['IncludeOutOfStockItems']; IncludeAccessoryOptions = json['IncludeAccessoryOptions']; IncludeDeliveryOptions = json['IncludeDeliveryOptions']; IncludeMaintenanceOptions = json['IncludeMaintenanceOptions']; return this; } Map toJson() => super.toJson()..addAll({ 'RsiPk': RsiPk, 'TeacherId': TeacherId, 'PlanCode': PlanCode, 'GetDetails': GetDetails, 'IncludeOutOfStockItems': IncludeOutOfStockItems, 'IncludeAccessoryOptions': IncludeAccessoryOptions, 'IncludeDeliveryOptions': IncludeDeliveryOptions, 'IncludeMaintenanceOptions': IncludeMaintenanceOptions }); createResponse() => C2BGetInstrumentInfoResponse(); getResponseTypeName() => "C2BGetInstrumentInfoResponse"; getTypeName() => "C2BGetInstrumentInfoRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'active_ewebservice.biz', types: { 'BaseRequest': TypeInfo(TypeOf.Class, create:() => BaseRequest()), 'BaseSecureRequest': TypeInfo(TypeOf.Class, create:() => BaseSecureRequest()), 'C2BGradeGeneric': TypeInfo(TypeOf.Class, create:() => C2BGradeGeneric()), 'C2BAccessoryGeneric': TypeInfo(TypeOf.Class, create:() => C2BAccessoryGeneric()), 'C2BInstrumentGeneric': TypeInfo(TypeOf.Class, create:() => C2BInstrumentGeneric()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'BaseResponse': TypeInfo(TypeOf.Class, create:() => BaseResponse()), 'BaseResponseResult': TypeInfo(TypeOf.Class, create:() => BaseResponseResult()), 'C2BGetInstrumentInfoResponse': TypeInfo(TypeOf.Class, create:() => C2BGetInstrumentInfoResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'C2BGetInstrumentInfoRequest': TypeInfo(TypeOf.Class, create:() => C2BGetInstrumentInfoRequest()), });