karrio-easyship 2025.5rc32__py3-none-any.whl → 2025.5rc34__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.
@@ -34,8 +34,10 @@ def _extract_details(
34
34
  settings: provider_utils.Settings,
35
35
  ctx: dict,
36
36
  ) -> models.ShipmentDetails:
37
- details = lib.to_object(shipping.ShipmentType, data["shipment"])
38
- label_document = next(
37
+ details: shipping.ShipmentType = lib.to_object(
38
+ shipping.ShipmentType, data["shipment"]
39
+ )
40
+ label_document: shipping.ShippingDocumentType = next(
39
41
  (_ for _ in details.shipping_documents if _.category == "label"), None
40
42
  )
41
43
  label_type = (label_document.format or ctx.get("label_type") or "PDF").upper()
@@ -150,20 +152,18 @@ def shipment_request(
150
152
  ),
151
153
  order_data=None,
152
154
  origin_address=easyship.AddressType(
153
- city=return_address.city,
154
- company_name=lib.text(return_address.company_name or "N/A", max=22),
155
+ city=shipper.city,
156
+ company_name=lib.text(shipper.company_name or "N/A", max=22),
155
157
  contact_email=lib.identity(
156
- return_address.email
157
- or options.email_notification_to.state
158
- or "user@mail.com"
158
+ shipper.email or options.email_notification_to.state or "user@mail.com"
159
159
  ),
160
- contact_name=lib.text(return_address.person_name, max=22),
161
- contact_phone=return_address.phone_number or "N/A",
162
- country_alpha2=return_address.country_code,
163
- line_1=return_address.address_line1,
164
- line_2=return_address.address_line2,
165
- postal_code=return_address.postal_code,
166
- state=return_address.state_code,
160
+ contact_name=lib.text(shipper.person_name, max=22),
161
+ contact_phone=shipper.phone_number or "N/A",
162
+ country_alpha2=shipper.country_code,
163
+ line_1=shipper.address_line1,
164
+ line_2=shipper.address_line2,
165
+ postal_code=shipper.postal_code,
166
+ state=shipper.state_code,
167
167
  ),
168
168
  regulatory_identifiers=lib.identity(
169
169
  easyship.RegulatoryIdentifiersType(
@@ -199,18 +199,20 @@ def shipment_request(
199
199
  ),
200
200
  return_address_id=options.easyship_return_address_id.state,
201
201
  sender_address=easyship.AddressType(
202
- city=shipper.city,
203
- company_name=lib.text(shipper.company_name or "N/A", max=22),
202
+ city=return_address.city,
203
+ company_name=lib.text(return_address.company_name or "N/A", max=22),
204
204
  contact_email=lib.identity(
205
- shipper.email or options.email_notification_to.state or "user@mail.com"
205
+ return_address.email
206
+ or options.email_notification_to.state
207
+ or "user@mail.com"
206
208
  ),
207
- contact_name=lib.text(shipper.person_name, max=22),
208
- contact_phone=shipper.phone_number or "N/A",
209
- country_alpha2=shipper.country_code,
210
- line_1=shipper.address_line1,
211
- line_2=shipper.address_line2,
212
- postal_code=shipper.postal_code,
213
- state=shipper.state_code,
209
+ contact_name=lib.text(return_address.person_name, max=22),
210
+ contact_phone=return_address.phone_number or "N/A",
211
+ country_alpha2=return_address.country_code,
212
+ line_1=return_address.address_line1,
213
+ line_2=return_address.address_line2,
214
+ postal_code=return_address.postal_code,
215
+ state=return_address.state_code,
214
216
  ),
215
217
  sender_address_id=options.easyship_sender_address_id.state,
216
218
  set_as_residential=recipient.residential,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: karrio_easyship
3
- Version: 2025.5rc32
3
+ Version: 2025.5rc34
4
4
  Summary: Karrio - Easyship Shipping Extension
5
5
  Author-email: karrio <hello@karrio.io>
6
6
  License-Expression: Apache-2.0
@@ -17,7 +17,7 @@ karrio/providers/easyship/pickup/create.py,sha256=YX4pFPdZIgvIH5tB5SpcxiBo-4Rxp3
17
17
  karrio/providers/easyship/pickup/update.py,sha256=8DGoLhQNNV5JAaMypD7pYuZ-PMQhkTk8jI-LoPvA9Sw,3212
18
18
  karrio/providers/easyship/shipment/__init__.py,sha256=XZUedqB7ZIut6FPey7DTx64_OeD7c9KPsUIiAl6oSag,233
19
19
  karrio/providers/easyship/shipment/cancel.py,sha256=2YKshLIZkOnF6nX3EMDXPkUBdjJRZm9sYwwB7mTC-D4,1212
20
- karrio/providers/easyship/shipment/create.py,sha256=rddyz8MNxWdX0Z1jMm7nqV0ICZ0aN6_O6Z-u6IGSW0w,12547
20
+ karrio/providers/easyship/shipment/create.py,sha256=FdjKn31N6fqWsXqSTPkB8gfLXpD6ceJbTuB3BTJ6D2g,12615
21
21
  karrio/schemas/easyship/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
22
22
  karrio/schemas/easyship/error_response.py,sha256=P-SUAjY7b703B0KHaYK4uFSLkexCBp-JZZvg8Blxw0E,423
23
23
  karrio/schemas/easyship/manifest_request.py,sha256=GzcJqgBbumbTl4muIvwtnbrb8aM-Hdj1JtSbQ9D7wis,208
@@ -32,8 +32,8 @@ karrio/schemas/easyship/shipment_request.py,sha256=nowz5CWtxdZg4zb81a_QsrmEI0dEt
32
32
  karrio/schemas/easyship/shipment_response.py,sha256=9uJJs4xR0bLLz7vmZMCSaIyz59dBl4kvHjMKwVvLs7g,11002
33
33
  karrio/schemas/easyship/tracking_request.py,sha256=XQ735p0jyG46fzaNlSqb2Wu8Ral6UgID8HFM6fBQsPw,1620
34
34
  karrio/schemas/easyship/tracking_response.py,sha256=QwuvI_8-YQXo-2q6uMAJA5IQrgX2gfoPtg1TGBHoZA4,1830
35
- karrio_easyship-2025.5rc32.dist-info/METADATA,sha256=yFZUFwb0K8OJEsN-V_k1qsR1FRZlo_WYTg3H3W_kHKc,1001
36
- karrio_easyship-2025.5rc32.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
37
- karrio_easyship-2025.5rc32.dist-info/entry_points.txt,sha256=fWVjIqvIorXvb1UVUMceu3i7pP0ba6gJnaZm7HLkZIY,61
38
- karrio_easyship-2025.5rc32.dist-info/top_level.txt,sha256=FZCY8Nwft8oEGHdl--xku8P3TrnOxu5dETEU_fWpRSM,20
39
- karrio_easyship-2025.5rc32.dist-info/RECORD,,
35
+ karrio_easyship-2025.5rc34.dist-info/METADATA,sha256=7TqVdmzKvWm9H59A8mUrWAWzwpmUfaX3lOOlh08GG9s,1001
36
+ karrio_easyship-2025.5rc34.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
37
+ karrio_easyship-2025.5rc34.dist-info/entry_points.txt,sha256=fWVjIqvIorXvb1UVUMceu3i7pP0ba6gJnaZm7HLkZIY,61
38
+ karrio_easyship-2025.5rc34.dist-info/top_level.txt,sha256=FZCY8Nwft8oEGHdl--xku8P3TrnOxu5dETEU_fWpRSM,20
39
+ karrio_easyship-2025.5rc34.dist-info/RECORD,,