elemento-loyalty-processing 1.0.15__py3-none-any.whl → 1.0.16__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/types.py +9 -0
- {elemento_loyalty_processing-1.0.15.dist-info → elemento_loyalty_processing-1.0.16.dist-info}/METADATA +1 -1
- elemento_loyalty_processing-1.0.16.dist-info/RECORD +7 -0
- {elemento_loyalty_processing-1.0.15.dist-info → elemento_loyalty_processing-1.0.16.dist-info}/WHEEL +1 -1
- elemento_loyalty_processing-1.0.15.dist-info/RECORD +0 -7
- {elemento_loyalty_processing-1.0.15.dist-info → elemento_loyalty_processing-1.0.16.dist-info}/top_level.txt +0 -0
|
@@ -39,6 +39,7 @@ __all__ = [
|
|
|
39
39
|
"PointType",
|
|
40
40
|
"TransactionExtId",
|
|
41
41
|
"PurchaseStats",
|
|
42
|
+
"PersonalOffer",
|
|
42
43
|
]
|
|
43
44
|
|
|
44
45
|
DATE_MAXVALUE = date.fromisoformat("3000-01-01")
|
|
@@ -127,6 +128,12 @@ class AppliedOffer(Struct):
|
|
|
127
128
|
active_to: date
|
|
128
129
|
|
|
129
130
|
|
|
131
|
+
class PersonalOffer(Struct):
|
|
132
|
+
type: str
|
|
133
|
+
discount_percent: int = 0
|
|
134
|
+
cashback_percent: int = 0
|
|
135
|
+
|
|
136
|
+
|
|
130
137
|
class Item(Struct):
|
|
131
138
|
pos: int
|
|
132
139
|
product_id: str
|
|
@@ -142,6 +149,7 @@ class Item(Struct):
|
|
|
142
149
|
params: dict[str, Any] = {}
|
|
143
150
|
offers_add: list[AppliedOffer] = []
|
|
144
151
|
offers_sub: list[AppliedOffer] = []
|
|
152
|
+
personal: list[PersonalOffer] = []
|
|
145
153
|
|
|
146
154
|
|
|
147
155
|
class RefundItem(TypedDict):
|
|
@@ -161,6 +169,7 @@ class Cart(Struct):
|
|
|
161
169
|
cashier_message: str | None = None
|
|
162
170
|
customer_message: str | None = None
|
|
163
171
|
offers_add: list[AppliedOffer] = []
|
|
172
|
+
personal: list[PersonalOffer] = []
|
|
164
173
|
|
|
165
174
|
|
|
166
175
|
class StoredTransaction(Struct):
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
elemento_loyalty_processing/__init__.py,sha256=j1XYJhob0Z8VK2C4GTWWwqWnSN87D3sD4CrqbPxKRF8,118
|
|
2
|
+
elemento_loyalty_processing/client.py,sha256=chlgOADY3z4Iy_ollecHB7ttIse3G1jG2ygF6JdOsW4,7362
|
|
3
|
+
elemento_loyalty_processing/types.py,sha256=CS1Jg8r7UtfsqJ0uFWtJz6jgEXF9fbAhqxMRYCd3bfA,4298
|
|
4
|
+
elemento_loyalty_processing-1.0.16.dist-info/METADATA,sha256=IzdqBK2xgbM-uWLBJv_34HPNFymVbJFLpint-et8BmI,450
|
|
5
|
+
elemento_loyalty_processing-1.0.16.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
|
|
6
|
+
elemento_loyalty_processing-1.0.16.dist-info/top_level.txt,sha256=N_AtPyYKvkr1NkoPAUrVl_4VCTP-kJIehtsLhkdacAc,28
|
|
7
|
+
elemento_loyalty_processing-1.0.16.dist-info/RECORD,,
|
|
@@ -1,7 +0,0 @@
|
|
|
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,,
|
|
File without changes
|