/* Options: Date: 2026-02-20 06:33:50 Version: 10.05 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://testapi.bokamera.se //Package: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: CreateCustomerArticleFromArticle.* //ExcludeTypes: //InitializeCollections: False //TreatTypesAsStrings: //DefaultImports: java.math.*,java.util.*,java.io.InputStream,net.servicestack.client.* */ import java.math.* import java.util.* import java.io.InputStream import net.servicestack.client.* @Route(Path="/customerarticle/fromarticle", Verbs="POST") @ApiResponse(Description="You were unauthorized to call this service", StatusCode=401) open class CreateCustomerArticleFromArticle : FromArticleBase(), IReturn, ICompany { companion object { private val responseType = CustomerArticleResponse::class.java } override fun getResponseType(): Any? = CreateCustomerArticleFromArticle.responseType } open class CustomerArticleResponse { open var Id:Int? = null open var CompanyId:UUID? = null open var ArticleId:Int? = null open var Price:BigDecimal? = null open var VAT:BigDecimal? = null open var CurrencyId:String? = null open var StatusId:Int? = null open var StatusName:String? = null open var CustomerId:UUID? = null open var CreatedDate:Date? = null open var UpdatedDate:Date? = null open var Article:ArticleResponse? = null open var Customer:CustomerArticleCustomerResponse? = null open var Company:CustomerArticleCompanyResponse? = null open var PaymentLog:ArrayList = ArrayList() open var ResponseStatus:ResponseStatus? = null } interface ICompany { var CompanyId:UUID? } open class CustomerToHandle : CustomerBase() { } open class InvoiceAddressToHandle : IInvoiceAddress { override var CorporateIdentityNumber:String? = null override var InvoiceAddress1:String? = null override var InvoiceAddress2:String? = null override var InvoiceCity:String? = null override var InvoicePostalCode:String? = null override var InvoiceCountryCode:String? = null } open class FromArticleBase { /** * */ @ApiMember(Description="") open var CompanyId:UUID? = null /** * Article ID for the rebate code */ @ApiMember(Description="Article ID for the rebate code", IsRequired=true) open var ArticleId:Int? = null /** * Customer information */ @ApiMember(Description="Customer information") open var Customer:CustomerToHandle? = null /** * If you want to book with customer information instead of the Customer Id send the customer information here. Note: If customer profile already exists with the same email the information will not be changed, instead the provided information will be added as BookingsComments if it differs from the ordinairy profile. */ @ApiMember(Description="If you want to book with customer information instead of the Customer Id send the customer information here. Note: If customer profile already exists with the same email the information will not be changed, instead the provided information will be added as BookingsComments if it differs from the ordinairy profile. ") open var InvoiceAddress:InvoiceAddressToHandle? = null } open class CustomerBase : ICustomerBase { override var CustomerId:UUID? = null override var Firstname:String? = null override var Lastname:String? = null override var Email:String? = null override var Phone:String? = null override var SubscribedToNewsletter:Boolean? = null override var PersonalIdentityNumber:String? = null } interface ICustomerBase { var CustomerId:UUID? var Firstname:String? var Lastname:String? var Email:String? var Phone:String? var SubscribedToNewsletter:Boolean? var PersonalIdentityNumber:String? } open class CustomerArticleCustomerResponse { open var Id:UUID? = null open var Firstname:String? = null open var Lastname:String? = null open var Email:String? = null open var Phone:String? = null } open class CustomerArticleCompanyResponse { open var Id:UUID? = null open var Name:String? = null open var LogoType:String? = null open var Email:String? = null open var Phone:String? = null open var City:String? = null open var Street1:String? = null open var ZipCode:String? = null open var CountryId:String? = null } open class PaymentLogResponse { open var Id:Int? = null open var Amount:Double? = null open var AmountCredited:Double? = null open var CurrencyId:String? = null open var Comments:String? = null open var Created:Date? = null open var Updated:Date? = null } interface IInvoiceAddress { var CorporateIdentityNumber:String? var InvoiceAddress1:String? var InvoiceAddress2:String? var InvoiceCity:String? var InvoicePostalCode:String? var InvoiceCountryCode:String? } open class ArticleResponse { open var CompanyId:UUID? = null open var Id:Int? = null open var Name:String? = null open var ArticleTypeId:Int? = null open var Description:String? = null open var ImageUrl:String? = null open var Active:Boolean? = null open var Amount:Int? = null open var Price:Double? = null open var CurrencyId:String? = null open var SortOrder:Int? = null open var UpdatedDate:Date? = null open var CreatedDate:Date? = null open var Services:ArrayList = ArrayList() open var ServiceIds:ArrayList = ArrayList() open var PriceSign:String? = null open var VAT:BigDecimal? = null }