File tree Expand file tree Collapse file tree
plugins/freightcom_rest/karrio/providers/freightcom_rest/shipment Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -110,6 +110,12 @@ def _extract_details(
110110 freightcom_service_id = rate .service_id if hasattr (rate , 'service_id' ) else ""
111111 freightcom_unique_id = shipment .unique_id if hasattr (shipment , 'unique_id' ) else ""
112112
113+ is_customs_rate_guaranteed = (
114+ rate .customs_charge_data .is_rate_guaranteed
115+ if hasattr (rate , 'customs_charge_data' ) and rate .customs_charge_data and hasattr (rate .customs_charge_data , 'is_rate_guaranteed' )
116+ else None
117+ )
118+
113119 else :
114120 tracking_number = ""
115121 shipment_id = ""
@@ -125,6 +131,7 @@ def _extract_details(
125131 carrier_tracking_link = ""
126132 freightcom_service_id = ""
127133 freightcom_unique_id = ""
134+ is_customs_rate_guaranteed = None
128135
129136 documents = models .Documents (
130137 label = label_base64 ,
@@ -149,7 +156,8 @@ def _extract_details(
149156 service_name = service_name ,
150157 freightcom_service_id = freightcom_service_id ,
151158 freightcom_unique_id = freightcom_unique_id ,
152- freightcom_shipment_identifier = shipment_id
159+ freightcom_shipment_identifier = shipment_id ,
160+ is_customs_rate_guaranteed = is_customs_rate_guaranteed ,
153161 ),
154162 )
155163
You can’t perform that action at this time.
0 commit comments