karrio-server-pricing 2025.5rc13__py3-none-any.whl → 2025.5rc15__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.
- karrio/server/pricing/migrations/0065_fix_surcharge_type_enum.py +36 -0
- karrio/server/pricing/migrations/0066_alter_surcharge_carriers_alter_surcharge_services_and_more.py +4712 -0
- karrio/server/pricing/models.py +1 -0
- karrio/server/pricing/serializers.py +3 -3
- karrio/server/pricing/tests.py +32 -32
- {karrio_server_pricing-2025.5rc13.dist-info → karrio_server_pricing-2025.5rc15.dist-info}/METADATA +1 -1
- {karrio_server_pricing-2025.5rc13.dist-info → karrio_server_pricing-2025.5rc15.dist-info}/RECORD +9 -7
- {karrio_server_pricing-2025.5rc13.dist-info → karrio_server_pricing-2025.5rc15.dist-info}/WHEEL +0 -0
- {karrio_server_pricing-2025.5rc13.dist-info → karrio_server_pricing-2025.5rc15.dist-info}/top_level.txt +0 -0
karrio/server/pricing/models.py
CHANGED
|
@@ -6,8 +6,8 @@ from karrio.server.core.serializers import (
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
class SurchargeType(enum.Enum):
|
|
9
|
-
AMOUNT = "
|
|
10
|
-
PERCENTAGE = "
|
|
9
|
+
AMOUNT = "AMOUNT"
|
|
10
|
+
PERCENTAGE = "PERCENTAGE"
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
CARRIER_SERVICES = [
|
|
@@ -15,4 +15,4 @@ CARRIER_SERVICES = [
|
|
|
15
15
|
for name in sorted(dataunits.REFERENCE_MODELS["services"].keys())
|
|
16
16
|
]
|
|
17
17
|
SERVICES = [(code, code) for services in CARRIER_SERVICES for code in services]
|
|
18
|
-
SURCHAGE_TYPE = [(c.name, c.
|
|
18
|
+
SURCHAGE_TYPE = [(c.name, c.name) for c in list(SurchargeType)]
|
karrio/server/pricing/tests.py
CHANGED
|
@@ -144,11 +144,11 @@ RATING_RESPONSE = {
|
|
|
144
144
|
"total_charge": 32.99,
|
|
145
145
|
"transit_days": 7,
|
|
146
146
|
"extra_charges": [
|
|
147
|
-
{"name": "Base charge", "amount": 29.64, "currency": "CAD"},
|
|
148
|
-
{"name": "Fuel surcharge", "amount": 1.24, "currency": "CAD"},
|
|
149
|
-
{"name": "SMB Savings", "amount": -2.19, "currency": "CAD"},
|
|
150
|
-
{"name": "Duty and taxes", "amount": 4.3, "currency": "CAD"},
|
|
151
|
-
{"name": "Discount", "amount": -0.95, "currency": "CAD"},
|
|
147
|
+
{"name": "Base charge", "amount": 29.64, "currency": "CAD", "id": None},
|
|
148
|
+
{"name": "Fuel surcharge", "amount": 1.24, "currency": "CAD", "id": None},
|
|
149
|
+
{"name": "SMB Savings", "amount": -2.19, "currency": "CAD", "id": None},
|
|
150
|
+
{"name": "Duty and taxes", "amount": 4.3, "currency": "CAD", "id": None},
|
|
151
|
+
{"name": "Discount", "amount": -0.95, "currency": "CAD", "id": None},
|
|
152
152
|
],
|
|
153
153
|
"meta": {
|
|
154
154
|
"ext": "canadapost",
|
|
@@ -170,11 +170,11 @@ RATING_RESPONSE = {
|
|
|
170
170
|
"total_charge": 85.65,
|
|
171
171
|
"transit_days": 2,
|
|
172
172
|
"extra_charges": [
|
|
173
|
-
{"name": "Base charge", "amount": 75.82, "currency": "CAD"},
|
|
174
|
-
{"name": "Fuel surcharge", "amount": 3.21, "currency": "CAD"},
|
|
175
|
-
{"name": "SMB Savings", "amount": -4.55, "currency": "CAD"},
|
|
176
|
-
{"name": "Duty and taxes", "amount": 4.3, "currency": "CAD"},
|
|
177
|
-
{"name": "Discount", "amount": 11.17, "currency": "CAD"},
|
|
173
|
+
{"name": "Base charge", "amount": 75.82, "currency": "CAD", "id": None},
|
|
174
|
+
{"name": "Fuel surcharge", "amount": 3.21, "currency": "CAD", "id": None},
|
|
175
|
+
{"name": "SMB Savings", "amount": -4.55, "currency": "CAD", "id": None},
|
|
176
|
+
{"name": "Duty and taxes", "amount": 4.3, "currency": "CAD", "id": None},
|
|
177
|
+
{"name": "Discount", "amount": 11.17, "currency": "CAD", "id": None},
|
|
178
178
|
],
|
|
179
179
|
"meta": {
|
|
180
180
|
"ext": "canadapost",
|
|
@@ -196,12 +196,12 @@ RATING_RESPONSE = {
|
|
|
196
196
|
"total_charge": 114.93,
|
|
197
197
|
"transit_days": 2,
|
|
198
198
|
"extra_charges": [
|
|
199
|
-
{"name": "Base charge", "amount": 101.83, "currency": "CAD"},
|
|
200
|
-
{"name": "Fuel surcharge", "amount": 4.27, "currency": "CAD"},
|
|
201
|
-
{"name": "SMB Savings", "amount": -7.03, "currency": "CAD"},
|
|
202
|
-
{"name": "Duties and taxes", "amount": 14.86, "currency": "CAD"},
|
|
203
|
-
{"name": "Discount", "amount": -2.76, "currency": "CAD"},
|
|
204
|
-
{"name": "brokerage", "amount": 1.0, "currency": "CAD"},
|
|
199
|
+
{"name": "Base charge", "amount": 101.83, "currency": "CAD", "id": None},
|
|
200
|
+
{"name": "Fuel surcharge", "amount": 4.27, "currency": "CAD", "id": None},
|
|
201
|
+
{"name": "SMB Savings", "amount": -7.03, "currency": "CAD", "id": None},
|
|
202
|
+
{"name": "Duties and taxes", "amount": 14.86, "currency": "CAD", "id": None},
|
|
203
|
+
{"name": "Discount", "amount": -2.76, "currency": "CAD", "id": None},
|
|
204
|
+
{"name": "brokerage", "amount": 1.0, "currency": "CAD", "id": ANY},
|
|
205
205
|
],
|
|
206
206
|
"meta": {
|
|
207
207
|
"ext": "canadapost",
|
|
@@ -229,11 +229,11 @@ RATING_WITH_PERCENTAGE_RESPONSE = {
|
|
|
229
229
|
"total_charge": 32.99,
|
|
230
230
|
"transit_days": 7,
|
|
231
231
|
"extra_charges": [
|
|
232
|
-
{"name": "Base charge", "amount": 29.64, "currency": "CAD"},
|
|
233
|
-
{"name": "Fuel surcharge", "amount": 1.24, "currency": "CAD"},
|
|
234
|
-
{"name": "SMB Savings", "amount": -2.19, "currency": "CAD"},
|
|
235
|
-
{"name": "Duty and taxes", "amount": 4.3, "currency": "CAD"},
|
|
236
|
-
{"name": "Discount", "amount": -0.95, "currency": "CAD"},
|
|
232
|
+
{"name": "Base charge", "amount": 29.64, "currency": "CAD", "id": None},
|
|
233
|
+
{"name": "Fuel surcharge", "amount": 1.24, "currency": "CAD", "id": None},
|
|
234
|
+
{"name": "SMB Savings", "amount": -2.19, "currency": "CAD", "id": None},
|
|
235
|
+
{"name": "Duty and taxes", "amount": 4.3, "currency": "CAD", "id": None},
|
|
236
|
+
{"name": "Discount", "amount": -0.95, "currency": "CAD", "id": None},
|
|
237
237
|
],
|
|
238
238
|
"meta": {
|
|
239
239
|
"ext": "canadapost",
|
|
@@ -255,11 +255,11 @@ RATING_WITH_PERCENTAGE_RESPONSE = {
|
|
|
255
255
|
"total_charge": 85.65,
|
|
256
256
|
"transit_days": 2,
|
|
257
257
|
"extra_charges": [
|
|
258
|
-
{"name": "Base charge", "amount": 75.82, "currency": "CAD"},
|
|
259
|
-
{"name": "Fuel surcharge", "amount": 3.21, "currency": "CAD"},
|
|
260
|
-
{"name": "SMB Savings", "amount": -4.55, "currency": "CAD"},
|
|
261
|
-
{"name": "Duty and taxes", "amount": 4.3, "currency": "CAD"},
|
|
262
|
-
{"name": "Discount", "amount": 11.17, "currency": "CAD"},
|
|
258
|
+
{"name": "Base charge", "amount": 75.82, "currency": "CAD", "id": None},
|
|
259
|
+
{"name": "Fuel surcharge", "amount": 3.21, "currency": "CAD", "id": None},
|
|
260
|
+
{"name": "SMB Savings", "amount": -4.55, "currency": "CAD", "id": None},
|
|
261
|
+
{"name": "Duty and taxes", "amount": 4.3, "currency": "CAD", "id": None},
|
|
262
|
+
{"name": "Discount", "amount": 11.17, "currency": "CAD", "id": None},
|
|
263
263
|
],
|
|
264
264
|
"meta": {
|
|
265
265
|
"ext": "canadapost",
|
|
@@ -281,12 +281,12 @@ RATING_WITH_PERCENTAGE_RESPONSE = {
|
|
|
281
281
|
"total_charge": 116.21,
|
|
282
282
|
"transit_days": 2,
|
|
283
283
|
"extra_charges": [
|
|
284
|
-
{"name": "Base charge", "amount": 101.83, "currency": "CAD"},
|
|
285
|
-
{"name": "Fuel surcharge", "amount": 4.27, "currency": "CAD"},
|
|
286
|
-
{"name": "SMB Savings", "amount": -7.03, "currency": "CAD"},
|
|
287
|
-
{"name": "Duties and taxes", "amount": 14.86, "currency": "CAD"},
|
|
288
|
-
{"name": "Discount", "amount": -2.76, "currency": "CAD"},
|
|
289
|
-
{"name": "brokerage", "amount": 2.28, "currency": "CAD"},
|
|
284
|
+
{"name": "Base charge", "amount": 101.83, "currency": "CAD", "id": None},
|
|
285
|
+
{"name": "Fuel surcharge", "amount": 4.27, "currency": "CAD", "id": None},
|
|
286
|
+
{"name": "SMB Savings", "amount": -7.03, "currency": "CAD", "id": None},
|
|
287
|
+
{"name": "Duties and taxes", "amount": 14.86, "currency": "CAD", "id": None},
|
|
288
|
+
{"name": "Discount", "amount": -2.76, "currency": "CAD", "id": None},
|
|
289
|
+
{"name": "brokerage", "amount": 2.28, "currency": "CAD", "id": ANY},
|
|
290
290
|
],
|
|
291
291
|
"meta": {
|
|
292
292
|
"ext": "canadapost",
|
{karrio_server_pricing-2025.5rc13.dist-info → karrio_server_pricing-2025.5rc15.dist-info}/RECORD
RENAMED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
karrio/server/pricing/__init__.py,sha256=zXpxAFuHsCdAaESYGLRvdqCs7CXtIn8cF688jV4ufQc,64
|
|
2
2
|
karrio/server/pricing/admin.py,sha256=FPLSutMYkKF-fGWGeKQmfJLO5UAB8wRABhhVS9lAckE,1683
|
|
3
3
|
karrio/server/pricing/apps.py,sha256=n9qkGVkmU1gTCLc7WR3iGaPWwW9NtaVFGR2xvBSMvA4,341
|
|
4
|
-
karrio/server/pricing/models.py,sha256=
|
|
5
|
-
karrio/server/pricing/serializers.py,sha256=
|
|
4
|
+
karrio/server/pricing/models.py,sha256=5f_8LWfvASoOwgIWA79qstA6cnbtOECuZkNj6JJDfwg,4783
|
|
5
|
+
karrio/server/pricing/serializers.py,sha256=VZnqJl4a1pi9L8frVrpphBHERxY5cl0EgVhJMmdVxQM,496
|
|
6
6
|
karrio/server/pricing/signals.py,sha256=lCcmGN67crZZLQRQ24y7-C_K0JDYBaYq1sYocyMaeGw,974
|
|
7
|
-
karrio/server/pricing/tests.py,sha256=
|
|
7
|
+
karrio/server/pricing/tests.py,sha256=rPTKlXn93buLLCyXxt5Y1OK2566aKY8cZVY4CUz2p6Q,11808
|
|
8
8
|
karrio/server/pricing/views.py,sha256=xc1IQHrsij7j33TUbo-_oewy3vs03pw_etpBWaMYJl0,63
|
|
9
9
|
karrio/server/pricing/migrations/0001_initial.py,sha256=KKEklxf8Q1-IQn-8ZchbCi3-zmIyjn80DaGqPgRRI5w,52327
|
|
10
10
|
karrio/server/pricing/migrations/0002_auto_20201127_0721.py,sha256=zhiRIHjyUhwH8Mw2qljkWO1wkZPftqAJpwh6QH5oO2o,41778
|
|
@@ -70,8 +70,10 @@ karrio/server/pricing/migrations/0061_alter_surcharge_services.py,sha256=90fPWiR
|
|
|
70
70
|
karrio/server/pricing/migrations/0062_alter_surcharge_carriers_alter_surcharge_services.py,sha256=8qb5xscUK4DVzd7c6bhuMDPvem7avNl_2feYHozbWr8,237849
|
|
71
71
|
karrio/server/pricing/migrations/0063_alter_surcharge_carriers_alter_surcharge_services.py,sha256=6NNyPCICUo0SRvz_LgqkNk6GecfYnpoOKtuNJe1U8EY,1231
|
|
72
72
|
karrio/server/pricing/migrations/0064_alter_surcharge_carriers_alter_surcharge_services.py,sha256=_ocynnDsSp0WsEFapWWCC-pHE2kIJG6NmDdrT1c5tMs,235993
|
|
73
|
+
karrio/server/pricing/migrations/0065_fix_surcharge_type_enum.py,sha256=IAuvEoC9If-BvDKBf_MKF4R06HMwHSrl_sFYtkQDm8s,1116
|
|
74
|
+
karrio/server/pricing/migrations/0066_alter_surcharge_carriers_alter_surcharge_services_and_more.py,sha256=50tud2eGTlqh-YKMNwiv3v8glwzgbxpiNlQNa86eTIE,238700
|
|
73
75
|
karrio/server/pricing/migrations/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
74
|
-
karrio_server_pricing-2025.
|
|
75
|
-
karrio_server_pricing-2025.
|
|
76
|
-
karrio_server_pricing-2025.
|
|
77
|
-
karrio_server_pricing-2025.
|
|
76
|
+
karrio_server_pricing-2025.5rc15.dist-info/METADATA,sha256=3IQrEpfjpkNH0YCnRNUdjtHFx0FDJLQ8C4HamAUbXnQ,688
|
|
77
|
+
karrio_server_pricing-2025.5rc15.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
78
|
+
karrio_server_pricing-2025.5rc15.dist-info/top_level.txt,sha256=D1D7x8R3cTfjF_15mfiO7wCQ5QMtuM4x8GaPr7z5i78,12
|
|
79
|
+
karrio_server_pricing-2025.5rc15.dist-info/RECORD,,
|
{karrio_server_pricing-2025.5rc13.dist-info → karrio_server_pricing-2025.5rc15.dist-info}/WHEEL
RENAMED
|
File without changes
|
|
File without changes
|