Class: Perka::Model::Customer

Inherits:
AbstractUser show all
Defined in:
lib/perka/model/customer.rb

Overview

A Customer is someone who visits a <entityReference payloadName=‘merchantLocation’> MerchantLocation</entityReference> and engages in a retail transaction.

Constant Summary collapse

PROPERTY_NAMES =
[
  :avatar_url,
  :customer_devices,

  # The integrator that created the Customer object.
  :managed_by,
  :rewards,
  :sms_messages,
  :social_service_subscriptions,
  :tier_traversals,

  # You probably want #getLastVisit().
  :visits,
  :waiting_merchant_location,
  :waiting_name_since,
  :specials_messaging_enabled,
  :email
]
TYPE_MAP =
{
  :waiting_merchant_location => Perka::Model::MerchantLocation,
  :managed_by => Perka::Model::IntegratorUser
}