Package com.xero.models.appstore
Class Product
- java.lang.Object
-
- com.xero.models.appstore.Product
-
public class Product extends Object
Product
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classProduct.TypeEnumThe 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
-
Constructor Summary
Constructors Constructor Description Product()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)UUIDgetId()The unique identifier for the productStringgetName()The name of the productProduct.TypeEnumgetType()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 purchaseinthashCode()Productid(UUID id)The unique identifier for the productProductname(String name)The name of the productvoidsetId(UUID id)The unique identifier for the productvoidsetName(String name)The name of the productvoidsetType(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 purchaseStringtoString()Producttype(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
-
-
-
Method Detail
-
id
public Product id(UUID id)
The unique identifier for the product- Parameters:
id- UUID- Returns:
- Product
-
getId
public UUID getId()
The unique identifier for the product- Returns:
- id
-
setId
public void setId(UUID id)
The unique identifier for the product- Parameters:
id- UUID
-
name
public Product name(String name)
The name of the product- Parameters:
name- String- Returns:
- Product
-
getName
public String getName()
The name of the product- Returns:
- name
-
setName
public void setName(String name)
The name of the product- Parameters:
name- String
-
type
public Product 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- Parameters:
type- TypeEnum- Returns:
- Product
-
getType
public Product.TypeEnum 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- Returns:
- type
-
setType
public void setType(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- Parameters:
type- TypeEnum
-
-