/* Options: Date: 2026-04-01 02:30:53 Version: 10.05 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.bokamera.se //GlobalNamespace: //MakePartial: True //MakeVirtual: True //MakeInternal: False //MakeDataContractsExtensible: False //AddNullableAnnotations: True //AddReturnMarker: True //AddDescriptionAsComments: True //AddDataContractAttributes: False //AddIndexesToDataMembers: False //AddGeneratedCodeAttributes: False //AddResponseStatus: False //AddImplicitVersion: //InitializeCollections: False //ExportValueTypes: False IncludeTypes: CreateSummarizedInvoice.* //ExcludeTypes: //AddNamespaces: //AddDefaultXmlNamespace: http://schemas.servicestack.net/types */ using System; using System.IO; using System.Collections; using System.Collections.Generic; using System.Runtime.Serialization; using ServiceStack; using ServiceStack.DataAnnotations; using System.Globalization; using ServiceStack.Data; using System.Net; using System.Net.Http.Headers; using BokaMera.API.ServiceModel.Interfaces; using BokaMera.API.ServiceModel.Enums; using BokaMera.API.ServiceModel.Dtos; namespace BokaMera.API.ServiceModel.Dtos { [Route("/eaccounting/summarizedinvoice", "POST")] [ApiResponse(Description="You were unauthorized to call this service", StatusCode=401)] [ValidateRequest("IsAuthenticated")] public partial class CreateSummarizedInvoice : IReturn, ICompany { /// ///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.")] public virtual Guid? CompanyId { get; set; } /// ///Start date for the booking range to include. /// [ApiMember(Description="Start date for the booking range to include.", IsRequired=true)] public virtual DateTime DateFrom { get; set; } /// ///End date for the booking range to include. /// [ApiMember(Description="End date for the booking range to include.", IsRequired=true)] public virtual DateTime DateTo { get; set; } /// ///Optional customer id. If null, creates one summarized invoice per customer with eligible bookings. /// [ApiMember(Description="Optional customer id. If null, creates one summarized invoice per customer with eligible bookings.")] public virtual Guid? CustomerId { get; set; } /// ///Optional service/event id filter. Only include bookings for this service. /// [ApiMember(Description="Optional service/event id filter. Only include bookings for this service.")] public virtual int? ServiceId { get; set; } /// ///Optional list of booking status ids to include. If empty, all statuses are included. /// [ApiMember(Description="Optional list of booking status ids to include. If empty, all statuses are included.")] public virtual List? BookingStatusIds { get; set; } /// ///The terms of payment id from EAccounting. /// [ApiMember(Description="The terms of payment id from EAccounting.", IsRequired=true)] public virtual string TermsOfPaymentId { get; set; } /// ///Invoice creation type: 'Draft' or 'Invoice'. Defaults to company's EAccounting DefaultCreateType. /// [ApiMember(Description="Invoice creation type: 'Draft' or 'Invoice'. Defaults to company's EAccounting DefaultCreateType.")] public virtual string? CreateType { get; set; } /// ///Send type for final invoices. 0 = None, 1 = AutoInvoiceElectronic, 2 = AutoInvoicePrint, 3 = AutoInvoiceB2C. /// [ApiMember(Description="Send type for final invoices. 0 = None, 1 = AutoInvoiceElectronic, 2 = AutoInvoicePrint, 3 = AutoInvoiceB2C.")] public virtual EAccountingInvoiceSendTypes? SendType { get; set; } /// ///Override corporate identity number for invoice address. /// [ApiMember(Description="Override corporate identity number for invoice address.")] public virtual string? CorporateIdentityNumber { get; set; } /// ///Override invoice address line 1. /// [ApiMember(Description="Override invoice address line 1.")] public virtual string? InvoiceAddress1 { get; set; } /// ///Override invoice address line 2. /// [ApiMember(Description="Override invoice address line 2.")] public virtual string? InvoiceAddress2 { get; set; } /// ///Override invoice city. /// [ApiMember(Description="Override invoice city.")] public virtual string? InvoiceCity { get; set; } /// ///Override invoice postal code. /// [ApiMember(Description="Override invoice postal code.")] public virtual string? InvoicePostalCode { get; set; } /// ///Override invoice country code. /// [ApiMember(Description="Override invoice country code.")] public virtual string? InvoiceCountryCode { get; set; } } public partial class CreateSummarizedInvoiceResponse { public virtual int TotalCustomersQueued { get; set; } public virtual List Jobs { get; set; } = []; public virtual ResponseStatus ResponseStatus { get; set; } } public partial class SummarizedInvoiceJobResponse { public virtual Guid SummarizedInvoiceId { get; set; } public virtual Guid CustomerId { get; set; } public virtual string CustomerName { get; set; } public virtual int BookingCount { get; set; } } } namespace BokaMera.API.ServiceModel.Interfaces { public partial interface ICompany { Guid? CompanyId { get; set; } } }