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