Package com.xero.models.appstore
Class Subscription
java.lang.Object
com.xero.models.appstore.Subscription
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddPlansItem(Plan plansItem) List of plans for the subscription.currentPeriodEnd(org.threeten.bp.LocalDateTime currentPeriodEnd) End of the current period that the subscription has been invoiced for.endDate(org.threeten.bp.LocalDateTime endDate) If the subscription has been canceled, this is the date when the subscription ends.booleanorg.threeten.bp.LocalDateTimeEnd of the current period that the subscription has been invoiced for.org.threeten.bp.LocalDateTimeIf the subscription has been canceled, this is the date when the subscription ends.getId()The unique identifier of the subscriptionThe Xero generated unique identifier for the organisationgetPlans()List of plans for the subscription.org.threeten.bp.LocalDateTimeDate when the subscription was first created.Status of the subscription.Boolean used to indicate if the subscription is in test modeinthashCode()The unique identifier of the subscriptionorganisationId(UUID organisationId) The Xero generated unique identifier for the organisationList of plans for the subscription.voidsetCurrentPeriodEnd(org.threeten.bp.LocalDateTime currentPeriodEnd) End of the current period that the subscription has been invoiced for.voidsetEndDate(org.threeten.bp.LocalDateTime endDate) If the subscription has been canceled, this is the date when the subscription ends.voidThe unique identifier of the subscriptionvoidsetOrganisationId(UUID organisationId) The Xero generated unique identifier for the organisationvoidList of plans for the subscription.voidsetStartDate(org.threeten.bp.LocalDateTime startDate) Date when the subscription was first created.voidsetStatus(Subscription.StatusEnum status) Status of the subscription.voidsetTestMode(Boolean testMode) Boolean used to indicate if the subscription is in test modestartDate(org.threeten.bp.LocalDateTime startDate) Date when the subscription was first created.status(Subscription.StatusEnum status) Status of the subscription.Boolean used to indicate if the subscription is in test modetoString()
-
Constructor Details
-
Subscription
public Subscription()
-
-
Method Details
-
currentPeriodEnd
End of the current period that the subscription has been invoiced for.- Parameters:
currentPeriodEnd- LocalDateTime- Returns:
- Subscription
-
getCurrentPeriodEnd
public org.threeten.bp.LocalDateTime getCurrentPeriodEnd()End of the current period that the subscription has been invoiced for.- Returns:
- currentPeriodEnd
-
setCurrentPeriodEnd
public void setCurrentPeriodEnd(org.threeten.bp.LocalDateTime currentPeriodEnd) End of the current period that the subscription has been invoiced for.- Parameters:
currentPeriodEnd- LocalDateTime
-
endDate
If the subscription has been canceled, this is the date when the subscription ends. If null, the subscription is active and has not been cancelled- Parameters:
endDate- LocalDateTime- Returns:
- Subscription
-
getEndDate
public org.threeten.bp.LocalDateTime getEndDate()If the subscription has been canceled, this is the date when the subscription ends. If null, the subscription is active and has not been cancelled- Returns:
- endDate
-
setEndDate
public void setEndDate(org.threeten.bp.LocalDateTime endDate) If the subscription has been canceled, this is the date when the subscription ends. If null, the subscription is active and has not been cancelled- Parameters:
endDate- LocalDateTime
-
id
The unique identifier of the subscription- Parameters:
id- UUID- Returns:
- Subscription
-
getId
-
setId
-
organisationId
The Xero generated unique identifier for the organisation- Parameters:
organisationId- UUID- Returns:
- Subscription
-
getOrganisationId
The Xero generated unique identifier for the organisation- Returns:
- organisationId
-
setOrganisationId
The Xero generated unique identifier for the organisation- Parameters:
organisationId- UUID
-
plans
List of plans for the subscription.- Parameters:
plans- List<Plan>- Returns:
- Subscription
-
addPlansItem
List of plans for the subscription.- Parameters:
plansItem- Plan- Returns:
- Subscription
-
getPlans
-
setPlans
-
startDate
Date when the subscription was first created.- Parameters:
startDate- LocalDateTime- Returns:
- Subscription
-
getStartDate
public org.threeten.bp.LocalDateTime getStartDate()Date when the subscription was first created.- Returns:
- startDate
-
setStartDate
public void setStartDate(org.threeten.bp.LocalDateTime startDate) Date when the subscription was first created.- Parameters:
startDate- LocalDateTime
-
status
Status of the subscription. Available statuses are ACTIVE, CANCELED, and PAST_DUE.- Parameters:
status- StatusEnum- Returns:
- Subscription
-
getStatus
Status of the subscription. Available statuses are ACTIVE, CANCELED, and PAST_DUE.- Returns:
- status
-
setStatus
Status of the subscription. Available statuses are ACTIVE, CANCELED, and PAST_DUE.- Parameters:
status- StatusEnum
-
testMode
Boolean used to indicate if the subscription is in test mode- Parameters:
testMode- Boolean- Returns:
- Subscription
-
getTestMode
Boolean used to indicate if the subscription is in test mode- Returns:
- testMode
-
setTestMode
Boolean used to indicate if the subscription is in test mode- Parameters:
testMode- Boolean
-
equals
-
hashCode
-
toString
-