/* Options: Date: 2024-11-21 11:57:33 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: EAccountingTermOfPaymentQuery.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; abstract class ICompany { String? CompanyId; } class EAccountingTermsOfPaymentQueryResponse implements IConvertible { String? Id; String? Name; String? NameEnglish; int? NumberOfDays; int? TermsOfPaymentTypeId; String? TermsOfPaymentTypeText; bool? AvailableForSales; bool? AvailableForPurchase; EAccountingTermsOfPaymentQueryResponse({this.Id,this.Name,this.NameEnglish,this.NumberOfDays,this.TermsOfPaymentTypeId,this.TermsOfPaymentTypeText,this.AvailableForSales,this.AvailableForPurchase}); EAccountingTermsOfPaymentQueryResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Id = json['Id']; Name = json['Name']; NameEnglish = json['NameEnglish']; NumberOfDays = json['NumberOfDays']; TermsOfPaymentTypeId = json['TermsOfPaymentTypeId']; TermsOfPaymentTypeText = json['TermsOfPaymentTypeText']; AvailableForSales = json['AvailableForSales']; AvailableForPurchase = json['AvailableForPurchase']; return this; } Map toJson() => { 'Id': Id, 'Name': Name, 'NameEnglish': NameEnglish, 'NumberOfDays': NumberOfDays, 'TermsOfPaymentTypeId': TermsOfPaymentTypeId, 'TermsOfPaymentTypeText': TermsOfPaymentTypeText, 'AvailableForSales': AvailableForSales, 'AvailableForPurchase': AvailableForPurchase }; getTypeName() => "EAccountingTermsOfPaymentQueryResponse"; TypeContext? context = _ctx; } // @Route("/eaccounting/termofpayments", "GET") class EAccountingTermOfPaymentQuery implements IReturn, ICompany, IConvertible, IGet { /** * Payment Term Id in e-accounting. */ // @ApiMember(Description="Payment Term Id in e-accounting.") String? PaymentTermId; /** * The company id, if empty will use the company id for the user you are logged in with. */ // @ApiMember(Description="The company id, if empty will use the company id for the user you are logged in with.") String? CompanyId; EAccountingTermOfPaymentQuery({this.PaymentTermId,this.CompanyId}); EAccountingTermOfPaymentQuery.fromJson(Map json) { fromMap(json); } fromMap(Map json) { PaymentTermId = json['PaymentTermId']; CompanyId = json['CompanyId']; return this; } Map toJson() => { 'PaymentTermId': PaymentTermId, 'CompanyId': CompanyId }; createResponse() => EAccountingTermsOfPaymentQueryResponse(); getResponseTypeName() => "EAccountingTermsOfPaymentQueryResponse"; getTypeName() => "EAccountingTermOfPaymentQuery"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.bokamera.se', types: { 'ICompany': TypeInfo(TypeOf.Interface), 'EAccountingTermsOfPaymentQueryResponse': TypeInfo(TypeOf.Class, create:() => EAccountingTermsOfPaymentQueryResponse()), 'EAccountingTermOfPaymentQuery': TypeInfo(TypeOf.Class, create:() => EAccountingTermOfPaymentQuery()), });