Class ProductBundle

java.lang.Object
dev.getelements.elements.sdk.model.application.ProductBundle
All Implemented Interfaces:
Serializable

@Deprecated public class ProductBundle extends Object implements Serializable
Deprecated.
Use ProductBundle and the ProductBundleDao / ProductBundleService APIs instead. This embedded model is retained for backward compatibility and migration purposes only.
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 Details

    • ProductBundle

      public ProductBundle()
      Deprecated.
      Creates a new instance.
  • Method Details

    • getProductId

      public String getProductId()
      Deprecated.
      Returns the platform-specific product identifier.
      Returns:
      the product ID
    • setProductId

      public void setProductId(String productId)
      Deprecated.
      Sets the platform-specific product identifier.
      Parameters:
      productId - the product ID
    • getDisplayName

      public String getDisplayName()
      Deprecated.
      Returns the display name of the product bundle.
      Returns:
      the display name
    • setDisplayName

      public void setDisplayName(String displayName)
      Deprecated.
      Sets the display name of the product bundle.
      Parameters:
      displayName - the display name
    • getDescription

      public String getDescription()
      Deprecated.
      Returns the description of the product bundle.
      Returns:
      the description
    • setDescription

      public void setDescription(String description)
      Deprecated.
      Sets the description of the product bundle.
      Parameters:
      description - the description
    • getProductBundleRewards

      public List<ProductBundleReward> getProductBundleRewards()
      Deprecated.
      Returns the list of rewards in this product bundle.
      Returns:
      the product bundle rewards
    • setProductBundleRewards

      public void setProductBundleRewards(List<ProductBundleReward> productBundleRewards)
      Deprecated.
      Sets the list of rewards in this product bundle.
      Parameters:
      productBundleRewards - the product bundle rewards
    • getMetadata

      public Map<String,Object> getMetadata()
      Deprecated.
      Returns the application-specific metadata.
      Returns:
      the metadata
    • setMetadata

      public void setMetadata(Map<String,Object> metadata)
      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

      public ProductBundleReward getProductBundleReward(String itemId)
      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

      public boolean equals(Object o)
      Deprecated.
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Deprecated.
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Deprecated.
      Overrides:
      toString in class Object