json icon

Learning Book Published

v1.0.0events

A learning book was published and is on sale. cna-one's pricing consumer opens a pending price for it in every current and future default price group.

1{
2  "$schema": "https://json-schema.org/draft/2020-12/schema",
3  "title": "LearningBookPublished payload",
4  "type": "object",
5  "additionalProperties": false,
6  "properties": {
7    "id": {
8      "type": "string",
9      "description": "Learning book id (UUID). Kafka message key."
10    },
11    "productId": {
12      "type": "string",
13      "description": "Product the edition belongs to (product.products, type LEARNING_BOOK)."
14    },
15    "publisherId": {
16      "type": "string",
17      "description": "Publisher id (product.publishers)."
18    },
19    "edition": { "type": "integer", "description": "Edition number." },
20    "protheusId": {
21      "type": "string",
22      "description": "Id in the Protheus ERP (4 characters)."
23    },
24    "isbn": {
25      "type": ["string", "null"],
26      "description": "ISBN (13 characters), or null."
27    },
28    "url": {
29      "type": ["string", "null"],
30      "description": "URL of the digital book, or null."
31    },
32    "imageUrl": {
33      "type": ["string", "null"],
34      "description": "Cover image URL, or null."
35    },
36    "isDigitalContentAvailable": {
37      "type": "boolean",
38      "description": "Whether digital content is available."
39    },
40    "status": {
41      "type": "string",
42      "enum": ["DRAFT", "PUBLISHED", "DISCONTINUED", "UNDER_REVIEW"],
43      "description": "Publication status (cna-one LearningBookStatus). Matches the event: PUBLISHED, DRAFT or DISCONTINUED; UNDER_REVIEW never reaches the topic."
44    }
45  },
46  "required": [
47    "id",
48    "productId",
49    "publisherId",
50    "edition",
51    "protheusId",
52    "isDigitalContentAvailable",
53    "status"
54  ]
55}
56

Details

Format
JSON Schema
Resource
events
Filename
schema.json

Versions