public Loyalty GetLoyalty(string accessToken, int merchantId) { UserLoyaltyQueryRequest request = new UserLoyaltyQueryRequest(accessToken, merchantId); return(_restWrapper.Get <Loyalty>( uri: BuildUri(request.ApiVersion, $"merchants/{request.MerchantId}/loyalty"), accessTokenHeader: FormatAccessTokenString(consumerUserAccessToken: request.AccessToken), actions: null)); }
public IResponse Visit(LocationDetailsQueryRequest request) { return(_restWrapper.Get <LocationDetails>(uri: GetEndpoint(request), accessTokenHeader: GetHeaderToken(request), actions: GetCustomResponseHandlers(request))); }