Package fedex :: Package services :: Module package_movement :: Class PostalCodeInquiryRequest
[hide private]
[frames] | no frames]

Class PostalCodeInquiryRequest

source code

                   object --+    
                            |    
base_service.FedexBaseService --+
                                |
                               PostalCodeInquiryRequest

The postal code inquiry enables customers to validate postal codes and service commitments.

Instance Methods [hide private]
 
__init__(self, config_obj, postal_code=None, country_code=None, *args, **kwargs)
Sets up an inquiry request.
source code
 
_check_response_for_request_errors(self)
Checks the response to see if there were any errors specific to this WSDL.
source code
 
_prepare_wsdl_objects(self)
Preps the WSDL data structures for the user.
source code
 
_assemble_and_send_request(self)
Fires off the Fedex request.
source code

Inherited from base_service.FedexBaseService: create_wsdl_object_of_type, send_request

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Instance Variables [hide private]

Inherited from base_service.FedexBaseService: ClientDetail, TransactionDetail, VersionId, WebAuthenticationDetail, config_obj, logger, response

Inherited from base_service.FedexBaseService (private): _version_info

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, config_obj, postal_code=None, country_code=None, *args, **kwargs)
(Constructor)

source code 

Sets up an inquiry request. The optional keyword args detailed on FedexBaseService apply here as well.

Parameters:
  • config_obj (FedexConfig) - A valid FedexConfig object
  • postal_code - a valid postal code
  • country_code - ISO country code to which the postal code belongs to.
Overrides: object.__init__

_check_response_for_request_errors(self)

source code 

Checks the response to see if there were any errors specific to this WSDL.

Overrides: base_service.FedexBaseService._check_response_for_request_errors

_prepare_wsdl_objects(self)

source code 

Preps the WSDL data structures for the user.

Overrides: base_service.FedexBaseService._prepare_wsdl_objects

_assemble_and_send_request(self)

source code 

Fires off the Fedex request.

Overrides: base_service.FedexBaseService._assemble_and_send_request

Warning: NEVER CALL THIS METHOD DIRECTLY. CALL send_request(), WHICH RESIDES ON FedexBaseService AND IS INHERITED.