Class: Perka::Model::Reward

Inherits:
BaseEntityGlobal show all
Defined in:
lib/perka/model/reward.rb

Overview

A punchcard that a customer has filled or is in the process of filling. These objects represent an aggregated view of the effects of applying <entityReference payloadName=‘punchRewardConfirmation’> PunchRewardConfirmation</entityReference>. A Reward may be redeemed once it has been activated.

Constant Summary collapse

PROPERTY_NAMES =
[
  :customer,
  :merchant,
  :program,
  :punches_earned,
  :reward_advancements,
  :activated_at,
  :redeemed_at,
  :transferred_at,
  :type
]
TYPE_MAP =
{
  :merchant => Perka::Model::Merchant,
  :program => Perka::Model::Program,
  :customer => Perka::Model::Customer
}