kodexa 7.4.412417009064__py3-none-any.whl → 7.4.412519057986__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3,7 +3,7 @@ from typing import Optional, List
3
3
  from pydantic import BaseModel, ConfigDict, Field
4
4
  from kodexa.model.base import StandardDateTime
5
5
  from kodexa.platform.client import EntityEndpoint, PageEndpoint, EntitiesEndpoint
6
-
6
+ from .product_group import ProductGroup
7
7
 
8
8
  class Product(BaseModel):
9
9
  """
@@ -28,6 +28,7 @@ class Product(BaseModel):
28
28
  name: str
29
29
  description: Optional[str] = None
30
30
  overview_markdown: Optional[str] = Field(None, alias="overviewMarkdown")
31
+ product_group: ProductGroup
31
32
 
32
33
 
33
34
  class ProductEndpoint(Product, EntityEndpoint):
@@ -0,0 +1,126 @@
1
+ from typing import Optional, List
2
+
3
+ from pydantic import BaseModel, ConfigDict, Field
4
+ from kodexa.model.base import StandardDateTime
5
+ from kodexa.platform.client import EntityEndpoint, PageEndpoint, EntitiesEndpoint
6
+
7
+
8
+ class ProductGroup(BaseModel):
9
+ """
10
+
11
+ """
12
+ model_config = ConfigDict(
13
+ populate_by_name=True,
14
+ use_enum_values=True,
15
+ arbitrary_types_allowed=True,
16
+ protected_namespaces=("model_config",),
17
+ )
18
+ """
19
+ A product group
20
+ """
21
+
22
+
23
+ id: Optional[str] = None
24
+ uuid: Optional[str] = None
25
+ change_sequence: Optional[int] = Field(None, alias="changeSequence")
26
+ created_on: Optional[StandardDateTime] = Field(None, alias="createdOn")
27
+ updated_on: Optional[StandardDateTime] = Field(None, alias="updatedOn")
28
+ name: str
29
+ description: Optional[str] = None
30
+ overview_markdown: Optional[str] = Field(None, alias="overviewMarkdown")
31
+
32
+
33
+ class ProductGroupEndpoint(ProductGroup, EntityEndpoint):
34
+ """Handles the endpoint for a product group
35
+
36
+ This class is a combination of DataException and EntityEndpoint. It is used
37
+ to manage the endpoint for data exceptions.
38
+
39
+ Methods:
40
+ get_type: Returns the type of the endpoint.
41
+ """
42
+
43
+ def get_type(self) -> str:
44
+ """Gets the type of the endpoint.
45
+
46
+ This method returns the type of the endpoint which is "exceptions".
47
+
48
+ Returns:
49
+ str: The type of the endpoint.
50
+ """
51
+ return "product-groups"
52
+
53
+
54
+ class PageProductGroup(BaseModel):
55
+ """
56
+
57
+ """
58
+ model_config = ConfigDict(
59
+ populate_by_name=True,
60
+ use_enum_values=True,
61
+ arbitrary_types_allowed=True,
62
+ protected_namespaces=("model_config",),
63
+ )
64
+ total_pages: Optional[int] = Field(None, alias="totalPages")
65
+ total_elements: Optional[int] = Field(None, alias="totalElements")
66
+ size: Optional[int] = None
67
+ content: Optional[List[ProductGroup]] = None
68
+ number: Optional[int] = None
69
+
70
+ number_of_elements: Optional[int] = Field(None, alias="numberOfElements")
71
+ first: Optional[bool] = None
72
+ last: Optional[bool] = None
73
+ empty: Optional[bool] = None
74
+
75
+
76
+ class PageProductGroupEndpoint(PageProductGroup, PageEndpoint):
77
+ def get_type(self) -> Optional[str]:
78
+ return "product-group"
79
+
80
+
81
+ class ProductGroupsEndpoint(EntitiesEndpoint):
82
+ """Represents the product groups endpoint
83
+
84
+ This class is used to represent the product groups endpoint in the system.
85
+
86
+ Attributes:
87
+ object_dict: A dictionary containing the object data.
88
+ """
89
+
90
+ """Represents a assistants endpoint"""
91
+
92
+ def get_type(self) -> str:
93
+ """Get the type of the endpoint
94
+
95
+ This method is used to get the type of the endpoint.
96
+
97
+ Returns:
98
+ str: The type of the endpoint.
99
+ """
100
+ return "product-groups"
101
+
102
+ def get_instance_class(self, object_dict=None):
103
+ """Get the instance class of the endpoint
104
+
105
+ This method is used to get the instance class of the endpoint.
106
+
107
+ Args:
108
+ object_dict (dict, optional): A dictionary containing the object data.
109
+
110
+ Returns:
111
+ AssistantEndpoint: The instance class of the endpoint.
112
+ """
113
+ return ProductGroupEndpoint
114
+
115
+ def get_page_class(self, object_dict=None):
116
+ """Get the page class of the endpoint
117
+
118
+ This method is used to get the page class of the endpoint.
119
+
120
+ Args:
121
+ object_dict (dict, optional): A dictionary containing the object data.
122
+
123
+ Returns:
124
+ PageAssistantEndpoint: The page class of the endpoint.
125
+ """
126
+ return PageProductGroupEndpoint
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: kodexa
3
- Version: 7.4.412417009064
3
+ Version: 7.4.412519057986
4
4
  Summary: Python SDK for the Kodexa Platform
5
5
  Author: Austin Redenbaugh
6
6
  Author-email: austin@kodexa.com
@@ -9,7 +9,8 @@ kodexa/model/__init__.py,sha256=rtLXYJBxB-rnukhslN9rlqoB3--1H3253HyHGbD_Gc8,796
9
9
  kodexa/model/base.py,sha256=CaZK8nMhT1LdCpt4aLhebJGcorjq9qRID1FjnXnP14M,521
10
10
  kodexa/model/entities/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
11
11
  kodexa/model/entities/check_response.py,sha256=eqBHxO6G2OAziL3p9bHGI-oiPkAG82H6Choc8wyvtM4,3949
12
- kodexa/model/entities/product.py,sha256=ZDpHuBE_9FJ-klnkyBvTfPwYOqBkM1wraZMtHqNA8FQ,3526
12
+ kodexa/model/entities/product.py,sha256=BC-aYfyOt0FTf1mdn5w7m993iXrIVE_TjeUAw9rM29o,3597
13
+ kodexa/model/entities/product_group.py,sha256=540fRGyUf34h1BzAN1DiWu6rGgvaj3xDFhZ2k-RvSFY,3617
13
14
  kodexa/model/entities/product_subscription.py,sha256=UcmWR-qgLfdV7VCtJNwzgkanoS8nBSL6ngVuxQUK1M8,3810
14
15
  kodexa/model/model.py,sha256=qh1YUew3UgtjU0t4fAwSXYYuzQjXTOZWZkafyFp_w8M,118801
15
16
  kodexa/model/objects.py,sha256=4Oyjs6omlHfwziAK1m2tFk4jSnzN7lFdXACog07ed1c,185124
@@ -43,7 +44,7 @@ kodexa/testing/test_utils.py,sha256=v44p__gE7ia67W7WeHN2HBFCWSCUrCZt7G4xBNCmwf8,
43
44
  kodexa/training/__init__.py,sha256=xs2L62YpRkIRfslQwtQZ5Yxjhm7sLzX2TrVX6EuBnZQ,52
44
45
  kodexa/training/train_utils.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
45
46
  kodexa/utils/__init__.py,sha256=Pnim1o9_db5YEnNvDTxpM7HG-qTlL6n8JwFwOafU9wo,5928
46
- kodexa-7.4.412417009064.dist-info/LICENSE,sha256=WNHhf_5RCaeuKWyq_K39vmp9F28LxKsB4SpomwSZ2L0,11357
47
- kodexa-7.4.412417009064.dist-info/METADATA,sha256=spL5KbmrGX7hjYXox8ofTL_tGW0u7qicBPpQGox5St0,3528
48
- kodexa-7.4.412417009064.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
49
- kodexa-7.4.412417009064.dist-info/RECORD,,
47
+ kodexa-7.4.412519057986.dist-info/LICENSE,sha256=WNHhf_5RCaeuKWyq_K39vmp9F28LxKsB4SpomwSZ2L0,11357
48
+ kodexa-7.4.412519057986.dist-info/METADATA,sha256=yftSRT7E3gifbHFpDPkeSNjZf6CknEiAbSW7Y45tXp4,3528
49
+ kodexa-7.4.412519057986.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
50
+ kodexa-7.4.412519057986.dist-info/RECORD,,