/* Options: Date: 2024-11-21 12:40:40 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: EAccountingTermsOfPaymentQuery.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; abstract class ICompany { String? CompanyId; } enum TermsOfPaymentTypes { Normal, CurrentMonth, Cash, CardPayment, DigitalWallet, PaymentServiceProvider, } 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/termsofpayments", "GET") class EAccountingTermsOfPaymentQuery implements IReturn>, ICompany, IConvertible, IGet { TermsOfPaymentTypes? TermsOfPaymentTypeId; /** * 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; EAccountingTermsOfPaymentQuery({this.TermsOfPaymentTypeId,this.CompanyId}); EAccountingTermsOfPaymentQuery.fromJson(Map json) { fromMap(json); } fromMap(Map json) { TermsOfPaymentTypeId = JsonConverters.fromJson(json['TermsOfPaymentTypeId'],'TermsOfPaymentTypes',context!); CompanyId = json['CompanyId']; return this; } Map toJson() => { 'TermsOfPaymentTypeId': JsonConverters.toJson(TermsOfPaymentTypeId,'TermsOfPaymentTypes',context!), 'CompanyId': CompanyId }; createResponse() => []; getResponseTypeName() => "List"; getTypeName() => "EAccountingTermsOfPaymentQuery"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.bokamera.se', types: { 'ICompany': TypeInfo(TypeOf.Interface), 'TermsOfPaymentTypes': TypeInfo(TypeOf.Enum, enumValues:TermsOfPaymentTypes.values), 'EAccountingTermsOfPaymentQueryResponse': TypeInfo(TypeOf.Class, create:() => EAccountingTermsOfPaymentQueryResponse()), 'EAccountingTermsOfPaymentQuery': TypeInfo(TypeOf.Class, create:() => EAccountingTermsOfPaymentQuery()), });