/* Options: Date: 2024-05-13 05:02:05 Version: 6.50 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://www.clubready.com/api/current //Package: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: CreateUserNotesRequest.* //ExcludeTypes: //InitializeCollections: True //TreatTypesAsStrings: //DefaultImports: java.math.*,java.util.*,net.servicestack.client.* */ import java.math.* import java.util.* import net.servicestack.client.* @Route(Path="/users/notes/create", Verbs="POST") open class CreateUserNotesRequest : CreateUserNotesRequestDto(), IReturn, IRestrictedApiRequest { /** * Api Key - grants access to resources */ @ApiMember(DataType="string", Description="Api Key - grants access to resources", IsRequired=true, Name="ApiKey", ParameterType="query") var ApiKey:String? = null /** * ClubReady Club ID (StoreID internally) */ @ApiMember(DataType="integer", Description="ClubReady Club ID (StoreID internally)", IsRequired=true, Name="StoreId", ParameterType="query") var StoreId:Int? = null /** * Notes are being posted by this ClubReady User ID. */ @ApiMember(DataType="integer", Description="Notes are being posted by this ClubReady User ID.", Name="PostedBy", ParameterType="query") var PostedBy:Int? = null /** * Create notes */ @ApiMember(Description="Create notes", IsRequired=true, Name="UserNotes") var UserNotes:ArrayList = ArrayList() var RestrictedId:Int? = null var RestrictedResourceType:RestrictedResourceType? = null companion object { private val responseType = CreateUserNotesResponse::class.java } override fun getResponseType(): Any? = CreateUserNotesRequest.responseType } open class CreateUserNotesResponse : CreateUserNotesResponseDto() { var NoteIds:ArrayList = ArrayList() } enum class RestrictedResourceType { Store, Chain, User, Undefined, } open interface IRestrictedApiRequest : IApiKeyEndpoint { var RestrictedId:Int? var RestrictedResourceType:RestrictedResourceType? } open interface IApiKeyEndpoint { var ApiKey:String? } open class ApiDtoBase { var ApiKey:String? = null var StoreId:Int? = null var ChainId:Int? = null } open class SubmittedNote { var UserId:Int? = null var Subject:String? = null var Text:String? = null } open class CreateUserNotesRequestDto : ApiDtoBase() { var PostedBy:Int? = null var UserNotes:ArrayList = ArrayList() } open class CreateUserNotesResponseDto : ApiResponseBase() { var NoteIds:ArrayList = ArrayList() } open class ApiResponseBase { var Success:Boolean? = null var Message:String? = null }