Use method rather than accessing property directly
Fix whitespace and add brackets
Merge pull request #572 from leewillis77/more_ship_api_fixes

Another shipping api fix