Skip to content

Commit

Permalink
hotfix: add fallback values to SAPIENT shipment request
Browse files Browse the repository at this point in the history
  • Loading branch information
danh91 committed Aug 19, 2024
1 parent bf777f1 commit 1fc8303
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def shipment_request(
),
Shipper=sapient.ShipperType(
Address=sapient.AddressType(
ContactName=shipper.name,
ContactName=shipper.contact or "N/A",
CompanyName=shipper.company_name,
ContactEmail=shipper.email,
ContactPhone=shipper.phone_number,
Expand All @@ -130,7 +130,7 @@ def shipment_request(
),
Destination=sapient.DestinationType(
Address=sapient.AddressType(
ContactName=recipient.name,
ContactName=recipient.contact or "N/A",
CompanyName=recipient.company_name,
ContactEmail=recipient.email,
ContactPhone=recipient.phone_number,
Expand Down Expand Up @@ -162,7 +162,7 @@ def shipment_request(
ReturnToSender=lib.identity(
sapient.ReturnToSenderType(
Address=sapient.AddressType(
ContactName=return_address.name,
ContactName=return_address.contact or "N/A",
CompanyName=return_address.company_name,
ContactEmail=return_address.email,
ContactPhone=return_address.phone_number,
Expand Down

0 comments on commit 1fc8303

Please sign in to comment.