Skip to content

Commit 7e87b4a

Browse files
author
Greg Taylor
committed
We're no longer invalid, getting a reply from Fedex now.
1 parent 724a455 commit 7e87b4a

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

fedex/services/ship_service.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def __set_requested_shipment(self):
4949
the data structure and get it ready for the WSDL request.
5050
"""
5151
RequestedShipment = self.client.factory.create('RequestedShipment')
52-
RequestedShipment.ShipTimestamp = datetime.now()
52+
RequestedShipment.ShipTimestamp = '2009-09-17T09:35:36-04:00'
5353
RequestedShipment.DropoffType = 'REGULAR_PICKUP' # REGULAR_PICKUP, REQUEST_COURIER, DROP_BOX, BUSINESS_SERVICE_CENTER and STATION
5454
RequestedShipment.ServiceType = 'PRIORITY_OVERNIGHT' # valid values STANDARD_OVERNIGHT, PRIORITY_OVERNIGHT, FEDEX_GROUND
5555
RequestedShipment.PackagingType = 'FEDEX_PAK' # valid values FEDEX_BOX, FEDEX_PAK, FEDEX_TUBE, YOUR_PACKAGING
@@ -121,11 +121,17 @@ def __set_requested_shipment(self):
121121
# Assemble
122122
RequestedShipment.ShippingChargesPayment = ShippingChargesPayment
123123

124+
LabelSpecification = self.client.factory.create('LabelSpecification')
125+
LabelSpecification.LabelFormatType = 'COMMON2D'
126+
LabelSpecification.ImageType = 'PNG'
127+
LabelSpecification.LabelStockType = 'PAPER_7X4.75'
128+
RequestedShipment.LabelSpecification = LabelSpecification
129+
124130
RequestedShipment.RateRequestTypes = ['ACCOUNT'] # ACCOUNT and LIST
125131
RequestedShipment.PackageCount = 1
126132
RequestedShipment.PackageDetail = 'INDIVIDUAL_PACKAGES'
127133

128-
self.logger.debug(RequestedShipment)
134+
self.logger.info(RequestedShipment)
129135
self.RequestedShipment = RequestedShipment
130136

131137
def _assemble_and_send_request(self):

0 commit comments

Comments
 (0)