elemento-loyalty-processing 1.0.0__py3-none-any.whl → 1.0.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.
@@ -2,4 +2,4 @@
2
2
 
3
3
  __author__ = "Anton Taraskin"
4
4
  __email__ = "hel.nidhoggr@gmail.com"
5
- __version__ = "1.0.0"
5
+ __version__ = "1.0.1"
@@ -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: ListId, _max_timeout: int = None, _nowait: bool = False):
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: ListId, items: list[str], _max_timeout: int = None, _nowait: bool = False):
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: ListId, _max_timeout: int = None, _nowait: bool = False):
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
- return await self.call(
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
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: elemento-loyalty-processing
3
- Version: 1.0.0
3
+ Version: 1.0.1
4
4
  Summary: Elemento Loyalty Processing
5
5
  Requires-Python: >=3.11
6
6
  Requires-Dist: kaiju-tools<3,>=2.4.9
@@ -0,0 +1,7 @@
1
+ elemento_loyalty_processing/__init__.py,sha256=M6w_yz52izYoymwQ9wcipYnG86GTo9QCMSjrdWCpg5Q,117
2
+ elemento_loyalty_processing/client.py,sha256=gUYFGZ1QzOVU04H7Y2LiFYkg5xtcQfMhj0b345VoEow,4699
3
+ elemento_loyalty_processing/types.py,sha256=LJ6RcvQ7Vg7pNYbwa91dUAvrpMRzdM7Jht-OjYEjVDw,3047
4
+ elemento_loyalty_processing-1.0.1.dist-info/METADATA,sha256=-VNfJWnhIp2mVm2HFFSnmeFYIRnhuQ4d2CGIoS3Dr4I,407
5
+ elemento_loyalty_processing-1.0.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
6
+ elemento_loyalty_processing-1.0.1.dist-info/top_level.txt,sha256=N_AtPyYKvkr1NkoPAUrVl_4VCTP-kJIehtsLhkdacAc,28
7
+ elemento_loyalty_processing-1.0.1.dist-info/RECORD,,
@@ -1,7 +0,0 @@
1
- elemento_loyalty_processing/__init__.py,sha256=FVebD8lAZ1GBgAoGzbotiZ9tZ7UAPufrMgBpEzps4Jc,117
2
- elemento_loyalty_processing/client.py,sha256=3pm8PBS2p2wnaMAcOhrMM-jwt5TyPFZjY2XsM858wzs,4704
3
- elemento_loyalty_processing/types.py,sha256=LJ6RcvQ7Vg7pNYbwa91dUAvrpMRzdM7Jht-OjYEjVDw,3047
4
- elemento_loyalty_processing-1.0.0.dist-info/METADATA,sha256=RvfaoNp1KmTlyyhsx3NF9OopmPwYm6qob-tBv0XbEeY,407
5
- elemento_loyalty_processing-1.0.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
6
- elemento_loyalty_processing-1.0.0.dist-info/top_level.txt,sha256=N_AtPyYKvkr1NkoPAUrVl_4VCTP-kJIehtsLhkdacAc,28
7
- elemento_loyalty_processing-1.0.0.dist-info/RECORD,,