Skip to content

Commit 684e8f2

Browse files
committed
Add insured value to example
1 parent 9189d24 commit 684e8f2

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

examples/create_shipment.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,12 +107,21 @@
107107
package1_weight.Value = 1.0
108108
package1_weight.Units = "LB"
109109

110+
# Insured Value
111+
# package1_insure = shipment.create_wsdl_object_of_type('Money')
112+
# package1_insure.Currency = 'USD'
113+
# package1_insure.Amount = 1.0
114+
110115
# Create PackageLineItem
111116
package1 = shipment.create_wsdl_object_of_type('RequestedPackageLineItem')
112117
# BAG, BARREL, BASKET, BOX, BUCKET, BUNDLE, CARTON, CASE, CONTAINER, ENVELOPE etc..
113118
package1.PhysicalPackaging = 'ENVELOPE'
114119
package1.Weight = package1_weight
115120

121+
# Add Insured and Total Insured values.
122+
# package1.InsuredValue = package1_insure
123+
# shipment.RequestedShipment.TotalInsuredValue = package1_insure
124+
116125
# Add a signature option for the package using SpecialServicesRequested or comment out.
117126
# SpecialServiceTypes can be APPOINTMENT_DELIVERY, COD, DANGEROUS_GOODS, DRY_ICE, SIGNATURE_OPTION etc..
118127
package1.SpecialServicesRequested.SpecialServiceTypes = 'SIGNATURE_OPTION'

0 commit comments

Comments
 (0)