kodexa 7.0.8899281188__py3-none-any.whl → 7.0.8902157011__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.
@@ -46,7 +46,7 @@ class ProductSubscriptionEndpoint(ProductSubscription, EntityEndpoint):
46
46
  Returns:
47
47
  str: The type of the endpoint.
48
48
  """
49
- return "product_subscriptions"
49
+ return "productSubscription"
50
50
 
51
51
 
52
52
  class PageProductSubscription(BaseModel):
@@ -73,7 +73,7 @@ class PageProductSubscription(BaseModel):
73
73
 
74
74
  class PageProductSubscriptionEndpoint(PageProductSubscription, PageEndpoint):
75
75
  def get_type(self) -> Optional[str]:
76
- return "product_subscription"
76
+ return "productSubscription"
77
77
 
78
78
 
79
79
  class ProductSubscriptionsEndpoint(EntitiesEndpoint):
@@ -93,7 +93,7 @@ class ProductSubscriptionsEndpoint(EntitiesEndpoint):
93
93
  Returns:
94
94
  str: The type of the endpoint.
95
95
  """
96
- return "product_subscriptions"
96
+ return "productSubscriptions"
97
97
 
98
98
  def get_instance_class(self, object_dict=None):
99
99
  """Get the instance class of the endpoint
kodexa/platform/client.py CHANGED
@@ -1643,21 +1643,23 @@ class OrganizationEndpoint(Organization, EntityEndpoint):
1643
1643
  """
1644
1644
  url = f"/api/productSubscriptions"
1645
1645
  params = {
1646
- filter: f"organization.id: '{self.organization.id}'",
1646
+ "filter": f"organization.id: '{self.id}'",
1647
+ "page": page,
1648
+ "pageSize": page_size
1647
1649
  }
1648
1650
  response = self.client.get(url, params=params)
1649
1651
 
1650
1652
  from kodexa.model.entities.product_subscription import PageProductSubscriptionEndpoint
1651
1653
  return PageProductSubscriptionEndpoint.model_validate(response.json()).set_client(self.client)
1652
1654
 
1653
- def remove_subscription(self, subscription_id: str) -> None:
1655
+ def remove_subscription(self, subscription: "ProductSubscription") -> None:
1654
1656
  """
1655
1657
  Remove a subscription from the organization.
1656
1658
 
1657
1659
  Args:
1658
1660
  subscription_id (str): The id of the subscription to remove.
1659
1661
  """
1660
- url = f"/api/productSubscriptions/{subscription_id}"
1662
+ url = f"/api/productSubscriptions/{subscription.id}"
1661
1663
  self.client.delete(url)
1662
1664
 
1663
1665
  def add_subscription(self, product: "Product") -> None:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: kodexa
3
- Version: 7.0.8899281188
3
+ Version: 7.0.8902157011
4
4
  Summary: Python SDK for the Kodexa Platform
5
5
  Author: Austin Redenbaugh
6
6
  Author-email: austin@kodexa.com
@@ -7,14 +7,14 @@ kodexa/model/__init__.py,sha256=rtLXYJBxB-rnukhslN9rlqoB3--1H3253HyHGbD_Gc8,796
7
7
  kodexa/model/base.py,sha256=CaZK8nMhT1LdCpt4aLhebJGcorjq9qRID1FjnXnP14M,521
8
8
  kodexa/model/entities/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
9
9
  kodexa/model/entities/product.py,sha256=ZDpHuBE_9FJ-klnkyBvTfPwYOqBkM1wraZMtHqNA8FQ,3526
10
- kodexa/model/entities/product_subscription.py,sha256=vWKYo3OWlLdQIIp7onjT8R5FTHnm7ZwpdP3DrbQ2FfA,3814
10
+ kodexa/model/entities/product_subscription.py,sha256=UcmWR-qgLfdV7VCtJNwzgkanoS8nBSL6ngVuxQUK1M8,3810
11
11
  kodexa/model/model.py,sha256=xAUPiW_1V9Kn9yitrvKFVuG_ms_N4HlAx23dwGln8Ro,115561
12
12
  kodexa/model/objects.py,sha256=aMDDBN3sKMsSvz3i5ZjDof1oFaTNQ65W87GJh7l9GoY,174318
13
13
  kodexa/model/persistence.py,sha256=sx5FwTSsWMdAZpAs0-6PqyULHkQyNQClApUKJZ-ly8M,62032
14
14
  kodexa/pipeline/__init__.py,sha256=sA7f5D6qkdMrpp2xTIeefnrUBI6xxEEWostvxfX_1Cs,236
15
15
  kodexa/pipeline/pipeline.py,sha256=ZYpJAWcwV4YRK589DUhU0vXGQlkNSj4J2TsGbYqTLjo,25221
16
16
  kodexa/platform/__init__.py,sha256=1O3oiWMg292NPL_NacKDnK1T3_R6cMorrPRue_9e-O4,216
17
- kodexa/platform/client.py,sha256=0vRj_eJdMKqvnc5Io36mTRFzIbUGGwkj893f3l5_lvQ,217016
17
+ kodexa/platform/client.py,sha256=mC53Q0IChVR7e69h66eHx3MzeC50xNxg5PS14OPy1uM,217080
18
18
  kodexa/platform/interaction.py,sha256=6zpcwXKNZstUGNS6m4JsoRXAqCZPJHWI-ZN3co8nnF0,1055
19
19
  kodexa/platform/kodexa.py,sha256=Bvf6x43FWsFuAuQ4N8TvjSZq6niEtBTESmFCWVPASeQ,34024
20
20
  kodexa/selectors/__init__.py,sha256=xA9-4vpyaAZWPSk3bh2kvDLkdv6XEmm7PjFbpziiTIk,100
@@ -38,7 +38,7 @@ kodexa/testing/test_components.py,sha256=g5lP-GY0nTHuH5cIEw45vIejEeBaWkPKQGHL36j
38
38
  kodexa/testing/test_utils.py,sha256=DrLCkHxdb6AbZ-X3WmTMbQmnVIm55VEBL8MjtUK9POs,14021
39
39
  kodexa/training/__init__.py,sha256=xs2L62YpRkIRfslQwtQZ5Yxjhm7sLzX2TrVX6EuBnZQ,52
40
40
  kodexa/training/train_utils.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
41
- kodexa-7.0.8899281188.dist-info/LICENSE,sha256=WNHhf_5RCaeuKWyq_K39vmp9F28LxKsB4SpomwSZ2L0,11357
42
- kodexa-7.0.8899281188.dist-info/METADATA,sha256=ZoO9cWQT0AON08g9STy1SkH9h-2YMQYrShTZO4-DlDY,3493
43
- kodexa-7.0.8899281188.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
44
- kodexa-7.0.8899281188.dist-info/RECORD,,
41
+ kodexa-7.0.8902157011.dist-info/LICENSE,sha256=WNHhf_5RCaeuKWyq_K39vmp9F28LxKsB4SpomwSZ2L0,11357
42
+ kodexa-7.0.8902157011.dist-info/METADATA,sha256=5gaKK_Dpok5cZTOiuxALH4u6sRnwEVe13s1l9f0yMwE,3493
43
+ kodexa-7.0.8902157011.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
44
+ kodexa-7.0.8902157011.dist-info/RECORD,,