Package com.xero.models.appstore
Class Plan
java.lang.Object
com.xero.models.appstore.Plan
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddSubscriptionItemsItem(SubscriptionItem subscriptionItemsItem) List of the subscription items belonging to the plan.booleangetId()The unique identifier of the plangetName()The name of the plan.Status of the plan.List of the subscription items belonging to the plan.inthashCode()The unique identifier of the planThe name of the plan.voidThe unique identifier of the planvoidThe name of the plan.voidsetStatus(Plan.StatusEnum status) Status of the plan.voidsetSubscriptionItems(List<SubscriptionItem> subscriptionItems) List of the subscription items belonging to the plan.status(Plan.StatusEnum status) Status of the plan.subscriptionItems(List<SubscriptionItem> subscriptionItems) List of the subscription items belonging to the plan.toString()
-
Constructor Details
-
Plan
public Plan()
-
-
Method Details
-
id
-
getId
-
setId
-
name
-
getName
The name of the plan. It is used in the invoice line item description.- Returns:
- name
-
setName
The name of the plan. It is used in the invoice line item description.- Parameters:
name- String
-
status
Status of the plan. Available statuses are ACTIVE, CANCELED, and PENDING_ACTIVATION.- Parameters:
status- StatusEnum- Returns:
- Plan
-
getStatus
Status of the plan. Available statuses are ACTIVE, CANCELED, and PENDING_ACTIVATION.- Returns:
- status
-
setStatus
Status of the plan. Available statuses are ACTIVE, CANCELED, and PENDING_ACTIVATION.- Parameters:
status- StatusEnum
-
subscriptionItems
List of the subscription items belonging to the plan. It does not include cancelled subscription items.- Parameters:
subscriptionItems- List<SubscriptionItem>- Returns:
- Plan
-
addSubscriptionItemsItem
List of the subscription items belonging to the plan. It does not include cancelled subscription items.- Parameters:
subscriptionItemsItem- SubscriptionItem- Returns:
- Plan
-
getSubscriptionItems
List of the subscription items belonging to the plan. It does not include cancelled subscription items.- Returns:
- subscriptionItems
-
setSubscriptionItems
List of the subscription items belonging to the plan. It does not include cancelled subscription items.- Parameters:
subscriptionItems- List<SubscriptionItem>
-
equals
-
hashCode
-
toString
-