/* Options: Date: 2024-06-26 11:07:35 Version: 8.23 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://testapi.bokamera.se //Package: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: CreateCustomer.* //ExcludeTypes: //InitializeCollections: True //TreatTypesAsStrings: //DefaultImports: java.math.*,java.util.*,net.servicestack.client.* */ import java.math.* import java.util.* 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") var CompanyId:UUID? = null @ApiMember(IsRequired=true) var Firstname:String? = null @ApiMember(IsRequired=true) var Lastname:String? = null @ApiMember(IsRequired=true) var Phone:String? = null @ApiMember() 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") var CustomFields:ArrayList = ArrayList() /** * List of Access Keys */ @ApiMember(Description="List of Access Keys") var AccessKeys:ArrayList = ArrayList() /** * Customer invoice adress */ @ApiMember(Description="Customer invoice adress") var InvoiceAddress:InvoiceAddress? = null companion object { private val responseType = UpdateCustomerResponse::class.java } override fun getResponseType(): Any? = CreateCustomer.responseType } open class UpdateCustomerResponse : CustomerQueryResponse() { var FacebookUserName:String? = null var UserId:UUID? = null var CompanyId:UUID? = null var CreatedDate:Date? = null var DeletedAccessKeys:ArrayList = ArrayList() var CreatedOrUpdatedAccessKeys:ArrayList = ArrayList() } open class AddCustomField { var Id:Int? = null var Value:String? = null } open class AddUserAccessKey { var Id:UUID? = null var CompanyId:UUID? = null var AccessKeyTypeId:Int? = null var Value:String? = null var CustomerId:UUID? = null var Description:String? = null } 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 } open class UserAccessKeys : BaseModel() { @Required() var CompanyId:UUID? = null @Required() var AccessKeyTypeId:Int? = null @Required() var Value:String? = null @Required() var CustomerId:UUID? = null var Description:String? = null @Required() var Id:UUID? = null } open class BaseModel { } open class CustomerQueryResponse { var Id:UUID? = null var Firstname:String? = null var Lastname:String? = null var Email:String? = null var Phone:String? = null var ImageUrl:String? = null var CustomFields:ArrayList = ArrayList() var CustomFieldValues:ArrayList = ArrayList() var Comments:ArrayList = ArrayList() var AccessKeys:ArrayList = ArrayList() var Updated:Date? = null var Created:Date? = null var ResponseStatus:Object? = null var SubscribedToNewsletter:Boolean? = null var InvoiceAddress:InvoiceAddress? = null }