utils
Module Contents
alltypes
Module Contents
class
Iso8601Utils
Module Contents
Iso8601Utils
(
)
static
fun
format
(
date
:
Date
!
)
:
String
!
static
fun
parse
(
date
:
String
!
)
:
Date
!
org.json.JSONObject
Module Contents
fun
JSONObject
.
getDate
(
jsonKey
:
String
)
:
Date
fun
JSONObject
.
getNullableString
(
name
:
String
)
:
String
?
fun
JSONObject
.
optDate
(
jsonKey
:
String
)
:
Date
?
fun
JSONObject
.
optNullableString
(
name
:
String
)
:
String
?
fun
JSONObject
.
parseDates
(
jsonKey
:
String
)
:
HashMap
<
String
,
Date
?
>
fun
JSONObject
.
parseExpirations
(
)
:
Map
<
String
,
Date
?
>
fun
JSONObject
.
parsePurchaseDates
(
)
:
Map
<
String
,
Date
?
>
object
Responses
Module Contents
const
val
badRequestErrorResponse
:
String
const
val
internalServerErrorResponse
:
String
const
val
invalidCredentialsErrorResponse
:
String
const
val
subscriberAttributesErrorsPostReceiptResponse
:
String
const
val
validEmptyPurchaserResponse
:
String
const
val
validFullPurchaserResponse
:
String
package
com.revenuecat.purchases.utils
Module Contents
class
Iso8601Utils
Module Contents
Iso8601Utils
(
)
static
fun
format
(
date
:
Date
!
)
:
String
!
static
fun
parse
(
date
:
String
!
)
:
Date
!
org.json.JSONObject
Module Contents
fun
JSONObject
.
getDate
(
jsonKey
:
String
)
:
Date
fun
JSONObject
.
getNullableString
(
name
:
String
)
:
String
?
fun
JSONObject
.
optDate
(
jsonKey
:
String
)
:
Date
?
fun
JSONObject
.
optNullableString
(
name
:
String
)
:
String
?
fun
JSONObject
.
parseDates
(
jsonKey
:
String
)
:
HashMap
<
String
,
Date
?
>
fun
JSONObject
.
parseExpirations
(
)
:
Map
<
String
,
Date
?
>
fun
JSONObject
.
parsePurchaseDates
(
)
:
Map
<
String
,
Date
?
>
object
Responses
Module Contents
const
val
badRequestErrorResponse
:
String
const
val
internalServerErrorResponse
:
String
const
val
invalidCredentialsErrorResponse
:
String
const
val
subscriberAttributesErrorsPostReceiptResponse
:
String
const
val
validEmptyPurchaserResponse
:
String
const
val
validFullPurchaserResponse
:
String