/* Options: Date: 2025-12-06 06:18:23 Version: 8.0 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://1fetch.api.client.prod.86degrees.com //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: CheckAccount.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class ApiServiceRequest implements IServiceRequest, IHasApiKey, IConvertible { /** * The API Key required for authentication */ // @ApiMember(DataType="string", Description="The API Key required for authentication", IsRequired=true) String? ApiKey; ApiServiceRequest({this.ApiKey}); ApiServiceRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ApiKey = json['ApiKey']; return this; } Map toJson() => { 'ApiKey': ApiKey }; getTypeName() => "ApiServiceRequest"; TypeContext? context = _ctx; } abstract class IServiceRequest { } abstract class IHasApiKey { String? ApiKey; } abstract class ILogRequest { } class ApiServiceResponse implements IServiceResponse, IConvertible { /** * Information about the response. */ // @ApiMember(Description="Information about the response.", IsRequired=true) String? Description; /** * Heading or summary of the response. */ // @ApiMember(Description="Heading or summary of the response.", IsRequired=true) String? Heading; /** * Did the intended operation for this response complete successfully? */ // @ApiMember(DataType="boolean", Description="Did the intended operation for this response complete successfully?", IsRequired=true) bool? WasSuccessful; ApiServiceResponse({this.Description,this.Heading,this.WasSuccessful}); ApiServiceResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Description = json['Description']; Heading = json['Heading']; WasSuccessful = json['WasSuccessful']; return this; } Map toJson() => { 'Description': Description, 'Heading': Heading, 'WasSuccessful': WasSuccessful }; getTypeName() => "ApiServiceResponse"; TypeContext? context = _ctx; } class CheckAccountResponse extends ApiServiceResponse implements IConvertible { /** * The total monthly limit for account payments, will be negative if there is no limit */ // @ApiMember(Description="The total monthly limit for account payments, will be negative if there is no limit") double? AccountLimit; /** * The amount that can still be used this month, will be negative if there is no account limit */ // @ApiMember(Description="The amount that can still be used this month, will be negative if there is no account limit") double? AccountRemaining; /** * Shows if this account is allowed to place real orders or quotes */ // @ApiMember(Description="Shows if this account is allowed to place real orders or quotes") bool? AllowDataProcessing; CheckAccountResponse({this.AccountLimit,this.AccountRemaining,this.AllowDataProcessing}); CheckAccountResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); AccountLimit = JsonConverters.toDouble(json['AccountLimit']); AccountRemaining = JsonConverters.toDouble(json['AccountRemaining']); AllowDataProcessing = json['AllowDataProcessing']; return this; } Map toJson() => super.toJson()..addAll({ 'AccountLimit': AccountLimit, 'AccountRemaining': AccountRemaining, 'AllowDataProcessing': AllowDataProcessing }); getTypeName() => "CheckAccountResponse"; TypeContext? context = _ctx; } // @Route("/checkaccount", "GET") class CheckAccount extends ApiServiceRequest implements IReturn, ILogRequest, IConvertible, IGet { CheckAccount(); CheckAccount.fromJson(Map json) : super.fromJson(json); fromMap(Map json) { super.fromMap(json); return this; } Map toJson() => super.toJson(); createResponse() => CheckAccountResponse(); getResponseTypeName() => "CheckAccountResponse"; getTypeName() => "CheckAccount"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: '1fetch.api.client.prod.86degrees.com', types: { 'ApiServiceRequest': TypeInfo(TypeOf.Class, create:() => ApiServiceRequest()), 'IServiceRequest': TypeInfo(TypeOf.Interface), 'IHasApiKey': TypeInfo(TypeOf.Interface), 'ILogRequest': TypeInfo(TypeOf.Interface), 'ApiServiceResponse': TypeInfo(TypeOf.Class, create:() => ApiServiceResponse()), 'CheckAccountResponse': TypeInfo(TypeOf.Class, create:() => CheckAccountResponse()), 'CheckAccount': TypeInfo(TypeOf.Class, create:() => CheckAccount()), });