@Immutable @LevelUpApi(contract=PUBLIC) public final class LoyaltyRequestFactory extends AbstractRequestFactory
AbstractRequest
s 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, getContext
public 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.