public interface Review extends BaseResource, DomainResource<Review>
Modifier and Type | Method and Description |
---|---|
static ReviewBuilder |
builder() |
static ReviewBuilder |
builder(Review template) |
String |
getAuthorName() |
@NotNull ZonedDateTime |
getCreatedAt() |
@Valid CreatedBy |
getCreatedBy()
Present on resources created after 1/02/2019 except for events not tracked.
|
@Valid CustomFields |
getCustom() |
@Valid CustomerReference |
getCustomer()
The customer who created the review.
|
@NotNull String |
getId()
The unique ID of the review.
|
@NotNull Boolean |
getIncludedInStatistics()
Indicates if this review is taken into account in the ratings statistics of the target.
|
String |
getKey()
User-specific unique identifier for the review.
|
@NotNull ZonedDateTime |
getLastModifiedAt() |
@Valid LastModifiedBy |
getLastModifiedBy()
Present on resources updated after 1/02/2019 except for events not tracked.
|
String |
getLocale() |
Integer |
getRating()
Number between -100 and 100 included.
|
@Valid StateReference |
getState() |
Object |
getTarget()
Identifies the target of the review.
|
String |
getText() |
String |
getTitle() |
String |
getUniquenessValue() |
@NotNull Long |
getVersion()
The current version of the review.
|
static Review |
of() |
static Review |
of(Review template) |
void |
setAuthorName(String authorName) |
void |
setCreatedAt(ZonedDateTime createdAt) |
void |
setCreatedBy(CreatedBy createdBy) |
void |
setCustom(CustomFields custom) |
void |
setCustomer(CustomerReference customer) |
void |
setId(String id) |
void |
setIncludedInStatistics(Boolean includedInStatistics) |
void |
setKey(String key) |
void |
setLastModifiedAt(ZonedDateTime lastModifiedAt) |
void |
setLastModifiedBy(LastModifiedBy lastModifiedBy) |
void |
setLocale(String locale) |
void |
setRating(Integer rating) |
void |
setState(StateReference state) |
void |
setTarget(ChannelReference target) |
void |
setTarget(Object target) |
void |
setTarget(ProductReference target) |
void |
setText(String text) |
void |
setTitle(String title) |
void |
setUniquenessValue(String uniquenessValue) |
void |
setVersion(Long version) |
default <T> T |
withReview(Function<Review,T> helper) |
withBaseResource
get
@NotNull @NotNull String getId()
The unique ID of the review.
getId
in interface BaseResource
getId
in interface DomainResource<Review>
@NotNull @NotNull Long getVersion()
The current version of the review.
getVersion
in interface BaseResource
getVersion
in interface DomainResource<Review>
@NotNull @NotNull ZonedDateTime getCreatedAt()
getCreatedAt
in interface BaseResource
@NotNull @NotNull ZonedDateTime getLastModifiedAt()
getLastModifiedAt
in interface BaseResource
@Valid @Valid LastModifiedBy getLastModifiedBy()
Present on resources updated after 1/02/2019 except for events not tracked.
@Valid @Valid CreatedBy getCreatedBy()
Present on resources created after 1/02/2019 except for events not tracked.
String getKey()
User-specific unique identifier for the review.
String getUniquenessValue()
String getLocale()
String getAuthorName()
String getTitle()
String getText()
Object getTarget()
Identifies the target of the review. Can be a Product or a Channel
@NotNull @NotNull Boolean getIncludedInStatistics()
Indicates if this review is taken into account in the ratings statistics of the target.
A review is per default used in the statistics, unless the review is in a state that does not have the role ReviewIncludedInStatistics
.
If the role of a State is modified after the calculation of this field, the calculation is not updated.
Integer getRating()
Number between -100 and 100 included.
@Valid @Valid StateReference getState()
@Valid @Valid CustomerReference getCustomer()
The customer who created the review.
@Valid @Valid CustomFields getCustom()
void setId(String id)
setId
in interface BaseResource
void setVersion(Long version)
setVersion
in interface BaseResource
void setCreatedAt(ZonedDateTime createdAt)
setCreatedAt
in interface BaseResource
void setLastModifiedAt(ZonedDateTime lastModifiedAt)
setLastModifiedAt
in interface BaseResource
void setLastModifiedBy(LastModifiedBy lastModifiedBy)
void setCreatedBy(CreatedBy createdBy)
void setKey(String key)
void setUniquenessValue(String uniquenessValue)
void setLocale(String locale)
void setAuthorName(String authorName)
void setTitle(String title)
void setText(String text)
void setTarget(ProductReference target)
void setTarget(ChannelReference target)
void setTarget(Object target)
void setIncludedInStatistics(Boolean includedInStatistics)
void setRating(Integer rating)
void setState(StateReference state)
void setCustomer(CustomerReference customer)
void setCustom(CustomFields custom)
static Review of()
static ReviewBuilder builder()
static ReviewBuilder builder(Review template)