/** * This code was auto-generated by a Codezu. * * Changes to this file may cause incorrect behavior and will be lost if * the code is regenerated. */ package com.mozu.api.contracts.productadmin; import java.io.Serializable; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import org.joda.time.DateTime; import java.io.IOException; import java.lang.ClassNotFoundException; /** * Describes the source of the facet data. It can be a product field (such as price and category) or a product attribute. All fields are System-supplied and read only. */ @JsonIgnoreProperties(ignoreUnknown = true) public class FacetSource implements Serializable { // Default Serial Version UID private static final long serialVersionUID = 1L; /** * If true, the facet allows for values that consist of one or more ranges, such as 0-100, 100-200, and 200-300. This is only allowed for numeric and date fields. */ protected Boolean allowsRangeQuery; public Boolean getAllowsRangeQuery() { return this.allowsRangeQuery; } public void setAllowsRangeQuery(Boolean allowsRangeQuery) { this.allowsRangeQuery = allowsRangeQuery; } /** * The data type of the source product property, typically of type Bool, DateTime, Number, or String. */ protected String dataType; public String getDataType() { return this.dataType; } public void setDataType(String dataType) { this.dataType = dataType; } /** * Unique identifier of the source property, such as a catalog, discount, order, or email template.For a product field it will be the name of the field.For a category ID, must be a positive integer not greater than 2000000. By default, auto-generates a category ID when categories are created. If you want to specify an ID during creation (which preserves category link relationships when migrating tenant data from one sandbox to another), you must also include the query string in the endpoint. For example, . Then, use the property to specify the desired category ID.For a product attribute it will be the Attribute FQN.For a document, the ID must be specified as a 32 character, case-insensitive, alphanumeric string. You can specify the ID as 32 sequential characters or as groups separated by dashes in the format 8-4-4-4-12. For example, or.For email templates, the ID must be one of the following values: */ protected String id; public String getId() { return this.id; } public void setId(String id) { this.id = id; } /** * The user supplied name that appears in . You can use this field for identification purposes. */ protected String name; public String getName() { return this.name; } public void setName(String name) { this.name = name; } /** * The source type for the facet, either "Attribute" or "Element". Elements are direct properties of the product and include category and price. */ protected String type; public String getType() { return this.type; } public void setType(String type) { this.type = type; } }