oauth
Module Contents
alltypes
Module Contents
class
ClientResult
<
T
>
Module Contents
@<?>
ClientResult
(
@Nullable
result
:
T
,
@NotNull
statusCode
:
HttpStatusCode
,
@Nullable
error
:
ErrorResponse
)
@Nullable
fun
component1
(
)
:
T
@NotNull
fun
component2
(
)
:
HttpStatusCode
@Nullable
fun
component3
(
)
:
ErrorResponse
@NotNull
fun
copy
(
@Nullable
result
:
T
,
@NotNull
statusCode
:
HttpStatusCode
,
@Nullable
error
:
ErrorResponse
)
:
ClientResult
<
T
>
@NotNull
fun
equals
(
@Nullable
p
:
java.lang.Object
)
:
boolean
@Nullable
fun
getError
(
)
:
ErrorResponse
@Nullable
fun
getResult
(
)
:
T
@NotNull
fun
getStatusCode
(
)
:
HttpStatusCode
@NotNull
fun
hashCode
(
)
:
int
@<?>
fun
setError
(
@Nullable
p
:
ErrorResponse
)
:
void
@<?>
fun
setResult
(
@Nullable
p
:
T
)
:
void
@<?>
fun
setStatusCode
(
@NotNull
p
:
HttpStatusCode
)
:
void
@NotNull
fun
toString
(
)
:
java.lang.String
class
ErrorResponse
Module Contents
@<?>
ErrorResponse
(
@Nullable
errorCode
:
java.lang.String
,
@Nullable
errorDescription
:
java.lang.String
)
@<?>
ErrorResponse
(
)
@Nullable
fun
component1
(
)
:
java.lang.String
@Nullable
fun
component2
(
)
:
java.lang.String
@NotNull
fun
copy
(
@Nullable
errorCode
:
java.lang.String
,
@Nullable
errorDescription
:
java.lang.String
)
:
ErrorResponse
@NotNull
fun
equals
(
@Nullable
p
:
java.lang.Object
)
:
boolean
@Nullable
fun
getErrorCode
(
)
:
java.lang.String
@Nullable
fun
getErrorDescription
(
)
:
java.lang.String
@NotNull
fun
hashCode
(
)
:
int
@NotNull
fun
toString
(
)
:
java.lang.String
class
HttpStatusCode
Module Contents
Accepted
BadRequest
Conflict
Created
EntityTooLarge
Forbidden
@<?>
fun
getCode
(
)
:
int
InternalServerError
NoContent
NotFound
NotModified
Ok
PreconditionFailure
RequestTimeout
RetryWith
ServiceUnavailable
TooManyRequests
Unauthorized
Unknown
class
OAuth
Module Contents
@<?>
OAuth
(
@NotNull
clientId
:
java.lang.String
,
@NotNull
clientSecret
:
java.lang.String
,
@NotNull
environment
:
OAuthEnvironment
)
@<?>
fun
getToken
(
@NotNull
callback
:
kotlin.jvm.functions.Function1
<
? super br.com.braspag.models.ClientResult<br.com.braspag.models.OAuthResponse>
,
kotlin.Unit
>
)
:
void
class
OAuthEnvironment
Module Contents
PRODUCTION
SANDBOX
class
OAuthResponse
Module Contents
@<?>
OAuthResponse
(
@NotNull
accessToken
:
java.lang.String
,
@NotNull
tokenType
:
java.lang.String
,
@<?>
expiresIn
:
int
)
@NotNull
fun
component1
(
)
:
java.lang.String
@NotNull
fun
component2
(
)
:
java.lang.String
@<?>
fun
component3
(
)
:
int
@NotNull
fun
copy
(
@NotNull
accessToken
:
java.lang.String
,
@NotNull
tokenType
:
java.lang.String
,
@<?>
expiresIn
:
int
)
:
OAuthResponse
@NotNull
fun
equals
(
@Nullable
p
:
java.lang.Object
)
:
boolean
@NotNull
fun
getAccessToken
(
)
:
java.lang.String
@<?>
fun
getExpiresIn
(
)
:
int
@NotNull
fun
getTokenType
(
)
:
java.lang.String
@NotNull
fun
hashCode
(
)
:
int
@NotNull
fun
toString
(
)
:
java.lang.String
package
br.com.braspag
Module Contents
class
OAuth
Module Contents
@<?>
OAuth
(
@NotNull
clientId
:
java.lang.String
,
@NotNull
clientSecret
:
java.lang.String
,
@NotNull
environment
:
OAuthEnvironment
)
@<?>
fun
getToken
(
@NotNull
callback
:
kotlin.jvm.functions.Function1
<
? super br.com.braspag.models.ClientResult<br.com.braspag.models.OAuthResponse>
,
kotlin.Unit
>
)
:
void
package
br.com.braspag.models
Module Contents
class
ClientResult
<
T
>
Module Contents
@<?>
ClientResult
(
@Nullable
result
:
T
,
@NotNull
statusCode
:
HttpStatusCode
,
@Nullable
error
:
ErrorResponse
)
@Nullable
fun
component1
(
)
:
T
@NotNull
fun
component2
(
)
:
HttpStatusCode
@Nullable
fun
component3
(
)
:
ErrorResponse
@NotNull
fun
copy
(
@Nullable
result
:
T
,
@NotNull
statusCode
:
HttpStatusCode
,
@Nullable
error
:
ErrorResponse
)
:
ClientResult
<
T
>
@NotNull
fun
equals
(
@Nullable
p
:
java.lang.Object
)
:
boolean
@Nullable
fun
getError
(
)
:
ErrorResponse
@Nullable
fun
getResult
(
)
:
T
@NotNull
fun
getStatusCode
(
)
:
HttpStatusCode
@NotNull
fun
hashCode
(
)
:
int
@<?>
fun
setError
(
@Nullable
p
:
ErrorResponse
)
:
void
@<?>
fun
setResult
(
@Nullable
p
:
T
)
:
void
@<?>
fun
setStatusCode
(
@NotNull
p
:
HttpStatusCode
)
:
void
@NotNull
fun
toString
(
)
:
java.lang.String
class
ErrorResponse
Module Contents
@<?>
ErrorResponse
(
@Nullable
errorCode
:
java.lang.String
,
@Nullable
errorDescription
:
java.lang.String
)
@<?>
ErrorResponse
(
)
@Nullable
fun
component1
(
)
:
java.lang.String
@Nullable
fun
component2
(
)
:
java.lang.String
@NotNull
fun
copy
(
@Nullable
errorCode
:
java.lang.String
,
@Nullable
errorDescription
:
java.lang.String
)
:
ErrorResponse
@NotNull
fun
equals
(
@Nullable
p
:
java.lang.Object
)
:
boolean
@Nullable
fun
getErrorCode
(
)
:
java.lang.String
@Nullable
fun
getErrorDescription
(
)
:
java.lang.String
@NotNull
fun
hashCode
(
)
:
int
@NotNull
fun
toString
(
)
:
java.lang.String
class
HttpStatusCode
Module Contents
Accepted
BadRequest
Conflict
Created
EntityTooLarge
Forbidden
@<?>
fun
getCode
(
)
:
int
InternalServerError
NoContent
NotFound
NotModified
Ok
PreconditionFailure
RequestTimeout
RetryWith
ServiceUnavailable
TooManyRequests
Unauthorized
Unknown
class
OAuthEnvironment
Module Contents
PRODUCTION
SANDBOX
class
OAuthResponse
Module Contents
@<?>
OAuthResponse
(
@NotNull
accessToken
:
java.lang.String
,
@NotNull
tokenType
:
java.lang.String
,
@<?>
expiresIn
:
int
)
@NotNull
fun
component1
(
)
:
java.lang.String
@NotNull
fun
component2
(
)
:
java.lang.String
@<?>
fun
component3
(
)
:
int
@NotNull
fun
copy
(
@NotNull
accessToken
:
java.lang.String
,
@NotNull
tokenType
:
java.lang.String
,
@<?>
expiresIn
:
int
)
:
OAuthResponse
@NotNull
fun
equals
(
@Nullable
p
:
java.lang.Object
)
:
boolean
@NotNull
fun
getAccessToken
(
)
:
java.lang.String
@<?>
fun
getExpiresIn
(
)
:
int
@NotNull
fun
getTokenType
(
)
:
java.lang.String
@NotNull
fun
hashCode
(
)
:
int
@NotNull
fun
toString
(
)
:
java.lang.String