karrio-easyship 2025.5.7__py3-none-any.whl → 2026.1.1__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/rate.py +32 -15
- {karrio_easyship-2025.5.7.dist-info → karrio_easyship-2026.1.1.dist-info}/METADATA +1 -1
- {karrio_easyship-2025.5.7.dist-info → karrio_easyship-2026.1.1.dist-info}/RECORD +6 -6
- {karrio_easyship-2025.5.7.dist-info → karrio_easyship-2026.1.1.dist-info}/WHEEL +0 -0
- {karrio_easyship-2025.5.7.dist-info → karrio_easyship-2026.1.1.dist-info}/entry_points.txt +0 -0
- {karrio_easyship-2025.5.7.dist-info → karrio_easyship-2026.1.1.dist-info}/top_level.txt +0 -0
|
@@ -94,9 +94,15 @@ def rate_request(
|
|
|
94
94
|
package_options=packages.options,
|
|
95
95
|
initializer=provider_units.shipping_options_initializer,
|
|
96
96
|
)
|
|
97
|
+
customs = lib.to_customs_info(
|
|
98
|
+
payload.customs,
|
|
99
|
+
shipper=payload.shipper,
|
|
100
|
+
recipient=payload.recipient,
|
|
101
|
+
weight_unit=weight_unit.name,
|
|
102
|
+
)
|
|
97
103
|
incoterms = lib.identity(
|
|
98
104
|
options.easyship_incoterms.state
|
|
99
|
-
or
|
|
105
|
+
or customs.incoterm
|
|
100
106
|
)
|
|
101
107
|
|
|
102
108
|
# map data to convert karrio model to easyship specific type
|
|
@@ -133,11 +139,18 @@ def rate_request(
|
|
|
133
139
|
),
|
|
134
140
|
incoterms=incoterms,
|
|
135
141
|
insurance=easyship.InsuranceType(
|
|
136
|
-
insured_amount=
|
|
142
|
+
insured_amount=lib.identity(
|
|
143
|
+
options.insurance.state
|
|
144
|
+
or lib.to_money(customs.duty.declared_value if customs.duty else None)
|
|
145
|
+
),
|
|
137
146
|
insured_currency=lib.identity(
|
|
138
|
-
options.currency.state
|
|
147
|
+
options.currency.state
|
|
148
|
+
or (customs.duty.currency if customs.duty else None)
|
|
149
|
+
),
|
|
150
|
+
is_insured=lib.identity(
|
|
151
|
+
options.insurance.state is not None
|
|
152
|
+
or (customs.duty.declared_value if customs.duty else None) is not None
|
|
139
153
|
),
|
|
140
|
-
is_insured=options.insurance.state is not None,
|
|
141
154
|
),
|
|
142
155
|
origin_address=easyship.NAddressType(
|
|
143
156
|
country_alpha2=shipper.country_code,
|
|
@@ -186,17 +199,21 @@ def rate_request(
|
|
|
186
199
|
for item in lib.identity(
|
|
187
200
|
package.items
|
|
188
201
|
if any(package.items)
|
|
189
|
-
else
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
202
|
+
else (
|
|
203
|
+
customs.commodities
|
|
204
|
+
if any(customs.commodities or [])
|
|
205
|
+
else [
|
|
206
|
+
models.Commodity(
|
|
207
|
+
title=lib.text(package.description, max=35),
|
|
208
|
+
description=package.description,
|
|
209
|
+
quantity=1,
|
|
210
|
+
hs_code="N/A",
|
|
211
|
+
value_amount=1.0,
|
|
212
|
+
value_currency=options.currency.state or "USD",
|
|
213
|
+
category="bags_luggages",
|
|
214
|
+
)
|
|
215
|
+
]
|
|
216
|
+
)
|
|
200
217
|
)
|
|
201
218
|
],
|
|
202
219
|
total_actual_weight=package.weight.value,
|
|
@@ -7,7 +7,7 @@ karrio/providers/easyship/__init__.py,sha256=dWvRdjJLzka87iVfszU3cWVDJJBQn2YKKrT
|
|
|
7
7
|
karrio/providers/easyship/error.py,sha256=sqp_d9TMhjB1dg6UxJ-cIi8QW1UMV2pI_Xp623eJlz0,1711
|
|
8
8
|
karrio/providers/easyship/manifest.py,sha256=BoFk5beASPeIbdToB5yi_naVzUSTLcIB11rLBmgJ7kY,2243
|
|
9
9
|
karrio/providers/easyship/metadata.json,sha256=EuukQpPGZST6ANmXCz5QqTYYAhFUxHvt3QAnxlrqyvk,229126
|
|
10
|
-
karrio/providers/easyship/rate.py,sha256=
|
|
10
|
+
karrio/providers/easyship/rate.py,sha256=C8I4l4BRwwSqEtbCHxPWWzyex9ExQ_lJ6dcQS3Hfu5I,9628
|
|
11
11
|
karrio/providers/easyship/tracking.py,sha256=pQy4hNbOWfP-V4JXhwenMMofHRYq2totoM10O9Va4fs,4220
|
|
12
12
|
karrio/providers/easyship/units.py,sha256=_O45dD2La7FYJdA6NA-o-h6svrt-RRxUASfgDlMGrTw,4508
|
|
13
13
|
karrio/providers/easyship/utils.py,sha256=Sbthof9MMLjZoex3BYcztQ5RRlSuq6NAC18ro0x2KKI,906
|
|
@@ -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-
|
|
36
|
-
karrio_easyship-
|
|
37
|
-
karrio_easyship-
|
|
38
|
-
karrio_easyship-
|
|
39
|
-
karrio_easyship-
|
|
35
|
+
karrio_easyship-2026.1.1.dist-info/METADATA,sha256=timKPAT0kSjBVCW0E8kuUBhw6BPCuJVScWtQmGAlPwY,997
|
|
36
|
+
karrio_easyship-2026.1.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
37
|
+
karrio_easyship-2026.1.1.dist-info/entry_points.txt,sha256=fWVjIqvIorXvb1UVUMceu3i7pP0ba6gJnaZm7HLkZIY,61
|
|
38
|
+
karrio_easyship-2026.1.1.dist-info/top_level.txt,sha256=FZCY8Nwft8oEGHdl--xku8P3TrnOxu5dETEU_fWpRSM,20
|
|
39
|
+
karrio_easyship-2026.1.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|