Package com.xero.models.appstore
Class SubscriptionItem
- java.lang.Object
-
- com.xero.models.appstore.SubscriptionItem
-
public class SubscriptionItem extends Object
SubscriptionItem
-
-
Constructor Summary
Constructors Constructor Description SubscriptionItem()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SubscriptionItemendDate(org.threeten.bp.OffsetDateTime endDate)Date when the subscription to this product will endbooleanequals(Object o)org.threeten.bp.OffsetDateTimegetEndDate()Date when the subscription to this product will endUUIDgetId()The unique identifier of the subscription item.PricegetPrice()Get priceProductgetProduct()Get productorg.threeten.bp.OffsetDateTimegetStartDate()Date the subscription started, or will start.BooleangetTestMode()If the subscription is a test subscriptioninthashCode()SubscriptionItemid(UUID id)The unique identifier of the subscription item.SubscriptionItemprice(Price price)priceSubscriptionItemproduct(Product product)productvoidsetEndDate(org.threeten.bp.OffsetDateTime endDate)Date when the subscription to this product will endvoidsetId(UUID id)The unique identifier of the subscription item.voidsetPrice(Price price)pricevoidsetProduct(Product product)productvoidsetStartDate(org.threeten.bp.OffsetDateTime startDate)Date the subscription started, or will start.voidsetTestMode(Boolean testMode)If the subscription is a test subscriptionSubscriptionItemstartDate(org.threeten.bp.OffsetDateTime startDate)Date the subscription started, or will start.SubscriptionItemtestMode(Boolean testMode)If the subscription is a test subscriptionStringtoString()
-
-
-
Method Detail
-
endDate
public SubscriptionItem endDate(org.threeten.bp.OffsetDateTime endDate)
Date when the subscription to this product will end- Parameters:
endDate- OffsetDateTime- Returns:
- SubscriptionItem
-
getEndDate
public org.threeten.bp.OffsetDateTime getEndDate()
Date when the subscription to this product will end- Returns:
- endDate
-
setEndDate
public void setEndDate(org.threeten.bp.OffsetDateTime endDate)
Date when the subscription to this product will end- Parameters:
endDate- OffsetDateTime
-
id
public SubscriptionItem id(UUID id)
The unique identifier of the subscription item.- Parameters:
id- UUID- Returns:
- SubscriptionItem
-
getId
public UUID getId()
The unique identifier of the subscription item.- Returns:
- id
-
setId
public void setId(UUID id)
The unique identifier of the subscription item.- Parameters:
id- UUID
-
price
public SubscriptionItem price(Price price)
price- Parameters:
price- Price- Returns:
- SubscriptionItem
-
getPrice
public Price getPrice()
Get price- Returns:
- price
-
setPrice
public void setPrice(Price price)
price- Parameters:
price- Price
-
product
public SubscriptionItem product(Product product)
product- Parameters:
product- Product- Returns:
- SubscriptionItem
-
getProduct
public Product getProduct()
Get product- Returns:
- product
-
setProduct
public void setProduct(Product product)
product- Parameters:
product- Product
-
startDate
public SubscriptionItem startDate(org.threeten.bp.OffsetDateTime 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- OffsetDateTime- Returns:
- SubscriptionItem
-
getStartDate
public org.threeten.bp.OffsetDateTime 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.OffsetDateTime 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- OffsetDateTime
-
testMode
public SubscriptionItem testMode(Boolean testMode)
If the subscription is a test subscription- Parameters:
testMode- Boolean- Returns:
- SubscriptionItem
-
getTestMode
public Boolean getTestMode()
If the subscription is a test subscription- Returns:
- testMode
-
setTestMode
public void setTestMode(Boolean testMode)
If the subscription is a test subscription- Parameters:
testMode- Boolean
-
-