Package io.voucherify.client.model
Class ProductCollectionsItem
java.lang.Object
io.voucherify.client.model.ProductCollectionsItem
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class ProductCollectionsItem
extends Object
This is an object representing a product collection base.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumThe type of the object represented by JSON.static enumDescribes whether the product collection is dynamic (products come in and leave based on set criteria) or static (manually selected products). -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription_object(ProductCollectionsItem.ObjectEnum _object) addProductsItem(ProductCollectionsItemProductsItem productsItem) createdAt(OffsetDateTime createdAt) booleanstatic ProductCollectionsItemCreate an instance of ProductCollectionsItem given an JSON stringTimestamp representing the date and time when the product collection was created.Defines a set of criteria and boundary conditions for an `AUTO_UPDATE` product collection type.getId()Product collection ID.getName()Unique user-defined product collection name.The type of the object represented by JSON.Defines a set of products for a `STATIC` product collection type.getType()Describes whether the product collection is dynamic (products come in and leave based on set criteria) or static (manually selected products).inthashCode()products(List<ProductCollectionsItemProductsItem> products) voidsetCreatedAt(OffsetDateTime createdAt) voidvoidvoidvoidvoidsetProducts(List<ProductCollectionsItemProductsItem> products) voidtoJson()Convert an instance of ProductCollectionsItem to an JSON stringtoString()
-
Field Details
-
SERIALIZED_NAME_ID
- See Also:
-
SERIALIZED_NAME_NAME
- See Also:
-
SERIALIZED_NAME_TYPE
- See Also:
-
SERIALIZED_NAME_FILTER
- See Also:
-
SERIALIZED_NAME_PRODUCTS
- See Also:
-
SERIALIZED_NAME_CREATED_AT
- See Also:
-
SERIALIZED_NAME_OBJECT
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
ProductCollectionsItem
public ProductCollectionsItem()
-
-
Method Details
-
id
-
getId
Product collection ID.- Returns:
- id
-
setId
-
name
-
getName
Unique user-defined product collection name.- Returns:
- name
-
setName
-
type
-
getType
Describes whether the product collection is dynamic (products come in and leave based on set criteria) or static (manually selected products).- Returns:
- type
-
setType
-
filter
-
getFilter
Defines a set of criteria and boundary conditions for an `AUTO_UPDATE` product collection type.- Returns:
- filter
-
setFilter
-
products
-
addProductsItem
-
getProducts
Defines a set of products for a `STATIC` product collection type.- Returns:
- products
-
setProducts
-
createdAt
-
getCreatedAt
Timestamp representing the date and time when the product collection was created. The value is shown in the ISO 8601 format.- Returns:
- createdAt
-
setCreatedAt
-
_object
-
getObject
The type of the object represented by JSON. This object stores information about the static product collection.- Returns:
- _object
-
setObject
-
equals
-
hashCode
public int hashCode() -
toString
-
fromJson
Create an instance of ProductCollectionsItem given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ProductCollectionsItem
- Throws:
IOException- if the JSON string is invalid with respect to ProductCollectionsItem
-
toJson
Convert an instance of ProductCollectionsItem to an JSON string- Returns:
- JSON string
-