Package com.xero.models.appstore
Class CreateUsageRecord
java.lang.Object
com.xero.models.appstore.CreateUsageRecord
Data transfer object for public create usage end point
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanThe initial quantity for the usage record.org.threeten.bp.LocalDateTimeDateTime in UTC of when the the product was consumed/usedinthashCode()The initial quantity for the usage record.voidsetQuantity(Integer quantity) The initial quantity for the usage record.voidsetTimestamp(org.threeten.bp.LocalDateTime timestamp) DateTime in UTC of when the the product was consumed/usedtimestamp(org.threeten.bp.LocalDateTime timestamp) DateTime in UTC of when the the product was consumed/usedtoString()
-
Constructor Details
-
CreateUsageRecord
public CreateUsageRecord()
-
-
Method Details
-
quantity
The initial quantity for the usage record. Must be a whole number that is greater than or equal to 0- Parameters:
quantity- Integer- Returns:
- CreateUsageRecord
-
getQuantity
The initial quantity for the usage record. Must be a whole number that is greater than or equal to 0- Returns:
- quantity
-
setQuantity
The initial quantity for the usage record. Must be a whole number that is greater than or equal to 0- Parameters:
quantity- Integer
-
timestamp
DateTime in UTC of when the the product was consumed/used- Parameters:
timestamp- LocalDateTime- Returns:
- CreateUsageRecord
-
getTimestamp
public org.threeten.bp.LocalDateTime getTimestamp()DateTime in UTC of when the the product was consumed/used- Returns:
- timestamp
-
setTimestamp
public void setTimestamp(org.threeten.bp.LocalDateTime timestamp) DateTime in UTC of when the the product was consumed/used- Parameters:
timestamp- LocalDateTime
-
equals
-
hashCode
-
toString
-