Class: Perka::Model::Visit
- Inherits:
-
BaseEntityGlobal
- Object
- Flatpack::Core::BaseHasUuid
- BaseEntityGlobal
- Perka::Model::Visit
- Defined in:
- lib/perka/model/visit.rb
Overview
Represents a check-in at a <entityReference payloadName=‘merchantLocation’> MerchantLocation</entityReference> by a <entityReference payloadName=‘customer’> Customer</entityReference>.
Constant Summary collapse
- PROPERTY_NAMES =
[ :customer, # Where the Visit occurred. :merchant_location, # Indicates that the Visit was created via the SMS endpoint and not from # an app. :sms, # The latest <entityReference payloadName='pointsActivity'> PointsActivity</entityReference> # for the Visit's <entityReference payloadName='customer'> Customer</entityReference> # at the <entityReference payloadName='merchantLocation'> MerchantLocation</entityReference>. # This may be null if the customer has no previous points activity at the # merchant. :current_points_activity, # The punches earned during the Visit, broken out by <entityReference payloadName='reward'> # Reward</entityReference>. :reward_advancements, # The time at which the visit was confirmed by the clerk. :validated_at, # The <entityReference payloadName='coupon'> Coupons</entityReference> that # were redeemed during the visit. :coupon_redemptions, # Any feedback left by the Customer after the Visit was validated. :feedback_item ]
- TYPE_MAP =
{ :feedback_item => Perka::Model::FeedbackItem, :current_points_activity => Perka::Model::PointsActivity, :merchant_location => Perka::Model::MerchantLocation, :customer => Perka::Model::Customer }