LULoyalty Class Reference
| Inherits from | LUAPIModel : NSObject |
| Declared in | LULoyalty.h LULoyalty.m |
Overview
LULoyalty represents a user’s loyalty information at a specific merchant. At most merchants,
users will build loyalty as they make purchases at that merchant. Periodically, they will be
rewarded with credit after spending a merchant-defined amount of money. For example, a merchant may
choose to provide the user with $10 in credit for every $100 they spend. This is ongoing, so after
spending $100 and receiving $10 in credit, the user must spend another $100 before they receive
another $10 in credit.
In addition, users may receive credit at a merchant through other means, such as campaigns or
global credit. LULoyalty includes this information as well.
Tasks
-
merchantIDproperty -
merchantLoyaltyEnabledproperty -
ordersCountproperty -
potentialCreditproperty -
progressPercentproperty -
savingsproperty -
shouldSpendproperty -
spendRemainingproperty -
totalVolumeproperty -
willEarnproperty
Properties
merchantID
The ID of the merchant this LULoyalty is for.
@property (nonatomic, copy, readonly) NSNumber *merchantIDDiscussion
The ID of the merchant this LULoyalty is for.
Declared In
LULoyalty.hmerchantLoyaltyEnabled
A small percent of LevelUp merchants do not provide loyalty rewards. This property specifies if the merchant has loyalty enabled.
@property (nonatomic, assign, readonly) BOOL merchantLoyaltyEnabledDiscussion
A small percent of LevelUp merchants do not provide loyalty rewards. This property specifies if the merchant has loyalty enabled.
Declared In
LULoyalty.hordersCount
The number of orders the user has made at this merchant.
@property (nonatomic, copy, readonly) NSNumber *ordersCountDiscussion
The number of orders the user has made at this merchant.
Declared In
LULoyalty.hpotentialCredit
The total amount of credit available to the user at this merchant. This includes merchant-specific credit, global credit and campaign credit.
@property (nonatomic, strong, readonly) LUMonetaryValue *potentialCreditDiscussion
The total amount of credit available to the user at this merchant. This includes merchant-specific credit, global credit and campaign credit.
Declared In
LULoyalty.hprogressPercent
The user’s progress towards receiving more loyalty credit, as a number between 0.0 and 1.0. For example, if a merchant provides credit for every $50 spent, and the user has spent $10, this number would be 0.2.
@property (nonatomic, assign, readonly) float progressPercentDiscussion
The user’s progress towards receiving more loyalty credit, as a number between 0.0 and 1.0. For example, if a merchant provides credit for every $50 spent, and the user has spent $10, this number would be 0.2.
Declared In
LULoyalty.hsavings
The total amount of money that this user has saved at this merchant; that is, the total amount of credit that has been applied to orders at this merchant over all time.
@property (nonatomic, strong, readonly) LUMonetaryValue *savingsDiscussion
The total amount of money that this user has saved at this merchant; that is, the total amount of credit that has been applied to orders at this merchant over all time.
Declared In
LULoyalty.hshouldSpend
The amount of money a user spends at this merchant before receiving loyalty credit. For example if a merchant provides $10 of credit for every $100 spent, this will return $100.
@property (nonatomic, strong, readonly) LUMonetaryValue *shouldSpendDiscussion
The amount of money a user spends at this merchant before receiving loyalty credit. For example if a merchant provides $10 of credit for every $100 spent, this will return $100.
Declared In
LULoyalty.hspendRemaining
The amount of money remaining for the user before they will receive loyalty credit. For example if a merchant provides $10 of credit for every $100 spent, and the user has spent $25 since the last time they received loyalty, this would return $75.
@property (nonatomic, strong, readonly) LUMonetaryValue *spendRemainingDiscussion
The amount of money remaining for the user before they will receive loyalty credit. For example if a merchant provides $10 of credit for every $100 spent, and the user has spent $25 since the last time they received loyalty, this would return $75.
Declared In
LULoyalty.htotalVolume
The total amount money the user has spent at this merchant over all time.
@property (nonatomic, strong, readonly) LUMonetaryValue *totalVolumeDiscussion
The total amount money the user has spent at this merchant over all time.
Declared In
LULoyalty.hwillEarn
The amount of loyalty credit a user receives at this merchant. For example if a merchant provides $10 of credit for every $100 spent, this will return $10.
@property (nonatomic, strong, readonly) LUMonetaryValue *willEarnDiscussion
The amount of loyalty credit a user receives at this merchant. For example if a merchant provides $10 of credit for every $100 spent, this will return $10.
Declared In
LULoyalty.h