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.
@@ -121,6 +121,7 @@ class Surcharge(core.Entity):
121
121
  name=typing.cast(str, self.name),
122
122
  amount=amount,
123
123
  currency=rate.currency,
124
+ id=self.id,
124
125
  )
125
126
  ]
126
127
 
@@ -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.value) for c in list(SurchargeType)]
18
+ SURCHAGE_TYPE = [(c.name, c.name) for c in list(SurchargeType)]
@@ -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",
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: karrio_server_pricing
3
- Version: 2025.5rc13
3
+ Version: 2025.5rc15
4
4
  Summary: Multi-carrier shipping API Pricing panel
5
5
  Author-email: karrio <hello@karrio.io>
6
6
  License-Expression: Apache-2.0
@@ -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=_P-SQu9oE-VWfYNnOeU0KSbTJ-lKz1IKdP8DYgfRsrQ,4747
5
- karrio/server/pricing/serializers.py,sha256=fVpgHpzPsmgOclqRY-adOodsjh7EEPikEcLe3MPisu8,483
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=N--C29tL04fLzzJr1hATxWH-6Yp_H68_rys1Xx_oVKI,11426
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.5rc13.dist-info/METADATA,sha256=Fv_ezAUnIwVv6pS7wk2pxXdljhugrBP5d97lKin-GC4,688
75
- karrio_server_pricing-2025.5rc13.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
76
- karrio_server_pricing-2025.5rc13.dist-info/top_level.txt,sha256=D1D7x8R3cTfjF_15mfiO7wCQ5QMtuM4x8GaPr7z5i78,12
77
- karrio_server_pricing-2025.5rc13.dist-info/RECORD,,
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,,