SourceVersion
Type: schema
Description
The source service and its durable revision for this inventory item. Compare revisions only within that service and item; timestamps describe when that revision was recorded.
TypeScript Definition
typescript
SourceVersion: {{
/** @description The part of Commerce Engine that recorded this stock state. */
source_service: string;
/** @description Increases each time this item's stock changes. A higher revision is newer. */
source_revision: number;
/**
* Format: date-time
* @description When this revision was recorded.
*/
source_timestamp: string;
};
/**
* StockActivity
* @description Something done to an item's stock in the change an `inventory.updated` reports.
*/
}OpenAPI Schema
json
{
"title": "SourceVersion",
"description": "The source service and its durable revision for this inventory item. Compare revisions only within that service and item; timestamps describe when that revision was recorded.",
"type": "object",
"externalDocs": {
"url": "https://llm-docs.commercengine.io/storefront/schemas/SourceVersion",
"description": "API reference for the SourceVersion schema"
},
"required": [
"source_service",
"source_revision",
"source_timestamp"
],
"properties": {
"source_service": {
"description": "The part of Commerce Engine that recorded this stock state.",
"type": "string"
},
"source_revision": {
"description": "Increases each time this item's stock changes. A higher revision is newer.",
"type": "integer",
"minimum": 0
},
"source_timestamp": {
"description": "When this revision was recorded.",
"type": "string",
"format": "date-time"
}
}
}Auto-generated from OpenAPI spec and TypeScript definitions