Package com.xero.models.appstore
Class Product
java.lang.Object
com.xero.models.appstore.Product
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe pricing model of the product: * FIXED: Customers are charged a fixed amount for each billing period * PER_SEAT: Customers are charged based on the number of units they purchase * METERED: Customers are charged per use of this product -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetId()The unique identifier for the productgetName()The name of the productThe unit of the per seat product.getType()The pricing model of the product: * FIXED: Customers are charged a fixed amount for each billing period * PER_SEAT: Customers are charged based on the number of units they purchase * METERED: Customers are charged per use of this productThe unit of the usage product.inthashCode()The unique identifier for the productThe name of the productThe unit of the per seat product.voidThe unique identifier for the productvoidThe name of the productvoidsetSeatUnit(String seatUnit) The unit of the per seat product.voidsetType(Product.TypeEnum type) The pricing model of the product: * FIXED: Customers are charged a fixed amount for each billing period * PER_SEAT: Customers are charged based on the number of units they purchase * METERED: Customers are charged per use of this productvoidsetUsageUnit(String usageUnit) The unit of the usage product.toString()type(Product.TypeEnum type) The pricing model of the product: * FIXED: Customers are charged a fixed amount for each billing period * PER_SEAT: Customers are charged based on the number of units they purchase * METERED: Customers are charged per use of this productThe unit of the usage product.
-
Constructor Details
-
Product
public Product()
-
-
Method Details
-
id
-
getId
-
setId
-
name
-
getName
-
setName
-
seatUnit
-
getSeatUnit
The unit of the per seat product. e.g. \"user\", \"organisation\", \"SMS\", etc- Returns:
- seatUnit
-
setSeatUnit
The unit of the per seat product. e.g. \"user\", \"organisation\", \"SMS\", etc- Parameters:
seatUnit- String
-
type
The pricing model of the product: * FIXED: Customers are charged a fixed amount for each billing period * PER_SEAT: Customers are charged based on the number of units they purchase * METERED: Customers are charged per use of this product- Parameters:
type- TypeEnum- Returns:
- Product
-
getType
The pricing model of the product: * FIXED: Customers are charged a fixed amount for each billing period * PER_SEAT: Customers are charged based on the number of units they purchase * METERED: Customers are charged per use of this product- Returns:
- type
-
setType
The pricing model of the product: * FIXED: Customers are charged a fixed amount for each billing period * PER_SEAT: Customers are charged based on the number of units they purchase * METERED: Customers are charged per use of this product- Parameters:
type- TypeEnum
-
usageUnit
-
getUsageUnit
The unit of the usage product. e.g. \"user\", \"minutes\", \"SMS\", etc- Returns:
- usageUnit
-
setUsageUnit
The unit of the usage product. e.g. \"user\", \"minutes\", \"SMS\", etc- Parameters:
usageUnit- String
-
equals
-
hashCode
-
toString
-