Esempio n. 1
0
        public string GetOrderQueryRequestEndpoint(OrderQueryRequest request)
        {
            string            path    = $"locations/{request.LocationId}/orders";
            LevelUpUriBuilder builder = new LevelUpUriBuilder(_targetEnviornment);

            builder.SetApiVersion(request.ApiVersion).SetPath(path);

            if (request.PageNumber > 1)
            {
                builder.AppendQuery("page", request.PageNumber.ToString());
            }

            return(builder.Build());
        }
        public string Visit(OrderQueryRequest request)
        {
            string            path    = string.Format("locations/{0}/orders", request.LocationId);
            LevelUpUriBuilder builder = new LevelUpUriBuilder(TargetEnviornment);

            builder.SetApiVersion(request.ApiVersion).SetPath(path);

            if (request.PageNumber > 1)
            {
                builder.AppendQuery("page", request.PageNumber.ToString());
            }

            return(builder.Build());
        }