Class ProductBundle
java.lang.Object
dev.getelements.elements.sdk.model.application.ProductBundle
- All Implemented Interfaces:
Serializable
Deprecated.
Represents the set of items to issue to a user when they purchase a product id, defined at the
ApplicationConfiguration level. This allows multiple items with varying quantities to be issued upon
purchase.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanDeprecated.Deprecated.Returns the description of the product bundle.booleanDeprecated.Returns whether the frontend should display this product bundle to end users.Deprecated.Returns the display name of the product bundle.Deprecated.Returns the application-specific metadata.getProductBundleReward(String itemId) Deprecated.Returns the reward for the given item ID, or null if not found.Deprecated.Returns the list of rewards in this product bundle.Deprecated.Returns the platform-specific product identifier.inthashCode()Deprecated.voidsetDescription(String description) Deprecated.Sets the description of the product bundle.voidsetDisplay(boolean display) Deprecated.Sets whether the frontend should display this product bundle to end users.voidsetDisplayName(String displayName) Deprecated.Sets the display name of the product bundle.voidsetMetadata(Map<String, Object> metadata) Deprecated.Sets the application-specific metadata.voidsetProductBundleRewards(List<ProductBundleReward> productBundleRewards) Deprecated.Sets the list of rewards in this product bundle.voidsetProductId(String productId) Deprecated.Sets the platform-specific product identifier.toString()Deprecated.
-
Constructor Details
-
ProductBundle
public ProductBundle()Deprecated.Creates a new instance.
-
-
Method Details
-
getProductId
Deprecated.Returns the platform-specific product identifier.- Returns:
- the product ID
-
setProductId
Deprecated.Sets the platform-specific product identifier.- Parameters:
productId- the product ID
-
getDisplayName
Deprecated.Returns the display name of the product bundle.- Returns:
- the display name
-
setDisplayName
Deprecated.Sets the display name of the product bundle.- Parameters:
displayName- the display name
-
getDescription
Deprecated.Returns the description of the product bundle.- Returns:
- the description
-
setDescription
Deprecated.Sets the description of the product bundle.- Parameters:
description- the description
-
getProductBundleRewards
Deprecated.Returns the list of rewards in this product bundle.- Returns:
- the product bundle rewards
-
setProductBundleRewards
Deprecated.Sets the list of rewards in this product bundle.- Parameters:
productBundleRewards- the product bundle rewards
-
getMetadata
Deprecated.Returns the application-specific metadata.- Returns:
- the metadata
-
setMetadata
Deprecated.Sets the application-specific metadata.- Parameters:
metadata- the metadata
-
getDisplay
public boolean getDisplay()Deprecated.Returns whether the frontend should display this product bundle to end users.- Returns:
- true if the bundle should be displayed
-
setDisplay
public void setDisplay(boolean display) Deprecated.Sets whether the frontend should display this product bundle to end users.- Parameters:
display- true if the bundle should be displayed
-
getProductBundleReward
Deprecated.Returns the reward for the given item ID, or null if not found.- Parameters:
itemId- the item ID to look up- Returns:
- the reward, or null
-
equals
Deprecated. -
hashCode
public int hashCode()Deprecated. -
toString
Deprecated.
-
ProductBundleand theProductBundleDao/ProductBundleServiceAPIs instead. This embedded model is retained for backward compatibility and migration purposes only.