mpt-extension-sdk 5.5.0__py3-none-any.whl → 5.6.1__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.
@@ -164,6 +164,14 @@ def get_product_template_or_default(mpt_client, product_id, status, name=None):
164
164
  return templates["data"][0]
165
165
 
166
166
 
167
+ def get_template_by_name(mpt_client, product_id, template_name):
168
+ url = f"/catalog/products/{product_id}/templates?eq(name,{template_name})"
169
+ response = mpt_client.get(url)
170
+ response.raise_for_status()
171
+ templates = response.json()
172
+ return templates["data"][0]
173
+
174
+
167
175
  @wrap_mpt_http_error
168
176
  def update_agreement(mpt_client, agreement_id, **kwargs):
169
177
  response = mpt_client.put(
@@ -358,7 +366,7 @@ def get_agreements_by_customer_deployments(
358
366
  f"any(parameters.fulfillment,and("
359
367
  f"eq(externalId,{deployment_id_parameter}),"
360
368
  f"in(displayValue,({deployments_list}))))"
361
- f"&select=lines,parameters,subscriptions,product,listing"
369
+ f"&select=lines,parameters,subscriptions,subscriptions.parameters,product,listing"
362
370
  )
363
371
 
364
372
  url = f"/commerce/agreements?{rql_query}"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mpt-extension-sdk
3
- Version: 5.5.0
3
+ Version: 5.6.1
4
4
  Summary: Extensions SDK for SoftwareONE Marketplace Platform
5
5
  Author: SoftwareOne AG
6
6
  License: Apache-2.0 license
@@ -16,7 +16,7 @@ mpt_extension_sdk/key_vault/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMp
16
16
  mpt_extension_sdk/key_vault/base.py,sha256=RVG_Wiq-MrPyngJ4gfUd8oxoh1LUop1SvtCM2xdlx8M,3361
17
17
  mpt_extension_sdk/mpt_http/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
18
18
  mpt_extension_sdk/mpt_http/base.py,sha256=3qgo9BW-uTRAbex26urMvLZU0fwnYnBprDRIJCHvTOk,1284
19
- mpt_extension_sdk/mpt_http/mpt.py,sha256=MN7IjOQFJ0PhfXwf1AOIgpuaDoun290AG6TP-BSIg1c,12238
19
+ mpt_extension_sdk/mpt_http/mpt.py,sha256=z7h2lEgGvBpDY43nWsQNo6f5ZBCZMjcPh_c9iv8i6dU,12540
20
20
  mpt_extension_sdk/mpt_http/utils.py,sha256=3wJTT84CXYGjZw6FksNDX8tIHijkL3Wcmld9r6Iz0xc,95
21
21
  mpt_extension_sdk/mpt_http/wrap_http_error.py,sha256=j8K6Ddx7NiM-FPRMQi25vuULAW8LXxzZ4EwuIJufxis,1801
22
22
  mpt_extension_sdk/runtime/__init__.py,sha256=PQSAz9qvXHbxrn4KvuXSHB8y-A4Jpgbm6ZV-wPiNPyw,194
@@ -46,8 +46,8 @@ mpt_extension_sdk/runtime/events/utils.py,sha256=bxFo-iQUqEJDqcIotC88Ty3Xt0K2FyY
46
46
  mpt_extension_sdk/swo_rql/__init__.py,sha256=QrvRDYhpK-Pd3OF-U2aMeazuKm_kbvXwLRIjd9Mm6ok,104
47
47
  mpt_extension_sdk/swo_rql/constants.py,sha256=39BZ78OzdU_dIQtoy-Z_5utXqEXRweIFvM9Zfxg9j5M,171
48
48
  mpt_extension_sdk/swo_rql/query_builder.py,sha256=xTdPGkI9MzCJyg-oOkK0z2oHFNjhEe8ihR-OmDL-kto,10500
49
- mpt_extension_sdk-5.5.0.dist-info/METADATA,sha256=3q1LSu61OZa5kLkpARsFlewA8CwrhnASEHdhl3OhC0Y,1358
50
- mpt_extension_sdk-5.5.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
51
- mpt_extension_sdk-5.5.0.dist-info/entry_points.txt,sha256=N8T9gBssEOm_UeBf9ABbGqtlnethrumfMoL4hNYWVFA,146
52
- mpt_extension_sdk-5.5.0.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
53
- mpt_extension_sdk-5.5.0.dist-info/RECORD,,
49
+ mpt_extension_sdk-5.6.1.dist-info/METADATA,sha256=9RwsFxI3HriSBj95PjzET0ECfyoV7enLi7hDP3cb-70,1358
50
+ mpt_extension_sdk-5.6.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
51
+ mpt_extension_sdk-5.6.1.dist-info/entry_points.txt,sha256=N8T9gBssEOm_UeBf9ABbGqtlnethrumfMoL4hNYWVFA,146
52
+ mpt_extension_sdk-5.6.1.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
53
+ mpt_extension_sdk-5.6.1.dist-info/RECORD,,