/* Options: Date: 2024-11-23 10:27:04 Version: 8.23 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.bokamera.se //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: UpdateEAccountingSettingsQuery.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; abstract class ICompany { String? CompanyId; } class EAccountingSettingsQueryResponse implements IConvertible { String? CompanyId; bool? Active; String? DefaultArticle6PercentVat; double? DefaultArticle12PercentVat; double? DefaultArticle25PercentVat; String? DefaultCreateType; String? DefaultTermsOfPaymentId; EAccountingSettingsQueryResponse({this.CompanyId,this.Active,this.DefaultArticle6PercentVat,this.DefaultArticle12PercentVat,this.DefaultArticle25PercentVat,this.DefaultCreateType,this.DefaultTermsOfPaymentId}); EAccountingSettingsQueryResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { CompanyId = json['CompanyId']; Active = json['Active']; DefaultArticle6PercentVat = json['DefaultArticle6PercentVat']; DefaultArticle12PercentVat = JsonConverters.toDouble(json['DefaultArticle12PercentVat']); DefaultArticle25PercentVat = JsonConverters.toDouble(json['DefaultArticle25PercentVat']); DefaultCreateType = json['DefaultCreateType']; DefaultTermsOfPaymentId = json['DefaultTermsOfPaymentId']; return this; } Map toJson() => { 'CompanyId': CompanyId, 'Active': Active, 'DefaultArticle6PercentVat': DefaultArticle6PercentVat, 'DefaultArticle12PercentVat': DefaultArticle12PercentVat, 'DefaultArticle25PercentVat': DefaultArticle25PercentVat, 'DefaultCreateType': DefaultCreateType, 'DefaultTermsOfPaymentId': DefaultTermsOfPaymentId }; getTypeName() => "EAccountingSettingsQueryResponse"; TypeContext? context = _ctx; } // @Route("/eaccounting/settings", "PUT") class UpdateEAccountingSettingsQuery implements IReturn, ICompany, IConvertible, IPut { /** * Article id for 25% VAT in e-accounting system */ // @ApiMember(Description="Article id for 25% VAT in e-accounting system") String? DefaultArticle25PercentVat; /** * Article id for 12% VAT in e-accounting system */ // @ApiMember(Description="Article id for 12% VAT in e-accounting system") String? DefaultArticle12PercentVat; /** * Article id for 6% VAT in e-accounting system */ // @ApiMember(Description="Article id for 6% VAT in e-accounting system") String? DefaultArticle6PercentVat; /** * Default invoice create type for invoice creation */ // @ApiMember(Description="Default invoice create type for invoice creation") String? DefaultCreateType; /** * Determines wether e-accounting intergration is active or not */ // @ApiMember(Description="Determines wether e-accounting intergration is active or not") bool? EAccountingIntegrationActive; /** * Default terms of payment value for invoice creation */ // @ApiMember(Description="Default terms of payment value for invoice creation") String? DefaultTermsOfPaymentId; /** * E-Accounting settings company Id. */ // @ApiMember(Description="E-Accounting settings company Id.") String? CompanyId; UpdateEAccountingSettingsQuery({this.DefaultArticle25PercentVat,this.DefaultArticle12PercentVat,this.DefaultArticle6PercentVat,this.DefaultCreateType,this.EAccountingIntegrationActive,this.DefaultTermsOfPaymentId,this.CompanyId}); UpdateEAccountingSettingsQuery.fromJson(Map json) { fromMap(json); } fromMap(Map json) { DefaultArticle25PercentVat = json['DefaultArticle25PercentVat']; DefaultArticle12PercentVat = json['DefaultArticle12PercentVat']; DefaultArticle6PercentVat = json['DefaultArticle6PercentVat']; DefaultCreateType = json['DefaultCreateType']; EAccountingIntegrationActive = json['EAccountingIntegrationActive']; DefaultTermsOfPaymentId = json['DefaultTermsOfPaymentId']; CompanyId = json['CompanyId']; return this; } Map toJson() => { 'DefaultArticle25PercentVat': DefaultArticle25PercentVat, 'DefaultArticle12PercentVat': DefaultArticle12PercentVat, 'DefaultArticle6PercentVat': DefaultArticle6PercentVat, 'DefaultCreateType': DefaultCreateType, 'EAccountingIntegrationActive': EAccountingIntegrationActive, 'DefaultTermsOfPaymentId': DefaultTermsOfPaymentId, 'CompanyId': CompanyId }; createResponse() => EAccountingSettingsQueryResponse(); getResponseTypeName() => "EAccountingSettingsQueryResponse"; getTypeName() => "UpdateEAccountingSettingsQuery"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.bokamera.se', types: { 'ICompany': TypeInfo(TypeOf.Interface), 'EAccountingSettingsQueryResponse': TypeInfo(TypeOf.Class, create:() => EAccountingSettingsQueryResponse()), 'UpdateEAccountingSettingsQuery': TypeInfo(TypeOf.Class, create:() => UpdateEAccountingSettingsQuery()), });