Skip to content

Commit

Permalink
fix: ups product origin mapping and missing service code
Browse files Browse the repository at this point in the history
  • Loading branch information
danh91 committed Oct 15, 2024
1 parent d876137 commit 4ce4fc6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,9 @@ def shipment_request(
),
CommodityCode=item.hs_code,
PartNumber=item.sku,
OriginCountryCode=item.origin_country,
OriginCountryCode=lib.identity(
item.origin_country or shipper.country_code
),
JointProductionIndicator=None,
NetCostCode=None,
NetCostDateRange=None,
Expand Down
2 changes: 2 additions & 0 deletions modules/connectors/ups/karrio/providers/ups/units.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ class ServiceCode(utils.StrEnum):
ups_express_saver_intl_ca = ups_worldwide_saver
ups_standard_ca = ups_standard
ups_worldwide_expedited_ca = ups_worldwide_expedited
ups_worldwide_express = ups_express
ups_worldwide_express_ca = ups_express
ups_worldwide_express_plus_ca = ups_worldwide_express_plus
ups_express_early_ca_us = ups_worldwide_express_plus
Expand Down Expand Up @@ -463,6 +464,7 @@ class TrackingStatus(utils.Enum):
delivery_failed = ["RS"]
out_for_delivery = ["OT"]


# from https://developer.ups.com/api/reference/rating/appendix?loc=en_US
class SurchargeType(utils.StrEnum):
additional_handling = "100"
Expand Down

0 comments on commit 4ce4fc6

Please sign in to comment.