python-fedex-devs / python-fedex

A light wrapper around FedEx's SOAP API.
http://python-fedex.readthedocs.org
BSD 3-Clause "New" or "Revised" License
155 stars 139 forks source link

Incorrect attribute parsing #142

Closed ethancastillo closed 3 years ago

ethancastillo commented 3 years ago

Lines 105 & 106 of examples/address_validation.py:

if cur_attribute.Name == "CountrySupported":
            print("Invalid Suite: {}".format(cur_attribute.Value == 'true'))

The correct code should be:

if cur_attribute.Name == "InvalidSuiteNumber":
            print("Invalid Suite: {}".format(cur_attribute.Value == 'true'))
radzhome commented 3 years ago

will update