public virtual string GetResponseGroup() { var result = CartAggregateResponseGroup.None; if (IncludeFields.Any(x => x.Contains("shipments"))) { result |= CartAggregateResponseGroup.WithShipments; } if (IncludeFields.Any(x => x.Contains("payments"))) { result |= CartAggregateResponseGroup.WithPayments; } if (IncludeFields.Any(x => x.Contains("items"))) { result |= CartAggregateResponseGroup.WithLineItems; } if (IncludeFields.Any(x => x.Contains("dynamicProperties"))) { result |= CartAggregateResponseGroup.WithDynamicProperties; } if (IncludeFields.Any(x => x.Contains("validationErrors"))) { result |= CartAggregateResponseGroup.Validate; } return(result.ToString()); }
public virtual string GetResponseGroup() { var result = ExpProductResponseGroup.None; if (IncludeFields.Any(x => x.Contains("price"))) { result |= ExpProductResponseGroup.LoadPrices; } if (IncludeFields.Any(x => x.Contains("availabilityData"))) { result |= ExpProductResponseGroup.LoadInventories; } if (IncludeFields.Any(x => x.Contains("_facets"))) { result |= ExpProductResponseGroup.LoadFacets; } return(result.ToString()); }
public virtual string GetResponseGroup() { var result = CartAggregateResponseGroup.None; if (IncludeFields.Any(x => x.Contains("shipments"))) { result |= CartAggregateResponseGroup.WithShipments; } if (IncludeFields.Any(x => x.Contains("payments"))) { result |= CartAggregateResponseGroup.WithPayments; } if (IncludeFields.Any(x => x.Contains("items"))) { result |= CartAggregateResponseGroup.WithLineItems; } if (IncludeFields.Any(x => x.Contains("validationErrors"))) { //TODO: Need take into account in the repository result |= CartAggregateResponseGroup.Validate; } return(result.ToString()); }