Package com.xero.models.appstore
Class UsageRecord
java.lang.Object
com.xero.models.appstore.UsageRecord
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanThe price per unitThe unique identifier of the linked ProductThe quantity recordedorg.threeten.bp.LocalDateTimeThe time when this usage was recorded in UTCThe unique identifier of the Subscription.The unique identifier of the SubscriptionItem.If the subscription is a test subscriptionThe unique identifier of the usageRecord.inthashCode()pricePerUnit(BigDecimal pricePerUnit) The price per unitThe unique identifier of the linked ProductThe quantity recordedrecordedAt(org.threeten.bp.LocalDateTime recordedAt) The time when this usage was recorded in UTCvoidsetPricePerUnit(BigDecimal pricePerUnit) The price per unitvoidsetProductId(String productId) The unique identifier of the linked ProductvoidsetQuantity(Integer quantity) The quantity recordedvoidsetRecordedAt(org.threeten.bp.LocalDateTime recordedAt) The time when this usage was recorded in UTCvoidsetSubscriptionId(String subscriptionId) The unique identifier of the Subscription.voidsetSubscriptionItemId(String subscriptionItemId) The unique identifier of the SubscriptionItem.voidsetTestMode(Boolean testMode) If the subscription is a test subscriptionvoidsetUsageRecordId(String usageRecordId) The unique identifier of the usageRecord.subscriptionId(String subscriptionId) The unique identifier of the Subscription.subscriptionItemId(String subscriptionItemId) The unique identifier of the SubscriptionItem.If the subscription is a test subscriptiontoString()usageRecordId(String usageRecordId) The unique identifier of the usageRecord.
-
Constructor Details
-
UsageRecord
public UsageRecord()
-
-
Method Details
-
quantity
The quantity recorded- Parameters:
quantity- Integer- Returns:
- UsageRecord
-
getQuantity
-
setQuantity
-
subscriptionId
The unique identifier of the Subscription.- Parameters:
subscriptionId- String- Returns:
- UsageRecord
-
getSubscriptionId
The unique identifier of the Subscription.- Returns:
- subscriptionId
-
setSubscriptionId
The unique identifier of the Subscription.- Parameters:
subscriptionId- String
-
subscriptionItemId
The unique identifier of the SubscriptionItem.- Parameters:
subscriptionItemId- String- Returns:
- UsageRecord
-
getSubscriptionItemId
The unique identifier of the SubscriptionItem.- Returns:
- subscriptionItemId
-
setSubscriptionItemId
The unique identifier of the SubscriptionItem.- Parameters:
subscriptionItemId- String
-
testMode
If the subscription is a test subscription- Parameters:
testMode- Boolean- Returns:
- UsageRecord
-
getTestMode
-
setTestMode
If the subscription is a test subscription- Parameters:
testMode- Boolean
-
recordedAt
The time when this usage was recorded in UTC- Parameters:
recordedAt- LocalDateTime- Returns:
- UsageRecord
-
getRecordedAt
public org.threeten.bp.LocalDateTime getRecordedAt()The time when this usage was recorded in UTC- Returns:
- recordedAt
-
setRecordedAt
public void setRecordedAt(org.threeten.bp.LocalDateTime recordedAt) The time when this usage was recorded in UTC- Parameters:
recordedAt- LocalDateTime
-
usageRecordId
The unique identifier of the usageRecord.- Parameters:
usageRecordId- String- Returns:
- UsageRecord
-
getUsageRecordId
-
setUsageRecordId
The unique identifier of the usageRecord.- Parameters:
usageRecordId- String
-
pricePerUnit
The price per unit- Parameters:
pricePerUnit- BigDecimal- Returns:
- UsageRecord
-
getPricePerUnit
-
setPricePerUnit
The price per unit- Parameters:
pricePerUnit- BigDecimal
-
productId
The unique identifier of the linked Product- Parameters:
productId- String- Returns:
- UsageRecord
-
getProductId
-
setProductId
The unique identifier of the linked Product- Parameters:
productId- String
-
equals
-
hashCode
-
toString
-