OpenBazaar/OpenBazaar — pull request #169 by gubatron (2014-08-13 04:35:30+00:00)
Title: Cleanup/Refactor: Removed unused and organized imports. Order State enum, DRY principle

Currently order states are represented as strings, with irregular capitalization.

In the future it might be better to just have this field store a byte value, and to represent
it in the user interface we can have a map that gives us the right representation, should also
be easier to internationalize the text this way as there'd be only one place to maintain
the corresponding english names for the order states.

Refactored get_order() method to get rid of unnecessary code repetition. DRY principle.