elemento-loyalty-processing 1.0.9__py3-none-any.whl → 1.0.11__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.
- elemento_loyalty_processing/__init__.py +1 -1
- elemento_loyalty_processing/client.py +27 -0
- elemento_loyalty_processing/types.py +1 -1
- {elemento_loyalty_processing-1.0.9.dist-info → elemento_loyalty_processing-1.0.11.dist-info}/METADATA +1 -1
- elemento_loyalty_processing-1.0.11.dist-info/RECORD +7 -0
- elemento_loyalty_processing-1.0.9.dist-info/RECORD +0 -7
- {elemento_loyalty_processing-1.0.9.dist-info → elemento_loyalty_processing-1.0.11.dist-info}/WHEEL +0 -0
- {elemento_loyalty_processing-1.0.9.dist-info → elemento_loyalty_processing-1.0.11.dist-info}/top_level.txt +0 -0
|
@@ -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:
|
|
@@ -115,6 +140,8 @@ class ElementoLoyaltyProcessingClient(RPCClientService):
|
|
|
115
140
|
max_timeout=_max_timeout,
|
|
116
141
|
nowait=_nowait,
|
|
117
142
|
)
|
|
143
|
+
if not data:
|
|
144
|
+
return None
|
|
118
145
|
return convert(data, Transaction)
|
|
119
146
|
|
|
120
147
|
async def balance_refund(
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
elemento_loyalty_processing/__init__.py,sha256=32qjgePFNecQb5PvKkcoMCOEoSSl-OkQ2BEWgQ069bE,118
|
|
2
|
+
elemento_loyalty_processing/client.py,sha256=LS_yxGfl7Fbs3bFnqz01U2PjuEsa19mF0QSHKFFNu4c,6223
|
|
3
|
+
elemento_loyalty_processing/types.py,sha256=A0WNlIOJGL4WfmcJtKt9FXz7QSvkUUqzYYuubDZkdyc,3777
|
|
4
|
+
elemento_loyalty_processing-1.0.11.dist-info/METADATA,sha256=qfmJkhK11I7nVwYniEBGcQCUFsNqnMKdsx73dZPycAc,450
|
|
5
|
+
elemento_loyalty_processing-1.0.11.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
6
|
+
elemento_loyalty_processing-1.0.11.dist-info/top_level.txt,sha256=N_AtPyYKvkr1NkoPAUrVl_4VCTP-kJIehtsLhkdacAc,28
|
|
7
|
+
elemento_loyalty_processing-1.0.11.dist-info/RECORD,,
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
elemento_loyalty_processing/__init__.py,sha256=fHuu8DtGv3an9oFY_4YEI9lvKn0w-rLd7ooxKUdlA2g,117
|
|
2
|
-
elemento_loyalty_processing/client.py,sha256=s7-cBBloQTGoQau46Zt_0RUOXpnmY6s5OSwQrh5H7uc,5301
|
|
3
|
-
elemento_loyalty_processing/types.py,sha256=mRf8bfcZx0skKfkGk8z7L5FESBAZerwGtQ04d3NERU8,3770
|
|
4
|
-
elemento_loyalty_processing-1.0.9.dist-info/METADATA,sha256=wuDq4bwfyc4KdNpCBhY3eBahHW6vytn4T4OsjkFuf-M,449
|
|
5
|
-
elemento_loyalty_processing-1.0.9.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
6
|
-
elemento_loyalty_processing-1.0.9.dist-info/top_level.txt,sha256=N_AtPyYKvkr1NkoPAUrVl_4VCTP-kJIehtsLhkdacAc,28
|
|
7
|
-
elemento_loyalty_processing-1.0.9.dist-info/RECORD,,
|
{elemento_loyalty_processing-1.0.9.dist-info → elemento_loyalty_processing-1.0.11.dist-info}/WHEEL
RENAMED
|
File without changes
|
|
File without changes
|