karrio-easyship 2025.5rc33__py3-none-any.whl → 2025.5rc35__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/providers/easyship/shipment/create.py +26 -24
- {karrio_easyship-2025.5rc33.dist-info → karrio_easyship-2025.5rc35.dist-info}/METADATA +1 -1
- {karrio_easyship-2025.5rc33.dist-info → karrio_easyship-2025.5rc35.dist-info}/RECORD +6 -6
- {karrio_easyship-2025.5rc33.dist-info → karrio_easyship-2025.5rc35.dist-info}/WHEEL +0 -0
- {karrio_easyship-2025.5rc33.dist-info → karrio_easyship-2025.5rc35.dist-info}/entry_points.txt +0 -0
- {karrio_easyship-2025.5rc33.dist-info → karrio_easyship-2025.5rc35.dist-info}/top_level.txt +0 -0
|
@@ -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(
|
|
38
|
-
|
|
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=
|
|
154
|
-
company_name=lib.text(
|
|
155
|
+
city=shipper.city,
|
|
156
|
+
company_name=lib.text(shipper.company_name or "N/A", max=22),
|
|
155
157
|
contact_email=lib.identity(
|
|
156
|
-
|
|
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(
|
|
161
|
-
contact_phone=
|
|
162
|
-
country_alpha2=
|
|
163
|
-
line_1=
|
|
164
|
-
line_2=
|
|
165
|
-
postal_code=
|
|
166
|
-
state=
|
|
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=
|
|
203
|
-
company_name=lib.text(
|
|
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
|
-
|
|
205
|
+
return_address.email
|
|
206
|
+
or options.email_notification_to.state
|
|
207
|
+
or "user@mail.com"
|
|
206
208
|
),
|
|
207
|
-
contact_name=lib.text(
|
|
208
|
-
contact_phone=
|
|
209
|
-
country_alpha2=
|
|
210
|
-
line_1=
|
|
211
|
-
line_2=
|
|
212
|
-
postal_code=
|
|
213
|
-
state=
|
|
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,
|
|
@@ -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=
|
|
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.
|
|
36
|
-
karrio_easyship-2025.
|
|
37
|
-
karrio_easyship-2025.
|
|
38
|
-
karrio_easyship-2025.
|
|
39
|
-
karrio_easyship-2025.
|
|
35
|
+
karrio_easyship-2025.5rc35.dist-info/METADATA,sha256=PzBv-buSpnBKPLJgISccIBNVBwTO8VCgAX29MBfReKI,1001
|
|
36
|
+
karrio_easyship-2025.5rc35.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
37
|
+
karrio_easyship-2025.5rc35.dist-info/entry_points.txt,sha256=fWVjIqvIorXvb1UVUMceu3i7pP0ba6gJnaZm7HLkZIY,61
|
|
38
|
+
karrio_easyship-2025.5rc35.dist-info/top_level.txt,sha256=FZCY8Nwft8oEGHdl--xku8P3TrnOxu5dETEU_fWpRSM,20
|
|
39
|
+
karrio_easyship-2025.5rc35.dist-info/RECORD,,
|
|
File without changes
|
{karrio_easyship-2025.5rc33.dist-info → karrio_easyship-2025.5rc35.dist-info}/entry_points.txt
RENAMED
|
File without changes
|
|
File without changes
|