/* Options: Date: 2025-09-13 05:45:22 Version: 8.80 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.bokamera.se //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 : 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 @ApiMember(IsRequired=true) open var Firstname:String? = null @ApiMember(IsRequired=true) open var Lastname:String? = null @ApiMember(IsRequired=true) open var Phone:String? = null @ApiMember() open var Email:String? = 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? = null /** * List of Access Keys */ @ApiMember(Description="List of Access Keys") open var AccessKeys:ArrayList? = null /** * 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? = null open var CreatedOrUpdatedAccessKeys:ArrayList? = null } open class AddCustomField { open var Id:Int? = null open var Value:String? = null } open class InvoiceAddressToHandle { open var CorporateIdentityNumber:String? = null open var InvoiceAddress1:String? = null open var InvoiceAddress2:String? = null open var InvoiceCity:String? = null open var InvoicePostalCode:String? = null open 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 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 { } 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? = null open var CustomFieldValues:ArrayList? = null open var Comments:ArrayList? = null open var AccessKeys:ArrayList? = null 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 }