@Immutable @LevelUpApi(contract=PUBLIC) public final class LoyaltyRequestFactory extends AbstractRequestFactory
AbstractRequests for interacting with
Loyalty on the web service.| Constructor and Description |
|---|
LoyaltyRequestFactory(Context context,
AccessTokenRetriever retriever) |
| Modifier and Type | Method and Description |
|---|---|
AbstractRequest |
buildGetLoyaltyForMerchantRequest(long merchantWebServiceId) |
getAccessTokenRetriever, getContextpublic LoyaltyRequestFactory(Context context, AccessTokenRetriever retriever)
context - the Application context.retriever - the implementation of AccessTokenRetriever to use to get the
User's
AccessToken.@LevelUpApi(contract=PUBLIC) @RequiresPermission(value="manage_user_campaigns") @AccessTokenRequired public AbstractRequest buildGetLoyaltyForMerchantRequest(long merchantWebServiceId)
merchantWebServiceId - the web service ID of the merchant to load the
Loyalty for.AbstractRequest to get the Loyalty
for the current user at the merchant.