/* Options: Date: 2024-12-15 20:53:42 Version: 6.10 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://staging-api.billiecart.com.au //Package: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: Authenticate.* //ExcludeTypes: //InitializeCollections: True //TreatTypesAsStrings: //DefaultImports: java.math.*,java.util.*,net.servicestack.client.* */ import java.math.* import java.util.* import net.servicestack.client.* /** * Sign In */ @Route(Path="/auth", Verbs="OPTIONS,GET,POST,DELETE") // @Route(Path="/auth/{provider}", Verbs="OPTIONS,GET,POST,DELETE") @Api(Description="Sign In") @DataContract open class Authenticate : IReturn, IPost { /** * AuthProvider, e.g. credentials */ @DataMember(Order=1) var provider:String? = null @DataMember(Order=2) var state:String? = null @DataMember(Order=3) var oauth_token:String? = null @DataMember(Order=4) var oauth_verifier:String? = null @DataMember(Order=5) var userName:String? = null @DataMember(Order=6) var password:String? = null @DataMember(Order=7) var rememberMe:Boolean? = null @DataMember(Order=9) var errorView:String? = null @DataMember(Order=10) var nonce:String? = null @DataMember(Order=11) var uri:String? = null @DataMember(Order=12) var response:String? = null @DataMember(Order=13) var qop:String? = null @DataMember(Order=14) var nc:String? = null @DataMember(Order=15) var cnonce:String? = null @DataMember(Order=17) var accessToken:String? = null @DataMember(Order=18) var accessTokenSecret:String? = null @DataMember(Order=19) var scope:String? = null @DataMember(Order=20) var meta:HashMap = HashMap() companion object { private val responseType = AuthenticateResponse::class.java } override fun getResponseType(): Any? = Authenticate.responseType } @DataContract open class AuthenticateResponse : IHasSessionId, IHasBearerToken { @DataMember(Order=1) var userId:String? = null @DataMember(Order=2) var sessionId:String? = null @DataMember(Order=3) var userName:String? = null @DataMember(Order=4) var displayName:String? = null @DataMember(Order=5) var referrerUrl:String? = null @DataMember(Order=6) var bearerToken:String? = null @DataMember(Order=7) var refreshToken:String? = null @DataMember(Order=8) var profileUrl:String? = null @DataMember(Order=9) var roles:ArrayList = ArrayList() @DataMember(Order=10) var permissions:ArrayList = ArrayList() @DataMember(Order=11) var responseStatus:ResponseStatus? = null @DataMember(Order=12) var meta:HashMap = HashMap() }