(* Options: Date: 2024-06-17 06:52:37 Version: 8.23 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://testapi.bokamera.se //GlobalNamespace: //MakeDataContractsExtensible: False //AddReturnMarker: True //AddDescriptionAsComments: True //AddDataContractAttributes: False //AddIndexesToDataMembers: False //AddGeneratedCodeAttributes: False //AddResponseStatus: False //AddImplicitVersion: //ExportValueTypes: False IncludeTypes: CreateInvoice.* //ExcludeTypes: //InitializeCollections: True //AddNamespaces: *) namespace BokaMera.API.ServiceModel.Dtos open System open System.Collections open System.Collections.Generic open System.Runtime.Serialization open ServiceStack open ServiceStack.DataAnnotations open System.Globalization open System.IO [] type ICompany = abstract CompanyId:Nullable with get,set [] type InvoiceAddress() = member val CorporateIdentityNumber:String = null with get,set member val InvoiceAddress1:String = null with get,set member val InvoiceAddress2:String = null with get,set member val InvoiceCity:String = null with get,set member val InvoicePostalCode:String = null with get,set member val InvoiceCountryCode:String = null with get,set type RotPropertyTypes = | Apartment = 1 | Property = 2 type RotReducedInvoicingTypes = | Normal = 0 | Rot = 1 | Rut = 2 type EAccountingInvoiceSendTypes = | None = 0 | AutoInvoiceElectronic = 1 | AutoInvoicePrint = 2 | AutoInvoiceB2C = 3 [] type InvoiceQueryResponse() = member val InvoiceId:Guid = new Guid() with get,set member val CreatedDate:DateTime = new DateTime() with get,set member val TotalAmount:Decimal = new Decimal() with get,set member val TotalVatAmount:Decimal = new Decimal() with get,set member val CustomerId:String = null with get,set member val Rows:ResizeArray = new ResizeArray() with get,set member val VatSpecification:ResizeArray = new ResizeArray() with get,set member val InvoiceDate:String = null with get,set member val DueDate:String = null with get,set member val DeliveryDate:Nullable = new Nullable() with get,set member val Persons:ResizeArray = new ResizeArray() with get,set member val InvoiceCustomerName:String = null with get,set member val InvoiceAddress:InvoiceAddress = null with get,set member val CustomerIsPrivatePerson:Boolean = new Boolean() with get,set member val TermsOfPaymentId:String = null with get,set member val TermsOfPaymentData:EAccountingTermsOfPaymentQueryResponse = null with get,set member val CustomerEmail:String = null with get,set member val InvoiceNumber:Int32 = new Int32() with get,set member val CustomerNumber:String = null with get,set member val Notes:ResizeArray = new ResizeArray() with get,set member val NoteIds:ResizeArray = new ResizeArray() with get,set member val CreatedUtc:DateTime = new DateTime() with get,set member val ModifiedUtc:DateTime = new DateTime() with get,set member val IncludesVat:Boolean = new Boolean() with get,set member val SendType:Nullable = new Nullable() with get,set member val IsSold:Boolean = new Boolean() with get,set member val PaymentDate:Nullable = new Nullable() with get,set member val PaymentStatus:PaymentStatus = new PaymentStatus() with get,set member val PaymentStatusTitle:String = null with get,set member val CreditedBy:ResizeArray = new ResizeArray() with get,set member val PriceSign:String = null with get,set member val BookingId:String = null with get,set [] type CreateInvoiceQueryResponse() = member val Invoice:InvoiceQueryResponse = null with get,set member val InvoiceUri:String = null with get,set member val ResponseStatus:ResponseStatus = null with get,set [] [] type CreateInvoice() = inherit InvoiceAddress() interface IReturn /// ///The booking id, to be used to create the customer. /// [] member val BookingId:Int32 = new Int32() with get,set /// ///The Term of payment Id, to be used to create the invoice. /// [] member val TermsOfPaymentId:Guid = new Guid() with get,set /// ///Note id's to add to this invoice /// [] member val Notes:ResizeArray = new ResizeArray() with get,set /// ///Invoice Customer name /// [] member val InvoiceCustomerName:String = null with get,set /// ///Used for sending the invoice via Auto-invoice Default:None, 0 = None, 1 = AutoInvoiceElectronic, 2 = AutoInvoicePrint, 3 = AutoInvoiceB2C = ['0', '1', '2', '3']. /// [] member val SendType:Nullable = new Nullable() with get,set /// ///1 = Apartment, 2 = Property Leave blank or set to null if you do not intend to use ROT or Green Technology functionality. /// [] member val RotPropertyType:Nullable = new Nullable() with get,set /// ///0 = Normal, 1 = Rot, 2 = Rut = ['0', '1', '2'] /// [] member val RotReducedInvoicingType:Nullable = new Nullable() with get,set /// ///The company id, if empty will use the company id for the user you are logged in with. /// [] member val CompanyId:Nullable = new Nullable() with get,set