Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions examples/rate_request.py
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@
rate_request.RequestedShipment.Recipient.Address.CountryCode = 'US'
# This is needed to ensure an accurate rate quote with the response.
#rate_request.RequestedShipment.Recipient.Address.Residential = True
#include estimated duties and taxes in rate quote, can be ALL or NONE
rate_request.RequestedShipment.EdtRequestType = 'NONE'

# Who pays for the rate_request?
# RECIPIENT, SENDER or THIRD_PARTY
Expand All @@ -57,6 +59,8 @@

package1 = rate_request.create_wsdl_object_of_type('RequestedPackageLineItem')
package1.Weight = package1_weight
#can be other values this is probably the most common
package1.PhysicalPackaging = 'BOX'
# Un-comment this to see the other variables you may set on a package.
#print package1

Expand Down
1 change: 1 addition & 0 deletions fedex/base_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ def __set_client_detail(self):
ClientDetail.AccountNumber = self.config_obj.account_number
ClientDetail.MeterNumber = self.config_obj.meter_number
ClientDetail.IntegratorId = self.config_obj.integrator_id
ClientDetail.Region = self.config_obj.express_region_code
self.ClientDetail = ClientDetail

def __set_transaction_detail(self, *args, **kwargs):
Expand Down
2 changes: 2 additions & 0 deletions fedex/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ def __init__(self, key, password, account_number=None, meter_number=None,
"""@ivar: Web services meter number."""
self.integrator_id = integrator_id
"""@ivar: Web services integrator ID."""
self.express_region_code = express_region_code
"""@icar: Web services ExpressRegionCode"""
self.use_test_server = use_test_server
"""@ivar: When True, point to the test server."""

Expand Down