Class: Perka::Model::PunchRewardConfirmation

Inherits:
AbstractRewardConfirmation show all
Defined in:
lib/perka/model/punch_reward_confirmation.rb

Overview

Represents an award of some number of punches on a punchcard.

Constant Summary collapse

PROPERTY_NAMES =
[

  # An instance of a <entityReference payloadName='program'> Program</entityReference> 
  # that the punches should be applied to.
  :program,
  :program_type,

  # The number of punches to be applied to the punchcard.
  :punches_earned,

  # This property is only present when a <entityReference payloadName='punchRewardConfirmation'> 
  # PunchRewardConfirmation</entityReference> is returned by the server to 
  # represent past customer interactions. Normally, a <entityReference payloadName='punchRewardConfirmation'> 
  # PunchRewardConfirmation</entityReference> is a member of a <entityReference 
  # payloadName='rewardGrant'> RewardGrant</entityReference> or <entityReference 
  # payloadName='visitConfirmation'> VisitConfirmation</entityReference> which 
  # will provide a contextual <entityReference payloadName='visit'> Visit</entityReference>.
  :visit
]
TYPE_MAP =
{
  :program => Perka::Model::Program,
  :visit => Perka::Model::Visit,
  :program_type => Perka::Model::ProgramType
}