/* Options: Date: 2025-11-01 08:52:57 Version: 8.80 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.bookmore.com //Package: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: CreateCustomer.* //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="/customers", Verbs="POST") @ApiResponse(Description="Returned if there is a validation error on the input parameters", StatusCode=400) // @ApiResponse(Description="Returned if the current user is not allowed to perform the action", StatusCode=401) @ValidateRequest(Validator="IsAuthenticated") open class CreateCustomer : CustomerBase(), IReturn { /** * Enter the company and id for the customer, if blank company id and you are an admin, your company id will be used. */ @ApiMember(Description="Enter the company and id for the customer, if blank company id and you are an admin, your company id will be used.", ParameterType="query") open var CompanyId:UUID? = null /** * If Custom Fields are added to the customer, here you will send the id and the value for each custom field to be updated */ @ApiMember(Description="If Custom Fields are added to the customer, here you will send the id and the value for each custom field to be updated") open var CustomFields:ArrayList = ArrayList() /** * List of Access Keys */ @ApiMember(Description="List of Access Keys") open var AccessKeys:ArrayList = ArrayList() /** * Customer invoice adress */ @ApiMember(Description="Customer invoice adress") open var InvoiceAddress:InvoiceAddressToHandle? = null companion object { private val responseType = UpdateCustomerResponse::class.java } override fun getResponseType(): Any? = CreateCustomer.responseType } open class UpdateCustomerResponse : CustomerQueryResponse() { open var FacebookUserName:String? = null open var UserId:UUID? = null open var CompanyId:UUID? = null open var CreatedDate:Date? = null open var DeletedAccessKeys:ArrayList = ArrayList() open var CreatedOrUpdatedAccessKeys:ArrayList = ArrayList() } open class AddCustomField { open var Id:Int? = null open var Value:String? = null } 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 AddUserAccessKey { /** * Specify 'Id' to update an existing access key, leave empty to create a new one */ @ApiMember(Description="Specify 'Id' to update an existing access key, leave empty to create a new one") open var Id:UUID? = null /** * The company ID associated with this access key */ @ApiMember(Description="The company ID associated with this access key") open var CompanyId:UUID? = null /** * The type of access key to create */ @ApiMember(Description="The type of access key to create") open var AccessKeyTypeId:Int? = null /** * The actual key value or token */ @ApiMember(Description="The actual key value or token") open var Value:String? = null /** * The customer ID this access key is associated with */ @ApiMember(Description="The customer ID this access key is associated with") open var CustomerId:UUID? = null /** * A description or note about this access key */ @ApiMember(Description="A description or note about this access key") open var Description:String? = 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 } interface ICustomerBase { var CustomerId:UUID? var Firstname:String? var Lastname:String? var Email:String? var Phone:String? var SubscribedToNewsletter:Boolean? } open class UserAccessKeys : BaseModel() { @Required() open var CompanyId:UUID? = null @Required() open var AccessKeyTypeId:Int? = null @Required() open var Value:String? = null @Required() open var CustomerId:UUID? = null open var Description:String? = null @Required() open var Id:UUID? = null } open class BaseModel { } interface IInvoiceAddress { var CorporateIdentityNumber:String? var InvoiceAddress1:String? var InvoiceAddress2:String? var InvoiceCity:String? var InvoicePostalCode:String? var InvoiceCountryCode:String? } open class CustomerQueryResponse { 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 var ImageUrl:String? = null open var CustomFields:ArrayList = ArrayList() open var CustomFieldValues:ArrayList = ArrayList() open var Comments:ArrayList = ArrayList() open var AccessKeys:ArrayList = ArrayList() open var Updated:Date? = null open var Created:Date? = null open var ResponseStatus:Object? = null open var SubscribedToNewsletter:Boolean? = null open var InvoiceAddress:InvoiceAddressResponse? = null }