elemento-loyalty-processing 1.0.14__py3-none-any.whl → 1.0.15__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 +9 -28
- elemento_loyalty_processing/types.py +1 -1
- {elemento_loyalty_processing-1.0.14.dist-info → elemento_loyalty_processing-1.0.15.dist-info}/METADATA +1 -1
- elemento_loyalty_processing-1.0.15.dist-info/RECORD +7 -0
- elemento_loyalty_processing-1.0.14.dist-info/RECORD +0 -7
- {elemento_loyalty_processing-1.0.14.dist-info → elemento_loyalty_processing-1.0.15.dist-info}/WHEEL +0 -0
- {elemento_loyalty_processing-1.0.14.dist-info → elemento_loyalty_processing-1.0.15.dist-info}/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"""RPC client services for customer app."""
|
|
2
2
|
|
|
3
|
-
from datetime import
|
|
3
|
+
from datetime import datetime
|
|
4
4
|
from typing import Any
|
|
5
5
|
|
|
6
6
|
from kaiju_tools.http import RPCClientService
|
|
@@ -79,6 +79,14 @@ class ElementoLoyaltyProcessingClient(RPCClientService):
|
|
|
79
79
|
method="Balance.get", params=dict(customer_id=customer_id), max_timeout=_max_timeout, nowait=_nowait
|
|
80
80
|
)
|
|
81
81
|
|
|
82
|
+
async def balance_clear_balance(
|
|
83
|
+
self, customer_id: CustomerId, _max_timeout: int = None, _nowait: bool = False
|
|
84
|
+
) -> None:
|
|
85
|
+
"""Call Balance.clear."""
|
|
86
|
+
return await self.call(
|
|
87
|
+
method="Balance.clear", params=dict(customer_id=customer_id), max_timeout=_max_timeout, nowait=_nowait
|
|
88
|
+
)
|
|
89
|
+
|
|
82
90
|
async def balance_calculate(
|
|
83
91
|
self,
|
|
84
92
|
customer: Customer.Fields | dict[str, Any],
|
|
@@ -205,32 +213,5 @@ class ElementoLoyaltyProcessingClient(RPCClientService):
|
|
|
205
213
|
nowait=_nowait,
|
|
206
214
|
)
|
|
207
215
|
|
|
208
|
-
async def balance_history(
|
|
209
|
-
self,
|
|
210
|
-
customer_id: int,
|
|
211
|
-
next_transaction_id: int | None = None,
|
|
212
|
-
limit: int = 10,
|
|
213
|
-
_max_timeout: int = None,
|
|
214
|
-
_nowait: bool = False,
|
|
215
|
-
):
|
|
216
|
-
"""Call Balance.history."""
|
|
217
|
-
return await self.call(
|
|
218
|
-
method="Balance.history",
|
|
219
|
-
params={"customer_id": customer_id, "limit": limit, "next_transaction_id": next_transaction_id},
|
|
220
|
-
max_timeout=_max_timeout,
|
|
221
|
-
nowait=_nowait,
|
|
222
|
-
)
|
|
223
|
-
|
|
224
|
-
async def balance_history_expiring(
|
|
225
|
-
self, customer_id: int, active_to: date, _max_timeout: int = None, _nowait: bool = False
|
|
226
|
-
):
|
|
227
|
-
"""Call balance.history.expiring."""
|
|
228
|
-
return await self.call(
|
|
229
|
-
method="Balance.history.expiring",
|
|
230
|
-
params={"customer_id": customer_id, "active_to": active_to},
|
|
231
|
-
max_timeout=_max_timeout,
|
|
232
|
-
nowait=_nowait,
|
|
233
|
-
)
|
|
234
|
-
|
|
235
216
|
|
|
236
217
|
SERVICE_CLASS_REGISTRY.register(ElementoLoyaltyProcessingClient)
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
elemento_loyalty_processing/__init__.py,sha256=--nGNG2CZ1Oaa4Utp7tEhkS1jcijW9NWl9e4W8z3KEw,118
|
|
2
|
+
elemento_loyalty_processing/client.py,sha256=chlgOADY3z4Iy_ollecHB7ttIse3G1jG2ygF6JdOsW4,7362
|
|
3
|
+
elemento_loyalty_processing/types.py,sha256=totsptNjI7hMZw6qJS4ZJcZ2s9plG0kZO50v_BowhOM,4094
|
|
4
|
+
elemento_loyalty_processing-1.0.15.dist-info/METADATA,sha256=E2HTL44dkQhrRJRl14UXFtEPnQu-n11u6f6XbT0mazE,450
|
|
5
|
+
elemento_loyalty_processing-1.0.15.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
6
|
+
elemento_loyalty_processing-1.0.15.dist-info/top_level.txt,sha256=N_AtPyYKvkr1NkoPAUrVl_4VCTP-kJIehtsLhkdacAc,28
|
|
7
|
+
elemento_loyalty_processing-1.0.15.dist-info/RECORD,,
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
elemento_loyalty_processing/__init__.py,sha256=32qjgePFNecQb5PvKkcoMCOEoSSl-OkQ2BEWgQ069bE,118
|
|
2
|
-
elemento_loyalty_processing/client.py,sha256=F33_41ND_AFc1Jo253oEa7Dm_LBx4t-FmGk70sJEwkQ,7963
|
|
3
|
-
elemento_loyalty_processing/types.py,sha256=Mm9XiB0BogpPSChM7AQ4v0SFzLjOT9O6WfvKm6DZhN8,4099
|
|
4
|
-
elemento_loyalty_processing-1.0.14.dist-info/METADATA,sha256=Wk_2sxPJ5yGD8otJS-Z3e-FWLk4GpBBTaqKerw8n0jQ,450
|
|
5
|
-
elemento_loyalty_processing-1.0.14.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
6
|
-
elemento_loyalty_processing-1.0.14.dist-info/top_level.txt,sha256=N_AtPyYKvkr1NkoPAUrVl_4VCTP-kJIehtsLhkdacAc,28
|
|
7
|
-
elemento_loyalty_processing-1.0.14.dist-info/RECORD,,
|
{elemento_loyalty_processing-1.0.14.dist-info → elemento_loyalty_processing-1.0.15.dist-info}/WHEEL
RENAMED
|
File without changes
|
|
File without changes
|