/* Options: Date: 2024-11-21 12:03:08 Version: 8.23 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.bokamera.se //Package: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: CreateInvoiceDraft.* //ExcludeTypes: //InitializeCollections: True //TreatTypesAsStrings: //DefaultImports: java.math.*,java.util.*,net.servicestack.client.* */ import java.math.* import java.util.* import net.servicestack.client.* @Route(Path="/eaccounting/invoicedraft", Verbs="POST") open class CreateInvoiceDraft : InvoiceAddress(), IReturn, ICompany { /** * The booking id, to be used to create the customer. */ @ApiMember(Description="The booking id, to be used to create the customer.", IsRequired=true) var BookingId:Int? = null /** * The Term of payment Id, to be used to create the invoice. */ @ApiMember(Description="The Term of payment Id, to be used to create the invoice.", IsRequired=true) var TermsOfPaymentId:UUID? = null /** * Note id's to add to this invoice */ @ApiMember(Description="Note id's to add to this invoice") var Notes:ArrayList = ArrayList() /** * Invoice Customer name */ @ApiMember(Description="Invoice Customer name") var InvoiceCustomerName:String? = null /** * 1 = Apartment, 2 = Property Leave blank or set to null if you do not intend to use ROT or Green Technology functionality. */ @ApiMember(Description="1 = Apartment, 2 = Property Leave blank or set to null if you do not intend to use ROT or Green Technology functionality.", IsRequired=true) var RotPropertyType:RotPropertyTypes? = null /** * 0 = Normal, 1 = Rot, 2 = Rut = ['0', '1', '2'] */ @ApiMember(Description="0 = Normal, 1 = Rot, 2 = Rut = ['0', '1', '2']", IsRequired=true) var RotReducedInvoicingType:RotReducedInvoicingTypes? = null /** * 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.") var CompanyId:UUID? = null companion object { private val responseType = CreateInvoiceDraftQueryResponse::class.java } override fun getResponseType(): Any? = CreateInvoiceDraft.responseType } open class CreateInvoiceDraftQueryResponse { var Invoice:InvoiceDraftQueryResponse? = null var InvoiceUri:String? = null var ResponseStatus:ResponseStatus? = null } open interface ICompany { var CompanyId:UUID? } open class InvoiceAddress { var CorporateIdentityNumber:String? = null var InvoiceAddress1:String? = null var InvoiceAddress2:String? = null var InvoiceCity:String? = null var InvoicePostalCode:String? = null var InvoiceCountryCode:String? = null } enum class RotPropertyTypes(val value:Int) { Apartment(1), Property(2), } enum class RotReducedInvoicingTypes { Normal, Rot, Rut, } open class InvoiceDraftQueryResponse { var InvoiceId:UUID? = null var CreatedDate:Date? = null var TotalAmount:BigDecimal? = null var TotalVatAmount:BigDecimal? = null var CustomerId:String? = null var Rows:ArrayList = ArrayList() var InvoiceDate:String? = null var DueDate:String? = null var DeliveryDate:Date? = null var Persons:ArrayList = ArrayList() var InvoiceCustomerName:String? = null var InvoiceAddress:InvoiceAddress? = null var CustomerIsPrivatePerson:Boolean? = null var CustomerNumber:String? = null var Notes:ArrayList = ArrayList() var NoteIds:ArrayList = ArrayList() var CreatedUtc:Date? = null var IncludesVat:Boolean? = null var PriceSign:String? = null var BookingId:String? = null }