Package com.xero.models.appstore
Class SubscriptionItem
java.lang.Object
com.xero.models.appstore.SubscriptionItem
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumStatus of the subscription item. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionendDate(org.threeten.bp.LocalDateTime endDate) Date when the subscription to this product will endbooleanorg.threeten.bp.LocalDateTimeDate when the subscription to this product will endgetId()The unique identifier of the subscription item.getPrice()Get priceGet productThe quantity of the item.org.threeten.bp.LocalDateTimeDate the subscription started, or will start.Status of the subscription item.If the subscription is a test subscriptioninthashCode()The unique identifier of the subscription item.priceproductThe quantity of the item.voidsetEndDate(org.threeten.bp.LocalDateTime endDate) Date when the subscription to this product will endvoidThe unique identifier of the subscription item.voidpricevoidsetProduct(Product product) productvoidsetQuantity(Integer quantity) The quantity of the item.voidsetStartDate(org.threeten.bp.LocalDateTime startDate) Date the subscription started, or will start.voidsetStatus(SubscriptionItem.StatusEnum status) Status of the subscription item.voidsetTestMode(Boolean testMode) If the subscription is a test subscriptionstartDate(org.threeten.bp.LocalDateTime startDate) Date the subscription started, or will start.status(SubscriptionItem.StatusEnum status) Status of the subscription item.If the subscription is a test subscriptiontoString()
-
Constructor Details
-
SubscriptionItem
public SubscriptionItem()
-
-
Method Details
-
endDate
Date when the subscription to this product will end- Parameters:
endDate- LocalDateTime- Returns:
- SubscriptionItem
-
getEndDate
public org.threeten.bp.LocalDateTime getEndDate()Date when the subscription to this product will end- Returns:
- endDate
-
setEndDate
public void setEndDate(org.threeten.bp.LocalDateTime endDate) Date when the subscription to this product will end- Parameters:
endDate- LocalDateTime
-
id
The unique identifier of the subscription item.- Parameters:
id- UUID- Returns:
- SubscriptionItem
-
getId
-
setId
-
price
price- Parameters:
price- Price- Returns:
- SubscriptionItem
-
getPrice
-
setPrice
-
product
product- Parameters:
product- Product- Returns:
- SubscriptionItem
-
getProduct
-
setProduct
-
quantity
The quantity of the item. For a fixed product, it is 1. For a per-seat product, it is a positive integer. For metered products, it is always null.- Parameters:
quantity- Integer- Returns:
- SubscriptionItem
-
getQuantity
The quantity of the item. For a fixed product, it is 1. For a per-seat product, it is a positive integer. For metered products, it is always null.- Returns:
- quantity
-
setQuantity
The quantity of the item. For a fixed product, it is 1. For a per-seat product, it is a positive integer. For metered products, it is always null.- Parameters:
quantity- Integer
-
startDate
Date the subscription started, or will start. Note: this could be in the future for downgrades or reduced number of seats that haven't taken effect yet.- Parameters:
startDate- LocalDateTime- Returns:
- SubscriptionItem
-
getStartDate
public org.threeten.bp.LocalDateTime getStartDate()Date the subscription started, or will start. Note: this could be in the future for downgrades or reduced number of seats that haven't taken effect yet.- Returns:
- startDate
-
setStartDate
public void setStartDate(org.threeten.bp.LocalDateTime startDate) Date the subscription started, or will start. Note: this could be in the future for downgrades or reduced number of seats that haven't taken effect yet.- Parameters:
startDate- LocalDateTime
-
status
Status of the subscription item. Available statuses are ACTIVE, CANCELED, and PENDING_ACTIVATION.- Parameters:
status- StatusEnum- Returns:
- SubscriptionItem
-
getStatus
Status of the subscription item. Available statuses are ACTIVE, CANCELED, and PENDING_ACTIVATION.- Returns:
- status
-
setStatus
Status of the subscription item. Available statuses are ACTIVE, CANCELED, and PENDING_ACTIVATION.- Parameters:
status- StatusEnum
-
testMode
If the subscription is a test subscription- Parameters:
testMode- Boolean- Returns:
- SubscriptionItem
-
getTestMode
-
setTestMode
If the subscription is a test subscription- Parameters:
testMode- Boolean
-
equals
-
hashCode
-
toString
-