Skip to content

Commit 8141f86

Browse files
committed
Add (optional) Email field to Shipper and ShipTo in create-label demo
1 parent 656680d commit 8141f86

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

demo/create-label.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
$shipper->setAttentionName(""); // optional
4949
$shipper->setTaxIdentificationNumber(""); // optional
5050
$shipper->setPhone($phone);
51+
$shipper->setEmail(""); // optional
5152
$shipper->setShippingNumber("123456");
5253
$shipper->setFaxNumber(""); // optional
5354
$shipper->setAddress($address);
@@ -68,6 +69,7 @@
6869
$shipTo->setName("Shipper Test");
6970
$shipTo->setAttentionName(""); // optional
7071
$shipTo->setPhone($phone);
72+
$shipTo->setEmail(""); // optional
7173
$shipTo->setAddress($address);
7274
$shipTo->setResidential(""); // optional
7375
/************ End ShipTo **********/
@@ -114,7 +116,7 @@
114116
$packaging->setDescription("Ups Letter"); // optional
115117

116118
// Dimensions can be optional
117-
$unitOfMeasurement = new UnitOfMeasurement();
119+
$unitOfMeasurement = new UnitOfMeasurement();
118120
$unitOfMeasurement->setCode(UnitOfMeasurement::INCHES);
119121
$unitOfMeasurement->setDescription("Inches"); // optional
120122

0 commit comments

Comments
 (0)