Package io.voucherify.client.model
Class ProductCollectionsProductsListResponseBodyDataItem
java.lang.Object
io.voucherify.client.model.ProductCollectionsProductsListResponseBodyDataItem
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class ProductCollectionsProductsListResponseBodyDataItem
extends Object
ProductCollectionsProductsListResponseBodyDataItem
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumGets or Sets _object -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAttributesItem(String attributesItem) attributes(List<String> attributes) booleanCreate an instance of ProductCollectionsProductsListResponseBodyDataItem given an JSON stringA list of product attributes whose values you can customize for given SKUs: `[\"color\",\"size\",\"ranking\"]`.Get createdAtSKU price currency.getId()Get idGet imageUrlThe metadata object stores all custom attributes assigned to the product.getName()Unique user-defined product name.Get _objectgetPrice()Unit price.Get productThe parent product's unique ID.getSku()Unique user-defined SKU name.Get sourceIdGet updatedAtinthashCode()product(ProductWithoutSkus product) voidsetAttributes(List<String> attributes) voidsetCreatedAt(String createdAt) voidsetCurrency(String currency) voidvoidsetImageUrl(String imageUrl) voidsetMetadata(Object metadata) voidvoidvoidvoidsetProduct(ProductWithoutSkus product) voidsetProductId(String productId) voidvoidsetSourceId(String sourceId) voidsetUpdatedAt(String updatedAt) toJson()Convert an instance of ProductCollectionsProductsListResponseBodyDataItem to an JSON stringtoString()
-
Field Details
-
SERIALIZED_NAME_ID
- See Also:
-
SERIALIZED_NAME_SOURCE_ID
- See Also:
-
SERIALIZED_NAME_NAME
- See Also:
-
SERIALIZED_NAME_PRICE
- See Also:
-
SERIALIZED_NAME_ATTRIBUTES
- See Also:
-
SERIALIZED_NAME_METADATA
- See Also:
-
SERIALIZED_NAME_IMAGE_URL
- See Also:
-
SERIALIZED_NAME_CREATED_AT
- See Also:
-
SERIALIZED_NAME_UPDATED_AT
- See Also:
-
SERIALIZED_NAME_OBJECT
- See Also:
-
SERIALIZED_NAME_PRODUCT_ID
- See Also:
-
SERIALIZED_NAME_SKU
- See Also:
-
SERIALIZED_NAME_CURRENCY
- See Also:
-
SERIALIZED_NAME_PRODUCT
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
ProductCollectionsProductsListResponseBodyDataItem
public ProductCollectionsProductsListResponseBodyDataItem()
-
-
Method Details
-
id
-
getId
Get id- Returns:
- id
-
setId
-
sourceId
-
getSourceId
Get sourceId- Returns:
- sourceId
-
setSourceId
-
name
-
getName
Unique user-defined product name.- Returns:
- name
-
setName
-
price
-
getPrice
Unit price. It is represented by a value multiplied by 100 to accurately reflect 2 decimal places, such as `$100.00` being expressed as `10000`.- Returns:
- price
-
setPrice
-
attributes
-
addAttributesItem
-
getAttributes
A list of product attributes whose values you can customize for given SKUs: `[\"color\",\"size\",\"ranking\"]`. Each child SKU can have a unique value for a given attribute.- Returns:
- attributes
-
setAttributes
-
metadata
-
getMetadata
The metadata object stores all custom attributes assigned to the product. A set of key/value pairs that you can attach to a product object. It can be useful for storing additional information about the product in a structured format. It can be used to create product collections. and The metadata object stores all custom attributes assigned to the SKU. A set of key/value pairs that you can attach to a SKU object. It can be useful for storing additional information about the SKU in a structured format. It can be used to create product collections.- Returns:
- metadata
-
setMetadata
-
imageUrl
-
getImageUrl
Get imageUrl- Returns:
- imageUrl
-
setImageUrl
-
createdAt
-
getCreatedAt
Get createdAt- Returns:
- createdAt
-
setCreatedAt
-
updatedAt
-
getUpdatedAt
Get updatedAt- Returns:
- updatedAt
-
setUpdatedAt
-
_object
-
getObject
Get _object- Returns:
- _object
-
setObject
-
productId
-
getProductId
The parent product's unique ID.- Returns:
- productId
-
setProductId
-
sku
-
getSku
Unique user-defined SKU name.- Returns:
- sku
-
setSku
-
currency
-
getCurrency
SKU price currency.- Returns:
- currency
-
setCurrency
-
product
-
getProduct
Get product- Returns:
- product
-
setProduct
-
equals
-
hashCode
public int hashCode() -
toString
-
fromJson
public static ProductCollectionsProductsListResponseBodyDataItem fromJson(String jsonString) throws IOException Create an instance of ProductCollectionsProductsListResponseBodyDataItem given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ProductCollectionsProductsListResponseBodyDataItem
- Throws:
IOException- if the JSON string is invalid with respect to ProductCollectionsProductsListResponseBodyDataItem
-
toJson
Convert an instance of ProductCollectionsProductsListResponseBodyDataItem to an JSON string- Returns:
- JSON string
-