elemento-loyalty-processing 1.0.0__tar.gz → 1.0.2__tar.gz
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.
- {elemento_loyalty_processing-1.0.0 → elemento_loyalty_processing-1.0.2}/PKG-INFO +1 -1
- {elemento_loyalty_processing-1.0.0 → elemento_loyalty_processing-1.0.2}/app/__init__.py +1 -1
- {elemento_loyalty_processing-1.0.0 → elemento_loyalty_processing-1.0.2}/app/client.py +6 -7
- {elemento_loyalty_processing-1.0.0 → elemento_loyalty_processing-1.0.2}/app/types.py +1 -0
- {elemento_loyalty_processing-1.0.0 → elemento_loyalty_processing-1.0.2}/pyproject.toml +1 -1
- {elemento_loyalty_processing-1.0.0 → elemento_loyalty_processing-1.0.2}/MANIFEST.in +0 -0
- {elemento_loyalty_processing-1.0.0 → elemento_loyalty_processing-1.0.2}/README.md +0 -0
- {elemento_loyalty_processing-1.0.0 → elemento_loyalty_processing-1.0.2}/elemento_loyalty_processing.egg-info/SOURCES.txt +0 -0
- {elemento_loyalty_processing-1.0.0 → elemento_loyalty_processing-1.0.2}/setup.cfg +0 -0
|
@@ -12,27 +12,25 @@ from .types import *
|
|
|
12
12
|
class ElementoLoyaltyProcessingClient(RPCClientService):
|
|
13
13
|
"""Auto-generated ElementoCustomers RPC client."""
|
|
14
14
|
|
|
15
|
-
async def lists_set_product_list(
|
|
16
|
-
self, id: ListId, items: list[str], _max_timeout: int = None, _nowait: bool = False
|
|
17
|
-
):
|
|
15
|
+
async def lists_set_product_list(self, id: ListId, items: list, _max_timeout: int = None, _nowait: bool = False):
|
|
18
16
|
"""Call Lists.products.set."""
|
|
19
17
|
return await self.call(
|
|
20
18
|
method="Lists.products.set", params=dict(id=id, items=items), max_timeout=_max_timeout, nowait=_nowait
|
|
21
19
|
)
|
|
22
20
|
|
|
23
|
-
async def lists_get_product_list(self, id:
|
|
21
|
+
async def lists_get_product_list(self, id: str, _max_timeout: int = None, _nowait: bool = False):
|
|
24
22
|
"""Call Lists.products.get."""
|
|
25
23
|
return await self.call(
|
|
26
24
|
method="Lists.products.get", params=dict(id=id), max_timeout=_max_timeout, nowait=_nowait
|
|
27
25
|
)
|
|
28
26
|
|
|
29
|
-
async def lists_set_store_list(self, id:
|
|
27
|
+
async def lists_set_store_list(self, id: str, items: list, _max_timeout: int = None, _nowait: bool = False):
|
|
30
28
|
"""Call Lists.stores.set."""
|
|
31
29
|
return await self.call(
|
|
32
30
|
method="Lists.stores.set", params=dict(id=id, items=items), max_timeout=_max_timeout, nowait=_nowait
|
|
33
31
|
)
|
|
34
32
|
|
|
35
|
-
async def lists_get_store_list(self, id:
|
|
33
|
+
async def lists_get_store_list(self, id: str, _max_timeout: int = None, _nowait: bool = False):
|
|
36
34
|
"""Call Lists.stores.get."""
|
|
37
35
|
return await self.call(method="Lists.stores.get", params=dict(id=id), max_timeout=_max_timeout, nowait=_nowait)
|
|
38
36
|
|
|
@@ -59,7 +57,7 @@ class ElementoLoyaltyProcessingClient(RPCClientService):
|
|
|
59
57
|
_nowait: bool = False,
|
|
60
58
|
) -> Cart:
|
|
61
59
|
"""Call Balance.calculate_cart."""
|
|
62
|
-
|
|
60
|
+
data = await self.call(
|
|
63
61
|
method="Balance.calculate_cart",
|
|
64
62
|
params=dict(
|
|
65
63
|
customer=customer,
|
|
@@ -75,6 +73,7 @@ class ElementoLoyaltyProcessingClient(RPCClientService):
|
|
|
75
73
|
max_timeout=_max_timeout,
|
|
76
74
|
nowait=_nowait,
|
|
77
75
|
)
|
|
76
|
+
return Cart(**data)
|
|
78
77
|
|
|
79
78
|
async def balance_confirm_transaction(
|
|
80
79
|
self, transaction_id: TransactionId, _max_timeout: int = None, _nowait: bool = False
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|