Package io.voucherify.client.model
Class ProductCollectionsGetResponseBody
java.lang.Object
io.voucherify.client.model.ProductCollectionsGetResponseBody
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class ProductCollectionsGetResponseBody
extends Object
Response body schema for **GET** `v1/product-collections/{productCollectionId}`.
-
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 TypeMethodDescriptionaddProductsItem(ProductCollectionsGetResponseBodyProductsItem productsItem) createdAt(OffsetDateTime createdAt) booleanCreate an instance of ProductCollectionsGetResponseBody 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()voidsetCreatedAt(OffsetDateTime createdAt) voidvoidvoidvoidvoidvoidtoJson()Convert an instance of ProductCollectionsGetResponseBody 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
-
ProductCollectionsGetResponseBody
public ProductCollectionsGetResponseBody()
-
-
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
public ProductCollectionsGetResponseBody products(List<ProductCollectionsGetResponseBodyProductsItem> products) -
addProductsItem
public ProductCollectionsGetResponseBody addProductsItem(ProductCollectionsGetResponseBodyProductsItem productsItem) -
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
public ProductCollectionsGetResponseBody _object(ProductCollectionsGetResponseBody.ObjectEnum _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 ProductCollectionsGetResponseBody given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ProductCollectionsGetResponseBody
- Throws:
IOException- if the JSON string is invalid with respect to ProductCollectionsGetResponseBody
-
toJson
Convert an instance of ProductCollectionsGetResponseBody to an JSON string- Returns:
- JSON string
-