Skip to content

Commit

Permalink
chore: update canada post customer_request_ids to use uniq hex code
Browse files Browse the repository at this point in the history
  • Loading branch information
danh91 committed Sep 11, 2024
1 parent b87a724 commit 5d4d0fe
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def shipment_request(
payload.label_type or "PDF_4x6"
).value
group_id = lib.to_date(datetime.datetime.now(), "%Y%m%d")
customer_request_ids = [f"{group_id}{_}" for _ in range(len(packages))]
customer_request_ids = [f"{str(uuid.uuid4().hex)}" for _ in range(len(packages))]
submit_shipment = lib.identity(
# set to true if canadapost_submit_shipment is true
options.canadapost_submit_shipment.state
Expand Down

0 comments on commit 5d4d0fe

Please sign in to comment.