CreatedReview
Type: schema
TypeScript Definition
typescript
CreatedReview: {{
/** @description ID of the product this review belongs to. */
product_id: $Read<string>;
/**
* Format: double
* @description The rating of the product review. Must be in rang 1-5 (multiple of 0.5)
*/
rating: $Read<number>;
/** @description The text for the product review. */
review_text: $Read<string>;
/** @description The name of the reviewer. */
name: $Read<string | null>;
/** @enum {string} */
status: "pending" | "approved" | "rejected" | "archived";
/** @default false */
is_featured: boolean;
tags: string[];
/**
* Format: date-time
* @description The ISO 8601 date-time for when review was first submitted or last modified by the original submitter.
*/
review_date: $Read<string>;
/** @description Product review images ordered by display priority. */
images: components["schemas"]["ReviewImage"][];
videos: components["schemas"]["ReviewVideo"][];
};
/** CreateInboundBankAccount */
}Component References
| Reference | Resolves To |
|---|---|
components["schemas"]["ReviewImage"] | ReviewImage |
components["schemas"]["ReviewVideo"] | ReviewVideo |
OpenAPI Schema
json
{
"title": "CreatedReview",
"type": "object",
"externalDocs": {
"url": "https://llm-docs.commercengine.io/storefront/schemas/CreatedReview",
"description": "API reference for the CreatedReview schema"
},
"required": [
"product_id",
"rating",
"review_text",
"name",
"status",
"is_featured",
"tags",
"review_date",
"images",
"videos"
],
"properties": {
"product_id": {
"description": "ID of the product this review belongs to.",
"type": "string",
"readOnly": true
},
"rating": {
"description": "The rating of the product review. Must be in rang 1-5 (multiple of 0.5)",
"type": "number",
"format": "double",
"maximum": 5,
"minimum": 1,
"multipleOf": 0.5,
"readOnly": true
},
"review_text": {
"description": "The text for the product review.",
"type": "string",
"readOnly": true
},
"name": {
"description": "The name of the reviewer.",
"type": [
"string",
"null"
],
"readOnly": true
},
"status": {
"type": "string",
"enum": [
"pending",
"approved",
"rejected",
"archived"
]
},
"is_featured": {
"type": "boolean",
"default": false
},
"tags": {
"type": "array",
"items": {
"type": "string"
}
},
"review_date": {
"description": "The ISO 8601 date-time for when review was first submitted or last modified by the original submitter.",
"type": "string",
"format": "date-time",
"readOnly": true
},
"images": {
"description": "Product review images ordered by display priority.",
"type": "array",
"items": {
"$ref": "#/components/schemas/ReviewImage"
}
},
"videos": {
"type": "array",
"items": {
"$ref": "#/components/schemas/ReviewVideo"
}
}
},
"examples": []
}Auto-generated from OpenAPI spec and TypeScript definitions