Class: Perka::Model::PointsCatalogItem

Inherits:
BaseEntityGlobal
  • Object
show all
Defined in:
lib/perka/model/points_catalog_item.rb

Overview

Defines a good or service offered by a merchant using a points-based loyalty program.

Constant Summary collapse

PROPERTY_NAMES =
[

  # The merchant that owns the item.
  :merchant,

  # A longer text description of the item, including any terms and conditions.
  :terms,

  # The time at which the catalog item will no longer be available for redemption.
  :expires_at,

  # The number of points required to redeem the item.
  :points_required,

  # A short label for describing the item.
  :label,

  # An optional icon name used when rendering the catalog item.
  :icon
]
TYPE_MAP =
{
  :merchant => Perka::Model::Merchant
}