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 imageUrlGet metadatagetName()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
-
setId
-
sourceId
-
getSourceId
-
setSourceId
-
name
-
getName
-
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
-
setAttributes
-
metadata
-
getMetadata
-
setMetadata
-
imageUrl
-
getImageUrl
-
setImageUrl
-
createdAt
-
getCreatedAt
-
setCreatedAt
-
updatedAt
-
getUpdatedAt
-
setUpdatedAt
-
_object
-
getObject
Get _object- Returns:
- _object
-
setObject
-
productId
-
getProductId
-
setProductId
-
sku
-
getSku
-
setSku
-
currency
-
getCurrency
-
setCurrency
-
product
-
getProduct
-
setProduct
-
equals
-
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
-