karrio-canadapost 2025.5rc14__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.
@@ -169,6 +169,11 @@ class Proxy(proxy.Proxy):
169
169
  "Authorization": f"Basic {self.settings.authorization}",
170
170
  "Accept-language": f"{self.settings.language}-CA",
171
171
  },
172
+ decoder=lambda _: (
173
+ _
174
+ if lib.text(_)
175
+ else '<message>Shipment cancelled</message>'
176
+ ),
172
177
  )
173
178
  if payload["refunded"]
174
179
  else payload["response"]
@@ -188,7 +193,8 @@ class Proxy(proxy.Proxy):
188
193
  )
189
194
 
190
195
  return lib.Deserializable(
191
- responses, lambda ___: [(_, lib.to_element(__)) for _, __ in ___]
196
+ responses,
197
+ lambda ___: [(_, lib.to_element(__)) for _, __ in ___],
192
198
  )
193
199
 
194
200
  def schedule_pickup(self, request: lib.Serializable) -> lib.Deserializable:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: karrio_canadapost
3
- Version: 2025.5rc14
3
+ Version: 2025.5rc15
4
4
  Summary: Karrio - Canada Post Shipping Extension
5
5
  Author-email: karrio <hello@karrio.io>
6
6
  License-Expression: Apache-2.0
@@ -1,6 +1,6 @@
1
1
  karrio/mappers/canadapost/__init__.py,sha256=l2QCRrKKsOToc8Q3YHgsLKK3fDDqYDSDJWI_kZxSgC0,158
2
2
  karrio/mappers/canadapost/mapper.py,sha256=asYfH9mAO5d1E4Zf4zZwYwa2Q-oRRpDpprWaJrDy1co,3612
3
- karrio/mappers/canadapost/proxy.py,sha256=Gg-zyBQH7gB-VbshgHn8Si_EPvGnAPLOTfNX-dC6Oxg,15136
3
+ karrio/mappers/canadapost/proxy.py,sha256=PA-KLsDPjggg37iTu8_e-ATOMuptx-Tzv5soP7OJKC4,15366
4
4
  karrio/mappers/canadapost/settings.py,sha256=Dq2BI7n4HEkZ4juXiQEvYAwJebW18SyOCuDebQ5zqCo,553
5
5
  karrio/plugins/canadapost/__init__.py,sha256=H2AnAPrkvQmfVdtSBumzOnjwnrym_YWU-4zRBvkSQlg,765
6
6
  karrio/providers/canadapost/__init__.py,sha256=3UB1PI83_GZt2e0mQf_9lIye1vXjUwuMH-_sUkqIFNk,791
@@ -34,8 +34,8 @@ karrio/schemas/canadapost/rating.py,sha256=Iaoagbm6L6A62GwI4PRB_2ZGZ1WpIbtogn9vg
34
34
  karrio/schemas/canadapost/serviceinfo.py,sha256=gV0CYy7rcoTcVOYmKL9nLCqdVeQVERK8_vNvk9jn8eM,60134
35
35
  karrio/schemas/canadapost/shipment.py,sha256=5xbnYyC8Mufsv2DJ11wk45yx1e2fK84UO-_3SSt5i-k,525576
36
36
  karrio/schemas/canadapost/track.py,sha256=Va7-OB0sztIz9pu0VaTKaNDMUVPC1AXCTPDePdyX84Q,150548
37
- karrio_canadapost-2025.5rc14.dist-info/METADATA,sha256=DAzQJIJZTzEqOo3HKAFL17D-n4hWqGVLOK0NKgvL2iA,1020
38
- karrio_canadapost-2025.5rc14.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
39
- karrio_canadapost-2025.5rc14.dist-info/entry_points.txt,sha256=dU9l-mw14-Lg7pHChydFReVeE2OV8wwOM15AQQkbhvw,65
40
- karrio_canadapost-2025.5rc14.dist-info/top_level.txt,sha256=FZCY8Nwft8oEGHdl--xku8P3TrnOxu5dETEU_fWpRSM,20
41
- karrio_canadapost-2025.5rc14.dist-info/RECORD,,
37
+ karrio_canadapost-2025.5rc15.dist-info/METADATA,sha256=a_QRvZQPhxzv13flG8UDt5argAHuOf0RcDqZAz1mKEg,1020
38
+ karrio_canadapost-2025.5rc15.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
39
+ karrio_canadapost-2025.5rc15.dist-info/entry_points.txt,sha256=dU9l-mw14-Lg7pHChydFReVeE2OV8wwOM15AQQkbhvw,65
40
+ karrio_canadapost-2025.5rc15.dist-info/top_level.txt,sha256=FZCY8Nwft8oEGHdl--xku8P3TrnOxu5dETEU_fWpRSM,20
41
+ karrio_canadapost-2025.5rc15.dist-info/RECORD,,