elemento-loyalty-processing 1.0.10__tar.gz → 1.0.11__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: elemento-loyalty-processing
3
- Version: 1.0.10
3
+ Version: 1.0.11
4
4
  Summary: Elemento Loyalty Processing
5
5
  Requires-Python: >=3.11
6
6
  Requires-Dist: kaiju-tools<3,>=2.4.12
@@ -2,4 +2,4 @@
2
2
 
3
3
  __author__ = "Anton Taraskin"
4
4
  __email__ = "hel.nidhoggr@gmail.com"
5
- __version__ = "1.0.6"
5
+ __version__ = "1.0.11"
@@ -19,6 +19,31 @@ class ElementoLoyaltyProcessingClient(RPCClientService):
19
19
  method="Lists.products.set", params=dict(id=id, items=items), max_timeout=_max_timeout, nowait=_nowait
20
20
  )
21
21
 
22
+ async def balance_history(
23
+ self,
24
+ customer_id: CustomerId,
25
+ next_transaction_id: TransactionId | None = None,
26
+ limit: int = 10,
27
+ _max_timeout: int = None,
28
+ _nowait: bool = False,
29
+ ) -> list:
30
+ return await self.call(
31
+ method="Balance.history",
32
+ params=dict(customer_id=customer_id, next_transaction_id=next_transaction_id, limit=limit),
33
+ max_timeout=_max_timeout,
34
+ nowait=_nowait,
35
+ )
36
+
37
+ async def balance_history_expiring(
38
+ self, customer_id: CustomerId, active_to: str, _max_timeout: int = None, _nowait: bool = False
39
+ ) -> list:
40
+ return await self.call(
41
+ method="Balance.history.expiring",
42
+ params=dict(customer_id=customer_id, active_to=active_to),
43
+ max_timeout=_max_timeout,
44
+ nowait=_nowait,
45
+ )
46
+
22
47
  async def balance_get_balance(
23
48
  self, customer_id: CustomerId, _max_timeout: int = None, _nowait: bool = False
24
49
  ) -> Points:
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "elemento-loyalty-processing"
3
- version = "1.0.10"
3
+ version = "1.0.11"
4
4
  description = "Elemento Loyalty Processing"
5
5
  requires-python = ">=3.11"
6
6
  dependencies = [