public interface SimilarProductMeta
SimilarProductMeta similarProductMeta = SimilarProductMeta.builder()
.build()
| Modifier and Type | Method and Description |
|---|---|
static SimilarProductMetaBuilder |
builder() |
static SimilarProductMetaBuilder |
builder(SimilarProductMeta template) |
@Valid LocalizedString |
getDescription()
Localized product description used for similarity estimation.
|
@Valid LocalizedString |
getName()
Localized product name used for similarity estimation.
|
@Valid Money |
getPrice()
The product price in cents using the currency defined in SimilarProductSearchRequest If multiple prices exist, the median value is taken as a representative amount.
|
Long |
getVariantCount()
Total number of variants associated with the product.
|
static SimilarProductMeta |
of() |
static SimilarProductMeta |
of(SimilarProductMeta template) |
void |
setDescription(LocalizedString description) |
void |
setName(LocalizedString name) |
void |
setPrice(Money price) |
void |
setVariantCount(Long variantCount) |
static com.fasterxml.jackson.core.type.TypeReference<SimilarProductMeta> |
typeReference() |
default <T> T |
withSimilarProductMeta(Function<SimilarProductMeta,T> helper) |
@Valid @Valid LocalizedString getName()
Localized product name used for similarity estimation.
@Valid @Valid LocalizedString getDescription()
Localized product description used for similarity estimation.
@Valid @Valid Money getPrice()
The product price in cents using the currency defined in SimilarProductSearchRequest If multiple prices exist, the median value is taken as a representative amount.
Long getVariantCount()
Total number of variants associated with the product.
void setName(LocalizedString name)
void setDescription(LocalizedString description)
void setVariantCount(Long variantCount)
static SimilarProductMeta of()
static SimilarProductMeta of(SimilarProductMeta template)
static SimilarProductMetaBuilder builder()
static SimilarProductMetaBuilder builder(SimilarProductMeta template)
default <T> T withSimilarProductMeta(Function<SimilarProductMeta,T> helper)
static com.fasterxml.jackson.core.type.TypeReference<SimilarProductMeta> typeReference()