elemento-loyalty-processing 1.0.1__py3-none-any.whl → 1.0.3__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.1"
5
+ __version__ = "1.0.3"
@@ -45,6 +45,7 @@ class ElementoLoyaltyProcessingClient(RPCClientService):
45
45
  async def balance_calculate(
46
46
  self,
47
47
  customer: dict[str, Any],
48
+ store_id: int,
48
49
  items: list[Item],
49
50
  custom_attributes: dict[str, Any] = None,
50
51
  points_sub: int = 0,
@@ -61,6 +62,7 @@ class ElementoLoyaltyProcessingClient(RPCClientService):
61
62
  method="Balance.calculate_cart",
62
63
  params=dict(
63
64
  customer=customer,
65
+ store_id=store_id,
64
66
  items=items,
65
67
  custom_attributes=custom_attributes,
66
68
  points_sub=points_sub,
@@ -33,6 +33,7 @@ __all__ = [
33
33
  "LifetimeId",
34
34
  "ActionId",
35
35
  "Points",
36
+ "StoreId",
36
37
  ]
37
38
 
38
39
  DATE_MAXVALUE = date.fromisoformat("3000-01-01")
@@ -41,6 +42,7 @@ TransactionId = NewType("TransactionId", str)
41
42
  EventTypeId = NewType("EventTypeId", str)
42
43
  ListId = NewType("ListId", str)
43
44
  CustomerId = NewType("CustomerId", int)
45
+ StoreId = NewType("StoreId", int)
44
46
  OfferId = NewType("OfferId", int)
45
47
  LifetimeId = NewType("LifetimeId", int)
46
48
  GroupId = NewType("GroupId", int)
@@ -132,6 +134,7 @@ class Item(Struct):
132
134
  points_add: Points = 0
133
135
  points_sub: Points = 0
134
136
  points_sub_max: Points = 0
137
+ params: dict[str, Any] | None = None
135
138
 
136
139
 
137
140
  class Cart(Struct):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: elemento-loyalty-processing
3
- Version: 1.0.1
3
+ Version: 1.0.3
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=B9q7Xuz-G7-a-us-RjJyMq7EcUaMJOMZ5bgDNu78p5w,117
2
+ elemento_loyalty_processing/client.py,sha256=ChtOHtbCDcbSCsSV292XJDa372U-MvR8W6-DZR79fEA,4757
3
+ elemento_loyalty_processing/types.py,sha256=5weGZa4wfotbKKIyR0Gy6G3kqaBhFO1g6czT02FfgQY,3137
4
+ elemento_loyalty_processing-1.0.3.dist-info/METADATA,sha256=OH8RWA5hsjswuNGw6O-bp4crPBvnBccDP7GtpWUqJxQ,407
5
+ elemento_loyalty_processing-1.0.3.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
6
+ elemento_loyalty_processing-1.0.3.dist-info/top_level.txt,sha256=N_AtPyYKvkr1NkoPAUrVl_4VCTP-kJIehtsLhkdacAc,28
7
+ elemento_loyalty_processing-1.0.3.dist-info/RECORD,,
@@ -1,7 +0,0 @@
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,,