toggle menu
QuettaCode API
0.1.0-BETA
jvm
switch theme
search in API
QuettaCode API
/
com.quettacode.pay.domain
/
TenantQuota
Tenant
Quota
@
Entity
class
TenantQuota
(
val
tenantId
:
String
,
val
resourceKey
:
String
,
val
periodStart
:
LocalDate
,
val
periodEnd
:
LocalDate
,
var
limitCount
:
Long
)
(
source
)
Members
Constructors
Tenant
Quota
Link copied to clipboard
constructor
(
tenantId
:
String
,
resourceKey
:
String
,
periodStart
:
LocalDate
,
periodEnd
:
LocalDate
,
limitCount
:
Long
)
Properties
id
Link copied to clipboard
var
id
:
String
limit
Count
Link copied to clipboard
var
limitCount
:
Long
period
End
Link copied to clipboard
val
periodEnd
:
LocalDate
period
Start
Link copied to clipboard
val
periodStart
:
LocalDate
resource
Key
Link copied to clipboard
val
resourceKey
:
String
tenant
Id
Link copied to clipboard
val
tenantId
:
String
updated
At
Link copied to clipboard
var
updatedAt
:
LocalDateTime
usage
Count
Link copied to clipboard
var
usageCount
:
Long
Functions
increment
Usage
Link copied to clipboard
fun
incrementUsage
(
amount
:
Long
=
1
)
is
Exceeded
Link copied to clipboard
fun
isExceeded
(
)
:
Boolean